edu.northwestern.at.monk.model
Class PersonCriterion

java.lang.Object
  extended by edu.northwestern.at.monk.model.SearchCriterion
      extended by edu.northwestern.at.monk.model.CoreObjectCriterion
          extended by edu.northwestern.at.monk.model.PersonCriterion

public class PersonCriterion
extends CoreObjectCriterion

A part of speech person category search criterion.

See Also:
MONK Datastore Overview, Licensing Agreement

Constructor Summary
PersonCriterion(java.util.Collection<?> values)
          Creates a new person category search criterion.
PersonCriterion(PersonCategory... personCategories)
          Creates a new person category search criterion.
PersonCriterion(java.lang.String... tags)
          Creates a new person category search criterion.
 
Method Summary
 java.util.Collection<PersonCategory> getPersonCategories()
          Gets the person categories.
 PersonCategory getPersonCategory()
          Gets the person category.
 java.lang.String getTag()
          Gets the tag.
 java.util.Collection<java.lang.String> getTags()
          Gets the tags.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonCriterion

public PersonCriterion(java.lang.String... tags)
                throws ModelException
Creates a new person category search criterion.

Parameters:
tags - Tags.
Throws:
ModelException -
No such person category: tag

PersonCriterion

public PersonCriterion(PersonCategory... personCategories)
                throws ModelException
Creates a new person category search criterion.

Parameters:
personCategories - Person categories.
Throws:
ModelException -
Should never be thrown.

PersonCriterion

public PersonCriterion(java.util.Collection<?> values)
                throws ModelException
Creates a new person category search criterion.

Parameters:
values - Collection of tags and/or person categories.
Throws:
ModelException -
No such person category: tag
Collection element is neither String nor PersonCategory
Method Detail

getPersonCategories

public java.util.Collection<PersonCategory> getPersonCategories()
Gets the person categories.

Returns:
Collection of person categories, or null if none.

getPersonCategory

public PersonCategory getPersonCategory()
Gets the person category.

Returns:
Person category, or null if none or more than one.

getTags

public java.util.Collection<java.lang.String> getTags()
Gets the tags.

Returns:
The tags, or null if none.

getTag

public java.lang.String getTag()
Gets the tag.

Returns:
Tag, or null if none or more than one.