Class NestedSerializableMergeSettings


  • public class NestedSerializableMergeSettings
    extends Object
    Nested merge settings to write and restore on serialization.
    • Constructor Detail

      • NestedSerializableMergeSettings

        public NestedSerializableMergeSettings​(String name)
        Creates new instance.
        Parameters:
        name - name used to define the setting, cannot be null
      • NestedSerializableMergeSettings

        public NestedSerializableMergeSettings​(String name,
                                               String value)
        Creates new instance.
        Parameters:
        name - name used to define the setting, cannot be null
        value - plain setting value, can be null
    • Method Detail

      • getName

        public String getName()
        Gets the setting name
        Returns:
        the setting name, never null
      • getValue

        public String getValue()
        Gets the setting value
        Returns:
        the setting value, can be null
      • getProperty

        public String getProperty​(String propertyName)
        Gets the property
        Parameters:
        propertyName - the property name to get the value for, cannot be null
        Returns:
        the property value, can be null
      • getProperties

        public Map<String,​String> getProperties()
        Gets the map of properties
        Returns:
        the map of properties, never null
      • findNestedSettingsWithName

        public List<NestedSerializableMergeSettings> findNestedSettingsWithName​(String name)
        Gets nested settings with the given name.
        Parameters:
        name - the name, cannot be null
        Returns:
        the list of nested settings with such name, may be empty, never null
      • findNestedSettingWithName

        public NestedSerializableMergeSettings findNestedSettingWithName​(String name)
        Gets first found nested setting with the given name.
        Parameters:
        name - the name, cannot be null
        Returns:
        the nested setting found or null
      • addProperty

        public void addProperty​(String propertyName,
                                String propertyValue)
        Adds the property
        Parameters:
        propertyName - the property name, cannot be null
        propertyValue - the property value, cannot be null
      • addNestedSetting

        public void addNestedSetting​(NestedSerializableMergeSettings nestedSetting)
        Adds the nested setting.
        Parameters:
        nestedSetting - the nested setting, cannot be null