|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.di.connector.maximo.util.typeconverter.BooleanConverter
public final class BooleanConverter
Maximo Type Converter for Boolean
types.
Boolean
Method Summary | |
---|---|
static BooleanConverter |
getInstance()
Returns an instance of BooleanConverter . |
String |
toString(Object value)
Returns a String object representing the specified value
. |
Object |
valueOf(String value)
Returns a Boolean object representing the specified
value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BooleanConverter getInstance()
BooleanConverter
.
BooleanConverter
public String toString(Object value) throws MxConnTypeConvertionException
String
object representing the specified value
.
Value | Returns |
---|---|
Boolean.TRUE , "1" , "true"
"TRUE" |
"1" |
Boolean.FALSE , "0" , "false"
"FALSE" |
"0" |
null, empty string , white
spaces |
empty string |
toString
in interface IMxTypeConverter
value
- value to be converted
String
object representing the specified value
MxConnTypeConvertionException
- if the specified value can not be convertedpublic Object valueOf(String value) throws MxConnTypeConvertionException
Boolean
object representing the specified
value.
Value | Returns |
---|---|
"1" , "true" "TRUE" |
Boolean.TRUE |
"0" , "false" "FALSE" |
Boolean.FALSE |
null, empty string , white
spaces |
null |
valueOf
in interface IMxTypeConverter
value
- value to be converted
Boolean
object representing the specified value
MxConnTypeConvertionException
- if the specified value can not be converted
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |