1 //
2 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs
3 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4 // Any modifications to this file will be lost upon recompilation of the source schema.
5 // Generated on: 2009.07.17 at 01:03:24 AM CST
6 //
7
8
9 package org.apache.geronimo.xml.ns.security_1;
10
11 import java.util.ArrayList;
12 import java.util.List;
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlAttribute;
16 import javax.xml.bind.annotation.XmlType;
17
18
19 /**
20 * <p>Java class for principalType complex type.
21 *
22 * <p>The following schema fragment specifies the expected content contained within this class.
23 *
24 * <pre>
25 * <complexType name="principalType">
26 * <complexContent>
27 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
28 * <sequence>
29 * <element name="description" type="{http://geronimo.apache.org/xml/ns/security-1.1}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
30 * </sequence>
31 * <attribute name="class" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
32 * <attribute name="designated-run-as" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
33 * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
34 * </restriction>
35 * </complexContent>
36 * </complexType>
37 * </pre>
38 *
39 *
40 */
41 @XmlAccessorType(XmlAccessType.FIELD)
42 @XmlType(name = "principalType", propOrder = {
43 "description"
44 })
45 public class PrincipalType {
46
47 protected List<DescriptionType> description;
48 @XmlAttribute(name = "class", required = true)
49 protected String clazz;
50 @XmlAttribute(name = "designated-run-as")
51 protected Boolean designatedRunAs;
52 @XmlAttribute(required = true)
53 protected String name;
54
55 /**
56 * Gets the value of the description property.
57 *
58 * <p>
59 * This accessor method returns a reference to the live list,
60 * not a snapshot. Therefore any modification you make to the
61 * returned list will be present inside the JAXB object.
62 * This is why there is not a <CODE>set</CODE> method for the description property.
63 *
64 * <p>
65 * For example, to add a new item, do as follows:
66 * <pre>
67 * getDescription().add(newItem);
68 * </pre>
69 *
70 *
71 * <p>
72 * Objects of the following type(s) are allowed in the list
73 * {@link DescriptionType }
74 *
75 *
76 */
77 public List<DescriptionType> getDescription() {
78 if (description == null) {
79 description = new ArrayList<DescriptionType>();
80 }
81 return this.description;
82 }
83
84 /**
85 * Gets the value of the clazz property.
86 *
87 * @return
88 * possible object is
89 * {@link String }
90 *
91 */
92 public String getClazz() {
93 return clazz;
94 }
95
96 /**
97 * Sets the value of the clazz property.
98 *
99 * @param value
100 * allowed object is
101 * {@link String }
102 *
103 */
104 public void setClazz(String value) {
105 this.clazz = value;
106 }
107
108 /**
109 * Gets the value of the designatedRunAs property.
110 *
111 * @return
112 * possible object is
113 * {@link Boolean }
114 *
115 */
116 public boolean isDesignatedRunAs() {
117 if (designatedRunAs == null) {
118 return false;
119 } else {
120 return designatedRunAs;
121 }
122 }
123
124 /**
125 * Sets the value of the designatedRunAs property.
126 *
127 * @param value
128 * allowed object is
129 * {@link Boolean }
130 *
131 */
132 public void setDesignatedRunAs(Boolean value) {
133 this.designatedRunAs = value;
134 }
135
136 /**
137 * Gets the value of the name property.
138 *
139 * @return
140 * possible object is
141 * {@link String }
142 *
143 */
144 public String getName() {
145 return name;
146 }
147
148 /**
149 * Sets the value of the name property.
150 *
151 * @param value
152 * allowed object is
153 * {@link String }
154 *
155 */
156 public void setName(String value) {
157 this.name = value;
158 }
159
160 }