public class MetacardMarshaller extends Object
Constructor and Description |
---|
MetacardMarshaller(Parser parser) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getRegistryPackageAsInputStream(RegistryPackageType registryPackage)
Turns the passed in registryPackage into an InputStream of xml
|
String |
getRegistryPackageAsXml(RegistryPackageType registryPackage)
Converts the RegistryPackageType into an xml string
|
RegistryPackageType |
getRegistryPackageFromMetacard(Metacard mcard)
Converts the metacards metadata into a RegistryPackageType object
|
void |
setMetacardRegistryPackage(Metacard metacard,
RegistryPackageType registryPackage)
Converts the registryPackage into xml and puts it in the metacards metadata field
|
public MetacardMarshaller(Parser parser)
public RegistryPackageType getRegistryPackageFromMetacard(Metacard mcard) throws ParserException
mcard
- A metacard with ebrim metadataParserException
public String getRegistryPackageAsXml(RegistryPackageType registryPackage) throws ParserException
registryPackage
- Registry package to convertParserException
public InputStream getRegistryPackageAsInputStream(RegistryPackageType registryPackage) throws ParserException
registryPackage
- RegistryPackageType to create the input stream fromParserException
public void setMetacardRegistryPackage(Metacard metacard, RegistryPackageType registryPackage) throws ParserException
metacard
- Metacards to put ebrim xml intoregistryPackage
- RegistryPackage to put into metacardParserException
This work is licensed under a Creative Commons Attribution 4.0 International License.