| java.lang.Object net.myvietnam.mvncore.configuration.AbstractConfiguration net.myvietnam.mvncore.configuration.BaseConfiguration
All known Subclasses: net.myvietnam.mvncore.configuration.JNDIConfiguration, net.myvietnam.mvncore.configuration.BasePathConfiguration,
BaseConfiguration | public BaseConfiguration()(Code) | | Empty constructor. You must add all the values to this configuration.
|
BaseConfiguration | public BaseConfiguration(Configuration defaults)(Code) | | Creates an empty BaseConfiguration object with
a Super-Object which is queries for every key.
Parameters: defaults - Configuration defaults to use if key not in file |
addPropertyDirect | protected void addPropertyDirect(String key, Object obj)(Code) | | Adds a key/value pair to the map. This routine does no magic morphing.
It ensures the keylist is maintained
Parameters: key - key to use for mapping Parameters: obj - object to store |
clearProperty | public void clearProperty(String key)(Code) | | Clear a property in the configuration.
Parameters: key - the key to remove along with corresponding value. |
containsKey | public boolean containsKey(String key)(Code) | | check if the configuration contains the key
Parameters: key - the configuration key true if Configuration contain given key,false otherwise. |
getKeys | public Iterator getKeys()(Code) | | Get the list of the keys contained in the configuration
repository.
An Iterator. |
getPropertyDirect | protected Object getPropertyDirect(String key)(Code) | | Read property from underlying map.
Parameters: key - key to use for mapping object associated with the given configuration key. |
isEmpty | public boolean isEmpty()(Code) | | Check if the configuration is empty
true if Configuration is empty,false otherwise. |
Methods inherited from net.myvietnam.mvncore.configuration.AbstractConfiguration | public void addProperty(String key, Object token)(Code)(Java Doc) abstract protected void addPropertyDirect(String key, Object obj)(Code)(Java Doc) abstract public void clearProperty(String key)(Code)(Java Doc) abstract public boolean containsKey(String key)(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 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) abstract public Iterator getKeys()(Code)(Java Doc) public Iterator getKeys(String prefix)(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 Object getProperty(String key)(Code)(Java Doc) abstract protected Object getPropertyDirect(String key)(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 Vector getVector(String key)(Code)(Java Doc) public Vector getVector(String key, Vector defaultValue)(Code)(Java Doc) protected String interpolate(String base)(Code)(Java Doc) protected String interpolateHelper(String base, List priorVariables)(Code)(Java Doc) abstract public boolean isEmpty()(Code)(Java Doc) protected List processString(String token)(Code)(Java Doc) public void setProperty(String key, Object value)(Code)(Java Doc) public Configuration subset(String prefix)(Code)(Java Doc) final protected Boolean testBoolean(String value)(Code)(Java Doc)
|
|
|