Class OperationShape

    • Method Detail

      • accept

        public <R> R accept​(ShapeVisitor<R> cases)
        Description copied from class: Shape
        Dispatches the shape to the appropriate ShapeVisitor method.
        Specified by:
        accept in class Shape
        Type Parameters:
        R - Return type of the accept.
        Parameters:
        cases - NeighborVisitor to use.
        Returns:
        Returns the result.
      • getInput

        public java.util.Optional<ShapeId> getInput()

        Gets the optional shape ID of the input of the operation.

        Returns:
        Returns the optional shape ID.
      • getOutput

        public java.util.Optional<ShapeId> getOutput()

        Gets the optional shape ID of the output of the operation.

        Returns:
        Returns the optional shape ID.
      • getErrors

        public java.util.List<ShapeId> getErrors​(ServiceShape service)

        Gets a list of the error shape IDs the operation can encounter, including any common errors of a service.

        No validation is performed here to ensure that the operation is actually bound to the given service shape.

        Returns:
        Returns the errors.
        See Also:
        OperationIndex.getErrors(ToShapeId, ToShapeId)
      • equals

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