edu.northwestern.at.monk.model
Class WordTagCriterion

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

public class WordTagCriterion
extends SearchCriterion

A word tag search criterion.

See Also:
MONK Datastore Overview, Licensing Agreement

Constructor Summary
WordTagCriterion(java.util.Collection<?> values)
          Creates a new word tag search criterion.
WordTagCriterion(java.lang.String... tags)
          Creates a new word tag search criterion.
WordTagCriterion(Word... words)
          Creates a new word tag search criterion.
 
Method Summary
 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

WordTagCriterion

public WordTagCriterion(java.lang.String... tags)
                 throws ModelException
Creates a new word tag search criterion.

Parameters:
tags - Tags.
Throws:
ModelException -
Should never be thrown.

WordTagCriterion

public WordTagCriterion(Word... words)
                 throws ModelException
Creates a new word tag search criterion.

Parameters:
words - Words.
Throws:
ModelException -
Should never be thrown.

WordTagCriterion

public WordTagCriterion(java.util.Collection<?> values)
                 throws ModelException
Creates a new word tag search criterion.

Parameters:
values - Collection of tags and/or words.
Throws:
ModelException -
Collection element neither String nor Lemma.
Method Detail

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.