com.ibm.xcap
Class NodeSelector.TerminalSelector

java.lang.Object
  extended by com.ibm.xcap.NodeSelector.TerminalSelector
Enclosing class:
NodeSelector

public static class NodeSelector.TerminalSelector
extends java.lang.Object

The TerminalSelector identifies either an attribute, the namespace, or extension of the last element step of the node selector.


Field Summary
protected  java.lang.String attrName
           
protected  java.lang.String declaredNamespaces
           
protected  org.w3c.dom.Attr foundAttr
           
protected  java.lang.String namespace
           
protected  java.lang.String nsPrefix
           
protected  java.lang.String terminal
           
static int TERMINAL_TYPE_ATTR
           
static int TERMINAL_TYPE_NAMESPACE
           
static int TERMINAL_TYPE_NAMESPACE_ATTR
           
protected  int terminalType
           
static java.lang.String XMLNS
           
 
Constructor Summary
NodeSelector.TerminalSelector(java.lang.String terminal, java.lang.String defaultNamespace)
           
 
Method Summary
 org.w3c.dom.Attr getAttribute()
          Returns the found attribute
 java.lang.String getAttrName()
          Returns the name of the element attribute
 java.lang.String getDeclaredNamespaces()
          If a namespace terminal selector, then this returns the declared namespaces
 java.lang.String getNsPrefix()
          Return the namespace prefix of the attribute
 int getType()
          Returns the type of terminal selector
protected  boolean isMatch(org.w3c.dom.Element element)
          Tests whether the element matches the terminal selector
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XMLNS

public static final java.lang.String XMLNS
See Also:
Constant Field Values

TERMINAL_TYPE_ATTR

public static final int TERMINAL_TYPE_ATTR
See Also:
Constant Field Values

TERMINAL_TYPE_NAMESPACE

public static final int TERMINAL_TYPE_NAMESPACE
See Also:
Constant Field Values

TERMINAL_TYPE_NAMESPACE_ATTR

public static final int TERMINAL_TYPE_NAMESPACE_ATTR
See Also:
Constant Field Values

terminal

protected java.lang.String terminal

terminalType

protected int terminalType

nsPrefix

protected java.lang.String nsPrefix

attrName

protected java.lang.String attrName

foundAttr

protected org.w3c.dom.Attr foundAttr

namespace

protected java.lang.String namespace

declaredNamespaces

protected java.lang.String declaredNamespaces
Constructor Detail

NodeSelector.TerminalSelector

public NodeSelector.TerminalSelector(java.lang.String terminal,
                                     java.lang.String defaultNamespace)
                              throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException
Method Detail

getAttrName

public java.lang.String getAttrName()
Returns the name of the element attribute

Returns:
Returns the name of the element attribute

getAttribute

public org.w3c.dom.Attr getAttribute()
Returns the found attribute

Returns:
Returns the found attribute

getNsPrefix

public java.lang.String getNsPrefix()
Return the namespace prefix of the attribute

Returns:
Return the namespace prefix of the attribute

getType

public int getType()
Returns the type of terminal selector

Returns:
Returns the type of terminal selector

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isMatch

protected boolean isMatch(org.w3c.dom.Element element)
Tests whether the element matches the terminal selector

Parameters:
element - The element to match
Returns:
Returns true if the terminal selector matches the element

getDeclaredNamespaces

public java.lang.String getDeclaredNamespaces()
If a namespace terminal selector, then this returns the declared namespaces

Returns:
If a namespace terminal selector, then this returns the declared namespaces. Null if not.