public class HtmlAttr extends DomNamespaceNode implements Map.Entry
HtmlElement
, but the xpath engine expects attributes to be in a DomNode
.DomNode.ChildIterator, DomNode.DescendantElementsIterator
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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. |
getLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefix
addDomChangeListener, addPropertyChangeListener, appendChild, appendDomChild, asText, asXml, cloneDomNode, cloneNode, fireNodeAdded, fireNodeDeleted, firePropertyChange, getAllHtmlChildElements, getByXPath, getChildIterator, getChildrenAsText, getEndColumnNumber, getEndLineNumber, getEventHandler, getFirstByXPath, getFirstChild, getFirstDomChild, getLastChild, getLastDomChild, getLog, getNativePage, getNextDomSibling, getNextSibling, getPage, getParentDomNode, getParentNode, getPreviousDomSibling, getPreviousSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, hasAttributes, insertBefore, isAncestorOf, isRenderedVisible, isTrimmedText, notifyIncorrectness, onAddedToPage, onAllChildrenAddedToPage, printChildrenAsXml, printXml, reduceWhitespace, remove, removeAllChildren, removeDomChangeListener, removeEventHandler, removePropertyChangeListener, replace, setEventHandler, setEventHandler, setNextSibling, setNodeValue, setParentNode, setPreviousSibling, setReadyState, setScriptObject
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.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.public String getName()
public Object getValue()
getHtmlValue()
instead.public Object getHtmlValue()
public Object setValue(Object value)
setHtmlValue(Object)
instead.Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.