Package com.iplanet.services.comm.share
Class Notification
- java.lang.Object
-
- com.iplanet.services.comm.share.Notification
-
public class Notification extends Object
ThisNotification
class represents a notification. The most important information in this Notification object is the content of this notification. The content in this Notification object can be an arbitrary String. This makes it possible that high level services and applications can define their own notification XML DTDs and then embed the corresponding XML document into this Notification object as its content.- See Also:
NotificationSet
-
-
Constructor Summary
Constructors Constructor Description Notification(String content)
Constructs an instance of Notification class with the content of the Notification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContent()
Gets the content of the Notification.String
getDtdID()
Gets the ID of the DTD for the content of the Notificationvoid
setContent(String content)
Sets the content of the Notification.void
setDtdID(String id)
Sets the ID of the DTD for the content of the Notification
-
-
-
Constructor Detail
-
Notification
public Notification(String content)
Constructs an instance of Notification class with the content of the Notification. The DTD ID needs to be set explicitly using the corresponding setter as it is optional for the notification.- Parameters:
content
- The content of this Notification.
-
-
Method Detail
-
getDtdID
public String getDtdID()
Gets the ID of the DTD for the content of the Notification- Returns:
- The ID of the DTD for the content of the Notification.
-
getContent
public String getContent()
Gets the content of the Notification.- Returns:
- The content of the Notification.
-
setDtdID
public void setDtdID(String id)
Sets the ID of the DTD for the content of the Notification- Parameters:
id
- The ID of the DTD for the content of the Notification.
-
setContent
public void setContent(String content)
Sets the content of the Notification.- Parameters:
content
- The content of the Notification in String format.
-
-