|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xerces.dom.NodeImpl | +--org.apache.xerces.dom.NodeContainer | +--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 FormFields inherited from class org.apache.xerces.dom.ElementImpl |
attributes |
Fields inherited from class org.apache.xerces.dom.NodeContainer |
firstChild,
kidOK,
lastChild,
nodeListChanges,
nodeListIndex,
nodeListLength,
nodeListNode,
syncChildren |
Fields inherited from class org.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE,
fInternalSetNodeValue,
MUTATION_AGGREGATE,
MUTATION_ALL,
MUTATION_LOCAL,
MUTATION_NONE,
MUTATIONEVENTS,
name,
nextSibling,
ownerDocument,
parentNode,
previousSibling,
readOnly,
syncData,
userData,
value |
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 would be encountered in a
preorder traversal of the Element tree. |
NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
Returns a NodeList of all the Elements with
a given local name and namespace URI in the order in which they would
be encountered in a preorder traversal of the Document
tree, starting from this node. |
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,
getNodeType,
getNodeValue,
getTagName,
normalize,
removeAttribute,
removeAttributeNode,
removeAttributeNS,
setAttribute,
setAttributeNode,
setAttributeNodeNS,
setAttributeNS,
setNodeValue,
setReadOnly,
setupDefaultAttributes,
synchronizeData |
Methods inherited from class org.apache.xerces.dom.NodeContainer |
appendChild,
getChildNodes,
getFirstChild,
getLastChild,
getLength,
hasChildNodes,
insertBefore,
item,
removeChild,
replaceChild,
synchronizeChildren |
Methods inherited from class org.apache.xerces.dom.NodeImpl |
addEventListener,
changed,
dispatchEvent,
finalize,
getLocalName,
getNamespaceURI,
getNextSibling,
getNodeName,
getOwnerDocument,
getParentNode,
getPrefix,
getPreviousSibling,
getReadOnly,
getUserData,
removeEventListener,
setPrefix,
setUserData,
supports,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Method Detail |
public java.lang.String getId()
public void setId(java.lang.String id)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.lang.String getLang()
public void setLang(java.lang.String lang)
public java.lang.String getDir()
public void setDir(java.lang.String dir)
public java.lang.String getClassName()
public void setClassName(java.lang.String className)
public Attr getAttributeNode(java.lang.String attrName)
getAttributeNodeNS
method.name
- The name (nodeName
) of the attribute to
retrieve.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)
Attr
node by local name and namespace URI.
HTML-only DOM implementations do not need to implement this method.namespaceURI
- The namespace URI of the attribute to retrieve.localName
- The local name of the attribute to retrieve.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)
name
- The name of the attribute to retrieve.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)
namespaceURI
- The namespace URI of the attribute to retrieve.localName
- The local name of the attribute to retrieve.Attr
value as a string, or an
null
if that attribute does not have a specified or
default value. This is different from getAttribute
which never return null
.public final NodeList getElementsByTagName(java.lang.String tagName)
NodeList
of all descendant elements with a
given tag name, in the order in which they would be encountered in a
preorder traversal of the Element
tree.name
- The name of the tag to match on. The special value "*"
matches all tags.Element
nodes.public final NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
NodeList
of all the Elements
with
a given local name and namespace URI in the order in which they would
be encountered in a preorder traversal of the Document
tree, starting from this node.
namespaceURI
- The namespace URI of the elements to match on.
The special value "*" matches all namespaces.localName
- The local name of the elements to match on. The
special value "*" matches all local names.NodeList
object containing all the matched
Elements
.public HTMLFormElement getForm()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |