io::zorba::api::xqj::ZorbaXQCollectionA Collection is a persistent sequence of node items. Instances of this class can be used to modify or retrieve the contents of a collection.Private Attributes
Protected Functions
Public Functions
Private Functions
Private Attributesclosedboolean closed
collectionCollection collection
sequencesjava.util.Collection< XQSequence > sequences
Protected FunctionsZorbaXQCollection ZorbaXQCollection(Collection col)
Public Functionsclosevoid close() Closes the collection. Once the collection is closed, no method other than close or the isClosed method may be called on the collection object. Calling close on an ZorbaXQCollection object that is already closed has no effect. Parameters
contentsXQSequence contents() This function returns the sequence of nodes of the collection.
ReturnsThe sequence contained in the given collection.deleteNodeFirstvoid deleteNodeFirst() This function deletes the first node from a collection.
Parameters
deleteNodeLastvoid deleteNodeLast() This function deletes the last node from a collection.
Parameters
deleteNodesvoid deleteNodes(XQSequence aNodes) This function deletes zero of more nodes from a collection.
Parameters
Parameters
deleteNodesFirstvoid deleteNodesFirst(long aNumNodes) This function deletes the n first nodes from a collection.
Parameters
deleteNodesLastvoid deleteNodesLast(long aNumNodes) This function deletes the n last nodes from a collection.
Parameters
getNameString getName() Get the name of the collection.
ReturnsThe name of the collection.getTypeZorbaXQItemType getType() Retrieves the sequence type for this (static declared) collection.
Returnsthe sequence type for the said collection, or 0 if this collection is not statically declared.ReturnsisStatic()indexOflong indexOf(XQItem aNode) This function returns the index of the given node in the collection.
Parameters
ReturnsReturns the position of the given node in the collection.Parameters
insertNodesAftervoid insertNodesAfter(XQItem aTarget, XQSequence aNodes) This function inserts copies of the given nodes into a collection at the position directly following the given target node.
Parameters
Parameters
insertNodesBeforevoid insertNodesBefore(XQItem aTarget, XQSequence aNodes) This function inserts copies of the given nodes into a collection at the position directly preceding the given target node.
Parameters
Parameters
insertNodesFirstvoid insertNodesFirst(XQSequence aNodes) This function inserts copies of the given nodes at the beginning of the collection.
Parameters
insertNodesLastvoid insertNodesLast(XQSequence aNodes) This function inserts copies of the given nodes at the end of the collection.
Parameters
isClosedboolean isClosed() Checks if the collection is closed.
Returnstrue if the collection is in a closed state, false otherwiseisStaticboolean isStatic() The function checks if this collection has been statically declared.
Returnstrue if the collection is a static collection, false otherwise.Private FunctionsisClosedXQExceptionvoid isClosedXQException()
|