public class TLcdOGCPropertyName extends TLcdDataObject implements ILcdOGCExpression
<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>
Constructor and Description |
---|
TLcdOGCPropertyName()
Default constructor.
|
TLcdOGCPropertyName(QName aName)
Constructs an instance for a given qualified name.
|
TLcdOGCPropertyName(TLcdOGCXPath aName)
Constructs an instance for a given XPath expression.
|
TLcdOGCPropertyName(TLcdXMLName aName)
Convenient constructor for a given qualified name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
TLcdOGCXPath |
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.
|
String |
toString() |
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
public TLcdOGCPropertyName()
public TLcdOGCPropertyName(TLcdXMLName aName)
aName
- the qualified name.TLcdOGCFilterFactory.property(String)
public TLcdOGCPropertyName(TLcdOGCXPath aName)
aName
- the XPath expression.TLcdOGCFilterFactory.property(String)
public TLcdOGCPropertyName(QName aName)
aName
- the qualified name.TLcdOGCFilterFactory.property(String)
public TLcdOGCXPath getXPath()
public String toString()
toString
in class TLcdDataObject
public void setXPath(TLcdOGCXPath aName)
aName
- an XPath expression.