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_URI
OSGI_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
TimeConverter
produceLiteral
in interface TimeConverter
ConverterConfigurationException
ConversionException
public org.eclipse.rdf4j.model.Literal produceLiteral(CODAContext ctx, String datatype, String lang, String value, String offset) throws ConverterConfigurationException, ConversionException
TimeConverter
produceLiteral
in interface TimeConverter
offset
- admitted values:
ConverterConfigurationException
ConversionException
- epublic org.eclipse.rdf4j.model.Literal produceLiteral(CODAContext ctx, String datatype, String lang, String value, String offset, String additionalOffset) throws ConverterConfigurationException, ConversionException
TimeConverter
produceLiteral
in interface TimeConverter
value
- 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 REUSEConverterConfigurationException
ConversionException
Copyright © 2022 ART Group, University of Rome, Tor Vergata. All rights reserved.