public class TimeConverterImpl extends Object implements TimeConverter
TimeConverter contract. Its identifier is "http://art.uniroma2.it/coda/converters/time".| Modifier and Type | Field and Description |
|---|---|
static String |
CONVERTER_URI |
CONTRACT_URIOSGI_SERVICE_PROPERTY_CONTRACT, OSGI_SERVICE_PROPERTY_CONVERTER, STATIC_FIELD_CONTRACT_URI, STATIC_FIELD_CONVERTER_URI| Constructor and Description |
|---|
TimeConverterImpl() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.rdf4j.model.Literal |
produceLiteral(CODAContext ctx,
String datatype,
String lang,
String value)
Gets a value and returns it as typed literal (xsd:time) formatted according to the time pattern
(HH:mm:ss).
|
org.eclipse.rdf4j.model.Literal |
produceLiteral(CODAContext ctx,
String datatype,
String lang,
String value,
String offset)
Gets a value and returns it as typed literal (xsd:time) formatted according to the time pattern
(HH:mm:ss) and with the given offset.
|
org.eclipse.rdf4j.model.Literal |
produceLiteral(CODAContext ctx,
String datatype,
String lang,
String value,
String offset,
String additionalOffset)
Gets a value and returns it as typed literal (xsd:time) formatted according to the time pattern
(HH:mm:ss) with the given offset added to the offset of the input.
|
public static final String CONVERTER_URI
public org.eclipse.rdf4j.model.Literal produceLiteral(CODAContext ctx, String datatype, String lang, String value) throws ConverterConfigurationException, ConversionException
TimeConverterproduceLiteral in interface TimeConverterConverterConfigurationExceptionConversionExceptionpublic org.eclipse.rdf4j.model.Literal produceLiteral(CODAContext ctx, String datatype, String lang, String value, String offset) throws ConverterConfigurationException, ConversionException
TimeConverterproduceLiteral in interface TimeConverteroffset - admitted values:
ConverterConfigurationExceptionConversionException - epublic org.eclipse.rdf4j.model.Literal produceLiteral(CODAContext ctx, String datatype, String lang, String value, String offset, String additionalOffset) throws ConverterConfigurationException, ConversionException
TimeConverterproduceLiteral in interface TimeConvertervalue - value of the featurePath to convertoffset - admitted value:
additionalOffset - offset expressed in format +/-HH:mm that is added to the original offset.
This parameter is compatible only when offset parameter is REUSEConverterConfigurationExceptionConversionExceptionCopyright © 2022 ART Group, University of Rome, Tor Vergata. All rights reserved.