|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xcap.NodeSelector
public class NodeSelector
The NodeSelector class is used to parse and represent the node selector that can be appended to the end of an XCAP URI. The API allows for easy retrieval and generation of the various parts of the node selector.
Nested Class Summary | |
---|---|
static class |
NodeSelector.AttrTest
The AttrTest is an attribute test condition used to match an element with a specific attribute value. |
static class |
NodeSelector.ElementStep
Represent element steps of the node selector not including the terminal selector. |
class |
NodeSelector.NamespaceBindings
Represents the namespace bindings that are defined in the query portion of the request |
static class |
NodeSelector.TerminalSelector
The TerminalSelector identifies either an attribute, the namespace, or extension of the last element step of the node selector. |
Field Summary | |
---|---|
protected java.util.LinkedList<NodeSelector.ElementStep> |
elementSteps
|
protected NodeSelector.NamespaceBindings |
namespaceBindings
|
protected java.lang.String |
nodeSelector
|
protected NodeSelector.TerminalSelector |
terminalSelector
|
Constructor Summary | |
---|---|
NodeSelector(java.lang.String nodeSelector)
Constructs a node selector based on the string representation |
|
NodeSelector(java.lang.String nodeSelector,
java.lang.String defaultNamespace)
Constructs a node selector based on the string representation |
Method Summary | |
---|---|
int |
compareTo(NodeSelector aNodeSelector)
Compares this NodeSelector to another NodeSelector. |
boolean |
equals(java.lang.Object o)
|
java.util.List<NodeSelector.ElementStep> |
getElementSteps()
Returns the list of element steps that composes the node selector. |
NodeSelector.ElementStep |
getLastElementStep()
Returns the last element step. |
NodeSelector.NamespaceBindings |
getNamespaceBindings()
Returns the namespace bindings |
NodeSelector.ElementStep |
getParentElementStep(NodeSelector.ElementStep childStep)
Returns the parent element step of a child element step. |
NodeSelector.TerminalSelector |
getTerminalSelector()
Returns the terminal selector if it exists. |
int |
hashCode()
|
boolean |
parse(org.w3c.dom.Document document)
Parse the document based on the NodeSelector. |
java.lang.String |
toString()
|
java.lang.String |
toStringWithNsBindings()
Returns the NodeSelector with the namespace binding declaration |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String nodeSelector
protected java.util.LinkedList<NodeSelector.ElementStep> elementSteps
protected NodeSelector.TerminalSelector terminalSelector
protected NodeSelector.NamespaceBindings namespaceBindings
Constructor Detail |
---|
public NodeSelector(java.lang.String nodeSelector) throws java.net.MalformedURLException
nodeSelector
-
java.net.MalformedURLException
public NodeSelector(java.lang.String nodeSelector, java.lang.String defaultNamespace) throws java.net.MalformedURLException
nodeSelector
-
java.net.MalformedURLException
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringWithNsBindings()
public java.util.List<NodeSelector.ElementStep> getElementSteps()
public NodeSelector.ElementStep getLastElementStep()
public NodeSelector.ElementStep getParentElementStep(NodeSelector.ElementStep childStep)
childStep
- The child element step.
public NodeSelector.TerminalSelector getTerminalSelector()
public NodeSelector.NamespaceBindings getNamespaceBindings()
public boolean parse(org.w3c.dom.Document document) throws InvalidNodeSelectorException
document
- The document to parse using the NodeSelector
InvalidNodeSelectorException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(NodeSelector aNodeSelector)
aNodeSelector
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |