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