org.springframework.mock.web.portlet
Class MockEvent

java.lang.Object
  extended by org.springframework.mock.web.portlet.MockEvent

public class MockEvent
extends java.lang.Object

Mock implementation of the javax.portlet.Event interface.

Since:
3.0
Author:
Juergen Hoeller
See Also:
MockEventRequest

Field Summary
private  javax.xml.namespace.QName name
           
private  java.io.Serializable value
           
 
Constructor Summary
MockEvent(javax.xml.namespace.QName name)
          Create a new MockEvent with the given name.
MockEvent(javax.xml.namespace.QName name, java.io.Serializable value)
          Create a new MockEvent with the given name and value.
MockEvent(java.lang.String name)
          Create a new MockEvent with the given name.
MockEvent(java.lang.String name, java.io.Serializable value)
          Create a new MockEvent with the given name and value.
 
Method Summary
 java.lang.String getName()
           
 javax.xml.namespace.QName getQName()
           
 java.io.Serializable getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private final javax.xml.namespace.QName name

value

private final java.io.Serializable value
Constructor Detail

MockEvent

public MockEvent(javax.xml.namespace.QName name)
Create a new MockEvent with the given name.

Parameters:
name - the name of the event

MockEvent

public MockEvent(javax.xml.namespace.QName name,
                 java.io.Serializable value)
Create a new MockEvent with the given name and value.

Parameters:
name - the name of the event
value - the associated payload of the event

MockEvent

public MockEvent(java.lang.String name)
Create a new MockEvent with the given name.

Parameters:
name - the name of the event

MockEvent

public MockEvent(java.lang.String name,
                 java.io.Serializable value)
Create a new MockEvent with the given name and value.

Parameters:
name - the name of the event
value - the associated payload of the event
Method Detail

getQName

public javax.xml.namespace.QName getQName()

getName

public java.lang.String getName()

getValue

public java.io.Serializable getValue()