Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.soa.esb.util
Class XPathNamespaceContext

    java.lang.Object
      org.jboss.soa.esb.util.XPathNamespaceContext

All Implemented Interfaces:
  javax.xml.namespace.NamespaceContext

    public class XPathNamespaceContext

extends java.lang.Object
implements javax.xml.namespace.NamespaceContext

A simple namespace context used for XPath expression evaluation.

Author:
  Kevin Conner

Constructor Summary
`XPathNamespaceContext()`

Method Summary
`java.lang.String` | `getNamespaceURI(java.lang.String prefix)` Get the namespace URI for the specified prefix.
`java.lang.String` | `getPrefix(java.lang.String namespaceURI)` Get the prefix for the specified namespace URI.
`java.util.Iterator<?>` | `getPrefixes(java.lang.String namespaceURI)` Get the prefixes for the specified namespace URI.
`void` | `setMapping(java.lang.String prefix, java.lang.String uri)` Initialise the prefix/namespace URI mapping.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### XPathNamespaceContext

    public XPathNamespaceContext()

Method Detail

### getNamespaceURI

    public java.lang.String getNamespaceURI(java.lang.String prefix)

  Get the namespace URI for the specified prefix.

  Specified by:
    `getNamespaceURI` in interface `javax.xml.namespace.NamespaceContext`
  Parameters:
    `The` - prefix.
  Returns:
    The associated namespace URI.

### getPrefix

    public java.lang.String getPrefix(java.lang.String namespaceURI)

  Get the prefix for the specified namespace URI.

  Specified by:
    `getPrefix` in interface `javax.xml.namespace.NamespaceContext`
  Parameters:
    `The` - namespace URI.
  Returns:
    The associated prefix.

### getPrefixes

    public java.util.Iterator<?> getPrefixes(java.lang.String namespaceURI)

  Get the prefixes for the specified namespace URI.

  Specified by:
    `getPrefixes` in interface `javax.xml.namespace.NamespaceContext`
  Parameters:
    `The` - namespace URI.
  Returns:
    The iterator of the associated prefixes.

### setMapping

    public void setMapping(java.lang.String prefix,
                           java.lang.String uri)

  Initialise the prefix/namespace URI mapping.

  Parameters:
    `prefix` - The prefix.
    `uri` - The namespace URI.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD