001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.wls;
017:
018: import javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlAttribute;
021: import javax.xml.bind.annotation.XmlElement;
022: import javax.xml.bind.annotation.XmlID;
023: import javax.xml.bind.annotation.XmlType;
024: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
025: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
026:
027: /**
028: * <p>Java class for context-case complex type.
029: *
030: * <p>The following schema fragment specifies the expected content contained within this class.
031: *
032: * <pre>
033: * <complexType name="context-case">
034: * <complexContent>
035: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
036: * <sequence>
037: * <choice>
038: * <element name="user-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
039: * <element name="group-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
040: * </choice>
041: * <element name="request-class-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
042: * </sequence>
043: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
044: * </restriction>
045: * </complexContent>
046: * </complexType>
047: * </pre>
048: *
049: *
050: */
051: @XmlAccessorType(XmlAccessType.FIELD)
052: @XmlType(name="context-case",propOrder={"userName","groupName","requestClassName"})
053: public class ContextCase {
054:
055: @XmlElement(name="user-name")
056: protected String userName;
057: @XmlElement(name="group-name")
058: protected String groupName;
059: @XmlElement(name="request-class-name",required=true)
060: protected String requestClassName;
061: @XmlAttribute
062: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
063: @XmlID
064: protected String id;
065:
066: /**
067: * Gets the value of the userName property.
068: *
069: * @return
070: * possible object is
071: * {@link String }
072: *
073: */
074: public String getUserName() {
075: return userName;
076: }
077:
078: /**
079: * Sets the value of the userName property.
080: *
081: * @param value
082: * allowed object is
083: * {@link String }
084: *
085: */
086: public void setUserName(String value) {
087: this .userName = value;
088: }
089:
090: /**
091: * Gets the value of the groupName property.
092: *
093: * @return
094: * possible object is
095: * {@link String }
096: *
097: */
098: public String getGroupName() {
099: return groupName;
100: }
101:
102: /**
103: * Sets the value of the groupName property.
104: *
105: * @param value
106: * allowed object is
107: * {@link String }
108: *
109: */
110: public void setGroupName(String value) {
111: this .groupName = value;
112: }
113:
114: /**
115: * Gets the value of the requestClassName property.
116: *
117: * @return
118: * possible object is
119: * {@link String }
120: *
121: */
122: public String getRequestClassName() {
123: return requestClassName;
124: }
125:
126: /**
127: * Sets the value of the requestClassName property.
128: *
129: * @param value
130: * allowed object is
131: * {@link String }
132: *
133: */
134: public void setRequestClassName(String value) {
135: this .requestClassName = value;
136: }
137:
138: /**
139: * Gets the value of the id property.
140: *
141: * @return
142: * possible object is
143: * {@link String }
144: *
145: */
146: public String getId() {
147: return id;
148: }
149:
150: /**
151: * Sets the value of the id property.
152: *
153: * @param value
154: * allowed object is
155: * {@link String }
156: *
157: */
158: public void setId(String value) {
159: this.id = value;
160: }
161:
162: }
|