org.apache.html.dom

Class HTMLElementImpl

Implemented Interfaces:
Cloneable, org.w3c.dom.Element, org.w3c.dom.events.EventTarget, org.w3c.dom.html.HTMLElement, TypeInfo, org.w3c.dom.Node, org.w3c.dom.NodeList, Serializable
Known Direct Subclasses:
HTMLAnchorElementImpl, HTMLAppletElementImpl, HTMLAreaElementImpl, HTMLBaseElementImpl, HTMLBaseFontElementImpl, HTMLBodyElementImpl, HTMLBRElementImpl, HTMLButtonElementImpl, HTMLDirectoryElementImpl, HTMLDivElementImpl, HTMLDListElementImpl, HTMLFieldSetElementImpl, HTMLFontElementImpl, HTMLFormElementImpl, HTMLFrameElementImpl, HTMLFrameSetElementImpl, HTMLHeadElementImpl, HTMLHeadingElementImpl, HTMLHRElementImpl, HTMLHtmlElementImpl, HTMLIFrameElementImpl, HTMLImageElementImpl, HTMLInputElementImpl, HTMLIsIndexElementImpl, HTMLLabelElementImpl, HTMLLegendElementImpl, HTMLLinkElementImpl, HTMLLIElementImpl, HTMLMapElementImpl, HTMLMenuElementImpl, HTMLMetaElementImpl, HTMLModElementImpl, HTMLObjectElementImpl, HTMLOListElementImpl, HTMLOptGroupElementImpl, HTMLOptionElementImpl, HTMLParagraphElementImpl, HTMLParamElementImpl, HTMLPreElementImpl, HTMLQuoteElementImpl, HTMLScriptElementImpl, HTMLSelectElementImpl, HTMLStyleElementImpl, HTMLTableCaptionElementImpl, HTMLTableCellElementImpl, HTMLTableColElementImpl, HTMLTableElementImpl, HTMLTableRowElementImpl, HTMLTableSectionElementImpl, HTMLTextAreaElementImpl, HTMLTitleElementImpl, HTMLUListElementImpl

public class HTMLElementImpl
extends org.apache.xerces.dom.ElementImpl
implements org.w3c.dom.html.HTMLElement

Implements an HTML-specific element, an org.w3c.dom.Element that will only appear inside HTML documents. This element extends org.apache.xerces.dom.ElementImpl by adding methods for directly manipulating HTML-specific attributes. All HTML elements gain access to the id, title, lang, dir and class attributes. Other elements add their own specific attributes.

Version:
$Revision: 1.6 $ $Date: 2003/05/08 20:13:09 $

Author:
Assaf Arkin

See Also:
org.w3c.dom.html.HTMLElement

Field Summary

Fields inherited from class org.apache.xerces.dom.ElementImpl

attributes, name

Fields inherited from class org.apache.xerces.dom.ParentNode

fNodeListCache, firstChild, ownerDocument

Fields inherited from class org.apache.xerces.dom.ChildNode

nextSibling, previousSibling

Fields inherited from class org.apache.xerces.dom.NodeImpl

DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_IS_CONTAINED, DOCUMENT_POSITION_PRECEDING, ELEMENT_DEFINITION_NODE, FIRSTCHILD, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, TREE_POSITION_ANCESTOR, TREE_POSITION_DESCENDANT, TREE_POSITION_DISCONNECTED, TREE_POSITION_EQUIVALENT, TREE_POSITION_FOLLOWING, TREE_POSITION_PRECEDING, TREE_POSITION_SAME_NODE, flags, ownerNode

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

Method Summary

String
getAttribute(String attrName)
String
getAttributeNS(String namespaceURI, String localName)
org.w3c.dom.Attr
getAttributeNode(String attrName)
org.w3c.dom.Attr
getAttributeNodeNS(String namespaceURI, String localName)
String
getClassName()
String
getDir()
org.w3c.dom.NodeList
getElementsByTagName(String tagName)
org.w3c.dom.NodeList
getElementsByTagNameNS(String namespaceURI, String localName)
org.w3c.dom.html.HTMLFormElement
getForm()
Convenience method returns the form in which this form element is contained.
String
getId()
String
getLang()
String
getTitle()
void
setClassName(String className)
void
setDir(String dir)
void
setId(String id)
void
setLang(String lang)
void
setTitle(String title)

Methods inherited from class org.apache.xerces.dom.ElementImpl

cloneNode, getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getAttributes, getBaseURI, getDefaultAttributes, getElementsByTagName, getElementsByTagNameNS, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getTypeName, getTypeNamespace, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isDerivedFrom, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNS, removeAttributeNode, setAttribute, setAttributeNS, setAttributeNode, setAttributeNodeNS, setIdAttribute, setIdAttributeNS, setIdAttributeNode, setReadOnly, setXercesAttributeNode, setupDefaultAttributes, synchronizeData

Methods inherited from class org.apache.xerces.dom.ParentNode

cloneNode, getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, insertBefore, isEqualNode, item, normalize, removeChild, replaceChild, setReadOnly, setTextContent, synchronizeChildren

Methods inherited from class org.apache.xerces.dom.ChildNode

cloneNode, getNextSibling, getParentNode, getPreviousSibling

Methods inherited from class org.apache.xerces.dom.NodeImpl

addEventListener, appendChild, changed, changes, cloneNode, compareDocumentPosition, compareTreePosition, dispatchEvent, getAttributes, getBaseURI, getChildNodes, getContainer, getFeature, getFirstChild, getLastChild, getLength, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeNumber, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getReadOnly, getTextContent, getUserData, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, item, lookupNamespaceURI, lookupPrefix, needsSyncChildren, normalize, removeChild, removeEventListener, replaceChild, setNodeValue, setPrefix, setReadOnly, setTextContent, setUserData, setUserData, synchronizeData, toString

Method Details

getAttribute

public String getAttribute(String attrName)
Specified by:
getAttribute in interface org.w3c.dom.Element
Overrides:
getAttribute in interface org.apache.xerces.dom.ElementImpl


getAttributeNS

public String getAttributeNS(String namespaceURI,
                             String localName)
Specified by:
getAttributeNS in interface org.w3c.dom.Element
Overrides:
getAttributeNS in interface org.apache.xerces.dom.ElementImpl


getAttributeNode

public org.w3c.dom.Attr getAttributeNode(String attrName)
Specified by:
getAttributeNode in interface org.w3c.dom.Element
Overrides:
getAttributeNode in interface org.apache.xerces.dom.ElementImpl


getAttributeNodeNS

public org.w3c.dom.Attr getAttributeNodeNS(String namespaceURI,
                                           String localName)
Specified by:
getAttributeNodeNS in interface org.w3c.dom.Element
Overrides:
getAttributeNodeNS in interface org.apache.xerces.dom.ElementImpl


getClassName

public String getClassName()
Specified by:
getClassName in interface org.w3c.dom.html.HTMLElement


getDir

public String getDir()
Specified by:
getDir in interface org.w3c.dom.html.HTMLElement


getElementsByTagName

public final org.w3c.dom.NodeList getElementsByTagName(String tagName)
Specified by:
getElementsByTagName in interface org.w3c.dom.Element
Overrides:
getElementsByTagName in interface org.apache.xerces.dom.ElementImpl


getElementsByTagNameNS

public final org.w3c.dom.NodeList getElementsByTagNameNS(String namespaceURI,
                                                         String localName)
Specified by:
getElementsByTagNameNS in interface org.w3c.dom.Element
Overrides:
getElementsByTagNameNS in interface org.apache.xerces.dom.ElementImpl


getForm

public org.w3c.dom.html.HTMLFormElement getForm()
Convenience method returns the form in which this form element is contained. This method is exposed for form elements through the DOM API, but other elements have no access to it through the API.


getId

public String getId()
Specified by:
getId in interface org.w3c.dom.html.HTMLElement


getLang

public String getLang()
Specified by:
getLang in interface org.w3c.dom.html.HTMLElement


getTitle

public String getTitle()
Specified by:
getTitle in interface org.w3c.dom.html.HTMLElement


setClassName

public void setClassName(String className)
Specified by:
setClassName in interface org.w3c.dom.html.HTMLElement


setDir

public void setDir(String dir)
Specified by:
setDir in interface org.w3c.dom.html.HTMLElement


setId

public void setId(String id)
Specified by:
setId in interface org.w3c.dom.html.HTMLElement


setLang

public void setLang(String lang)
Specified by:
setLang in interface org.w3c.dom.html.HTMLElement


setTitle

public void setTitle(String title)
Specified by:
setTitle in interface org.w3c.dom.html.HTMLElement


Copyright B) 1999-2004 Apache XML Project. All Rights Reserved.