|
XML:DB API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xmldb.api.sdk.SimpleResourceSet
public abstract class SimpleResourceSet
Provides a base ResourceSet implementation that utilizes a synchronized list to contain the set of resources.
| Field Summary | |
|---|---|
static java.lang.String |
RESOURCE_SET_NS
|
| Constructor Summary | |
|---|---|
SimpleResourceSet()
|
|
| Method Summary | |
|---|---|
void |
addAll(ResourceSet rSet)
Adds all Resource instances in the resourceSet
to this set. |
void |
addResource(Resource res)
Adds a Resource instance to the set. |
org.w3c.dom.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(int index)
Returns the Resource instance stored at the index specified
by index. |
int |
getSize()
Returns the number of resources contained in the set. |
void |
removeResource(int index)
Removes the Resource located at index from the
set. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String RESOURCE_SET_NS
| Constructor Detail |
|---|
public SimpleResourceSet()
| Method Detail |
|---|
public ResourceIterator getIterator()
throws XMLDBException
Resource instances stored in
the set.
getIterator in interface ResourceSetResource instances in the
set.
XMLDBException
public Resource getResource(int index)
throws XMLDBException
Resource instance stored at the index specified
by index.
getResource in interface ResourceSetindex - the index of the resource to retrieve.
Resource instance.
XMLDBException
public int getSize()
throws XMLDBException
getSize in interface ResourceSetResource instances in the set.
XMLDBException
public void addResource(Resource res)
throws XMLDBException
Resource instance to the set.
addResource in interface ResourceSetres - The Resource to add to the set.
XMLDBException
public void addAll(ResourceSet rSet)
throws XMLDBException
Resource instances in the resourceSet
to this set.
addAll in interface ResourceSetrSet - The ResourceSet containing all the Resource's
to add to the set.
XMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.
public void clear()
throws XMLDBException
Resource instances from the set.
clear in interface ResourceSetXMLDBException
public void removeResource(int index)
throws XMLDBException
Resource located at index from the
set.
removeResource in interface ResourceSetindex - The index of the Resource instance to remove.
XMLDBException
public Resource getMembersAsResource()
throws XMLDBException
getMembersAsResource in interface ResourceSetResource instance containing an XML representation
of all set members.
XMLDBException - with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor
specific errors that occur.
public org.w3c.dom.Document buildMembersAsResourceDocument()
throws XMLDBException
XMLDBException
|
XML:DB API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||