Class TypeBasedDataSetFilter

java.lang.Object
ch.systemsx.cisd.openbis.generic.shared.api.v1.filter.TypeBasedDataSetFilter
All Implemented Interfaces:
IDataSetFilter

public class TypeBasedDataSetFilter extends Object implements IDataSetFilter
Filter which will be passed only by data sets with a data set type code matching a certain regular expression.
  • Constructor Details

    • TypeBasedDataSetFilter

      public TypeBasedDataSetFilter(String datasetTypeCodePattern)
      Creates an instance for the specified regular expression.
  • Method Details

    • 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 String toString()
      Overrides:
      toString in class Object