Package jmri

Class Category

java.lang.Object
jmri.Category
All Implemented Interfaces:
Comparable<Category>
Direct Known Subclasses:
Category.Other, LogixNG_Category

public abstract class Category extends Object implements Comparable<Category>
A category of something.

Category was created for LogixNG actions and expressions but it can be used for everything in JMRI that needs "extendable enums".

This class is intended to be an Enum, but implemented as an abstract class to allow adding more categories later without needing to change this class. For example, external programs using JMRI as a lib might want to add their own categories.