/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* https://opensso.dev.java.net/public/CDDLv1.0.html or
* opensso/legal/CDDLv1.0.txt
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: NotificationSet.java,v 1.2 2008/06/25 05:41:35 qcheng Exp $
*
* Portions Copyrighted 2011-2014 ForgeRock AS.
*/
package com.iplanet.services.comm.share;
import java.util.Vector;
/**
* This 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. * * @see com.iplanet.services.comm.share.Notification */ public class NotificationSet { static final char QUOTE = '\"'; static final char NL = '\n'; static final String BEGIN_CDATA = ""; private String notificationSetVersion; private String serviceID; private String notificationSetID; private final Vector