com.monad.homerun.filter
Class FilterTrace

java.lang.Object
  extended by com.monad.homerun.filter.FilterTrace
All Implemented Interfaces:
Trace, java.io.Serializable

public class FilterTrace
extends java.lang.Object
implements Trace, java.io.Serializable

Author:
richard FilterTrace is a structure holding detailed filter validation or execution trace data. Implemented as a simple list of trace records
See Also:
Serialized Form

Field Summary
static int FILTER_TYPE
           
static int SCREEN_TYPE
           
 
Constructor Summary
FilterTrace()
           
FilterTrace(boolean validation)
           
 
Method Summary
 int addSubTrace(FilterTrace subTrace)
           
 java.lang.String getDesc()
          Returns the text description of the current trace record
 boolean getResult()
          Returns the top-level result of the trace
 int getStatement()
           
 FilterTrace getSubTrace(int index)
           
 int getTerm()
           
 java.lang.String getTermName()
           
 int getType()
           
 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
 void setStatement(int stmt)
           
 void setTerm(int term)
           
 void setTermName(java.lang.String name)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCREEN_TYPE

public static final int SCREEN_TYPE
See Also:
Constant Field Values

FILTER_TYPE

public static final int FILTER_TYPE
See Also:
Constant Field Values
Constructor Detail

FilterTrace

public FilterTrace()

FilterTrace

public FilterTrace(boolean validation)
Method Detail

rewind

public void rewind()
Description copied from interface: Trace
Prepares the trace for reading

Specified by:
rewind in interface Trace

hasNext

public boolean hasNext()
Description copied from interface: Trace
Returns whether there are more trace records

Specified by:
hasNext in interface Trace
Returns:
true if more records exist, false otherwise

next

public void next()
Description copied from interface: Trace
Advances the record pointer in the trace

Specified by:
next in interface Trace

isValidation

public boolean isValidation()
Description copied from interface: Trace
Is the trace a validation or execution trace?

Specified by:
isValidation in interface Trace
Returns:
true if a vlaidation trace, false if execution trace

getResult

public boolean getResult()
Description copied from interface: Trace
Returns the top-level result of the trace

Specified by:
getResult in interface Trace
Returns:
true if trace validation or execution successful

getSubTrace

public FilterTrace getSubTrace(int index)

addSubTrace

public int addSubTrace(FilterTrace subTrace)

setResult

public void setResult(boolean result)
Description copied from interface: Trace
Sets the top-level trace result

Specified by:
setResult in interface Trace
Parameters:
result - the trace result

getStatement

public int getStatement()

getType

public int getType()

getTerm

public int getTerm()

getTermName

public java.lang.String getTermName()

getDesc

public java.lang.String getDesc()
Description copied from interface: Trace
Returns the text description of the current trace record

Specified by:
getDesc in interface Trace
Returns:
desc the current record description

setStatement

public void setStatement(int stmt)

setType

public void setType(int type)

setTerm

public void setTerm(int term)

setTermName

public void setTermName(java.lang.String name)

setDesc

public void setDesc(java.lang.String desc)
Description copied from interface: Trace
Sets the current record description

Specified by:
setDesc in interface Trace
Parameters:
desc - the current description to write


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