public class RegexpConverterImpl extends Object implements RegexpConverter
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 |
---|
RegexpConverterImpl() |
Modifier and Type | Method and Description |
---|---|
private int |
checkNumberForGroup(String numberString,
int groupCount) |
private String |
parseTemplateWithRegexResults(String template,
String[] groupValueArray) |
private String[] |
prepareGroupValue(String regex,
String text) |
org.eclipse.rdf4j.model.Literal |
produceLiteral(CODAContext ctx,
String datatype,
String lang,
String value,
String regex,
String template)
Produce a Literal (with the given language and/or datatype) by replacing che placeholders in the input text with the values coming from the feature path
and the input args
|
org.eclipse.rdf4j.model.IRI |
produceURI(CODAContext ctx,
String value,
String regex,
String template)
Produce an IRI by replacing che placeholders in the input text with the values coming from the feature path
and the input args
|
public static final String CONVERTER_URI
public org.eclipse.rdf4j.model.IRI produceURI(CODAContext ctx, String value, String regex, String template) throws ConverterException
RegexpConverter
produceURI
in interface RegexpConverter
ConverterConfigurationException
ConverterException
public org.eclipse.rdf4j.model.Literal produceLiteral(CODAContext ctx, String datatype, String lang, String value, String regex, String template) throws ConverterException
RegexpConverter
produceLiteral
in interface RegexpConverter
ConverterConfigurationException
ConverterException
private String parseTemplateWithRegexResults(String template, String[] groupValueArray)
private int checkNumberForGroup(String numberString, int groupCount)
Copyright © 2022 ART Group, University of Rome, Tor Vergata. All rights reserved.