java.lang.Object
com.persequor.saga.modules.visualeditor.extension.nodes.NodeType
com.persequor.saga.modules.visualeditor.service.extension.nodes.ExtensionNode
All Implemented Interfaces:
Comparable<NodeType>

public class ExtensionNode extends NodeType
  • Field Details

  • Constructor Details

    • ExtensionNode

      public ExtensionNode(javax.inject.Provider<?> instanceProvider, Method reflectedMethod, NameResolver nameResolver)
  • Method Details

    • initSockets

      public void initSockets()
    • getName

      public String getName()
      Description copied from class: NodeType
      Returns the JavaScript class name of the node, override to change the class name of the node.
      Overrides:
      getName in class NodeType
      Returns:
      The JavaScript class name of the node.
    • getNodeLabel

      public String getNodeLabel()
      Overrides:
      getNodeLabel in class NodeType
    • getMenuGroup

      public List<String> getMenuGroup()
      Description copied from class: NodeType
      Override this method to change the group where the node will appear in the context menu.
      Overrides:
      getMenuGroup in class NodeType
      Returns:
      List of strings that organises the node in a hierarchy in the context menu.
    • setSingleNode

      public void setSingleNode(boolean singleNode)
    • getOutputValue

      public EditorData getOutputValue(EditorData inputValue) throws NodeOperationException
      Description copied from class: NodeType
      Will be run on the IEditorProcessor.process(EditorProcessingRequest) context to execute nodes custom logic. The input value can come from a node connection, a user input or the default value for the input.
      Overrides:
      getOutputValue in class NodeType
      Parameters:
      inputValue - The input values defined by the node.
      Returns:
      The output value for the current node.
      Throws:
      NodeOperationException - If the operation to compute the output value fails.