001: //
002: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6
003: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004: // Any modifications to this file will be lost upon recompilation of the source schema.
005: // Generated on: 2007.03.17 at 08:38:02 AM PDT
006: //
007:
008: package org.collada.colladaschema;
009:
010: import java.util.ArrayList;
011: import java.util.List;
012: import javax.xml.bind.annotation.XmlAccessType;
013: import javax.xml.bind.annotation.XmlAccessorType;
014: import javax.xml.bind.annotation.XmlAttribute;
015: import javax.xml.bind.annotation.XmlElement;
016: import javax.xml.bind.annotation.XmlID;
017: import javax.xml.bind.annotation.XmlRootElement;
018: import javax.xml.bind.annotation.XmlType;
019: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
020: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
021:
022: /**
023: * <p>Java class for anonymous complex type.
024: *
025: * <p>The following schema fragment specifies the expected content contained within this class.
026: *
027: * <pre>
028: * <complexType>
029: * <complexContent>
030: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
031: * <sequence>
032: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}asset" minOccurs="0"/>
033: * <choice>
034: * <sequence>
035: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}source" maxOccurs="unbounded"/>
036: * <choice>
037: * <sequence>
038: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}sampler" maxOccurs="unbounded"/>
039: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}channel" maxOccurs="unbounded"/>
040: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}animation" maxOccurs="unbounded" minOccurs="0"/>
041: * </sequence>
042: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}animation" maxOccurs="unbounded"/>
043: * </choice>
044: * </sequence>
045: * <sequence>
046: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}sampler" maxOccurs="unbounded"/>
047: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}channel" maxOccurs="unbounded"/>
048: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}animation" maxOccurs="unbounded" minOccurs="0"/>
049: * </sequence>
050: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}animation" maxOccurs="unbounded"/>
051: * </choice>
052: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}extra" maxOccurs="unbounded" minOccurs="0"/>
053: * </sequence>
054: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
055: * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}NCName" />
056: * </restriction>
057: * </complexContent>
058: * </complexType>
059: * </pre>
060: *
061: *
062: */
063: @XmlAccessorType(XmlAccessType.FIELD)
064: @XmlType(name="",propOrder={"asset","sources","samplers","channels","animations","extras"})
065: @XmlRootElement(name="animation")
066: public class Animation {
067:
068: protected Asset asset;
069: @XmlElement(name="source")
070: protected List<Source> sources;
071: @XmlElement(name="sampler")
072: protected List<Sampler> samplers;
073: @XmlElement(name="channel")
074: protected List<Channel> channels;
075: @XmlElement(name="animation")
076: protected List<Animation> animations;
077: @XmlElement(name="extra")
078: protected List<Extra> extras;
079: @XmlAttribute
080: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
081: @XmlID
082: protected String id;
083: @XmlAttribute
084: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
085: protected String name;
086:
087: /**
088: *
089: * The animation element may contain an asset element.
090: *
091: *
092: * @return
093: * possible object is
094: * {@link Asset }
095: *
096: */
097: public Asset getAsset() {
098: return asset;
099: }
100:
101: /**
102: *
103: * The animation element may contain an asset element.
104: *
105: *
106: * @param value
107: * allowed object is
108: * {@link Asset }
109: *
110: */
111: public void setAsset(Asset value) {
112: this .asset = value;
113: }
114:
115: /**
116: *
117: * The animation element may contain any number of source elements.
118: * Gets the value of the sources property.
119: *
120: * <p>
121: * This accessor method returns a reference to the live list,
122: * not a snapshot. Therefore any modification you make to the
123: * returned list will be present inside the JAXB object.
124: * This is why there is not a <CODE>set</CODE> method for the sources property.
125: *
126: * <p>
127: * For example, to add a new item, do as follows:
128: * <pre>
129: * getSources().add(newItem);
130: * </pre>
131: *
132: *
133: * <p>
134: * Objects of the following type(s) are allowed in the list
135: * {@link Source }
136: *
137: *
138: */
139: public List<Source> getSources() {
140: if (sources == null) {
141: sources = new ArrayList<Source>();
142: }
143: return this .sources;
144: }
145:
146: /**
147: * Gets the value of the samplers property.
148: *
149: * <p>
150: * This accessor method returns a reference to the live list,
151: * not a snapshot. Therefore any modification you make to the
152: * returned list will be present inside the JAXB object.
153: * This is why there is not a <CODE>set</CODE> method for the samplers property.
154: *
155: * <p>
156: * For example, to add a new item, do as follows:
157: * <pre>
158: * getSamplers().add(newItem);
159: * </pre>
160: *
161: *
162: * <p>
163: * Objects of the following type(s) are allowed in the list
164: * {@link Sampler }
165: *
166: *
167: */
168: public List<Sampler> getSamplers() {
169: if (samplers == null) {
170: samplers = new ArrayList<Sampler>();
171: }
172: return this .samplers;
173: }
174:
175: /**
176: * Gets the value of the channels property.
177: *
178: * <p>
179: * This accessor method returns a reference to the live list,
180: * not a snapshot. Therefore any modification you make to the
181: * returned list will be present inside the JAXB object.
182: * This is why there is not a <CODE>set</CODE> method for the channels property.
183: *
184: * <p>
185: * For example, to add a new item, do as follows:
186: * <pre>
187: * getChannels().add(newItem);
188: * </pre>
189: *
190: *
191: * <p>
192: * Objects of the following type(s) are allowed in the list
193: * {@link Channel }
194: *
195: *
196: */
197: public List<Channel> getChannels() {
198: if (channels == null) {
199: channels = new ArrayList<Channel>();
200: }
201: return this .channels;
202: }
203:
204: /**
205: * Gets the value of the animations property.
206: *
207: * <p>
208: * This accessor method returns a reference to the live list,
209: * not a snapshot. Therefore any modification you make to the
210: * returned list will be present inside the JAXB object.
211: * This is why there is not a <CODE>set</CODE> method for the animations property.
212: *
213: * <p>
214: * For example, to add a new item, do as follows:
215: * <pre>
216: * getAnimations().add(newItem);
217: * </pre>
218: *
219: *
220: * <p>
221: * Objects of the following type(s) are allowed in the list
222: * {@link Animation }
223: *
224: *
225: */
226: public List<Animation> getAnimations() {
227: if (animations == null) {
228: animations = new ArrayList<Animation>();
229: }
230: return this .animations;
231: }
232:
233: /**
234: *
235: * The extra element may appear any number of times.
236: * Gets the value of the extras property.
237: *
238: * <p>
239: * This accessor method returns a reference to the live list,
240: * not a snapshot. Therefore any modification you make to the
241: * returned list will be present inside the JAXB object.
242: * This is why there is not a <CODE>set</CODE> method for the extras property.
243: *
244: * <p>
245: * For example, to add a new item, do as follows:
246: * <pre>
247: * getExtras().add(newItem);
248: * </pre>
249: *
250: *
251: * <p>
252: * Objects of the following type(s) are allowed in the list
253: * {@link Extra }
254: *
255: *
256: */
257: public List<Extra> getExtras() {
258: if (extras == null) {
259: extras = new ArrayList<Extra>();
260: }
261: return this .extras;
262: }
263:
264: /**
265: * Gets the value of the id property.
266: *
267: * @return
268: * possible object is
269: * {@link String }
270: *
271: */
272: public String getId() {
273: return id;
274: }
275:
276: /**
277: * Sets the value of the id property.
278: *
279: * @param value
280: * allowed object is
281: * {@link String }
282: *
283: */
284: public void setId(String value) {
285: this .id = value;
286: }
287:
288: /**
289: * Gets the value of the name property.
290: *
291: * @return
292: * possible object is
293: * {@link String }
294: *
295: */
296: public String getName() {
297: return name;
298: }
299:
300: /**
301: * Sets the value of the name property.
302: *
303: * @param value
304: * allowed object is
305: * {@link String }
306: *
307: */
308: public void setName(String value) {
309: this.name = value;
310: }
311:
312: }
|