Package it.smartio.docs.fop.config
Class FoContext
- java.lang.Object
-
- it.smartio.docs.fop.config.FoContext
-
public class FoContext extends java.lang.ObjectTheFoContextclass.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FoBookmarkaddBookmark(java.lang.String id)Add a bookmark by id.FoFlowcreateFlow(java.lang.String id, java.lang.String name, boolean initial, java.util.Properties properties)Set the supplier that creates aFoFlow.org.apache.fop.apps.FopFactorygetFactory()Create aFopFactoryfor the currentFoContext.static FoContextparse(java.lang.String config)Parses the configuration from the file.FoNodepop()Pop the topFoNode.FoNodepush(FoNode node)Push the aFoNode.FoNodetop()Get the topFoNode.java.lang.StringtoString()Builds the theFoRoot.
-
-
-
Method Detail
-
getFactory
public final org.apache.fop.apps.FopFactory getFactory()
Create aFopFactoryfor the currentFoContext.
-
addBookmark
public final FoBookmark addBookmark(java.lang.String id)
Add a bookmark by id.- Parameters:
id-
-
createFlow
public final FoFlow createFlow(java.lang.String id, java.lang.String name, boolean initial, java.util.Properties properties)
Set the supplier that creates aFoFlow.- Parameters:
id-name-
-
toString
public final java.lang.String toString()
Builds the theFoRoot.- Overrides:
toStringin classjava.lang.Object
-
parse
public static FoContext parse(java.lang.String config) throws java.io.IOException
Parses the configuration from the file.- Parameters:
config-- Throws:
java.io.IOException
-
-