|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.apache.xml.utils.UnImplNode
|
+--org.apache.xalan.stree.Child
|
+--org.apache.xalan.stree.AttrImpl
**For internal use only** Class to hold information about an attribute node.
| Method Summary | |
void |
dispatchCharactersEvent(ContentHandler ch)
Handle a Characters event |
java.lang.String |
getLocalName()
Returns the local part of the qualified name of this node. |
java.lang.String |
getName()
Get this attribute's name |
java.lang.String |
getNamespaceURI()
The namespace URI of this node, or null if it is
unspecified. |
Node |
getNextSibling()
The node immediately following this node. |
java.lang.String |
getNodeName()
Returns the node name. |
short |
getNodeType()
A short integer indicating what type of node this is. |
java.lang.String |
getNodeValue()
Same as getValue(). |
Element |
getOwnerElement()
The Element node this attribute is attached to or
null if this attribute is not in use. |
java.lang.String |
getPrefix()
The namespace prefix of this node, or null if it is
unspecified. |
Node |
getPreviousSibling()
The node immediately preceding this node. |
boolean |
getSpecified()
If this attribute was explicitly given a value in the original document, this is true ; otherwise, it is
false . |
java.lang.String |
getValue()
Returns the value of this attribute node. |
void |
setValue(java.lang.String value)
Sets the value of this attribute node. |
| Methods inherited from class org.apache.xalan.stree.Child |
getAttributes,
getFirstChild,
getLastChild,
getLevel,
getOwnerDocument,
getParentNode,
getTagName,
getUid,
hasChildNodes,
isComplete,
isNamespaceNode,
isSupported,
setAttribute,
setComplete,
setLevel |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Method Detail |
public short getNodeType()
public java.lang.String getNodeName()
public java.lang.String getNamespaceURI()
null if it is
unspecified.
ELEMENT_NODE and
ATTRIBUTE_NODE and nodes created with a DOM Level 1
method, such as createElement from the
Document interface, this is always null.Per
the Namespaces in XML Specification an attribute does not inherit its
namespace from the element it is attached to. If an attribute is not
explicitly given a namespace, it simply has no namespace.public java.lang.String getPrefix()
null if it is
unspecified.public java.lang.String getLocalName()
createElement from the Document interface,
it is null.public java.lang.String getValue()
createElement from the Document interface,
it is null.
public java.lang.String getNodeValue()
throws DOMException
public void setValue(java.lang.String value)
throws DOMException
createElement from the Document interface,
it is null.value - Attribute value to be setpublic boolean getSpecified()
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).
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.public Element getOwnerElement()
Element node this attribute is attached to or
null if this attribute is not in use.public java.lang.String getName()
public Node getPreviousSibling()
null.public Node getNextSibling()
null.
public void dispatchCharactersEvent(ContentHandler ch)
throws SAXException
ch - Content handler to handle SAX events
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||