Class DefaultEventHandler
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.processor.DefaultEventHandler
-
- All Implemented Interfaces:
IEventHandler
public class DefaultEventHandler extends Object implements IEventHandler
Implements a default event handler forXLIFFProcessor. Each handler does nothing. You can derive your own event handler from this class and define only the handlers you need.
-
-
Constructor Summary
Constructors Constructor Description DefaultEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventhandleEndDocument(Event event)Handles theEND_DOCUMENTevent.EventhandleEndFile(Event event)Handles theEND_FILEevent.EventhandleEndGroup(Event event)Handles theEND_GROUPevent.EventhandleEndXliff(Event event)Handles theEND_XLIFFevent.EventhandleInsignificantPart(Event event)Handles theINSIGNIFICANT_PARTevent.EventhandleMidFile(Event event)Handles theMID_FILEevent.EventhandleSkeleton(Event event)Handles theSKELETONevent.EventhandleStartDocument(Event event)Handles theSTART_DOCUMENTevent.EventhandleStartFile(Event event)Handles theSTART_FILEevent.EventhandleStartGroup(Event event)Handles theSTART_GROUPevent.EventhandleStartXliff(Event event)Handles theSTART_XLIFFevent.EventhandleUnit(Event event)Handles theTEXT_UNITevent.
-
-
-
Method Detail
-
handleStartDocument
public Event handleStartDocument(Event event)
Description copied from interface:IEventHandlerHandles theSTART_DOCUMENTevent.- Specified by:
handleStartDocumentin interfaceIEventHandler- Parameters:
event- the event to process.- Returns:
- the processed event.
-
handleEndDocument
public Event handleEndDocument(Event event)
Description copied from interface:IEventHandlerHandles theEND_DOCUMENTevent.- Specified by:
handleEndDocumentin interfaceIEventHandler- Parameters:
event- the event to process.- Returns:
- the processed event.
-
handleStartXliff
public Event handleStartXliff(Event event)
Description copied from interface:IEventHandlerHandles theSTART_XLIFFevent.- Specified by:
handleStartXliffin interfaceIEventHandler- Parameters:
event- the event to process.- Returns:
- the processed event.
-
handleEndXliff
public Event handleEndXliff(Event event)
Description copied from interface:IEventHandlerHandles theEND_XLIFFevent.- Specified by:
handleEndXliffin interfaceIEventHandler- Parameters:
event- the event to process.- Returns:
- the processed event.
-
handleStartFile
public Event handleStartFile(Event event)
Description copied from interface:IEventHandlerHandles theSTART_FILEevent.- Specified by:
handleStartFilein interfaceIEventHandler- Parameters:
event- the event to process.- Returns:
- the processed event.
-
handleSkeleton
public Event handleSkeleton(Event event)
Description copied from interface:IEventHandlerHandles theSKELETONevent.- Specified by:
handleSkeletonin interfaceIEventHandler- Parameters:
event- the event to process.- Returns:
- the processed event.
-
handleMidFile
public Event handleMidFile(Event event)
Description copied from interface:IEventHandlerHandles theMID_FILEevent.- Specified by:
handleMidFilein interfaceIEventHandler- Parameters:
event- the event to process.- Returns:
- the processed event.
-
handleEndFile
public Event handleEndFile(Event event)
Description copied from interface:IEventHandlerHandles theEND_FILEevent.- Specified by:
handleEndFilein interfaceIEventHandler- Parameters:
event- the event to process.- Returns:
- the processed event.
-
handleStartGroup
public Event handleStartGroup(Event event)
Description copied from interface:IEventHandlerHandles theSTART_GROUPevent.- Specified by:
handleStartGroupin interfaceIEventHandler- Parameters:
event- the event to process.- Returns:
- the processed event.
-
handleEndGroup
public Event handleEndGroup(Event event)
Description copied from interface:IEventHandlerHandles theEND_GROUPevent.- Specified by:
handleEndGroupin interfaceIEventHandler- Parameters:
event- the event to process.- Returns:
- the processed event.
-
handleInsignificantPart
public Event handleInsignificantPart(Event event)
Description copied from interface:IEventHandlerHandles theINSIGNIFICANT_PARTevent.- Specified by:
handleInsignificantPartin interfaceIEventHandler- Parameters:
event- the event to process.- Returns:
- the processed event.
-
handleUnit
public Event handleUnit(Event event)
Description copied from interface:IEventHandlerHandles theTEXT_UNITevent.- Specified by:
handleUnitin interfaceIEventHandler- Parameters:
event- the event to process.- Returns:
- the processed event.
-
-