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:
  • MetacardTransformer
  • 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 the Metacard
      id - the MetacardTransformer id
      mimeType - 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:
      transform in interface ddf.catalog.transform.MetacardTransformer
      Throws:
      ddf.catalog.transform.CatalogTransformerException
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAttributeName

      public String getAttributeName()