public final class DatatypeConverter extends Object
Constructor and Description |
---|
DatatypeConverter() |
Modifier and Type | Method and Description |
---|---|
static Boolean |
parseBoolean(String value)
Parse a Boolean.
|
static LocalDateTime |
parseDateTime(String value)
Parse a date time value.
|
static Double |
parseDouble(String value)
Parse a double value.
|
static String |
parseString(String value)
Parse string.
|
static LocalTime |
parseTime(String value)
Parse a time value.
|
static UUID |
parseUUID(String value)
Convert the Primavera string representation of a UUID into a Java UUID instance.
|
static String |
printBoolean(Boolean value)
Print a Boolean.
|
static String |
printDateTime(LocalDateTime value)
Print a date time value.
|
static String |
printDouble(Double value)
Print a double value.
|
static String |
printString(String value)
Format string for output.
|
static String |
printTime(LocalTime value)
Print a time value.
|
static String |
printUUID(UUID guid)
Retrieve a UUID in the form required by Primavera PMXML.
|
public static final UUID parseUUID(String value)
value
- Primavera UUIDpublic static String printUUID(UUID guid)
guid
- UUID instancepublic static final String printDateTime(LocalDateTime value)
value
- date time valuepublic static final LocalDateTime parseDateTime(String value)
value
- string representationpublic static final String printTime(LocalTime value)
value
- time valuepublic static final LocalTime parseTime(String value)
value
- time valuepublic static final Boolean parseBoolean(String value)
value
- value as textpublic static final String printBoolean(Boolean value)
value
- Boolean valuepublic static final Double parseDouble(String value)
value
- Double value as a stringpublic static final String printDouble(Double value)
value
- double valuepublic static final String printString(String value)
value
- string valueCopyright © 2000–2024 Packwood Software. All rights reserved.