org.apache.xerces.impl.xs.opti

Class ElementImpl

Implemented Interfaces:
Element, Node

public class ElementImpl
extends DefaultElement

Version:
$Id: ElementImpl.java,v 1.9 2004/12/16 16:45:20 ankitp Exp $
Authors:
Rahul Srivastava, Sun Microsystems Inc.
Sandy Gao, IBM

Constructor Summary

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

Method Summary

String
getAttribute(String name)
String
getAttributeNS(String namespaceURI, String localName)
Attr
getAttributeNode(String name)
Attr
getAttributeNodeNS(String namespaceURI, String localName)
NamedNodeMap
getAttributes()
int
getCharacterOffset()
Returns the character offset.
int
getColumnNumber()
Returns the column number.
Node
getFirstChild()
Node
getLastChild()
int
getLineNumber()
Returns the line number.
Node
getNextSibling()
Document
getOwnerDocument()
Node
getParentNode()
Node
getPreviousSibling()
String
getSyntheticAnnotation()
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(String prefix,
                   String localpart,
                   String rawname,
                   String uri,
                   int line,
                   int column,
                   int offset)

ElementImpl

public ElementImpl(int line,
                   int column)

ElementImpl

public ElementImpl(int line,
                   int column,
                   int offset)

Method Details

getAttribute

public String getAttribute(String name)
Overrides:
getAttribute in interface DefaultElement

getAttributeNS

public String getAttributeNS(String namespaceURI,
                             String localName)
Overrides:
getAttributeNS in interface DefaultElement

getAttributeNode

public Attr getAttributeNode(String name)
Overrides:
getAttributeNode in interface DefaultElement

getAttributeNodeNS

public Attr getAttributeNodeNS(String namespaceURI,
                               String localName)
Overrides:
getAttributeNodeNS in interface DefaultElement

getAttributes

public NamedNodeMap getAttributes()
Overrides:
getAttributes in interface DefaultNode

getCharacterOffset

public int getCharacterOffset()
Returns the character offset.

getColumnNumber

public int getColumnNumber()
Returns the column number.

getFirstChild

public Node getFirstChild()
Overrides:
getFirstChild in interface DefaultNode

getLastChild

public Node getLastChild()
Overrides:
getLastChild in interface DefaultNode

getLineNumber

public int getLineNumber()
Returns the line number.

getNextSibling

public Node getNextSibling()
Overrides:
getNextSibling in interface DefaultNode

getOwnerDocument

public Document getOwnerDocument()
Overrides:
getOwnerDocument in interface DefaultNode

getParentNode

public Node getParentNode()
Overrides:
getParentNode in interface DefaultNode

getPreviousSibling

public Node getPreviousSibling()
Overrides:
getPreviousSibling in interface DefaultNode

getSyntheticAnnotation

public String getSyntheticAnnotation()

getTagName

public String getTagName()
Overrides:
getTagName in interface DefaultElement

hasAttribute

public boolean hasAttribute(String name)
Overrides:
hasAttribute in interface DefaultElement

hasAttributeNS

public boolean hasAttributeNS(String namespaceURI,
                              String localName)
Overrides:
hasAttributeNS in interface DefaultElement

hasAttributes

public boolean hasAttributes()
Overrides:
hasAttributes in interface DefaultNode

hasChildNodes

public boolean hasChildNodes()
Overrides:
hasChildNodes in interface DefaultNode

setAttribute

public void setAttribute(String name,
                         String value)
Overrides:
setAttribute in interface DefaultElement

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