Package com.tagtraum.beatunes.matchlist
Class StringPropertyFilter
- java.lang.Object
-
- com.tagtraum.beatunes.matchlist.MutableSongPropertyFilter
-
- com.tagtraum.beatunes.matchlist.StringPropertyFilter
-
- All Implemented Interfaces:
SongFilter
,SongPropertyFilter
,Serializable
,Predicate<AudioSong>
public class StringPropertyFilter extends MutableSongPropertyFilter
StringPropertyFilter.- Author:
- Hendrik Schreiber
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tagtraum.beatunes.SongPropertyFilter
SongPropertyFilter.PropertyComparator, SongPropertyFilter.PropertyComparatorImpl<T>
-
-
Constructor Summary
Constructors Constructor Description StringPropertyFilter(Property<String> property, Object... defaultOperands)
StringPropertyFilter(String name, String property, Object... defaultOperands)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
FilterOperator[]
getSupportedOperators()
boolean
supportsAutoCompletion()
Indicates whether this filter supports auto completion.String
toExpression()
Converts this filter into a HQL clause.-
Methods inherited from class com.tagtraum.beatunes.matchlist.MutableSongPropertyFilter
equals, getFilterOperator, getOperands, getProperty, getUnit, hashCode, installAutoCompletion, sameProperty, setDefaultOperands, setFilterOperator, setOperands, test, toString, uninstallAutoCompletion
-
-
-
-
Method Detail
-
supportsAutoCompletion
public boolean supportsAutoCompletion()
Description copied from class:MutableSongPropertyFilter
Indicates whether this filter supports auto completion. By default this method returns false- Overrides:
supportsAutoCompletion
in classMutableSongPropertyFilter
- Returns:
- true or false
-
getName
public String getName()
- Specified by:
getName
in classMutableSongPropertyFilter
-
getSupportedOperators
public FilterOperator[] getSupportedOperators()
- Specified by:
getSupportedOperators
in classMutableSongPropertyFilter
-
toExpression
public String toExpression()
Description copied from class:MutableSongPropertyFilter
Converts this filter into a HQL clause.- Specified by:
toExpression
in interfaceSongFilter
- Overrides:
toExpression
in classMutableSongPropertyFilter
- Returns:
- HQL expression
-
-