public class XmlAttr extends DomNamespaceNode implements Map.Entry
XmlElement
,
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 |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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, setPreviousSibling, setReadyState, setScriptObject
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.public short getNodeType()
getNodeType
in class DomNode
public String getNodeName()
getNodeName
in class DomNode
public String getNodeValue()
getNodeValue
in class DomNode
public String getName()
public Object getValue()
protected void setParentNode(DomNode parent)
setParentNode
in class DomNode
parent
- the parent nodeCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.