Package org.evoludo.util
Class CLOption.Category
Object
Category
- Enclosing class:
CLOption
Handle different categories of options. This is mostly used to provide a more
readable and useful help screen for options organized in categories.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the header of category for help display.int
Get the priority of this category.void
Set the header of category for help display.
-
Field Details
-
header
String headerThe brief category description. Section header in help screen. -
priority
int priorityThe priority of this category. Higher priorities are printed first.
-
-
Constructor Details
-
Category
Create a new category with the headerheader
. The priority is set to0
.- Parameters:
header
- the header of the category
-
Category
Create a new category withheader
andpriority
.- Parameters:
header
- the header of the categorypriority
- the priority of the category
-
-
Method Details
-
getPriority
public int getPriority()Get the priority of this category. Parameters are grouped by priority in help display.- Returns:
- the priority
-
setHeader
Set the header of category for help display.- Parameters:
header
- the header
-
getHeader
Get the header of category for help display.- Returns:
- the header
-