org.apache.html.dom

Class HTMLElementImpl

public class HTMLElementImpl extends ElementImpl implements 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.9 $ $Date: 2005/04/18 00:41:07 $

Author: Assaf Arkin

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

UNKNOWN:

Method Summary
StringgetAttribute(String attrName)
AttrgetAttributeNode(String attrName)
AttrgetAttributeNodeNS(String namespaceURI, String localName)
StringgetAttributeNS(String namespaceURI, String localName)
StringgetClassName()
StringgetDir()
NodeListgetElementsByTagName(String tagName)
NodeListgetElementsByTagNameNS(String namespaceURI, String localName)
HTMLFormElementgetForm()
Convenience method returns the form in which this form element is contained.
StringgetId()
StringgetLang()
StringgetTitle()
voidsetClassName(String className)
voidsetDir(String dir)
voidsetId(String id)
voidsetLang(String lang)
voidsetTitle(String title)

Method Detail

getAttribute

public String getAttribute(String attrName)

getAttributeNode

public Attr getAttributeNode(String attrName)

getAttributeNodeNS

public Attr getAttributeNodeNS(String namespaceURI, String localName)

getAttributeNS

public String getAttributeNS(String namespaceURI, String localName)

getClassName

public String getClassName()

getDir

public String getDir()

getElementsByTagName

public final NodeList getElementsByTagName(String tagName)

getElementsByTagNameNS

public final NodeList getElementsByTagNameNS(String namespaceURI, String localName)

getForm

public 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()

getLang

public String getLang()

getTitle

public String getTitle()

setClassName

public void setClassName(String className)

setDir

public void setDir(String dir)

setId

public void setId(String id)

setLang

public void setLang(String lang)

setTitle

public void setTitle(String title)
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.