| java.lang.Object org.ozoneDB.OzoneObject org.ozoneDB.xml.dom.NodeImpl org.ozoneDB.xml.dom.ElementImpl
All known Subclasses: org.ozoneDB.xml.dom.html.HTMLElementImpl, org.ozoneDB.xml.XMLElement,
Method Summary | |
final public synchronized AttrProxy | appendAttr(AttrProxy newAttr) Append newAttr as the last attribute of this element. | final public Object | clone() | public synchronized void | cloneInto(NodeProxy into, boolean deep) | final public Node | cloneNode(boolean deep) | final public Enumeration | elements() | public synchronized boolean | equals(Object other) | final public synchronized String | getAttribute(String name) | public java.lang.String | getAttributeNS(java.lang.String namespaceURI, java.lang.String localName) | final public Attr | getAttributeNode(String name) | public Attr | getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName) | final public NamedNodeMap | getAttributes() | final public synchronized NodeList | getElementsByTagName(String tagName) Returns a list of elements extracted based on their tag name (or all of
them if the tag name is "*"). | public NodeList | getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName) | public int | getLength() | final public synchronized Attr | getNamedAttr(String name) Returns the named attribute or null if attribute not found. | final public synchronized Node | getNamedItem(String name) | public Node | getNamedItemNS(java.lang.String namespaceURI, java.lang.String localName) | final public short | getNodeType() | final public String | getTagName() Returns the name of the tag, same as calling
ElementImpl.getNodeName .
In XML documents, the return value preserves case. | public boolean | hasAttribute(String name) | public boolean | hasAttributeNS(String namespaceURI, String localname) | public boolean | hasAttributes() | public void | init(NodeProxy owner, Dictionary dictionary) | final public synchronized Node | item(int index) | final public synchronized void | normalize() | public void | onDelete() | public void | readExternal(ObjectInput in) | final public synchronized AttrProxy | removeAttr(AttrProxy oldAttr) Remove oldAttr from this element. | final public synchronized void | removeAttribute(String name) | public void | removeAttributeNS(java.lang.String namespaceURI, java.lang.String localName) | final public synchronized Attr | removeAttributeNode(Attr oldAttr) | final public synchronized Node | removeNamedItem(String name) | public Node | removeNamedItemNS(java.lang.String namespaceURI, java.lang.String localName) | public void | setAttrCount(int count) | final public synchronized void | setAttribute(String name, String value) | public void | setAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName, java.lang.String value) | final public synchronized Attr | setAttributeNode(Attr newAttr) | public Attr | setAttributeNodeNS(Attr newAttr) | public void | setFirstAttr(Attr attribute) | public void | setLastAttr(Attr attribute) | final public Node | setNamedItem(Node arg) | public Node | setNamedItemNS(Node arg) | final public void | setNodeValue(String value) | protected boolean | supportsChildern() | public String | toString() | public void | writeExternal(ObjectOutput out) |
serialVersionUID | final static long serialVersionUID(Code) | | |
ElementImpl | public ElementImpl(DocumentImpl owner, String name)(Code) | | Constructor requires only owner document and tag name of element.
Tag name is case sensitive for XML, but converted to upper case for
HTML documents.
Parameters: owner - Owner document of this element Parameters: name - The tag name of the element |
ElementImpl | public ElementImpl()(Code) | | |
appendAttr | final public synchronized AttrProxy appendAttr(AttrProxy newAttr)(Code) | | Append newAttr as the last attribute of this element.
If newAttr is not an attribute of this DOM, or is already in use
by some element, an exception is thrown.
Parameters: newAttr - The new attribute to add The newly added attribute throws: org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERRNode is read-only and cannot be modified throws: org.w3c.dom.DOMException - WRONG_DOCUMENT_ERRnewAttr is not an attribute in this DOM throws: org.w3c.dom.DOMException - INUSE_ATTRIBUTE_ERRnewAttr is already in use by some other element |
cloneInto | public synchronized void cloneInto(NodeProxy into, boolean deep)(Code) | | |
cloneNode | final public Node cloneNode(boolean deep)(Code) | | |
equals | public synchronized boolean equals(Object other)(Code) | | |
getElementsByTagName | final public synchronized NodeList getElementsByTagName(String tagName)(Code) | | Returns a list of elements extracted based on their tag name (or all of
them if the tag name is "*"). The returned list is a snapshot of the
element's contents at the time of calling. Subsequent updates to the
element are not reflected in the list. This might result in inaccuracies
when working from multiple threads.
Parameters: tagName - The element tag name to look for or "*" for all elements A snapshot of the named elements contained within this element |
getLength | public int getLength()(Code) | | |
getNamedAttr | final public synchronized Attr getNamedAttr(String name)(Code) | | Returns the named attribute or null if attribute not found.
Parameters: name - The name of the attribute to return The named attribute or null |
getNodeType | final public short getNodeType()(Code) | | |
getTagName | final public String getTagName()(Code) | | Returns the name of the tag, same as calling
ElementImpl.getNodeName .
In XML documents, the return value preserves case. In HTML documents,
the return value is always upper case regardless of the original value.
Tag name |
hasAttributes | public boolean hasAttributes()(Code) | | |
item | final public synchronized Node item(int index)(Code) | | |
normalize | final public synchronized void normalize()(Code) | | |
removeAttr | final public synchronized AttrProxy removeAttr(AttrProxy oldAttr) throws DOMException(Code) | | Remove oldAttr from this element. If oldAttr is not an
attribute of this element, an exception is thrown.
Parameters: oldAttr - The attribute to remove The removed attribute throws: org.w3c.dom.DOMException - NO_MODIFICATION_ALLOWED_ERRNode is read-only and cannot be modified throws: org.w3c.dom.DOMException - NOT_FOUND_ERRoldAttr is not an attribute of this element |
removeAttribute | final public synchronized void removeAttribute(String name)(Code) | | |
removeAttributeNode | final public synchronized Attr removeAttributeNode(Attr oldAttr)(Code) | | |
setAttrCount | public void setAttrCount(int count)(Code) | | |
setFirstAttr | public void setFirstAttr(Attr attribute)(Code) | | |
setLastAttr | public void setLastAttr(Attr attribute)(Code) | | |
setNodeValue | final public void setNodeValue(String value)(Code) | | |
supportsChildern | protected boolean supportsChildern()(Code) | | |
|
|