Save This Page
Home » axiom-1.2.8-src » org.apache.axiom.om.impl.dom » [javadoc | source]
org.apache.axiom.om.impl.dom
public class: ElementImpl [javadoc | source]
java.lang.Object
   NodeImpl
      org.apache.axiom.om.impl.dom.ChildNode
         org.apache.axiom.om.impl.dom.ParentNode
            org.apache.axiom.om.impl.dom.ElementImpl

All Implemented Interfaces:
    OMElement, OMConstants, Element, OMContainerEx

Direct Known Subclasses:
    SOAP11FaultSubCodeImpl, SOAP11HeaderBlockImpl, SOAP12FaultCodeImpl, SOAP11FaultImpl, SOAPFaultDetailImpl, SOAP12FaultNodeImpl, SOAPFaultNodeImpl, SOAP11FaultReasonImpl, SOAP11FaultCodeImpl, SOAPFaultRoleImpl, SOAPBodyImpl, SOAPElement, SOAP12FaultDetailImpl, SOAPFaultImpl, SOAP12FaultTextImpl, SOAPFaultCodeImpl, SOAP11FaultRoleImpl, SOAP11FaultTextImpl, SOAP12FaultSubCodeImpl, SOAPEnvelopeImpl, SOAP11FaultDetailImpl, SOAPHeaderImpl, SOAPTextImpl, SOAPFaultReasonImpl, SOAP12BodyImpl, SOAPFaultValueImpl, SOAPFaultSubCodeImpl, SOAP12FaultValueImpl, SOAPHeaderBlockImpl, SOAP11FaultValueImpl, SOAP12FaultReasonImpl, SOAP12HeaderBlockImpl, SOAP11BodyImpl, SOAP11HeaderImpl, SOAPFaultTextImpl, SOAP12FaultImpl, SOAP12HeaderImpl, SOAP12FaultRoleImpl

Implementation of the org.w3c.dom.Element and org.apache.axiom.om.Element interfaces.
Field Summary
protected  OMNamespace namespace     
protected  String localName     
Fields inherited from org.apache.axiom.om.impl.dom.ParentNode:
firstChild,  lastChild
Fields inherited from org.apache.axiom.om.impl.dom.ChildNode:
previousSibling,  nextSibling,  parentNode
Constructor:
 public ElementImpl(OMFactory factory) 
 public ElementImpl(DocumentImpl ownerDocument,
    String tagName,
    OMFactory factory) 
    Parameters:
    ownerDocument -
 public ElementImpl(DocumentImpl ownerDocument,
    String tagName,
    NamespaceImpl ns,
    OMFactory factory) 
    Creates a new element with the namespace.
    Parameters:
    ownerDocument -
    tagName -
    ns -
 public ElementImpl(ParentNode parentNode,
    String tagName,
    NamespaceImpl ns,
    OMFactory factory) 
 public ElementImpl(String tagName,
    NamespaceImpl ns,
    OMXMLParserWrapper builder,
    OMFactory factory) 
 public ElementImpl(DocumentImpl ownerDocument,
    String tagName,
    NamespaceImpl ns,
    OMXMLParserWrapper builder,
    OMFactory factory) 
 public ElementImpl(ParentNode parentNode,
    String tagName,
    NamespaceImpl ns,
    OMXMLParserWrapper builder,
    OMFactory factory) 
Method from org.apache.axiom.om.impl.dom.ElementImpl Summary:
addAttribute,   addAttribute,   buildWithAttachments,   cloneNode,   cloneOMElement,   declareDefaultNamespace,   declareNamespace,   declareNamespace,   discard,   findNamespace,   findNamespaceURI,   getAllAttributes,   getAllDeclaredNamespaces,   getAttribute,   getAttribute,   getAttributeNS,   getAttributeNode,   getAttributeNodeNS,   getAttributeValue,   getAttributes,   getBuilder,   getChildElements,   getDefaultNamespace,   getElementsByTagName,   getElementsByTagNameNS,   getFirstElement,   getLineNumber,   getLocalName,   getNamespace,   getNamespaceURI,   getNamespaceURI,   getNextOMSibling,   getNodeName,   getNodeType,   getPrefix,   getQName,   getSchemaTypeInfo,   getTagName,   getText,   getTextAsQName,   getTrimmedText,   getType,   getXMLStreamReader,   getXMLStreamReaderWithoutCaching,   hasAttribute,   hasAttributeNS,   hasAttributes,   internalSerialize,   internalSerialize,   internalSerializeAndConsume,   removeAttribute,   removeAttribute,   removeAttributeNS,   removeAttributeNode,   removeNamespace,   resolveQName,   setAttribute,   setAttributeNS,   setAttributeNode,   setAttributeNodeNS,   setBuilder,   setIdAttribute,   setIdAttributeNS,   setIdAttributeNode,   setLineNumber,   setLocalName,   setNamespace,   setNamespaceWithNoFindInCurrentScope,   setOwnerDocument,   setText,   setText,   setType,   toString,   toStringWithConsume
Methods from org.apache.axiom.om.impl.dom.ParentNode:
addChild,   buildNext,   cloneNode,   getChildNodes,   getChildren,   getChildrenWithLocalName,   getChildrenWithName,   getChildrenWithNamespaceURI,   getFirstChild,   getFirstChildWithName,   getFirstOMChild,   getLastChild,   getTextContent,   getTextContent,   hasChildNodes,   importNode,   insertBefore,   removeChild,   replaceChild,   setFirstChild,   setLastChild,   setTextContent
Methods from org.apache.axiom.om.impl.dom.ChildNode:
cloneNode,   detach,   discard,   getNextOMSibling,   getNextSibling,   getParent,   getParentNode,   getPreviousOMSibling,   getPreviousSibling,   insertSiblingAfter,   insertSiblingBefore,   setNextOMSibling,   setParent,   setPreviousOMSibling
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.axiom.om.impl.dom.ElementImpl Detail:
 public OMAttribute addAttribute(OMAttribute attr) 
 public OMAttribute addAttribute(String attributeName,
    String value,
    OMNamespace ns) 
    The behaviour of this is the same as org.w3c.dom.Element#setAttributeNS
 public  void buildWithAttachments() 
 public Node cloneNode(boolean deep) 
 public OMElement cloneOMElement() 
    Creates a clone which belongs to a new document.
 public OMNamespace declareDefaultNamespace(String uri) 
    We use "" to store the default namespace of this element. As one can see user can not give "" as the prefix, when he declare a usual namespace.
 public OMNamespace declareNamespace(OMNamespace namespace) 
    Allows overriding an existing declaration if the same prefix was used.
 public OMNamespace declareNamespace(String uri,
    String prefix) 
    Allows overriding an existing declaration if the same prefix was used.
 public  void discard() throws OMException 
 public OMNamespace findNamespace(String uri,
    String prefix) 
 public OMNamespace findNamespaceURI(String prefix) 
 public Iterator getAllAttributes() 
 public Iterator getAllDeclaredNamespaces() throws OMException 
 public String getAttribute(String name) 
    Looks in the local list of attributes and returns if found. If the local list is null, returns "".
 public OMAttribute getAttribute(QName qname) 
    Returns a named attribute if present.
 public String getAttributeNS(String namespaceURI,
    String localName) 
    Retrieves an attribute value by local name and namespace URI.
 public Attr getAttributeNode(String name) 
    Retrieves an attribute node by name.
 public Attr getAttributeNodeNS(String namespaceURI,
    String localName) 
    Retrieves an attribute node by local name and namespace URI.
 public String getAttributeValue(QName qname) 
    Returns a named attribute's value, if present.
 public NamedNodeMap getAttributes() 
    Returns the set of attributes of this node and the namespace declarations available.
 public OMXMLParserWrapper getBuilder() 
 public Iterator getChildElements() 
 public OMNamespace getDefaultNamespace() 
 public NodeList getElementsByTagName(String name) 
 public NodeList getElementsByTagNameNS(String namespaceURI,
    String localName) 
 public OMElement getFirstElement() 
    Returns the first Element node.
 public int getLineNumber() 
 public String getLocalName() 
    Returns the local name of this element node
 public OMNamespace getNamespace() throws OMException 
    Returns the namespace of this element.
 public String getNamespaceURI() 
    Returns the value of the namespace URI.
 public String getNamespaceURI(String prefix) 
    Returns the namespace uri, given the prefix. If it is not found at this element, searches the parent.
 public OMNode getNextOMSibling() throws OMException 
 public String getNodeName() 
 public short getNodeType() 
 public String getPrefix() 
    Returns the namespace prefix of this element node
 public QName getQName() 
    Returns the QName of this element.
 public TypeInfo getSchemaTypeInfo() 
 public String getTagName() 
 public String getText() 
    Gets all the text children and concatinates them to a single string.
 public QName getTextAsQName() 
 public String getTrimmedText() 
 public int getType() throws OMException 
 public XMLStreamReader getXMLStreamReader() 
 public XMLStreamReader getXMLStreamReaderWithoutCaching() 
 public boolean hasAttribute(String name) 
 public boolean hasAttributeNS(String namespaceURI,
    String localName) 
    Returns whether the given attribute is available or not.
 public boolean hasAttributes() 
    Returns whether this element contains any attribute or not.
 public  void internalSerialize(XMLStreamWriter writer) throws XMLStreamException 
 protected  void internalSerialize(XMLStreamWriter writer,
    boolean cache) throws XMLStreamException 
 public  void internalSerializeAndConsume(XMLStreamWriter writer) throws XMLStreamException 
 public  void removeAttribute(String name) throws DOMException 
    Removes an attribute by name.
 public  void removeAttribute(OMAttribute attr) 
    Removes an attribute from the element.
 public  void removeAttributeNS(String namespaceURI,
    String localName) throws DOMException 
 public Attr removeAttributeNode(Attr oldAttr) throws DOMException 
    Removes the specified attribute node.
 public boolean removeNamespace(String prefix) 
    Removes a declared namespace given its prefix.
 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
 public  void setAttribute(String name,
    String value) throws DOMException 
 public  void setAttributeNS(String namespaceURI,
    String qualifiedName,
    String value) throws DOMException 
    Adds a new attribute.
 public Attr setAttributeNode(Attr attr) throws DOMException 
    Adds a new attribute node.
 public Attr setAttributeNodeNS(Attr attr) throws DOMException 
 public  void setBuilder(OMXMLParserWrapper wrapper) 
    Sets the OM builder.
 public  void setIdAttribute(String name,
    boolean isId) throws DOMException 
 public  void setIdAttributeNS(String namespaceURI,
    String localName,
    boolean isId) throws DOMException 
 public  void setIdAttributeNode(Attr idAttr,
    boolean isId) throws DOMException 
 public  void setLineNumber(int lineNumber) 
 public  void setLocalName(String localName) 
    Sets the local name.
 public  void setNamespace(OMNamespace namespace) 
    Sets the namespace.
 public  void setNamespaceWithNoFindInCurrentScope(OMNamespace namespace) 
 protected  void setOwnerDocument(DocumentImpl document) 
 public  void setText(String text) 
    Creates a text node with the given value and adds it to the element.
 public  void setText(QName text) 
 public  void setType(int nodeType) throws OMException 
 public String toString() 
    Overridden toString() for ease of debugging.
 public String toStringWithConsume() throws XMLStreamException