com.ricebridge.xmlman.in
Class RecordTrigger

java.lang.Object
  extended bycom.ricebridge.xmlman.in.TriggerSupport
      extended bycom.ricebridge.xmlman.in.RecordTrigger
All Implemented Interfaces:
Trigger

public class RecordTrigger
extends TriggerSupport

Executed when a data record element end tag is matched.


Field Summary
 
Fields inherited from class com.ricebridge.xmlman.in.TriggerSupport
iTargetPath
 
Constructor Summary
RecordTrigger()
          Create a new RecordTrigger.
 
Method Summary
 RecordTrigger copy()
          Create a copy of this trigger.
protected  void executeImpl(TargetPath pTargetPath, EndPoint pEndPoint, DocContext pDocContext, boolean pConditionMatch)
          Create data record when data record element end tag is reached.
protected  void executeImpl(TargetPath pTargetPath, StartPoint pStartPoint, DocContext pDocContext, boolean pConditionMatch)
          Does nothing on element start tag event.
 void setBadRecordListener(BadRecordListener pBadRecordListener)
          Set the BadRecordListener that will receive BadRecord events.
 void setExprNames(String[] pExprNames)
          Set the code names of the data field expressions.
 void setIgnoreBadRecords(boolean pIgnoreBadRecords)
          Continue processing if bad records are encountered.
 void setRecordListener(RecordListener pRecordListener)
          Set the RecordListener that will receive data records from this RecordTrigger.
 void setStats(MutableStats pStats)
          Set the current Stats object.
 
Methods inherited from class com.ricebridge.xmlman.in.TriggerSupport
execute, execute, getTargetPath, setTargetPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordTrigger

public RecordTrigger()
Create a new RecordTrigger.

Method Detail

copy

public RecordTrigger copy()
Create a copy of this trigger.


setStats

public void setStats(MutableStats pStats)
Set the current Stats object.


setExprNames

public void setExprNames(String[] pExprNames)
Set the code names of the data field expressions.


setBadRecordListener

public void setBadRecordListener(BadRecordListener pBadRecordListener)
Set the BadRecordListener that will receive BadRecord events.


setIgnoreBadRecords

public void setIgnoreBadRecords(boolean pIgnoreBadRecords)
Continue processing if bad records are encountered.


setRecordListener

public void setRecordListener(RecordListener pRecordListener)
Set the RecordListener that will receive data records from this RecordTrigger.


executeImpl

protected void executeImpl(TargetPath pTargetPath,
                           StartPoint pStartPoint,
                           DocContext pDocContext,
                           boolean pConditionMatch)
Does nothing on element start tag event.

Specified by:
executeImpl in class TriggerSupport

executeImpl

protected void executeImpl(TargetPath pTargetPath,
                           EndPoint pEndPoint,
                           DocContext pDocContext,
                           boolean pConditionMatch)
Create data record when data record element end tag is reached.

Specified by:
executeImpl in class TriggerSupport


Copyright © 2004-2005 Ricebridge