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 java.math.BigInteger;
019: import javax.xml.bind.annotation.XmlAccessType;
020: import javax.xml.bind.annotation.XmlAccessorType;
021: import javax.xml.bind.annotation.XmlAttribute;
022: import javax.xml.bind.annotation.XmlElement;
023: import javax.xml.bind.annotation.XmlID;
024: import javax.xml.bind.annotation.XmlType;
025: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
026: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
027:
028: /**
029: * <p>Java class for max-threads-constraint complex type.
030: *
031: * <p>The following schema fragment specifies the expected content contained within this class.
032: *
033: * <pre>
034: * <complexType name="max-threads-constraint">
035: * <complexContent>
036: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
037: * <sequence>
038: * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
039: * <choice>
040: * <element name="count" type="{http://www.w3.org/2001/XMLSchema}integer"/>
041: * <element name="pool-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
042: * </choice>
043: * </sequence>
044: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
045: * </restriction>
046: * </complexContent>
047: * </complexType>
048: * </pre>
049: *
050: *
051: */
052: @XmlAccessorType(XmlAccessType.FIELD)
053: @XmlType(name="max-threads-constraint",propOrder={"name","count","poolName"})
054: public class MaxThreadsConstraint {
055:
056: @XmlElement(required=true)
057: protected String name;
058: protected BigInteger count;
059: @XmlElement(name="pool-name")
060: protected String poolName;
061: @XmlAttribute
062: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
063: @XmlID
064: protected String id;
065:
066: /**
067: * Gets the value of the name property.
068: *
069: * @return
070: * possible object is
071: * {@link String }
072: *
073: */
074: public String getName() {
075: return name;
076: }
077:
078: /**
079: * Sets the value of the name property.
080: *
081: * @param value
082: * allowed object is
083: * {@link String }
084: *
085: */
086: public void setName(String value) {
087: this .name = value;
088: }
089:
090: /**
091: * Gets the value of the count property.
092: *
093: * @return
094: * possible object is
095: * {@link BigInteger }
096: *
097: */
098: public BigInteger getCount() {
099: return count;
100: }
101:
102: /**
103: * Sets the value of the count property.
104: *
105: * @param value
106: * allowed object is
107: * {@link BigInteger }
108: *
109: */
110: public void setCount(BigInteger value) {
111: this .count = value;
112: }
113:
114: /**
115: * Gets the value of the poolName property.
116: *
117: * @return
118: * possible object is
119: * {@link String }
120: *
121: */
122: public String getPoolName() {
123: return poolName;
124: }
125:
126: /**
127: * Sets the value of the poolName property.
128: *
129: * @param value
130: * allowed object is
131: * {@link String }
132: *
133: */
134: public void setPoolName(String value) {
135: this .poolName = 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: }
|