JIVE Platform
Release 0.2.2

edu.buffalo.cse.jive.ui.search.queries
Class ObjectCreatedSearchQuery.NewEventExporter

java.lang.Object
  extended by edu.buffalo.cse.jive.ui.search.queries.ObjectCreatedSearchQuery.NewEventExporter
All Implemented Interfaces:
Event.Exporter, NewEvent.Exporter
Enclosing class:
ObjectCreatedSearchQuery

protected class ObjectCreatedSearchQuery.NewEventExporter
extends Object
implements NewEvent.Exporter

An exporter used to examine NewEvents and to determine if the event is a object creation represented by a JiveSearchPattern.


Field Summary
protected  boolean matchFound
          A flag used to determine if a match was found by the recordExporter.
protected  ContourCreationRecord.Exporter recordExporter
          An exporter used to examine ContourCreationRecords and to determine if any match the search pattern.
 
Constructor Summary
protected ObjectCreatedSearchQuery.NewEventExporter()
           
 
Method Summary
 void addContourCreationRecords(List<ContourCreationRecord> creationRecords)
          Add the list of created contours.
 void addEnclosingContourID(ContourID enclosingID)
          Add the enclosing contour ID.
 void addNumber(long n)
          Get the sequence number of this event.
 void addThreadID(ThreadID thread)
          Adds the thread on which this event took place.
 boolean checkForMatch(JiveSearchPattern pattern)
          Returns whether the event is a object creation represented by the supplied JiveSearchPattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matchFound

protected boolean matchFound
A flag used to determine if a match was found by the recordExporter.


recordExporter

protected ContourCreationRecord.Exporter recordExporter
An exporter used to examine ContourCreationRecords and to determine if any match the search pattern.

Constructor Detail

ObjectCreatedSearchQuery.NewEventExporter

protected ObjectCreatedSearchQuery.NewEventExporter()
Method Detail

addContourCreationRecords

public void addContourCreationRecords(List<ContourCreationRecord> creationRecords)
Description copied from interface: NewEvent.Exporter
Add the list of created contours. These are specified in order from most specific (deepest nested) to most general.

Specified by:
addContourCreationRecords in interface NewEvent.Exporter
Parameters:
creationRecords - created contour list
See Also:
NewEvent.Importer.provideContourCreationRecords()

addEnclosingContourID

public void addEnclosingContourID(ContourID enclosingID)
Description copied from interface: NewEvent.Exporter
Add the enclosing contour ID.

Specified by:
addEnclosingContourID in interface NewEvent.Exporter
See Also:
NewEvent.Importer.provideEnclosingContourID()

addNumber

public void addNumber(long n)
Description copied from interface: Event.Exporter
Get the sequence number of this event. Each event has a unique sequence number with respect to a single execution.

Specified by:
addNumber in interface Event.Exporter
Parameters:
n - the event number

addThreadID

public void addThreadID(ThreadID thread)
Description copied from interface: Event.Exporter
Adds the thread on which this event took place.

Specified by:
addThreadID in interface Event.Exporter
Parameters:
thread - the thread identifier

checkForMatch

public boolean checkForMatch(JiveSearchPattern pattern)
Returns whether the event is a object creation represented by the supplied JiveSearchPattern.

Parameters:
pattern - the pattern to check against
Returns:
true if the object creation can be associated with the pattern, false otherwise

JIVE Platform
Release 0.2.2