public class EdmDateTime extends AbstractSimpleType
EDM_NAMESPACE, SYSTEM_NAMESPACE| Constructor and Description |
|---|
EdmDateTime() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
appendFractionalSeconds(StringBuilder result,
int fractionalSeconds,
boolean isNano,
EdmFacets facets)
Appends the given milli- or nanoseconds to the given string builder, performance-optimized.
|
Class<?> |
getDefaultType()
Returns the default Java type for this EDM simple type as described in
the documentation of
EdmSimpleType. |
static EdmDateTime |
getInstance() |
protected <T> T |
internalValueOfString(String value,
EdmLiteralKind literalKind,
EdmFacets facets,
Class<T> returnType) |
protected <T> String |
internalValueToString(T value,
EdmLiteralKind literalKind,
EdmFacets facets) |
String |
toUriLiteral(String literal)
Converts default literal representation to URI literal representation.
|
equals, getKind, getName, getNamespace, hashCode, isCompatible, toString, validate, valueOfString, valueToStringpublic static EdmDateTime getInstance()
public Class<?> getDefaultType()
EdmSimpleTypeEdmSimpleType.protected <T> T internalValueOfString(String value, EdmLiteralKind literalKind, EdmFacets facets, Class<T> returnType) throws EdmSimpleTypeException
internalValueOfString in class AbstractSimpleTypeEdmSimpleTypeExceptionprotected <T> String internalValueToString(T value, EdmLiteralKind literalKind, EdmFacets facets) throws EdmSimpleTypeException
internalValueToString in class AbstractSimpleTypeEdmSimpleTypeExceptionprotected static void appendFractionalSeconds(StringBuilder result, int fractionalSeconds, boolean isNano, EdmFacets facets) throws IllegalArgumentException
result - a StringBuilderfractionalSeconds - fractional seconds (nonnegative and assumed to be in the valid range)isNano - whether the value is to be interpreted as nanoseconds (milliseconds if false)facets - the EDM facets containing an upper limit for decimal digits (optional, defaults to zero)IllegalArgumentException - if precision is not metpublic String toUriLiteral(String literal) throws EdmSimpleTypeException
EdmSimpleTypetoUriLiteral in interface EdmSimpleTypetoUriLiteral in class AbstractSimpleTypeliteral - the literal in default representationEdmSimpleTypeExceptionCopyright © 2020. All rights reserved.