Class AttributeChangeEvent

  • All Implemented Interfaces:
    Serializable

    public class AttributeChangeEvent
    extends EventObject
    This interface representes a listener on the attribute changes.
    Version:
    17.0 2020-01-04 14:41:51
    Author:
    Stéphane GALLAND
    See Also:
    Serialized Form
    Maven Group Id:
    org.arakhne.afc.advanced
    Maven Artifact Id:
    attributes
    • Constructor Detail

      • AttributeChangeEvent

        public AttributeChangeEvent​(Object source,
                                    AttributeChangeEvent.Type type,
                                    String oldName,
                                    AttributeValue oldValue,
                                    String currentName,
                                    AttributeValue currentValue)
        Create an event that describes a value update only.
        Parameters:
        source - the source of the event.
        type - the type of event.
        oldName - the previous name.
        oldValue - the previous value.
        currentName - the current name.
        currentValue - the current value.
    • Method Detail

      • getName

        @Pure
        public String getName()
        Replies the name of the changed attributes.
        Returns:
        the name attribute, or null if this event has no name attribute.
      • getOldName

        @Pure
        public String getOldName()
        Replies the old name of the changed attributes.
        Returns:
        the old name attribute, or null if this event has no old name attribute.
      • getOldValue

        @Pure
        public AttributeValue getOldValue()
        Replies the old value of the attribute.
        Returns:
        the attribute value or null
      • getValue

        @Pure
        public AttributeValue getValue()
        Replies the new value of the attribute.
        Returns:
        the attribute value, never null
      • getAttribute

        @Pure
        public Attribute getAttribute()
        Replies the changed attribute.
        Returns:
        the attribute, never null
      • getType

        @Pure
        public AttributeChangeEvent.Type getType()
        Replies the type of event.
        Returns:
        the type of the event, neither null