Class CommandOption
java.lang.Object
org.episteme.natural.chemistry.loaders.cml.util.CommandOption
Represents a single command-line option for JVM-based tools.
Supports various types including Boolean, String, Double, etc.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
ConstructorsConstructorDescriptionCommandOption(String name, Class<?> classx, CommandOptionValue[] optionValue, Object value, String desc) Creates a new CommandOption object. -
Method Summary
Modifier and TypeMethodDescriptionClass<?> Returns the class type of this option.Returns the description of this option.getName()Returns the name of this option.getValue()Returns the current value of this option.voidSets the value of this option.toString()Returns a string representation of this option and its current value.
-
Constructor Details
-
CommandOption
public CommandOption(String name, Class<?> classx, CommandOptionValue[] optionValue, Object value, String desc) Creates a new CommandOption object.- Parameters:
name- the name of the optionclassx- the expected value typeoptionValue- allowed value descriptors (can be null)value- the default valuedesc- the option description
-
-
Method Details
-
setValue
-
getValue
-
getName
-
getClassx
-
getDescription
-
toString
-