public class AbstractGmdTransformer extends Object implements MetacardTransformer
Modifier and Type | Field and Description |
---|---|
static String |
GCO_PREFIX |
static String |
GML_PREFIX |
Constructor and Description |
---|
AbstractGmdTransformer(Supplier<com.thoughtworks.xstream.converters.Converter> converterSupplier) |
Modifier and Type | Method and Description |
---|---|
BinaryContent |
transform(Metacard metacard,
Map<String,Serializable> arguments)
Transforms the provided
Metacard into a BinaryContent |
public static final String GML_PREFIX
public static final String GCO_PREFIX
public AbstractGmdTransformer(Supplier<com.thoughtworks.xstream.converters.Converter> converterSupplier)
converterSupplier
- must be non-nullpublic BinaryContent transform(Metacard metacard, Map<String,Serializable> arguments) throws CatalogTransformerException
MetacardTransformer
Metacard
into a BinaryContent
transform
in interface MetacardTransformer
metacard
- the Metacard
to be transformedarguments
- any arguments to be used in the transformation. Keys are specific to each
MetacardTransformer
implementationBinaryContent
the result of the Metacard
transformationCatalogTransformerException
- if the Metacard
can not be transformedThis work is licensed under a Creative Commons Attribution 4.0 International License.