public class AttributeLocation
extends java.lang.Object
AttributeSplittingMode
to use for this location,
separators or regex used to tokenize the attribute,
output token separator, and finally you can define a value for 'enabled'
to toggle attribute splitting for this locationConstructor and Description |
---|
AttributeLocation(java.lang.String attributeXpath)
Initialises an new
AttributeLocation with an XPath to the attribute. |
AttributeLocation(java.lang.String attributeXpath,
AttributeSplittingMode mode)
Initialises an AttributeLocation with the given parameters.
|
AttributeLocation(java.lang.String attributeXpath,
AttributeSplittingMode mode,
java.lang.Boolean enabled)
Initialises an AttributeLocation with the given parameters.
|
AttributeLocation(java.lang.String attributeXpath,
AttributeSplittingMode mode,
java.lang.String separator)
Initialises an AttributeLocation with the given parameters.
|
AttributeLocation(java.lang.String attributeXpath,
AttributeSplittingMode mode,
java.lang.String separator,
java.lang.Boolean enabled)
Initialises an AttributeLocation with the given parameters.
|
AttributeLocation(java.lang.String attributeXpath,
AttributeSplittingMode mode,
java.lang.String separator,
java.lang.String outputTokenSeparator)
Initialises an AttributeLocation with the given parameters.
|
AttributeLocation(java.lang.String attributeXpath,
AttributeSplittingMode mode,
java.lang.String separator,
java.lang.String outputTokenSeparator,
java.lang.Boolean enabled)
Initialises an AttributeLocation with the given parameters.
|
AttributeLocation(java.lang.String attributeXpath,
AttributeSplittingMode mode,
java.lang.String separator,
java.lang.String outputTokenSeparator,
java.lang.String regex)
Initialises an AttributeLocation with the given parameters.
|
AttributeLocation(java.lang.String attributeXpath,
AttributeSplittingMode mode,
java.lang.String separator,
java.lang.String outputTokenSeparator,
java.lang.String regex,
java.lang.Boolean enabled)
Initialises an AttributeLocation with the given parameters.
|
AttributeLocation(java.lang.String attributeXpath,
java.lang.Boolean enabled)
Initialises an AttributeLocation with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
AttributeSplittingMode |
getAttributeSplittingMode()
Get the
AttributeSplittingMode used for this location. |
java.lang.String |
getAttributeXPath()
Return the XPath to the attribute.
|
java.lang.Boolean |
getEnabled()
Get whether Attribute Splitting is enabled at this location.
|
java.lang.String |
getOutputTokenSeparator()
Get the output token separator to use for this location.
|
java.lang.String |
getRegex()
Get the regular expression to use for this location.
|
java.lang.String |
getSeparator()
Get the string of separators for this location.
|
void |
setAttributeSplittingMode(AttributeSplittingMode mode)
Set the
AttributeSplittingMode used for this location. |
void |
setAttributeXPath(java.lang.String xPath)
Change the attribute XPath.
|
void |
setEnabled(java.lang.Boolean enabled)
Set whether Attribute Splitting is enabled at this location only.
|
void |
setOutputTokenSeparator(java.lang.String outputTokenSeparator)
Set the output token separator to use for this location.
|
void |
setRegex(java.lang.String regex)
Set the regular expression to use for this location.
|
void |
setSeparator(java.lang.String separator)
Set the separator to use for this location.
|
public AttributeLocation(java.lang.String attributeXpath)
AttributeLocation
with an XPath to the attribute.attributeXpath
- the XPath to the attribute.java.lang.IllegalArgumentException
- if passed attributeXpath is invalid.public AttributeLocation(java.lang.String attributeXpath, AttributeSplittingMode mode)
attributeXpath
- The attribute XPathmode
- an AttributeSplittingMode
to use for this locationjava.lang.IllegalArgumentException
- if passed attributeXpath is invalid.public AttributeLocation(java.lang.String attributeXpath, java.lang.Boolean enabled)
attributeXpath
- The attribute XPathenabled
- a boolean to enable or disable attribute splitting at this locationjava.lang.IllegalArgumentException
- if passed attributeXpath is invalid.public AttributeLocation(java.lang.String attributeXpath, AttributeSplittingMode mode, java.lang.Boolean enabled)
attributeXpath
- The attribute XPathmode
- an AttributeSplittingMode
to use for this locationenabled
- a boolean to enable or disable attribute splitting at this locationjava.lang.IllegalArgumentException
- if passed attributeXpath is invalid.public AttributeLocation(java.lang.String attributeXpath, AttributeSplittingMode mode, java.lang.String separator)
attributeXpath
- The attribute XPathmode
- an AttributeSplittingMode
to use for this locationseparator
- a string containing one or more separator characters. The attribute value is split at each point in the
string that a separator character is encountered.java.lang.IllegalArgumentException
- if passed attributeXpath is invalid.public AttributeLocation(java.lang.String attributeXpath, AttributeSplittingMode mode, java.lang.String separator, java.lang.Boolean enabled)
attributeXpath
- The attribute XPathmode
- an AttributeSplittingMode
to use for this locationseparator
- a string containing one or more separator characters. The attribute value is split at each point in the
string that a separator character is encountered.enabled
- a boolean to enable or disable attribute splitting at this locationjava.lang.IllegalArgumentException
- if passed attributeXpath is invalid.public AttributeLocation(java.lang.String attributeXpath, AttributeSplittingMode mode, java.lang.String separator, java.lang.String outputTokenSeparator)
attributeXpath
- The attribute XPathmode
- an AttributeSplittingMode
to use for this locationseparator
- a string containing one or more separator characters. The attribute value is split at each point in the
string that a separator character is encountered.outputTokenSeparator
- a string used to separate tokens in the outputjava.lang.IllegalArgumentException
- if passed attributeXpath is invalid.public AttributeLocation(java.lang.String attributeXpath, AttributeSplittingMode mode, java.lang.String separator, java.lang.String outputTokenSeparator, java.lang.Boolean enabled)
attributeXpath
- The attribute XPathmode
- an AttributeSplittingMode
to use for this locationseparator
- a string containing one or more separator characters. The attribute value is split at each point in the
string that a separator character is encountered.outputTokenSeparator
- a string used to separate tokens in the outputenabled
- a boolean to enable or disable attribute splitting at this locationjava.lang.IllegalArgumentException
- if passed attributeXpath is invalid.public AttributeLocation(java.lang.String attributeXpath, AttributeSplittingMode mode, java.lang.String separator, java.lang.String outputTokenSeparator, java.lang.String regex)
attributeXpath
- The attribute XPathmode
- an AttributeSplittingMode
to use for this locationseparator
- a string containing one or more separator characters. The attribute value is split at each point in the
string that a separator character is encountered.outputTokenSeparator
- a string used to separate tokens in the outputregex
- this is used to tokenise the attribute value using regular expression syntax.java.lang.IllegalArgumentException
- if passed attributeXpath is invalid.public AttributeLocation(java.lang.String attributeXpath, AttributeSplittingMode mode, java.lang.String separator, java.lang.String outputTokenSeparator, java.lang.String regex, java.lang.Boolean enabled)
attributeXpath
- The attribute XPathmode
- an AttributeSplittingMode
to use for this locationseparator
- a string containing one or more separator characters. The attribute value is split at each point in the
string that a separator character is encountered.outputTokenSeparator
- a string used to separate tokens in the outputregex
- this is used to tokenise the attribute value using regular expression syntaxenabled
- a boolean to enable or disable attribute splitting at this location.java.lang.IllegalArgumentException
- if passed attributeXpath is invalid.public java.lang.String getAttributeXPath()
public void setAttributeXPath(java.lang.String xPath)
xPath
- string containing the new attribute XPath to usejava.lang.IllegalArgumentException
- if passed attributeXpath is invalid..public AttributeSplittingMode getAttributeSplittingMode()
AttributeSplittingMode
used for this location.AttributeSplittingMode
enum valuepublic void setAttributeSplittingMode(AttributeSplittingMode mode)
AttributeSplittingMode
used for this location.mode
- an AttributeSplittingMode
enum valuepublic java.lang.String getSeparator()
public void setSeparator(java.lang.String separator)
separator
- a string containing one or more separator characters. The attribute value is split at each point in the
string that a separator character is encountered.public java.lang.String getRegex()
public void setRegex(java.lang.String regex)
regex
- a string containing a regular expression. This is used to tokenise the attribute value.public java.lang.String getOutputTokenSeparator()
public void setOutputTokenSeparator(java.lang.String outputTokenSeparator)
outputTokenSeparator
- string used to separate tokens in the outputpublic void setEnabled(java.lang.Boolean enabled)
AttributeSplittingConfig
enabled valueenabled
- boolean to determine if Attribute Splitting is enabled at this locationpublic java.lang.Boolean getEnabled()