Class Notification


  • public class Notification
    extends Object
    This Notification 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 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.