Class Properties
- java.lang.Object
- 
- java.util.AbstractMap<K,V>
- 
- java.util.HashMap<String,String>
- 
- org.nuxeo.ecm.automation.core.util.Properties
 
 
 
- 
- All Implemented Interfaces:
- Serializable,- Cloneable,- Map<String,String>
 - Direct Known Subclasses:
- DataModelProperties
 
 public class Properties extends HashMap<String,String> Inline properties file content. This class exists to have a real type for parameters accepting properties content.- Author:
- Bogdan Stefanescu
- See Also:
- Constants, Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringIS_PROPERTY_VALUE_TRIMMED_KEYSpaces may be legitimate part of the value, there is no reason to trim them.protected static StringmultiLineEscapestatic StringPROPERTIES_MULTILINE_ESCAPE
 - 
Constructor SummaryConstructors Constructor Description Properties()Properties(int size)Properties(com.fasterxml.jackson.databind.JsonNode node)Constructs a Properties map based on a Json node.Properties(String content)Properties(Map<String,String> props)
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description protected static booleanisPropertyValueTrimmed()Default value isfalse.static Map<String,String>loadProperties(Reader reader)static voidloadProperties(Reader reader, Map<String,String> map)- 
Methods inherited from class java.util.HashMapclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
 - 
Methods inherited from class java.util.AbstractMapequals, hashCode, toString
 
- 
 
- 
- 
- 
Field Detail- 
IS_PROPERTY_VALUE_TRIMMED_KEYpublic static final String IS_PROPERTY_VALUE_TRIMMED_KEY Spaces may be legitimate part of the value, there is no reason to trim them. But before NXP-19050, the behavior was to trim the values. We have put in place a contribution, which is overridden before Nuxeo 8 series, for backward compatibility. See NXP-19170.- Since:
- 8.2
- See Also:
- Constant Field Values
 
 - 
PROPERTIES_MULTILINE_ESCAPEpublic static final String PROPERTIES_MULTILINE_ESCAPE - See Also:
- Constant Field Values
 
 - 
multiLineEscapeprotected static final String multiLineEscape 
 
- 
 - 
Constructor Detail- 
Propertiespublic Properties() 
 - 
Propertiespublic Properties(int size) 
 - 
Propertiespublic Properties(String content) throws IOException - Throws:
- IOException
 
 - 
Propertiespublic Properties(com.fasterxml.jackson.databind.JsonNode node) throws IOExceptionConstructs a Properties map based on a Json node.- Throws:
- IOException
- Since:
- 5.7.3
 
 
- 
 - 
Method Detail- 
isPropertyValueTrimmedprotected static boolean isPropertyValueTrimmed() Default value isfalse.- Since:
- 8.2
 
 - 
loadPropertiespublic static Map<String,String> loadProperties(Reader reader) throws IOException - Throws:
- IOException
 
 - 
loadPropertiespublic static void loadProperties(Reader reader, Map<String,String> map) throws IOException - Throws:
- IOException
 
 
- 
 
-