View Javadoc
1   /*
2    * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
3    * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4    *
5    * This code is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU General Public License version 2 only, as
7    * published by the Free Software Foundation.  Oracle designates this
8    * particular file as subject to the "Classpath" exception as provided
9    * by Oracle in the LICENSE file that accompanied this code.
10   *
11   * This code is distributed in the hope that it will be useful, but WITHOUT
12   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13   * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14   * version 2 for more details (a copy is included in the LICENSE file that
15   * accompanied this code).
16   *
17   * You should have received a copy of the GNU General Public License version
18   * 2 along with this work; if not, write to the Free Software Foundation,
19   * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20   *
21   * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22   * or visit www.oracle.com if you need additional information or have any
23   * questions.
24   */
25  
26  //
27  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-600
28  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
29  // Any modifications to this file will be lost upon recompilation of the source schema.
30  // Generated on: 2008.11.17 at 11:49:55 AM CET
31  //
32  
33  
34  package com.sun.xml.internal.ws.runtime.config;
35  
36  import org.w3c.dom.Element;
37  
38  import javax.xml.bind.annotation.*;
39  import javax.xml.namespace.QName;
40  import java.util.ArrayList;
41  import java.util.HashMap;
42  import java.util.List;
43  import java.util.Map;
44  
45  
46  /**
47   * <p>Java class for tubeFactoryListCType complex type.
48   *
49   * <p>The following schema fragment specifies the expected content contained within this class.
50   *
51   * <pre>
52   * &lt;complexType name="tubeFactoryListCType">
53   *   &lt;complexContent>
54   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
55   *       &lt;sequence>
56   *         &lt;element name="tube-factory" type="{http://java.sun.com/xml/ns/metro/config}tubeFactoryCType" maxOccurs="unbounded"/>
57   *         &lt;any/>
58   *       &lt;/sequence>
59   *     &lt;/restriction>
60   *   &lt;/complexContent>
61   * &lt;/complexType>
62   * </pre>
63   *
64   *
65   */
66  @XmlAccessorType(XmlAccessType.FIELD)
67  @XmlType(name = "tubeFactoryListCType", propOrder = {
68      "tubeFactoryConfigs",
69      "any"
70  })
71  public class TubeFactoryList {
72  
73      @XmlElement(name = "tube-factory", required = true)
74      protected List<TubeFactoryConfig> tubeFactoryConfigs;
75      @XmlAnyElement(lax = true)
76      protected List<Object> any;
77      @XmlAnyAttribute
78      private Map<QName, String> otherAttributes = new HashMap<QName, String>();
79  
80      /**
81       * Gets the value of the tubeFactoryConfigs property.
82       *
83       * <p>
84       * This accessor method returns a reference to the live list,
85       * not a snapshot. Therefore any modification you make to the
86       * returned list will be present inside the JAXB object.
87       * This is why there is not a <CODE>set</CODE> method for the tubeFactoryConfigs property.
88       *
89       * <p>
90       * For example, to add a new item, do as follows:
91       * <pre>
92       *    getTubeFactoryConfigs().add(newItem);
93       * </pre>
94       *
95       *
96       * <p>
97       * Objects of the following type(s) are allowed in the list
98       * {@link TubeFactoryConfig }
99       *
100      *
101      */
102     public List<TubeFactoryConfig> getTubeFactoryConfigs() {
103         if (tubeFactoryConfigs == null) {
104             tubeFactoryConfigs = new ArrayList<TubeFactoryConfig>();
105         }
106         return this.tubeFactoryConfigs;
107     }
108 
109     /**
110      * Gets the value of the any property.
111      *
112      * <p>
113      * This accessor method returns a reference to the live list,
114      * not a snapshot. Therefore any modification you make to the
115      * returned list will be present inside the JAXB object.
116      * This is why there is not a <CODE>set</CODE> method for the any property.
117      *
118      * <p>
119      * For example, to add a new item, do as follows:
120      * <pre>
121      *    getAny().add(newItem);
122      * </pre>
123      *
124      *
125      * <p>
126      * Objects of the following type(s) are allowed in the list
127      * {@link Element }
128      * {@link Object }
129      *
130      *
131      */
132     public List<Object> getAny() {
133         if (any == null) {
134             any = new ArrayList<Object>();
135         }
136         return this.any;
137     }
138 
139     /**
140      * Gets a map that contains attributes that aren't bound to any typed property on this class.
141      *
142      * <p>
143      * the map is keyed by the name of the attribute and
144      * the value is the string value of the attribute.
145      *
146      * the map returned by this method is live, and you can add new attribute
147      * by updating the map directly. Because of this design, there's no setter.
148      *
149      *
150      * @return
151      *     always non-null
152      */
153     public Map<QName, String> getOtherAttributes() {
154         return otherAttributes;
155     }
156 
157 }