|
Qizx/Open v0.4p2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.xfra.qizxopen.xquery.dt.BaseValue | +--net.xfra.qizxopen.xquery.dm.NodeSequenceBase | +--net.xfra.qizxopen.xquery.dm.DistinctNodeSequence
Node Filter removing duplicates.
Nested Class Summary |
Nested classes inherited from class net.xfra.qizxopen.xquery.Value |
Value.Empty |
Field Summary |
Fields inherited from interface net.xfra.qizxopen.xquery.Value |
empty |
Fields inherited from interface net.xfra.qizxopen.xquery.Item |
INCOMPARABLE |
Constructor Summary | |
DistinctNodeSequence(Value source)
|
Method Summary | |
Node |
asNode()
Gets the item as a Node value (optimisable). |
Value |
bornAgain()
Returns a new version of the sequence in its initial state. |
boolean |
next()
Attempts to get the next atomic item. |
Methods inherited from class net.xfra.qizxopen.xquery.dm.NodeSequenceBase |
asAtom, asBoolean, asDouble, asInteger, asItem, asString, compareTo, getType, isNode |
Methods inherited from class net.xfra.qizxopen.xquery.dt.BaseValue |
asDecimal, asFloat, deepEqual, nextCollection, quickCount, setLazy, worthExpanding |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DistinctNodeSequence(Value source)
Method Detail |
public Node asNode() throws TypeException
Item
asNode
in interface Item
asNode
in class NodeSequenceBase
TypeException
public boolean next() throws XQueryException
Value
XQueryException
public Value bornAgain()
Value
Value.next()
method), this is not actually true. Therefore when
a value is used several times (in particular the value of a variable), there is a
need for "regeneration". NOTE: this needs not be a deep copy, because only the state of the iterator is concerned, not the underlying data.
|
Copyright Xavier FRANC 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |