|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 Form
Field Summary |
Fields inherited from class org.apache.xerces.dom.ElementImpl |
attributes, name |
Fields inherited from class org.apache.xerces.dom.ParentNode |
firstChild, fNodeListCache, 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, flags, HASSTRING, ID, IGNORABLEWS, NORMALIZED, OWNED, ownerNode, 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 |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from interface org.w3c.dom.TypeInfo |
DERIVATION_EXTENSION, DERIVATION_LIST, DERIVATION_RESTRICTION, DERIVATION_UNION |
Method Summary | |
java.lang.String |
getAttribute(java.lang.String attrName)
Retrieves an attribute value by name. |
org.w3c.dom.Attr |
getAttributeNode(java.lang.String attrName)
Retrieves an attribute node by name. |
org.w3c.dom.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 neutraltext and the directionality of tables. |
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String tagName)
Returns a NodeList of all descendant Elements
with a given tag name, in document order. |
org.w3c.dom.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
document order. |
org.w3c.dom.html.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, getBaseURI, getDefaultAttributes, getNodeName, getNodeType, getSchemaTypeInfo, getTagName, getTypeName, getTypeNamespace, getXercesAttribute, hasAttribute, hasAttributeNS, hasAttributes, isDerivedFrom, isEqualNode, normalize, reconcileDefaultAttributes, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setReadOnly, setupDefaultAttributes, setXercesAttributeNode, synchronizeData |
Methods inherited from class org.apache.xerces.dom.ParentNode |
getChildNodes, getChildNodesUnoptimized, getFirstChild, getLastChild, getLength, getOwnerDocument, getTextContent, hasChildNodes, insertBefore, item, removeChild, replaceChild, setTextContent, 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, compareDocumentPosition, compareTreePosition, dispatchEvent, getContainer, getFeature, getLocalName, getNamespaceURI, getNodeNumber, getNodeValue, getPrefix, getReadOnly, getUserData, getUserData, getUserDataRecord, isDefaultNamespace, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, needsSyncChildren, removeEventListener, setNodeValue, setPrefix, setUserData, 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 |
getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS |
Methods inherited from interface org.w3c.dom.Node |
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
Method Detail |
public java.lang.String getId()
org.w3c.dom.html.HTMLElement
getId
in interface org.w3c.dom.html.HTMLElement
public void setId(java.lang.String id)
setId
in interface org.w3c.dom.html.HTMLElement
public java.lang.String getTitle()
org.w3c.dom.html.HTMLElement
getTitle
in interface org.w3c.dom.html.HTMLElement
public void setTitle(java.lang.String title)
setTitle
in interface org.w3c.dom.html.HTMLElement
public java.lang.String getLang()
org.w3c.dom.html.HTMLElement
getLang
in interface org.w3c.dom.html.HTMLElement
public void setLang(java.lang.String lang)
setLang
in interface org.w3c.dom.html.HTMLElement
public java.lang.String getDir()
org.w3c.dom.html.HTMLElement
getDir
in interface org.w3c.dom.html.HTMLElement
public void setDir(java.lang.String dir)
setDir
in interface org.w3c.dom.html.HTMLElement
public java.lang.String getClassName()
org.w3c.dom.html.HTMLElement
getClassName
in interface org.w3c.dom.html.HTMLElement
public void setClassName(java.lang.String className)
setClassName
in interface org.w3c.dom.html.HTMLElement
public org.w3c.dom.Attr getAttributeNode(java.lang.String attrName)
org.w3c.dom.Element
getAttributeNodeNS
method.
getAttributeNode
in interface org.w3c.dom.Element
public org.w3c.dom.Attr getAttributeNodeNS(java.lang.String namespaceURI, java.lang.String localName)
org.w3c.dom.Element
Attr
node by local name and namespace URI.
null
as the
namespaceURI
parameter for methods if they wish to have
no namespace.
getAttributeNodeNS
in interface org.w3c.dom.Element
namespaceURI
- The namespace URI of the attribute to
retrieve.localName
- The local name of the attribute to retrieve.
public java.lang.String getAttribute(java.lang.String attrName)
org.w3c.dom.Element
getAttribute
in interface org.w3c.dom.Element
public java.lang.String getAttributeNS(java.lang.String namespaceURI, java.lang.String localName)
org.w3c.dom.Element
null
as the
namespaceURI
parameter for methods if they wish to have
no namespace.
getAttributeNS
in interface org.w3c.dom.Element
namespaceURI
- The namespace URI of the attribute to
retrieve.localName
- The local name of the attribute to retrieve.
public final org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagName)
org.w3c.dom.Element
NodeList
of all descendant Elements
with a given tag name, in document order.
getElementsByTagName
in interface org.w3c.dom.Element
tagName
- The type of element to gather. To obtain a list of
all elements no matter what their names, use the wild-card tag
name "*".DeepNodeListImpl
public final org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
org.w3c.dom.Element
NodeList
of all the descendant
Elements
with a given local name and namespace URI in
document order.
getElementsByTagNameNS
in interface org.w3c.dom.Element
namespaceURI
- The namespace URI of the elements to match
on. The special value "*" matches all
namespaces. When it is null or an empty
string, this method behaves like
getElementsByTagName.localName
- The local name of the elements to match on.
The special value "*" matches all local names.
public org.w3c.dom.html.HTMLFormElement getForm()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |