001/**
002 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003 *
004 * Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
005 *
006 * The contents of this file are subject to the terms
007 * of the Common Development and Distribution License
008 * (the License). You may not use this file except in
009 * compliance with the License.
010 *
011 * You can obtain a copy of the License at
012 * https://opensso.dev.java.net/public/CDDLv1.0.html or
013 * opensso/legal/CDDLv1.0.txt
014 * See the License for the specific language governing
015 * permission and limitations under the License.
016 *
017 * When distributing Covered Code, include this CDDL
018 * Header Notice in each file and include the License file
019 * at opensso/legal/CDDLv1.0.txt.
020 * If applicable, add the following below the CDDL Header,
021 * with the fields enclosed by brackets [] replaced by
022 * your own identifying information:
023 * "Portions Copyrighted [year] [name of copyright owner]"
024 *
025 * $Id: RemoveEntry.java,v 1.2 2008/06/25 05:47:10 qcheng Exp $
026 *
027 */
028
029
030package com.sun.identity.liberty.ws.disco;
031
032import com.sun.identity.liberty.ws.disco.common.DiscoConstants;
033
034/**
035 * The class <code>RemoveEntry</code> represents a remove entry element for
036 * the discovery modify request.
037 * <p>The following schema fragment specifies the expected content 
038 * within the <code>RemoveEntry</code> object.
039 * <p>
040 * <pre>
041 * &lt;xs:element name="RemoveEntry" type="RemoveEntryType">
042 * &lt;complexType name="RemoveEntryType">
043 *   &lt;complexContent>
044 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
045 *       &lt;attribute name="entryID" type="{urn:liberty:disco:2003-08}IDReferenceType" />
046 *     &lt;/restriction>
047 *   &lt;/complexContent>
048 * &lt;/complexType>
049 * </pre>
050 * 
051 * @supported.all.api
052 */
053public class RemoveEntry {
054
055    private String entryID = null;
056
057    /**
058     * Constructor.
059     * @param entryID entry ID to be removed
060     */
061    public RemoveEntry (String entryID) {
062        this.entryID = entryID;
063    }
064
065    /**
066     * Gets entry ID to be removed.
067     *
068     * @return entry ID to be removed.
069     * @see #setEntryID(String)
070     */
071    public String getEntryID() {
072        return entryID;
073    }
074
075    /**
076     * Sets entry ID to be removed.
077     *
078     * @param entryID entry ID to be removed.
079     * @see #getEntryID()
080     */
081    public void setEntryID(String entryID) {
082        this.entryID = entryID;
083    }
084
085    /**
086     * Returns string format.
087     *
088     * @return formatted string.
089     */ 
090    public String toString() {
091        StringBuffer sb = new StringBuffer(200);
092        sb.append("<RemoveEntry xmlns=\"").
093            append(DiscoConstants.DISCO_NS).append("\"");
094        if (entryID != null) {
095            sb.append(" entryID=\"").append(entryID).append("\"");
096        }
097        sb.append("></RemoveEntry>");
098        return sb.toString();
099    }
100}




























































Copyright © 2010-2017, ForgeRock All Rights Reserved.