public class GetAlgorithmInfoOperation extends AbstractOperation
AbstractOperation.OperationConstructor, AbstractOperation.OperationName
suppData, uuidOperationComparator
Constructor and Description |
---|
GetAlgorithmInfoOperation()
Creates a new algorithm info operation.
|
Modifier and Type | Method and Description |
---|---|
void |
addToAnswer(java.lang.String answer)
Set the operation answer text.
|
void |
endOperation()
End operation successfully.
|
java.lang.String |
getAnswer()
Returns the operation answer text.
|
java.lang.Object |
getArgument(int index)
Returns argument that was passed while constructing instance.
|
int |
getArgumentCount()
Returns number of arguments that were passed while constructing this instance.
|
java.lang.String |
toString()
Return a string representation of this operation.
|
void |
updateFrom(AbstractOperation operation)
Update the error code of this operation from another operation.
|
boolean |
wasSuccessful()
Returns true if this operation has finished successfuly.
|
appendArguments, appendErrorCode, clearSurplusData, clone, containsParameter, createOperation, endOperation, equals, getAnnotatedConstructor, getAnnotatedConstructor, getArgumentString, getConstructorArgumentDescriptions, getConstructorArgumentDescriptions, getConstructorArguments, getConstructorArguments, getConstructorDescription, getErrorCode, getName, getName, getOperationID, getParameter, getParameter, getParameter, getParameterCount, getParameterMap, getParameterNames, getRequiredParameter, getRequiredParameter, hashCode, isErrorCode, isFinished, removeParameter, setParameter
public GetAlgorithmInfoOperation()
public java.lang.String getAnswer()
public void addToAnswer(java.lang.String answer)
answer
- the new operation answerpublic java.lang.Object getArgument(int index) throws java.lang.IndexOutOfBoundsException
AbstractOperation
getArgument
in class AbstractOperation
index
- zero-based index of an argument passed to constructorjava.lang.IndexOutOfBoundsException
- if index parameter is out of rangepublic int getArgumentCount()
AbstractOperation
getArgumentCount
in class AbstractOperation
public void updateFrom(AbstractOperation operation) throws java.lang.ClassCastException
AbstractOperation
updateFrom
in class AbstractOperation
operation
- the source operation from which to get the updatejava.lang.ClassCastException
- if the specified operation is incompatible with this operationpublic boolean wasSuccessful()
AbstractOperation
wasSuccessful
in class AbstractOperation
public void endOperation()
AbstractOperation
endOperation
in class AbstractOperation
public java.lang.String toString()
toString
in class AbstractOperation