public interface MetacardTransformer
Metacard to a provided BinaryContent. The purpose of a MetacardTransformer is to change the format of the
Metacard. For example if the Metacard content is in an XML format, then a MetacardTransformer implementation can be used to transform the Metacard content into an
HTML format.
Implementations of this interface must:
MetacardTransformer interface.
Include a Service property with name "id" (Constants.SERVICE_ID) and a
String value uniquely identifying the particular implementation
| Modifier and Type | Method and Description |
|---|---|
BinaryContent |
transform(Metacard metacard,
Map<String,Serializable> arguments)
Transforms the provided
Metacard into a BinaryContent |
BinaryContent transform(Metacard metacard, Map<String,Serializable> arguments) throws CatalogTransformerException
Metacard into a BinaryContentmetacard - 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.