|
||||||||||
| 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.xml.XmlAttr
public class XmlAttr
An attribute of an element. Attributes are stored in XmlElement,
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 | |
|---|---|
XmlAttr(Page page,
String namespaceURI,
String qualifiedName,
String value)
Instantiate a new attribute. |
|
XmlAttr(XmlElement xmlElement,
Map.Entry mapEntry)
Deprecated. Use constructor with explicit names. |
|
| Method Summary | |
|---|---|
Object |
getKey()
|
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()
|
protected void |
setParentNode(DomNode parent)
Set the parent node |
Object |
setValue(Object value)
Set the value of the attribute. |
| 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 XmlAttr(XmlElement xmlElement,
Map.Entry mapEntry)
xmlElement - The parent element.mapEntry - The wrapped Map.Entry.
public XmlAttr(Page 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 DomNodepublic String getNodeName()
getNodeName in class DomNodepublic String getNodeValue()
getNodeValue in class DomNodepublic Object getKey()
getKey in interface Map.Entrypublic String getName()
public Object getValue()
getValue in interface Map.Entrypublic Object setValue(Object value)
setValue in interface Map.Entryvalue - new value to be stored in this entry.
protected void setParentNode(DomNode parent)
setParentNode in class DomNodeparent - the parent node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||