Class TLcdXMLXPathString

java.lang.Object
com.luciad.format.xml.xpath.TLcdXMLXPathString

public class TLcdXMLXPathString extends Object
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 Details Link icon

    • TLcdXMLXPathString Link icon

      public TLcdXMLXPathString(String aExpression, NamespaceContext aNamespaceContext)
      Constructs an xpath string given an xpath expression string and a name space context.
      Parameters:
      aExpression - the xpath expression
      aNamespaceContext - the name space context
    • TLcdXMLXPathString Link icon

      public TLcdXMLXPathString(String aExpression, Map<String,String> aPrefix2Namespace)
      Constructs an xpath string given an xpath expression string and a name space prefix map.
      Parameters:
      aExpression - the xpath expression
      aPrefix2Namespace - a map that maps the prefixes used in the expression to a name space URI
  • Method Details Link icon

    • getExpression Link icon

      public String getExpression()
      Returns the xpath expression
      Returns:
      the xpath expression
    • getNamespaceContext Link icon

      public NamespaceContext 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