|
||||||||
| 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.PersonCategory
public class PersonCategory
A person part of speech category.
| Nested Class Summary | |
|---|---|
static class |
PersonCategory.Comparator
A multi-column person category comparator. |
static class |
PersonCategory.SortOption
Person category sorting options. |
| Method Summary | |
|---|---|
static int |
compare(PersonCategory cat1,
PersonCategory cat2)
Compares two person categories with null values permitted. |
int |
compareTo(PersonCategory other)
Compares this instance with another. |
static java.util.Collection<PersonCategory> |
find(java.util.Collection<SearchCriterion> criteria)
Finds person categories. |
static java.util.Collection<PersonCategory> |
find(SearchCriteria criteria)
Finds person categories. |
static java.util.Collection<PersonCategory> |
find(SearchCriterion... criteria)
Finds person categories. |
static PersonCategory |
get(java.lang.String tag)
Gets a person category by tag. |
static java.util.Collection<PersonCategory> |
getAll()
Gets all the person categories. |
static PersonCategory[] |
sort(java.util.Collection<PersonCategory> collection,
PersonCategory.SortOption... options)
Sorts a collection of person categories. |
static void |
sort(PersonCategory[] array,
PersonCategory.SortOption... options)
Sorts an array of person 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 PersonCategory get(java.lang.String tag)
tag - Tag.
public static java.util.Collection<PersonCategory> getAll()
public static java.util.Collection<PersonCategory> find(SearchCriterion... criteria)
throws ModelException
criteria - Search criteria.
sort method.
ModelException -
public static java.util.Collection<PersonCategory> find(java.util.Collection<SearchCriterion> criteria)
throws ModelException
criteria - Collection of search criteria.
sort method.
ModelException -
public static java.util.Collection<PersonCategory> find(SearchCriteria criteria)
throws ModelException
criteria - Search criteria.
sort method.
ModelException -
public static void sort(PersonCategory[] array,
PersonCategory.SortOption... options)
array - Array of person categories.options - Sort options, or null to use the natural ordering.
public static PersonCategory[] sort(java.util.Collection<PersonCategory> collection,
PersonCategory.SortOption... options)
collection - Collection of person categories.options - Sort options, or null to use the natural ordering.
public static int compare(PersonCategory cat1,
PersonCategory cat2)
Person 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 person category.cat2 - Second person category.
public int compareTo(PersonCategory other)
Person categories are ordered in case and diacritical-insensitve increasing alphabetical order by tag.
compareTo in interface java.lang.Comparable<PersonCategory>other - The other instance to be compared.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||