public class

ElementDefinitionImpl

extends ParentNode
java.lang.Object
   ↳ org.apache.xerces.dom.NodeImpl
     ↳ org.apache.xerces.dom.ChildNode
       ↳ org.apache.xerces.dom.ParentNode
         ↳ org.apache.xerces.dom.ElementDefinitionImpl
Known Direct Subclasses

Class Overview

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.@xerces.internal

Summary

[Expand]
Inherited Constants
From class org.apache.xerces.dom.NodeImpl
From interface org.w3c.dom.Node
Fields
protected NamedNodeMapImpl attributes Default attributes.
protected String name Element definition name.
[Expand]
Inherited Fields
From class org.apache.xerces.dom.ParentNode
From class org.apache.xerces.dom.ChildNode
From class org.apache.xerces.dom.NodeImpl
Public Constructors
ElementDefinitionImpl(CoreDocumentImpl ownerDocument, String name)
Factory constructor.
Public Methods
Node cloneNode(boolean deep)
Replicate this object.
NamedNodeMap getAttributes()
Query the attributes defined on this Element.
String getNodeName()
Returns the element definition name
short getNodeType()
A short integer indicating what type of node this is.
[Expand]
Inherited Methods
From class org.apache.xerces.dom.ParentNode
From class org.apache.xerces.dom.ChildNode
From class org.apache.xerces.dom.NodeImpl
From class java.lang.Object
From interface org.w3c.dom.Node
From interface org.w3c.dom.NodeList
From interface org.w3c.dom.events.EventTarget

Fields

protected NamedNodeMapImpl attributes

Default attributes.

protected String name

Element definition name.

Public Constructors

public ElementDefinitionImpl (CoreDocumentImpl ownerDocument, String name)

Factory constructor.

Public Methods

public Node cloneNode (boolean deep)

Replicate this object.

public NamedNodeMap 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
  • org.w3c.dom.NamedNodeMap containing org.w3c.dom.Attribute

public String getNodeName ()

Returns the element definition name

public short 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.