Class DefaultExpressionEngineSymbols
java.lang.Object
org.apache.commons.configuration2.tree.DefaultExpressionEngineSymbols
A class representing the various symbols that are supported in keys recognized by DefaultExpressionEngine
.
An instance of this class is associated with each instance of DefaultExpressionEngine
. It determines which
concrete symbols are used to define elements like separators, attributes, etc. within a configuration key.
Instances are created using the nested Builder
class. They are immutable and can be shared between arbitrary
components.
- Since:
- 2.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A builder class for creating instances ofDefaultExpressionEngineSymbols
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
Stores the attribute end marker.private final String
Stores the attribute start marker.static final String
Constant for the default attribute end marker.static final String
Constant for the default attribute start marker.static final String
Constant for the default escaped property delimiter.static final String
Constant for the default index end marker.static final String
Constant for the default index start marker.static final String
Constant for the default property delimiter.static final DefaultExpressionEngineSymbols
An instance with default symbols.private final String
Stores the escaped property delimiter.private final String
Stores the index end marker.private final String
Stores the index start marker.private final String
Stores the property delimiter. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Creates a new instance ofDefaultExpressionEngineSymbols
. -
Method Summary
Modifier and TypeMethodDescriptionprivate static DefaultExpressionEngineSymbols
Creates theDefaultExpressionEngineSymbols
object with default symbols.boolean
Compares this object with another one.Gets the string representing an attribute end marker.Gets the string representing an attribute start marker.Gets the string representing an escaped property delimiter.Gets the string representing the end of an index in a property key.Gets the string representing the start of an index in a property key.Gets the string used as delimiter in property keys.int
hashCode()
Returns a hash code for this object.toString()
Returns a string representation for this object.
-
Field Details
-
DEFAULT_PROPERTY_DELIMITER
Constant for the default property delimiter.- See Also:
-
DEFAULT_ESCAPED_DELIMITER
Constant for the default escaped property delimiter.- See Also:
-
DEFAULT_ATTRIBUTE_START
Constant for the default attribute start marker.- See Also:
-
DEFAULT_ATTRIBUTE_END
Constant for the default attribute end marker.- See Also:
-
DEFAULT_INDEX_START
Constant for the default index start marker.- See Also:
-
DEFAULT_INDEX_END
Constant for the default index end marker.- See Also:
-
DEFAULT_SYMBOLS
An instance with default symbols. This instance is used by the default instance ofDefaultExpressionEngine
. -
propertyDelimiter
Stores the property delimiter. -
escapedDelimiter
Stores the escaped property delimiter. -
attributeStart
Stores the attribute start marker. -
attributeEnd
Stores the attribute end marker. -
indexStart
Stores the index start marker. -
indexEnd
Stores the index end marker.
-
-
Constructor Details
-
DefaultExpressionEngineSymbols
Creates a new instance ofDefaultExpressionEngineSymbols
.- Parameters:
b
- the builder for defining the properties of this instance
-
-
Method Details
-
createDefaultSmybols
Creates theDefaultExpressionEngineSymbols
object with default symbols.- Returns:
- the default symbols instance
-
equals
Compares this object with another one. Two instances ofDefaultExpressionEngineSymbols
are considered equal if all of their properties are equal. -
getAttributeEnd
Gets the string representing an attribute end marker.- Returns:
- the attribute end marker
-
getAttributeStart
Gets the string representing an attribute start marker.- Returns:
- the attribute start marker
-
getEscapedDelimiter
Gets the string representing an escaped property delimiter.- Returns:
- the escaped property delimiter
-
getIndexEnd
Gets the string representing the end of an index in a property key.- Returns:
- the index end marker
-
getIndexStart
Gets the string representing the start of an index in a property key.- Returns:
- the index start marker
-
getPropertyDelimiter
Gets the string used as delimiter in property keys.- Returns:
- the property delimiter
-
hashCode
public int hashCode()Returns a hash code for this object. -
toString
Returns a string representation for this object. This string contains the values of all properties.
-