|
Qizx/Open v0.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.xfra.qizxopen.dm.CoreDM.BaseNode
[Internal].
Field Summary | |
CoreDM.BaseNode |
nextSibling
|
int |
order
|
net.xfra.qizxopen.dm.CoreDM.Element |
parent
|
Fields inherited from interface net.xfra.qizxopen.dm.Node |
ATTRIBUTE, COMMENT, DOCUMENT, ELEMENT, NAMESPACE, PROCESSING_INSTRUCTION, TEXT, TYPE_BINARY, TYPE_BOOLEAN, TYPE_DATETIME, TYPE_DOUBLE, TYPE_INTEGER, TYPE_NODE, TYPE_STRING |
Constructor Summary | |
CoreDM.BaseNode()
|
Method Summary | |
void |
addNamespace(java.lang.String prefix,
java.lang.String value)
|
NodeSequence |
ancestors(NodeTest nodeTest)
Returns an iterator on ancestors that match the node test. |
NodeSequence |
ancestorsOrSelf(NodeTest nodeTest)
|
NodeSequence |
attributes(NodeTest nodeTest)
|
NodeSequence |
children(NodeTest nodeTest)
|
int |
compareStringValues(Node that,
java.text.Collator collator)
|
boolean |
contains(Node node)
Returns true if this node is an ancestor of the node, or the node itself. |
boolean |
deepEq(Node that,
java.text.Collator collator)
|
boolean |
deepEqual(Node node,
java.text.Collator collator)
|
NodeSequence |
descendants(NodeTest nodeTest)
|
NodeSequence |
descendantsOrSelf(NodeTest nodeTest)
|
int |
docPosition()
Returns an arbitrary value that is stable on the whole document (for order comparison). |
Node |
document()
Returns the document node if any, else the top-level node. |
boolean |
equals(java.lang.Object that)
|
NodeSequence |
following(NodeTest nodeTest)
|
NodeSequence |
followingSiblings(NodeTest nodeTest)
|
int |
getAtomType()
returns the real type of the atom value: TYPE_STRING, TYPE_BINARY, etc. |
java.lang.Object |
getAtomValue()
Returns the real value of the atom: byte[], Boolean, Date, Double, Long, String. |
java.lang.String |
getBaseURI()
Accessor dm:base-uri(). |
char[] |
getChars()
get text as char array (atomic nodes only). |
int |
getDefinedNSCount()
Number of Namespaces defined on this node. |
java.lang.String |
getDocumentURI()
|
double |
getDoubleValue()
Returns the double value (attempts to convert). |
long |
getIntegerValue()
Returns the integer value (attempts to convert). |
QName |
getNodeName()
Accessor dm:node-name(). |
CoreDM.BaseNode |
nodeAfter()
|
CoreDM.BaseNode |
nodeNext()
|
int |
orderCompare(Node node)
Returns -1 if this node is strictly before the argument node in document order, 0 if nodes are identical, 1 if after the argument node. |
Node |
parent()
Accessor dm:parent(). |
NodeSequence |
parent(NodeTest nodeTest)
Returns a sequence of length 1 (if the parent matches the nodeTest) else 0. |
NodeSequence |
preceding(NodeTest nodeTest)
Preceding nodes in document order. |
NodeSequence |
precedingSiblings(NodeTest nodeTest)
Preceding siblings in document order. |
void |
setNextSibling(CoreDM.BaseNode sibling)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.xfra.qizxopen.dm.Node |
addText, attribute, attributes, children, getNature, getNodeKind, getNsPrefix, getNsUri, getStringValue, isElement, namespaces |
Field Detail |
public net.xfra.qizxopen.dm.CoreDM.Element parent
public CoreDM.BaseNode nextSibling
public int order
Constructor Detail |
public CoreDM.BaseNode()
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getBaseURI()
Node
getBaseURI
in interface Node
public java.lang.String getDocumentURI()
getDocumentURI
in interface Node
public QName getNodeName()
Node
getNodeName
in interface Node
public Node parent()
Node
parent
in interface Node
public Node document()
Node
document
in interface Node
public int orderCompare(Node node)
Node
orderCompare
in interface Node
public boolean contains(Node node)
Node
contains
in interface Node
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public boolean deepEqual(Node node, java.text.Collator collator)
public boolean deepEq(Node that, java.text.Collator collator)
public int compareStringValues(Node that, java.text.Collator collator)
compareStringValues
in interface Node
public CoreDM.BaseNode nodeNext()
public CoreDM.BaseNode nodeAfter()
public int docPosition()
Node
docPosition
in interface Node
public int getDefinedNSCount()
Node
getDefinedNSCount
in interface Node
public void addNamespace(java.lang.String prefix, java.lang.String value)
public char[] getChars()
Node
getChars
in interface Node
public java.lang.Object getAtomValue()
Node
getAtomValue
in interface Node
public int getAtomType()
Node
getAtomType
in interface Node
public double getDoubleValue() throws DataModelException
Node
getDoubleValue
in interface Node
DataModelException
- if not convertible to double.public long getIntegerValue() throws DataModelException
Node
getIntegerValue
in interface Node
DataModelException
- if not convertible to integer.public NodeSequence ancestors(NodeTest nodeTest)
Node
ancestors
in interface Node
nodeTest
- concrete classes are BaseNodeTest(node-kind?, nsuri?, ncname?),
UnionNodeTest, DocumentTest.public NodeSequence ancestorsOrSelf(NodeTest nodeTest)
ancestorsOrSelf
in interface Node
public NodeSequence parent(NodeTest nodeTest)
Node
parent
in interface Node
public NodeSequence children(NodeTest nodeTest)
children
in interface Node
public NodeSequence descendants(NodeTest nodeTest)
descendants
in interface Node
public NodeSequence descendantsOrSelf(NodeTest nodeTest)
descendantsOrSelf
in interface Node
public NodeSequence attributes(NodeTest nodeTest)
attributes
in interface Node
public NodeSequence followingSiblings(NodeTest nodeTest)
followingSiblings
in interface Node
public NodeSequence precedingSiblings(NodeTest nodeTest)
Node
precedingSiblings
in interface Node
public NodeSequence following(NodeTest nodeTest)
following
in interface Node
public NodeSequence preceding(NodeTest nodeTest)
Node
preceding
in interface Node
public void setNextSibling(CoreDM.BaseNode sibling)
|
Copyright Xavier FRANC 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |