| java.lang.Object org.netbeans.tax.dom.NodeImpl org.netbeans.tax.dom.AttrImpl
Method Summary | |
public String | getName() Returns the name of this attribute. | public String | getNodeName() The name of this node, depending on its type; see the table above. | public short | getNodeType() A code representing the type of the underlying object, as defined above. | public String | getNodeValue() The value of this node, depending on its type; see the table above. | public Element | getOwnerElement() The Element node this attribute is attached to or
null if this attribute is not in use. | public Node | getParentNode() The parent of this node. | public boolean | getSpecified() If this attribute was explicitly given a value in the original
document, this is true ; otherwise, it is
false . | public String | getValue() On retrieval, the value of the attribute is returned as a string.
Character and general entity references are replaced with their
values. | public void | setValue(String value) On retrieval, the value of the attribute is returned as a string.
Character and general entity references are replaced with their
values. |
getName | public String getName()(Code) | | Returns the name of this attribute.
|
getNodeName | public String getNodeName()(Code) | | The name of this node, depending on its type; see the table above.
|
getNodeType | public short getNodeType()(Code) | | A code representing the type of the underlying object, as defined above.
|
getNodeValue | public String getNodeValue() throws DOMException(Code) | | The value of this node, depending on its type; see the table above.
When it is defined to be null , setting it has no effect.
exception: DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. exception: DOMException - DOMSTRING_SIZE_ERR: Raised when it would return more characters thanfit in a DOMString variable on the implementationplatform. |
getOwnerElement | public Element getOwnerElement()(Code) | | The Element node this attribute is attached to or
null if this attribute is not in use.
since: DOM Level 2 |
getParentNode | public Node getParentNode()(Code) | | The parent of this node. All nodes, except Attr ,
Document , DocumentFragment ,
Entity , and Notation may have a parent.
However, if a node has just been created and not yet added to the
tree, or if it has been removed from the tree, this is
null .
|
getSpecified | public boolean getSpecified()(Code) | | If this attribute was explicitly given a value in the original
document, this is true ; otherwise, it is
false . Note that the implementation is in charge of this
attribute, not the user. If the user changes the value of the
attribute (even if it ends up having the same value as the default
value) then the specified flag is automatically flipped
to true . To re-specify the attribute as the default
value from the DTD, the user must delete the attribute. The
implementation will then make a new attribute available with
specified set to false and the default
value (if one exists).
In summary: If the attribute has an assigned value in the document
then specified is true , and the value is
the assigned value.If the attribute has no assigned value in the
document and has a default value in the DTD, then
specified is false , and the value is the
default value in the DTD.If the attribute has no assigned value in
the document and has a value of #IMPLIED in the DTD, then the
attribute does not appear in the structure model of the document.If
the ownerElement attribute is null (i.e.
because it was just created or was set to null by the
various removal and cloning operations) specified is
true .
|
getValue | public String getValue()(Code) | | On retrieval, the value of the attribute is returned as a string.
Character and general entity references are replaced with their
values. See also the method getAttribute on the
Element interface.
On setting, this creates a Text node with the unparsed
contents of the string. I.e. any characters that an XML processor
would recognize as markup are instead treated as literal text. See
also the method setAttribute on the Element
interface.
exception: DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. |
setValue | public void setValue(String value) throws DOMException(Code) | | On retrieval, the value of the attribute is returned as a string.
Character and general entity references are replaced with their
values. See also the method getAttribute on the
Element interface.
On setting, this creates a Text node with the unparsed
contents of the string. I.e. any characters that an XML processor
would recognize as markup are instead treated as literal text. See
also the method setAttribute on the Element
interface.
exception: DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly. |
Methods inherited from org.netbeans.tax.dom.NodeImpl | public Node appendChild(Node newChild) throws DOMException(Code)(Java Doc) public Node cloneNode(boolean deep)(Code)(Java Doc) public short compareDocumentPosition(Node a)(Code)(Java Doc) public NamedNodeMap getAttributes()(Code)(Java Doc) public String getBaseURI()(Code)(Java Doc) public NodeList getChildNodes()(Code)(Java Doc) public Object getFeature(String a, String b)(Code)(Java Doc) public Node getFirstChild()(Code)(Java Doc) public Node getLastChild()(Code)(Java Doc) public String getLocalName()(Code)(Java Doc) public String getNamespaceURI()(Code)(Java Doc) public Node getNextSibling()(Code)(Java Doc) abstract public String getNodeName()(Code)(Java Doc) abstract public short getNodeType()(Code)(Java Doc) abstract public String getNodeValue() throws DOMException(Code)(Java Doc) public Document getOwnerDocument()(Code)(Java Doc) abstract public Node getParentNode()(Code)(Java Doc) public String getPrefix()(Code)(Java Doc) public Node getPreviousSibling()(Code)(Java Doc) public TypeInfo getSchemaTypeInfo()(Code)(Java Doc) public String getTextContent()(Code)(Java Doc) public Object getUserData(String a)(Code)(Java Doc) public String getWholeText()(Code)(Java Doc) public boolean hasAttributes()(Code)(Java Doc) public boolean hasChildNodes()(Code)(Java Doc) public Node insertBefore(Node newChild, Node refChild) throws DOMException(Code)(Java Doc) public boolean isDefaultNamespace(String a)(Code)(Java Doc) public boolean isElementContentWhitespace()(Code)(Java Doc) public boolean isEqualNode(Node a)(Code)(Java Doc) public boolean isId()(Code)(Java Doc) public boolean isSameNode(Node a)(Code)(Java Doc) public boolean isSupported(String feature, String version)(Code)(Java Doc) public String lookupNamespaceURI(String a)(Code)(Java Doc) public String lookupPrefix(String a)(Code)(Java Doc) public void normalize()(Code)(Java Doc) public Node removeChild(Node oldChild) throws DOMException(Code)(Java Doc) public Node replaceChild(Node newChild, Node oldChild) throws DOMException(Code)(Java Doc) public Text replaceWholeText(String a)(Code)(Java Doc) public void setIdAttribute(String a, boolean b)(Code)(Java Doc) public void setIdAttributeNS(String a, String b, boolean c)(Code)(Java Doc) public void setIdAttributeNode(Attr a, boolean b)(Code)(Java Doc) public void setNodeValue(String nodeValue) throws DOMException(Code)(Java Doc) public void setPrefix(String prefix) throws DOMException(Code)(Java Doc) public void setTextContent(String a)(Code)(Java Doc) public Object setUserData(String a, Object b, UserDataHandler c)(Code)(Java Doc)
|
|
|