Package csw.params.commands
Class CommandResponse$
- java.lang.Object
-
- csw.params.commands.CommandResponse$
-
public class CommandResponse$ extends java.lang.Object
The nature of CommandResponse as an intermediate response of command execution or a final response which could be positive or negative
-
-
Field Summary
Fields Modifier and Type Field Description static CommandResponse$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description CommandResponse$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isFinal(CommandResponse.SubmitResponse sr)
Tests a response to determine if it is a final command stateboolean
isIntermediate(CommandResponse.SubmitResponse sr)
Tests a response to determine if it is an intermediate responseboolean
isNegative(CommandResponse.SubmitResponse sr)
Tests a response to determine if it is a negative responseboolean
isPositive(CommandResponse.OnewayResponse or)
Test a OnewayResponse to determine if it is a positive responseboolean
isPositive(CommandResponse.SubmitResponse sr)
Test a response to determine if it is a positive response
-
-
-
Field Detail
-
MODULE$
public static final CommandResponse$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
isFinal
public boolean isFinal(CommandResponse.SubmitResponse sr)
Tests a response to determine if it is a final command state- Parameters:
sr
- response for testing- Returns:
- true if it is final
-
isPositive
public boolean isPositive(CommandResponse.SubmitResponse sr)
Test a response to determine if it is a positive response- Parameters:
sr
- response for testing- Returns:
- true if it is positive
-
isPositive
public boolean isPositive(CommandResponse.OnewayResponse or)
Test a OnewayResponse to determine if it is a positive response- Parameters:
or
- a OnewayResponse for testing- Returns:
- true if positive, false otherwise
-
isNegative
public boolean isNegative(CommandResponse.SubmitResponse sr)
Tests a response to determine if it is a negative response- Parameters:
sr
- response for testing- Returns:
- true if it is negative
-
isIntermediate
public boolean isIntermediate(CommandResponse.SubmitResponse sr)
Tests a response to determine if it is an intermediate response- Parameters:
sr
- response for testing- Returns:
- returns true if it is intermediate
-
-