Package weka.core
Class ProtectedProperties
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,,Object> RevisionHandler
Simple class that extends the Properties class so that the properties are
unable to be modified.
- Version:
- $Revision: 10203 $
- Author:
- Richard Kirkby (rkirkby@cs.waikato.ac.nz)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProtectedProperties(Properties props) Creates a set of protected properties from a set of normal ones. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Overrides a method to prevent the properties from being modified.Returns the revision string.voidload(InputStream inStream) Overrides a method to prevent the properties from being modified.Overrides a method to prevent the properties from being modified.voidOverrides a method to prevent the properties from being modified.Overrides a method to prevent the properties from being modified.setProperty(String key, String value) Overrides a method to prevent the properties from being modified.Methods inherited from class java.util.Properties
clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, loadFromXML, merge, propertyNames, putIfAbsent, remove, replace, replace, replaceAll, save, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
Constructor Details
-
ProtectedProperties
Creates a set of protected properties from a set of normal ones.- Parameters:
props- the properties to be stored and protected.
-
-
Method Details
-
setProperty
Overrides a method to prevent the properties from being modified.- Overrides:
setPropertyin classProperties- Returns:
- never returns without throwing an exception.
- Throws:
UnsupportedOperationException- always.
-
load
Overrides a method to prevent the properties from being modified.- Overrides:
loadin classProperties- Throws:
UnsupportedOperationException- always.
-
clear
public void clear()Overrides a method to prevent the properties from being modified.- Specified by:
clearin interfaceMap<Object,Object> - Overrides:
clearin classProperties- Throws:
UnsupportedOperationException- always.
-
put
Overrides a method to prevent the properties from being modified.- Specified by:
putin interfaceMap<Object,Object> - Overrides:
putin classProperties- Returns:
- never returns without throwing an exception.
- Throws:
UnsupportedOperationException- always.
-
putAll
Overrides a method to prevent the properties from being modified.- Specified by:
putAllin interfaceMap<Object,Object> - Overrides:
putAllin classProperties- Throws:
UnsupportedOperationException- always.
-
remove
Overrides a method to prevent the properties from being modified.- Specified by:
removein interfaceMap<Object,Object> - Overrides:
removein classProperties- Returns:
- never returns without throwing an exception.
- Throws:
UnsupportedOperationException- always.
-
getRevision
Returns the revision string.- Specified by:
getRevisionin interfaceRevisionHandler- Returns:
- the revision
-