org.apache.html.dom
Class HTMLElementImpl
org.apache.xerces.dom.ChildNode
org.apache.xerces.dom.ParentNode
org.apache.xerces.dom.ElementImpl
org.apache.html.dom.HTMLElementImpl
- org.w3c.dom.Element, org.w3c.dom.html.HTMLElement, org.w3c.dom.TypeInfo
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.
$Revision: 380041 $ $Date: 2006-02-22 23:42:27 -0500 (Wed, 22 Feb 2006) $org.w3c.dom.html.HTMLElement
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 , setOwnerDocument , setReadOnly , setXercesAttributeNode , setupDefaultAttributes , synchronizeData |
cloneNode , getChildNodes , getChildNodesUnoptimized , getFirstChild , getLastChild , getLength , getOwnerDocument , getTextContent , hasChildNodes , insertBefore , isEqualNode , item , normalize , removeChild , replaceChild , setOwnerDocument , setReadOnly , setTextContent , synchronizeChildren |
HTMLElementImpl
public HTMLElementImpl(HTMLDocumentImpl owner,
String tagName)
Constructor required owner document and element tag name. Will be called
by the constructor of specific element types but with a known tag name.
Assures that the owner document is an HTML element.
owner
- The owner HTML documenttagName
- The element's tag name
getAttribute
public String getAttribute(String attrName)
- getAttribute in interface org.w3c.dom.Element
- getAttribute in interface org.apache.xerces.dom.ElementImpl
getAttributeNS
public String getAttributeNS(String namespaceURI,
String localName)
- getAttributeNS in interface org.w3c.dom.Element
- getAttributeNS in interface org.apache.xerces.dom.ElementImpl
getAttributeNode
public org.w3c.dom.Attr getAttributeNode(String attrName)
- getAttributeNode in interface org.w3c.dom.Element
- getAttributeNode in interface org.apache.xerces.dom.ElementImpl
getAttributeNodeNS
public org.w3c.dom.Attr getAttributeNodeNS(String namespaceURI,
String localName)
- getAttributeNodeNS in interface org.w3c.dom.Element
- getAttributeNodeNS in interface org.apache.xerces.dom.ElementImpl
getClassName
public String getClassName()
- getClassName in interface org.w3c.dom.html.HTMLElement
getDir
public String getDir()
- getDir in interface org.w3c.dom.html.HTMLElement
getElementsByTagName
public final org.w3c.dom.NodeList getElementsByTagName(String tagName)
- getElementsByTagName in interface org.w3c.dom.Element
- getElementsByTagName in interface org.apache.xerces.dom.ElementImpl
getElementsByTagNameNS
public final org.w3c.dom.NodeList getElementsByTagNameNS(String namespaceURI,
String localName)
- getElementsByTagNameNS in interface org.w3c.dom.Element
- 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()
- getId in interface org.w3c.dom.html.HTMLElement
getLang
public String getLang()
- getLang in interface org.w3c.dom.html.HTMLElement
getTitle
public String getTitle()
- getTitle in interface org.w3c.dom.html.HTMLElement
setClassName
public void setClassName(String className)
- setClassName in interface org.w3c.dom.html.HTMLElement
setDir
public void setDir(String dir)
- setDir in interface org.w3c.dom.html.HTMLElement
setId
public void setId(String id)
- setId in interface org.w3c.dom.html.HTMLElement
setLang
public void setLang(String lang)
- setLang in interface org.w3c.dom.html.HTMLElement
setTitle
public void setTitle(String title)
- setTitle in interface org.w3c.dom.html.HTMLElement
Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.