|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.batik.dom.AbstractNode
org.apache.batik.dom.AbstractParentNode
org.apache.batik.dom.AbstractParentChildNode
org.apache.batik.dom.AbstractElement
public abstract class AbstractElement
This class implements the Element interface.
| Nested Class Summary | |
|---|---|
class |
AbstractElement.ElementTypeInfo
Inner class to hold type information about this element. |
protected static class |
AbstractElement.Entry
To manage collisions in the attributes map. |
class |
AbstractElement.NamedNodeHashMap
An implementation of the NamedNodeMap. |
| Nested classes/interfaces inherited from class org.apache.batik.dom.AbstractParentNode |
|---|
AbstractParentNode.ChildNodes, AbstractParentNode.ElementsByTagName, AbstractParentNode.ElementsByTagNameNS |
| Field Summary | |
|---|---|
protected NamedNodeMap |
attributes
The attributes of this element. |
protected TypeInfo |
typeInfo
The element type information. |
| 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 |
|---|
DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, EMPTY_NODE_LIST, eventSupport, managerData, ownerDocument, userData, userDataHandlers |
| Constructor Summary | |
|---|---|
protected |
AbstractElement()
Creates a new AbstractElement object. |
protected |
AbstractElement(String name,
AbstractDocument owner)
Creates a new AbstractElement object. |
| 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, getTextContent, hasChildNodes, insertBefore, removeChild, replaceChild |
| 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, compareDocumentPosition, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
| Methods inherited from interface org.apache.batik.dom.ExtendedNode |
|---|
isReadonly, setReadonly |
| Field Detail |
|---|
protected NamedNodeMap attributes
protected TypeInfo typeInfo
| Constructor Detail |
|---|
protected AbstractElement()
protected AbstractElement(String name,
AbstractDocument owner)
name - The element name for validation purposes.owner - The owner document.
DOMException - INVALID_CHARACTER_ERR: if name contains invalid characters,| Method Detail |
|---|
public short getNodeType()
Node.getNodeType().
getNodeType in interface NodeNode.ELEMENT_NODEpublic boolean hasAttributes()
Node.hasAttributes().
hasAttributes in interface NodehasAttributes in class AbstractNodepublic NamedNodeMap getAttributes()
Node.getAttributes().
getAttributes in interface NodegetAttributes in class AbstractNodepublic String getTagName()
Element.getTagName().
getTagName in interface ElementNode.getNodeName().public boolean hasAttribute(String name)
Element.hasAttribute(String).
hasAttribute in interface Elementpublic String getAttribute(String name)
Element.getAttribute(String).
getAttribute in interface Element
public void setAttribute(String name,
String value)
throws DOMException
Element.setAttribute(String,String).
setAttribute in interface ElementDOMException
public void removeAttribute(String name)
throws DOMException
Element.removeAttribute(String).
removeAttribute in interface ElementDOMExceptionpublic Attr getAttributeNode(String name)
Element.getAttributeNode(String).
getAttributeNode in interface Element
public Attr setAttributeNode(Attr newAttr)
throws DOMException
Element.setAttributeNode(Attr).
setAttributeNode in interface ElementDOMException
public Attr removeAttributeNode(Attr oldAttr)
throws DOMException
Element.removeAttributeNode(Attr).
removeAttributeNode in interface ElementDOMExceptionpublic void normalize()
Node.normalize().
normalize in interface Nodenormalize in class AbstractParentNode
public boolean hasAttributeNS(String namespaceURI,
String localName)
Element.hasAttributeNS(String,String).
hasAttributeNS in interface Element
public String getAttributeNS(String namespaceURI,
String localName)
Element.getAttributeNS(String,String).
getAttributeNS in interface Element
public void setAttributeNS(String namespaceURI,
String qualifiedName,
String value)
throws DOMException
Element.setAttributeNS(String,String,String).
setAttributeNS in interface ElementDOMException
public void removeAttributeNS(String namespaceURI,
String localName)
throws DOMException
Element.removeAttributeNS(String,String).
removeAttributeNS in interface ElementDOMException
public Attr getAttributeNodeNS(String namespaceURI,
String localName)
Element.getAttributeNodeNS(String,String).
getAttributeNodeNS in interface Element
public Attr setAttributeNodeNS(Attr newAttr)
throws DOMException
Element.setAttributeNodeNS(Attr).
setAttributeNodeNS in interface ElementDOMExceptionpublic TypeInfo getSchemaTypeInfo()
Element.getSchemaTypeInfo().
getSchemaTypeInfo in interface Element
public void setIdAttribute(String name,
boolean isId)
throws DOMException
Element.setIdAttribute(String,boolean).
setIdAttribute in interface ElementDOMException
public void setIdAttributeNS(String ns,
String ln,
boolean isId)
throws DOMException
Element.setIdAttributeNS(String,String,boolean).
setIdAttributeNS in interface ElementDOMException
public void setIdAttributeNode(Attr attr,
boolean isId)
throws DOMException
Element.setIdAttributeNode(Attr,boolean).
setIdAttributeNode in interface ElementDOMExceptionprotected Attr getIdAttribute()
protected String getId()
protected void nodeAdded(Node node)
nodeAdded in class AbstractParentNodeprotected void nodeToBeRemoved(Node node)
nodeToBeRemoved in class AbstractParentNodeprotected NamedNodeMap createAttributes()
protected Node export(Node n,
AbstractDocument d)
export in class AbstractNoden - The clone node.d - The destination document.
protected Node deepExport(Node n,
AbstractDocument d)
deepExport in class AbstractParentNoden - The clone node.d - The destination document.protected Node copyInto(Node n)
copyInto in class AbstractNoden - a node of the type of this.protected Node deepCopyInto(Node n)
deepCopyInto in class AbstractParentNoden - a node of the type of this.
protected void checkChildType(Node n,
boolean replace)
checkChildType in class AbstractNoden - The node to be inserted.
public void fireDOMAttrModifiedEvent(String name,
Attr node,
String oldv,
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(Attr node,
String newv)
protected void attrModified(Attr node,
String oldv,
String newv)
protected void attrRemoved(Attr node,
String oldv)
public Element getFirstElementChild()
ElementTraversal.getFirstElementChild().
getFirstElementChild in interface ElementTraversalpublic Element getLastElementChild()
ElementTraversal.getLastElementChild().
getLastElementChild in interface ElementTraversalpublic Element getNextElementSibling()
ElementTraversal.getNextElementSibling().
getNextElementSibling in interface ElementTraversalpublic Element getPreviousElementSibling()
ElementTraversal.getPreviousElementSibling().
getPreviousElementSibling in interface ElementTraversalpublic int getChildElementCount()
ElementTraversal.getChildElementCount().
getChildElementCount in interface ElementTraversal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||