org.apache.xerces.impl.xs.opti

Class DefaultElement

Implemented Interfaces:
org.w3c.dom.Element, org.w3c.dom.Node
Known Direct Subclasses:
ElementImpl

public class DefaultElement
extends NodeImpl
implements org.w3c.dom.Element

Version:
$Id: DefaultElement.java 320295 2005-05-02 22:02:22Z mrglavas $
Author:
Rahul Srivastava, Sun Microsystems Inc.

Fields inherited from interface org.w3c.dom.Node

ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE

Constructor Summary

DefaultElement()
DefaultElement(String prefix, String localpart, String rawname, String uri, short nodeType)

Method Summary

String
getAttribute(String name)
String
getAttributeNS(String namespaceURI, String localName)
org.w3c.dom.Attr
getAttributeNode(String name)
org.w3c.dom.Attr
getAttributeNodeNS(String namespaceURI, String localName)
org.w3c.dom.NodeList
getElementsByTagName(String name)
org.w3c.dom.NodeList
getElementsByTagNameNS(String namespaceURI, String localName)
org.w3c.dom.TypeInfo
getSchemaTypeInfo()
String
getTagName()
boolean
hasAttribute(String name)
boolean
hasAttributeNS(String namespaceURI, String localName)
void
removeAttribute(String name)
void
removeAttributeNS(String namespaceURI, String localName)
org.w3c.dom.Attr
removeAttributeNode(org.w3c.dom.Attr oldAttr)
void
setAttribute(String name, String value)
void
setAttributeNS(String namespaceURI, String qualifiedName, String value)
org.w3c.dom.Attr
setAttributeNode(org.w3c.dom.Attr newAttr)
org.w3c.dom.Attr
setAttributeNodeNS(org.w3c.dom.Attr newAttr)
void
setIdAttribute(String name, boolean makeId)
void
setIdAttributeNS(String namespaceURI, String localName, boolean makeId)
void
setIdAttributeNode(org.w3c.dom.Attr at, boolean makeId)

Methods inherited from class org.apache.xerces.impl.xs.opti.NodeImpl

getLocalName, getNamespaceURI, getNodeName, getNodeType, getPrefix, getReadOnly, setReadOnly

Methods inherited from class org.apache.xerces.impl.xs.opti.DefaultNode

appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData

Constructor Details

DefaultElement

public DefaultElement()

DefaultElement

public DefaultElement(String prefix,
                      String localpart,
                      String rawname,
                      String uri,
                      short nodeType)

Method Details

getAttribute

public String getAttribute(String name)
Specified by:
getAttribute in interface org.w3c.dom.Element

getAttributeNS

public String getAttributeNS(String namespaceURI,
                             String localName)
Specified by:
getAttributeNS in interface org.w3c.dom.Element

getAttributeNode

public org.w3c.dom.Attr getAttributeNode(String name)
Specified by:
getAttributeNode in interface org.w3c.dom.Element

getAttributeNodeNS

public org.w3c.dom.Attr getAttributeNodeNS(String namespaceURI,
                                           String localName)
Specified by:
getAttributeNodeNS in interface org.w3c.dom.Element

getElementsByTagName

public org.w3c.dom.NodeList getElementsByTagName(String name)
Specified by:
getElementsByTagName in interface org.w3c.dom.Element

getElementsByTagNameNS

public org.w3c.dom.NodeList getElementsByTagNameNS(String namespaceURI,
                                                   String localName)
Specified by:
getElementsByTagNameNS in interface org.w3c.dom.Element

getSchemaTypeInfo

public org.w3c.dom.TypeInfo getSchemaTypeInfo()
Specified by:
getSchemaTypeInfo in interface org.w3c.dom.Element

getTagName

public String getTagName()
Specified by:
getTagName in interface org.w3c.dom.Element

hasAttribute

public boolean hasAttribute(String name)
Specified by:
hasAttribute in interface org.w3c.dom.Element

hasAttributeNS

public boolean hasAttributeNS(String namespaceURI,
                              String localName)
Specified by:
hasAttributeNS in interface org.w3c.dom.Element

removeAttribute

public void removeAttribute(String name)
            throws org.w3c.dom.DOMException
Specified by:
removeAttribute in interface org.w3c.dom.Element

removeAttributeNS

public void removeAttributeNS(String namespaceURI,
                              String localName)
            throws org.w3c.dom.DOMException
Specified by:
removeAttributeNS in interface org.w3c.dom.Element

removeAttributeNode

public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr oldAttr)
            throws org.w3c.dom.DOMException
Specified by:
removeAttributeNode in interface org.w3c.dom.Element

setAttribute

public void setAttribute(String name,
                         String value)
            throws org.w3c.dom.DOMException
Specified by:
setAttribute in interface org.w3c.dom.Element

setAttributeNS

public void setAttributeNS(String namespaceURI,
                           String qualifiedName,
                           String value)
            throws org.w3c.dom.DOMException
Specified by:
setAttributeNS in interface org.w3c.dom.Element

setAttributeNode

public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr)
            throws org.w3c.dom.DOMException
Specified by:
setAttributeNode in interface org.w3c.dom.Element

setAttributeNodeNS

public org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr newAttr)
            throws org.w3c.dom.DOMException
Specified by:
setAttributeNodeNS in interface org.w3c.dom.Element

setIdAttribute

public void setIdAttribute(String name,
                           boolean makeId)
            throws org.w3c.dom.DOMException
Specified by:
setIdAttribute in interface org.w3c.dom.Element

setIdAttributeNS

public void setIdAttributeNS(String namespaceURI,
                             String localName,
                             boolean makeId)
            throws org.w3c.dom.DOMException
Specified by:
setIdAttributeNS in interface org.w3c.dom.Element

setIdAttributeNode

public void setIdAttributeNode(org.w3c.dom.Attr at,
                               boolean makeId)
            throws org.w3c.dom.DOMException
Specified by:
setIdAttributeNode in interface org.w3c.dom.Element

Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.