org.apache.xerces.impl.xs.opti

Class ElementImpl

Implemented Interfaces:
org.w3c.dom.Element, org.w3c.dom.Node

public class ElementImpl
extends DefaultElement

Version:
$Id: ElementImpl.java,v 1.5 2003/07/24 15:14:42 neilg Exp $

Authors:
Rahul Srivastava, Sun Microsystems Inc.
Sandy Gao, IBM

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

Constructor Summary

ElementImpl(String prefix, String localpart, String rawname, String uri, int line, int column)
ElementImpl(int line, int column)

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.NamedNodeMap
getAttributes()
int
getColumnNumber()
Returns the column number.
org.w3c.dom.Node
getFirstChild()
org.w3c.dom.Node
getLastChild()
int
getLineNumber()
Returns the line number.
org.w3c.dom.Node
getNextSibling()
org.w3c.dom.Document
getOwnerDocument()
org.w3c.dom.Node
getParentNode()
org.w3c.dom.Node
getPreviousSibling()
String
getTagName()
boolean
hasAttribute(String name)
boolean
hasAttributeNS(String namespaceURI, String localName)
boolean
hasAttributes()
boolean
hasChildNodes()
void
setAttribute(String name, String value)

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

getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNS, removeAttributeNode, setAttribute, setAttributeNS, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNS, setIdAttributeNode

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

ElementImpl

public ElementImpl(String prefix,
                   String localpart,
                   String rawname,
                   String uri,
                   int line,
                   int column)


ElementImpl

public ElementImpl(int line,
                   int column)

Method Details

getAttribute

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


getAttributeNS

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


getAttributeNode

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


getAttributeNodeNS

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


getAttributes

public org.w3c.dom.NamedNodeMap getAttributes()
Specified by:
getAttributes in interface org.w3c.dom.Node
Overrides:
getAttributes in interface DefaultNode


getColumnNumber

public int getColumnNumber()
Returns the column number.


getFirstChild

public org.w3c.dom.Node getFirstChild()
Specified by:
getFirstChild in interface org.w3c.dom.Node
Overrides:
getFirstChild in interface DefaultNode


getLastChild

public org.w3c.dom.Node getLastChild()
Specified by:
getLastChild in interface org.w3c.dom.Node
Overrides:
getLastChild in interface DefaultNode


getLineNumber

public int getLineNumber()
Returns the line number.


getNextSibling

public org.w3c.dom.Node getNextSibling()
Specified by:
getNextSibling in interface org.w3c.dom.Node
Overrides:
getNextSibling in interface DefaultNode


getOwnerDocument

public org.w3c.dom.Document getOwnerDocument()
Specified by:
getOwnerDocument in interface org.w3c.dom.Node
Overrides:
getOwnerDocument in interface DefaultNode


getParentNode

public org.w3c.dom.Node getParentNode()
Specified by:
getParentNode in interface org.w3c.dom.Node
Overrides:
getParentNode in interface DefaultNode


getPreviousSibling

public org.w3c.dom.Node getPreviousSibling()
Specified by:
getPreviousSibling in interface org.w3c.dom.Node
Overrides:
getPreviousSibling in interface DefaultNode


getTagName

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


hasAttribute

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


hasAttributeNS

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


hasAttributes

public boolean hasAttributes()
Specified by:
hasAttributes in interface org.w3c.dom.Node
Overrides:
hasAttributes in interface DefaultNode


hasChildNodes

public boolean hasChildNodes()
Specified by:
hasChildNodes in interface org.w3c.dom.Node
Overrides:
hasChildNodes in interface DefaultNode


setAttribute

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


Copyright B) 1999-2004 Apache XML Project. All Rights Reserved.