Package com.luciad.ogc.filter.model
Class TLcdOGCPropertyName
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.filter.model.TLcdOGCPropertyName
- All Implemented Interfaces:
ILcdDataObject
,ILcdGenericExpression
,ILcdOGCExpression
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
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 Summary
ConstructorDescriptionDefault constructor.TLcdOGCPropertyName
(TLcdXMLName aName) Convenient constructor for a given qualified name.TLcdOGCPropertyName
(TLcdOGCXPath aName) Constructs an instance for a given XPath expression.TLcdOGCPropertyName
(QName aName) Constructs an instance for a given qualified name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getXPath()
Gets the XPath expression that represents the property name.int
hashCode()
void
setXPath
(TLcdOGCXPath aName) Sets the XPath expression that represents the property name.toString()
Methods inherited from class com.luciad.datamodel.TLcdDataObject
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
-
Constructor Details
-
TLcdOGCPropertyName
public TLcdOGCPropertyName()Default constructor. -
TLcdOGCPropertyName
Convenient constructor for a given qualified name.- Parameters:
aName
- the qualified name.- See Also:
-
TLcdOGCPropertyName
Constructs an instance for a given XPath expression.- Parameters:
aName
- the XPath expression.- See Also:
-
TLcdOGCPropertyName
Constructs an instance for a given qualified name.- Parameters:
aName
- the qualified name.- Since:
- 2016.1
- See Also:
-
-
Method Details
-
getXPath
Gets the XPath expression that represents the property name.- Returns:
- an XPath expression.
-
toString
- Overrides:
toString
in classTLcdDataObject
-
setXPath
Sets the XPath expression that represents the property name.- Parameters:
aName
- an XPath expression.
-
equals
-
hashCode
public int hashCode()
-