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.util.ArrayList;
019: import java.util.List;
020: import javax.xml.bind.annotation.XmlAccessType;
021: import javax.xml.bind.annotation.XmlAccessorType;
022: import javax.xml.bind.annotation.XmlAttribute;
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 idempotent-methods complex type.
030: *
031: * <p>The following schema fragment specifies the expected content contained within this class.
032: *
033: * <pre>
034: * <complexType name="idempotent-methods">
035: * <complexContent>
036: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
037: * <sequence>
038: * <element name="method" type="{http://www.bea.com/ns/weblogic/90}method" maxOccurs="unbounded" minOccurs="0"/>
039: * </sequence>
040: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
041: * </restriction>
042: * </complexContent>
043: * </complexType>
044: * </pre>
045: *
046: *
047: */
048: @XmlAccessorType(XmlAccessType.FIELD)
049: @XmlType(name="idempotent-methods",propOrder={"method"})
050: public class IdempotentMethods {
051:
052: protected List<Method> method;
053: @XmlAttribute
054: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
055: @XmlID
056: protected String id;
057:
058: /**
059: * Gets the value of the method property.
060: *
061: * <p>
062: * This accessor method returns a reference to the live list,
063: * not a snapshot. Therefore any modification you make to the
064: * returned list will be present inside the JAXB object.
065: * This is why there is not a <CODE>set</CODE> method for the method property.
066: *
067: * <p>
068: * For example, to add a new item, do as follows:
069: * <pre>
070: * getMethod().add(newItem);
071: * </pre>
072: *
073: *
074: * <p>
075: * Objects of the following type(s) are allowed in the list
076: * {@link Method }
077: *
078: *
079: */
080: public List<Method> getMethod() {
081: if (method == null) {
082: method = new ArrayList<Method>();
083: }
084: return this .method;
085: }
086:
087: /**
088: * Gets the value of the id property.
089: *
090: * @return
091: * possible object is
092: * {@link String }
093: *
094: */
095: public String getId() {
096: return id;
097: }
098:
099: /**
100: * Sets the value of the id property.
101: *
102: * @param value
103: * allowed object is
104: * {@link String }
105: *
106: */
107: public void setId(String value) {
108: this.id = value;
109: }
110:
111: }
|