Class WellKnownAlarmProperties<T>
java.lang.Object
com.inductiveautomation.ignition.common.alarming.config.WellKnownAlarmProperties<T>
- All Implemented Interfaces:
AlarmProperty<T>,DescriptiveProperty<T>,Property<T>,Serializable
- Direct Known Subclasses:
AlarmModeProperties,CommonAlarmProperties
This class is used as a base for enum-like static definitions of AlarmProperties. This is to create objects that are
very much like enums, but with full generic type support. In particular, it supports name() and values(), the latter
of which will reflectively look for statically defined members in the derived class.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionOnly for serialization.protectedWellKnownAlarmProperties(String simpleName, Class<T> dtype, T defaultVal) protectedWellKnownAlarmProperties(String simpleName, Class<T> dtype, T defaultVal, boolean bindable) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe default value for new instances of this property, or null if not applicable.getName()The "name" of this property.getType()The data type for this property.inthashCode()booleanIndicates whether this property should not be shown on basic edit screens.booleanIndicates whether this property is allowed to be bound.name()toString()protected static AlarmProperty<?>[]values(Class<? extends WellKnownAlarmProperties> c) Can be called by an implementation of values() in sub classes to dynamically get the declared static fields.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.common.config.DescriptiveProperty
getCategory, getDescription, getDisplayName
-
Constructor Details
-
WellKnownAlarmProperties
public WellKnownAlarmProperties()Only for serialization. -
WellKnownAlarmProperties
-
WellKnownAlarmProperties
-
-
Method Details
-
name
-
getName
Description copied from interface:PropertyThe "name" of this property. Should be descriptive, but also unique. To this end, it is encouraged to make your keys fully qualified by prefixing them with your module id. For example: "mymod.MyProperty". Properties defined by the system start with "sys." -
getType
Description copied from interface:PropertyThe data type for this property. -
isBindable
public boolean isBindable()Description copied from interface:AlarmPropertyIndicates whether this property is allowed to be bound. If not, only simple values are allowed.- Specified by:
isBindablein interfaceAlarmProperty<T>
-
isAdvanced
public boolean isAdvanced()Description copied from interface:AlarmPropertyIndicates whether this property should not be shown on basic edit screens.- Specified by:
isAdvancedin interfaceAlarmProperty<T>
-
getDefaultValue
Description copied from interface:PropertyThe default value for new instances of this property, or null if not applicable.- Specified by:
getDefaultValuein interfaceProperty<T>
-
values
Can be called by an implementation of values() in sub classes to dynamically get the declared static fields. -
toString
-
equals
-
hashCode
public int hashCode()
-