public class XmlElement extends DomNamespaceNode
DomNode.ChildIterator, DomNode.DescendantElementsIterator| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_NOT_DEFINED
Constant meaning that the specified attribute was not defined.
|
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| Modifier | Constructor and Description |
|---|---|
protected |
XmlElement(String namespaceURI,
String qualifiedName,
Page page,
Map attributes)
Create an instance of a DOM node that can have a namespace.
|
| Modifier and Type | Method and Description |
|---|---|
Map |
getAttributes()
Returns the map holding the attributes, keyed by name.
|
String |
getAttributeValue(String attributeName)
Return the value of the specified attribute or an empty string.
|
String |
getNodeName()
Get the name for the current node.
|
short |
getNodeType()
Get the type of the current node.
|
String |
getTagName()
Return the tag name of this element.
|
void |
removeAttribute(String attributeName)
Removes an attribute specified by name from this element.
|
void |
removeAttributeNS(String namespaceURI,
String localName)
Removes an attribute specified by namespace and local name from this element.
|
void |
setAttribute(String attributeName,
String attributeValue)
Set the value of the attribute specified by name.
|
void |
setAttributeNS(String namespaceURI,
String qualifiedName,
String attributeValue)
Set the value of the attribute specified by namespace and qualified name.
|
void |
setAttributeValue(String attributeName,
String attributeValue)
Set the value of the specified attribute.
|
void |
setAttributeValue(String namespaceURI,
String qualifiedName,
String attributeValue)
Set the value of the specified attribute.
|
getLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefixaddDomChangeListener, 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, getNodeValue, 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, setScriptObjectpublic static final String ATTRIBUTE_NOT_DEFINED
protected XmlElement(String namespaceURI, String qualifiedName, Page page, Map attributes)
namespaceURI - the URI that identifies an XML namespace.qualifiedName - The qualified name of the element type to instantiate.page - The page that contains this element.attributes - The attributes of this element.public short getNodeType()
getNodeType in class DomNodepublic String getNodeName()
DomNodegetNodeName in class DomNodegetTagName(),public String getTagName()
public final String getAttributeValue(String attributeName)
ATTRIBUTE_NOT_DEFINEDattributeName - the name of the attributeATTRIBUTE_NOT_DEFINEDpublic Map getAttributes()
public final void setAttribute(String attributeName, String attributeValue)
attributeName - the name of the attributeattributeValue - The value of the attributepublic final void setAttributeNS(String namespaceURI, String qualifiedName, String attributeValue)
namespaceURI - the URI that identifies an XML namespace.qualifiedName - The qualified name (prefix:local) of the attribute.attributeValue - The value of the attributepublic final void setAttributeValue(String attributeName, String attributeValue)
attributeName - the name of the attributeattributeValue - The value of the attributepublic final void setAttributeValue(String namespaceURI, String qualifiedName, String attributeValue)
namespaceURI - the URI that identifies an XML namespace.qualifiedName - The qualified name of the attributeattributeValue - The value of the attributepublic final void removeAttribute(String attributeName)
attributeName - the attribute attributeNameCopyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.