Class NodeType

java.lang.Object
com.aquima.interactions.flow.NodeType
All Implemented Interfaces:
Serializable

public final class NodeType extends Object implements Serializable
This class defines the available node types of the flow engine.
Since:
5.0
Author:
O. Kerpershoek, F. van der Meer
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final NodeType
    This member defines the static ACTION type.
    static final int
    This member defines the static ACTION type id.
    static final NodeType
    This member defines the static CONDITION type.
    static final int
    This member defines the static CONDITION type id.
    static final NodeType
    This member defines the static END type.
    static final int
    This member defines the static END type id.
    static final NodeType
    This member defines the static FLOW type.
    static final int
    This member defines the static EVENT type id.
    static final NodeType
    This member defines the static FLOW type.
    static final int
    This member defines the static FLOW type id.
    static final NodeType
    This member defines the static RESULT type.
    static final int
    This member defines the static RESULT type id.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    NodeType(int id, String name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    This method returns the unique ID of the node type.
    This method returns the unique name of the node type.
    int
     
     
    static NodeType
    valueOf(int id)
    This method can be used to lookup a NodeType of an id.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • END_ID

      public static final int END_ID
      This member defines the static END type id.
      See Also:
    • CONDITION_ID

      public static final int CONDITION_ID
      This member defines the static CONDITION type id.
      See Also:
    • ACTION_ID

      public static final int ACTION_ID
      This member defines the static ACTION type id.
      See Also:
    • RESULT_ID

      public static final int RESULT_ID
      This member defines the static RESULT type id.
      See Also:
    • FLOW_ID

      public static final int FLOW_ID
      This member defines the static FLOW type id.
      See Also:
    • EVENT_ID

      public static final int EVENT_ID
      This member defines the static EVENT type id.
      See Also:
    • END

      public static final NodeType END
      This member defines the static END type.
    • CONDITION

      public static final NodeType CONDITION
      This member defines the static CONDITION type.
    • ACTION

      public static final NodeType ACTION
      This member defines the static ACTION type.
    • RESULT

      public static final NodeType RESULT
      This member defines the static RESULT type.
    • FLOW

      public static final NodeType FLOW
      This member defines the static FLOW type.
    • EVENT

      public static final NodeType EVENT
      This member defines the static FLOW type.
  • Constructor Details

    • NodeType

      protected NodeType(int id, String name)
  • Method Details

    • valueOf

      public static NodeType valueOf(int id)
      This method can be used to lookup a NodeType of an id.
      Parameters:
      id - integer containing the id of the node type that should be returned.
      Returns:
      NodeType instance for the specified id.
    • getId

      public int getId()
      This method returns the unique ID of the node type.
      Returns:
      the unique ID of the node type.
    • getName

      public String getName()
      This method returns the unique name of the node type.
      Returns:
      the unique name of the node type.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object