com.ibm.xcap
Class NodeSelector.NamespaceBindings

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

public class NodeSelector.NamespaceBindings
extends java.lang.Object

Represents the namespace bindings that are defined in the query portion of the request


Field Summary
protected  java.util.HashMap<java.lang.String,java.lang.String> bindings
           
protected  java.lang.String queryString
           
static java.lang.String XMLNS
           
 
Constructor Summary
NodeSelector.NamespaceBindings()
          Constructs an empty map of namespace bindings
NodeSelector.NamespaceBindings(java.lang.String queryString)
          Constructor for the NamespaceBindings
 
Method Summary
 java.lang.String getNamespace(java.lang.String prefix)
          Returns the namespace of the prefix
 java.util.Iterator<java.lang.String> getPrefixes()
          Returns an iterator of prefixes
 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

queryString

protected java.lang.String queryString

bindings

protected java.util.HashMap<java.lang.String,java.lang.String> bindings
Constructor Detail

NodeSelector.NamespaceBindings

public NodeSelector.NamespaceBindings()
Constructs an empty map of namespace bindings


NodeSelector.NamespaceBindings

public NodeSelector.NamespaceBindings(java.lang.String queryString)
                               throws java.net.MalformedURLException
Constructor for the NamespaceBindings

Parameters:
queryString -
Throws:
java.net.MalformedURLException
Method Detail

toString

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

getNamespace

public java.lang.String getNamespace(java.lang.String prefix)
Returns the namespace of the prefix

Parameters:
prefix - The prefix to lookup
Returns:
Returns the namespace of the prefix

getPrefixes

public java.util.Iterator<java.lang.String> getPrefixes()
Returns an iterator of prefixes

Returns:
Returns an iterator of prefixes