public class EdmTime extends AbstractSimpleType
Implementation of the EDM simple type Time.
Arguably, this type is intended to represent a time of day, not an instance in time. The time value is interpreted and formatted as local time.
Formatting simply ignores the year, month, and day parts of time instances. Parsing returns a Calendar object where all unused fields have been cleared.
EDM_NAMESPACE, SYSTEM_NAMESPACE| Constructor and Description |
|---|
EdmTime() |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getDefaultType()
Returns the default Java type for this EDM simple type as described in
the documentation of
EdmSimpleType. |
static EdmTime |
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 EdmTime 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 AbstractSimpleTypeEdmSimpleTypeExceptionpublic String toUriLiteral(String literal)
EdmSimpleTypetoUriLiteral in interface EdmSimpleTypetoUriLiteral in class AbstractSimpleTypeliteral - the literal in default representationCopyright © 2020. All rights reserved.