edu.northwestern.at.monk.model
Class WorkPartDescendantOfCriterion

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

public class WorkPartDescendantOfCriterion
extends CoreObjectCriterion

A work part descendant of criterion.

See Also:
MONK Datastore Overview, Licensing Agreement

Constructor Summary
WorkPartDescendantOfCriterion(java.util.Collection<?> values)
          Creates a new work part descendant of search criterion.
WorkPartDescendantOfCriterion(java.lang.String... tags)
          Creates a new work part descendant of search criterion.
WorkPartDescendantOfCriterion(WorkPart... workParts)
          Creates a new work part descendant of search criterion.
 
Method Summary
 java.lang.String getTag()
          Gets the tag.
 java.util.Collection<java.lang.String> getTags()
          Gets the tags.
 WorkPart getWorkPart()
          Gets the work part.
 java.util.Collection<WorkPart> getWorkParts()
          Gets the work parts.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkPartDescendantOfCriterion

public WorkPartDescendantOfCriterion(java.lang.String... tags)
                              throws ModelException
Creates a new work part descendant of search criterion.

Parameters:
tags - Tags.
Throws:
ModelException -
No such work part tag: tag

WorkPartDescendantOfCriterion

public WorkPartDescendantOfCriterion(WorkPart... workParts)
                              throws ModelException
Creates a new work part descendant of search criterion.

Parameters:
workParts - Work parts.
Throws:
ModelException -
Should never be thrown.

WorkPartDescendantOfCriterion

public WorkPartDescendantOfCriterion(java.util.Collection<?> values)
                              throws ModelException
Creates a new work part descendant of search criterion.

Parameters:
values - Collection of tags and/or work parts.
Throws:
ModelException -
No such work part tag: tag
Collection element neither String nor WorkPart.
Method Detail

getWorkParts

public java.util.Collection<WorkPart> getWorkParts()
Gets the work parts.

Returns:
Collection of work parts, or null if none.

getWorkPart

public WorkPart getWorkPart()
Gets the work part.

Returns:
Work part, 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.