public class ConverterRepository extends AbstractComponentRepository<ConverterKey,Converter<?,?>,ConverterFactory> implements Constructable
| Constructor and Description |
|---|
ConverterRepository() |
| Modifier and Type | Method and Description |
|---|---|
<T,F> Converter<T,F> |
getConverter(ConverterKey key) |
<T,F> Converter<T,F> |
getConverter(String fromNamespace,
String toNamespace) |
Set<String> |
getFromNamespaceConverterTo(String toNamespace)
Get all namespaces for which a converter is available to convert from requested format to default format
|
Set<String> |
getToNamespaceConverterFrom(String fromNamespace)
Get all namespaces for which a converter is available to convert to
requested format to default format
|
boolean |
hasConverter(ConverterKey key) |
boolean |
hasConverter(String fromNamespace,
String toNamespace)
Checks if a converter is available to convert the stored object from the
default format to the requested format
|
void |
init() |
void |
setComponentFactories(Optional<Collection<ConverterFactory>> componentFactories) |
void |
setComponents(Optional<Collection<Converter<?,?>>> components) |
getProviders, getProviders, getUniqueProviders, getUniqueProviders@Inject public void setComponentFactories(Optional<Collection<ConverterFactory>> componentFactories)
@Inject public void setComponents(Optional<Collection<Converter<?,?>>> components)
public void init()
init in interface Constructablepublic <T,F> Converter<T,F> getConverter(ConverterKey key)
public Set<String> getFromNamespaceConverterTo(String toNamespace)
toNamespace - Requested formatpublic Set<String> getToNamespaceConverterFrom(String fromNamespace)
fromNamespace - Requested formatpublic boolean hasConverter(String fromNamespace, String toNamespace)
fromNamespace - Default formattoNamespace - Requested fromatpublic boolean hasConverter(ConverterKey key)
Copyright © 2015–2020 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.