001: //
002: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.3-b01-fcs
003: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004: // Any modifications to this file will be lost upon recompilation of the source schema.
005: // Generated on: 2006.10.31 at 10:25:50 AM GMT+08:00
006: //
007:
008: package org.apache.cxf.jaxws.javaee;
009:
010: import java.util.ArrayList;
011: import java.util.List;
012: import javax.xml.bind.annotation.XmlAccessType;
013: import javax.xml.bind.annotation.XmlAccessorType;
014: import javax.xml.bind.annotation.XmlAttribute;
015: import javax.xml.bind.annotation.XmlElement;
016: import javax.xml.bind.annotation.XmlID;
017: import javax.xml.bind.annotation.XmlType;
018: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
019: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
020:
021: /**
022: *
023: *
024: *
025: * The security-roleType contains the definition of a security
026: * role. The definition consists of an optional description of
027: * the security role, and the security role name.
028: *
029: * Example:
030: *
031: * <security-role>
032: * <description>
033: * This role includes all employees who are authorized
034: * to access the employee service application.
035: * </description>
036: * <role-name>employee</role-name>
037: * </security-role>
038: *
039: *
040: *
041: *
042: * <p>Java class for security-roleType complex type.
043: *
044: * <p>The following schema fragment specifies the expected content contained within this class.
045: *
046: * <pre>
047: * <complexType name="security-roleType">
048: * <complexContent>
049: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
050: * <sequence>
051: * <element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
052: * <element name="role-name" type="{http://java.sun.com/xml/ns/javaee}role-nameType"/>
053: * </sequence>
054: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
055: * </restriction>
056: * </complexContent>
057: * </complexType>
058: * </pre>
059: *
060: *
061: */
062: @XmlAccessorType(XmlAccessType.FIELD)
063: @XmlType(name="security-roleType",propOrder={"description","roleName"})
064: public class SecurityRoleType {
065:
066: protected List<DescriptionType> description;
067: @XmlElement(name="role-name",required=true)
068: protected RoleNameType roleName;
069: @XmlAttribute
070: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
071: @XmlID
072: protected java.lang.String id;
073:
074: /**
075: * Gets the value of the description property.
076: *
077: * <p>
078: * This accessor method returns a reference to the live list,
079: * not a snapshot. Therefore any modification you make to the
080: * returned list will be present inside the JAXB object.
081: * This is why there is not a <CODE>set</CODE> method for the description property.
082: *
083: * <p>
084: * For example, to add a new item, do as follows:
085: * <pre>
086: * getDescription().add(newItem);
087: * </pre>
088: *
089: *
090: * <p>
091: * Objects of the following type(s) are allowed in the list
092: * {@link DescriptionType }
093: *
094: *
095: */
096: public List<DescriptionType> getDescription() {
097: if (description == null) {
098: description = new ArrayList<DescriptionType>();
099: }
100: return this .description;
101: }
102:
103: /**
104: * Gets the value of the roleName property.
105: *
106: * @return
107: * possible object is
108: * {@link RoleNameType }
109: *
110: */
111: public RoleNameType getRoleName() {
112: return roleName;
113: }
114:
115: /**
116: * Sets the value of the roleName property.
117: *
118: * @param value
119: * allowed object is
120: * {@link RoleNameType }
121: *
122: */
123: public void setRoleName(RoleNameType value) {
124: this .roleName = value;
125: }
126:
127: /**
128: * Gets the value of the id property.
129: *
130: * @return
131: * possible object is
132: * {@link java.lang.String }
133: *
134: */
135: public java.lang.String getId() {
136: return id;
137: }
138:
139: /**
140: * Sets the value of the id property.
141: *
142: * @param value
143: * allowed object is
144: * {@link java.lang.String }
145: *
146: */
147: public void setId(java.lang.String value) {
148: this.id = value;
149: }
150:
151: }
|