Class BioSQLFeatureFilter.ByTypeTermName

    • Constructor Detail

      • ByTypeTermName

        public ByTypeTermName​(java.lang.String typeTermName)
        Create a ByTypeTermName filter that filters in all features with typeTerm fields having name equal to typeTermName.
        Parameters:
        typeTermName - the Term to match typeTermName fields against
    • Method Detail

      • getTypeTermName

        public java.lang.String getTypeTermName()
      • accept

        public boolean accept​(Feature f)
        Returns true if the feature has a matching type 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 java.lang.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.
      • criterionAliasMap

        public java.util.Map criterionAliasMap()
        Description copied from interface: BioSQLFeatureFilter
        Returns a map of property names (keys) to aliases (values), if the criterion returned by asCriterion() uses aliases at all. If not, then it must at least return the empty map else you'll get NullPointerExceptions thrown elsewhere.
        Specified by:
        criterionAliasMap in interface BioSQLFeatureFilter
        Overrides:
        criterionAliasMap in class BioSQLFeatureFilter.HibernateFeatureFilter
        Returns:
        Map a map of property names to aliases used in the criterion.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object