Class BoundPropertySetDiff
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.config.PropertySetDiff
- 
- com.inductiveautomation.ignition.common.config.BoundPropertySetDiff
 
 
- 
- All Implemented Interfaces:
- BoundPropertySet,- Countable,- Extendable<PropertySet>,- Mergable<PropertySet>,- MutablePropertyValueSource,- PropertySet,- PropertySetEdit,- PropertyValueSource,- java.io.Serializable,- java.lang.Iterable<PropertyValue>
 
 public class BoundPropertySetDiff extends PropertySetDiff implements BoundPropertySet - See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySetEMPTY
 
- 
 - 
Constructor SummaryConstructors Constructor Description BoundPropertySetDiff()BoundPropertySetDiff(PropertySet copy)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(Property<?> prop)java.util.Collection<Property<?>>getBoundProperties()BoundValuegetBoundValue(Property<?> prop)intgetCount()For the diff, returns the combined size of modified and removed, so it can be used to see if there are any changes, as the value will be >0.java.util.List<PropertyValue>getValues()Returns the opaque PropertyValue objects.booleanhasChanges()booleanisBound(Property<?> prop)booleanisModified(Property<?> prop)protected java.util.Map<Property<?>,BoundValue>modifiedBindings()voidremove(Property<?> prop)voidrevert(Property<?> property)Removes the property from the modified map, but unlike "remove", doesn't add it to the removed set.voidsetBoundValue(Property<?> prop, BoundValue value)protected voidsetRaw(Property<?> prop, java.lang.Object value)- 
Methods inherited from class com.inductiveautomation.ignition.common.config.PropertySetDiffcompactChanges, get, getModified, getOrDefault, getOrElse, getProperties, getRaw, getRemoved, isExtended, isInherited, isRemoved, iterator, set, set, toString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.BoundPropertySetextend, getBoundOrDefault, newDefaultInstance, newExtension
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSourcemerge, set, set
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertySetgetExtension, isExtended, isInherited
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSourceget, getNonNull, getNonNull, getOrDefault, getOrElse, getProperties
 
- 
 
- 
- 
- 
Constructor Detail- 
BoundPropertySetDiffpublic BoundPropertySetDiff() 
 - 
BoundPropertySetDiffpublic BoundPropertySetDiff(PropertySet copy) 
 
- 
 - 
Method Detail- 
modifiedBindingsprotected java.util.Map<Property<?>,BoundValue> modifiedBindings() 
 - 
isBoundpublic boolean isBound(Property<?> prop) - Specified by:
- isBoundin interface- BoundPropertySet
 
 - 
isModifiedpublic boolean isModified(Property<?> prop) - Specified by:
- isModifiedin interface- PropertySetEdit
- Overrides:
- isModifiedin class- PropertySetDiff
 
 - 
setBoundValuepublic void setBoundValue(Property<?> prop, BoundValue value) - Specified by:
- setBoundValuein interface- BoundPropertySet
 
 - 
removepublic void remove(Property<?> prop) - Specified by:
- removein interface- MutablePropertyValueSource
- Overrides:
- removein class- PropertySetDiff
 
 - 
setRawprotected void setRaw(Property<?> prop, java.lang.Object value) - Overrides:
- setRawin class- PropertySetDiff
 
 - 
getBoundValuepublic BoundValue getBoundValue(Property<?> prop) - Specified by:
- getBoundValuein interface- BoundPropertySet
 
 - 
getBoundPropertiespublic java.util.Collection<Property<?>> getBoundProperties() - Specified by:
- getBoundPropertiesin interface- BoundPropertySet
 
 - 
revertpublic void revert(Property<?> property) Description copied from class:PropertySetDiffRemoves the property from the modified map, but unlike "remove", doesn't add it to the removed set.- Specified by:
- revertin interface- PropertySetEdit
- Overrides:
- revertin class- PropertySetDiff
 
 - 
containspublic boolean contains(Property<?> prop) - Specified by:
- containsin interface- PropertyValueSource
- Overrides:
- containsin class- PropertySetDiff
- Returns:
- True if the source contains a value for prop.
 
 - 
getCountpublic int getCount() Description copied from class:PropertySetDiffFor the diff, returns the combined size of modified and removed, so it can be used to see if there are any changes, as the value will be >0.- Specified by:
- getCountin interface- Countable
- Overrides:
- getCountin class- PropertySetDiff
 
 - 
hasChangespublic boolean hasChanges() - Overrides:
- hasChangesin class- PropertySetDiff
 
 - 
getValuespublic java.util.List<PropertyValue> getValues() Description copied from interface:PropertyValueSourceReturns the opaque PropertyValue objects. This can be useful when you want to avoid the strict type checking of the value, and it's important to note that if the property is bound, the value will be a BoundValue. Be very careful about overriding, and make sure to maintain the methodology of using getProperties to iterate and get (or getOrDefault), to get the value, because those are all handled differently by BoundPropertySets, ExtendedPropertySets, etc.- Specified by:
- getValuesin interface- BoundPropertySet
- Specified by:
- getValuesin interface- PropertyValueSource
- Overrides:
- getValuesin class- PropertySetDiff
 
 
- 
 
-