|
Xindice API version 1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xindice.client.xmldb.ResourceSetImpl
ResourceSet
contains a set of resources as returned from a query
or other operation.
Field Summary | |
protected org.xmldb.api.base.Collection |
collection
|
static String |
RESOURCE_SET_NS
|
protected List |
resources
|
Constructor Summary | |
ResourceSetImpl(org.xmldb.api.base.Collection collection,
org.w3c.dom.Document doc)
|
|
ResourceSetImpl(org.xmldb.api.base.Collection collection,
SymbolTable symbols,
byte[] bytes)
|
Method Summary | |
void |
addResource(org.xmldb.api.base.Resource res)
Adds a Resource instance to the set. |
void |
clear()
Removes all Resource instances from the set. |
org.xmldb.api.base.ResourceIterator |
getIterator()
Returns an iterator over all Resource instances stored in
the set. |
org.xmldb.api.base.Resource |
getMembersAsResource()
Returns a Resource containing an XML representation of all
resources stored in the set. |
org.xmldb.api.base.Resource |
getResource(long index)
Returns the Resource instance stored at the index specified
by index . |
long |
getSize()
Returns the number of resources contained in the set. |
protected void |
initResources(org.w3c.dom.Document document)
|
void |
removeResource(long index)
Removes the Resource located at index from the
set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String RESOURCE_SET_NS
protected List resources
protected org.xmldb.api.base.Collection collection
Constructor Detail |
public ResourceSetImpl(org.xmldb.api.base.Collection collection, org.w3c.dom.Document doc) throws org.xmldb.api.base.XMLDBException
public ResourceSetImpl(org.xmldb.api.base.Collection collection, SymbolTable symbols, byte[] bytes) throws org.xmldb.api.base.XMLDBException
Method Detail |
protected void initResources(org.w3c.dom.Document document) throws org.xmldb.api.base.XMLDBException
public org.xmldb.api.base.ResourceIterator getIterator() throws org.xmldb.api.base.XMLDBException
Resource
instances stored in
the set.getIterator
in interface org.xmldb.api.base.ResourceSet
Resource
instances in the
set.org.xmldb.api.base.XMLDBException
- public org.xmldb.api.base.Resource getResource(long index) throws org.xmldb.api.base.XMLDBException
Resource
instance stored at the index specified
by index
.getResource
in interface org.xmldb.api.base.ResourceSet
index
- the index of the resource to retrieve.Resource
instance.org.xmldb.api.base.XMLDBException
- public long getSize() throws org.xmldb.api.base.XMLDBException
getSize
in interface org.xmldb.api.base.ResourceSet
Resource
instances in the set.org.xmldb.api.base.XMLDBException
- public void addResource(org.xmldb.api.base.Resource res) throws org.xmldb.api.base.XMLDBException
Resource
instance to the set.addResource
in interface org.xmldb.api.base.ResourceSet
org.xmldb.api.base.XMLDBException
- public void clear() throws org.xmldb.api.base.XMLDBException
Resource
instances from the set.clear
in interface org.xmldb.api.base.ResourceSet
org.xmldb.api.base.XMLDBException
- public void removeResource(long index) throws org.xmldb.api.base.XMLDBException
Resource
located at index
from the
set.removeResource
in interface org.xmldb.api.base.ResourceSet
index
- The index of the Resource
instance to remove.org.xmldb.api.base.XMLDBException
- public org.xmldb.api.base.Resource getMembersAsResource() throws org.xmldb.api.base.XMLDBException
Resource
containing an XML representation of all
resources stored in the set.getMembersAsResource
in interface org.xmldb.api.base.ResourceSet
Resource
instance containing an XML representation
of all set members.org.xmldb.api.base.XMLDBException
-
|
Xindice API version 1.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |