Class MCRBasketXMLBuilder

java.lang.Object
org.mycore.frontend.basket.MCRBasketXMLBuilder

public class MCRBasketXMLBuilder extends Object
Builds xml representations of a basket and its entries.
Author:
Frank Lützenkirchen
  • Constructor Details

    • MCRBasketXMLBuilder

      public MCRBasketXMLBuilder(boolean addContent)
      Creates a new XML builder.
      Parameters:
      addContent - if true, the XML data representing the objects in basket entries is included too.
  • Method Details

    • buildXML

      public Element buildXML(MCRBasketEntry entry)
      Builds an XML representation of a basket entry. Note that setContent() or resolveContent() must have been called before if XML content of the basket entry's object should be included.
    • buildXML

      public Document buildXML(MCRBasket basket)
      Builds an XML representation of a basket and its entries.