|
||||||||||
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 DomNode
public String getNodeName()
getNodeName
in class DomNode
public String getNodeValue()
getNodeValue
in class DomNode
public Object getKey()
getKey
in interface Map.Entry
public String getName()
public Object getValue()
getValue
in interface Map.Entry
public Object setValue(Object value)
setValue
in interface Map.Entry
value
- new value to be stored in this entry.
protected void setParentNode(DomNode parent)
setParentNode
in class DomNode
parent
- the parent node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |