|
Xerces 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xerces.dom.NodeImpl | +--org.apache.xerces.dom.ChildNode | +--org.apache.xerces.dom.ParentNode | +--org.apache.xerces.dom.ElementImpl | +--org.apache.html.dom.HTMLElementImpl
Implements an HTML-specific element, an Element
that
will only appear inside HTML documents. This element extends 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.
HTMLElement
,
Serialized FormField Summary |
Fields inherited from class org.apache.xerces.dom.ElementImpl |
attributes, name |
Fields inherited from class org.apache.xerces.dom.ParentNode |
fCachedChild, fCachedChildIndex, fCachedLength, firstChild, ownerDocument |
Fields inherited from class org.apache.xerces.dom.ChildNode |
nextSibling, previousSibling |
Fields inherited from class org.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, IGNORABLEWS, MUTATION_AGGREGATE, MUTATION_ALL, MUTATION_LOCAL, MUTATION_NONE, MUTATIONEVENTS, OWNED, ownerNode, READONLY, SETVALUE, SPECIFIED, SYNCCHILDREN, SYNCDATA, UNNORMALIZED |
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 | |
java.lang.String |
getAttribute(java.lang.String attrName)
Retrieves an attribute value by name. |
Attr |
getAttributeNode(java.lang.String attrName)
Retrieves an attribute node by name. |
Attr |
getAttributeNodeNS(java.lang.String namespaceURI,
java.lang.String localName)
Retrieves an Attr node by local name and namespace URI.
|
java.lang.String |
getAttributeNS(java.lang.String namespaceURI,
java.lang.String localName)
Retrieves an attribute value by local name and namespace URI. |
java.lang.String |
getClassName()
The class attribute of the element. |
java.lang.String |
getDir()
Specifies the base direction of directionally neutral text and the directionality of tables. |
NodeList |
getElementsByTagName(java.lang.String tagName)
Returns a NodeList of all descendant Elements
with a given tag name, in the order in which they are encountered in
a preorder traversal of this Element tree. |
NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
Returns a NodeList of all the descendant
Elements with a given local name and namespace URI in
the order in which they are encountered in a preorder traversal of
this Element tree.
|
HTMLFormElement |
getForm()
Convenience method returns the form in which this form element is contained. |
java.lang.String |
getId()
The element's identifier. |
java.lang.String |
getLang()
Language code defined in RFC 1766. |
java.lang.String |
getTitle()
The element's advisory title. |
void |
setClassName(java.lang.String className)
|
void |
setDir(java.lang.String dir)
|
void |
setId(java.lang.String id)
|
void |
setLang(java.lang.String lang)
|
void |
setTitle(java.lang.String title)
|
Methods inherited from class org.apache.xerces.dom.ElementImpl |
cloneNode, getAttributes, getDefaultAttributes, getNodeName, getNodeType, getTagName, hasAttribute, hasAttributeNS, hasAttributes, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setReadOnly, setupDefaultAttributes, synchronizeData |
Methods inherited from class org.apache.xerces.dom.ParentNode |
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, hasChildNodes, insertBefore, item, removeChild, replaceChild, synchronizeChildren, synchronizeChildren |
Methods inherited from class org.apache.xerces.dom.ChildNode |
getNextSibling, getParentNode, getPreviousSibling |
Methods inherited from class org.apache.xerces.dom.NodeImpl |
addEventListener, appendChild, changed, changes, dispatchEvent, getLocalName, getNamespaceURI, getNodeValue, getPrefix, getReadOnly, getUserData, isSupported, removeEventListener, setNodeValue, setPrefix, setUserData, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Element |
getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix |
Method Detail |
public java.lang.String getId()
HTMLElement
getId
in interface HTMLElement
public void setId(java.lang.String id)
setId
in interface HTMLElement
public java.lang.String getTitle()
HTMLElement
getTitle
in interface HTMLElement
public void setTitle(java.lang.String title)
setTitle
in interface HTMLElement
public java.lang.String getLang()
HTMLElement
getLang
in interface HTMLElement
public void setLang(java.lang.String lang)
setLang
in interface HTMLElement
public java.lang.String getDir()
HTMLElement
getDir
in interface HTMLElement
public void setDir(java.lang.String dir)
setDir
in interface HTMLElement
public java.lang.String getClassName()
HTMLElement
getClassName
in interface HTMLElement
public void setClassName(java.lang.String className)
setClassName
in interface HTMLElement
public Attr getAttributeNode(java.lang.String attrName)
Element
getAttributeNodeNS
method.
getAttributeNode
in interface Element
getAttributeNode
in class ElementImpl
Attr
node with the specified name (
nodeName
) or null
if there is no such
attribute.public Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)
Element
Attr
node by local name and namespace URI.
HTML-only DOM implementations do not need to implement this method.
getAttributeNodeNS
in interface Element
getAttributeNodeNS
in class ElementImpl
Attr
node with the specified attribute local
name and namespace URI or null
if there is no such
attribute.public java.lang.String getAttribute(java.lang.String attrName)
Element
getAttribute
in interface Element
getAttribute
in class ElementImpl
Attr
value as a string, or the empty string
if that attribute does not have a specified or default value.public java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
Element
getAttributeNS
in interface Element
getAttributeNS
in class ElementImpl
Attr
value as a string, or the empty string
if that attribute does not have a specified or default value.public final NodeList getElementsByTagName(java.lang.String tagName)
Element
NodeList
of all descendant Elements
with a given tag name, in the order in which they are encountered in
a preorder traversal of this Element
tree.
getElementsByTagName
in interface Element
getElementsByTagName
in class ElementImpl
Element
nodes.public final NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
Element
NodeList
of all the descendant
Elements
with a given local name and namespace URI in
the order in which they are encountered in a preorder traversal of
this Element
tree.
getElementsByTagNameNS
in interface Element
getElementsByTagNameNS
in class ElementImpl
NodeList
object containing all the matched
Elements
.public HTMLFormElement getForm()
|
Xerces 1.3.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |