|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.northwestern.at.monk.model.TaggedObject
edu.northwestern.at.monk.model.CoreObject
edu.northwestern.at.monk.model.MoodCategory
public class MoodCategory
A mood part of speech category.
| Nested Class Summary | |
|---|---|
static class |
MoodCategory.Comparator
A multi-column mood category comparator. |
static class |
MoodCategory.SortOption
Mood category sorting options. |
| Method Summary | |
|---|---|
static int |
compare(MoodCategory cat1,
MoodCategory cat2)
Compares two mood categories with null values permitted. |
int |
compareTo(MoodCategory other)
Compares this instance with another. |
static java.util.Collection<MoodCategory> |
find(java.util.Collection<SearchCriterion> criteria)
Finds mood categories. |
static java.util.Collection<MoodCategory> |
find(SearchCriteria criteria)
Finds mood categories. |
static java.util.Collection<MoodCategory> |
find(SearchCriterion... criteria)
Finds mood categories. |
static MoodCategory |
get(java.lang.String tag)
Gets a mood category by tag. |
static java.util.Collection<MoodCategory> |
getAll()
Gets all the mood categories. |
static MoodCategory[] |
sort(java.util.Collection<MoodCategory> collection,
MoodCategory.SortOption... options)
Sorts a collection of mood categories. |
static void |
sort(MoodCategory[] array,
MoodCategory.SortOption... options)
Sorts an array of mood categories. |
| Methods inherited from class edu.northwestern.at.monk.model.TaggedObject |
|---|
getTag |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MoodCategory get(java.lang.String tag)
tag - Tag.
public static java.util.Collection<MoodCategory> getAll()
public static java.util.Collection<MoodCategory> find(SearchCriterion... criteria)
throws ModelException
criteria - Search criteria.
sort method.
ModelException -
public static java.util.Collection<MoodCategory> find(java.util.Collection<SearchCriterion> criteria)
throws ModelException
criteria - Collection of search criteria.
sort method.
ModelException -
public static java.util.Collection<MoodCategory> find(SearchCriteria criteria)
throws ModelException
criteria - Search criteria.
sort method.
ModelException -
public static void sort(MoodCategory[] array,
MoodCategory.SortOption... options)
array - Array of mood categories.options - Sort options, or null to use the natural ordering.
public static MoodCategory[] sort(java.util.Collection<MoodCategory> collection,
MoodCategory.SortOption... options)
collection - Collection of mood categories.options - Sort options, or null to use the natural ordering.
public static int compare(MoodCategory cat1,
MoodCategory cat2)
Mood categories are ordered in case and diacritical-insensitve increasing alphabetical order by tag. Null values are equal to each other but greater than all other values.
cat1 - First mood category.cat2 - Second mood category.
public int compareTo(MoodCategory other)
Mood categories are ordered in case and diacritical-insensitve increasing alphabetical order by tag.
compareTo in interface java.lang.Comparable<MoodCategory>other - The other instance to be compared.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||