|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
weka.core.ProtectedProperties
Simple class that extends the Properties class so that the properties are unable to be modified.
| Constructor Summary | |
ProtectedProperties(java.util.Properties props)
Creates a set of protected properties from a set of normal ones. |
|
| Method Summary | |
void |
clear()
Overrides a method to prevent the properties from being modified. |
void |
load(java.io.InputStream inStream)
Overrides a method to prevent the properties from being modified. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Overrides a method to prevent the properties from being modified. |
void |
putAll(java.util.Map t)
Overrides a method to prevent the properties from being modified. |
java.lang.Object |
remove(java.lang.Object key)
Overrides a method to prevent the properties from being modified. |
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value)
Overrides a method to prevent the properties from being modified. |
| Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, propertyNames, save, store |
| Methods inherited from class java.util.Hashtable |
clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, size, toString, values |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ProtectedProperties(java.util.Properties props)
props - the properties to be stored and protected.| Method Detail |
public java.lang.Object setProperty(java.lang.String key,
java.lang.String value)
java.lang.UnsupportedOperationException - always.public void load(java.io.InputStream inStream)
java.lang.UnsupportedOperationException - always.public void clear()
java.lang.UnsupportedOperationException - always.
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
java.lang.UnsupportedOperationException - always.public void putAll(java.util.Map t)
java.lang.UnsupportedOperationException - always.public java.lang.Object remove(java.lang.Object key)
java.lang.UnsupportedOperationException - always.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||