|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xindice.xml.dom.NodeImpl org.apache.xindice.xml.dom.ContainerNodeImpl org.apache.xindice.xml.dom.AttrImpl
AttrImpl
Field Summary |
Fields inherited from class org.apache.xindice.xml.dom.ContainerNodeImpl |
childNodes |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
AttrImpl()
|
|
AttrImpl(NodeImpl parent,
boolean dirty)
|
|
AttrImpl(NodeImpl parent,
byte[] data,
int pos,
int len)
|
|
AttrImpl(NodeImpl parent,
String nodeName)
|
|
AttrImpl(NodeImpl parent,
String nodeName,
String nsURI,
short symbolID,
String nodeValue)
|
Method Summary | |
String |
getName()
Returns the name of this attribute. |
short |
getNodeType()
A code representing the type of the underlying object, as defined above. |
String |
getNodeValue()
The value of this node, depending on its type; see the table above. |
org.w3c.dom.Element |
getOwnerElement()
|
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 . |
short |
getSymbolID()
getSymbolID returns the Symbol ID for the current node. |
String |
getValue()
On retrieval, the value of the attribute is returned as a string. |
boolean |
isId()
|
protected boolean |
isNodeTypeValid(short type)
|
void |
setNodeValue(String nodeValue)
The value of this node, depending on its type; see the table above. |
void |
setSpecified(boolean specified)
|
void |
setSymbolID(short symbolID)
|
void |
setValue(String value)
|
Methods inherited from class org.apache.xindice.xml.dom.ContainerNodeImpl |
appendChild, checkLoaded, getChildNodes, getElementById, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getLastChild, getNextSibling, getPreviousSibling, getTextContent, hasChildNodes, insertBefore, isEqualNode, loadChildren, normalize, removeChild, replaceChild |
Methods inherited from class org.apache.xindice.xml.dom.NodeImpl |
checkReadOnly, cloneNode, cloneNode, compareDocumentPosition, expandSource, getAttributes, getBaseURI, getDataBytes, getDataLen, getDataPos, getFeature, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSource, getUserData, hasAttributes, invokeHandlers, invokeHandlers, isDefaultNamespace, isDefined, isDirty, isLoaded, isSameNode, isSupported, load, lookupDefaultNamespaceURI, lookupNamespaceURI, lookupPrefix, setDataBytes, setDataBytes, setDataLen, setDataPos, setDirty, setNodeName, setParentNode, setPrefix, setSource, setTextContent, setUserData, toString, unload |
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, getNamespaceURI, getNextSibling, getNodeName, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setPrefix |
Constructor Detail |
public AttrImpl()
public AttrImpl(NodeImpl parent, byte[] data, int pos, int len)
public AttrImpl(NodeImpl parent, String nodeName, String nsURI, short symbolID, String nodeValue)
public AttrImpl(NodeImpl parent, boolean dirty)
public AttrImpl(NodeImpl parent, String nodeName)
Method Detail |
public short getNodeType()
NodeImpl
getNodeType
in interface org.w3c.dom.Node
getNodeType
in class NodeImpl
public String getName()
getName
in interface org.w3c.dom.Attr
public void setSymbolID(short symbolID)
public short getSymbolID()
CompressedNode
getSymbolID
in interface CompressedNode
getSymbolID
in class NodeImpl
public void setNodeValue(String nodeValue) throws org.w3c.dom.DOMException
NodeImpl
null
, setting it has no effect.
setNodeValue
in interface org.w3c.dom.Node
setNodeValue
in class NodeImpl
org.w3c.dom.DOMException
- DOMString
variable on the implementation
platform.
public void setValue(String value)
setValue
in interface org.w3c.dom.Attr
protected boolean isNodeTypeValid(short type)
isNodeTypeValid
in class ContainerNodeImpl
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.
getSpecified
in interface org.w3c.dom.Attr
public void setSpecified(boolean specified)
public String getValue()
Text
node with the unparsed
contents of the string.
getValue
in interface org.w3c.dom.Attr
public String getNodeValue()
NodeImpl
getNodeValue
in interface org.w3c.dom.Node
getNodeValue
in class NodeImpl
public org.w3c.dom.Element getOwnerElement()
getOwnerElement
in interface org.w3c.dom.Attr
public org.w3c.dom.TypeInfo getSchemaTypeInfo()
public boolean isId()
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |