|
||||||||||
| 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<Object,Object>
java.util.Properties
weka.core.ProtectedProperties
public class ProtectedProperties
Simple class that extends the Properties class so that the properties are unable to be modified.
| Constructor Summary | |
|---|---|
ProtectedProperties(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. |
String |
getRevision()
Returns the revision string. |
void |
load(InputStream inStream)
Overrides a method to prevent the properties from being modified. |
Object |
put(Object key,
Object value)
Overrides a method to prevent the properties from being modified. |
void |
putAll(Map t)
Overrides a method to prevent the properties from being modified. |
Object |
remove(Object key)
Overrides a method to prevent the properties from being modified. |
Object |
setProperty(String key,
String value)
Overrides a method to prevent the properties from being modified. |
| Methods inherited from class java.util.Properties |
|---|
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames |
| 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(Properties props)
props - the properties to be stored and protected.| Method Detail |
|---|
public Object setProperty(String key,
String value)
setProperty in class PropertiesUnsupportedOperationException - always.public void load(InputStream inStream)
load in class PropertiesUnsupportedOperationException - always.public void clear()
clear in interface Map<Object,Object>clear in class Hashtable<Object,Object>UnsupportedOperationException - always.
public Object put(Object key,
Object value)
put in interface Map<Object,Object>put in class Hashtable<Object,Object>UnsupportedOperationException - always.public void putAll(Map t)
putAll in interface Map<Object,Object>putAll in class Hashtable<Object,Object>UnsupportedOperationException - always.public Object remove(Object key)
remove in interface Map<Object,Object>remove in class Hashtable<Object,Object>UnsupportedOperationException - always.public String getRevision()
getRevision in interface RevisionHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||