com.gargoylesoftware.htmlunit.html
Class HtmlAttr

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.html.DomNode
      extended by com.gargoylesoftware.htmlunit.html.DomNamespaceNode
          extended by com.gargoylesoftware.htmlunit.html.HtmlAttr
All Implemented Interfaces:
Serializable, Cloneable, Attr, Node

Deprecated. As of 2.2, no more used, pleas use DomAttr instead.

@Deprecated
public class HtmlAttr
extends DomNamespaceNode
implements Attr

An attribute of an element. Attributes are stored in HtmlElement, but the XPath engine expects attributes to be in a DomNode.

Version:
$Revision: 3026 $
Author:
Denis N. Antonioli, David K. Taylor, Ahmed Ashour
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.DomNode
DomNode.ChildIterator, DomNode.DescendantElementsIterator
 
Field Summary
 
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode
PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
HtmlAttr(HtmlPage page, String namespaceURI, String qualifiedName, String value)
          Deprecated. Instantiate a new attribute.
 
Method Summary
 String getHtmlValue()
          Deprecated. Returns the value of the wrapped map entry.
 String getName()
          Deprecated. 
 String getNodeName()
          Deprecated. Returns this node's node name.
 short getNodeType()
          Deprecated. Returns this node's node type.
 String getNodeValue()
          Deprecated. 
 Element getOwnerElement()
          Deprecated.  Not yet implemented.
 TypeInfo getSchemaTypeInfo()
          Deprecated.  Not yet implemented.
 boolean getSpecified()
          Deprecated.  Not yet implemented.
 String getValue()
          Deprecated. 
 boolean isId()
          Deprecated. 
 String setHtmlValue(String value)
          Deprecated. Sets this attribute's value.
 void setValue(String value)
          Deprecated. Sets this attribute's value.
 
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNamespaceNode
getLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefix
 
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNode
addDomChangeListener, appendChild, appendDomChild, asText, asXml, checkChildHierarchy, cloneDomNode, cloneNode, compareDocumentPosition, fireNodeAdded, fireNodeDeleted, getAllHtmlChildElements, getAttributes, getBaseURI, getByXPath, getCanonicalXPath, getChildIterator, getChildNodes, getChildren, getChildrenAsText, getEndColumnNumber, getEndLineNumber, getFeature, getFirstByXPath, getFirstChild, getFirstDomChild, getLastChild, getLastDomChild, getLog, getNextDomSibling, getNextSibling, getOwnerDocument, getPage, getParentDomNode, getParentNode, getPreviousDomSibling, getPreviousSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, insertBefore, isAncestorOf, isDefaultNamespace, isEqualNode, isRenderedVisible, isSameNode, isSupported, isTrimmedText, lookupNamespaceURI, lookupPrefix, normalize, notifyIncorrectness, onAddedToPage, onAllChildrenAddedToPage, printChildrenAsXml, printXml, reduceWhitespace, remove, removeAllChildren, removeChild, removeDomChangeListener, replace, replaceChild, setNextSibling, setNodeValue, setParentNode, setPreviousSibling, setReadyState, setScriptObject, setTextContent, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

Constructor Detail

HtmlAttr

public HtmlAttr(HtmlPage page,
                String namespaceURI,
                String qualifiedName,
                String value)
Deprecated. 
Instantiate a new attribute.

Parameters:
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
Method Detail

getNodeType

public short getNodeType()
Deprecated. 
Returns this node's node type.

Specified by:
getNodeType in interface Node
Specified by:
getNodeType in class DomNode
Returns:
this node's node type

getNodeName

public String getNodeName()
Deprecated. 
Returns this node's node name.

Specified by:
getNodeName in interface Node
Specified by:
getNodeName in class DomNode
Returns:
this node's node name

getNodeValue

public String getNodeValue()
Deprecated. 

Specified by:
getNodeValue in interface Node
Overrides:
getNodeValue in class DomNode

getName

public String getName()
Deprecated. 

Specified by:
getName in interface Attr
Returns:
the qualified name of this attribute

getValue

public String getValue()
Deprecated. 

Specified by:
getValue in interface Attr
Returns:
the value of this attribute

getHtmlValue

public String getHtmlValue()
Deprecated. 
Returns the value of the wrapped map entry. TODO: not required?

Returns:
the value of wrapped map entry

setValue

public void setValue(String value)
Deprecated. 
Sets this attribute's value.

Specified by:
setValue in interface Attr
Parameters:
value - the attribute's new value

setHtmlValue

public String setHtmlValue(String value)
Deprecated. 
Sets this attribute's value. TODO: not required?

Parameters:
value - the attribute's new value
Returns:
the attribute's old value

getOwnerElement

public Element getOwnerElement()
Deprecated. 
Not yet implemented.

Specified by:
getOwnerElement in interface Attr

getSpecified

public boolean getSpecified()
Deprecated. 
Not yet implemented.

Specified by:
getSpecified in interface Attr

getSchemaTypeInfo

public TypeInfo getSchemaTypeInfo()
Deprecated. 
Not yet implemented.

Specified by:
getSchemaTypeInfo in interface Attr

isId

public boolean isId()
Deprecated. 

Specified by:
isId in interface Attr


Copyright © 2002-2008 Gargoyle Software Inc.. All Rights Reserved.