Class PropertySetConfig
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.config.PropertySetConfig
 
- 
- All Implemented Interfaces:
- Countable,- Extendable<PropertySet>,- Mergable<PropertySet>,- MutablePropertyValueSource,- ObservablePropertySet,- PropertySet,- PropertySetEdit,- PropertyValueSource,- java.io.Serializable,- java.lang.Iterable<PropertyValue>
 - Direct Known Subclasses:
- AlarmDefinitionConfig,- BoundPropertySetConfig
 
 public class PropertySetConfig extends java.lang.Object implements PropertySetEdit, ObservablePropertySet Like other Config entities, this object houses a source PropertySet and a Diff. Changes are made to the diff, and the diff is consulted first for retrieving values. The source object is consulted with the diff has no information for the property.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected PropertySetDiffeditprotected PropertySetsource- 
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySetEMPTY
 
- 
 - 
Constructor SummaryConstructors Constructor Description PropertySetConfig(PropertySet source)PropertySetConfig(PropertySet source, PropertySetDiff editTarget)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyChangeListener(Property<?> property, java.beans.PropertyChangeListener listener)voidaddPropertyChangeListener(java.beans.PropertyChangeListener listener)protected java.beans.PropertyChangeSupportchange()booleancontains(Property<?> prop)static PropertySetConfigcreate(PropertySet source)Returns a wrapping PropertySetConfig, unless the source already is one, then just casts it.protected PropertySetDiffcreateDiff()voiddiscardChanges()protected voidfirePropertyChange(Property<?> property, java.lang.Object oldValue, java.lang.Object newValue)<T> Tget(Property<T> prop)Retrieves the value of the property, or null if this set doesn't contain that property.intgetCount()PropertySetDiffgetEdit()java.util.Set<Property<?>>getModified()<T> TgetOrDefault(Property<T> prop)<T> TgetOrElse(Property<T> property, T value)Get the value for a givenProperty, or else fall back to value if it's not present.java.util.Collection<Property<?>>getProperties()PropertySetgetSource()protected <T> TgetSuperValue(Property<T> prop)java.util.List<PropertyValue>getValues()Returns the opaque PropertyValue objects.protected booleangoToSuper(Property<?> prop)booleanisExtended(Property<?> prop)Returns whether this property set contains a value for the prop, and the prop was actually inherited.booleanisInherited(Property<?> prop)Indicates whether the property was inherited from a parent type.booleanisModified(Property<?> property)protected booleanisRemoved(Property<?> prop)java.util.Iterator<PropertyValue>iterator()voidmergeDiffToSource()voidremove(Property<?> prop)voidremovePropertyChangeListener(Property<?> property, java.beans.PropertyChangeListener listener)voidremovePropertyChangeListener(java.beans.PropertyChangeListener listener)voidrevert(Property<?> prop)<T> voidset(Property<T> prop, T value)voidset(PropertyValue propValue)protected voidsetImpl(Property prop, java.lang.Object val)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.MutablePropertyValueSourcemerge
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertySetextend, getExtension, newDefaultInstance, newExtension
 - 
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSourcegetNonNull, getNonNull
 
- 
 
- 
- 
- 
Field Detail- 
sourceprotected PropertySet source 
 - 
editprotected PropertySetDiff edit 
 
- 
 - 
Constructor Detail- 
PropertySetConfigpublic PropertySetConfig(PropertySet source, PropertySetDiff editTarget) 
 - 
PropertySetConfigpublic PropertySetConfig(PropertySet source) 
 
- 
 - 
Method Detail- 
createpublic static PropertySetConfig create(PropertySet source) Returns a wrapping PropertySetConfig, unless the source already is one, then just casts it.
 - 
getSourcepublic PropertySet getSource() 
 - 
getEditpublic PropertySetDiff getEdit() 
 - 
createDiffprotected PropertySetDiff createDiff() 
 - 
mergeDiffToSourcepublic void mergeDiffToSource() 
 - 
discardChangespublic void discardChanges() 
 - 
getModifiedpublic java.util.Set<Property<?>> getModified() 
 - 
getpublic <T> T get(Property<T> prop) Description copied from interface:PropertyValueSourceRetrieves the value of the property, or null if this set doesn't contain that property.- Specified by:
- getin interface- PropertyValueSource
 
 - 
getSuperValueprotected <T> T getSuperValue(Property<T> prop) 
 - 
goToSuperprotected boolean goToSuper(Property<?> prop) 
 - 
getOrDefaultpublic <T> T getOrDefault(Property<T> prop) - Specified by:
- getOrDefaultin interface- PropertyValueSource
- Returns:
- The value for prop or Property.getDefaultValue()if not present. Can return null if the value is null.
 
 - 
getOrElsepublic <T> T getOrElse(Property<T> property, T value) Description copied from interface:PropertyValueSourceGet the value for a givenProperty, or else fall back to value if it's not present.- Specified by:
- getOrElsein interface- PropertyValueSource
- Parameters:
- property- The- Propertyfor which a value is to be retrieved.
- value- The value to default to if property isn't present.
- Returns:
- The value of property if present, value if not. Can return null if the value is null.
 
 - 
setImplprotected void setImpl(Property prop, java.lang.Object val) 
 - 
setpublic <T> void set(Property<T> prop, T value) - Specified by:
- setin interface- MutablePropertyValueSource
 
 - 
setpublic void set(PropertyValue propValue) - Specified by:
- setin interface- MutablePropertyValueSource
 
 - 
removepublic void remove(Property<?> prop) - Specified by:
- removein interface- MutablePropertyValueSource
 
 - 
revertpublic void revert(Property<?> prop) - Specified by:
- revertin interface- PropertySetEdit
 
 - 
containspublic boolean contains(Property<?> prop) - Specified by:
- containsin interface- PropertyValueSource
- Returns:
- True if the source contains a value for prop.
 
 - 
isExtendedpublic boolean isExtended(Property<?> prop) Description copied from interface:PropertySetReturns whether this property set contains a value for the prop, and the prop was actually inherited. In other words, this is true if the property is inherited, and an override value is present.- Specified by:
- isExtendedin interface- PropertySet
 
 - 
isInheritedpublic boolean isInherited(Property<?> prop) Description copied from interface:PropertySetIndicates whether the property was inherited from a parent type.- Specified by:
- isInheritedin interface- PropertySet
 
 - 
isModifiedpublic boolean isModified(Property<?> property) - Specified by:
- isModifiedin interface- PropertySetEdit
 
 - 
getPropertiespublic java.util.Collection<Property<?>> getProperties() - Specified by:
- getPropertiesin interface- PropertyValueSource
 
 - 
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- PropertyValueSource
 
 - 
iteratorpublic java.util.Iterator<PropertyValue> iterator() - Specified by:
- iteratorin interface- java.lang.Iterable<PropertyValue>
 
 - 
isRemovedprotected boolean isRemoved(Property<?> prop) 
 - 
changeprotected java.beans.PropertyChangeSupport change() 
 - 
firePropertyChangeprotected void firePropertyChange(Property<?> property, java.lang.Object oldValue, java.lang.Object newValue) 
 - 
addPropertyChangeListenerpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener) - Specified by:
- addPropertyChangeListenerin interface- ObservablePropertySet
 
 - 
removePropertyChangeListenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener) - Specified by:
- removePropertyChangeListenerin interface- ObservablePropertySet
 
 - 
addPropertyChangeListenerpublic void addPropertyChangeListener(Property<?> property, java.beans.PropertyChangeListener listener) - Specified by:
- addPropertyChangeListenerin interface- ObservablePropertySet
 
 - 
removePropertyChangeListenerpublic void removePropertyChangeListener(Property<?> property, java.beans.PropertyChangeListener listener) - Specified by:
- removePropertyChangeListenerin interface- ObservablePropertySet
 
 
- 
 
-