Class PropertyBag

    • Constructor Detail

      • PropertyBag

        public PropertyBag()
    • Method Detail

      • isDefault

        public boolean isDefault()
        Description copied from interface: IDefaultAware
        Returns whether this object is equivalent to the default value.
        Specified by:
        isDefault in interface IDefaultAware
        Returns:
        true if this object is equivalent to the default value, false otherwise.
      • isEquivalent

        public boolean isEquivalent​(Object obj)
        Description copied from interface: ICustomEquivalence
        Returns whether this object is equivalent to the given object. If the object is equivalent, it will not need to be updated during synchronization.
        Specified by:
        isEquivalent in interface ICustomEquivalence
        Parameters:
        obj - the object to compare with.
        Returns:
        true if the objects are equivalent, false otherwise.
      • getId

        public String getId()
      • setId

        public void setId​(String id)
      • getParentPropertyBagId

        public String getParentPropertyBagId()
      • setParentPropertyBagId

        public void setParentPropertyBagId​(String parentPropertyBagId)
      • removeProperty

        public String removeProperty​(String propertyName)
      • removeProperties

        public List<String> removeProperties​(String propertyName)
        Removes and returns the values of the given property.
        Parameters:
        propertyName - the property name.
        Returns:
        the stored values or null if there's no such property.
        Since:
        7.0.0
      • setDefaultValue

        public void setDefaultValue​(String propertyName,
                                    String value)
      • setDefaultValue

        public void setDefaultValue​(String propertyName,
                                    String value,
                                    Property.InheritMode inheritMode)
        Sets the default value.
        Parameters:
        propertyName - the property name.
        value - the value.
        inheritMode - the Property.InheritMode.
        Since:
        7.0.0
      • setDefaultValues

        public void setDefaultValues​(String propertyName,
                                     List<String> values)
        Sets the property default values.
        Parameters:
        propertyName - the property name.
        values - the values.
        Since:
        7.0.0
      • setDefaultValues

        public void setDefaultValues​(String propertyName,
                                     List<String> values,
                                     Property.InheritMode inheritMode)
        Sets the property default values.
        Parameters:
        propertyName - the property name.
        values - the values.
        inheritMode - the Property.InheritMode.
        Since:
        7.0.0
      • getValue

        public String getValue​(String propertyName)
        Returns the value of the given property.
        Parameters:
        propertyName - the property name.
        Returns:
        the stored value or null if there's no such property.
        Since:
        7.0.0
      • getPropertyToSetValue

        public Property getPropertyToSetValue​(String propertyName)
        Returns the property to set value on.
        Parameters:
        propertyName - the property name.
        Returns:
        the property to set value on.
        Since:
        7.0.0