com.ibm.xcap
Class NodeSelector.AttrTest

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

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

The AttrTest is an attribute test condition used to match an element with a specific attribute value.


Field Summary
protected  java.lang.String attrTest
           
protected  org.w3c.dom.Attr foundAttr
          The found attribute in the element *
protected  java.lang.String name
           
protected  java.lang.String namespace
           
protected  java.lang.String nsPrefix
           
protected  java.lang.String value
           
 
Constructor Summary
NodeSelector.AttrTest(java.lang.String attrTest, java.lang.String defaultNamespace)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 org.w3c.dom.Attr getAttribute()
          Returns the found attribute
 java.lang.String getName()
          Returns the name of the attribute
 java.lang.String getNsPrefix()
          Return the namespace prefix of the attribute
 java.lang.String getValue()
          Returns the value of the attribute
 int hashCode()
           
protected  boolean isMatch(org.w3c.dom.Element element)
          Tests whether the element matches the attribute test
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

namespace

protected java.lang.String namespace

attrTest

protected java.lang.String attrTest

nsPrefix

protected java.lang.String nsPrefix

name

protected java.lang.String name

value

protected java.lang.String value

foundAttr

protected org.w3c.dom.Attr foundAttr
The found attribute in the element *

Constructor Detail

NodeSelector.AttrTest

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

getNsPrefix

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

Returns:
Return the namespace prefix of the attribute

getName

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

Returns:
Returns the name of the attribute

getValue

public java.lang.String getValue()
Returns the value of the attribute

Returns:
Returns the value of the attribute

toString

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

getAttribute

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

Returns:
Returns the found attribute

isMatch

protected boolean isMatch(org.w3c.dom.Element element)
Tests whether the element matches the attribute test

Parameters:
element - The element to match
Returns:
Returns true if the attribute test matches the element

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object