Class BasicAlarmProperty<T>

    • Constructor Detail

      • BasicAlarmProperty

        public BasicAlarmProperty()
      • BasicAlarmProperty

        public BasicAlarmProperty​(AlarmProperty<T> base,
                                  java.lang.String displayKey)
      • BasicAlarmProperty

        public BasicAlarmProperty​(java.lang.String name,
                                  java.lang.Class<? extends T> type,
                                  T defaultVal,
                                  java.lang.String displayKey,
                                  java.lang.String categoryKey,
                                  java.lang.String descKey,
                                  boolean bindable,
                                  boolean advanced)
    • Method Detail

      • getDefaultVal

        public T getDefaultVal()
      • setDefaultVal

        public void setDefaultVal​(T defaultVal)
      • setType

        public void setType​(java.lang.Class<? extends T> type)
      • setName

        public void setName​(java.lang.String name)
      • setDisplayKey

        public void setDisplayKey​(java.lang.String displayKey)
      • setCategoryKey

        public void setCategoryKey​(java.lang.String categoryKey)
      • setDescKey

        public void setDescKey​(java.lang.String descKey)
      • setBindable

        public void setBindable​(boolean bindable)
      • setAdvanced

        public void setAdvanced​(boolean advanced)
      • getType

        public java.lang.Class<? extends T> getType()
        Description copied from interface: Property
        The data type for this property.
        Specified by:
        getType in interface Property<T>
      • getDefaultValue

        public T getDefaultValue()
        Description copied from interface: Property
        The default value for new instances of this property, or null if not applicable.
        Specified by:
        getDefaultValue in interface Property<T>
      • getName

        public java.lang.String getName()
        Description copied from interface: Property
        The "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."
        Specified by:
        getName in interface Property<T>
      • getDisplayKey

        public java.lang.String getDisplayKey()
      • getCategoryKey

        public java.lang.String getCategoryKey()
      • getDescKey

        public java.lang.String getDescKey()
      • isBindable

        public boolean isBindable()
        Description copied from interface: AlarmProperty
        Indicates whether this property is allowed to be bound. If not, only simple values are allowed.
        Specified by:
        isBindable in interface AlarmProperty<T>
      • isAdvanced

        public boolean isAdvanced()
        Description copied from interface: AlarmProperty
        Indicates whether this property should not be shown on basic edit screens.
        Specified by:
        isAdvanced in interface AlarmProperty<T>
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object