Package com.luciad.format.xml.xpath
Class TLcdXMLXPathString
java.lang.Object
com.luciad.format.xml.xpath.TLcdXMLXPathString
Simple object representing an xpath expression as a string. This object also keeps
track of the name space context to allow proper resolution of name space prefixes
used in the xpath expression later on.
- Since:
- 10.0
- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdXMLXPathString
(String aExpression, Map<String, String> aPrefix2Namespace) Constructs an xpath string given an xpath expression string and a name space prefix map.TLcdXMLXPathString
(String aExpression, NamespaceContext aNamespaceContext) Constructs an xpath string given an xpath expression string and a name space context. -
Method Summary
Modifier and TypeMethodDescriptionReturns the xpath expressionReturns the namespace context of this object.
-
Constructor Details
-
TLcdXMLXPathString
Constructs an xpath string given an xpath expression string and a name space context.- Parameters:
aExpression
- the xpath expressionaNamespaceContext
- the name space context
-
TLcdXMLXPathString
Constructs an xpath string given an xpath expression string and a name space prefix map.- Parameters:
aExpression
- the xpath expressionaPrefix2Namespace
- a map that maps the prefixes used in the expression to a name space URI
-
-
Method Details
-
getExpression
Returns the xpath expression- Returns:
- the xpath expression
-
getNamespaceContext
Returns the namespace context of this object. This name space context can be used to resolve name space uri's for prefixes used in the expression.- Returns:
- the namespace context that can be used to resolve prefixes in the expression
-