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() |
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) |
equals, getKind, getName, getNamespace, hashCode, isCompatible, toString, validate, valueOfString, valueToStringpublic static EdmTime getInstance()
public Class<?> getDefaultType()
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)
toUriLiteral in interface EdmSimpleTypetoUriLiteral in class AbstractSimpleTypeCopyright © 2013-2023 The Apache Software Foundation. All Rights Reserved.