|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.xml.Deserializer
public class Deserializer
A deserializer used by JIBX that resolve system properties to allow runtime configuration.
| Constructor Summary | |
|---|---|
Deserializer()
|
|
| Method Summary | |
|---|---|
static Boolean |
resolveBoolean(String s)
Resolve a boolean value with the following algorithm: Resolve any system property in the input value If the input value is null then the returned value is null If the value is equals to the string litteral true ignoring the case then true is returned If the value is equals to the string litteral false ignoring the case then false is returned Otherwise an IllegalArgumentException is thrown
|
static Double |
resolveDouble(String s)
Resolve a double value with the following algorithm: Resolve any system property in the input value Attempt to parse the value using the Double.parseDouble(String) method and returns its value.
If the parsing fails then throws an IllegalArgumentException
|
static Integer |
resolveInteger(String s)
Resolve an integer value with the following algorithm: Resolve any system property in the input value Attempt to parse the value using the Integer.parseInt(String) method and returns its value.
If the parsing fails then throws an IllegalArgumentException
|
static Long |
resolveLong(String s)
Resolve a long value with the following algorithm: Resolve any system property in the input value Attempt to parse the value using the Long.parseLong(String) method and returns its value.
If the parsing fails then throws an IllegalArgumentException
|
static String |
resolveString(String s)
Resolve a string value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Deserializer()
| Method Detail |
|---|
public static String resolveString(String s)
s - the input value
public static Boolean resolveBoolean(String s)
throws IllegalArgumentException
IllegalArgumentException is thrown
s - the input value
IllegalArgumentException - if the argument is not correct
public static Integer resolveInteger(String s)
throws IllegalArgumentException
Integer.parseInt(String) method and returns its value.IllegalArgumentException
s - the input value
IllegalArgumentException - if the argument is not correct
public static Long resolveLong(String s)
throws IllegalArgumentException
Long.parseLong(String) method and returns its value.IllegalArgumentException
s - the input value
IllegalArgumentException - if the argument is not correct
public static Double resolveDouble(String s)
throws IllegalArgumentException
Double.parseDouble(String) method and returns its value.IllegalArgumentException
s - the input value
IllegalArgumentException - if the argument is not correct
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||