Class CMSComponentReader

java.lang.Object
io.goobi.viewer.model.cms.pages.content.CMSComponentReader

public class CMSComponentReader extends Object
Reads CMS component definitions from XML template files and constructs CMSComponent instances including their JSF component references, content items, and metadata.
  • Constructor Details

    • CMSComponentReader

      public CMSComponentReader()
  • Method Details

    • read

      public CMSComponent read(Path templateFile) throws IOException, org.jdom2.JDOMException
      Reads a single component template XML file and constructs the CMSComponent described by it.
      Parameters:
      templateFile - path to the component template XML file
      Returns:
      the constructed CMSComponent
      Throws:
      IOException - if the file cannot be read
      org.jdom2.JDOMException - if the file cannot be parsed as XML