Package org.geotools.data.complex.util
Class XPathUtil.Step
Object
Step
- Enclosing class:
- XPathUtil
- Author:
- Gabriel Roldan
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a "property" xpath step (i.e. isXmlAttribute() == false).Creates an xpath step for the given qualified name and index; and the given flag to indicate if it it an "attribute" or "property" step.Creates an xpath step for the given qualified name and index; and the given flag to indicate if it it an "attribute" or "property" step. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.boolean
boolean
equalsIgnoreIndex
(XPathUtil.Step other) Compares this Step with another for equivalence ignoring the steps indexes.int
getIndex()
getName()
int
hashCode()
boolean
boolean
Flag that indicates that this single step refers to an "attribute" rather than a "property".void
setIndex
(int index) toString()
-
Constructor Details
-
Step
Creates a "property" xpath step (i.e. isXmlAttribute() == false). -
Step
Creates an xpath step for the given qualified name and index; and the given flag to indicate if it it an "attribute" or "property" step.- Parameters:
name
- the qualified name of the step (name should include prefix to be reflected in toString())index
- the index (indexing starts at 1 for Xpath) of the stepisXmlAttribute
- whether the step referers to an "attribute" or a "property" (like for attributes and elements in xml)- Throws:
NullPointerException
- ifname==null
IllegalArgumentException
- ifindex < 1
-
Step
Creates an xpath step for the given qualified name and index; and the given flag to indicate if it it an "attribute" or "property" step.- Parameters:
name
- the qualified name of the step (name should include prefix to be reflected in toString())index
- the index (indexing starts at 1 for Xpath) of the stepisXmlAttribute
- whether the step referers to an "attribute" or a "property" (like for attributes and elements in xml)isIndexed
- whether or not the index is to be shown in the string representation even if index = 1- Throws:
NullPointerException
- ifname==null
IllegalArgumentException
- ifindex < 1
-
Step
-
-
Method Details
-
equalsIgnoreIndex
Compares this Step with another for equivalence ignoring the steps indexes. -
getIndex
public int getIndex() -
getPredicate
-
isIndexed
public boolean isIndexed() -
getName
-
toString
-
equals
-
hashCode
public int hashCode() -
clone
Description copied from interface:Cloneable
Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. -
isXmlAttribute
public boolean isXmlAttribute()Flag that indicates that this single step refers to an "attribute" rather than a "property".I.e. it was created from the last step of an expression like
foo/bar@attribute
. -
setIndex
public void setIndex(int index)
-