com.ibm.xml.dom
Class ElementDefinitionImpl
java.lang.Object
|
+--com.ibm.xml.dom.NodeImpl
|
+--com.ibm.xml.dom.ElementDefinitionImpl
- Direct Known Subclasses:
- DeferredElementDefinitionImpl
- public class ElementDefinitionImpl
- extends NodeImpl
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.
- Version:
- Revision: 60 1.5 src/com/ibm/xml/dom/ElementDefinitionImpl.java, parser, xml4j2, xml4j2_0_15
- See Also:
- Serialized Form
Fields inherited from class com.ibm.xml.dom.NodeImpl |
ELEMENT_DEFINITION_NODE,
firstChild,
kidOK,
lastChild,
name,
nextSibling,
ownerDocument,
parentNode,
previousSibling,
readOnly,
syncChildren,
syncData,
userData,
value |
Methods inherited from class com.ibm.xml.dom.NodeImpl |
appendChild,
changed,
getChildNodes,
getFirstChild,
getLastChild,
getLength,
getNextSibling,
getNodeName,
getNodeValue,
getOwnerDocument,
getParentNode,
getPreviousSibling,
getReadOnly,
getUserData,
hasChildNodes,
insertBefore,
isKidOK,
item,
removeChild,
replaceChild,
setNodeValue,
setReadOnly,
setUserData,
synchronizeChildren,
synchronizeData,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
attributes
protected NamedNodeMapImpl attributes
- Default attributes.
ElementDefinitionImpl
public ElementDefinitionImpl(DocumentImpl ownerDocument,
java.lang.String name)
- Factory constructor.
getNodeType
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.
- Overrides:
- getNodeType in class NodeImpl
cloneNode
public Node cloneNode(boolean deep)
- Replicate this object.
- Overrides:
- cloneNode in class NodeImpl
getAttributes
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
- Overrides:
- getAttributes in class NodeImpl