Class AttributeMetacardTransformer
java.lang.Object
ddf.catalog.transformer.attribute.AttributeMetacardTransformer
- All Implemented Interfaces:
ddf.catalog.transform.MetacardTransformer
public class AttributeMetacardTransformer
extends Object
implements ddf.catalog.transform.MetacardTransformer
Given a
Metacard, this class can be used to return the contents of the Metacard
attributes. Supported formats are String and byte[]- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeMetacardTransformer(String attributeName, String id, javax.activation.MimeType mimeType) Constructor for this transformer -
Method Summary
Modifier and TypeMethodDescriptiontoString()ddf.catalog.data.BinaryContenttransform(ddf.catalog.data.Metacard metacard, Map<String, Serializable> arguments)
-
Constructor Details
-
AttributeMetacardTransformer
public AttributeMetacardTransformer(String attributeName, String id, javax.activation.MimeType mimeType) Constructor for this transformer- Parameters:
attributeName- The name of the attribute that will be used to retrieve the value within theMetacardid- theMetacardTransformeridmimeType- the MIME type that should be returned
-
-
Method Details
-
transform
public ddf.catalog.data.BinaryContent transform(ddf.catalog.data.Metacard metacard, Map<String, Serializable> arguments) throws ddf.catalog.transform.CatalogTransformerException- Specified by:
transformin interfaceddf.catalog.transform.MetacardTransformer- Throws:
ddf.catalog.transform.CatalogTransformerException
-
toString
-
getAttributeName
-