public class Argument extends java.lang.Object implements ArgumentType
BOOL, CHAR, EMPTY, FLOAT, INT, PROPERTIES, SHORT, STRING, URL
Modifier and Type | Method and Description |
---|---|
int |
getDefaultState()
Return the argument default state, if the argument has states.
|
java.util.Map<java.lang.String,ArgumentGroup> |
getGroups()
Return the argument group.
|
java.lang.String |
getKey()
Return the argument key.
|
int |
getState(java.lang.String value)
Return the state for a specified value.
|
java.util.Map<java.lang.String,java.lang.Integer> |
getStates()
Return the states if the argument has states.
|
short |
getType()
Return the argument type.
|
java.lang.Object |
getValue()
Return the argument value.
|
boolean |
getValueAsBoolean()
Return the argument value as a char.
|
char |
getValueAsChar()
Return the argument value as a char.
|
java.io.File |
getValueAsFile()
Return the argument value as a File.
|
float |
getValueAsFloat()
Return the argument value as a char.
|
int |
getValueAsInt()
Return the argument value as an int.
|
short |
getValueAsShort()
Return the argument value as a short.
|
java.lang.String |
getValueAsString()
Return the argument value as a String.
|
java.net.URL |
getValueAsURL()
Return the argument value as an URL.
|
boolean |
hasGroups()
Return true if the argument belongs to an argument group.
|
boolean |
hasState(java.lang.String value)
Return true if the argument has a state for a specified value.
|
boolean |
hasStates()
Return true if the argument has states.
|
boolean |
isPresent() |
public java.lang.String getKey()
public short getType()
public int getDefaultState()
public boolean hasStates()
public boolean hasState(java.lang.String value)
value
- the valuepublic int getState(java.lang.String value)
value
- the valuepublic java.util.Map<java.lang.String,java.lang.Integer> getStates()
public boolean isPresent()
public java.lang.Object getValue()
public int getValueAsInt()
public short getValueAsShort()
public char getValueAsChar()
public float getValueAsFloat()
public java.lang.String getValueAsString()
public java.net.URL getValueAsURL()
public java.io.File getValueAsFile()
public boolean getValueAsBoolean()
public java.util.Map<java.lang.String,ArgumentGroup> getGroups()
public boolean hasGroups()