gr.uoa.di.madgik.grs.events
Class ObjectEvent

java.lang.Object
  extended by gr.uoa.di.madgik.grs.events.BufferEvent
      extended by gr.uoa.di.madgik.grs.events.ObjectEvent
All Implemented Interfaces:
IPumpable

public class ObjectEvent
extends BufferEvent

BufferEvent extender that propagates an object that implements IPumpable

Author:
gpapanikos

Nested Class Summary
 
Nested classes/interfaces inherited from class gr.uoa.di.madgik.grs.events.BufferEvent
BufferEvent.EventSource
 
Constructor Summary
ObjectEvent()
          Create a new instance
ObjectEvent(IPumpable item)
          Create a new instance
 
Method Summary
 void extendDeflate(java.io.DataOutput out)
          This method is implemented by BufferEvent extenders to deflate the additional information they handle
 void extendFromXML(org.w3c.dom.Element element)
           
 void extendInflate(java.io.DataInput in)
          This method is implemented by BufferEvent extenders to inflate the additional information they handle
 void extendToXML(org.w3c.dom.Document doc, org.w3c.dom.Element element)
           
 IPumpable getItem()
          Retrieves the payload object
 void setItem(IPumpable item)
          Sets the payload object
 
Methods inherited from class gr.uoa.di.madgik.grs.events.BufferEvent
deflate, fromXML, getSource, inflate, inflate, setSource, toXML
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectEvent

public ObjectEvent()
Create a new instance


ObjectEvent

public ObjectEvent(IPumpable item)
Create a new instance

Parameters:
item - the payload object
Method Detail

setItem

public void setItem(IPumpable item)
Sets the payload object

Parameters:
item - the payload object

getItem

public IPumpable getItem()
Retrieves the payload object

Returns:
the payload object

extendToXML

public void extendToXML(org.w3c.dom.Document doc,
                        org.w3c.dom.Element element)
                 throws GRS2RecordSerializationException
Specified by:
extendToXML in class BufferEvent
Throws:
GRS2RecordSerializationException

extendFromXML

public void extendFromXML(org.w3c.dom.Element element)
                   throws GRS2RecordSerializationException
Specified by:
extendFromXML in class BufferEvent
Throws:
GRS2RecordSerializationException

extendDeflate

public void extendDeflate(java.io.DataOutput out)
                   throws GRS2RecordSerializationException
This method is implemented by BufferEvent extenders to deflate the additional information they handle

Specified by:
extendDeflate in class BufferEvent
Parameters:
out - the stream to deflate to
Throws:
GRS2RecordSerializationException - there was a problem deflating the event
See Also:
BufferEvent.extendDeflate(java.io.DataOutput)

extendInflate

public void extendInflate(java.io.DataInput in)
                   throws GRS2RecordSerializationException
This method is implemented by BufferEvent extenders to inflate the additional information they handle

Specified by:
extendInflate in class BufferEvent
Parameters:
in - the stream to inflate from
Throws:
GRS2RecordSerializationException - there was a problem inflating the event
See Also:
BufferEvent.extendInflate(java.io.DataInput)