|
||||||||||
| 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 java.lang.Boolean |
resolveBoolean(java.lang.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 java.lang.Double |
resolveDouble(java.lang.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 java.lang.Integer |
resolveInteger(java.lang.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 java.lang.Long |
resolveLong(java.lang.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 java.lang.String |
resolveString(java.lang.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 java.lang.String resolveString(java.lang.String s)
s - the input value
public static java.lang.Boolean resolveBoolean(java.lang.String s)
throws java.lang.IllegalArgumentException
IllegalArgumentException is thrown
s - the input value
java.lang.IllegalArgumentException - if the argument is not correct
public static java.lang.Integer resolveInteger(java.lang.String s)
throws java.lang.IllegalArgumentException
Integer.parseInt(String) method and returns its value.IllegalArgumentException
s - the input value
java.lang.IllegalArgumentException - if the argument is not correct
public static java.lang.Long resolveLong(java.lang.String s)
throws java.lang.IllegalArgumentException
Long.parseLong(String) method and returns its value.IllegalArgumentException
s - the input value
java.lang.IllegalArgumentException - if the argument is not correct
public static java.lang.Double resolveDouble(java.lang.String s)
throws java.lang.IllegalArgumentException
Double.parseDouble(String) method and returns its value.IllegalArgumentException
s - the input value
java.lang.IllegalArgumentException - if the argument is not correct
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||