|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.ogcbase.PropertyPath
public class PropertyPath
Represents a subset of the XPath expression language as described in section 7.4.2 of the Web Feature Implementation Specification 1.1.0 (but is used by other OGC specifications as well).
This specification does not require a WFS implementation to support the full XPath language. In order to keep the implementation entry cost as low as possible, this specification mandates that a WFS implementation must support the following subset of the XPath language:
PropertyPathStep
Constructor Summary | |
---|---|
PropertyPath(java.util.List<PropertyPathStep> steps)
Creates a new instance of PropertyPath with the specified steps. |
Method Summary | |
---|---|
void |
append(PropertyPathStep last)
Adds the given PropertyPathStep to the end of the path. |
int |
compareTo(PropertyPath that)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object obj)
|
java.util.List<PropertyPathStep> |
getAllSteps()
Returns all steps of the PropertyPath . |
java.lang.String |
getAsString()
Returns the canonical string representation. |
NamespaceContext |
getNamespaceContext()
Returns the namespace bindings for the prefices that are used by this property path. |
PropertyPathStep |
getStep(int i)
Returns the PropertyPathStep at the given index. |
int |
getSteps()
Returns the number of steps. |
int |
hashCode()
|
void |
prepend(PropertyPathStep first)
Adds the given PropertyPathStep to the beginning of the path. |
void |
setSteps(java.util.List<PropertyPathStep> steps)
Setter method for steps |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyPath(java.util.List<PropertyPathStep> steps)
PropertyPath
with the specified steps.
steps
- property path steps, may not be nullMethod Detail |
---|
public NamespaceContext getNamespaceContext()
public int getSteps()
public void setSteps(java.util.List<PropertyPathStep> steps)
steps
- a list of PropertyPathStep
spublic java.lang.String getAsString()
public PropertyPathStep getStep(int i)
PropertyPathStep
at the given index.
i
-
PropertyPathStep
at the given indexpublic java.util.List<PropertyPathStep> getAllSteps()
PropertyPath
.
PropertyPath
public void append(PropertyPathStep last)
PropertyPathStep
to the end of the path.
last
- PropertyPathStep
to addpublic void prepend(PropertyPathStep first)
PropertyPathStep
to the beginning of the path.
first
- PropertyPathStep
to addpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(PropertyPath that)
TODO use really unique string representations (namespaces!) + cache them
compareTo
in interface java.lang.Comparable<PropertyPath>
that
- the PropertyPath to be compared
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org