ch.tatool.core.data
Class Result.ResultProperty

java.lang.Object
  extended by ch.tatool.core.data.GenericProperty<String>
      extended by ch.tatool.core.data.StringProperty
          extended by 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.


Field Summary
static String FAILURE_RESULT
           
static String SUCCESS_RESULT
           
 
Constructor Summary
Result.ResultProperty()
           
 
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
 

Field Detail

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
Constructor Detail

Result.ResultProperty

public Result.ResultProperty()
Method Detail

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.