|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.ecs.ECSDefaults
This class is responsible for loading the ecs.properties file and getting the default settings for ECS. This allows you to edit a simple text file instead of having to edit the .java files and recompile. The property file can be specified via the 'ecs.properties' system property. For example, java -Decs.properties="my.ecs.properties". If ecs.properties is null then the standard ecs.properties resource in the ECS jar is used. If the property file cannot be loaded, a message is printed to standard error and hard-coded defaults are used instead.
Field Summary | |
private char |
attribute_equality_sign
|
private boolean |
attribute_quote
|
private char |
attribute_quote_char
|
private char |
begin_end_modifier
|
private char |
begin_start_modifier
|
private int |
case_type
|
private java.lang.String |
codeset
|
private static ECSDefaults |
defaults
This singleton allows the properties to gracefully default in the case of an error. |
private boolean |
end_element
|
private char |
end_end_modifier
|
private char |
end_start_modifier
|
private char |
end_tag
|
private boolean |
filter_attribute_state
|
private boolean |
filter_state
|
private int |
position
|
private boolean |
pretty_print
|
private java.util.ResourceBundle |
resource
|
private char |
start_tag
|
Constructor Summary | |
private |
ECSDefaults()
This private constructor is used to create the singleton used in the public static methods. |
Method Summary | |
static java.lang.String |
debugString()
This method returns a string showing the current values. |
static char |
getDefaultAttributeEqualitySign()
What is the equality character for an attribute. |
static boolean |
getDefaultAttributeQuote()
|
static char |
getDefaultAttributeQuoteChar()
|
static char |
getDefaultBeginEndModifier()
What the end modifier should be |
static char |
getDefaultBeginStartModifier()
What the start modifier should be |
static int |
getDefaultCaseType()
Default value to set case type |
static java.lang.String |
getDefaultCodeset()
What codeset are we going to use the default is UTF-8. |
static boolean |
getDefaultEndElement()
Does this element need a closing tag? |
static char |
getDefaultEndEndModifier()
What the end modifier should be |
static char |
getDefaultEndStartModifier()
What the start modifier should be |
static char |
getDefaultEndTag()
Default end-of-tag character. |
static boolean |
getDefaultFilterAttributeState()
Should we filter the value of the element attributes |
static boolean |
getDefaultFilterState()
Should we filter the value of <>VALUE</> |
static int |
getDefaultPosition()
Position of tag relative to start and end. |
static boolean |
getDefaultPrettyPrint()
Should we print html in a more readable format? |
static char |
getDefaultStartTag()
Default start-of-tag character. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static ECSDefaults defaults
private java.util.ResourceBundle resource
private boolean filter_state
private boolean filter_attribute_state
private char attribute_equality_sign
private char begin_start_modifier
private char end_start_modifier
private char begin_end_modifier
private char end_end_modifier
private char attribute_quote_char
private boolean attribute_quote
private boolean end_element
private java.lang.String codeset
private int position
private int case_type
private char start_tag
private char end_tag
private boolean pretty_print
Constructor Detail |
private ECSDefaults()
Method Detail |
public static boolean getDefaultFilterState()
public static boolean getDefaultFilterAttributeState()
public static char getDefaultAttributeEqualitySign()
public static char getDefaultBeginStartModifier()
public static char getDefaultEndStartModifier()
public static char getDefaultBeginEndModifier()
public static char getDefaultEndEndModifier()
public static char getDefaultAttributeQuoteChar()
public static boolean getDefaultAttributeQuote()
public static boolean getDefaultEndElement()
public static java.lang.String getDefaultCodeset()
public static int getDefaultPosition()
public static int getDefaultCaseType()
public static char getDefaultStartTag()
public static char getDefaultEndTag()
public static boolean getDefaultPrettyPrint()
public static java.lang.String debugString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |