Package org.apache.fop.apps
Class FopFactoryBuilder.FopFactoryConfigImpl
java.lang.Object
org.apache.fop.apps.FopFactoryBuilder.FopFactoryConfigImpl
- All Implemented Interfaces:
FopFactoryConfig
- Enclosing class:
- FopFactoryBuilder
public static class FopFactoryBuilder.FopFactoryConfigImpl
extends Object
implements FopFactoryConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private URI
private boolean
private Configuration
private final EnvironmentProfile
private boolean
private boolean
private InternalResourceResolver
private final org.apache.xmlgraphics.image.loader.ImageManager
private boolean
private boolean
private LayoutManagerMaker
private String
private String
private boolean
private float
private boolean
private float
Fields inherited from interface org.apache.fop.apps.FopFactoryConfig
DEFAULT_BREAK_INDENT_INHERITANCE, DEFAULT_PAGE_HEIGHT, DEFAULT_PAGE_WIDTH, DEFAULT_SOURCE_RESOLUTION, DEFAULT_STRICT_FO_VALIDATION, DEFAULT_STRICT_USERCONFIG_VALIDATION, DEFAULT_TARGET_RESOLUTION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe base URI from which URIs are resolved against.org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.FallbackResolver
Controls the mechanisms that are used in the event thatSource
used for resources couldn't be read.Returns the font manager.org.apache.xmlgraphics.image.loader.ImageManager
Returns the image manager.Returns the overriding LayoutManagerMaker instance, if any.Gets the default page-height to use as fallback, in case page-height="auto"Gets the default page-width to use as fallback, in case page-width="auto"org.apache.xmlgraphics.io.ResourceResolver
The URI resolver used through-out FOP for controlling all file access.float
float
Returns the AvalonConfiguration
object.boolean
Whether accessibility features are switched on.boolean
boolean
boolean
boolean
isNamespaceIgnored
(String namespace) Indicates whether a namespace URI is on the ignored list.boolean
boolean
boolean
Returns whether FOP is strictly validating input XSLboolean
Is the user configuration to be validated?
-
Field Details
-
enviro
-
imageManager
private final org.apache.xmlgraphics.image.loader.ImageManager imageManager -
accessibility
private boolean accessibility -
keepEmptyTags
private boolean keepEmptyTags -
layoutManagerMaker
-
baseURI
-
hyphenationResourceResolver
-
hasStrictFOValidation
private boolean hasStrictFOValidation -
hasStrictUserValidation
private boolean hasStrictUserValidation -
breakIndentInheritanceOnReferenceBoundary
private boolean breakIndentInheritanceOnReferenceBoundary -
sourceResolution
private float sourceResolution -
targetResolution
private float targetResolution -
pageHeight
-
pageWidth
-
ignoredNamespaces
-
cfg
-
preferRenderer
private boolean preferRenderer -
isComplexScript
private boolean isComplexScript -
hyphPatNames
-
tableBorderOverpaint
private boolean tableBorderOverpaint
-
-
Constructor Details
-
FopFactoryConfigImpl
FopFactoryConfigImpl(EnvironmentProfile enviro)
-
-
Method Details
-
isAccessibilityEnabled
public boolean isAccessibilityEnabled()Whether accessibility features are switched on.- Specified by:
isAccessibilityEnabled
in interfaceFopFactoryConfig
- Returns:
- true if accessibility features have been requested
-
isKeepEmptyTags
public boolean isKeepEmptyTags()- Specified by:
isKeepEmptyTags
in interfaceFopFactoryConfig
-
getLayoutManagerMakerOverride
Returns the overriding LayoutManagerMaker instance, if any.- Specified by:
getLayoutManagerMakerOverride
in interfaceFopFactoryConfig
- Returns:
- the overriding LayoutManagerMaker or null
-
getResourceResolver
public org.apache.xmlgraphics.io.ResourceResolver getResourceResolver()The URI resolver used through-out FOP for controlling all file access.- Specified by:
getResourceResolver
in interfaceFopFactoryConfig
- Returns:
- the URI resolver
-
getBaseURI
The base URI from which URIs are resolved against.- Specified by:
getBaseURI
in interfaceFopFactoryConfig
- Returns:
- the base URI
-
getHyphenationResourceResolver
- Specified by:
getHyphenationResourceResolver
in interfaceFopFactoryConfig
-
validateStrictly
public boolean validateStrictly()Returns whether FOP is strictly validating input XSL- Specified by:
validateStrictly
in interfaceFopFactoryConfig
- Returns:
- true of strict validation turned on, false otherwise
-
validateUserConfigStrictly
public boolean validateUserConfigStrictly()Is the user configuration to be validated?- Specified by:
validateUserConfigStrictly
in interfaceFopFactoryConfig
- Returns:
- if the user configuration should be validated
-
isBreakIndentInheritanceOnReferenceAreaBoundary
public boolean isBreakIndentInheritanceOnReferenceAreaBoundary()- Specified by:
isBreakIndentInheritanceOnReferenceAreaBoundary
in interfaceFopFactoryConfig
- Returns:
- true if the indent inheritance should be broken when crossing reference area boundaries (for more info, see the javadoc for the relative member variable)
-
getSourceResolution
public float getSourceResolution()- Specified by:
getSourceResolution
in interfaceFopFactoryConfig
- Returns:
- the resolution for resolution-dependent input
-
getTargetResolution
public float getTargetResolution()- Specified by:
getTargetResolution
in interfaceFopFactoryConfig
- Returns:
- the resolution for resolution-dependent output
-
getPageHeight
Gets the default page-height to use as fallback, in case page-height="auto"- Specified by:
getPageHeight
in interfaceFopFactoryConfig
- Returns:
- the page-height, as a String
-
getPageWidth
Gets the default page-width to use as fallback, in case page-width="auto"- Specified by:
getPageWidth
in interfaceFopFactoryConfig
- Returns:
- the page-width, as a String
-
getIgnoredNamespaces
- Specified by:
getIgnoredNamespaces
in interfaceFopFactoryConfig
- Returns:
- the set of namespaces that are ignored by FOP
-
isNamespaceIgnored
Indicates whether a namespace URI is on the ignored list.- Specified by:
isNamespaceIgnored
in interfaceFopFactoryConfig
- Parameters:
namespace
- the namespace URI- Returns:
- true if the namespace is ignored by FOP
-
getUserConfig
Returns the AvalonConfiguration
object.- Specified by:
getUserConfig
in interfaceFopFactoryConfig
- Returns:
- the Avalon config object
-
preferRenderer
public boolean preferRenderer()- Specified by:
preferRenderer
in interfaceFopFactoryConfig
- See Also:
-
getFontManager
Returns the font manager.- Specified by:
getFontManager
in interfaceFopFactoryConfig
- Returns:
- the font manager
-
getImageManager
public org.apache.xmlgraphics.image.loader.ImageManager getImageManager()Returns the image manager.- Specified by:
getImageManager
in interfaceFopFactoryConfig
- Returns:
- the image manager
-
isComplexScriptFeaturesEnabled
public boolean isComplexScriptFeaturesEnabled()- Specified by:
isComplexScriptFeaturesEnabled
in interfaceFopFactoryConfig
-
isTableBorderOverpaint
public boolean isTableBorderOverpaint()- Specified by:
isTableBorderOverpaint
in interfaceFopFactoryConfig
-
getHyphenationPatternNames
- Specified by:
getHyphenationPatternNames
in interfaceFopFactoryConfig
- Returns:
- the hyphenation pattern names
-
getFallbackResolver
public org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.FallbackResolver getFallbackResolver()Description copied from interface:FopFactoryConfig
Controls the mechanisms that are used in the event thatSource
used for resources couldn't be read.- Specified by:
getFallbackResolver
in interfaceFopFactoryConfig
- Returns:
- the fallback resolver
-