|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xpath.object.XObject
jd.xml.xpath.object.XNodeSet
XNodeSet represents a XPath object with type node-set.
Field Summary | |
static int |
ORDER_CONVERTIBLE
A ordering constant for nodesets that can be converted to another XPath type (and therefore store only the first added node) |
static int |
ORDER_COUNTED
A ordering constant for counted nodesets (i.e. |
static int |
ORDER_ORDERED
A ordering constant for ordered nodesets. |
static int |
ORDER_SUMMARIZED
A ordering constant for summarized nodesets (i.e. |
static int |
ORDER_UNORDERED
A ordering constant for unordered nodesets. |
Fields inherited from class jd.xml.xpath.object.XObject |
TYPE_BOOLEAN, TYPE_NODESET, TYPE_NUMBER, TYPE_STRING, TYPE_VARIABLE, TYPES |
Constructor Summary | |
XNodeSet()
|
Method Summary | |
int |
canConvertTo(Class javaClass)
Test if the XObject can be converted to an object with the given class. |
boolean |
compare(Equality equality,
double value)
Return if this XObject equals the given value. |
boolean |
compare(Equality equality,
String value)
Return if this XObject equals the given value. |
boolean |
compare(Equality equality,
XNodeSet set)
Return if this XObject equals the given nodeSet. |
boolean |
compare(Equality equality,
XObject object)
Return if this XNodeSet equals the given value. |
boolean |
compare(Relation relation,
double number)
Compare this XObject to the number value according the given relation. |
boolean |
compare(Relation relation,
XNodeSet set)
Compare this XObject to the number value according the given relation. |
boolean |
compare(Relation relation,
XObject object)
Compare this XObject to the other object according the given relation. |
boolean |
contains(String value)
Test if the nodeset contains a node whose stringvalue equals the given value. |
boolean |
contains(XPathNode node)
Test if the nodeset contains a node who equals the given node. |
(package private) int |
getDocId()
Return the document id of the nodes in this nodeSet or -1 if the nodes come from different documents. |
abstract XPathNode |
getNode(int index)
Get the node for the given index. |
double |
getNodeSum()
Get the sum of the number value of all nodes in this nodeset. |
int |
getOrdering()
Return the ordering of this NodeSet. |
int |
getType()
Return XObject.TYPE_NODESET |
int |
indexOf(XPathNode node)
Return the index of the node in this NodeSet or -1 if the NodeSet does not contain the node. |
boolean |
isEmpty()
Return if the nodeset is empty. |
boolean |
isOrdered()
Return if this NodeSet is ordered. |
static boolean |
isOrdered(int ordering)
Return if this ordering constant signal that nodes have to be added in order. |
(package private) void |
setDocId(int docId)
Set the document id of the nodes in this nodeSet. |
(package private) void |
setMultiDocId()
Set the document id of the nodes in this nodeSet. |
abstract int |
size()
Return the size of the NodeSet. |
boolean |
toBooleanValue()
Return if the nodeset is not empty. |
XNodeSet |
toNodeSet()
Return this. |
double |
toNumberValue()
Convert the string value of this NodeSet to a number. |
double |
toNumberValue(int i)
Return the number value of the i-th node. |
String |
toString()
Return a debug string representation of this XObject. |
String |
toStringValue()
Return an empty string if this nodeset is empty or the string value of the first node otherwise. |
String |
toStringValue(int i)
Return the string value of the i-th node. |
Object |
toValue()
Return this. |
Object |
toValue(Class javaClass)
Convert the objects value to an object of the given class. |
Methods inherited from class jd.xml.xpath.object.XObject |
compare, equals, getTypeName, getTypeName, hashCode, toXObject |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ORDER_ORDERED
getOrdering()
,
Constant Field Valuespublic static final int ORDER_UNORDERED
getOrdering()
,
Constant Field Valuespublic static final int ORDER_COUNTED
getOrdering()
,
Constant Field Valuespublic static final int ORDER_SUMMARIZED
getOrdering()
,
Constant Field Valuespublic static final int ORDER_CONVERTIBLE
getOrdering()
,
Constant Field ValuesConstructor Detail |
public XNodeSet()
Method Detail |
public int getType()
getType
in class XObject
public int getOrdering()
public boolean isOrdered()
public static boolean isOrdered(int ordering)
public Object toValue()
toValue
in class XObject
public int canConvertTo(Class javaClass)
canConvertTo
in class XObject
public Object toValue(Class javaClass)
toValue
in class XObject
public boolean toBooleanValue()
toBooleanValue
in class XObject
public double toNumberValue()
toNumberValue
in class XObject
public double toNumberValue(int i)
public String toStringValue()
toStringValue
in class XObject
public String toStringValue(int i)
public XNodeSet toNodeSet()
toNodeSet
in class XObject
public abstract int size()
public boolean isEmpty()
public abstract XPathNode getNode(int index)
public double getNodeSum()
public int indexOf(XPathNode node)
public boolean contains(XPathNode node)
public boolean contains(String value)
int getDocId()
void setDocId(int docId)
void setMultiDocId()
public boolean compare(Equality equality, String value)
compare
in class XObject
public boolean compare(Equality equality, double value)
compare
in class XObject
public boolean compare(Equality equality, XNodeSet set)
public boolean compare(Equality equality, XObject object)
compare
in class XObject
public boolean compare(Relation relation, double number)
compare
in class XObject
public boolean compare(Relation relation, XNodeSet set)
public boolean compare(Relation relation, XObject object)
compare
in class XObject
public String toString()
toString
in class XObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |