Package com._1c.g5.v8.dt.compare.core
Class NestedSerializableMergeSettings
- java.lang.Object
-
- com._1c.g5.v8.dt.compare.core.NestedSerializableMergeSettings
-
public class NestedSerializableMergeSettings extends Object
Nested merge settings to write and restore on serialization.
-
-
Constructor Summary
Constructors Constructor Description NestedSerializableMergeSettings(String name)
Creates new instance.NestedSerializableMergeSettings(String name, String value)
Creates new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNestedSetting(NestedSerializableMergeSettings nestedSetting)
Adds the nested setting.void
addProperty(String propertyName, String propertyValue)
Adds the propertyList<NestedSerializableMergeSettings>
findNestedSettingsWithName(String name)
Gets nested settings with the given name.NestedSerializableMergeSettings
findNestedSettingWithName(String name)
Gets first found nested setting with the given name.String
getName()
Gets the setting nameList<NestedSerializableMergeSettings>
getNestedSettings()
Gets the list of nested settingsMap<String,String>
getProperties()
Gets the map of propertiesString
getProperty(String propertyName)
Gets the propertyString
getValue()
Gets the setting value
-
-
-
Constructor Detail
-
NestedSerializableMergeSettings
public NestedSerializableMergeSettings(String name)
Creates new instance.- Parameters:
name
- name used to define the setting, cannot benull
-
-
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 benull
- 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
-
getNestedSettings
public List<NestedSerializableMergeSettings> getNestedSettings()
Gets the list of nested settings- Returns:
- the list of nested settings, never
null
-
findNestedSettingsWithName
public List<NestedSerializableMergeSettings> findNestedSettingsWithName(String name)
Gets nested settings with the given name.- Parameters:
name
- the name, cannot benull
- 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 benull
- Returns:
- the nested setting found or
null
-
addProperty
public void addProperty(String propertyName, String propertyValue)
Adds the property- Parameters:
propertyName
- the property name, cannot benull
propertyValue
- the property value, cannot benull
-
addNestedSetting
public void addNestedSetting(NestedSerializableMergeSettings nestedSetting)
Adds the nested setting.- Parameters:
nestedSetting
- the nested setting, cannot benull
-
-