Class DefaultExpressionEngineSymbols.Builder
java.lang.Object
org.apache.commons.configuration2.tree.DefaultExpressionEngineSymbols.Builder
- Enclosing class:
- DefaultExpressionEngineSymbols
A builder class for creating instances of
DefaultExpressionEngineSymbols
.-
Constructor Summary
ConstructorDescriptionBuilder()
Creates a new, uninitialized instance ofBuilder
.Creates a new instance ofBuilder
whose properties are initialized from the passed inDefaultExpressionEngineSymbols
object. -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Creates theDefaultExpressionEngineSymbols
instance based on the properties set for this builder object.setAttributeEnd
(String attributeEnd) Sets the string representing the end marker of an attribute in a property key.setAttributeStart
(String attributeStart) Sets the string representing the start marker of an attribute in a property key.setEscapedDelimiter
(String escapedDelimiter) Sets the string representing an escaped property delimiter.setIndexEnd
(String indexEnd) Sets the string representing the end of an index in a property key.setIndexStart
(String is) Sets the string representing the start of an index in a property key.setPropertyDelimiter
(String propertyDelimiter) Sets the string representing a delimiter for properties.
-
Constructor Details
-
Builder
public Builder()Creates a new, uninitialized instance ofBuilder
. All symbols are undefined. -
Builder
Creates a new instance ofBuilder
whose properties are initialized from the passed inDefaultExpressionEngineSymbols
object. This is useful if symbols are to be created which are similar to the passed in instance.- Parameters:
c
- theDefaultExpressionEngineSymbols
object serving as starting point for this builder
-
-
Method Details
-
create
Creates theDefaultExpressionEngineSymbols
instance based on the properties set for this builder object. This method does not change the state of this builder. So it is possible to change properties and create anotherDefaultExpressionEngineSymbols
instance.- Returns:
- the newly created
DefaultExpressionEngineSymbols
instance
-
setAttributeEnd
Sets the string representing the end marker of an attribute in a property key.- Parameters:
attributeEnd
- the attribute end marker- Returns:
- a reference to this object for method chaining
-
setAttributeStart
Sets the string representing the start marker of an attribute in a property key. Attribute start and end marker are used together to detect attributes in a property key.- Parameters:
attributeStart
- the attribute start marker- Returns:
- a reference to this object for method chaining
-
setEscapedDelimiter
Sets the string representing an escaped property delimiter. With this string a delimiter that belongs to the key of a property can be escaped. If for instance "." is used as property delimiter, you can set the escaped delimiter to "\." and can then escape the delimiter with a back slash.- Parameters:
escapedDelimiter
- the escaped property delimiter- Returns:
- a reference to this object for method chaining
-
setIndexEnd
Sets the string representing the end of an index in a property key.- Parameters:
indexEnd
- the index end- Returns:
- a reference to this object for method chaining
-
setIndexStart
Sets the string representing the start of an index in a property key. Index start and end marker are used together to detect indices in a property key.- Parameters:
is
- the index start- Returns:
- a reference to this object for method chaining
-
setPropertyDelimiter
Sets the string representing a delimiter for properties.- Parameters:
propertyDelimiter
- the property delimiter- Returns:
- a reference to this object for method chaining
-