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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddChild(DefaultConfiguration configuration)java.lang.StringgetAttribute(java.lang.String key)java.lang.StringgetAttribute(java.lang.String key, java.lang.String defaultValue)booleangetAttributeAsBoolean(java.lang.String key, boolean defaultValue)floatgetAttributeAsFloat(java.lang.String key)floatgetAttributeAsFloat(java.lang.String key, float defaultValue)intgetAttributeAsInteger(java.lang.String key, int defaultValue)java.lang.String[]getAttributeNames()ConfigurationgetChild(java.lang.String key)ConfigurationgetChild(java.lang.String key, boolean required)Configuration[]getChildren(java.lang.String key)java.lang.StringgetLocation()java.lang.StringgetValue()java.lang.StringgetValue(java.lang.String defaultValue)booleangetValueAsBoolean()booleangetValueAsBoolean(boolean defaultValue)floatgetValueAsFloat()floatgetValueAsFloat(float defaultValue)intgetValueAsInteger()intgetValueAsInteger(int defaultValue)static java.lang.StringtoString(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.
-
addChild
public void addChild(DefaultConfiguration configuration)
-
getChild
public Configuration getChild(java.lang.String key)
- Specified by:
getChildin interfaceConfiguration
-
getChild
public Configuration getChild(java.lang.String key, boolean required)
- Specified by:
getChildin interfaceConfiguration
-
getChildren
public Configuration[] getChildren(java.lang.String key)
- Specified by:
getChildrenin interfaceConfiguration
-
getAttributeNames
public java.lang.String[] getAttributeNames()
- Specified by:
getAttributeNamesin interfaceConfiguration
-
getAttribute
public java.lang.String getAttribute(java.lang.String key)
- Specified by:
getAttributein interfaceConfiguration
-
getAttribute
public java.lang.String getAttribute(java.lang.String key, java.lang.String defaultValue)- Specified by:
getAttributein interfaceConfiguration
-
getAttributeAsBoolean
public boolean getAttributeAsBoolean(java.lang.String key, boolean defaultValue)- Specified by:
getAttributeAsBooleanin interfaceConfiguration
-
getAttributeAsFloat
public float getAttributeAsFloat(java.lang.String key) throws ConfigurationException- Specified by:
getAttributeAsFloatin interfaceConfiguration- Throws:
ConfigurationException
-
getAttributeAsFloat
public float getAttributeAsFloat(java.lang.String key, float defaultValue)- Specified by:
getAttributeAsFloatin interfaceConfiguration
-
getAttributeAsInteger
public int getAttributeAsInteger(java.lang.String key, int defaultValue)- Specified by:
getAttributeAsIntegerin interfaceConfiguration
-
getValue
public java.lang.String getValue() throws ConfigurationException- Specified by:
getValuein interfaceConfiguration- Throws:
ConfigurationException
-
getValue
public java.lang.String getValue(java.lang.String defaultValue)
- Specified by:
getValuein interfaceConfiguration
-
getValueAsBoolean
public boolean getValueAsBoolean() throws ConfigurationException- Specified by:
getValueAsBooleanin interfaceConfiguration- Throws:
ConfigurationException
-
getValueAsBoolean
public boolean getValueAsBoolean(boolean defaultValue)
- Specified by:
getValueAsBooleanin interfaceConfiguration
-
getValueAsInteger
public int getValueAsInteger() throws ConfigurationException- Specified by:
getValueAsIntegerin interfaceConfiguration- Throws:
ConfigurationException
-
getValueAsInteger
public int getValueAsInteger(int defaultValue)
- Specified by:
getValueAsIntegerin interfaceConfiguration
-
getValueAsFloat
public float getValueAsFloat() throws ConfigurationException- Specified by:
getValueAsFloatin interfaceConfiguration- Throws:
ConfigurationException
-
getValueAsFloat
public float getValueAsFloat(float defaultValue)
- Specified by:
getValueAsFloatin interfaceConfiguration
-
getLocation
public java.lang.String getLocation()
- Specified by:
getLocationin interfaceConfiguration
-
-