public class DataTypeTools extends Object
| Constructor and Description |
|---|
DataTypeTools(Tools tools) |
| Modifier and Type | Method and Description |
|---|---|
Calendar |
convertStringToCalendar(String date) |
Date |
convertStringToDate(String date) |
String |
decodeAmount(org.openapplications.oagis_segments.AMOUNT inforNumber) |
String |
decodeBoolean(Boolean value) |
String |
decodeBoolean(String value)
Decode a boolean
|
Date |
decodeInforDate(org.openapplications.oagis_segments.DATETIME inforDateTime) |
String |
decodeQuantity(org.openapplications.oagis_segments.QUANTITY inforNumber) |
org.openapplications.oagis_segments.AMOUNT |
encodeAmount(String numberValue,
String numberLabel) |
BigInteger |
encodeBigInteger(String value,
String valueLabel) |
String |
encodeBoolean(String value,
BooleanType returnType)
Encodes the boolean according to the type received
|
double |
encodeDouble(String doubleValue,
String longLabel) |
org.openapplications.oagis_segments.DATETIME |
encodeInforDate(Date dateValue,
String dateLabel) |
long |
encodeLong(String longValue,
String longLabel) |
org.openapplications.oagis_segments.QUANTITY |
encodeQuantity(String numberValue,
String numberLabel) |
org.openapplications.oagis_segments.DATETIME |
formatDate(String dateValue,
String dateLabel) |
static boolean |
isEmpty(String value) |
static boolean |
isFalseValue(String value) |
static boolean |
isNotEmpty(String value) |
static boolean |
isTrueValue(String value) |
String |
retrieveDate(org.openapplications.oagis_segments.DATETIME inforDateTime) |
String |
retrieveDate(org.openapplications.oagis_segments.DATETIME inforDateTime,
String dateFormat) |
public DataTypeTools(Tools tools)
public org.openapplications.oagis_segments.DATETIME encodeInforDate(Date dateValue, String dateLabel) throws InforException
InforExceptionpublic org.openapplications.oagis_segments.DATETIME formatDate(String dateValue, String dateLabel) throws InforException
InforExceptionpublic String retrieveDate(org.openapplications.oagis_segments.DATETIME inforDateTime, String dateFormat)
public String retrieveDate(org.openapplications.oagis_segments.DATETIME inforDateTime)
public Date decodeInforDate(org.openapplications.oagis_segments.DATETIME inforDateTime)
public org.openapplications.oagis_segments.QUANTITY encodeQuantity(String numberValue, String numberLabel) throws InforException
InforExceptionpublic String decodeQuantity(org.openapplications.oagis_segments.QUANTITY inforNumber)
public org.openapplications.oagis_segments.AMOUNT encodeAmount(String numberValue, String numberLabel) throws InforException
InforExceptionpublic String decodeAmount(org.openapplications.oagis_segments.AMOUNT inforNumber)
public long encodeLong(String longValue, String longLabel) throws InforException
InforExceptionpublic double encodeDouble(String doubleValue, String longLabel) throws InforException
InforExceptionpublic BigInteger encodeBigInteger(String value, String valueLabel) throws InforException
InforExceptionpublic String encodeBoolean(String value, BooleanType returnType)
value - Boolean receivedreturnType - Type of return that should be usedpublic String decodeBoolean(String value)
value - Value to be converted as a booleanpublic static boolean isTrueValue(String value)
public static boolean isFalseValue(String value)
public static boolean isEmpty(String value)
public static boolean isNotEmpty(String value)
Copyright © 2019 CERN European Organization for Nuclear Research. All rights reserved.