|
||||||||||
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.XmlElement
public class XmlElement
An XML element.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
DomNode.ChildIterator, DomNode.DescendantElementsIterator |
Field Summary | |
---|---|
static String |
ATTRIBUTE_NOT_DEFINED
Constant meaning that the specified attribute was not defined. |
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 | |
---|---|
protected |
XmlElement(String namespaceURI,
String qualifiedName,
Page page,
Map attributes)
Create an instance of a DOM node that can have a namespace. |
Method Summary | |
---|---|
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. |
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 |
Field Detail |
---|
public static final String ATTRIBUTE_NOT_DEFINED
Constructor Detail |
---|
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.Method Detail |
---|
public short getNodeType()
getNodeType
in class DomNode
public String getNodeName()
DomNode
getNodeName
in class DomNode
getTagName()
,public String getTagName()
public final String getAttributeValue(String attributeName)
ATTRIBUTE_NOT_DEFINED
attributeName
- the name of the attribute
ATTRIBUTE_NOT_DEFINED
public 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 attributeNamepublic final void removeAttributeNS(String namespaceURI, String localName)
namespaceURI
- the URI that identifies an XML namespace.localName
- The name within the namespace.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |