Class BasicAlarmDefinition
- java.lang.Object
-
- com.inductiveautomation.ignition.common.config.BasicPropertySet
-
- com.inductiveautomation.ignition.common.alarming.config.BasicAlarmDefinition
-
- All Implemented Interfaces:
AlarmDefinition
,Countable
,Extendable<PropertySet>
,Mergable<PropertySet>
,MutablePropertyValueSource
,ObservablePropertySet
,PropertySet
,PropertyValueSource
,java.io.Serializable
,java.lang.Iterable<PropertyValue>
public class BasicAlarmDefinition extends BasicPropertySet implements AlarmDefinition
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySet
BasicPropertySet.Builder
-
-
Field Summary
-
Fields inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
EMPTY
-
-
Constructor Summary
Constructors Constructor Description BasicAlarmDefinition()
BasicAlarmDefinition(AlarmDefinition copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.Map<Property<?>,BoundAlarmProperty>
getBoundProperties()
BoundAlarmProperty
getBoundProperty(Property<?> property)
java.lang.String
getName()
java.util.Collection<Property<?>>
getProperties()
protected java.lang.Object
getRaw(Property<?> prop)
boolean
isPropertyBound(Property<?> prop)
void
merge(PropertySet other, boolean localOnly)
Merges the values from other collection into this one.void
remove(Property<?> prop)
<T> void
set(Property<T> prop, T value)
void
set(PropertyValue propValue)
void
setBoundProperties(java.util.Map<Property<?>,BoundAlarmProperty> boundProperties)
void
setBoundProperty(Property<?> property, BoundAlarmProperty value)
void
setName(java.lang.String name)
java.lang.String
toString()
-
Methods inherited from class com.inductiveautomation.ignition.common.config.BasicPropertySet
addPropertyChangeListener, addPropertyChangeListener, change, coerceValue, contains, firePropertyChange, get, getCount, getExtension, getOrDefault, getOrElse, getRawValueMap, getValues, isExtended, isInherited, iterator, of, removePropertyChangeListener, removePropertyChangeListener, setDirect, setImpl, setRawValueMap
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertySet
extend, getExtension, isExtended, isInherited, newDefaultInstance, newExtension
-
Methods inherited from interface com.inductiveautomation.ignition.common.config.PropertyValueSource
contains, get, getNonNull, getNonNull, getOrDefault, getOrElse, getValues
-
-
-
-
Constructor Detail
-
BasicAlarmDefinition
public BasicAlarmDefinition()
-
BasicAlarmDefinition
public BasicAlarmDefinition(AlarmDefinition copy)
-
-
Method Detail
-
getBoundProperties
public java.util.Map<Property<?>,BoundAlarmProperty> getBoundProperties()
-
setBoundProperties
public void setBoundProperties(java.util.Map<Property<?>,BoundAlarmProperty> boundProperties)
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceAlarmDefinition
-
setName
public void setName(java.lang.String name)
- Specified by:
setName
in interfaceAlarmDefinition
-
getRaw
protected java.lang.Object getRaw(Property<?> prop)
- Overrides:
getRaw
in classBasicPropertySet
-
isPropertyBound
public boolean isPropertyBound(Property<?> prop)
- Specified by:
isPropertyBound
in interfaceAlarmDefinition
-
set
public <T> void set(Property<T> prop, T value)
- Specified by:
set
in interfaceMutablePropertyValueSource
- Overrides:
set
in classBasicPropertySet
-
set
public void set(PropertyValue propValue)
- Specified by:
set
in interfaceMutablePropertyValueSource
- Overrides:
set
in classBasicPropertySet
-
setBoundProperty
public void setBoundProperty(Property<?> property, BoundAlarmProperty value)
- Specified by:
setBoundProperty
in interfaceAlarmDefinition
-
getBoundProperty
public BoundAlarmProperty getBoundProperty(Property<?> property)
- Specified by:
getBoundProperty
in interfaceAlarmDefinition
-
remove
public void remove(Property<?> prop)
- Specified by:
remove
in interfaceMutablePropertyValueSource
- Overrides:
remove
in classBasicPropertySet
-
getProperties
public java.util.Collection<Property<?>> getProperties()
- Specified by:
getProperties
in interfacePropertyValueSource
- Overrides:
getProperties
in classBasicPropertySet
-
toString
public java.lang.String toString()
- Overrides:
toString
in classBasicPropertySet
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classBasicPropertySet
-
merge
public void merge(PropertySet other, boolean localOnly)
Description copied from interface:Mergable
Merges the values from other collection into this one. Replaces any currently existing value with those from the other set.- Specified by:
merge
in interfaceMergable<PropertySet>
- Specified by:
merge
in interfaceMutablePropertyValueSource
-
-