Package org.mycore.frontend.export
Class MCRExportCollection
java.lang.Object
org.mycore.frontend.export.MCRExportCollection
Represents a collection of XML data to export.
XML can be added by URI or by JDOM Element,
or the contents of a complete MCRBasket can be added.
The collected XML data is wrapped by a root element
thats name and namespace can be set.
- Author:
- Frank Lützenkirchen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds XML data from the given URI.void
Adds the given XML element, making a clone.void
Adds the contents of the given basket.Returns the collected XML data as MCRJDOMContent.void
setRootElement
(String elementName, String namespaceURI) Sets the name and namespace of the root element that wraps the collected data
-
Constructor Details
-
MCRExportCollection
public MCRExportCollection()
-
-
Method Details
-
setRootElement
Sets the name and namespace of the root element that wraps the collected data -
add
Adds the contents of the given basket.- Throws:
Exception
-
add
Adds XML data from the given URI. -
add
Adds the given XML element, making a clone. -
getContent
Returns the collected XML data as MCRJDOMContent.
-