|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.sixdml.SixdmlResourceSet
SixdmlResourceSet.java ResourceSet is a container for a set of resources. This class isn't really a Set, but instead is more like a Vector. Created: Thu Jan 10 20:46:09 2002
| Field Summary | |
private ArrayList |
resources
This is the collection that holds the Resources. |
| Fields inherited from interface org.sixdml.SixdmlConstants |
SIXDML_NS, SIXDML_VERSION |
| Constructor Summary | |
SixdmlResourceSet()
Default constructor. |
|
| Method Summary | |
void |
addResource(Resource res)
Adds a Resource instance to the set. |
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. |
static void |
main(String[] args)
Main used for testing class. |
void |
removeResource(long index)
Removes the Resource located at index from the set. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private ArrayList resources
| Constructor Detail |
public SixdmlResourceSet()
| Method Detail |
public void addResource(Resource res)
addResource in interface ResourceSetres - the Resource to add.public void clear()
clear in interface ResourceSetpublic ResourceIterator getIterator()
getIterator in interface ResourceSetpublic Resource getMembersAsResource()
getMembersAsResource in interface ResourceSetpublic Resource getResource(long index)
getResource in interface ResourceSetindex - the index from which to return the Resource.IndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= size()).public long getSize()
getSize in interface ResourceSetpublic void removeResource(long index)
removeResource in interface ResourceSetindex - the index from which to remove the Resource.IndexOutOfBoundsException - if the index is out of range
(index < 0 || index >= size()).public static void main(String[] args)
args - IGNORED
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||