|
||||||||||
| 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.
| Field Summary | |
protected java.util.Map |
resources
|
protected java.util.Vector |
resourcesVector
|
| Constructor Summary | |
MapResourceSet()
|
|
MapResourceSet(java.util.Map resources)
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Map resources
protected java.util.Vector resourcesVector
| Constructor Detail |
public MapResourceSet()
public MapResourceSet(java.util.Map resources)
| Method Detail |
public java.util.Map getResourcesMap()
public void addResource(Resource resource)
throws XMLDBException
resource - The resource to be added to the object
XMLDBException
public void clear()
throws XMLDBException
XMLDBException
public ResourceIterator getIterator()
throws XMLDBException
XMLDBException
public ResourceIterator getIterator(long start)
throws XMLDBException
start - starting position>0 for the iterator
XMLDBException - thrown if pos is out of range
public Resource getMembersAsResource()
throws XMLDBException
XMLDBException - Description of the Exception
public Resource getResource(long pos)
throws XMLDBException
pos - position > 0
XMLDBException - thrown if pos is out of range
public long getSize()
throws XMLDBException
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 | |||||||||