public class DatetimeConverterImpl extends Object implements DatetimeConverter
DatetimeConverter
. Its identifier is "http://art.uniroma2.it/coda/converters/datetime".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 |
---|
DatetimeConverterImpl() |
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:datetime) formatted according to the datetime
pattern (yyyy-MM-dd'T'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:datetime) formatted according to the datetime
pattern (yyyy-MM-dd'T'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:datetime) formatted according to the datetime
pattern (yyyy-MM-dd'T'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
DatetimeConverter
produceLiteral
in interface DatetimeConverter
ConverterConfigurationException
ConversionException
public org.eclipse.rdf4j.model.Literal produceLiteral(CODAContext ctx, String datatype, String lang, String value, String offset) throws ConverterConfigurationException, ConversionException
DatetimeConverter
produceLiteral
in interface DatetimeConverter
offset
- admitted values:
ConverterConfigurationException
ConversionException
public org.eclipse.rdf4j.model.Literal produceLiteral(CODAContext ctx, String datatype, String lang, String value, String offset, String additionalOffset) throws ConverterConfigurationException, ConversionException
DatetimeConverter
produceLiteral
in interface DatetimeConverter
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.