edu.northwestern.at.monk.model
Class YesNoCriterion

java.lang.Object
  extended by edu.northwestern.at.monk.model.SearchCriterion
      extended by edu.northwestern.at.monk.model.YesNoCriterion
Direct Known Subclasses:
EndOfSentenceCriterion, ParatextCriterion, VerseCriterion, WorkPartHasChildrenCriterion, WorkPartHasWordsCriterion

public abstract class YesNoCriterion
extends SearchCriterion

A yes/no search criterion.

Yes/no search criteria are used to match boolean attributes.

Each yes/no criterion class offers a single constructor of the following form, where T is the type of the criterion:

T (YesNo option)

YesNo is an enum type with three values:

YesNo.YES Matches an attribute with value true.
YesNo.NO Matches an attribute with value false.
YesNo.IGNORE Matches any value. This constructs an empty
or "no-op" criterion.

See Also:
MONK Datastore Overview, Licensing Agreement

Method Summary
 YesNo getOption()
          Gets the option.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOption

public YesNo getOption()
Gets the option.

Returns:
Option.