|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.xmldb.MapResourceSet
Implementation of ResourceSet (a container of Resource objects), using internally both a Map and a Vector. The Map is keyed by the Id of each resource.
Constructor Summary | |
MapResourceSet()
|
|
MapResourceSet(java.util.Map resources)
Constructor |
|
MapResourceSet(ResourceSet rs)
Constructor |
Method Summary | |
void |
addResource(Resource resource)
Adds a resource to the container |
void |
clear()
Make the container empty |
ResourceIterator |
getIterator()
Gets the iterator property |
ResourceIterator |
getIterator(long start)
Gets the iterator property, starting from a given position |
Resource |
getMembersAsResource()
Gets the membersAsResource property of the object |
Resource |
getResource(long pos)
Gets the resource at a given position. |
java.util.Map |
getResourcesMap()
|
long |
getSize()
Gets the size property |
void |
removeResource(long pos)
Removes the resource at a given position. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xmldb.api.base.ResourceSet |
addAll, getResource, removeResource |
Constructor Detail |
public MapResourceSet()
public MapResourceSet(java.util.Map resources)
public MapResourceSet(ResourceSet rs) throws XMLDBException
Method Detail |
public java.util.Map getResourcesMap()
public void addResource(Resource resource) throws XMLDBException
addResource
in interface ResourceSet
resource
- The resource to be added to the object
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public void clear() throws XMLDBException
clear
in interface ResourceSet
XMLDBException
public ResourceIterator getIterator() throws XMLDBException
getIterator
in interface ResourceSet
XMLDBException
public ResourceIterator getIterator(long start) throws XMLDBException
start
- starting position>0 for the iterator
XMLDBException
- thrown if pos is out of rangepublic Resource getMembersAsResource() throws XMLDBException
getMembersAsResource
in interface ResourceSet
XMLDBException
- Description of the Exceptionpublic Resource getResource(long pos) throws XMLDBException
pos
- position > 0
XMLDBException
- thrown if pos is out of rangepublic long getSize() throws XMLDBException
getSize
in interface ResourceSet
XMLDBException
public void removeResource(long pos) throws XMLDBException
pos
- position > 0
XMLDBException
- thrown if pos is out of range
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |