Class BioSQLFeatureFilter.BySourceTerm

java.lang.Object
org.biojavax.bio.db.biosql.BioSQLFeatureFilter.HibernateFeatureFilter
org.biojavax.bio.db.biosql.BioSQLFeatureFilter.BySourceTerm
All Implemented Interfaces:
Serializable, FeatureFilter, BioSQLFeatureFilter
Enclosing interface:
BioSQLFeatureFilter

Construct one of these to filter features by source.
Since:
1.5
Author:
Matthew Pocock, Richard Holland
See Also:
  • Constructor Details

    • BySourceTerm

      public BySourceTerm(ComparableTerm sourceTerm)
      Create a BySourceTerm filter that filters in all features with sourceTerm fields equal to source.
      Parameters:
      sourceTerm - the Term to match sourceTerm fields against
  • Method Details

    • getSourceTerm

    • accept

      public boolean accept(Feature f)
      Returns true if the feature has a matching source property.
      Parameters:
      f - the Feature to evaluate
      Returns:
      true if this feature is to be selected in, or false if it is to be ignored
    • asCriterion

      public Object asCriterion()
      Description copied from interface: BioSQLFeatureFilter
      This method returns a Hibernate Criterion object that can be used to query the database.
      Returns:
      a Hibernate Criterion object representing this filter.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object