|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.dom.AbstractNode | +--org.apache.batik.dom.AbstractParentNode | +--org.apache.batik.dom.AbstractParentChildNode | +--org.apache.batik.dom.AbstractElement
This class implements the Element
interface.
Inner Class Summary | |
protected static class |
AbstractElement.Entry
To manage collisions in the attributes map. |
class |
AbstractElement.NamedNodeHashMap
An implementation of the NamedNodeMap . |
Inner classes inherited from class org.apache.batik.dom.AbstractParentNode |
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS |
Field Summary | |
protected org.w3c.dom.NamedNodeMap |
attributes
The attributes of this element. |
Fields inherited from class org.apache.batik.dom.AbstractParentChildNode |
nextSibling, parentNode, previousSibling |
Fields inherited from class org.apache.batik.dom.AbstractParentNode |
childNodes |
Fields inherited from class org.apache.batik.dom.AbstractNode |
EMPTY_NODE_LIST, eventSupport, ownerDocument |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
protected |
AbstractElement()
Creates a new AbstractElement object. |
protected |
AbstractElement(java.lang.String name,
AbstractDocument owner)
Creates a new AbstractElement object. |
Method Summary | |
protected void |
attrAdded(org.w3c.dom.Attr node,
java.lang.String newv)
Called when an attribute has been added. |
protected void |
attrModified(org.w3c.dom.Attr node,
java.lang.String oldv,
java.lang.String newv)
Called when an attribute has been modified. |
protected void |
attrRemoved(org.w3c.dom.Attr node,
java.lang.String oldv)
Called when an attribute has been removed. |
protected void |
checkChildType(org.w3c.dom.Node n,
boolean replace)
Checks the validity of a node to be inserted. |
protected org.w3c.dom.Node |
copyInto(org.w3c.dom.Node n)
Copy the fields of the current node into the given node. |
protected org.w3c.dom.NamedNodeMap |
createAttributes()
Creates the attribute list. |
protected org.w3c.dom.Node |
deepCopyInto(org.w3c.dom.Node n)
Deeply copy the fields of the current node into the given node. |
protected org.w3c.dom.Node |
deepExport(org.w3c.dom.Node n,
AbstractDocument d)
Deeply exports this node to the given document. |
protected org.w3c.dom.Node |
export(org.w3c.dom.Node n,
AbstractDocument d)
Exports this node to the given document. |
void |
fireDOMAttrModifiedEvent(java.lang.String name,
org.w3c.dom.Attr node,
java.lang.String oldv,
java.lang.String newv,
short change)
Fires a DOMAttrModified event. |
java.lang.String |
getAttribute(java.lang.String name)
DOM: Implements Element.getAttribute(String) . |
org.w3c.dom.Attr |
getAttributeNode(java.lang.String name)
DOM: Implements Element.getAttributeNode(String) . |
org.w3c.dom.Attr |
getAttributeNodeNS(java.lang.String namespaceURI,
java.lang.String localName)
DOM: Implements Element.getAttributeNodeNS(String,String) . |
java.lang.String |
getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
DOM: Implements Element.getAttributeNS(String,String) . |
org.w3c.dom.NamedNodeMap |
getAttributes()
DOM: Implements Node.getAttributes() . |
short |
getNodeType()
DOM: Implements Node.getNodeType() . |
java.lang.String |
getTagName()
DOM: Implements Element.getTagName() . |
boolean |
hasAttribute(java.lang.String name)
DOM: Implements Element.hasAttribute(String) . |
boolean |
hasAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
DOM: Implements Element.hasAttributeNS(String,String) . |
boolean |
hasAttributes()
DOM: Implements Node.hasAttributes() . |
protected void |
nodeAdded(org.w3c.dom.Node node)
Called when a child node has been added. |
protected void |
nodeToBeRemoved(org.w3c.dom.Node node)
Called when a child node is going to be removed. |
void |
normalize()
DOM: Implements Node.normalize() . |
void |
removeAttribute(java.lang.String name)
DOM: Implements Element.removeAttribute(String) . |
org.w3c.dom.Attr |
removeAttributeNode(org.w3c.dom.Attr oldAttr)
DOM: Implements Element.removeAttributeNode(Attr) . |
void |
removeAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
DOM: Implements Element.removeAttributeNS(String,String) . |
void |
setAttribute(java.lang.String name,
java.lang.String value)
DOM: Implements Element.setAttribute(String,String) . |
org.w3c.dom.Attr |
setAttributeNode(org.w3c.dom.Attr newAttr)
DOM: Implements Element.setAttributeNode(Attr) . |
org.w3c.dom.Attr |
setAttributeNodeNS(org.w3c.dom.Attr newAttr)
DOM: Implements Element.setAttributeNodeNS(Attr) . |
void |
setAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName,
java.lang.String value)
DOM: Implements Element.setAttributeNS(String,String,String) . |
Methods inherited from class org.apache.batik.dom.AbstractParentChildNode |
getNextSibling, getParentNode, getPreviousSibling, setNextSibling, setParentNode, setPreviousSibling |
Methods inherited from class org.apache.batik.dom.AbstractParentNode |
appendChild, checkAndRemove, fireDOMNodeInsertedEvent, fireDOMNodeInsertedIntoDocumentEvent, fireDOMNodeRemovedEvent, fireDOMNodeRemovedFromDocumentEvent, fireDOMSubtreeModifiedEvent, getChildNodes, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, hasChildNodes, insertBefore, removeChild, replaceChild |
Methods inherited from class org.apache.batik.dom.AbstractNode |
addEventListener, cloneNode, createDOMException, dispatchEvent, fireDOMCharacterDataModifiedEvent, getCurrentDocument, getEventSupport, getLocalName, getNamespaceURI, getNodeValue, getOwnerDocument, getParentNodeEventTarget, getPrefix, isSupported, newNode, removeEventListener, setNodeName, setNodeValue, setOwnerDocument, setPrefix, setSpecified |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Element |
getElementsByTagName, getElementsByTagNameNS |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasChildNodes, insertBefore, isSupported, removeChild, replaceChild, setNodeValue, setPrefix |
Methods inherited from interface org.apache.batik.dom.ExtendedNode |
isReadonly, setReadonly |
Field Detail |
protected org.w3c.dom.NamedNodeMap attributes
Constructor Detail |
protected AbstractElement()
protected AbstractElement(java.lang.String name, AbstractDocument owner)
name
- The element name for validation purposes.owner
- The owner document.org.w3c.dom.DOMException
- INVALID_CHARACTER_ERR: if name contains invalid characters,Method Detail |
public short getNodeType()
Node.getNodeType()
.getNodeType
in interface org.w3c.dom.Node
Node.ELEMENT_NODE
public boolean hasAttributes()
Node.hasAttributes()
.hasAttributes
in interface org.w3c.dom.Node
hasAttributes
in class AbstractNode
org.apache.batik.dom.AbstractNode
public org.w3c.dom.NamedNodeMap getAttributes()
Node.getAttributes()
.getAttributes
in interface org.w3c.dom.Node
getAttributes
in class AbstractNode
org.apache.batik.dom.AbstractNode
public java.lang.String getTagName()
Element.getTagName()
.getTagName
in interface org.w3c.dom.Element
Node.getNodeName()
.public boolean hasAttribute(java.lang.String name)
Element.hasAttribute(String)
.hasAttribute
in interface org.w3c.dom.Element
public java.lang.String getAttribute(java.lang.String name)
Element.getAttribute(String)
.getAttribute
in interface org.w3c.dom.Element
public void setAttribute(java.lang.String name, java.lang.String value) throws org.w3c.dom.DOMException
Element.setAttribute(String,String)
.setAttribute
in interface org.w3c.dom.Element
public void removeAttribute(java.lang.String name) throws org.w3c.dom.DOMException
Element.removeAttribute(String)
.removeAttribute
in interface org.w3c.dom.Element
public org.w3c.dom.Attr getAttributeNode(java.lang.String name)
Element.getAttributeNode(String)
.getAttributeNode
in interface org.w3c.dom.Element
public org.w3c.dom.Attr setAttributeNode(org.w3c.dom.Attr newAttr) throws org.w3c.dom.DOMException
Element.setAttributeNode(Attr)
.setAttributeNode
in interface org.w3c.dom.Element
public org.w3c.dom.Attr removeAttributeNode(org.w3c.dom.Attr oldAttr) throws org.w3c.dom.DOMException
Element.removeAttributeNode(Attr)
.removeAttributeNode
in interface org.w3c.dom.Element
public void normalize()
Node.normalize()
.normalize
in interface org.w3c.dom.Node
normalize
in class AbstractParentNode
public boolean hasAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
Element.hasAttributeNS(String,String)
.hasAttributeNS
in interface org.w3c.dom.Element
public java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
Element.getAttributeNS(String,String)
.getAttributeNS
in interface org.w3c.dom.Element
public void setAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value) throws org.w3c.dom.DOMException
Element.setAttributeNS(String,String,String)
.setAttributeNS
in interface org.w3c.dom.Element
public void removeAttributeNS(java.lang.String namespaceURI, java.lang.String localName) throws org.w3c.dom.DOMException
Element.removeAttributeNS(String,String)
.removeAttributeNS
in interface org.w3c.dom.Element
public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)
Element.getAttributeNodeNS(String,String)
.getAttributeNodeNS
in interface org.w3c.dom.Element
public org.w3c.dom.Attr setAttributeNodeNS(org.w3c.dom.Attr newAttr) throws org.w3c.dom.DOMException
Element.setAttributeNodeNS(Attr)
.setAttributeNodeNS
in interface org.w3c.dom.Element
protected void nodeAdded(org.w3c.dom.Node node)
nodeAdded
in class AbstractParentNode
protected void nodeToBeRemoved(org.w3c.dom.Node node)
nodeToBeRemoved
in class AbstractParentNode
protected org.w3c.dom.NamedNodeMap createAttributes()
protected org.w3c.dom.Node export(org.w3c.dom.Node n, AbstractDocument d)
export
in class AbstractNode
n
- The clone node.d
- The destination document.protected org.w3c.dom.Node deepExport(org.w3c.dom.Node n, AbstractDocument d)
deepExport
in class AbstractParentNode
n
- The clone node.d
- The destination document.protected org.w3c.dom.Node copyInto(org.w3c.dom.Node n)
copyInto
in class AbstractNode
n
- a node of the type of this.protected org.w3c.dom.Node deepCopyInto(org.w3c.dom.Node n)
deepCopyInto
in class AbstractParentNode
n
- a node of the type of this.protected void checkChildType(org.w3c.dom.Node n, boolean replace)
checkChildType
in class AbstractNode
n
- The node to be inserted.public void fireDOMAttrModifiedEvent(java.lang.String name, org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv, short change)
name
- The attribute's name.node
- The attribute's node.oldv
- The old value of the attribute.newv
- The new value of the attribute.change
- The modification type.protected void attrAdded(org.w3c.dom.Attr node, java.lang.String newv)
protected void attrModified(org.w3c.dom.Attr node, java.lang.String oldv, java.lang.String newv)
protected void attrRemoved(org.w3c.dom.Attr node, java.lang.String oldv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |