|
|||||
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.HtmlAttr
public class HtmlAttr
A thin wrapper around attributes. Attributes are stored as Map.Entry
in HtmlElement
, but the xpath engine expects attributes to be in a DomNode
.
Field Summary |
---|
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED |
Constructor Summary | |
---|---|
HtmlAttr(HtmlElement htmlElement,
java.util.Map.Entry mapEntry)
Instantiate a new wrapper. |
Method Summary | |
---|---|
java.lang.Object |
getHtmlValue()
|
java.lang.Object |
getKey()
|
java.lang.String |
getNodeName()
Get the name for the current node. |
short |
getNodeType()
Get the type of the current node. |
java.lang.String |
getNodeValue()
Get the value for the current node. |
java.lang.Object |
setHtmlValue(java.lang.Object value)
Delegate to the wrapped map entry. |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
addDomChangeListener, appendDomChild, asText, asXml, cloneDomNode, getAllHtmlChildElements, getByXPath, getChildIterator, getEndColumnNumber, getEndLineNumber, getEventHandler, getFirstDomChild, getLastDomChild, getNextDomSibling, getPage, getParentDomNode, getPreviousDomSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, insertBefore, remove, removeAllChildren, removeDomChangeListener, removeEventHandler, replace, setEventHandler, setEventHandler, setNodeValue, setReadyState, setScriptObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map.Entry |
---|
equals, getValue, hashCode, setValue |
Constructor Detail |
---|
public HtmlAttr(HtmlElement htmlElement, java.util.Map.Entry mapEntry)
htmlElement
- The parent element.mapEntry
- The wrapped Map.Entry.Method Detail |
---|
public java.lang.Object getHtmlValue()
public java.lang.Object getKey()
getKey
in interface java.util.Map.Entry
public java.lang.String getNodeName()
DomNode
getNodeName
in class DomNode
getKey()
.public short getNodeType()
DomNode
getNodeType
in class DomNode
public java.lang.String getNodeValue()
DomNode
getNodeValue
in class DomNode
getValue()
.public java.lang.Object setHtmlValue(java.lang.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 |