org.xmldb.api.sdk
public abstract class SimpleResourceSet extends Object implements ResourceSet
Field Summary | |
---|---|
protected Collection | collection |
protected List | resources |
static String | RESOURCE_SET_NS |
Constructor Summary | |
---|---|
SimpleResourceSet() |
Method Summary | |
---|---|
void | addResource(Resource res)
Adds a Resource instance to the set.
|
Document | buildMembersAsResourceDocument()
Turns the List into the proper XML format to implement
getMembersAsResource. |
void | clear()
Removes all Resource instances from the set.
|
ResourceIterator | getIterator()
Returns an iterator over all Resource instances stored in
the set.
|
Resource | getMembersAsResource()
Returns a Resource containing an XML representation of all resources
stored in the set. |
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.
|
void | removeResource(long index)
Removes the Resource located at index from the
set.
|
Resource
instance to the set.
Throws: XMLDBException
Resource
instances from the set.
Throws: XMLDBException
Resource
instances stored in
the set.
Returns: a ResourceIterator over all Resource
instances in the
set.
Throws: XMLDBException
Returns: A Resource
instance containing an XML representation
of all set members.
Throws: XMLDBException with expected error codes.
ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.
Resource
instance stored at the index specified
by index
.
Parameters: index the index of the resource to retrieve.
Returns: the Resource
instance.
Throws: XMLDBException
Returns: the number of Resource
instances in the set.
Throws: XMLDBException
Resource
located at index
from the
set.
Parameters: index The index of the Resource
instance to remove.
Throws: XMLDBException