Class Operation

  • All Implemented Interfaces:
    java.io.Serializable

    public class Operation
    extends java.lang.Object
    implements java.io.Serializable
    Defines a Core operation which stands for an Action on an ObjectType
    Author:
    Christopher Laszczuk
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Operation()  
      Operation​(com.flower.docs.domain.fact.Action action, com.flower.docs.domain.fact.ObjectType objectType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      com.flower.docs.domain.fact.Action getAction()
      Gets the Action which the operation executes
      com.flower.docs.domain.fact.ObjectType getObjectType()
      Gets the ObjectType
      int hashCode()  
      void setAction​(com.flower.docs.domain.fact.Action action)  
      void setObjectType​(com.flower.docs.domain.fact.ObjectType objectType)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Operation

        public Operation()
      • Operation

        public Operation​(com.flower.docs.domain.fact.Action action,
                         com.flower.docs.domain.fact.ObjectType objectType)
    • Method Detail

      • getAction

        public com.flower.docs.domain.fact.Action getAction()
        Gets the Action which the operation executes
        Returns:
        The action done when the action is executed
      • setAction

        public void setAction​(com.flower.docs.domain.fact.Action action)
      • getObjectType

        public com.flower.docs.domain.fact.ObjectType getObjectType()
        Gets the ObjectType
        Returns:
        The type of object on which the action is executed
      • setObjectType

        public void setObjectType​(com.flower.docs.domain.fact.ObjectType objectType)
      • toString

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

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

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object