org.apache.axis2.om.impl.dom
Class ElementImpl

java.lang.Object
  extended byorg.apache.axis2.om.impl.dom.NodeImpl
      extended byorg.apache.axis2.om.impl.dom.ChildNode
          extended byorg.apache.axis2.om.impl.dom.ParentNode
              extended byorg.apache.axis2.om.impl.dom.ElementImpl
All Implemented Interfaces:
Cloneable, Element, Node, NodeList, OMConstants, OMContainer, OMContainerEx, OMElement, OMNode, OMNodeEx
Direct Known Subclasses:
SOAPElement, SOAPHeaderBlockImpl

public class ElementImpl
extends ParentNode
implements Element, OMElement, OMConstants

Implementation of the org.w3c.dom.Element and org.apache.axis2.om.Element interfaces.


Field Summary
protected  String localName
           
protected  OMNamespace namespace
           
 
Fields inherited from class org.apache.axis2.om.impl.dom.ParentNode
firstChild, lastChild
 
Fields inherited from class org.apache.axis2.om.impl.dom.ChildNode
nextSibling, parentNode, previousSibling
 
Fields inherited from class org.apache.axis2.om.impl.dom.NodeImpl
builder, done, FIRSTCHILD, flags, nodeType, NORMALIZED, OWNED, ownerNode, READONLY, SPECIFIED
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface org.apache.axis2.om.OMNode
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE
 
Fields inherited from interface org.apache.axis2.om.OMConstants
ARRAY_ITEM_LOCALNAME, ARRAY_ITEM_NS_PREFIX, ARRAY_ITEM_NSURI, ARRAY_ITEM_QNAME, DEFAULT_CHAR_SET_ENCODING, DEFAULT_XML_VERSION, PULL_TYPE_BUILDER, PUSH_TYPE_BUILDER, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI
 
Constructor Summary
ElementImpl(DocumentImpl ownerDocument, String tagName)
           
ElementImpl(DocumentImpl ownerDocument, String tagName, NamespaceImpl ns)
          Creates a new element with the namespace.
ElementImpl(DocumentImpl ownerDocument, String tagName, NamespaceImpl ns, OMXMLParserWrapper builder)
           
ElementImpl(ParentNode parentNode, String tagName, NamespaceImpl ns)
           
ElementImpl(ParentNode parentNode, String tagName, NamespaceImpl ns, OMXMLParserWrapper builder)
           
ElementImpl(String tagName, NamespaceImpl ns, OMXMLParserWrapper builder)
           
 
Method Summary
 OMAttribute addAttribute(OMAttribute attr)
          Adds an attribute to this element.
 OMAttribute addAttribute(String attributeName, String value, OMNamespace ns)
          The behaviour of this is the same as org.w3c.dom.Element#setAttributeNS
 Node cloneNode(boolean deep)
           
 OMElement cloneOMElement()
          Creates a clone which belongs to a new document.
 OMNamespace declareNamespace(OMNamespace namespace)
          Allows overriding an existing declaration if the same prefix was used.
 OMNamespace declareNamespace(String uri, String prefix)
          Allows overriding an existing declaration if the same prefix was used.
 void discard()
          Discards a node.
 OMNamespace findNamespace(String uri, String prefix)
          Finds a namespace with the given uri and prefix, in the scope of the hierarchy.
 OMNamespace 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.
 Iterator getAllAttributes()
          Returns a list of OMAttributes.
 Iterator getAllDeclaredNamespaces()
          Returns an iterator for all of the namespaces declared on this element.
 OMAttribute getAttribute(QName qname)
          Returns a named attribute if present.
 String getAttribute(String name)
          Looks in the local list of attributes and returns if found.
 Attr getAttributeNode(String name)
          Retrieves an attribute node by name.
 Attr getAttributeNodeNS(String namespaceURI, String localName)
          Retrieves an attribute node by local name and namespace URI.
 String getAttributeNS(String namespaceURI, String localName)
          Retrieves an attribute value by local name and namespace URI.
 NamedNodeMap getAttributes()
          Returns the set of attributes of this node and the namespace declarations available.
 String getAttributeValue(QName qname)
          Returns a named attribute's value, if present.
 OMXMLParserWrapper getBuilder()
          Returns the builder object.
 Iterator getChildElements()
          Returns a filtered list of children - just the elements.
 NodeList getElementsByTagName(String name)
           
 NodeList getElementsByTagNameNS(String namespaceURI, String localName)
           
 OMElement getFirstElement()
          Returns the first Element node.
 String getLocalName()
          Returns the local name of this element node
 OMNamespace getNamespace()
          Returns the namespace of this element.
 String getNamespaceURI()
          Returns the value of the namespace URI.
 String getNamespaceURI(String prefix)
          Returns the namespace uri, given the prefix.
 OMNode getNextOMSibling()
          Returns the next sibling in document order.
 String getNodeName()
           
 short getNodeType()
           
 String getPrefix()
          Returns the namespace prefix of this element node
 QName getQName()
          Returns the QName of this element.
 TypeInfo getSchemaTypeInfo()
           
 String getTagName()
           
 String getText()
          Gets all the text children and concatinates them to a single string.
 int getType()
          Returns the type of node.
 XMLStreamReader getXMLStreamReader()
          Returns the pull parser that will generate the pull events relevant to THIS element.
 XMLStreamReader getXMLStreamReaderWithoutCaching()
          Returns the pull parser that will generate the pull events relevant to THIS element.
 boolean hasAttribute(String name)
           
 boolean hasAttributeNS(String namespaceURI, String localName)
          Returns whether the given attribute is available or not.
 boolean hasAttributes()
          Returns whether this element contains any attribute or not.
 void removeAttribute(OMAttribute attr)
          Removes an attribute from the element.
 void removeAttribute(String name)
          Removes an attribute by name.
 Attr removeAttributeNode(Attr oldAttr)
          Removes the specified attribute node.
 void removeAttributeNS(String namespaceURI, String localName)
           
 boolean removeNamespace(String prefix)
          Removes a declared namespace given its prefix.
 QName resolveQName(String qname)
          Turn a prefix:local qname string into a proper QName, evaluating it in the OMElement context unprefixed qnames resolve to the local namespace
 void serialize(OMOutputImpl omOutput)
          Serializes the node with caching.
protected  void serialize(OMOutputImpl omOutput, boolean cache)
           
 void serializeAndConsume(OMOutputImpl omOutput)
          Serializes the node without caching.
 void setAttribute(String name, String value)
           
 Attr setAttributeNode(Attr attr)
          Adds a new attribute node.
 Attr setAttributeNodeNS(Attr attr)
           
 void setAttributeNS(String namespaceURI, String qualifiedName, String value)
          Adds a new attribute.
 void setBuilder(OMXMLParserWrapper wrapper)
          Sets the OM builder.
 void setIdAttribute(String arg0, boolean arg1)
           
 void setIdAttributeNode(Attr arg0, boolean arg1)
           
 void setIdAttributeNS(String arg0, String arg1, boolean arg2)
           
 void setLocalName(String localName)
          Sets the local name.
 void setNamespace(OMNamespace namespace)
          Sets the namespace.
protected  void setOwnerDocument(DocumentImpl document)
          Sets the owner document.
 void setText(String text)
          Creates a text node with the given value and adds it to the element.
 void setType(int nodeType)
           
 String toString()
          Overridden toString() for ease of debugging.
 String toStringWithConsume()
          This is a convenience method only.
 
Methods inherited from class org.apache.axis2.om.impl.dom.ParentNode
addChild, buildNext, getChildNodes, getChildren, getChildrenWithName, getFirstChild, getFirstChildWithName, getFirstOMChild, getLastChild, hasChildNodes, insertBefore, removeChild, replaceChild, setFirstChild
 
Methods inherited from class org.apache.axis2.om.impl.dom.ChildNode
detach, getNextSibling, getParent, getParentNode, getPreviousOMSibling, getPreviousSibling, insertSiblingAfter, insertSiblingBefore, setNextOMSibling, setParent, setPreviousOMSibling
 
Methods inherited from class org.apache.axis2.om.impl.dom.NodeImpl
appendChild, build, compareDocumentPosition, getBaseURI, getFeature, getLength, getNodeValue, getOwnerDocument, getTextContent, getUserData, isComplete, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, normalize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeWithCache, setComplete, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 
Methods inherited from interface org.apache.axis2.om.OMElement
setFirstChild
 
Methods inherited from interface org.apache.axis2.om.OMNode
build, detach, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
 
Methods inherited from interface org.apache.axis2.om.OMContainer
addChild, buildNext, getChildren, getChildrenWithName, getFirstChildWithName, getFirstOMChild, isComplete
 
Methods inherited from interface org.apache.axis2.om.impl.OMContainerEx
setComplete
 

Field Detail

namespace

protected OMNamespace namespace

localName

protected String localName
Constructor Detail

ElementImpl

public ElementImpl(DocumentImpl ownerDocument,
                   String tagName)
Parameters:
ownerDocument -

ElementImpl

public ElementImpl(DocumentImpl ownerDocument,
                   String tagName,
                   NamespaceImpl ns)
Creates a new element with the namespace.

Parameters:
ownerDocument -
tagName -
ns -

ElementImpl

public ElementImpl(DocumentImpl ownerDocument,
                   String tagName,
                   NamespaceImpl ns,
                   OMXMLParserWrapper builder)

ElementImpl

public ElementImpl(ParentNode parentNode,
                   String tagName,
                   NamespaceImpl ns)

ElementImpl

public ElementImpl(ParentNode parentNode,
                   String tagName,
                   NamespaceImpl ns,
                   OMXMLParserWrapper builder)

ElementImpl

public ElementImpl(String tagName,
                   NamespaceImpl ns,
                   OMXMLParserWrapper builder)
Method Detail

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface Node

getNodeName

public String getNodeName()
Specified by:
getNodeName in interface Node

getNamespaceURI

public String getNamespaceURI()
Returns the value of the namespace URI.

Specified by:
getNamespaceURI in interface Node
Overrides:
getNamespaceURI in class NodeImpl

getType

public int getType()
            throws OMException
Description copied from interface: OMNode
Returns the type of node.

Specified by:
getType in interface OMNode
Returns:
Returns one of OMNode.ELEMENT_NODE, OMNode.TEXT_NODE, OMNode.CDATA_SECTION_NODE, OMNode.COMMENT_NODE, OMNode.DTD_NODE, OMNode.PI_NODE, OMNode.ENTITY_REFERENCE_NODE, OMNode.SPACE_NODE, or OMNode.TEXT_NODE.
Throws:
OMException

setType

public void setType(int nodeType)
             throws OMException
Specified by:
setType in interface OMNodeEx
Throws:
OMException

getTagName

public String getTagName()
Specified by:
getTagName in interface Element

removeAttribute

public void removeAttribute(String name)
                     throws DOMException
Removes an attribute by name.

Specified by:
removeAttribute in interface Element
Parameters:
name - The name of the attribute to remove
Throws:
DOMException
See Also:
Element.removeAttribute(java.lang.String)

removeAttributeNS

public void removeAttributeNS(String namespaceURI,
                              String localName)
                       throws DOMException
Specified by:
removeAttributeNS in interface Element
Throws:
DOMException

removeAttributeNode

public Attr removeAttributeNode(Attr oldAttr)
                         throws DOMException
Removes the specified attribute node.

Specified by:
removeAttributeNode in interface Element
Throws:
DOMException
See Also:
Element.removeAttributeNode(org.w3c.dom.Attr)

hasAttribute

public boolean hasAttribute(String name)
Specified by:
hasAttribute in interface Element

hasAttributeNS

public boolean hasAttributeNS(String namespaceURI,
                              String localName)
Returns whether the given attribute is available or not.

Specified by:
hasAttributeNS in interface Element
See Also:
Element.hasAttributeNS(java.lang.String, java.lang.String)

getAttribute

public String getAttribute(String name)
Looks in the local list of attributes and returns if found. If the local list is null, returns "".

Specified by:
getAttribute in interface Element
See Also:
Element.getAttribute(java.lang.String)

getAttributeNode

public Attr getAttributeNode(String name)
Retrieves an attribute node by name.

Specified by:
getAttributeNode in interface Element
See Also:
Element.getAttributeNode(java.lang.String)

getAttributeNS

public String getAttributeNS(String namespaceURI,
                             String localName)
Retrieves an attribute value by local name and namespace URI.

Specified by:
getAttributeNS in interface Element
See Also:
Element.getAttributeNS(java.lang.String, java.lang.String)

getAttributeNodeNS

public Attr getAttributeNodeNS(String namespaceURI,
                               String localName)
Retrieves an attribute node by local name and namespace URI.

Specified by:
getAttributeNodeNS in interface Element
See Also:
Element.getAttributeNodeNS(java.lang.String, java.lang.String)

setAttributeNode

public Attr setAttributeNode(Attr attr)
                      throws DOMException
Adds a new attribute node.

Specified by:
setAttributeNode in interface Element
Throws:
DOMException
See Also:
Element.setAttributeNode(org.w3c.dom.Attr)

setAttribute

public void setAttribute(String name,
                         String value)
                  throws DOMException
Specified by:
setAttribute in interface Element
Throws:
DOMException

setAttributeNodeNS

public Attr setAttributeNodeNS(Attr attr)
                        throws DOMException
Specified by:
setAttributeNodeNS in interface Element
Throws:
DOMException

setAttributeNS

public void setAttributeNS(String namespaceURI,
                           String qualifiedName,
                           String value)
                    throws DOMException
Adds a new attribute.

Specified by:
setAttributeNS in interface Element
Throws:
DOMException
See Also:
Element.setAttributeNS(java.lang.String, java.lang.String, java.lang.String)

hasAttributes

public boolean hasAttributes()
Returns whether this element contains any attribute or not.

Specified by:
hasAttributes in interface Node
Overrides:
hasAttributes in class NodeImpl

getElementsByTagNameNS

public NodeList getElementsByTagNameNS(String namespaceURI,
                                       String localName)
Specified by:
getElementsByTagNameNS in interface Element

getElementsByTagName

public NodeList getElementsByTagName(String name)
Specified by:
getElementsByTagName in interface Element

addAttribute

public OMAttribute addAttribute(OMAttribute attr)
Description copied from interface: OMElement
Adds an attribute to this element.

There is no order implied by added attributes.

Specified by:
addAttribute in interface OMElement
Parameters:
attr - The attribute to add.
Returns:
Returns the passed in attribute.
See Also:
(org.apache.axis2.om.OMAttribute)

addAttribute

public OMAttribute addAttribute(String attributeName,
                                String value,
                                OMNamespace ns)
The behaviour of this is the same as org.w3c.dom.Element#setAttributeNS

Specified by:
addAttribute in interface OMElement
Parameters:
attributeName - The "local name" for the attribute.
value - The string value of the attribute.
ns - The namespace has to be one of the in scope namespace. i.e. the passed namespace must be declared in the parent element of this attribute or ancestors of the parent element of the attribute.
Returns:
Returns the added attribute.
See Also:
OMElement.addAttribute(java.lang.String, java.lang.String, org.apache.axis2.om.OMNamespace)

declareNamespace

public OMNamespace declareNamespace(OMNamespace namespace)
Allows overriding an existing declaration if the same prefix was used.

Specified by:
declareNamespace in interface OMElement
Parameters:
namespace - The namespace to declare
Returns:
Returns the namespace parameter passed.
See Also:
(org.apache.axis2.om.OMNamespace)

declareNamespace

public OMNamespace declareNamespace(String uri,
                                    String prefix)
Allows overriding an existing declaration if the same prefix was used.

Specified by:
declareNamespace in interface OMElement
Parameters:
uri - The namespace to declare in the current scope. The caller is expected to ensure that the URI is a valid namespace name.
prefix - The prefix to associate with the given namespace. The caller is expected to ensure that this is a valid XML prefix.
Returns:
Returns the created namespace information item.
See Also:
OMElement.declareNamespace(java.lang.String, java.lang.String)

findNamespace

public OMNamespace findNamespace(String uri,
                                 String prefix)
Description copied from interface: OMElement
Finds a namespace with the given uri and prefix, in the scope of the hierarchy.

Searches from the current element and goes up the hiararchy until a match is found. If no match is found, returns null.

Either prefix or uri should be null. Results are undefined if both are specified.

Specified by:
findNamespace in interface OMElement
Parameters:
uri - The namespace to look for. If this is specified, prefix should be null.
prefix - The prefix to look for. If this is specified, uri should be null.
Returns:
Returns the matching namespace declaration, or null if none was found.
See Also:
OMElement.findNamespace(java.lang.String, java.lang.String)

findNamespaceURI

public OMNamespace findNamespaceURI(String prefix)
Description copied from interface: OMElement
Checks for a namespace in the context of this element with the given prefix and returns the relevant namespace object, if available. If not available, returns null.

Specified by:
findNamespaceURI in interface OMElement
Parameters:
prefix -

getAttribute

public OMAttribute getAttribute(QName qname)
Returns a named attribute if present.

Specified by:
getAttribute in interface OMElement
Parameters:
qname - the qualified name to search for
Returns:
Returns an OMAttribute with the given name if found, or null
See Also:
(javax.xml.namespace.QName)

getAttributeValue

public String getAttributeValue(QName qname)
Returns a named attribute's value, if present.

Specified by:
getAttributeValue in interface OMElement
Parameters:
qname - the qualified name to search for
Returns:
Returns a String containing the attribute value, or null.

getBuilder

public OMXMLParserWrapper getBuilder()
Description copied from interface: OMElement
Returns the builder object.

Specified by:
getBuilder in interface OMElement
Returns:
Returns the builder object used to construct the underlying XML infoset on the fly.

getFirstElement

public OMElement getFirstElement()
Returns the first Element node.

Specified by:
getFirstElement in interface OMElement
Returns:
Returns the first child element of the element, or null if none was found.
See Also:
OMElement.getFirstElement()

getNamespace

public OMNamespace getNamespace()
                         throws OMException
Returns the namespace of this element.

Specified by:
getNamespace in interface OMElement
Returns:
Returns the OMNamespace object associated with this element
Throws:
OMException
See Also:
OMElement.getNamespace()

getQName

public QName getQName()
Returns the QName of this element.

Specified by:
getQName in interface OMElement
Returns:
Returns the QName for the element.
See Also:
OMElement.getQName()

getText

public String getText()
Gets all the text children and concatinates them to a single string.

Specified by:
getText in interface OMElement
Returns:
Returns a String representing the concatenation of the child text nodes.
See Also:
OMElement.getText()

removeAttribute

public void removeAttribute(OMAttribute attr)
Removes an attribute from the element.

Specified by:
removeAttribute in interface OMElement
Parameters:
attr -
See Also:
(org.apache.axis2.om.OMAttribute)

setBuilder

public void setBuilder(OMXMLParserWrapper wrapper)
Sets the OM builder.

Specified by:
setBuilder in interface OMElement
Parameters:
wrapper -
See Also:
(org.apache.axis2.om.OMXMLParserWrapper)

setLocalName

public void setLocalName(String localName)
Sets the local name.

Specified by:
setLocalName in interface OMElement
Parameters:
localName -
See Also:
OMElement.setLocalName(java.lang.String)

setNamespace

public void setNamespace(OMNamespace namespace)
Sets the namespace.

Specified by:
setNamespace in interface OMElement
Parameters:
namespace -
See Also:
(org.apache.axis2.om.OMNamespace)

setText

public void setText(String text)
Creates a text node with the given value and adds it to the element.

Specified by:
setText in interface OMElement
Parameters:
text -
See Also:
OMElement.setText(java.lang.String)

serialize

public void serialize(OMOutputImpl omOutput)
               throws XMLStreamException
Description copied from interface: OMNodeEx
Serializes the node with caching.

Specified by:
serialize in interface OMNodeEx
Parameters:
omOutput -
Throws:
XMLStreamException
See Also:
OMNodeEx.serialize(org.apache.axis2.om.impl.OMOutputImpl)

serializeAndConsume

public void serializeAndConsume(OMOutputImpl omOutput)
                         throws XMLStreamException
Description copied from interface: OMNodeEx
Serializes the node without caching.

Specified by:
serializeAndConsume in interface OMNodeEx
Parameters:
omOutput -
Throws:
XMLStreamException

serialize

protected void serialize(OMOutputImpl omOutput,
                         boolean cache)
                  throws XMLStreamException
Throws:
XMLStreamException

getXMLStreamReaderWithoutCaching

public XMLStreamReader getXMLStreamReaderWithoutCaching()
Description copied from interface: OMElement
Returns the pull parser that will generate the pull events relevant to THIS element.

Caching is off.

Specified by:
getXMLStreamReaderWithoutCaching in interface OMElement
Returns:
Returns an XMLStreamReader relative to this element, with no caching.

getXMLStreamReader

public XMLStreamReader getXMLStreamReader()
Description copied from interface: OMElement
Returns the pull parser that will generate the pull events relevant to THIS element.

Caching is on.

Specified by:
getXMLStreamReader in interface OMElement
Returns:
Returns an XMLStreamReader relative to this element.

toStringWithConsume

public String toStringWithConsume()
                           throws XMLStreamException
Description copied from interface: OMElement
This is a convenience method only. This basically serializes the given OMElement to a String but will NOT build the OMTree in the memory. So you are at your own risk of losing information.

Specified by:
toStringWithConsume in interface OMElement
Throws:
XMLStreamException

toString

public String toString()
Overridden toString() for ease of debugging.

Specified by:
toString in interface OMElement
See Also:
Object.toString()

getChildElements

public Iterator getChildElements()
Description copied from interface: OMElement
Returns a filtered list of children - just the elements.

Specified by:
getChildElements in interface OMElement
Returns:
Returns an iterator over the child elements.
See Also:
OMContainer.getChildren(), OMContainer.getChildrenWithName(javax.xml.namespace.QName)

getAllDeclaredNamespaces

public Iterator getAllDeclaredNamespaces()
                                  throws OMException
Description copied from interface: OMElement
Returns an iterator for all of the namespaces declared on this element.

If you're interested in all namespaces in scope, you need to call this function for all parent elements as well. Note that the iterator may be invalidated by any call to either declareNamespace function.

Specified by:
getAllDeclaredNamespaces in interface OMElement
Returns:
Returns an iterator over the OMNamespace items declared on the current element.
Throws:
OMException
See Also:
OMElement.getAllDeclaredNamespaces()

getAllAttributes

public Iterator getAllAttributes()
Description copied from interface: OMElement
Returns a list of OMAttributes.

Note that the iterator returned by this function will be invalidated by any addAttribute call.

Specified by:
getAllAttributes in interface OMElement
Returns:
Returns an Iterator of OMAttribute items associated with the element.
See Also:
OMElement.getAllAttributes()

getLocalName

public String getLocalName()
Returns the local name of this element node

Specified by:
getLocalName in interface Node
Overrides:
getLocalName in class NodeImpl
See Also:
Node.getLocalName()

getPrefix

public String getPrefix()
Returns the namespace prefix of this element node

Specified by:
getPrefix in interface Node
Overrides:
getPrefix in class NodeImpl
See Also:
Node.getPrefix()

setOwnerDocument

protected void setOwnerDocument(DocumentImpl document)
Description copied from class: NodeImpl
Sets the owner document.

Overrides:
setOwnerDocument in class NodeImpl
Parameters:
document -
See Also:
(org.apache.axis2.om.impl.dom.DocumentImpl)

resolveQName

public QName resolveQName(String qname)
Turn a prefix:local qname string into a proper QName, evaluating it in the OMElement context unprefixed qnames resolve to the local namespace

Specified by:
resolveQName in interface OMElement
Parameters:
qname - prefixed qname string to resolve
Returns:
Returns null for any failure to extract a qname.

cloneOMElement

public OMElement cloneOMElement()
Creates a clone which belongs to a new document.

Specified by:
cloneOMElement in interface OMElement
Returns:
Returns OMElement.
See Also:
OMElement.cloneOMElement()

cloneNode

public Node cloneNode(boolean deep)
Specified by:
cloneNode in interface Node
Overrides:
cloneNode in class ParentNode

getAttributes

public NamedNodeMap getAttributes()
Returns the set of attributes of this node and the namespace declarations available.

Specified by:
getAttributes in interface Node
Overrides:
getAttributes in class NodeImpl
See Also:
ElementImpl

getNamespaceURI

public String getNamespaceURI(String prefix)
Returns the namespace uri, given the prefix. If it is not found at this element, searches the parent.

Parameters:
prefix -
Returns:
Returns namespace.

removeNamespace

public boolean removeNamespace(String prefix)
Removes a declared namespace given its prefix.

Parameters:
prefix -
Returns:
Returns whether the namespace relevant to the given prefix was removed or not

getNextOMSibling

public OMNode getNextOMSibling()
                        throws OMException
Description copied from interface: OMNode
Returns the next sibling in document order.

Specified by:
getNextOMSibling in interface OMNode
Overrides:
getNextOMSibling in class ChildNode
Throws:
OMException

discard

public void discard()
             throws OMException
Description copied from interface: OMNode
Discards a node.

Discard goes to the parser level and if the element is not completely built, then it will be completely skipped at the parser level.

Specified by:
discard in interface OMNode
Overrides:
discard in class ChildNode
Throws:
OMException

getSchemaTypeInfo

public TypeInfo getSchemaTypeInfo()

setIdAttribute

public void setIdAttribute(String arg0,
                           boolean arg1)
                    throws DOMException
Throws:
DOMException

setIdAttributeNode

public void setIdAttributeNode(Attr arg0,
                               boolean arg1)
                        throws DOMException
Throws:
DOMException

setIdAttributeNS

public void setIdAttributeNS(String arg0,
                             String arg1,
                             boolean arg2)
                      throws DOMException
Throws:
DOMException