Class TLcdOGCPropertyName

java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.filter.model.TLcdOGCPropertyName
All Implemented Interfaces:
ILcdDataObject, ILcdGenericExpression, ILcdOGCExpression, ILcdCloneable, ILcdDeepCloneable, Cloneable

public class TLcdOGCPropertyName extends TLcdDataObject implements ILcdOGCExpression
This class represents the <ogc:PropertyName> element. For easy construction the TLcdOGCFilterFactory.property(String) method can be used.

It must hold an XPath expression (TLcdOGCXPath) to represent the name of the property. This XPath expression is reduced to a single step in case of a direct child property.

e.g. <ogc:PropertyName>Geometry</ogc:PropertyName>

As specified in the OGC Filter specification, the XPath expression can start with either the root element name or a direct child property of its.

e.g. <ogc:PropertyName>Person/lastName</ogc:PropertyName> or <ogc:PropertyName>lastName</ogc:PropertyName>

e.g. <ogc:PropertyName>Person/mailAddress/Address/country</ogc:PropertyName> or <ogc:PropertyName>mailAddress/Address/country</ogc:PropertyName>

See Also:
  • Constructor Details

    • TLcdOGCPropertyName

      public TLcdOGCPropertyName()
      Default constructor.
    • TLcdOGCPropertyName

      public TLcdOGCPropertyName(TLcdXMLName aName)
      Convenient constructor for a given qualified name.
      Parameters:
      aName - the qualified name.
      See Also:
    • TLcdOGCPropertyName

      public TLcdOGCPropertyName(TLcdOGCXPath aName)
      Constructs an instance for a given XPath expression.
      Parameters:
      aName - the XPath expression.
      See Also:
    • TLcdOGCPropertyName

      public TLcdOGCPropertyName(QName aName)
      Constructs an instance for a given qualified name.
      Parameters:
      aName - the qualified name.
      Since:
      2016.1
      See Also:
  • Method Details

    • getXPath

      public TLcdOGCXPath getXPath()
      Gets the XPath expression that represents the property name.
      Returns:
      an XPath expression.
    • toString

      public String toString()
      Overrides:
      toString in class TLcdDataObject
    • setXPath

      public void setXPath(TLcdOGCXPath aName)
      Sets the XPath expression that represents the property name.
      Parameters:
      aName - an XPath expression.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object