|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xcap.NodeSelector.ElementStep
public static class NodeSelector.ElementStep
Represent element steps of the node selector not including the terminal selector. Essentially an element defined between two slashes.
Field Summary | |
---|---|
protected NodeSelector.AttrTest |
attrTest
The attribute test for the element step * |
protected org.w3c.dom.Element |
foundElement
If a document is parsed and an Element is found for the element step * |
protected boolean |
matchAllElements
If the name of the step matches all elements * |
protected java.lang.String |
name
The name of the element step * |
protected java.lang.String |
namespace
The namespace if the namespace binding is found |
protected java.lang.String |
nsPrefix
The namespace prefix for the element step * |
protected int |
position
The element position * |
protected int |
qualifier
The qualifier type * |
static int |
QUALIFIER_TYPE_BY_ATTRIBUTE
Qualifier by attribute specified for the element step * |
static int |
QUALIFIER_TYPE_BY_POSITION
Qualifier by position specified for the element step * |
static int |
QUALIFIER_TYPE_BY_POSITION_AND_ATTRIBUTE
Both qualifier by attribute and position specified for the element step * |
static int |
QUALIFIER_TYPE_NONE
No qualifier specified for the element step * |
protected java.lang.String |
step
The String step in the NodeSelector * |
Constructor Summary | |
---|---|
NodeSelector.ElementStep(java.lang.String step,
java.lang.String defaultNamespace)
Constructs an element step |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
protected org.w3c.dom.Element |
findMatchingChild(org.w3c.dom.Element parentElement)
Finds the matching child element for this element step |
NodeSelector.AttrTest |
getAttrTest()
Returns the attribute test for the element |
org.w3c.dom.Element |
getElement()
Returns the found Element after parsing a document. |
java.lang.String |
getName()
Returns the name of the element |
java.lang.String |
getNsPrefix()
Returns the namespace prefix of the element |
int |
getPosition()
Returns the position of the element |
int |
getQualifierType()
Returns the qualifier type |
int |
hashCode()
|
protected boolean |
isMatch(org.w3c.dom.Element element)
Checks if the element matches this step. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int QUALIFIER_TYPE_NONE
public static final int QUALIFIER_TYPE_BY_POSITION
public static final int QUALIFIER_TYPE_BY_ATTRIBUTE
public static final int QUALIFIER_TYPE_BY_POSITION_AND_ATTRIBUTE
protected java.lang.String step
protected java.lang.String nsPrefix
protected java.lang.String name
protected int qualifier
protected int position
protected NodeSelector.AttrTest attrTest
protected org.w3c.dom.Element foundElement
protected boolean matchAllElements
protected java.lang.String namespace
Constructor Detail |
---|
public NodeSelector.ElementStep(java.lang.String step, java.lang.String defaultNamespace) throws java.net.MalformedURLException
step
- A step in the node selector that represents an element
java.net.MalformedURLException
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public NodeSelector.AttrTest getAttrTest()
public int getPosition()
public java.lang.String getNsPrefix()
public java.lang.String getName()
public int getQualifierType()
public org.w3c.dom.Element getElement()
protected org.w3c.dom.Element findMatchingChild(org.w3c.dom.Element parentElement) throws InvalidNodeSelectorException
parentElement
- The parent Element.
InvalidNodeSelectorException
protected boolean isMatch(org.w3c.dom.Element element)
element
- The element to match.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |