|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectthings.common.commands.CommandLine
public class CommandLine
A parsed command line.
Version History
EPG - Initial - 5 JUN 07
| Nested Class Summary | |
|---|---|
static class |
CommandLine.PARAMETER_TYPES
|
| Constructor Summary | |
|---|---|
CommandLine(java.util.HashMap<java.lang.String,NVImmutable> valuesData,
java.util.ArrayList<java.lang.String> entitiesData,
boolean[] optionsData)
The only constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getEntity(int index)
Get an entity as a String. |
NVImmutable |
getValue(java.lang.String name)
Get a value as an NVImmutable or null if it isn't present. |
boolean |
hasEntity(int index)
Does it have the entity at the index? If the position is not valid, it'll return false (rather than throw arrayoutofbounds). |
boolean |
hasValue(java.lang.String name)
Get a value as an NVImmutable or null if it isn't present. |
boolean |
isOptionSet(int character)
Check to see if the character is a set option. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandLine(java.util.HashMap<java.lang.String,NVImmutable> valuesData,
java.util.ArrayList<java.lang.String> entitiesData,
boolean[] optionsData)
throws ThingsException
valuesData - The values.entitiesData - The entities.optionsData - The options map.
ThingsException| Method Detail |
|---|
public java.lang.String getEntity(int index)
index - in the list (counting from ZERO).
public boolean hasEntity(int index)
index - in the list (counting from ZERO).
public boolean hasValue(java.lang.String name)
name - name of the value. It is not case sensitive (normalized to lower-case).
public NVImmutable getValue(java.lang.String name)
name - name of the value. It is not case sensitive (normalized to lower-case).
NVImmutablepublic boolean isOptionSet(int character)
character -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||