|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
eu.beesoft.gaia.util.AdvancedProperties
public class AdvancedProperties
This class enhances a functionality of java.util.Properties
- it
brings the expandable values. Expandable value is a value that contains some
text between ${ and } marks. This text is seen as the name of
the other property, which value is completed to the returned value.
Field Summary |
---|
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
AdvancedProperties()
Creates a new advanced properties. |
|
AdvancedProperties(java.util.Properties properties)
Creates a new advanced properties. |
Method Summary | |
---|---|
java.lang.String |
getProperty(java.lang.String name)
Returns a value of the property with given name. |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Returns a value of the property with given name. |
AdvancedProperties |
getSubset(java.lang.String prefix)
Returns an instance of AdvancedProperties, which contains all properties of this instance they names start with iven prefix. |
Methods inherited from class java.util.Properties |
---|
list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AdvancedProperties()
public AdvancedProperties(java.util.Properties properties)
properties
- - parent properties for this instanceMethod Detail |
---|
public AdvancedProperties getSubset(java.lang.String prefix)
prefix
- - name prefix for properties lookup
public java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
getProperty
in class java.util.Properties
name
- - the property namedefaultValue
- - the default value, returned if no such property found
public java.lang.String getProperty(java.lang.String name)
getProperty
in class java.util.Properties
name
- - the property name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |