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