|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.html.DomNode
com.gargoylesoftware.htmlunit.html.DomNamespaceNode
com.gargoylesoftware.htmlunit.html.HtmlAttr
public class HtmlAttr
An attribute of an element. Attributes are stored in HtmlElement
, but the xpath engine expects attributes to be in a DomNode
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
DomNode.ChildIterator, DomNode.DescendantElementsIterator |
Field Summary |
---|
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
ATTRIBUTE_NODE, COMMENT_NODE, DOCUMENT_NODE, ELEMENT_NODE, PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED, TEXT_NODE |
Constructor Summary | |
---|---|
HtmlAttr(HtmlElement htmlElement,
Map.Entry mapEntry)
Deprecated. Use constructor with explicit names. |
|
HtmlAttr(HtmlPage page,
String namespaceURI,
String qualifiedName,
String value)
Instantiate a new attribute. |
Method Summary | |
---|---|
Object |
getHtmlValue()
|
Object |
getKey()
Deprecated. The implements Map.Entry is deprecated. Use getName() instead. |
String |
getName()
|
String |
getNodeName()
Get the name for the current node. |
short |
getNodeType()
Get the type of the current node. |
String |
getNodeValue()
Get the value for the current node. |
Object |
getValue()
Deprecated. This method conflicts with the W3C DOM API since the return values are different. Use getHtmlValue() instead. |
Object |
setHtmlValue(Object value)
Set the value of the attribute. |
Object |
setValue(Object value)
Deprecated. This method conflicts with the W3C DOM API since the return values are different. Use setHtmlValue(Object) instead. |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNamespaceNode |
---|
getLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map.Entry |
---|
equals, hashCode |
Constructor Detail |
---|
public HtmlAttr(HtmlElement htmlElement, Map.Entry mapEntry)
htmlElement
- The parent element.mapEntry
- The wrapped Map.Entry.public HtmlAttr(HtmlPage page, String namespaceURI, String qualifiedName, String value)
page
- The page that the attribute belongs to.namespaceURI
- The namespace that defines the attribute name. May be null.qualifiedName
- The name of the attribute.value
- The value of the attribute.Method Detail |
---|
public short getNodeType()
getNodeType
in class DomNode
public String getNodeName()
getNodeName
in class DomNode
public String getNodeValue()
getNodeValue
in class DomNode
public Object getKey()
getName()
instead.
getKey
in interface Map.Entry
public String getName()
public Object getValue()
getHtmlValue()
instead.
getValue
in interface Map.Entry
public Object getHtmlValue()
public Object setValue(Object value)
setHtmlValue(Object)
instead.
setValue
in interface Map.Entry
value
- new value to be stored in this entry.
public Object setHtmlValue(Object value)
value
- new value to be stored in this entry.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |