APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.dom

public Class ElementDefinitionImpl

extends ParentNode
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xerces.internal.dom.DeferredElementDefinitionImpl
Imports
org.w3c.dom.NamedNodeMap, .Node

NON-DOM CLASS: Describe one of the Elements (and its associated Attributes) defined in this Document Type.

I've included this in Level 1 purely as an anchor point for default attributes. In Level 2 it should enable the ChildRule support.

Field Summary

Modifier and TypeField and Description
protected NamedNodeMapImpl
attributes

Default attributes.

protected String
name

Element definition name.

pack-priv static final long
Inherited from com.sun.org.apache.xerces.internal.dom.ParentNode:
firstChildfNodeListCacheownerDocument

Constructor Summary

AccessConstructor and Description
public
ElementDefinitionImpl(CoreDocumentImpl ownerDocument, String name)

Factory constructor.

Method Summary

Modifier and TypeMethod and Description
public Node
public NamedNodeMap

Returns:

org.w3c.dom.NamedNodeMap containing org.w3c.dom.Attribute
getAttributes
()

Overrides com.sun.org.apache.xerces.internal.dom.NodeImpl.getAttributes.

Implements org.w3c.dom.Node.getAttributes.

Query the attributes defined on this Element.

public String
getNodeName()

Implements abstract com.sun.org.apache.xerces.internal.dom.NodeImpl.getNodeName.

Implements org.w3c.dom.Node.getNodeName.

Returns the element definition name

public short
getNodeType()

Implements abstract com.sun.org.apache.xerces.internal.dom.NodeImpl.getNodeType.

Implements org.w3c.dom.Node.getNodeType.

A short integer indicating what type of node this is.

Inherited from com.sun.org.apache.xerces.internal.dom.ParentNode:
checkNormalizationAfterInsertcheckNormalizationAfterRemovegetChildNodesgetChildNodesUnoptimizedgetFirstChildgetLastChildgetLengthgetOwnerDocumentgetTextContentgetTextContenthasChildNodeshasTextContentinsertBeforeinternalInsertBeforeinternalRemoveChildisEqualNodeitemlastChildlastChildnormalizeownerDocumentremoveChildreplaceChildsetOwnerDocumentsetReadOnlysetTextContentsynchronizeChildren

Field Detail

attributesback to summary
protected NamedNodeMapImpl attributes

Default attributes.

nameback to summary
protected String name

Element definition name.

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides com.sun.org.apache.xerces.internal.dom.ParentNode.serialVersionUID.

Serialization version.

Constructor Detail

ElementDefinitionImplback to summary
public ElementDefinitionImpl(CoreDocumentImpl ownerDocument, String name)

Factory constructor.

Method Detail

cloneNodeback to summary
public Node cloneNode(boolean deep)

Overrides com.sun.org.apache.xerces.internal.dom.ParentNode.cloneNode.

Implements org.w3c.dom.Node.cloneNode.

Replicate this object.

getAttributesback to summary
public NamedNodeMap getAttributes()

Overrides com.sun.org.apache.xerces.internal.dom.NodeImpl.getAttributes.

Implements org.w3c.dom.Node.getAttributes.

Query the attributes defined on this Element.

In the base implementation this Map simply contains Attribute objects representing the defaults. In a more serious implementation, it would contain AttributeDefinitionImpl objects for all declared Attributes, indicating which are Default, DefaultFixed, Implicit and/or Required.

Returns:NamedNodeMap

org.w3c.dom.NamedNodeMap containing org.w3c.dom.Attribute

getNodeNameback to summary
public String getNodeName()

Implements abstract com.sun.org.apache.xerces.internal.dom.NodeImpl.getNodeName.

Implements org.w3c.dom.Node.getNodeName.

Returns the element definition name

getNodeTypeback to summary
public short getNodeType()

Implements abstract com.sun.org.apache.xerces.internal.dom.NodeImpl.getNodeType.

Implements org.w3c.dom.Node.getNodeType.

A short integer indicating what type of node this is. The named constants for this value are defined in the org.w3c.dom.Node interface.