ch.tatool.core.data
Class Result.ResultProperty
java.lang.Object
ch.tatool.core.data.GenericProperty<String>
ch.tatool.core.data.StringProperty
ch.tatool.core.data.Result.ResultProperty
- All Implemented Interfaces:
- Property<String>
- Enclosing class:
- Result
public static class Result.ResultProperty
- extends StringProperty
Adds support for setting the result as a boolean to a standard StringProperty object.
|
Method Summary |
boolean |
isFailure(Node node)
Find out if the executable result was a failure. |
boolean |
isSuccess(Node node)
Find out if the executable result was successful. |
void |
setValue(Node node,
boolean success)
Set the result, either success or failure. |
| Methods inherited from class ch.tatool.core.data.GenericProperty |
clearValue, clearValue, clearValue, copyValue, copyValue, ensureValue, ensureValue, ensureValue, ensureValue, getPropertyName, getPropertyType, getStringValue, getStringValue, getStringValue, getStringValue, getValue, getValue, getValue, getValue, getValue, getValue, isSet, isSet, isSet, restoreValue, restoreValue, setStringValue, setStringValue, setValue, setValue, setValue, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SUCCESS_RESULT
public static final String SUCCESS_RESULT
- See Also:
- Constant Field Values
FAILURE_RESULT
public static final String FAILURE_RESULT
- See Also:
- Constant Field Values
Result.ResultProperty
public Result.ResultProperty()
setValue
public void setValue(Node node,
boolean success)
- Set the result, either success or failure.
isSuccess
public boolean isSuccess(Node node)
- Find out if the executable result was successful.
- Parameters:
node -
- Returns:
isFailure
public boolean isFailure(Node node)
- Find out if the executable result was a failure.
- Parameters:
node -
- Returns:
Copyright © 2012. All Rights Reserved.