Class CMSComponentReader
java.lang.Object
io.goobi.viewer.model.cms.pages.content.CMSComponentReader
Reads CMS component definitions from XML template files and constructs
CMSComponent
instances including their JSF component references, content items, and metadata.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReads a single component template XML file and constructs theCMSComponentdescribed by it.
-
Constructor Details
-
CMSComponentReader
public CMSComponentReader()
-
-
Method Details
-
read
Reads a single component template XML file and constructs theCMSComponentdescribed by it.- Parameters:
templateFile- path to the component template XML file- Returns:
- the constructed
CMSComponent - Throws:
IOException- if the file cannot be readorg.jdom2.JDOMException- if the file cannot be parsed as XML
-