org.apache.axiom.om.impl

## Interface OMElementEx

- All Superinterfaces:
    OMContainer, OMContainerEx, OMElement, OMInformationItem, OMNamedInformationItem, OMNode, OMNodeEx, OMSerializable

      public interface OMElementEx
      extends OMElement, OMNodeEx, OMContainerEx

  Interface that is used internally by Axiom and that should not be considered being part of the public API.

- - ### Field Summary

    - ### Fields inherited from interface org.apache.axiom.om.OMNode

      `CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `OMNamespace` | `addNamespaceDeclaration(String uri, String prefix)` Adds a namespace declaration without doing any additional checks.
    `void` | `detachAndDiscardParent()`

    - ### Methods inherited from interface org.apache.axiom.om.OMElement

      `addAttribute, addAttribute, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getAttributeValue, getChildElements, getDefaultNamespace, getFirstElement, getLineNumber, getNamespaceContext, getNamespacesInScope, getText, getTextAsQName, getTextAsStream, removeAttribute, resolveQName, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setLineNumber, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, setText, toString, toStringWithConsume, undeclarePrefix, writeTextTo`

    - ### Methods inherited from interface org.apache.axiom.om.OMNamedInformationItem

      `getLocalName, getNamespace, getNamespaceURI, getPrefix, getQName, hasName, setLocalName, setNamespace`

    - ### Methods inherited from interface org.apache.axiom.om.impl.OMNodeEx

      `setComplete`

    - ### Methods inherited from interface org.apache.axiom.om.OMNode

      `buildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore`

    - ### Methods inherited from interface org.apache.axiom.om.impl.OMContainerEx

      `addChild, discarded, setComplete`

    - ### Methods inherited from interface org.apache.axiom.om.OMContainer

      `addChild, getBuilder, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDescendants, getFirstChildWithName, getFirstOMChild, getSAXResult, getSAXSource, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeChildren`

    - ### Methods inherited from interface org.apache.axiom.om.OMSerializable

      `build, close, isComplete, serialize, serialize, serializeAndConsume`

    - ### Methods inherited from interface org.apache.axiom.om.OMInformationItem

      `clone, getOMFactory`

- - ### Method Detail

    - #### addNamespaceDeclaration

          OMNamespace addNamespaceDeclaration(String uri,
                                              String prefix)

      Adds a namespace declaration without doing any additional checks. This method is used internally by the builder (which can safely assume that the data received from the parser is well formed with respect to namespaces).

      In contrast to `OMElement.declareNamespace(String, String)` this method can be used to declare the default namespace.

      Parameters:
        `uri` - the namespace to declare; must not be `null`
        `prefix` - the prefix to associate with the given namespace; must not be `null`
      Returns:
        the created namespace information item

    - #### detachAndDiscardParent

          void detachAndDiscardParent()

Copyright © The Apache Software Foundation. All Rights Reserved.