Class EdmTime
java.lang.Object
org.apache.olingo.odata2.core.edm.AbstractSimpleType
org.apache.olingo.odata2.core.edm.EdmTime
- All Implemented Interfaces:
EdmNamed,EdmSimpleType,EdmType
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.
-
Field Summary
Fields inherited from interface org.apache.olingo.odata2.api.edm.EdmSimpleType
EDM_NAMESPACE, SYSTEM_NAMESPACE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?> static EdmTimeprotected <T> TinternalValueOfString(String value, EdmLiteralKind literalKind, EdmFacets facets, Class<T> returnType) protected <T> StringinternalValueToString(T value, EdmLiteralKind literalKind, EdmFacets facets) toUriLiteral(String literal) Methods inherited from class org.apache.olingo.odata2.core.edm.AbstractSimpleType
equals, getKind, getName, getNamespace, hashCode, isCompatible, toString, validate, valueOfString, valueOfString, valueToObjectKeyString, valueToString
-
Constructor Details
-
EdmTime
public EdmTime()
-
-
Method Details
-
getInstance
-
getDefaultType
-
internalValueOfString
protected <T> T internalValueOfString(String value, EdmLiteralKind literalKind, EdmFacets facets, Class<T> returnType) throws EdmSimpleTypeException - Specified by:
internalValueOfStringin classAbstractSimpleType- Throws:
EdmSimpleTypeException
-
internalValueToString
protected <T> String internalValueToString(T value, EdmLiteralKind literalKind, EdmFacets facets) throws EdmSimpleTypeException - Specified by:
internalValueToStringin classAbstractSimpleType- Throws:
EdmSimpleTypeException
-
toUriLiteral
- Specified by:
toUriLiteralin interfaceEdmSimpleType- Overrides:
toUriLiteralin classAbstractSimpleType
-