Package jadex.commons
Class SConfigParser
- java.lang.Object
-
- jadex.commons.SConfigParser
-
public class SConfigParser extends java.lang.Object
Static methods for parsing objects (e.g. for objects found in maps or as strings).
-
-
Constructor Summary
Constructors Constructor Description SConfigParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
getBoolValue(java.lang.Object argval)
Parses a boolean value.static boolean
getBoolValue(java.lang.Object argval, boolean defaultval)
Parses an boolean value.static int
getIntValue(java.lang.Object argval)
Parses an integer value.static int
getIntValue(java.lang.Object argval, int defaultval)
Parses an integer value.static long
getLongValue(java.lang.Object argval)
Parses an long value.static long
getLongValue(java.lang.Object argval, long defaultval)
Parses an long value.
-
-
-
Method Detail
-
getBoolValue
public static final boolean getBoolValue(java.lang.Object argval)
Parses a boolean value.- Parameters:
argval
- Argument value.- Returns:
- Value.
-
getBoolValue
public static final boolean getBoolValue(java.lang.Object argval, boolean defaultval)
Parses an boolean value.- Parameters:
argval
- Argument value.defaultval
- Default value if unparsable.- Returns:
- Value.
-
getIntValue
public static final int getIntValue(java.lang.Object argval)
Parses an integer value.- Parameters:
argval
- Argument value.- Returns:
- Value.
-
getIntValue
public static final int getIntValue(java.lang.Object argval, int defaultval)
Parses an integer value.- Parameters:
argval
- Argument value.defaultval
- Default value if unparsable.- Returns:
- Value.
-
getLongValue
public static final long getLongValue(java.lang.Object argval)
Parses an long value.- Parameters:
argval
- Argument value.- Returns:
- Value.
-
getLongValue
public static final long getLongValue(java.lang.Object argval, long defaultval)
Parses an long value.- Parameters:
argval
- Argument value.defaultval
- Default value if unparsable.- Returns:
- Value.
-
-