|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.fop.configuration.Configuration
a configuration class for all general configuration aspects except those related to specific renderers. All configuration is stored in key / value pairs. The value can be a String, a list of Strings or a map, containing a list of key / value pairs.
Field Summary | |
static int |
AWT
|
static int |
PDF
|
static int |
STANDARD
defines role types |
Constructor Summary | |
Configuration()
|
Method Summary | |
static void |
dumpConfiguration()
debug methods, which writes out all information in this configuration |
static java.net.URL |
getBaseURL()
|
static java.lang.Boolean |
getBooleanValue(java.lang.String key)
convenience methods to access boolean values in the configuration |
static java.lang.Boolean |
getBooleanValue(java.lang.String key,
int role)
convenience methods to access boolean values in the configuration |
static java.util.Map |
getConfiguration()
|
static java.net.URL |
getFontBaseURL()
|
static java.util.List |
getFonts()
Method to access fonts values in the standard configuration |
static int |
getIntValue(java.lang.String key)
convenience methods to access int values in the standard configuration |
static int |
getIntValue(java.lang.String key,
int role)
convenience methods to access int values in the configuration |
static java.util.List |
getListValue(java.lang.String key)
convenience methods to access list values in the standard configuration |
static java.util.List |
getListValue(java.lang.String key,
int role)
convenience methods to access list values in the configuration |
static java.util.Map |
getMapValue(java.lang.String key)
convenience methods to access Map values in the standard configuration |
static java.util.Map |
getMapValue(java.lang.String key,
int role)
convenience methods to access Map values in the configuration |
static java.lang.String |
getStringValue(java.lang.String key)
convenience methods to access strings values in the standard configuration |
static java.lang.String |
getStringValue(java.lang.String key,
int role)
convenience methods to access strings values in the configuration |
static java.lang.Object |
getValue(java.lang.String key)
convenience method which retrieves some configuration information from the standard configuration |
static java.lang.Object |
getValue(java.lang.String key,
int role)
general access method |
static void |
put(java.lang.String key,
java.lang.Object value)
adds information to the standard configuration Map in key,value form |
static void |
put(java.lang.String key,
java.lang.Object value,
int role)
adds information to the configuration Map in key,value form |
static void |
setup(int role,
java.util.Map config)
Initializes this configuration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int STANDARD
public static final int PDF
public static final int AWT
Constructor Detail |
public Configuration()
Method Detail |
public static java.util.Map getConfiguration()
public static java.lang.Object getValue(java.lang.String key, int role)
key
- a string containing the key value for the configuration valuerole
- detemines the configuration targetpublic static java.lang.String getStringValue(java.lang.String key, int role)
key
- a string containing the key value for the configuration valuerole
- detemines the configuration targetpublic static int getIntValue(java.lang.String key, int role)
key
- a string containing the key value for the configuration valuerole
- detemines the configuration targetpublic static java.lang.Boolean getBooleanValue(java.lang.String key, int role)
key
- a string containing the key value for the configuration valuerole
- detemines the configuration targetpublic static java.util.List getListValue(java.lang.String key, int role)
key
- a string containing the key value for the configuration valuerole
- detemines the configuration targetpublic static java.util.Map getMapValue(java.lang.String key, int role)
key
- a string containing the key value for the configuration valuerole
- detemines the configuration targetpublic static java.lang.Object getValue(java.lang.String key)
key
- a string containing the key value for the configuration valuepublic static java.lang.String getStringValue(java.lang.String key)
key
- a string containing the key value for the configuration valuepublic static int getIntValue(java.lang.String key)
key
- a string containing the key value for the configuration valuepublic static java.lang.Boolean getBooleanValue(java.lang.String key)
key
- a string containing the key value for the configuration valuepublic static java.util.List getListValue(java.lang.String key)
key
- a string containing the key value for the configuration valuepublic static java.util.Map getMapValue(java.lang.String key)
key
- a string containing the key value for the configuration valuepublic static java.util.List getFonts()
public static java.net.URL getBaseURL()
public static java.net.URL getFontBaseURL()
public static void setup(int role, java.util.Map config)
role
- detemines the configuration targetconfig
- contains the configuration informationpublic static void put(java.lang.String key, java.lang.Object value, int role)
key
- a string containing the key value for the configuration valuevalue
- the configuration information; can be a String, a List or a Maprole
- detemines the configuration targetpublic static void put(java.lang.String key, java.lang.Object value)
key
- a string containing the key value for the configuration value
value the configuration information
role detemines the configuration targetvalue
- an Object containing the value; can be a String, a List or a Mappublic static void dumpConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |