public class Parameter extends Object
Constructor and Description |
---|
Parameter(String name,
String rawValue)
Creates a new parameter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
found() |
boolean |
getBoolean() |
boolean |
getBoolean(boolean defaultBoolean) |
int |
getInt() |
int |
getInt(int defaultInteger) |
long |
getLong() |
long |
getLong(long defaultLong) |
String |
getName() |
String |
getString() |
String |
getString(String defaultString) |
public String getName()
public boolean found()
public String getString()
public boolean getBoolean()
public int getInt()
NumberFormatException
if the
value cannot be parsed as int.public long getLong()
NumberFormatException
if the
value cannot be parsed as long.public String getString(String defaultString)
defaultString
- the value to return if no value was found in the configurationpublic boolean getBoolean(boolean defaultBoolean)
defaultBoolean
- the value to return if no value was found in the configurationpublic int getInt(int defaultInteger)
defaultInteger
- the value to return if no value was found in the configurationpublic long getLong(long defaultLong)
defaultLong
- the value to return if no value was found in the configurationCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.