Package org.yamcs
Class CommandOption
- java.lang.Object
-
- org.yamcs.CommandOption
-
public class CommandOption extends Object
A command option. Instances of this class should be registered once, system-wide, against an instance ofYamcsServer. While not enforced, it is preferred to use aPlugin.onLoad(YConfiguration)hook as this will guarantee that the registration is done only once.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommandOption.CommandOptionType
-
Constructor Summary
Constructors Constructor Description CommandOption(String id, String verboseName, CommandOption.CommandOptionType type)Create a new command option.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHelp()StringgetId()CommandOption.CommandOptionTypegetType()StringgetVerboseName()StringtoString()CommandOptionwithHelp(String help)Specify detailed guidance on how to use this attribute.
-
-
-
Constructor Detail
-
CommandOption
public CommandOption(String id, String verboseName, CommandOption.CommandOptionType type)
Create a new command option.- Parameters:
id- a system-wide unique identifier for this option. This identifier will be used by clients when submitting commands, and will also be used for storage in Command History.verboseName- a human-readable name for this option. Used by UI clients.type- the expected type of option values. UI clients may use this to enforce specific controls.
-
-
Method Detail
-
getId
public String getId()
-
getVerboseName
public String getVerboseName()
-
getType
public CommandOption.CommandOptionType getType()
-
withHelp
public CommandOption withHelp(String help)
Specify detailed guidance on how to use this attribute. UI clients may use this to show to users.
-
getHelp
public String getHelp()
-
-