001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package org.netbeans.modules.j2ee.dd.api.web;
043:
044: import org.netbeans.modules.j2ee.dd.api.common.*;
045:
046: /**
047: * Generated interface for SecurityConstraint element.
048: *
049: *<p><b><font color="red"><em>Important note: Do not provide an implementation of this interface unless you are a DD API provider!</em></font></b>
050: *</p>
051: */
052: public interface SecurityConstraint extends CommonDDBean,
053: DisplayNameInterface, CreateCapability, FindCapability {
054: /** Setter for web-resource-collection element.
055: * @param index position in the array of elements
056: * @param valueInterface web-resource-collection element (WebResourceCollection object)
057: */
058: public void setWebResourceCollection(
059: int index,
060: org.netbeans.modules.j2ee.dd.api.web.WebResourceCollection valueInterface);
061:
062: /** Getter for web-resource-collection element.
063: * @param index position in the array of elements
064: * @return web-resource-collection element (WebResourceCollection object)
065: */
066: public org.netbeans.modules.j2ee.dd.api.web.WebResourceCollection getWebResourceCollection(
067: int index);
068:
069: /** Setter for web-resource-collection elements.
070: * @param value array of web-resource-collection elements (WebResourceCollection objects)
071: */
072: public void setWebResourceCollection(
073: org.netbeans.modules.j2ee.dd.api.web.WebResourceCollection[] value);
074:
075: /** Getter for web-resource-collection elements.
076: * @return array of web-resource-collection elements (WebResourceCollection objects)
077: */
078: public org.netbeans.modules.j2ee.dd.api.web.WebResourceCollection[] getWebResourceCollection();
079:
080: /** Returns size of web-resource-collection elements.
081: * @return number of web-resource-collection elements
082: */
083: public int sizeWebResourceCollection();
084:
085: /** Adds web-resource-collection element.
086: * @param valueInterface web-resource-collection element (WebResourceCollection object)
087: * @return index of new web-resource-collection
088: */
089: public int addWebResourceCollection(
090: org.netbeans.modules.j2ee.dd.api.web.WebResourceCollection valueInterface);
091:
092: /** Removes web-resource-collection element.
093: * @param valueInterface web-resource-collection element (WebResourceCollection object)
094: * @return index of the removed web-resource-collection
095: */
096: public int removeWebResourceCollection(
097: org.netbeans.modules.j2ee.dd.api.web.WebResourceCollection valueInterface);
098:
099: /** Setter for auth-constraint element.
100: * @param valueInterface auth-constraint element (AuthConstraint object)
101: */
102: public void setAuthConstraint(
103: org.netbeans.modules.j2ee.dd.api.web.AuthConstraint valueInterface);
104:
105: /** Getter for auth-constraint element.
106: * @return auth-constraint element (AuthConstraintobject)
107: */
108: public org.netbeans.modules.j2ee.dd.api.web.AuthConstraint getAuthConstraint();
109:
110: /** Setter for user-data-constraint element.
111: * @param valueInterface user-data-constraint element (UserDataConstraint object)
112: */
113: public void setUserDataConstraint(
114: org.netbeans.modules.j2ee.dd.api.web.UserDataConstraint valueInterface);
115:
116: /** Getter for user-data-constraint element.
117: * @return user-data-constraint element (UserDataConstraint object)
118: */
119: public org.netbeans.modules.j2ee.dd.api.web.UserDataConstraint getUserDataConstraint();
120:
121: }
|