## Uses of Interface
org.apache.axiom.om.OMNamespace

- Packages that use OMNamespace
  Package | Description
  --- | ---
  org.apache.axiom.om | Contains core interfaces of the Axiom API.
  org.apache.axiom.soap |

- - ### Uses of OMNamespace in org.apache.axiom.om

    Methods in org.apache.axiom.om that return OMNamespace
    Modifier and Type | Method | Description
    --- | --- | ---
    `OMNamespace` | OMFactory.`createOMNamespace​(String uri, String prefix)` | Create an `OMNamespace` instance or retrieve an existing one if the factory supports pooling.
    `OMNamespace` | OMElement.`declareDefaultNamespace​(String uri)` | Add a namespace declaration for the default namespace to this element.
    `OMNamespace` | OMElement.`declareNamespace​(String uri, String prefix)` | Add a namespace declaration for the given namespace URI to this element, optionally generating a prefix for that namespace.
    `OMNamespace` | OMElement.`declareNamespace​(OMNamespace namespace)` | Declares a namespace with the element as its scope.
    `OMNamespace` | OMElement.`findNamespace​(String uri, String prefix)` | Finds a namespace with the given uri and prefix, in the scope of the hierarchy.
    `OMNamespace` | OMElement.`findNamespaceURI​(String prefix)` | Checks for a namespace in the context of this element with the given prefix and returns the relevant namespace object, if available.
    `OMNamespace` | OMElement.`getDefaultNamespace()` | Get the default namespace in scope on this element.
    `OMNamespace` | OMNamedInformationItem.`getNamespace()` | Get the namespace this information item is part of.
    `OMNamespace` | OMText.`getNamespace()` | Deprecated. This API is going away.

    Methods in org.apache.axiom.om that return types with arguments of type OMNamespace
    Modifier and Type | Method | Description
    --- | --- | ---
    `Iterator<OMNamespace>` | OMElement.`getAllDeclaredNamespaces()` | Returns an iterator for all of the namespaces declared on this element.
    `Iterator<OMNamespace>` | OMElement.`getNamespacesInScope()` | Get an iterator that returns all namespaces in scope for this element.

    Methods in org.apache.axiom.om with parameters of type OMNamespace
    Modifier and Type | Method | Description
    --- | --- | ---
    `OMAttribute` | OMElement.`addAttribute​(String localName, String value, OMNamespace ns)` | Adds an attribute to this element.
    `OMAttribute` | OMFactory.`createOMAttribute​(String localName, OMNamespace ns, String value)` | Create an attribute with the given name and value.
    `OMElement` | OMFactory.`createOMElement​(String localName, OMNamespace ns)` | Create an element with the given name.
    `OMElement` | OMFactory.`createOMElement​(String localName, OMNamespace ns, OMContainer parent)` | Create an element with the given name and parent.
    `OMSourcedElement` | OMFactory.`createOMElement​(OMDataSource source, String localName, OMNamespace ns)` | Create a sourced element with a known local name and namespace URI.
    `OMNamespace` | OMElement.`declareNamespace​(OMNamespace namespace)` | Declares a namespace with the element as its scope.
    `void` | OMElement.`setNamespace​(OMNamespace namespace)` | Set the namespace for this element.
    `void` | OMNamedInformationItem.`setNamespace​(OMNamespace namespace, boolean declare)` | Set the namespace for this information item.
    `void` | OMElement.`setNamespaceWithNoFindInCurrentScope​(OMNamespace namespace)` | Deprecated. Use `OMNamedInformationItem.setNamespace(OMNamespace, boolean)` with `declare` set to `false`.
    `void` | OMAttribute.`setOMNamespace​(OMNamespace omNamespace)` | Deprecated. Use `OMNamedInformationItem.setNamespace(OMNamespace, boolean)` instead.

  - ### Uses of OMNamespace in org.apache.axiom.soap

    Methods in org.apache.axiom.soap that return OMNamespace
    Modifier and Type | Method | Description
    --- | --- | ---
    `OMNamespace` | SOAPBody.`getFirstElementNS()` | Retrieves the OMNamespace of the first element in the body.
    `OMNamespace` | SOAPFactory.`getNamespace()` | Get the envelope namespace for the SOAP version used by this factory.
    `OMNamespace` | SOAPEnvelope.`getSOAPBodyFirstElementNS()` | Retrieves the OMNamespace of the first element in the body.

    Methods in org.apache.axiom.soap with parameters of type OMNamespace
    Modifier and Type | Method | Description
    --- | --- | ---
    `SOAPHeaderBlock` | SOAPHeader.`addHeaderBlock​(String localName, OMNamespace ns)` | Creates a new `SOAPHeaderBlock` object initialized with the specified name and adds it to this `SOAPHeader` object.
    `SOAPEnvelope` | SOAPFactory.`createSOAPEnvelope​(OMNamespace ns)` | Create a SOAP envelope with the given namespace.
    `SOAPHeaderBlock` | SOAPFactory.`createSOAPHeaderBlock​(String localName, OMNamespace ns)` |
    `SOAPHeaderBlock` | SOAPFactory.`createSOAPHeaderBlock​(String localName, OMNamespace ns, OMDataSource source)` | Create a `SOAPHeaderBlock` from an `OMDataSource` with a known local name and namespace URI.
    `SOAPHeaderBlock` | SOAPFactory.`createSOAPHeaderBlock​(String localName, OMNamespace ns, SOAPHeader parent)` |