org.kuali.rice.ken.api.notification
Class NotificationResponse.Builder
java.lang.Object
org.kuali.rice.ken.api.notification.NotificationResponse.Builder
- All Implemented Interfaces:
- Serializable, ModelBuilder, NotificationResponseContract
- Enclosing class:
- NotificationResponse
public static final class NotificationResponse.Builder
- extends Object
- implements Serializable, ModelBuilder, NotificationResponseContract
A builder which can be used to construct NotificationResponse
instances. Enforces the constraints of the NotificationResponseContract
.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public static NotificationResponse.Builder create()
create
public static NotificationResponse.Builder create(NotificationResponseContract contract)
build
public NotificationResponse build()
- Description copied from interface:
ModelBuilder
- Returns an instance of the object being built by this builder based
on the current state of the builder. It should be possible to
invoke this method more than once on the same builder. It should
never return null;
- Specified by:
build
in interface ModelBuilder
- Returns:
- an instance of the object being built by this builder,
should never return null
getMessage
public String getMessage()
- Specified by:
getMessage
in interface NotificationResponseContract
getStatus
public String getStatus()
- Specified by:
getStatus
in interface NotificationResponseContract
getNotificationId
public Long getNotificationId()
- Specified by:
getNotificationId
in interface NotificationResponseContract
setMessage
public void setMessage(String message)
setStatus
public void setStatus(String status)
setNotificationId
public void setNotificationId(Long notificationId)
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.