Package org.apache.fop.configuration
Class DefaultConfiguration
- java.lang.Object
-
- org.apache.fop.configuration.DefaultConfiguration
-
- All Implemented Interfaces:
Configuration
public class DefaultConfiguration extends java.lang.Object implements Configuration
-
-
Constructor Summary
Constructors Constructor Description DefaultConfiguration(java.lang.String key)
DefaultConfiguration(org.w3c.dom.Element element)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addChild(DefaultConfiguration configuration)
java.lang.String
getAttribute(java.lang.String key)
java.lang.String
getAttribute(java.lang.String key, java.lang.String defaultValue)
boolean
getAttributeAsBoolean(java.lang.String key, boolean defaultValue)
float
getAttributeAsFloat(java.lang.String key)
float
getAttributeAsFloat(java.lang.String key, float defaultValue)
int
getAttributeAsInteger(java.lang.String key, int defaultValue)
java.lang.String[]
getAttributeNames()
Configuration
getChild(java.lang.String key)
Configuration
getChild(java.lang.String key, boolean required)
Configuration[]
getChildren(java.lang.String key)
(package private) org.w3c.dom.Element
getElement()
java.lang.String
getLocation()
java.lang.String
getValue()
java.lang.String
getValue(java.lang.String defaultValue)
(package private) java.lang.String
getValue0()
boolean
getValueAsBoolean()
boolean
getValueAsBoolean(boolean defaultValue)
float
getValueAsFloat()
float
getValueAsFloat(float defaultValue)
int
getValueAsInteger()
int
getValueAsInteger(int defaultValue)
static java.lang.String
toString(org.w3c.dom.Document document)
Deprecated.For debug only.
-
-
-
Method Detail
-
toString
public static java.lang.String toString(org.w3c.dom.Document document)
Deprecated.For debug only.
-
getElement
org.w3c.dom.Element getElement()
-
addChild
public void addChild(DefaultConfiguration configuration)
-
getValue0
java.lang.String getValue0()
-
getChild
public Configuration getChild(java.lang.String key)
- Specified by:
getChild
in interfaceConfiguration
-
getChild
public Configuration getChild(java.lang.String key, boolean required)
- Specified by:
getChild
in interfaceConfiguration
-
getChildren
public Configuration[] getChildren(java.lang.String key)
- Specified by:
getChildren
in interfaceConfiguration
-
getAttributeNames
public java.lang.String[] getAttributeNames()
- Specified by:
getAttributeNames
in interfaceConfiguration
-
getAttribute
public java.lang.String getAttribute(java.lang.String key)
- Specified by:
getAttribute
in interfaceConfiguration
-
getAttribute
public java.lang.String getAttribute(java.lang.String key, java.lang.String defaultValue)
- Specified by:
getAttribute
in interfaceConfiguration
-
getAttributeAsBoolean
public boolean getAttributeAsBoolean(java.lang.String key, boolean defaultValue)
- Specified by:
getAttributeAsBoolean
in interfaceConfiguration
-
getAttributeAsFloat
public float getAttributeAsFloat(java.lang.String key) throws ConfigurationException
- Specified by:
getAttributeAsFloat
in interfaceConfiguration
- Throws:
ConfigurationException
-
getAttributeAsFloat
public float getAttributeAsFloat(java.lang.String key, float defaultValue)
- Specified by:
getAttributeAsFloat
in interfaceConfiguration
-
getAttributeAsInteger
public int getAttributeAsInteger(java.lang.String key, int defaultValue)
- Specified by:
getAttributeAsInteger
in interfaceConfiguration
-
getValue
public java.lang.String getValue() throws ConfigurationException
- Specified by:
getValue
in interfaceConfiguration
- Throws:
ConfigurationException
-
getValue
public java.lang.String getValue(java.lang.String defaultValue)
- Specified by:
getValue
in interfaceConfiguration
-
getValueAsBoolean
public boolean getValueAsBoolean() throws ConfigurationException
- Specified by:
getValueAsBoolean
in interfaceConfiguration
- Throws:
ConfigurationException
-
getValueAsBoolean
public boolean getValueAsBoolean(boolean defaultValue)
- Specified by:
getValueAsBoolean
in interfaceConfiguration
-
getValueAsInteger
public int getValueAsInteger() throws ConfigurationException
- Specified by:
getValueAsInteger
in interfaceConfiguration
- Throws:
ConfigurationException
-
getValueAsInteger
public int getValueAsInteger(int defaultValue)
- Specified by:
getValueAsInteger
in interfaceConfiguration
-
getValueAsFloat
public float getValueAsFloat() throws ConfigurationException
- Specified by:
getValueAsFloat
in interfaceConfiguration
- Throws:
ConfigurationException
-
getValueAsFloat
public float getValueAsFloat(float defaultValue)
- Specified by:
getValueAsFloat
in interfaceConfiguration
-
getLocation
public java.lang.String getLocation()
- Specified by:
getLocation
in interfaceConfiguration
-
-