Package org.biojavax.bio.db.biosql
Class BioSQLAcceptNoneFilter
- java.lang.Object
-
- org.biojavax.bio.db.biosql.BioSQLAcceptNoneFilter
-
- All Implemented Interfaces:
java.io.Serializable,FeatureFilter,BioSQLFeatureFilter
public class BioSQLAcceptNoneFilter extends java.lang.Object implements BioSQLFeatureFilter
The class that accepts no features.Use the FeatureFilter.none member.
- Since:
- 1.5
- Author:
- Matthew Pocock, Richard Holland
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.biojavax.bio.db.biosql.BioSQLFeatureFilter
BioSQLFeatureFilter.And, BioSQLFeatureFilter.ByName, BioSQLFeatureFilter.ByNote, BioSQLFeatureFilter.ByNoteTermOnly, BioSQLFeatureFilter.ByRank, BioSQLFeatureFilter.BySequenceName, BioSQLFeatureFilter.BySourceTerm, BioSQLFeatureFilter.BySourceTermName, BioSQLFeatureFilter.ByStrand, BioSQLFeatureFilter.ByTypeTerm, BioSQLFeatureFilter.ByTypeTermName, BioSQLFeatureFilter.ContainedByRichLocation, BioSQLFeatureFilter.HibernateFeatureFilter, BioSQLFeatureFilter.Not, BioSQLFeatureFilter.Or, BioSQLFeatureFilter.OverlapsRichLocation, BioSQLFeatureFilter.Tools
-
Nested classes/interfaces inherited from interface org.biojava.bio.seq.FeatureFilter
FeatureFilter.AnnotationContains, FeatureFilter.ByAncestor, FeatureFilter.ByAnnotation, FeatureFilter.ByAnnotationType, FeatureFilter.ByChild, FeatureFilter.ByClass, FeatureFilter.ByComponentName, FeatureFilter.ByDescendant, FeatureFilter.ByFeature, FeatureFilter.ByPairwiseScore, FeatureFilter.ByParent, FeatureFilter.BySource, FeatureFilter.ByType, FeatureFilter.ContainedByLocation, FeatureFilter.FrameFilter, FeatureFilter.HasAnnotation, FeatureFilter.OnlyChildren, FeatureFilter.OnlyDescendants, FeatureFilter.OverlapsLocation, FeatureFilter.ShadowContainedByLocation, FeatureFilter.ShadowOverlapsLocation, FeatureFilter.StrandFilter
-
-
Field Summary
-
Fields inherited from interface org.biojavax.bio.db.biosql.BioSQLFeatureFilter
all, none
-
Fields inherited from interface org.biojava.bio.seq.FeatureFilter
leaf, top_level
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBioSQLAcceptNoneFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(Feature f)This method determines whether a feature is to be accepted.java.lang.ObjectasCriterion()This method returns a Hibernate Criterion object that can be used to query the database.java.util.MapcriterionAliasMap()Returns a map of property names (keys) to aliases (values), if the criterion returned by asCriterion() uses aliases at all.booleanequals(java.lang.Object o)inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
asCriterion
public java.lang.Object asCriterion()
Description copied from interface:BioSQLFeatureFilterThis method returns a Hibernate Criterion object that can be used to query the database.- Specified by:
asCriterionin interfaceBioSQLFeatureFilter- Returns:
- a Hibernate Criterion object representing this filter.
-
criterionAliasMap
public java.util.Map criterionAliasMap()
Description copied from interface:BioSQLFeatureFilterReturns 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:
criterionAliasMapin interfaceBioSQLFeatureFilter- Returns:
- Map a map of property names to aliases used in the criterion.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
accept
public boolean accept(Feature f)
Description copied from interface:FeatureFilterThis method determines whether a feature is to be accepted.- Specified by:
acceptin interfaceFeatureFilter- Parameters:
f- the Feature to evaluate- Returns:
- true if this feature is to be selected in, or false if it is to be ignored
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-