Class UpdatedObjEventType


  • public final class UpdatedObjEventType
    extends EventType
    This class represents an event type an object was updated.
    • Constructor Detail

      • UpdatedObjEventType

        public UpdatedObjEventType()
        Constructor used for deserialization.
      • UpdatedObjEventType

        public UpdatedObjEventType​(String newnamespace,
                                   String newclassName)
        Constructor
        Parameters:
        newnamespace - Namespace of class
        newclassName - Class name of class
      • UpdatedObjEventType

        public UpdatedObjEventType​(MetaClassID newclassID)
        Constructor
        Parameters:
        newclassID - Class ID of condition.
      • UpdatedObjEventType

        public UpdatedObjEventType​(Class<?> stubClazz)
        Constructor
        Parameters:
        stubClazz - Stub of class being used. If it is a class being registered, only the name will be set.
    • Method Detail

      • init

        public void init​(AccountID accountID,
                         PasswordCredential credential,
                         String newnamespace,
                         LogicModuleAPI lm)
        Description copied from class: EventType
        Initialize (if needed) IDs from specifications (example: className -> class ID)
        Specified by:
        init in class EventType
        Parameters:
        accountID - ID of account registering the Event Type
        credential - Credentials of account registering the Event Type
        newnamespace - Namespace being used to register events. Used for registration of classes and ECAs at once.
        lm - Reference to LogicModule to seek for IDs and so on.
      • getClassID

        public MetaClassID getClassID()
        Get the DeletedObjEventCondition::classID
        Returns:
        the classID
      • setClassID

        public void setClassID​(MetaClassID newclassID)
        Set the DeletedObjEventCondition::classID
        Parameters:
        newclassID - the classID to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • checkIsEventType

        public boolean checkIsEventType​(EventMessage message)
        Description copied from class: EventType
        Checks if event received belongs to this event type.
        Specified by:
        checkIsEventType in class EventType
        Parameters:
        message - Event message
        Returns:
        TRUE if message belongs to this event type. FALSE otherwise.
      • getNamespace

        public String getNamespace()
        Returns:
        the namespace
      • setNamespace

        public void setNamespace​(String newnamespace)
        Parameters:
        newnamespace - the namespace to set
      • getClassName

        public String getClassName()
        Returns:
        the className
      • setClassName

        public void setClassName​(String newclassName)
        Parameters:
        newclassName - the className to set