ch.systemsx.cisd.openbis.generic.shared.api.v1.filter
Class TypeBasedDataSetFilter
java.lang.Object
ch.systemsx.cisd.openbis.generic.shared.api.v1.filter.TypeBasedDataSetFilter
- All Implemented Interfaces:
- IDataSetFilter
public class TypeBasedDataSetFilter
- extends java.lang.Object
- implements IDataSetFilter
Filter which will be passed only by data sets with a data set type code matching a certain
regular expression.
Constructor Summary |
TypeBasedDataSetFilter(java.lang.String datasetTypeCodePattern)
Creates an instance for the specified regular expression. |
Method Summary |
boolean |
pass(DataSet dataSet)
Return true if the data set type code of the specified data set matches the
regular expression provided as constructor argument. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TypeBasedDataSetFilter
public TypeBasedDataSetFilter(java.lang.String datasetTypeCodePattern)
- Creates an instance for the specified regular expression.
pass
public boolean pass(DataSet dataSet)
- Return
true
if the data set type code of the specified data set matches the
regular expression provided as constructor argument.
- Specified by:
pass
in interface IDataSetFilter
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object