public interface MetacardMarshaller
Modifier and Type | Method and Description |
---|---|
String |
marshal(Metacard metacard)
|
String |
marshal(Metacard metacard,
Map<String,Serializable> arguments)
|
String marshal(Metacard metacard) throws org.xmlpull.v1.XmlPullParserException, IOException, CatalogTransformerException
Metacard
into an XML String
.
Convenience method that always produces xml string with XML declaration prepended.
metacard
- the Metacard instance to transform.org.xmlpull.v1.XmlPullParserException
IOException
CatalogTransformerException
String marshal(Metacard metacard, Map<String,Serializable> arguments) throws org.xmlpull.v1.XmlPullParserException, IOException, CatalogTransformerException
Metacard
into an XML String
.
Use the map of arguments to configure the xml output. For example, to turn off the XML
declaration, do arguments.put("OMIT_XML_DECLARATION", Boolean.TRUE)
.
metacard
- the Metacard instance to transform.arguments
- map of arguments.org.xmlpull.v1.XmlPullParserException
IOException
CatalogTransformerException
This work is licensed under a Creative Commons Attribution 4.0 International License.