|
Xindice API version 1.1b4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 java.lang.String |
RESOURCE_SET_NS
|
protected java.util.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 |
addAll(org.xmldb.api.base.ResourceSet rSet)
Adds all Resource instances in the resourceSet
to this set. |
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(int index)
|
org.xmldb.api.base.Resource |
getResource(long index)
Returns the Resource instance stored at the index specified
by index. |
int |
getSize()
Returns the number of resources contained in the set. |
protected void |
initResources(org.w3c.dom.Document document)
|
void |
removeResource(int index)
|
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 java.lang.String RESOURCE_SET_NS
protected java.util.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
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.ResourceSetResource 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.
index - the index of the resource to retrieve.
Resource instance.
org.xmldb.api.base.XMLDBException
public org.xmldb.api.base.Resource getResource(int index)
throws org.xmldb.api.base.XMLDBException
getResource in interface org.xmldb.api.base.ResourceSetorg.xmldb.api.base.XMLDBException
public int getSize()
throws org.xmldb.api.base.XMLDBException
getSize in interface org.xmldb.api.base.ResourceSetResource 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.ResourceSetorg.xmldb.api.base.XMLDBException
public void addAll(org.xmldb.api.base.ResourceSet rSet)
throws org.xmldb.api.base.XMLDBException
Resource instances in the resourceSet
to this set.
addAll in interface org.xmldb.api.base.ResourceSetrSet - The ResourceSet containing all the Resource's
to add to the set.
org.xmldb.api.base.XMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.
public void clear()
throws org.xmldb.api.base.XMLDBException
Resource instances from the set.
clear in interface org.xmldb.api.base.ResourceSetorg.xmldb.api.base.XMLDBException
public void removeResource(long index)
throws org.xmldb.api.base.XMLDBException
Resource located at index from the
set.
index - The index of the Resource instance to remove.
org.xmldb.api.base.XMLDBException
public void removeResource(int index)
throws org.xmldb.api.base.XMLDBException
removeResource in interface org.xmldb.api.base.ResourceSetorg.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.ResourceSetResource instance containing an XML representation
of all set members.
org.xmldb.api.base.XMLDBException
|
Xindice API version 1.1b4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||