org.apache.pluto.internal.impl
Class EventImpl

java.lang.Object
  extended by org.apache.pluto.internal.impl.EventImpl
All Implemented Interfaces:
Event

public class EventImpl
extends Object
implements Event

Implementation of JSR-286 Event.

Since:
2.0

Constructor Summary
EventImpl(QName qname)
           
EventImpl(QName qname, Serializable value)
           
 
Method Summary
 String getName()
          Get the local part of the event name.
 QName getQName()
          Get the event QName.
 Serializable getValue()
          Get the event payload.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventImpl

public EventImpl(QName qname)

EventImpl

public EventImpl(QName qname,
                 Serializable value)
Method Detail

getQName

public QName getQName()
Description copied from interface: Event
Get the event QName.

Specified by:
getQName in interface Event
Returns:
the QName of the event, never null.

getValue

public Serializable getValue()
Description copied from interface: Event
Get the event payload.

Specified by:
getValue in interface Event
Returns:
event payload, must be serializable. May return null if this event has no payload.

getName

public String getName()
Description copied from interface: Event
Get the local part of the event name.

Specified by:
getName in interface Event
Returns:
the local part of the event, never null.


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.