Package org.apache.camel.util
Class CamelCaseOrderedProperties
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.apache.camel.util.CamelCaseOrderedProperties
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
Object>
This class is a camelCase ordered
Properties
where the key/values are stored in the order they are added or
loaded.
The keys are stored in the original case, for example a key of camel.main.stream-caching-enabled
is
stored as camel.main.stream-caching-enabled
.
However the lookup of a value by key with the get methods, will support camelCase or dash style.
Note: This implementation is only intended as implementation detail for Camel tooling such as camel-jbang, and has
only been designed to provide the needed functionality. The complex logic for loading properties has been kept from
the JDK Properties
class.- See Also:
-
Field Summary
Fields inherited from class java.util.Properties
defaults
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.Properties
clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, equals, forEach, getOrDefault, hashCode, list, list, load, load, loadFromXML, merge, propertyNames, putIfAbsent, rehash, remove, replace, replace, replaceAll, save, setProperty, store, store, storeToXML, storeToXML, storeToXML
-
Constructor Details
-
CamelCaseOrderedProperties
public CamelCaseOrderedProperties()
-
-
Method Details
-
get
-
getProperty
-
getProperty
-
asMap
-
put
-
doPut
-
putAll
-
isEmpty
public boolean isEmpty() -
remove
-
clear
public void clear() -
keys
- Overrides:
keys
in classProperties
-
keySet
-
entrySet
-
size
public int size() -
stringPropertyNames
- Overrides:
stringPropertyNames
in classProperties
-
values
-
toString
- Overrides:
toString
in classProperties
-