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 java.lang.Object implements FopFactoryConfig
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
FopFactoryBuilder.FopFactoryConfigImpl.ImageContextImpl
-
Field Summary
Fields Modifier and Type Field Description private boolean
accessibility
private java.net.URI
baseURI
private boolean
breakIndentInheritanceOnReferenceBoundary
private Configuration
cfg
private EnvironmentProfile
enviro
private boolean
hasStrictFOValidation
private boolean
hasStrictUserValidation
private InternalResourceResolver
hyphenationResourceResolver
private java.util.Map<java.lang.String,java.lang.String>
hyphPatNames
private java.util.Set<java.lang.String>
ignoredNamespaces
private org.apache.xmlgraphics.image.loader.ImageManager
imageManager
private boolean
isComplexScript
private boolean
keepEmptyTags
private LayoutManagerMaker
layoutManagerMaker
private java.lang.String
pageHeight
private java.lang.String
pageWidth
private boolean
preferRenderer
private boolean
simpleLineBreaking
private boolean
skipPagePositionOnlyAllowed
private float
sourceResolution
private boolean
tableBorderOverpaint
private float
targetResolution
-
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 Constructor Description FopFactoryConfigImpl(EnvironmentProfile enviro)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URI
getBaseURI()
The base URI from which URIs are resolved against.org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.FallbackResolver
getFallbackResolver()
Controls the mechanisms that are used in the event thatSource
used for resources couldn't be read.FontManager
getFontManager()
Returns the font manager.java.util.Map<java.lang.String,java.lang.String>
getHyphenationPatternNames()
InternalResourceResolver
getHyphenationResourceResolver()
java.util.Set<java.lang.String>
getIgnoredNamespaces()
org.apache.xmlgraphics.image.loader.ImageManager
getImageManager()
Returns the image manager.LayoutManagerMaker
getLayoutManagerMakerOverride()
Returns the overriding LayoutManagerMaker instance, if any.java.lang.String
getPageHeight()
Gets the default page-height to use as fallback, in case page-height="auto"java.lang.String
getPageWidth()
Gets the default page-width to use as fallback, in case page-width="auto"org.apache.xmlgraphics.io.ResourceResolver
getResourceResolver()
The URI resolver used through-out FOP for controlling all file access.float
getSourceResolution()
float
getTargetResolution()
Configuration
getUserConfig()
Returns the AvalonConfiguration
object.boolean
isAccessibilityEnabled()
Whether accessibility features are switched on.boolean
isBreakIndentInheritanceOnReferenceAreaBoundary()
boolean
isComplexScriptFeaturesEnabled()
boolean
isKeepEmptyTags()
boolean
isNamespaceIgnored(java.lang.String namespace)
Indicates whether a namespace URI is on the ignored list.boolean
isSimpleLineBreaking()
boolean
isSkipPagePositionOnlyAllowed()
boolean
isTableBorderOverpaint()
boolean
preferRenderer()
boolean
validateStrictly()
Returns whether FOP is strictly validating input XSLboolean
validateUserConfigStrictly()
Is the user configuration to be validated?
-
-
-
Field Detail
-
enviro
private final EnvironmentProfile enviro
-
imageManager
private final org.apache.xmlgraphics.image.loader.ImageManager imageManager
-
accessibility
private boolean accessibility
-
keepEmptyTags
private boolean keepEmptyTags
-
layoutManagerMaker
private LayoutManagerMaker layoutManagerMaker
-
baseURI
private java.net.URI baseURI
-
hyphenationResourceResolver
private InternalResourceResolver hyphenationResourceResolver
-
hasStrictFOValidation
private boolean hasStrictFOValidation
-
hasStrictUserValidation
private boolean hasStrictUserValidation
-
breakIndentInheritanceOnReferenceBoundary
private boolean breakIndentInheritanceOnReferenceBoundary
-
sourceResolution
private float sourceResolution
-
targetResolution
private float targetResolution
-
pageHeight
private java.lang.String pageHeight
-
pageWidth
private java.lang.String pageWidth
-
ignoredNamespaces
private java.util.Set<java.lang.String> ignoredNamespaces
-
cfg
private Configuration cfg
-
preferRenderer
private boolean preferRenderer
-
isComplexScript
private boolean isComplexScript
-
hyphPatNames
private java.util.Map<java.lang.String,java.lang.String> hyphPatNames
-
tableBorderOverpaint
private boolean tableBorderOverpaint
-
simpleLineBreaking
private boolean simpleLineBreaking
-
skipPagePositionOnlyAllowed
private boolean skipPagePositionOnlyAllowed
-
-
Constructor Detail
-
FopFactoryConfigImpl
FopFactoryConfigImpl(EnvironmentProfile enviro)
-
-
Method Detail
-
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
public LayoutManagerMaker 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
public java.net.URI getBaseURI()
The base URI from which URIs are resolved against.- Specified by:
getBaseURI
in interfaceFopFactoryConfig
- Returns:
- the base URI
-
getHyphenationResourceResolver
public InternalResourceResolver 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
public java.lang.String 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
public java.lang.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
public java.util.Set<java.lang.String> getIgnoredNamespaces()
- Specified by:
getIgnoredNamespaces
in interfaceFopFactoryConfig
- Returns:
- the set of namespaces that are ignored by FOP
-
isNamespaceIgnored
public boolean isNamespaceIgnored(java.lang.String namespace)
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
public Configuration 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:
RendererFactory.isRendererPreferred()
-
getFontManager
public FontManager 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
-
isSimpleLineBreaking
public boolean isSimpleLineBreaking()
- Specified by:
isSimpleLineBreaking
in interfaceFopFactoryConfig
-
isSkipPagePositionOnlyAllowed
public boolean isSkipPagePositionOnlyAllowed()
- Specified by:
isSkipPagePositionOnlyAllowed
in interfaceFopFactoryConfig
-
getHyphenationPatternNames
public java.util.Map<java.lang.String,java.lang.String> 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
-
-