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-2007 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: //
043: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs
044: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
045: // Any modifications to this file will be lost upon recompilation of the source schema.
046: // Generated on: 2006.12.09 at 06:26:10 PM PST
047: //
048:
049: package org.netbeans.modules.compapp.javaee.sunresources.generated.sunresources13;
050:
051: import java.util.ArrayList;
052: import java.util.List;
053: import javax.xml.bind.annotation.XmlAccessType;
054: import javax.xml.bind.annotation.XmlAccessorType;
055: import javax.xml.bind.annotation.XmlAttribute;
056: import javax.xml.bind.annotation.XmlElement;
057: import javax.xml.bind.annotation.XmlElements;
058: import javax.xml.bind.annotation.XmlRootElement;
059: import javax.xml.bind.annotation.XmlType;
060: import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
061: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
062:
063: /**
064: *
065: */
066: @XmlAccessorType(XmlAccessType.FIELD)
067: @XmlType(name="",propOrder={"principalOrUserGroup","backendPrincipal"})
068: @XmlRootElement(name="security-map")
069: public class SecurityMap {
070:
071: @XmlAttribute(required=true)
072: @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
073: protected String name;
074: @XmlElements({@XmlElement(name="principal",required=true,type=Principal.class),@XmlElement(name="user-group",required=true,type=UserGroup.class)})
075: protected List<Object> principalOrUserGroup;
076: @XmlElement(name="backend-principal",required=true)
077: protected BackendPrincipal backendPrincipal;
078:
079: /**
080: * Gets the value of the name property.
081: *
082: * @return
083: * possible object is
084: * {@link String }
085: *
086: */
087: public String getName() {
088: return name;
089: }
090:
091: /**
092: * Sets the value of the name property.
093: *
094: * @param value
095: * allowed object is
096: * {@link String }
097: *
098: */
099: public void setName(String value) {
100: this .name = value;
101: }
102:
103: /**
104: * Gets the value of the principalOrUserGroup property.
105: *
106: * <p>
107: * This accessor method returns a reference to the live list,
108: * not a snapshot. Therefore any modification you make to the
109: * returned list will be present inside the JAXB object.
110: * This is why there is not a <CODE>set</CODE> method for the principalOrUserGroup property.
111: *
112: * <p>
113: * For example, to add a new item, do as follows:
114: * <pre>
115: * getPrincipalOrUserGroup().add(newItem);
116: * </pre>
117: *
118: *
119: * <p>
120: * Objects of the following type(s) are allowed in the list
121: * {@link Principal }
122: * {@link UserGroup }
123: *
124: *
125: */
126: public List<Object> getPrincipalOrUserGroup() {
127: if (principalOrUserGroup == null) {
128: principalOrUserGroup = new ArrayList<Object>();
129: }
130: return this .principalOrUserGroup;
131: }
132:
133: /**
134: * Gets the value of the backendPrincipal property.
135: *
136: * @return
137: * possible object is
138: * {@link BackendPrincipal }
139: *
140: */
141: public BackendPrincipal getBackendPrincipal() {
142: return backendPrincipal;
143: }
144:
145: /**
146: * Sets the value of the backendPrincipal property.
147: *
148: * @param value
149: * allowed object is
150: * {@link BackendPrincipal }
151: *
152: */
153: public void setBackendPrincipal(BackendPrincipal value) {
154: this.backendPrincipal = value;
155: }
156:
157: }
|