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