Class CmsMessageBundleEditorModel.SortedProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.opencms.ui.editors.messagebundle.CmsMessageBundleEditorModel.SortedProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
Object>
- Enclosing class:
- CmsMessageBundleEditorModel
Extension of
Properties
to allow saving with keys alphabetically ordered and without time stamp as first comment.
NOTE: Can't handle comments. They are just discarded.
NOTE: Most of the class is just a plain copy of the private methods of Properties
, so be aware that adjustments may be necessary if the Properties
implementation changes.
NOTE: The solution was taken to guarantee correct escaping when storing properties.- See Also:
-
Field Summary
Fields inherited from class java.util.Properties
defaults
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
Constructor Details
-
SortedProperties
public SortedProperties()Default constructor.
-
-
Method Details
-
store
Override to omit the date comment.- Overrides:
store
in classProperties
- Throws:
IOException
- See Also:
-
store
Override to omit the date comment.- Overrides:
store
in classProperties
- Throws:
IOException
- See Also:
-