| org.apache.commons.configuration.AbstractConfiguration org.apache.commons.configuration.HierarchicalConfiguration org.apache.commons.configuration.AbstractHierarchicalFileConfiguration
All known Subclasses: org.apache.commons.configuration.XMLConfiguration, org.apache.commons.configuration.plist.XMLPropertyListConfiguration, org.apache.commons.configuration.plist.PropertyListConfiguration,
AbstractHierarchicalFileConfiguration | abstract public class AbstractHierarchicalFileConfiguration extends HierarchicalConfiguration implements FileConfiguration,ConfigurationListener(Code) | | Base class for implementing file based hierarchical configurations.
This class serves an analogous purpose as the
AbstractFileConfiguration class for non hierarchical
configurations. It behaves in exactly the same way, so please refer to the
documentation of AbstractFileConfiguration for further details.
since: 1.2 author: Emmanuel Bourg version: $Revision: 492216 $, $Date: 2007-01-03 17:51:24 +0100 (Mi, 03 Jan 2007) $ |
AbstractHierarchicalFileConfiguration | protected AbstractHierarchicalFileConfiguration()(Code) | | Creates a new instance of
AbstractHierarchicalFileConfiguration .
|
AbstractHierarchicalFileConfiguration | protected AbstractHierarchicalFileConfiguration(HierarchicalConfiguration c)(Code) | | Creates a new instance of
AbstractHierarchicalFileConfiguration and copies the
content of the specified configuration into this object.
Parameters: c - the configuration to copy since: 1.4 |
AbstractHierarchicalFileConfiguration | public AbstractHierarchicalFileConfiguration(String fileName) throws ConfigurationException(Code) | | Creates and loads the configuration from the specified file.
Parameters: fileName - The name of the plist file to load. throws: ConfigurationException - Error while loading the file |
AbstractHierarchicalFileConfiguration | public AbstractHierarchicalFileConfiguration(File file) throws ConfigurationException(Code) | | Creates and loads the configuration from the specified file.
Parameters: file - The configuration file to load. throws: ConfigurationException - Error while loading the file |
AbstractHierarchicalFileConfiguration | public AbstractHierarchicalFileConfiguration(URL url) throws ConfigurationException(Code) | | Creates and loads the configuration from the specified URL.
Parameters: url - The location of the configuration file to load. throws: ConfigurationException - Error while loading the file |
configurationChanged | public void configurationChanged(ConfigurationEvent event)(Code) | | Reacts on configuration change events triggered by the delegate. These
events are passed to the registered configuration listeners.
Parameters: event - the triggered event since: 1.3 |
createDelegate | protected FileConfigurationDelegate createDelegate()(Code) | | Creates the file configuration delegate, i.e. the object that implements
functionality required by the FileConfiguration interface.
This base implementation will return an instance of the
FileConfigurationDelegate class. Derived classes may
override it to create a different delegate object.
the file configuration delegate |
fetchNodeList | protected List fetchNodeList(String key)(Code) | | Fetches a list of nodes, which are selected by the specified key. This
implementation will perform a reload if necessary.
Parameters: key - the key a list with the selected nodes |
getDelegate | protected FileConfigurationDelegate getDelegate()(Code) | | Returns the file configuration delegate.
the delegate |
isAutoSave | public boolean isAutoSave()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
reload | public void reload()(Code) | | |
setAutoSave | public void setAutoSave(boolean autoSave)(Code) | | |
setDelegate | protected void setDelegate(FileConfigurationDelegate delegate)(Code) | | Allows to set the file configuration delegate.
Parameters: delegate - the new delegate |
Fields inherited from org.apache.commons.configuration.HierarchicalConfiguration | final public static int EVENT_ADD_NODES(Code)(Java Doc) final public static int EVENT_CLEAR_TREE(Code)(Java Doc)
|
Methods inherited from org.apache.commons.configuration.AbstractConfiguration | public void addErrorLogListener()(Code)(Java Doc) public void addProperty(String key, Object value)(Code)(Java Doc) abstract protected void addPropertyDirect(String key, Object value)(Code)(Java Doc) public void clear()(Code)(Java Doc) public void clearProperty(String key)(Code)(Java Doc) protected void clearPropertyDirect(String key)(Code)(Java Doc) abstract public boolean containsKey(String key)(Code)(Java Doc) protected ConfigurationInterpolator createInterpolator()(Code)(Java Doc) public BigDecimal getBigDecimal(String key)(Code)(Java Doc) public BigDecimal getBigDecimal(String key, BigDecimal defaultValue)(Code)(Java Doc) public BigInteger getBigInteger(String key)(Code)(Java Doc) public BigInteger getBigInteger(String key, BigInteger defaultValue)(Code)(Java Doc) public boolean getBoolean(String key)(Code)(Java Doc) public boolean getBoolean(String key, boolean defaultValue)(Code)(Java Doc) public Boolean getBoolean(String key, Boolean defaultValue)(Code)(Java Doc) public byte getByte(String key)(Code)(Java Doc) public byte getByte(String key, byte defaultValue)(Code)(Java Doc) public Byte getByte(String key, Byte defaultValue)(Code)(Java Doc) public static char getDefaultListDelimiter()(Code)(Java Doc) public static char getDelimiter()(Code)(Java Doc) public double getDouble(String key)(Code)(Java Doc) public double getDouble(String key, double defaultValue)(Code)(Java Doc) public Double getDouble(String key, Double defaultValue)(Code)(Java Doc) public float getFloat(String key)(Code)(Java Doc) public float getFloat(String key, float defaultValue)(Code)(Java Doc) public Float getFloat(String key, Float defaultValue)(Code)(Java Doc) public int getInt(String key)(Code)(Java Doc) public int getInt(String key, int defaultValue)(Code)(Java Doc) public Integer getInteger(String key, Integer defaultValue)(Code)(Java Doc) public ConfigurationInterpolator getInterpolator()(Code)(Java Doc) abstract public Iterator getKeys()(Code)(Java Doc) public Iterator getKeys(String prefix)(Code)(Java Doc) public List getList(String key)(Code)(Java Doc) public List getList(String key, List defaultValue)(Code)(Java Doc) public char getListDelimiter()(Code)(Java Doc) public Log getLogger()(Code)(Java Doc) public long getLong(String key)(Code)(Java Doc) public long getLong(String key, long defaultValue)(Code)(Java Doc) public Long getLong(String key, Long defaultValue)(Code)(Java Doc) public Properties getProperties(String key)(Code)(Java Doc) public Properties getProperties(String key, Properties defaults)(Code)(Java Doc) public short getShort(String key)(Code)(Java Doc) public short getShort(String key, short defaultValue)(Code)(Java Doc) public Short getShort(String key, Short defaultValue)(Code)(Java Doc) public String getString(String key)(Code)(Java Doc) public String getString(String key, String defaultValue)(Code)(Java Doc) public String[] getStringArray(String key)(Code)(Java Doc) public synchronized StrSubstitutor getSubstitutor()(Code)(Java Doc) protected String interpolate(String base)(Code)(Java Doc) protected Object interpolate(Object value)(Code)(Java Doc) protected String interpolateHelper(String base, List priorVariables)(Code)(Java Doc) public boolean isDelimiterParsingDisabled()(Code)(Java Doc) abstract public boolean isEmpty()(Code)(Java Doc) public boolean isThrowExceptionOnMissing()(Code)(Java Doc) protected Object resolveContainerStore(String key)(Code)(Java Doc) public static void setDefaultListDelimiter(char delimiter)(Code)(Java Doc) public static void setDelimiter(char delimiter)(Code)(Java Doc) public void setDelimiterParsingDisabled(boolean delimiterParsingDisabled)(Code)(Java Doc) public void setListDelimiter(char listDelimiter)(Code)(Java Doc) public void setLogger(Log log)(Code)(Java Doc) public void setProperty(String key, Object value)(Code)(Java Doc) public void setThrowExceptionOnMissing(boolean throwExceptionOnMissing)(Code)(Java Doc) public Configuration subset(String prefix)(Code)(Java Doc)
|
|
|