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.LoggingObject
Encapsulates 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 String
get(String key)
Returns the value associated with the key.String
getOperation()
Returns the commandline operation.String
getType()
Returns the operation type.boolean
has(String key)
Checks whether the key is present.Set<String>
keySet()
Returns the keys of the values.protected void
parse()
Parses the commandline.int
size()
Returns the number of values.String
toString()
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
-
-