public class ExternalIdentifierConverter extends IdentifierConverter<com.hp.hpl.jena.rdf.model.Resource>
String identifiers to external Resource
identifiers, by passing the input through the translation chain in one
direction or the other, then converting the results into a Resource.
Subclasses should override doRdfForward() and doRdfReverse().| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.base.Converter<String,String> |
forward |
protected com.google.common.base.Converter<String,String> |
reverse |
protected List<InternalIdentifierConverter> |
translationChain |
| Constructor and Description |
|---|
ExternalIdentifierConverter() |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulateTranslations()
We fold the list of translators once in each direction and store the
resulting calculation.
|
protected String |
doBackward(com.hp.hpl.jena.rdf.model.Resource a) |
protected com.hp.hpl.jena.rdf.model.Resource |
doForward(String a) |
protected String |
doRdfBackward(com.hp.hpl.jena.rdf.model.Resource a) |
protected com.hp.hpl.jena.rdf.model.Resource |
doRdfForward(String a) |
void |
setTranslationChain(List<InternalIdentifierConverter> chain) |
@Inject protected List<InternalIdentifierConverter> translationChain
protected com.hp.hpl.jena.rdf.model.Resource doForward(String a)
doForward in class com.google.common.base.Converter<String,com.hp.hpl.jena.rdf.model.Resource>protected String doBackward(com.hp.hpl.jena.rdf.model.Resource a)
doBackward in class com.google.common.base.Converter<String,com.hp.hpl.jena.rdf.model.Resource>protected com.hp.hpl.jena.rdf.model.Resource doRdfForward(String a)
protected String doRdfBackward(com.hp.hpl.jena.rdf.model.Resource a)
@PostConstruct public void accumulateTranslations()
public void setTranslationChain(List<InternalIdentifierConverter> chain)
chain - the translation chain to useCopyright © 2013–2014 DuraSpace, Inc.. All rights reserved.