org.syrup.helpers
Class LogEntryTemplateImpl

java.lang.Object
  extended byorg.syrup.helpers.TemplateImpl
      extended byorg.syrup.helpers.LogEntryTemplateImpl
All Implemented Interfaces:
LogEntry, LogEntryTemplate, Template

public class LogEntryTemplateImpl
extends TemplateImpl
implements LogEntryTemplate

A generic LogEntryTemplateImpl implementation.

Author:
Robbert van Dalen

Field Summary
 
Fields inherited from class org.syrup.helpers.TemplateImpl
operators, values
 
Fields inherited from interface org.syrup.LogEntry
DONE, ENDED, EVENT, FAILED, GOT, IN_1, IN_2, MATCHED, NEW, OUT_1, OUT_2, PANIC, RESET, REWIRED, STARTED, STOPPED
 
Fields inherited from interface org.syrup.Template
EQUAL, GREATER, GREATER_EQUAL, IGNORE, LESS, LESS_EQUAL, LIKE, NOT, NOT_LIKE
 
Constructor Summary
LogEntryTemplateImpl(java.lang.String[] specification)
          Constructor for the LogEntryTemplateImpl object
 
Method Summary
 int event_match()
          Returns the qualifier used to match the event attribute.
 int event()
           
 int key_match()
          Returns the qualifier used to match the key attribute.
 java.lang.String key()
           
 int time_match()
          Returns the qualifier used to match the time attribute.
 long time()
           
 int worker_match()
          Returns the qualifier used to match the worker attribute.
 java.lang.String worker()
           
 
Methods inherited from class org.syrup.helpers.TemplateImpl
operator, to_boolean, to_date, to_number
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogEntryTemplateImpl

public LogEntryTemplateImpl(java.lang.String[] specification)
                     throws java.lang.Exception
Constructor for the LogEntryTemplateImpl object

Parameters:
specification - The query specification
Method Detail

time_match

public int time_match()
Description copied from interface: LogEntryTemplate
Returns the qualifier used to match the time attribute.

Specified by:
time_match in interface LogEntryTemplate
Returns:
The qualifier used to match the time attribute.

key_match

public int key_match()
Description copied from interface: LogEntryTemplate
Returns the qualifier used to match the key attribute.

Specified by:
key_match in interface LogEntryTemplate
Returns:
The qualifier used to match the key attribute.

event_match

public int event_match()
Description copied from interface: LogEntryTemplate
Returns the qualifier used to match the event attribute.

Specified by:
event_match in interface LogEntryTemplate
Returns:
The qualifier used to match the event attribute.

worker_match

public int worker_match()
Description copied from interface: LogEntryTemplate
Returns the qualifier used to match the worker attribute.

Specified by:
worker_match in interface LogEntryTemplate
Returns:
The qualifier used to match the worker attribute.

time

public long time()
Specified by:
time in interface LogEntry

key

public java.lang.String key()
Specified by:
key in interface LogEntry

event

public int event()
Specified by:
event in interface LogEntry

worker

public java.lang.String worker()
Specified by:
worker in interface LogEntry