org.apache.xerces.impl.xs.opti

Class DefaultElement

Implemented Interfaces:
Element, Node
Known Direct Subclasses:
ElementImpl

public class DefaultElement
extends NodeImpl
implements Element

Version:
$Id: DefaultElement.java,v 1.8 2005/05/02 22:00:52 mrglavas Exp $
Author:
Rahul Srivastava, Sun Microsystems Inc.

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)
Attr
getAttributeNode(String name)
Attr
getAttributeNodeNS(String namespaceURI, String localName)
NodeList
getElementsByTagName(String name)
NodeList
getElementsByTagNameNS(String namespaceURI, String localName)
TypeInfo
getSchemaTypeInfo()
String
getTagName()
boolean
hasAttribute(String name)
boolean
hasAttributeNS(String namespaceURI, String localName)
void
removeAttribute(String name)
void
removeAttributeNS(String namespaceURI, String localName)
Attr
removeAttributeNode(Attr oldAttr)
void
setAttribute(String name, String value)
void
setAttributeNS(String namespaceURI, String qualifiedName, String value)
Attr
setAttributeNode(Attr newAttr)
Attr
setAttributeNodeNS(Attr newAttr)
void
setIdAttribute(String name, boolean makeId)
void
setIdAttributeNS(String namespaceURI, String localName, boolean makeId)
void
setIdAttributeNode(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)

getAttributeNS

public String getAttributeNS(String namespaceURI,
                             String localName)

getAttributeNode

public Attr getAttributeNode(String name)

getAttributeNodeNS

public Attr getAttributeNodeNS(String namespaceURI,
                               String localName)

getElementsByTagName

public NodeList getElementsByTagName(String name)

getElementsByTagNameNS

public NodeList getElementsByTagNameNS(String namespaceURI,
                                       String localName)

getSchemaTypeInfo

public TypeInfo getSchemaTypeInfo()

getTagName

public String getTagName()

hasAttribute

public boolean hasAttribute(String name)

hasAttributeNS

public boolean hasAttributeNS(String namespaceURI,
                              String localName)

removeAttribute

public void removeAttribute(String name)
            throws DOMException

removeAttributeNS

public void removeAttributeNS(String namespaceURI,
                              String localName)
            throws DOMException

removeAttributeNode

public Attr removeAttributeNode(Attr oldAttr)
            throws DOMException

setAttribute

public void setAttribute(String name,
                         String value)
            throws DOMException

setAttributeNS

public void setAttributeNS(String namespaceURI,
                           String qualifiedName,
                           String value)
            throws DOMException

setAttributeNode

public Attr setAttributeNode(Attr newAttr)
            throws DOMException

setAttributeNodeNS

public Attr setAttributeNodeNS(Attr newAttr)
            throws DOMException

setIdAttribute

public void setIdAttribute(String name,
                           boolean makeId)
            throws DOMException

setIdAttributeNS

public void setIdAttributeNS(String namespaceURI,
                             String localName,
                             boolean makeId)
            throws DOMException

setIdAttributeNode

public void setIdAttributeNode(Attr at,
                               boolean makeId)
            throws DOMException

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