public class PropertyBag extends Object implements IDefaultAware, ICustomEquivalence, Serializable
Documentation in this class focus synchronization behavior. About
the use behind the fields in the portal,
see PropertyBag
.
PropertyBag
,
Serialized FormConstructor and Description |
---|
PropertyBag() |
Modifier and Type | Method and Description |
---|---|
String |
getId() |
String |
getParentPropertyBagId() |
List<Property> |
getProperties() |
Property |
getPropertyToSetValue(String propertyName)
Returns the property to set value on.
|
String |
getValue(String propertyName)
Returns the value of the given property.
|
boolean |
isDefault()
Returns whether this object is equivalent to the default value.
|
boolean |
isEquivalent(Object obj)
Returns whether this object is equivalent to the given object.
|
List<String> |
removeProperties(String propertyName)
Removes and returns the values of the given property.
|
String |
removeProperty(String propertyName) |
void |
setDefaultValue(String propertyName,
String value) |
void |
setDefaultValue(String propertyName,
String value,
Property.InheritMode inheritMode)
Sets the default value.
|
void |
setDefaultValues(String propertyName,
List<String> values)
Sets the property default values.
|
void |
setDefaultValues(String propertyName,
List<String> values,
Property.InheritMode inheritMode)
Sets the property default values.
|
void |
setId(String id) |
void |
setParentPropertyBagId(String parentPropertyBagId) |
public boolean isDefault()
IDefaultAware
isDefault
in interface IDefaultAware
public boolean isEquivalent(Object obj)
ICustomEquivalence
isEquivalent
in interface ICustomEquivalence
obj
- the object to compare with.public String getId()
public void setId(String id)
public String getParentPropertyBagId()
public void setParentPropertyBagId(String parentPropertyBagId)
public List<String> removeProperties(String propertyName)
propertyName
- the property name.null
if there's no such property.public void setDefaultValue(String propertyName, String value, Property.InheritMode inheritMode)
propertyName
- the property name.value
- the value.inheritMode
- the Property.InheritMode
.public void setDefaultValues(String propertyName, List<String> values)
propertyName
- the property name.values
- the values.public void setDefaultValues(String propertyName, List<String> values, Property.InheritMode inheritMode)
propertyName
- the property name.values
- the values.inheritMode
- the Property.InheritMode
.public String getValue(String propertyName)
propertyName
- the property name.null
if there's no such property.LumisXP 12.1.0.191010 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.