|
EAF 7.6 Util | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.xml.NodeImpl
org.enhydra.xml.AttrImpl
public class AttrImpl
Namespaces are ignored in this implementation. The terms "tag name" and "node name" are always considered to be synonymous.
Field Summary |
---|
Fields inherited from class org.enhydra.xml.NodeImpl |
---|
firstChild, lastChild, nextSibling, nodeName, nodeValue, numChildren, ownerDocument, parent, previousSibling, type |
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 | |
---|---|
AttrImpl(org.w3c.dom.Attr attr)
Constructs a AttrImpl from the given node. |
|
AttrImpl(org.w3c.dom.Element owner,
java.lang.String name,
java.lang.String value)
Constructs an empty AttrImpl . |
Method Summary | |
---|---|
short |
compareDocumentPosition(org.w3c.dom.Node arg0)
|
java.lang.String |
getBaseURI()
|
java.lang.Object |
getFeature(java.lang.String arg0,
java.lang.String arg1)
|
java.lang.String |
getName()
Returns the attribute name associated with this node. |
java.lang.String |
getNamespaceURI()
|
java.lang.String |
getNodeName()
Returns the name associated with this node. |
short |
getNodeType()
Returns the node type. |
java.lang.String |
getNodeValue()
Returns the value associated with this node. |
org.w3c.dom.Element |
getOwnerElement()
Returns the owner of this attribute. |
org.w3c.dom.TypeInfo |
getSchemaTypeInfo()
|
boolean |
getSpecified()
If this attribute was explicitly given a value in the original document, this is true ; otherwise, it is
false . |
java.lang.String |
getTextContent()
|
java.lang.Object |
getUserData(java.lang.String arg0)
|
java.lang.String |
getValue()
Returns the value associated with this attributes. |
boolean |
isDefaultNamespace(java.lang.String arg0)
|
boolean |
isEqualNode(org.w3c.dom.Node arg0)
|
boolean |
isId()
|
boolean |
isSameNode(org.w3c.dom.Node arg0)
|
java.lang.String |
lookupNamespaceURI(java.lang.String arg0)
|
java.lang.String |
lookupPrefix(java.lang.String arg0)
|
void |
setNodeValue(java.lang.String value)
Sets the value of this node to the given one. |
void |
setTextContent(java.lang.String arg0)
|
java.lang.Object |
setUserData(java.lang.String arg0,
java.lang.Object arg1,
org.w3c.dom.UserDataHandler arg2)
|
void |
setValue(java.lang.String value)
Sets the value of this attribute to the given one. |
Methods inherited from class org.enhydra.xml.NodeImpl |
---|
appendChild, beginToString, cloneNode, endToString, getAttributes, getChildNodes, getFirstChild, getLastChild, getLength, getLocalName, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, initNodeImplChildren, insertBefore, isSupported, item, newCommentInstance, newDefaultInstance, newElementInstance, newTextInstance, normalize, removeChild, replaceChild, setPrefix, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
---|
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setPrefix |
Constructor Detail |
---|
public AttrImpl(org.w3c.dom.Element owner, java.lang.String name, java.lang.String value)
AttrImpl
.
owner
- document owner.name
- node name.value
- node value.public AttrImpl(org.w3c.dom.Attr attr)
AttrImpl
from the given node.
node,
- as a AttrImpl
.Method Detail |
---|
public java.lang.String getName()
getName
in interface org.w3c.dom.Attr
String
.public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
getNodeName
in class NodeImpl
String
.public short getNodeType()
getNodeType
in interface org.w3c.dom.Node
getNodeType
in class NodeImpl
ATTRIBUTE_NODE
node type.public 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.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
.
Retuns always true
.
getSpecified
in interface org.w3c.dom.Attr
public java.lang.String getValue()
getValue
in interface org.w3c.dom.Attr
String
.public java.lang.String getNodeValue()
getNodeValue
in interface org.w3c.dom.Node
getNodeValue
in class NodeImpl
String
.public void setValue(java.lang.String value)
setValue
in interface org.w3c.dom.Attr
value
- the new attribute value, as a String
.public void setNodeValue(java.lang.String value)
setNodeValue
in interface org.w3c.dom.Node
setNodeValue
in class NodeImpl
value
- new node value, as a String
.public org.w3c.dom.Element getOwnerElement()
getOwnerElement
in interface org.w3c.dom.Attr
public org.w3c.dom.TypeInfo getSchemaTypeInfo()
getSchemaTypeInfo
in interface org.w3c.dom.Attr
public boolean isId()
isId
in interface org.w3c.dom.Attr
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface org.w3c.dom.Node
getNamespaceURI
in class NodeImpl
public java.lang.String getBaseURI()
getBaseURI
in interface org.w3c.dom.Node
getBaseURI
in class NodeImpl
public short compareDocumentPosition(org.w3c.dom.Node arg0) throws org.w3c.dom.DOMException
compareDocumentPosition
in interface org.w3c.dom.Node
compareDocumentPosition
in class NodeImpl
org.w3c.dom.DOMException
public java.lang.String getTextContent() throws org.w3c.dom.DOMException
getTextContent
in interface org.w3c.dom.Node
getTextContent
in class NodeImpl
org.w3c.dom.DOMException
public void setTextContent(java.lang.String arg0) throws org.w3c.dom.DOMException
setTextContent
in interface org.w3c.dom.Node
setTextContent
in class NodeImpl
org.w3c.dom.DOMException
public boolean isSameNode(org.w3c.dom.Node arg0)
isSameNode
in interface org.w3c.dom.Node
isSameNode
in class NodeImpl
public java.lang.String lookupPrefix(java.lang.String arg0)
lookupPrefix
in interface org.w3c.dom.Node
lookupPrefix
in class NodeImpl
public boolean isDefaultNamespace(java.lang.String arg0)
isDefaultNamespace
in interface org.w3c.dom.Node
isDefaultNamespace
in class NodeImpl
public java.lang.String lookupNamespaceURI(java.lang.String arg0)
lookupNamespaceURI
in interface org.w3c.dom.Node
lookupNamespaceURI
in class NodeImpl
public boolean isEqualNode(org.w3c.dom.Node arg0)
isEqualNode
in interface org.w3c.dom.Node
isEqualNode
in class NodeImpl
public java.lang.Object getFeature(java.lang.String arg0, java.lang.String arg1)
getFeature
in interface org.w3c.dom.Node
getFeature
in class NodeImpl
public java.lang.Object setUserData(java.lang.String arg0, java.lang.Object arg1, org.w3c.dom.UserDataHandler arg2)
setUserData
in interface org.w3c.dom.Node
setUserData
in class NodeImpl
public java.lang.Object getUserData(java.lang.String arg0)
getUserData
in interface org.w3c.dom.Node
getUserData
in class NodeImpl
|
EAF 7.6 Util | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |