com.servingxml.components.recordmapping
Class OnRecord

java.lang.Object
  extended by com.servingxml.components.recordmapping.OnRecord
All Implemented Interfaces:
MapXml

public class OnRecord
extends java.lang.Object
implements MapXml

A command for mapping a record in a flat file into an XML stream.


Constructor Summary
OnRecord(RecordAccepter accepter, MapXml children)
           
 
Method Summary
 void addToAttributes(ServiceContext context, Flow flow, Record variables, org.xml.sax.helpers.AttributesImpl attributes)
           
 void groupStarted(ServiceContext context, Flow flow, Record previousRecord, Record nextRecord, ExtendedContentHandler handler, Record variables)
           
 void groupStopped(ServiceContext context, Flow flow, ExtendedContentHandler handler)
           
 boolean isGrouping()
           
 void writeRecord(ServiceContext context, Flow flow, Record previousRecord, Record nextRecord, ExtendedContentHandler handler, GroupState groupListener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnRecord

public OnRecord(RecordAccepter accepter,
                MapXml children)
Method Detail

writeRecord

public void writeRecord(ServiceContext context,
                        Flow flow,
                        Record previousRecord,
                        Record nextRecord,
                        ExtendedContentHandler handler,
                        GroupState groupListener)
Specified by:
writeRecord in interface MapXml

groupStarted

public void groupStarted(ServiceContext context,
                         Flow flow,
                         Record previousRecord,
                         Record nextRecord,
                         ExtendedContentHandler handler,
                         Record variables)
Specified by:
groupStarted in interface MapXml

groupStopped

public void groupStopped(ServiceContext context,
                         Flow flow,
                         ExtendedContentHandler handler)
Specified by:
groupStopped in interface MapXml

addToAttributes

public void addToAttributes(ServiceContext context,
                            Flow flow,
                            Record variables,
                            org.xml.sax.helpers.AttributesImpl attributes)
Specified by:
addToAttributes in interface MapXml

isGrouping

public boolean isGrouping()
Specified by:
isGrouping in interface MapXml