public class NotificationSet extends Object
NotificationSet
class represents a NotificationSet XML
document. The NotificationSet DTD is defined as the following:
<?xml version="1.0"> < !-- This DTD is used by PLL --> < !DOCTYPE NotificationSet [ < !ELEMENT NotificationSet(Notification)+> < !ATTLIST NotificationSet vers CDATA #REQUIRED svcid CDATA #REQUIRED notid CDATA #REQUIRED> < !ELEMENT Notification(#PCDATA)*> < !ATTLIST Notification dtdid CDATA #IMPLIED> ]>Each NotificationSet object contains a version, service ID, notification set ID, and a collection of Notification objects. The NotificationSet views each Notification object as a String. This makes it possible that the content of the Notification object can be another XML document. The PLL provides a reference Notification DTD. Please see class Notification for details on the Notification DTD. This class also provides a method to aggregate each Notification object and returns a NotificationSet XML document based on the NotificationSet DTD mentioned above.
Notification
Constructor and Description |
---|
NotificationSet(String service)
This constructor is used primarily at the server side to construct a
NotificationSet object for a given service.
|
Modifier and Type | Method and Description |
---|---|
void |
addNotification(Notification notification)
Adds a Notification object to this object.
|
Vector<Notification> |
getNotifications()
Gets the Notification objects contained in this object.
|
String |
getServiceID()
Gets the service ID of the NotificationSet request.
|
static NotificationSet |
parseXML(String xml)
This method is used primarily at the client side to reconstruct a
NotificationSet object based on the XML document received from server.
|
String |
toXMLString()
Returns an XML NotificationSet document in String format.
|
public NotificationSet(String service)
service
- The name of the service.public static NotificationSet parseXML(String xml)
xml
- The NotificationSet XML document String.public String getServiceID()
public Vector<Notification> getNotifications()
public void addNotification(Notification notification)
notification
- A reference to a Notification object.public String toXMLString()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.