com.facetmap
Interface ResourceSpace

All Known Implementing Classes:
SimpleResourceSpace

public interface ResourceSpace

The repository of Resource objects bound in a FacetMap. Like Resource itself, this interface is broadly designed to be applied to pre-existing application-specific classes, and therefore tries to be generic.


Method Summary
 java.util.Collection getAll()
          Returns all resources.
 Resource getById(int id)
           
 int getResourceCount()
           
 

Method Detail

getResourceCount

public int getResourceCount()
                     throws InternalException
Throws:
InternalException

getById

public Resource getById(int id)
                 throws InternalException
Throws:
InternalException

getAll

public java.util.Collection getAll()
                            throws InternalException
Returns all resources. Order depends on implementation. This method can be used to communicate resources between maps or to output an entire resource space.

If it is impossible or undesirable to return the entire set of resources, this method should return null.

Throws:
InternalException