Class FOTreeBuilderContext


  • public class FOTreeBuilderContext
    extends java.lang.Object
    Context class providing information needed while building the FO tree.
    • Field Detail

      • idReferences

        private java.util.Set idReferences
        The current set of id's in the FO tree. This is used so we know if the FO tree contains duplicates.
      • propertyListMaker

        protected PropertyListMaker propertyListMaker
        The property list maker.
      • whiteSpaceHandler

        protected XMLWhiteSpaceHandler whiteSpaceHandler
        The XMLWhitespaceHandler for this tree
      • inMarker

        private boolean inMarker
        Indicates whether processing descendants of a marker
    • Constructor Detail

      • FOTreeBuilderContext

        public FOTreeBuilderContext()
    • Method Detail

      • getIDReferences

        public java.util.Set getIDReferences()
        Returns the set of ID references.
        Returns:
        the ID references
      • setPropertyListMaker

        public void setPropertyListMaker​(PropertyListMaker propertyListMaker)
        Set a new propertyListMaker.
        Parameters:
        propertyListMaker - the new PropertyListMaker to use
      • getXMLWhiteSpaceHandler

        public XMLWhiteSpaceHandler getXMLWhiteSpaceHandler()
        Return the XMLWhiteSpaceHandler
        Returns:
        the whiteSpaceHandler
      • switchMarkerContext

        protected void switchMarkerContext​(boolean inMarker)
        Switch to or from marker context (used by FOTreeBuilder when processing a marker)
        Parameters:
        inMarker - true if a marker is being processed; false otherwise
      • inMarker

        protected boolean inMarker()
        Check whether in marker context
        Returns:
        true if a marker is being processed