Class AbstractTag

    • Constructor Detail

      • AbstractTag

        protected AbstractTag()
      • AbstractTag

        protected AbstractTag​(java.lang.String name)
    • Method Detail

      • getChild

        public Tag getChild​(java.lang.String name)
      • removeChild

        public Tag removeChild​(java.lang.String name)
      • getName

        public java.lang.String getName()
        Description copied from interface: Tag
        Returns the name of the tag.
        Specified by:
        getName in interface Tag
      • setName

        public void setName​(java.lang.String name)
        Description copied from interface: MutableTag
        Sets the name of this tag
        Specified by:
        setName in interface MutableTag
      • getCurrentValue

        public QualifiedValue getCurrentValue()
        Description copied from interface: Tag
        Returns the value in qualified form- along with quality and timestamp.
        Specified by:
        getCurrentValue in interface Tag
      • setCurrentValue

        public void setCurrentValue​(QualifiedValue value)
                             throws java.lang.ClassCastException
        Description copied from interface: MutableTag
        Sets this tags value. Will throw an ClassCastException if the value cannot be coerced into the datatype of this tag.
        Specified by:
        setCurrentValue in interface MutableTag
        Throws:
        java.lang.ClassCastException
      • setValue

        public void setValue​(TagValue tv)
                      throws java.lang.ClassCastException
        Throws:
        java.lang.ClassCastException
      • coerceValue

        protected QualifiedValue coerceValue​(QualifiedValue value)
                                      throws java.lang.ClassCastException
        Coerces the value inside the argument QualifiedValue to this tag's datatype, if that value is not null.
        Throws:
        java.lang.ClassCastException
      • getDataType

        public DataType getDataType()
        Description copied from interface: Tag
        Returns the datatype of this tag's value property
        Specified by:
        getDataType in interface Tag
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: Tag
        Returns the enabled bit for this tag
        Specified by:
        isEnabled in interface Tag
      • setEnabled

        public void setEnabled​(boolean en)
        Description copied from interface: MutableTag
        Sets this tag enabled/disabled
        Specified by:
        setEnabled in interface MutableTag
      • setDataType

        public void setDataType​(DataType type)
        Description copied from interface: MutableTag
        Sets the data type for this tag. The existing value will most likely be lost.
        Specified by:
        setDataType in interface MutableTag
      • getChildren

        public java.util.List<? extends Tag> getChildren()
      • addChild

        public void addChild​(Tag child)
      • getAttribute

        public QualifiedValue getAttribute​(Property<?> prop)
        Description copied from interface: Tag
        Gets the value of the given tag attribute.
        Specified by:
        getAttribute in interface Tag
      • setAttribute

        public void setAttribute​(Property<?> prop,
                                 QualifiedValue value)
                          throws java.lang.ClassCastException
        Description copied from interface: MutableTag
        Sets the value of the given tag attribute. If the type of the argument is incorrect, an ClassCastException will be thrown.
        Specified by:
        setAttribute in interface MutableTag
        Throws:
        java.lang.ClassCastException
      • getRawAttributes

        public java.util.Map<Property<?>,​java.lang.Object> getRawAttributes()
      • setRawAttributes

        public void setRawAttributes​(java.util.Map<Property<?>,​java.lang.Object> value)
      • getAccessRights

        public AccessRightsType getAccessRights()
        Description copied from interface: Tag
        Gets the type of access rights for this tag
        Specified by:
        getAccessRights in interface Tag
      • isAlarmingSupported

        public boolean isAlarmingSupported()
      • compareTo

        public int compareTo​(Tag that)
        Specified by:
        compareTo in interface java.lang.Comparable<Tag>
      • main

        public static void main​(java.lang.String[] agrs)