public interface XMLCatalog
| Modifier and Type | Method and Description |
|---|---|
void |
includeEmpty(boolean includeEmpty)
Marshal elements with empty values to support
remove existing values during catalog merge.
|
String |
toJson()
Serializes the catalog to a JSON string.
|
Document |
toXml()
Serializes the catalog to a DOM.
|
void |
toXml(OutputStream out,
boolean format)
Writes an xml representation of this Catalog to a stream.
|
String |
toXmlString()
Writes an xml representation of this Catalog to a string.
|
Document toXml() throws ParserConfigurationException, TransformerException, IOException
ParserConfigurationException - if the xml parser environment is not correctly configuredTransformerException - if serialization of the metadata document failsIOException - if an error with catalog file handling occursString toJson() throws IOException
IOException - if an error with the catalog file handling occursString toXmlString() throws IOException
IOExceptionvoid toXml(OutputStream out, boolean format) throws IOException
out - The output streamformat - Whether to format the output for readability, or not (false gives better performance)IOExceptionvoid includeEmpty(boolean includeEmpty)
includeEmpty - Copyright © 2009–2020 Opencast Project. All rights reserved.