Package adams.data.io.input.opus
Class OpusBlockHelper.CommandlineData
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.data.io.input.opus.OpusBlockHelper.CommandlineData
-
- All Implemented Interfaces:
adams.core.logging.LoggingSupporter,adams.core.SizeOfHandler,Serializable
- Enclosing class:
- OpusBlockHelper
public static class OpusBlockHelper.CommandlineData extends adams.core.logging.LoggingObjectEncapsulates and parses a commandline string.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommandlineData(String raw)Initializes the object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget(String key)Returns the value associated with the key.StringgetOperation()Returns the commandline operation.StringgetType()Returns the operation type.booleanhas(String key)Checks whether the key is present.Set<String>keySet()Returns the keys of the values.protected voidparse()Parses the commandline.intsize()Returns the number of values.StringtoString()Returns the raw data.
-
-
-
Constructor Detail
-
CommandlineData
public CommandlineData(String raw)
Initializes the object.- Parameters:
raw- the raw string
-
-
Method Detail
-
parse
protected void parse()
Parses the commandline.
-
getOperation
public String getOperation()
Returns the commandline operation.- Returns:
- the operation
-
getType
public String getType()
Returns the operation type.- Returns:
- the type
-
size
public int size()
Returns the number of values.- Returns:
- the number of values
-
has
public boolean has(String key)
Checks whether the key is present.- Parameters:
key- the key to check- Returns:
- true if present
-
get
public String get(String key)
Returns the value associated with the key.- Parameters:
key- the key of the value to retrieve- Returns:
- the value, null if not available
-
-