Package org.ka2ddo.yaac.filter
Class StationClassFilter.StationCategory
java.lang.Object
org.ka2ddo.yaac.filter.StationClassFilter.StationCategory
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- StationClassFilter
Define a subfilter for a particular category of station.
- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
StationCategory
(String tagName, Symbols.Category... categories) Create a StationCategory that matches any of the specified categories. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.final boolean
inCategory
(Symbols.Category testCategory) Test if the specified category matches this category subfilter.final boolean
Test whether this category set is enabled for viewing.final void
setSelected
(boolean selected) Specify whether stations in this category set should be viewable.toString()
Returns a string representation of the object.
-
Field Details
-
tagName
-
-
Constructor Details
-
StationCategory
Create a StationCategory that matches any of the specified categories.- Parameters:
tagName
- String of resource name for the localized name for this categorycategories
- zero or more categories for this subfilter to match
-
-
Method Details
-
inCategory
Test if the specified category matches this category subfilter.- Parameters:
testCategory
- Category to compare- Returns:
- boolean true if the category matches
-
isSelected
public final boolean isSelected()Test whether this category set is enabled for viewing.- Returns:
- boolean true if stations in this category are acceptable
-
setSelected
public final void setSelected(boolean selected) Specify whether stations in this category set should be viewable.- Parameters:
selected
- boolean true if this category should be viewable
-
clone
Creates and returns a copy of this object.- Overrides:
clone
in classObject
- Returns:
- a clone of this instance.
- Throws:
CloneNotSupportedException
- if the object's class does not support theCloneable
interface. Subclasses that override theclone
method can also throw this exception to indicate that an instance cannot be cloned.
-
toString
Returns a string representation of the object.
-