com.monad.homerun.core
Interface Trace

All Known Implementing Classes:
FilterTrace, RuleTrace

public interface Trace

Trace is an interface implemented by various trace objects: rules, filters, etc


Method Summary
 java.lang.String getDesc()
          Returns the text description of the current trace record
 boolean getResult()
          Returns the top-level result of the trace
 boolean hasNext()
          Returns whether there are more trace records
 boolean isValidation()
          Is the trace a validation or execution trace?
 void next()
          Advances the record pointer in the trace
 void rewind()
          Prepares the trace for reading
 void setDesc(java.lang.String desc)
          Sets the current record description
 void setResult(boolean result)
          Sets the top-level trace result
 

Method Detail

rewind

void rewind()
Prepares the trace for reading


hasNext

boolean hasNext()
Returns whether there are more trace records

Returns:
true if more records exist, false otherwise

next

void next()
Advances the record pointer in the trace


isValidation

boolean isValidation()
Is the trace a validation or execution trace?

Returns:
true if a vlaidation trace, false if execution trace

getResult

boolean getResult()
Returns the top-level result of the trace

Returns:
true if trace validation or execution successful

setResult

void setResult(boolean result)
Sets the top-level trace result

Parameters:
result - the trace result

getDesc

java.lang.String getDesc()
Returns the text description of the current trace record

Returns:
desc the current record description

setDesc

void setDesc(java.lang.String desc)
Sets the current record description

Parameters:
desc - the current description to write


Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.