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: * <element name="instance_animation" type="{http://www.collada.org/2005/11/COLLADASchema}InstanceWithExtra" maxOccurs="unbounded"/>
034: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}extra" maxOccurs="unbounded" minOccurs="0"/>
035: * </sequence>
036: * <attribute name="end" type="{http://www.w3.org/2001/XMLSchema}double" />
037: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
038: * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}NCName" />
039: * <attribute name="start" type="{http://www.w3.org/2001/XMLSchema}double" default="0.0" />
040: * </restriction>
041: * </complexContent>
042: * </complexType>
043: * </pre>
044: *
045: *
046: */
047: @XmlAccessorType(XmlAccessType.FIELD)
048: @XmlType(name="",propOrder={"asset","instanceAnimations","extras"})
049: @XmlRootElement(name="animation_clip")
050: public class AnimationClip {
051:
052: protected Asset asset;
053: @XmlElement(name="instance_animation",required=true)
054: protected List<InstanceWithExtra> instanceAnimations;
055: @XmlElement(name="extra")
056: protected List<Extra> extras;
057: @XmlAttribute
058: protected Double end;
059: @XmlAttribute
060: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
061: @XmlID
062: protected String id;
063: @XmlAttribute
064: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
065: protected String name;
066: @XmlAttribute
067: protected Double start;
068:
069: /**
070: *
071: * The animation_clip element may contain an asset element.
072: *
073: *
074: * @return
075: * possible object is
076: * {@link Asset }
077: *
078: */
079: public Asset getAsset() {
080: return asset;
081: }
082:
083: /**
084: *
085: * The animation_clip element may contain an asset element.
086: *
087: *
088: * @param value
089: * allowed object is
090: * {@link Asset }
091: *
092: */
093: public void setAsset(Asset value) {
094: this .asset = value;
095: }
096:
097: /**
098: * Gets the value of the instanceAnimations property.
099: *
100: * <p>
101: * This accessor method returns a reference to the live list,
102: * not a snapshot. Therefore any modification you make to the
103: * returned list will be present inside the JAXB object.
104: * This is why there is not a <CODE>set</CODE> method for the instanceAnimations property.
105: *
106: * <p>
107: * For example, to add a new item, do as follows:
108: * <pre>
109: * getInstanceAnimations().add(newItem);
110: * </pre>
111: *
112: *
113: * <p>
114: * Objects of the following type(s) are allowed in the list
115: * {@link InstanceWithExtra }
116: *
117: *
118: */
119: public List<InstanceWithExtra> getInstanceAnimations() {
120: if (instanceAnimations == null) {
121: instanceAnimations = new ArrayList<InstanceWithExtra>();
122: }
123: return this .instanceAnimations;
124: }
125:
126: /**
127: *
128: * The extra element may appear any number of times.
129: * Gets the value of the extras property.
130: *
131: * <p>
132: * This accessor method returns a reference to the live list,
133: * not a snapshot. Therefore any modification you make to the
134: * returned list will be present inside the JAXB object.
135: * This is why there is not a <CODE>set</CODE> method for the extras property.
136: *
137: * <p>
138: * For example, to add a new item, do as follows:
139: * <pre>
140: * getExtras().add(newItem);
141: * </pre>
142: *
143: *
144: * <p>
145: * Objects of the following type(s) are allowed in the list
146: * {@link Extra }
147: *
148: *
149: */
150: public List<Extra> getExtras() {
151: if (extras == null) {
152: extras = new ArrayList<Extra>();
153: }
154: return this .extras;
155: }
156:
157: /**
158: * Gets the value of the end property.
159: *
160: * @return
161: * possible object is
162: * {@link Double }
163: *
164: */
165: public Double getEnd() {
166: return end;
167: }
168:
169: /**
170: * Sets the value of the end property.
171: *
172: * @param value
173: * allowed object is
174: * {@link Double }
175: *
176: */
177: public void setEnd(Double value) {
178: this .end = value;
179: }
180:
181: /**
182: * Gets the value of the id property.
183: *
184: * @return
185: * possible object is
186: * {@link String }
187: *
188: */
189: public String getId() {
190: return id;
191: }
192:
193: /**
194: * Sets the value of the id property.
195: *
196: * @param value
197: * allowed object is
198: * {@link String }
199: *
200: */
201: public void setId(String value) {
202: this .id = value;
203: }
204:
205: /**
206: * Gets the value of the name property.
207: *
208: * @return
209: * possible object is
210: * {@link String }
211: *
212: */
213: public String getName() {
214: return name;
215: }
216:
217: /**
218: * Sets the value of the name property.
219: *
220: * @param value
221: * allowed object is
222: * {@link String }
223: *
224: */
225: public void setName(String value) {
226: this .name = value;
227: }
228:
229: /**
230: * Gets the value of the start property.
231: *
232: * @return
233: * possible object is
234: * {@link Double }
235: *
236: */
237: public double getStart() {
238: if (start == null) {
239: return 0.0D;
240: } else {
241: return start;
242: }
243: }
244:
245: /**
246: * Sets the value of the start property.
247: *
248: * @param value
249: * allowed object is
250: * {@link Double }
251: *
252: */
253: public void setStart(Double value) {
254: this.start = value;
255: }
256:
257: }
|