|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.yosokumo.core.Catalog
public class Catalog
An index to all the studies on which a given user has a role. A catalog has these attributes:
Method Summary | |
---|---|
boolean |
containsStudy(java.lang.String studyIdentifier)
Test if a study is in the catalog. |
Study |
getStudy(java.lang.String studyIdentifier)
Return a study from the catalog. |
java.util.Collection<Study> |
getStudyCollection()
Return all studies in the catalog as a Collection<Study> . |
java.util.Set<java.lang.String> |
getStudyIdentifiersSet()
Return the identifiers of all the studies in the catalog as a Set<String> . |
java.lang.String |
getUserIdentifier()
Return the user identifier. |
java.lang.String |
getUserName()
Return the user name. |
boolean |
isEmpty()
Return true if the catalog contains no studies. |
int |
size()
Return the number of studies in the catalog. |
java.lang.String |
toString()
Return a string representation of this Catalog . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public java.lang.String getUserIdentifier()
public java.lang.String getUserName()
public Study getStudy(java.lang.String studyIdentifier)
studyIdentifier
- the identifier of the Study
to
get from the catalog.
null
means there is no study in the catalog with the
identifier specified by the parameter.
non-null
means that there is a study in the catalog
with the identifier specified by the parameter, and the
return value is the specified study.public boolean containsStudy(java.lang.String studyIdentifier)
studyIdentifier
- the identifier of the Study
to
test for.
false
means there is no study in the catalog with the
identifier specified by the parameter.
true
means that there is a study in the catalog
with the identifier specified by the parameter.public int size()
public boolean isEmpty()
true
if the catalog contains no studies.
true
if the catalog contains no studies.
false
otherwise.public java.util.Set<java.lang.String> getStudyIdentifiersSet()
Set<String>
. This makes it possible to iterate over the
study identifiers like this:
for (String s : catalog.getStudyIdentifiersSet())
{ process study identifier s }
public java.util.Collection<Study> getStudyCollection()
Collection<Study>
.
This makes it possible to iterate over all studies in the catalog
like this:
for (Study s : catalog.getStudyCollection()) { process study s }
public java.lang.String toString()
Catalog
. Note that
for a study in the catalog only the study identifier and study name
are represented as a string, not the entire study.
toString
in class java.lang.Object
Catalog
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |