Package org.mycore.common.xml
Class MCRLayoutTransformerFactory
java.lang.Object
org.mycore.common.xml.MCRLayoutTransformerFactory
- Direct Known Subclasses:
MCRLayoutTransformerFoFactory
This class acts as a
MCRContentTransformer
factory for MCRLayoutService
.- Author:
- Thomas Scheffler (yagee), Sebastian Hofmann
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<MCRContentTransformer>
protected String[]
getStylesheets
(String id, String stylesheet) getTransformer
(String id) Returns the transformer with the given ID.protected boolean
isXMLOutput
(String outputMethod, MCRXSLTransformer transformerTest)
-
Field Details
-
NOOP_TRANSFORMER
-
-
Constructor Details
-
MCRLayoutTransformerFactory
public MCRLayoutTransformerFactory()
-
-
Method Details
-
getTransformer
Returns the transformer with the given ID. If the transformer is not instantiated yet, it is created and initialized. -
getConfiguredTransformer
-
getStylesheets
protected String[] getStylesheets(String id, String stylesheet) throws TransformerException, SAXException, ParserConfigurationException -
isXMLOutput
protected boolean isXMLOutput(String outputMethod, MCRXSLTransformer transformerTest) throws ParserConfigurationException, TransformerException, SAXException
-