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
-
-
Field Summary
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URIgetBaseURI()The base URI from which URIs are resolved against.org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.FallbackResolvergetFallbackResolver()Controls the mechanisms that are used in the event thatSourceused for resources couldn't be read.FontManagergetFontManager()Returns the font manager.java.util.Map<java.lang.String,java.lang.String>getHyphenationPatternNames()InternalResourceResolvergetHyphenationResourceResolver()java.util.Set<java.lang.String>getIgnoredNamespaces()org.apache.xmlgraphics.image.loader.ImageManagergetImageManager()Returns the image manager.LayoutManagerMakergetLayoutManagerMakerOverride()Returns the overriding LayoutManagerMaker instance, if any.java.lang.StringgetPageHeight()Gets the default page-height to use as fallback, in case page-height="auto"java.lang.StringgetPageWidth()Gets the default page-width to use as fallback, in case page-width="auto"org.apache.xmlgraphics.io.ResourceResolvergetResourceResolver()The URI resolver used through-out FOP for controlling all file access.floatgetSourceResolution()floatgetTargetResolution()ConfigurationgetUserConfig()Returns the AvalonConfigurationobject.booleanisAccessibilityEnabled()Whether accessibility features are switched on.booleanisBreakIndentInheritanceOnReferenceAreaBoundary()booleanisComplexScriptFeaturesEnabled()booleanisNamespaceIgnored(java.lang.String namespace)Indicates whether a namespace URI is on the ignored list.booleanpreferRenderer()booleanvalidateStrictly()Returns whether FOP is strictly validating input XSLbooleanvalidateUserConfigStrictly()Is the user configuration to be validated?
-
-
-
Method Detail
-
isAccessibilityEnabled
public boolean isAccessibilityEnabled()
Whether accessibility features are switched on.- Specified by:
isAccessibilityEnabledin interfaceFopFactoryConfig- Returns:
- true if accessibility features have been requested
-
getLayoutManagerMakerOverride
public LayoutManagerMaker getLayoutManagerMakerOverride()
Returns the overriding LayoutManagerMaker instance, if any.- Specified by:
getLayoutManagerMakerOverridein 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:
getResourceResolverin interfaceFopFactoryConfig- Returns:
- the URI resolver
-
getBaseURI
public java.net.URI getBaseURI()
The base URI from which URIs are resolved against.- Specified by:
getBaseURIin interfaceFopFactoryConfig- Returns:
- the base URI
-
getHyphenationResourceResolver
public InternalResourceResolver getHyphenationResourceResolver()
- Specified by:
getHyphenationResourceResolverin interfaceFopFactoryConfig
-
validateStrictly
public boolean validateStrictly()
Returns whether FOP is strictly validating input XSL- Specified by:
validateStrictlyin interfaceFopFactoryConfig- Returns:
- true of strict validation turned on, false otherwise
-
validateUserConfigStrictly
public boolean validateUserConfigStrictly()
Is the user configuration to be validated?- Specified by:
validateUserConfigStrictlyin interfaceFopFactoryConfig- Returns:
- if the user configuration should be validated
-
isBreakIndentInheritanceOnReferenceAreaBoundary
public boolean isBreakIndentInheritanceOnReferenceAreaBoundary()
- Specified by:
isBreakIndentInheritanceOnReferenceAreaBoundaryin 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:
getSourceResolutionin interfaceFopFactoryConfig- Returns:
- the resolution for resolution-dependent input
-
getTargetResolution
public float getTargetResolution()
- Specified by:
getTargetResolutionin 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:
getPageHeightin 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:
getPageWidthin interfaceFopFactoryConfig- Returns:
- the page-width, as a String
-
getIgnoredNamespaces
public java.util.Set<java.lang.String> getIgnoredNamespaces()
- Specified by:
getIgnoredNamespacesin 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:
isNamespaceIgnoredin interfaceFopFactoryConfig- Parameters:
namespace- the namespace URI- Returns:
- true if the namespace is ignored by FOP
-
getUserConfig
public Configuration getUserConfig()
Returns the AvalonConfigurationobject.- Specified by:
getUserConfigin interfaceFopFactoryConfig- Returns:
- the Avalon config object
-
preferRenderer
public boolean preferRenderer()
- Specified by:
preferRendererin interfaceFopFactoryConfig- See Also:
RendererFactory.isRendererPreferred()
-
getFontManager
public FontManager getFontManager()
Returns the font manager.- Specified by:
getFontManagerin interfaceFopFactoryConfig- Returns:
- the font manager
-
getImageManager
public org.apache.xmlgraphics.image.loader.ImageManager getImageManager()
Returns the image manager.- Specified by:
getImageManagerin interfaceFopFactoryConfig- Returns:
- the image manager
-
isComplexScriptFeaturesEnabled
public boolean isComplexScriptFeaturesEnabled()
- Specified by:
isComplexScriptFeaturesEnabledin interfaceFopFactoryConfig
-
getHyphenationPatternNames
public java.util.Map<java.lang.String,java.lang.String> getHyphenationPatternNames()
- Specified by:
getHyphenationPatternNamesin interfaceFopFactoryConfig- Returns:
- the hyphenation pattern names
-
getFallbackResolver
public org.apache.xmlgraphics.image.loader.impl.AbstractImageSessionContext.FallbackResolver getFallbackResolver()
Description copied from interface:FopFactoryConfigControls the mechanisms that are used in the event thatSourceused for resources couldn't be read.- Specified by:
getFallbackResolverin interfaceFopFactoryConfig- Returns:
- the fallback resolver
-
-