public final class StationClassFilter.StationCategory
extends java.lang.Object
implements java.lang.Cloneable
Symbols.Category
Modifier and Type | Field and Description |
---|---|
java.lang.String |
tagName |
Modifier | Constructor and Description |
---|---|
protected |
StationCategory(java.lang.String tagName,
Symbols.Category... categories)
Create a StationCategory that matches any of the specified categories.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object.
|
boolean |
inCategory(Symbols.Category testCategory)
Test if the specified category matches this category subfilter.
|
boolean |
isSelected()
Test whether this category set is enabled for viewing.
|
void |
setSelected(boolean selected)
Specify whether stations in this category set should be viewable.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
protected StationCategory(java.lang.String tagName, Symbols.Category... categories)
tagName
- String of resource name for the localized name for this categorycategories
- zero or more categories for this subfilter to matchpublic final boolean inCategory(Symbols.Category testCategory)
testCategory
- Category to comparepublic final boolean isSelected()
public final void setSelected(boolean selected)
selected
- boolean true if this category should be viewablepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if the object's class does not
support the Cloneable
interface. Subclasses
that override the clone
method can also
throw this exception to indicate that an instance cannot
be cloned.public java.lang.String toString()
toString
in class java.lang.Object