Class MCRExportCollection

java.lang.Object
org.mycore.frontend.export.MCRExportCollection

public class MCRExportCollection extends Object
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 Details

    • MCRExportCollection

      public MCRExportCollection()
  • Method Details

    • setRootElement

      public void setRootElement(String elementName, String namespaceURI)
      Sets the name and namespace of the root element that wraps the collected data
    • add

      public void add(MCRBasket basketOfMODS) throws Exception
      Adds the contents of the given basket.
      Throws:
      Exception
    • add

      public void add(String uri)
      Adds XML data from the given URI.
    • add

      public void add(Element element)
      Adds the given XML element, making a clone.
    • getContent

      public MCRJDOMContent getContent()
      Returns the collected XML data as MCRJDOMContent.