edu.northwestern.at.monk.model
Class DegreeCriterion

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.DegreeCriterion

public class DegreeCriterion
extends CoreObjectCriterion

A part of speech degree category search criterion.

See Also:
MONK Datastore Overview, Licensing Agreement

Constructor Summary
DegreeCriterion(java.util.Collection<?> values)
          Creates a new degree category search criterion.
DegreeCriterion(DegreeCategory... degreeCategories)
          Creates a new degree category search criterion.
DegreeCriterion(java.lang.String... tags)
          Creates a new degree category search criterion.
 
Method Summary
 java.util.Collection<DegreeCategory> getDegreeCategories()
          Gets the degree categories.
 DegreeCategory getDegreeCategory()
          Gets the degree 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

DegreeCriterion

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

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

DegreeCriterion

public DegreeCriterion(DegreeCategory... degreeCategories)
                throws ModelException
Creates a new degree category search criterion.

Parameters:
degreeCategories - Degree categories.
Throws:
ModelException -
Should never be thrown.

DegreeCriterion

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

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

getDegreeCategories

public java.util.Collection<DegreeCategory> getDegreeCategories()
Gets the degree categories.

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

getDegreeCategory

public DegreeCategory getDegreeCategory()
Gets the degree category.

Returns:
Degree 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.