Module aeonics.core

Class Step.Template

    • Constructor Detail

      • Template

        public Template​(java.lang.Class<? extends Step.Type> target,
                        java.lang.Class<? extends Step> type,
                        java.lang.Class<? extends Step> category)
        Creates a new step template
        Parameters:
        target - the target entity target type
        type - the item type
        category - the item category
    • Method Detail

      • inputs

        public java.util.List<Channel> inputs()
        Returns the list of input channels for this flow item
        Returns:
        the list of input channels for this flow item
      • input

        public <T extends Step.Template> T input​(Channel channel)
        Adds an input channel
        Type Parameters:
        T - this type
        Parameters:
        channel - the channel to add
        Returns:
        this
      • outputs

        public java.util.List<Channel> outputs()
        Returns the list of output channels for this flow item
        Returns:
        the list of output channels for this flow item
      • output

        public <T extends Step.Template> T output​(Channel channel)
        Adds an output channel
        Type Parameters:
        T - this type
        Parameters:
        channel - the channel to add
        Returns:
        this
      • icon

        public java.lang.String icon()
        Returns the name of the icon used to render this step visually.
        Returns:
        the icon name
      • icon

        public <T extends Step.Template> T icon​(java.lang.String value)
        Sets the name of the icon used to render this step visually.
        Type Parameters:
        T - the template type
        Parameters:
        value - the icon
        Returns:
        this
      • role

        public Step.ROLE role()
        Returns the role of this step in the flow.
        Returns:
        the role of this step in the flow
      • export

        public Data export()
        Description copied from interface: Exportable
        Renders this class instance to a simple data structure for rendering client-side.
        Specified by:
        export in interface Documented
        Specified by:
        export in interface Exportable
        Overrides:
        export in class Template<Step.Type>
        Returns:
        a public data representation of this class instance