public class SWEDataTypeUtils extends Object
Helper methods to read/write complex data types (e.g. unions)
Constructor and Description |
---|
SWEDataTypeUtils() |
Modifier and Type | Method and Description |
---|---|
String |
getDoubleOrTimeAsString(double doubleVal,
boolean useIso) |
String |
getStringValue(ScalarComponent component)
Retrieve string representation of value of component
This will convert to an ISO string for appropriate time components
|
double |
parseDoubleOrInf(String text)
Improves on Java Double.parseDouble() method to include +INF/-INF
This is needed because Java Infinity is not allowed by XML schema
|
double |
parseDoubleOrInfOrIsoTime(String text)
Allows parsing a double or ISO encoded date/time value
|
double |
parseIsoTime(String text) |
public final double parseDoubleOrInf(String text) throws NumberFormatException
text
- string to decode value fromNumberFormatException
- if argument doesn't contain a valid double stringpublic final double parseDoubleOrInfOrIsoTime(String text) throws NumberFormatException
text
- string to decode value fromNumberFormatException
public final double parseIsoTime(String text) throws ParseException
ParseException
public final String getStringValue(ScalarComponent component)
component
- public final String getDoubleOrTimeAsString(double doubleVal, boolean useIso)
Copyright © 2016 Sensia Software LLC. All rights reserved.