net.sf.farrago.namespace.util
Class MedMetadataFilterImpl

java.lang.Object
  extended by net.sf.farrago.namespace.util.MedMetadataFilterImpl
All Implemented Interfaces:
FarragoMedMetadataFilter

public class MedMetadataFilterImpl
extends Object
implements FarragoMedMetadataFilter

MedMetadataFilterImpl is a default implementation FarragoMedMetadataFilter.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/namespace/util/MedMetadataFilterImpl.java#6 $
Author:
John V. Sichi

Field Summary
private  boolean exclude
           
private  String pattern
           
private  Set roster
           
 
Constructor Summary
MedMetadataFilterImpl(boolean exclude, Set roster, String pattern)
           
 
Method Summary
 String getPattern()
           
 Set getRoster()
           
 boolean isExclusion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exclude

private final boolean exclude

roster

private final Set roster

pattern

private final String pattern
Constructor Detail

MedMetadataFilterImpl

public MedMetadataFilterImpl(boolean exclude,
                             Set roster,
                             String pattern)
Method Detail

isExclusion

public boolean isExclusion()
Specified by:
isExclusion in interface FarragoMedMetadataFilter
Returns:
true if objects matching filter are to be excluded from query results; false if only objects matching filter are to be included in the results

getRoster

public Set getRoster()
Specified by:
getRoster in interface FarragoMedMetadataFilter
Returns:
Set representing filter membership, or null for a pattern filter

getPattern

public String getPattern()
Specified by:
getPattern in interface FarragoMedMetadataFilter
Returns:
LIKE pattern, or null for a roster filter