|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectXPathUtil.Step
public static class XPathUtil.Step
Constructor Summary | |
---|---|
XPathUtil.Step(QName name,
boolean isXmlAttribute,
String predicate)
|
|
XPathUtil.Step(QName name,
int index)
Creates a "property" xpath step (i.e. isXmlAttribute() == false). |
|
XPathUtil.Step(QName name,
int index,
boolean isXmlAttribute)
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. |
|
XPathUtil.Step(QName name,
int index,
boolean isXmlAttribute,
boolean isIndexed)
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 | |
---|---|
XPathUtil.Step |
clone()
Creates and returns a copy of this object. |
boolean |
equals(Object o)
|
boolean |
equalsIgnoreIndex(XPathUtil.Step other)
Compares this Step with another for equivalence ignoring the steps indexes. |
int |
getIndex()
|
QName |
getName()
|
String |
getPredicate()
|
int |
hashCode()
|
boolean |
isIndexed()
|
boolean |
isXmlAttribute()
Flag that indicates that this single step refers to an "attribute" rather than a "property". |
void |
setIndex(int index)
|
String |
toString()
|
Methods inherited from class Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XPathUtil.Step(QName name, int index)
name
- index
- public XPathUtil.Step(QName name, int index, boolean isXmlAttribute)
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)
NullPointerException
- if name==null
IllegalArgumentException
- if index < 1
public XPathUtil.Step(QName name, int index, boolean isXmlAttribute, boolean isIndexed)
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
NullPointerException
- if name==null
IllegalArgumentException
- if index < 1
public XPathUtil.Step(QName name, boolean isXmlAttribute, String predicate)
Method Detail |
---|
public boolean equalsIgnoreIndex(XPathUtil.Step other)
hisStep
-
public int getIndex()
public String getPredicate()
public boolean isIndexed()
public QName getName()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public XPathUtil.Step clone()
Cloneable
clone
in class Object
Object.clone()
public boolean isXmlAttribute()
I.e. it was created from the last step of an expression like
foo/bar@attribute
.
public void setIndex(int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |