public class XsltMetacardTransformer extends AbstractXsltTransformer implements MetacardTransformer
context, DEFAULT_MIME_TYPE, MIME_TYPE_HEADER_NAME, mimeType, templates
Constructor and Description |
---|
XsltMetacardTransformer() |
XsltMetacardTransformer(org.osgi.framework.Bundle bundle,
String xslFile) |
Modifier and Type | Method and Description |
---|---|
String |
getDataItemStatus()
Gets the dataItemStatus value.
|
void |
setDataItemStatus(String dataItemStatus)
Sets the dataItemStatus value that is passed to the translation and put in the dataItemStatus
element.
|
BinaryContent |
transform(Metacard metacard,
Map<String,Serializable> arguments)
Transforms the provided
Metacard into a BinaryContent |
init, init
public XsltMetacardTransformer()
public XsltMetacardTransformer(org.osgi.framework.Bundle bundle, String xslFile)
public 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 transformedpublic String getDataItemStatus()
public void setDataItemStatus(String dataItemStatus)
dataItemStatus
- This work is licensed under a Creative Commons Attribution 4.0 International License.