public static final class DefaultFontConfig.DefaultFontConfigParser extends java.lang.Object implements FontConfig.FontConfigParser
Constructor and Description |
---|
DefaultFontConfigParser() |
Modifier and Type | Method and Description |
---|---|
DefaultFontConfig |
parse(org.apache.avalon.framework.configuration.Configuration cfg,
boolean strict)
Parses the font configuration and return the configuration object.
|
DefaultFontConfig |
parse(org.apache.avalon.framework.configuration.Configuration cfg,
boolean strict,
FontEventAdapter eventAdapter) |
FontConfig |
parse(org.apache.avalon.framework.configuration.Configuration cfg,
FontManager fontManager,
boolean strict,
EventProducer eventProducer)
Parse the font configuration and return an object containing all the necessary data.
|
public DefaultFontConfig parse(org.apache.avalon.framework.configuration.Configuration cfg, boolean strict) throws FOPException
cfg
- the configuration datastrict
- whether or not to enforce strict validationFOPException
- if an error occurs when creating the configuration objectpublic DefaultFontConfig parse(org.apache.avalon.framework.configuration.Configuration cfg, boolean strict, FontEventAdapter eventAdapter) throws FOPException
FOPException
public FontConfig parse(org.apache.avalon.framework.configuration.Configuration cfg, FontManager fontManager, boolean strict, EventProducer eventProducer) throws FOPException
parse
in interface FontConfig.FontConfigParser
cfg
- the configuration objectfontManager
- the font managerstrict
- whether or not to enforce strict validationeventProducer
- the event producer for handling font eventsFOPException
- if an error occurs creating the font configuration objectCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.