| com.gargoylesoftware.htmlunit.html.DomNamespaceNode com.gargoylesoftware.htmlunit.xml.XmlElement
XmlElement | public class XmlElement extends DomNamespaceNode (Code) | | An XML element.
version: $Revision: 2132 $ author: Ahmed Ashour |
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 | |
static XmlAttr | addAttributeToMap(XmlPage page, Map attributeMap, String namespaceURI, String qualifiedName, String value) Add an attribute to the attribute map. | static Map | createAttributeMap(int attributeCount) Create an attribute map as needed by HtmlElement. | final public String | getAttributeValue(String attributeName) Return the value of the specified attribute or an empty string. | public Map | getAttributes() Returns the map holding the attributes, keyed by name. | public String | getNodeName() | public short | getNodeType() | public String | getTagName() Return the tag name of this element. | final public void | removeAttribute(String attributeName) Removes an attribute specified by name from this element. | final public void | removeAttributeNS(String namespaceURI, String localName) Removes an attribute specified by namespace and local name from this element. | final public void | setAttribute(String attributeName, String attributeValue) Set the value of the attribute specified by name. | final public void | setAttributeNS(String namespaceURI, String qualifiedName, String attributeValue) Set the value of the attribute specified by namespace and qualified name. | final public void | setAttributeValue(String attributeName, String attributeValue) Set the value of the specified attribute. | final public void | setAttributeValue(String namespaceURI, String qualifiedName, String attributeValue) Set the value of the specified attribute. |
ATTRIBUTE_NOT_DEFINED | final public static String ATTRIBUTE_NOT_DEFINED(Code) | | Constant meaning that the specified attribute was not defined.
|
XmlElement | protected XmlElement(String namespaceURI, String qualifiedName, Page page, Map attributes)(Code) | | Create an instance of a DOM node that can have a namespace.
Parameters: namespaceURI - the URI that identifies an XML namespace. Parameters: qualifiedName - The qualified name of the element type to instantiate. Parameters: page - The page that contains this element. Parameters: attributes - The attributes of this element. |
addAttributeToMap | static XmlAttr addAttributeToMap(XmlPage page, Map attributeMap, String namespaceURI, String qualifiedName, String value)(Code) | | Add an attribute to the attribute map. This is just used by the element factories.
Parameters: attributeMap - the attribute map where the attribute will be added. Parameters: namespaceURI - the URI that identifies an XML namespace. Parameters: qualifiedName - The qualified name of the attribute Parameters: value - The value of the attribute |
createAttributeMap | static Map createAttributeMap(int attributeCount)(Code) | | Create an attribute map as needed by HtmlElement. This is just used by the element factories.
Parameters: attributeCount - the initial number of attributes to be added to the map. the attribute map. |
getAttributes | public Map getAttributes()(Code) | | Returns the map holding the attributes, keyed by name.
the attributes map. |
getNodeType | public short getNodeType()(Code) | | |
getTagName | public String getTagName()(Code) | | Return the tag name of this element.
the tag name of this element. |
removeAttribute | final public void removeAttribute(String attributeName)(Code) | | Removes an attribute specified by name from this element.
Parameters: attributeName - the attribute attributeName |
removeAttributeNS | final public void removeAttributeNS(String namespaceURI, String localName)(Code) | | Removes an attribute specified by namespace and local name from this element.
Parameters: namespaceURI - the URI that identifies an XML namespace. Parameters: localName - The name within the namespace. |
setAttribute | final public void setAttribute(String attributeName, String attributeValue)(Code) | | Set the value of the attribute specified by name.
Parameters: attributeName - the name of the attribute Parameters: attributeValue - The value of the attribute |
setAttributeNS | final public void setAttributeNS(String namespaceURI, String qualifiedName, String attributeValue)(Code) | | Set the value of the attribute specified by namespace and qualified name.
Parameters: namespaceURI - the URI that identifies an XML namespace. Parameters: qualifiedName - The qualified name (prefix:local) of the attribute. Parameters: attributeValue - The value of the attribute |
setAttributeValue | final public void setAttributeValue(String attributeName, String attributeValue)(Code) | | Set the value of the specified attribute.
Parameters: attributeName - the name of the attribute Parameters: attributeValue - The value of the attribute |
setAttributeValue | final public void setAttributeValue(String namespaceURI, String qualifiedName, String attributeValue)(Code) | | Set the value of the specified attribute.
Parameters: namespaceURI - the URI that identifies an XML namespace. Parameters: qualifiedName - The qualified name of the attribute Parameters: attributeValue - The value of the attribute |
|
|