Class WorkflowExpression.Item

java.lang.Object
ai.djl.serving.workflow.WorkflowExpression.Item
Enclosing class:
WorkflowExpression

public static class WorkflowExpression.Item extends Object
An item in the expression which contains either a string or another WorkflowExpression.
  • Constructor Details

  • Method Details

    • getString

      public String getString()
      Returns the string value or throws an exception if it does not contain a string.
      Returns:
      the string value or throws an exception if it does not contain a string
    • getExpression

      public WorkflowExpression getExpression()
      Returns the expression value or throws an exception if it does not contain an expression.
      Returns:
      the expression value or throws an exception if it does not contain an expression
    • getInput

      public ai.djl.modality.Input getInput()
      Returns the input value or throws an exception if it does not contain an input.
      Returns:
      the input value or throws an exception if it does not contain an input
    • getItemType

      public WorkflowExpression.Item.ItemType getItemType()
      Returns the type of item.
      Returns:
      the type of item
    • getList

      public List<WorkflowExpression.Item> getList()
      Returns the expression value as a list.
      Returns:
      the expression value as a list.