|
|||||||||
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
helma.util.SystemProperties
public final class SystemProperties
A property dictionary that is updated from a property file each time the file is modified. It is also case insensitive.
Field Summary |
---|
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
SystemProperties()
Construct an empty properties object. |
|
SystemProperties(java.lang.String filename)
Construct a properties object from a properties file. |
|
SystemProperties(java.lang.String filename,
SystemProperties defaultProps)
Construct a properties object from a file name with the given default properties (ignoring case) |
|
SystemProperties(SystemProperties defaultProps)
Contstruct a properties object with the given default properties. |
Method Summary | |
---|---|
void |
addProps(java.lang.String key,
java.io.InputStream in)
Similar to load(), but adds to the existing properties instead of discarding them. |
boolean |
contains(java.lang.Object obj)
Overrides method to act on the wrapped properties object. |
boolean |
containsKey(java.lang.Object key)
Overrides method to act on the wrapped properties object. |
java.util.Enumeration |
elements()
Overrides method to act on the wrapped properties object. |
java.lang.Object |
get(java.lang.Object key)
Overrides method to act on the wrapped properties object. |
long |
getChecksum()
Return a checksum that changes when something in the properties changes. |
java.io.File |
getFile()
Get the properties file |
java.lang.String |
getProperty(java.lang.String name)
Overrides method to act on the wrapped properties object. |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Overrides method to act on the wrapped properties object. |
boolean |
isEmpty()
Overrides method to act on the wrapped properties object. |
boolean |
isIgnoreCase()
Returns true if this property map ignores key case |
java.util.Enumeration |
keys()
Overrides method to act on the wrapped properties object. |
java.util.Set |
keySet()
Overrides method to act on the wrapped properties object. |
long |
lastModified()
Return the modify-time of the underlying properties file. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
java.lang.Object |
remove(java.lang.Object key)
Overrides method to act on the wrapped properties object. |
void |
removeProps(java.lang.String key)
Remove an additional properties dictionary. |
void |
setIgnoreCase(boolean ignore)
Turns case sensitivity for keys in this Map on or off. |
int |
size()
Overrides method to act on the wrapped properties object. |
java.lang.String |
toString()
Overrides method to act on the wrapped properties object. |
void |
update()
Update/re-read the properties from file if necessary. |
Methods inherited from class java.util.Properties |
---|
list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, containsValue, entrySet, equals, hashCode, putAll, rehash, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SystemProperties()
public SystemProperties(java.lang.String filename)
public SystemProperties(SystemProperties defaultProps)
public SystemProperties(java.lang.String filename, SystemProperties defaultProps)
Method Detail |
---|
public long lastModified()
public void update()
public long getChecksum()
public java.io.File getFile()
public void addProps(java.lang.String key, java.io.InputStream in) throws java.io.IOException
java.io.IOException
public void removeProps(java.lang.String key)
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map<java.lang.Object,java.lang.Object>
put
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map<java.lang.Object,java.lang.Object>
get
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map<java.lang.Object,java.lang.Object>
remove
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public boolean contains(java.lang.Object obj)
contains
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<java.lang.Object,java.lang.Object>
containsKey
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public boolean isEmpty()
isEmpty
in interface java.util.Map<java.lang.Object,java.lang.Object>
isEmpty
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public java.lang.String getProperty(java.lang.String name)
getProperty
in class java.util.Properties
public java.lang.String getProperty(java.lang.String name, java.lang.String defaultValue)
getProperty
in class java.util.Properties
public java.util.Enumeration keys()
keys
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public java.util.Set keySet()
keySet
in interface java.util.Map<java.lang.Object,java.lang.Object>
keySet
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public java.util.Enumeration elements()
elements
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public int size()
size
in interface java.util.Map<java.lang.Object,java.lang.Object>
size
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public java.lang.String toString()
toString
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public void setIgnoreCase(boolean ignore)
public boolean isIgnoreCase()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |