|
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.FONIDM.BaseNode
| Field Summary |
| 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 | |
FONIDM.BaseNode(int id)
|
|
| Method Summary | |
void |
addAttribute(Node attribute)
|
void |
addChild(Node child)
|
void |
addText(java.lang.String value)
Adds text inside the node. |
NodeSequence |
ancestors(NodeTest nodeTest)
Returns an iterator on ancestors that match the node test. |
NodeSequence |
ancestorsOrSelf(NodeTest nodeTest)
|
Node |
attribute(QName name)
get attribute by name. |
NodeSequence |
attributes()
Accessor dm:attributes. |
NodeSequence |
attributes(NodeTest nodeTest)
|
NodeSequence |
children()
Accessor dm:children. |
NodeSequence |
children(NodeTest nodeTest)
|
int |
compareStringValues(Node node,
java.text.Collator collator)
|
boolean |
contains(Node node)
Returns true if this node is an ancestor of the node, or the node itself. |
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. |
int |
getDocId()
|
java.lang.String |
getDocumentURI()
|
double |
getDoubleValue()
Returns the double value (attempts to convert). |
long |
getIntegerValue()
Returns the integer value (attempts to convert). |
int |
getNature()
Returns a numeric node kind: DOCUMENT, ELEMENT etc. |
int |
getNodeDepth()
|
int |
getNodeId()
|
java.lang.String |
getNodeKind()
Accessor dm:node-kind(). |
QName |
getNodeName()
Accessor dm:node-name(). |
int |
getNodeSpan()
|
java.lang.String |
getNsPrefix(java.lang.String nsuri)
Returns a matching prefix for the Namespace by looking up the namespace nodes. |
java.lang.String |
getNsUri(java.lang.String prefix)
Returns a matching Namespace for the prefix by looking up the namespace nodes. |
java.lang.Object |
getOwner()
|
java.lang.String |
getStringValue()
Accessor dm:string-value(). |
int |
hashCode()
|
boolean |
isElement()
Convenience: quick test of elements. |
NodeSequence |
namespaces(boolean inScope)
Accessor dm:namespaces(). |
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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public FONIDM.BaseNode(int id)
| Method Detail |
public java.lang.Object getOwner()
public int getDocId()
public int getNodeId()
public java.lang.String getNodeKind()
Node
getNodeKind in interface Nodepublic QName getNodeName()
Node
getNodeName in interface Nodepublic Node parent()
Node
parent in interface Nodepublic java.lang.String getStringValue()
Node
getStringValue in interface Nodepublic java.lang.String getDocumentURI()
getDocumentURI in interface Nodepublic java.lang.String getBaseURI()
Node
getBaseURI in interface Nodepublic NodeSequence children()
Node
children in interface Nodepublic NodeSequence attributes()
Node
attributes in interface Nodepublic int getDefinedNSCount()
Node
getDefinedNSCount in interface Nodepublic NodeSequence namespaces(boolean inScope)
Node
namespaces in interface NodeinScope - if true, return the closure of in-scope namespaces,
else namespaces defined specifically on this node.public int docPosition()
Node
docPosition in interface Nodepublic int getNature()
Node
getNature in interface Nodepublic boolean isElement()
Node
isElement in interface Nodepublic Node document()
Node
document in interface Nodepublic java.lang.String toString()
toString in class java.lang.Objectpublic Node attribute(QName name)
Node
attribute in interface Nodepublic java.lang.String getNsPrefix(java.lang.String nsuri)
Node
getNsPrefix in interface Nodepublic java.lang.String getNsUri(java.lang.String prefix)
Node
getNsUri in interface Nodepublic int orderCompare(Node node)
Node
orderCompare in interface Nodepublic boolean contains(Node node)
Node
contains in interface Nodepublic int getNodeSpan()
public int getNodeDepth()
public boolean equals(java.lang.Object that)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public boolean deepEqual(Node node,
java.text.Collator collator)
public int compareStringValues(Node node,
java.text.Collator collator)
compareStringValues in interface Nodepublic NodeSequence ancestors(NodeTest nodeTest)
Node
ancestors in interface NodenodeTest - concrete classes are BaseNodeTest(node-kind?, nsuri?, ncname?),
UnionNodeTest, DocumentTest.public NodeSequence ancestorsOrSelf(NodeTest nodeTest)
ancestorsOrSelf in interface Nodepublic NodeSequence parent(NodeTest nodeTest)
Node
parent in interface Nodepublic NodeSequence children(NodeTest nodeTest)
children in interface Nodepublic NodeSequence descendants(NodeTest nodeTest)
descendants in interface Nodepublic NodeSequence descendantsOrSelf(NodeTest nodeTest)
descendantsOrSelf in interface Nodepublic NodeSequence attributes(NodeTest nodeTest)
attributes in interface Nodepublic NodeSequence followingSiblings(NodeTest nodeTest)
followingSiblings in interface Nodepublic NodeSequence precedingSiblings(NodeTest nodeTest)
Node
precedingSiblings in interface Nodepublic NodeSequence following(NodeTest nodeTest)
following in interface Nodepublic NodeSequence preceding(NodeTest nodeTest)
Node
preceding in interface Nodepublic void addChild(Node child)
public void addAttribute(Node attribute)
public void addText(java.lang.String value)
Node
addText in interface Nodepublic char[] getChars()
Node
getChars in interface Nodepublic java.lang.Object getAtomValue()
Node
getAtomValue in interface Nodepublic int getAtomType()
Node
getAtomType in interface Node
public long getIntegerValue()
throws DataModelException
Node
getIntegerValue in interface NodeDataModelException - if not convertible to integer.
public double getDoubleValue()
throws DataModelException
Node
getDoubleValue in interface NodeDataModelException - if not convertible to double.
|
Copyright Xavier FRANC 2003-2004 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||