org.apache.batik.dom
public abstract class AbstractAttr extends AbstractParentNode implements Attr
| Nested Class Summary | |
|---|---|
| class | AbstractAttr.AttrTypeInfo
Inner class to hold type information about this attribute. |
| Field Summary | |
|---|---|
| protected boolean | isIdAttr
Whether this attribute is an ID attribute |
| protected String | nodeName
The name of this node. |
| protected AbstractElement | ownerElement
The owner element. |
| protected TypeInfo | typeInfo
The attribute type information. |
| protected boolean | unspecified
Whether this attribute was not specified in the original document. |
| Constructor Summary | |
|---|---|
| protected | AbstractAttr()
Creates a new Attr object. |
| protected | AbstractAttr(String name, AbstractDocument owner)
Creates a new Attr object. |
| Method Summary | |
|---|---|
| protected void | checkChildType(Node n, boolean replace)
Checks the validity of a node to be inserted. |
| protected Node | copyInto(Node n)
Copy the fields of the current node into the given node. |
| protected Node | deepCopyInto(Node n)
Deeply copy the fields of the current node into the given node. |
| protected Node | deepExport(Node n, AbstractDocument d)
Deeply exports this node to the given document. |
| protected Node | export(Node n, AbstractDocument d)
Exports this node to the given document. |
| protected void | fireDOMSubtreeModifiedEvent()
Fires a DOMSubtreeModified event. |
| String | getName()
DOM: Implements org.w3c.dom.Attr#getName(). |
| String | getNodeName()
DOM: Implements org.w3c.dom.Node#getNodeName(). |
| short | getNodeType()
DOM: Implements org.w3c.dom.Node#getNodeType(). |
| String | getNodeValue()
DOM: Implements org.w3c.dom.Node#getNodeValue(). |
| Element | getOwnerElement()
DOM: Implements org.w3c.dom.Attr#getOwnerElement(). |
| TypeInfo | getSchemaTypeInfo()
DOM: Implements org.w3c.dom.Attr#getSchemaTypeInfo(). |
| boolean | getSpecified()
DOM: Implements org.w3c.dom.Attr#getSpecified(). |
| String | getValue()
DOM: Implements org.w3c.dom.Attr#getValue(). |
| boolean | isId()
DOM: Implements org.w3c.dom.Attr#isId(). |
| protected void | nodeAdded(Node n)
Called when a child node has been added. |
| protected void | nodeToBeRemoved(Node n)
Called when a child node is going to be removed. |
| void | setIsId(boolean isId)
Sets whether this attribute is an ID attribute. |
| void | setNodeName(String v)
Sets the node name. |
| void | setNodeValue(String nodeValue)
DOM: Implements org.w3c.dom.Node#setNodeValue(String). |
| void | setOwnerElement(AbstractElement v)
Sets the owner element. |
| void | setSpecified(boolean v)
Sets the specified attribute. |
| void | setValue(String value)
DOM: Implements org.w3c.dom.Attr#setValue(String). |
Parameters: name The attribute name for validation purposes. owner The owner document.
Throws: DOMException INVALID_CHARACTER_ERR: if name contains invalid characters,
Parameters: n a node of the type of this.
Parameters: n a node of the type of this.
Returns: getNodeName.
Returns: nodeName.
Returns: org.w3c.dom.Node#ATTRIBUTE_NODE
Returns: The content of the attribute.
Returns: !unspecified.
Returns: getNodeValue.