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:
  • Field Details

    • IS_PROPERTY_VALUE_TRIMMED_KEY

      public 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:
    • PROPERTIES_MULTILINE_ESCAPE

      public static final String PROPERTIES_MULTILINE_ESCAPE
      See Also:
    • multiLineEscape

      protected static final String multiLineEscape
  • Constructor Details

    • Properties

      public Properties()
    • Properties

      public Properties(int size)
    • Properties

      public Properties(Map<String,String> props)
    • Properties

      public Properties(String content) throws IOException
      Throws:
      IOException
    • Properties

      public Properties(com.fasterxml.jackson.databind.JsonNode node) throws IOException
      Constructs a Properties map based on a Json node.
      Throws:
      IOException
      Since:
      5.7.3
  • Method Details