public class ProtectedProperties extends Properties implements RevisionHandler
Constructor and Description |
---|
ProtectedProperties(Properties props)
Creates a set of protected properties from a set of normal ones.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames
clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, toString, values
public ProtectedProperties(Properties props)
props
- the properties to be stored and protected.public Object setProperty(String key, String value)
setProperty
in class Properties
UnsupportedOperationException
- always.public void load(InputStream inStream)
load
in class Properties
UnsupportedOperationException
- always.public void clear()
public Object put(Object key, Object value)
public void putAll(Map t)
public Object remove(Object key)
public String getRevision()
getRevision
in interface RevisionHandler
Copyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.