Package org.apache.commons.text.lookup
Class XmlStringLookup
java.lang.Object
org.apache.commons.text.lookup.AbstractStringLookup
org.apache.commons.text.lookup.XmlStringLookup
- All Implemented Interfaces:
StringLookup
Looks up keys from an XML document.
Looks up the value for a given key in the format "Document:XPath".
For example: "com/domain/document.xml:/path/to/node".
- Since:
- 1.5
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final XmlStringLookup
Defines the singleton for this class.Fields inherited from class org.apache.commons.text.lookup.AbstractStringLookup
SPLIT_CH, SPLIT_STR
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.text.lookup.AbstractStringLookup
substringAfter, substringAfter, substringAfterLast, toLookupKey, toLookupKey
-
Field Details
-
INSTANCE
Defines the singleton for this class.
-
-
Constructor Details
-
XmlStringLookup
private XmlStringLookup()No need to build instances for now.
-
-
Method Details
-
lookup
Looks up the value for the key in the format "DocumentPath:XPath".For example: "com/domain/document.xml:/path/to/node".
- Parameters:
key
- the key to be looked up, may be null- Returns:
- The value associated with the key.
-