| org.apache.commons.configuration.AbstractConfiguration org.apache.commons.configuration.SubsetConfiguration
SubsetConfiguration | public class SubsetConfiguration extends AbstractConfiguration (Code) | | A subset of another configuration. The new Configuration object contains
every key from the parent Configuration that starts with prefix. The prefix
is removed from the keys in the subset.
It is usually not necessary to use this class directly. Instead the
Configuration.subset(String) method should be used,
which will return a correctly initialized instance.
author: Emmanuel Bourg version: $Revision: 501987 $, $Date: 2007-01-31 21:57:04 +0100 (Mi, 31 Jan 2007) $ |
delimiter | protected String delimiter(Code) | | The prefix delimiter
|
prefix | protected String prefix(Code) | | The prefix used to select the properties.
|
SubsetConfiguration | public SubsetConfiguration(Configuration parent, String prefix)(Code) | | Create a subset of the specified configuration
Parameters: parent - The parent configuration Parameters: prefix - The prefix used to select the properties |
SubsetConfiguration | public SubsetConfiguration(Configuration parent, String prefix, String delimiter)(Code) | | Create a subset of the specified configuration
Parameters: parent - The parent configuration Parameters: prefix - The prefix used to select the properties Parameters: delimiter - The prefix delimiter |
getChildKey | protected String getChildKey(String key)(Code) | | Return the key in the subset configuration associated to the specified
key in the parent configuration.
Parameters: key - The key in the parent configuration. the key in the context of this subset configuration |
getListDelimiter | public char getListDelimiter()(Code) | | Returns the list delimiter. This property will be fetched from the parent
configuration if supported.
the list delimiter since: 1.4 |
getParent | public Configuration getParent()(Code) | | Return the parent configuation for this subset.
the parent configuration |
getParentKey | protected String getParentKey(String key)(Code) | | Return the key in the parent configuration associated to the specified
key in this subset.
Parameters: key - The key in the subset. the key as to be used by the parent |
getPrefix | public String getPrefix()(Code) | | Return the prefix used to select the properties in the parent configuration.
the prefix used by this subset |
isDelimiterParsingDisabled | public boolean isDelimiterParsingDisabled()(Code) | | Returns a flag whether string properties should be checked for list
delimiter characters. This implementation ensures that this flag is kept
in sync with the parent configuration if this object supports this
feature.
the delimiter parsing disabled flag since: 1.4 |
isEmpty | public boolean isEmpty()(Code) | | |
isThrowExceptionOnMissing | public boolean isThrowExceptionOnMissing()(Code) | | The subset inherits this feature from its parent if it supports this feature.
|
setDelimiterParsingDisabled | public void setDelimiterParsingDisabled(boolean delimiterParsingDisabled)(Code) | | Sets a flag whether list parsing is disabled. This implementation will
also set the flag at the parent configuration if this object supports
this feature.
Parameters: delimiterParsingDisabled - the delimiter parsing disabled flag since: 1.4 |
setListDelimiter | public void setListDelimiter(char delim)(Code) | | Sets the list delimiter. If the parent configuration supports this
feature, the delimiter will be set at the parent.
Parameters: delim - the new list delimiter since: 1.4 |
setPrefix | public void setPrefix(String prefix)(Code) | | Set the prefix used to select the properties in the parent configuration.
Parameters: prefix - the prefix |
setThrowExceptionOnMissing | public void setThrowExceptionOnMissing(boolean throwExceptionOnMissing)(Code) | | Change the behaviour of the parent configuration if it supports this feature.
|
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)
|
|
|