Package org.apache.fop.fo
Class FOTreeBuilderContext
- java.lang.Object
-
- org.apache.fop.fo.FOTreeBuilderContext
-
public class FOTreeBuilderContext extends java.lang.Object
Context class providing information needed while building the FO tree.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set
idReferences
The current set of id's in the FO tree.private boolean
inMarker
Indicates whether processing descendants of a markerprotected PropertyListMaker
propertyListMaker
The property list maker.protected XMLWhiteSpaceHandler
whiteSpaceHandler
The XMLWhitespaceHandler for this tree
-
Constructor Summary
Constructors Constructor Description FOTreeBuilderContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set
getIDReferences()
Returns the set of ID references.PropertyListMaker
getPropertyListMaker()
Return the propertyListMaker.XMLWhiteSpaceHandler
getXMLWhiteSpaceHandler()
Return the XMLWhiteSpaceHandlerprotected boolean
inMarker()
Check whether in marker contextvoid
setPropertyListMaker(PropertyListMaker propertyListMaker)
Set a new propertyListMaker.protected void
switchMarkerContext(boolean inMarker)
Switch to or from marker context (used by FOTreeBuilder when processing a marker)
-
-
-
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
-
-
Method Detail
-
getIDReferences
public java.util.Set getIDReferences()
Returns the set of ID references.- Returns:
- the ID references
-
getPropertyListMaker
public PropertyListMaker getPropertyListMaker()
Return the propertyListMaker.- Returns:
- the currently active
PropertyListMaker
-
setPropertyListMaker
public void setPropertyListMaker(PropertyListMaker propertyListMaker)
Set a new propertyListMaker.- Parameters:
propertyListMaker
- the newPropertyListMaker
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
-
-