|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.facetmap.simple.SimpleResourceSpace
public class SimpleResourceSpace
A mutable and entirely RAM-based ResourceSpace.
To add Resources to this ResourceSpace, construct SimpleResource objects yourself, and then add them with SimpleResourceSpace.create() .
| Field Summary | |
|---|---|
protected FacetSpace |
facetSpace
|
protected java.util.Map |
resources
Maps Integer IDs to resources. |
protected int |
uidSequence
|
| Constructor Summary | |
|---|---|
SimpleResourceSpace(FacetSpace facetSpace)
|
|
| Method Summary | |
|---|---|
void |
clear()
|
SimpleResource |
create(SimpleResource r)
This method is not fully spec'd yet. |
java.util.Iterator |
getAll()
Returns all resources, unsorted. |
Resource |
getById(int id)
Will return null if the passed id has no resource. |
FacetSpace |
getFacetSpace()
Return the classification scheme by which these Resources are classified. |
int |
getResourceCount()
|
| 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 int uidSequence
protected FacetSpace facetSpace
| Constructor Detail |
|---|
public SimpleResourceSpace(FacetSpace facetSpace)
| Method Detail |
|---|
public FacetSpace getFacetSpace()
ResourceSpace
getFacetSpace in interface ResourceSpacepublic void clear()
public SimpleResource create(SimpleResource r)
public int getResourceCount()
getResourceCount in interface ResourceSpacepublic Resource getById(int id)
getById in interface ResourceSpacepublic java.util.Iterator getAll()
getAll in interface ResourceSpace
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||