public class PropertyJsonMetacardTransformer extends Object implements MetacardTransformer
| Modifier and Type | Field and Description |
|---|---|
protected static MimeType |
DEFAULT_MIME_TYPE |
static String |
ID |
protected static String |
METACARD_TYPE_PROPERTY_KEY |
| Constructor and Description |
|---|
PropertyJsonMetacardTransformer() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
convertToJSON(Metacard metacard) |
static Map<String,Object> |
convertToJSON(Metacard metacard,
List<AttributeType.AttributeFormat> dontInclude) |
String |
toString() |
BinaryContent |
transform(Metacard metacard,
Map<String,Serializable> arguments)
Transforms the provided
Metacard into a BinaryContent |
protected static final String METACARD_TYPE_PROPERTY_KEY
protected static final MimeType DEFAULT_MIME_TYPE
public static final String ID
public static Map<String,Object> convertToJSON(Metacard metacard) throws CatalogTransformerException
CatalogTransformerExceptionpublic static Map<String,Object> convertToJSON(Metacard metacard, List<AttributeType.AttributeFormat> dontInclude) throws CatalogTransformerException
CatalogTransformerExceptionpublic BinaryContent transform(Metacard metacard, Map<String,Serializable> arguments) throws CatalogTransformerException
MetacardTransformerMetacard into a BinaryContenttransform in interface MetacardTransformermetacard - 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.