| java.lang.Object org.enhydra.xml.NodeImpl org.enhydra.xml.AttrImpl
Field Summary | |
String | name Attribute name. | Element | owner Document owner. | boolean | specified If this attribute was explicitly given a value in the original
document, this is true ; otherwise, it is
false . | String | value Attribute value. |
Method Summary | |
public Node | appendChild(Node newChild) | protected void | beginToString(StringBuffer sb, Indent indent) | protected void | checkNode(Node node) | public Node | cloneNode(boolean deep) | public short | compareDocumentPosition(Node other) | protected void | endToString(StringBuffer sb, Indent indent) | public NamedNodeMap | getAttributes() | public String | getBaseURI() | public NodeList | getChildNodes() | public Object | getFeature(String feature, String version) | public Node | getFirstChild() | public Node | getLastChild() | public int | getLength() | public String | getLocalName() | public String | getName() Returns the attribute name associated with this node. | public String | getNamespaceURI() | public Node | getNextSibling() | public String | getNodeName() Returns the name associated with this node. | public short | getNodeType() Returns the node type. | public String | getNodeValue() Returns the value associated with this node. | public Document | getOwnerDocument() | public Element | getOwnerElement() Returns the owner of this attribute. | public Node | getParentNode() | public String | getPrefix() | public Node | getPreviousSibling() | public TypeInfo | getSchemaTypeInfo() | public boolean | getSpecified() If this attribute was explicitly given a value in the original
document, this is true ; otherwise, it is
false . | public String | getTextContent() | public Object | getUserData(String key) | public String | getValue() Returns the value associated with this attributes. | public boolean | hasAttributes() | public boolean | hasChildNodes() | protected void | initNodeImplChildren(Node node) | public Node | insertBefore(Node newChild, Node refChild) | public boolean | isDefaultNamespace(String namespaceURI) | public boolean | isEqualNode(Node arg) | public boolean | isId() | public boolean | isSameNode(Node other) | public boolean | isSupported(String feature, String version) | public Node | item(int index) | public String | lookupNamespaceURI(String prefix) | public String | lookupPrefix(String namespaceURI) | protected Node | newCommentInstance(Node node) | protected Node | newDefaultInstance(Node node) | protected Node | newElementInstance(Node node) | protected Node | newTextInstance(Node node) | public void | normalize() | public Node | removeChild(Node oldChild) | public Node | replaceChild(Node newChild, Node oldChild) | public void | setNodeValue(String value) Sets the value of this node to the given one. | public void | setPrefix(String prefix) | public void | setTextContent(String textContent) | public Object | setUserData(String key, Object data, UserDataHandler handler) | public void | setValue(String value) Sets the value of this attribute to the given one. | public String | toString() | public String | toString(String tab) |
specified | boolean specified(Code) | | If this attribute was explicitly given a value in the original
document, this is true ; otherwise, it is
false .
|
AttrImpl | public AttrImpl(Element owner, String name, String value)(Code) | | Constructs an empty AttrImpl .
Parameters: owner - document owner. Parameters: name - node name. Parameters: value - node value. |
AttrImpl | public AttrImpl(Attr attr)(Code) | | Constructs a AttrImpl from the given node.
Parameters: attr - , as a AttrImpl . |
cloneNode | public Node cloneNode(boolean deep)(Code) | | |
getLength | public int getLength()(Code) | | |
getName | public String getName()(Code) | | Returns the attribute name associated with this node.
the attribute name, as a String . |
getNodeName | public String getNodeName()(Code) | | Returns the name associated with this node.
the name, as a String . |
getNodeType | public short getNodeType()(Code) | | Returns the node type.
the ATTRIBUTE_NODE node type. |
getNodeValue | public String getNodeValue()(Code) | | Returns the value associated with this node.
the node value, as a String . |
getOwnerElement | public Element getOwnerElement()(Code) | | Returns the owner of this attribute.
the attribute owner node. |
getPreviousSibling | public Node getPreviousSibling()(Code) | | |
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 .
always true . |
getValue | public String getValue()(Code) | | Returns the value associated with this attributes.
the node attributes, as a String . |
hasAttributes | public boolean hasAttributes()(Code) | | |
hasChildNodes | public boolean hasChildNodes()(Code) | | |
initNodeImplChildren | protected void initNodeImplChildren(Node node)(Code) | | |
isDefaultNamespace | public boolean isDefaultNamespace(String namespaceURI)(Code) | | |
isEqualNode | public boolean isEqualNode(Node arg)(Code) | | |
isId | public boolean isId()(Code) | | |
isSameNode | public boolean isSameNode(Node other)(Code) | | |
normalize | public void normalize()(Code) | | |
setNodeValue | public void setNodeValue(String value)(Code) | | Sets the value of this node to the given one.
Parameters: value - is value of the node |
setValue | public void setValue(String value)(Code) | | Sets the value of this attribute to the given one.
Parameters: value - the new attribute value, as a String . |
|
|