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 ref="{http://www.collada.org/2005/11/COLLADASchema}instance_force_field" maxOccurs="unbounded" minOccurs="0"/>
034: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}instance_physics_model" maxOccurs="unbounded" minOccurs="0"/>
035: * <element name="technique_common">
036: * <complexType>
037: * <complexContent>
038: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
039: * <sequence>
040: * <element name="gravity" type="{http://www.collada.org/2005/11/COLLADASchema}TargetableFloat3" minOccurs="0"/>
041: * <element name="time_step" type="{http://www.collada.org/2005/11/COLLADASchema}TargetableFloat" minOccurs="0"/>
042: * </sequence>
043: * </restriction>
044: * </complexContent>
045: * </complexType>
046: * </element>
047: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}technique" maxOccurs="unbounded" minOccurs="0"/>
048: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}extra" maxOccurs="unbounded" minOccurs="0"/>
049: * </sequence>
050: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
051: * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}NCName" />
052: * </restriction>
053: * </complexContent>
054: * </complexType>
055: * </pre>
056: *
057: *
058: */
059: @XmlAccessorType(XmlAccessType.FIELD)
060: @XmlType(name="",propOrder={"asset","instanceForceFields","instancePhysicsModels","techniqueCommon","techniques","extras"})
061: @XmlRootElement(name="physics_scene")
062: public class PhysicsScene {
063:
064: protected Asset asset;
065: @XmlElement(name="instance_force_field")
066: protected List<InstanceWithExtra> instanceForceFields;
067: @XmlElement(name="instance_physics_model")
068: protected List<InstancePhysicsModel> instancePhysicsModels;
069: @XmlElement(name="technique_common",required=true)
070: protected PhysicsScene.TechniqueCommon techniqueCommon;
071: @XmlElement(name="technique")
072: protected List<Technique> techniques;
073: @XmlElement(name="extra")
074: protected List<Extra> extras;
075: @XmlAttribute
076: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
077: @XmlID
078: protected String id;
079: @XmlAttribute
080: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
081: protected String name;
082:
083: /**
084: *
085: * The physics_scene element may contain an asset element.
086: *
087: *
088: * @return
089: * possible object is
090: * {@link Asset }
091: *
092: */
093: public Asset getAsset() {
094: return asset;
095: }
096:
097: /**
098: *
099: * The physics_scene element may contain an asset element.
100: *
101: *
102: * @param value
103: * allowed object is
104: * {@link Asset }
105: *
106: */
107: public void setAsset(Asset value) {
108: this .asset = value;
109: }
110:
111: /**
112: *
113: * There may be any number of instance_force_field elements.
114: * Gets the value of the instanceForceFields property.
115: *
116: * <p>
117: * This accessor method returns a reference to the live list,
118: * not a snapshot. Therefore any modification you make to the
119: * returned list will be present inside the JAXB object.
120: * This is why there is not a <CODE>set</CODE> method for the instanceForceFields property.
121: *
122: * <p>
123: * For example, to add a new item, do as follows:
124: * <pre>
125: * getInstanceForceFields().add(newItem);
126: * </pre>
127: *
128: *
129: * <p>
130: * Objects of the following type(s) are allowed in the list
131: * {@link InstanceWithExtra }
132: *
133: *
134: */
135: public List<InstanceWithExtra> getInstanceForceFields() {
136: if (instanceForceFields == null) {
137: instanceForceFields = new ArrayList<InstanceWithExtra>();
138: }
139: return this .instanceForceFields;
140: }
141:
142: /**
143: *
144: * There may be any number of instance_physics_model elements.
145: * Gets the value of the instancePhysicsModels property.
146: *
147: * <p>
148: * This accessor method returns a reference to the live list,
149: * not a snapshot. Therefore any modification you make to the
150: * returned list will be present inside the JAXB object.
151: * This is why there is not a <CODE>set</CODE> method for the instancePhysicsModels property.
152: *
153: * <p>
154: * For example, to add a new item, do as follows:
155: * <pre>
156: * getInstancePhysicsModels().add(newItem);
157: * </pre>
158: *
159: *
160: * <p>
161: * Objects of the following type(s) are allowed in the list
162: * {@link InstancePhysicsModel }
163: *
164: *
165: */
166: public List<InstancePhysicsModel> getInstancePhysicsModels() {
167: if (instancePhysicsModels == null) {
168: instancePhysicsModels = new ArrayList<InstancePhysicsModel>();
169: }
170: return this .instancePhysicsModels;
171: }
172:
173: /**
174: * Gets the value of the techniqueCommon property.
175: *
176: * @return
177: * possible object is
178: * {@link PhysicsScene.TechniqueCommon }
179: *
180: */
181: public PhysicsScene.TechniqueCommon getTechniqueCommon() {
182: return techniqueCommon;
183: }
184:
185: /**
186: * Sets the value of the techniqueCommon property.
187: *
188: * @param value
189: * allowed object is
190: * {@link PhysicsScene.TechniqueCommon }
191: *
192: */
193: public void setTechniqueCommon(PhysicsScene.TechniqueCommon value) {
194: this .techniqueCommon = value;
195: }
196:
197: /**
198: *
199: * This element may contain any number of non-common profile techniques.
200: * Gets the value of the techniques property.
201: *
202: * <p>
203: * This accessor method returns a reference to the live list,
204: * not a snapshot. Therefore any modification you make to the
205: * returned list will be present inside the JAXB object.
206: * This is why there is not a <CODE>set</CODE> method for the techniques property.
207: *
208: * <p>
209: * For example, to add a new item, do as follows:
210: * <pre>
211: * getTechniques().add(newItem);
212: * </pre>
213: *
214: *
215: * <p>
216: * Objects of the following type(s) are allowed in the list
217: * {@link Technique }
218: *
219: *
220: */
221: public List<Technique> getTechniques() {
222: if (techniques == null) {
223: techniques = new ArrayList<Technique>();
224: }
225: return this .techniques;
226: }
227:
228: /**
229: *
230: * The extra element may appear any number of times.
231: * Gets the value of the extras property.
232: *
233: * <p>
234: * This accessor method returns a reference to the live list,
235: * not a snapshot. Therefore any modification you make to the
236: * returned list will be present inside the JAXB object.
237: * This is why there is not a <CODE>set</CODE> method for the extras property.
238: *
239: * <p>
240: * For example, to add a new item, do as follows:
241: * <pre>
242: * getExtras().add(newItem);
243: * </pre>
244: *
245: *
246: * <p>
247: * Objects of the following type(s) are allowed in the list
248: * {@link Extra }
249: *
250: *
251: */
252: public List<Extra> getExtras() {
253: if (extras == null) {
254: extras = new ArrayList<Extra>();
255: }
256: return this .extras;
257: }
258:
259: /**
260: * Gets the value of the id property.
261: *
262: * @return
263: * possible object is
264: * {@link String }
265: *
266: */
267: public String getId() {
268: return id;
269: }
270:
271: /**
272: * Sets the value of the id property.
273: *
274: * @param value
275: * allowed object is
276: * {@link String }
277: *
278: */
279: public void setId(String value) {
280: this .id = value;
281: }
282:
283: /**
284: * Gets the value of the name property.
285: *
286: * @return
287: * possible object is
288: * {@link String }
289: *
290: */
291: public String getName() {
292: return name;
293: }
294:
295: /**
296: * Sets the value of the name property.
297: *
298: * @param value
299: * allowed object is
300: * {@link String }
301: *
302: */
303: public void setName(String value) {
304: this .name = value;
305: }
306:
307: /**
308: * <p>Java class for anonymous complex type.
309: *
310: * <p>The following schema fragment specifies the expected content contained within this class.
311: *
312: * <pre>
313: * <complexType>
314: * <complexContent>
315: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
316: * <sequence>
317: * <element name="gravity" type="{http://www.collada.org/2005/11/COLLADASchema}TargetableFloat3" minOccurs="0"/>
318: * <element name="time_step" type="{http://www.collada.org/2005/11/COLLADASchema}TargetableFloat" minOccurs="0"/>
319: * </sequence>
320: * </restriction>
321: * </complexContent>
322: * </complexType>
323: * </pre>
324: *
325: *
326: */
327: @XmlAccessorType(XmlAccessType.FIELD)
328: @XmlType(name="",propOrder={"gravity","timeStep"})
329: public static class TechniqueCommon {
330:
331: protected TargetableFloat3 gravity;
332: @XmlElement(name="time_step")
333: protected TargetableFloat timeStep;
334:
335: /**
336: * Gets the value of the gravity property.
337: *
338: * @return
339: * possible object is
340: * {@link TargetableFloat3 }
341: *
342: */
343: public TargetableFloat3 getGravity() {
344: return gravity;
345: }
346:
347: /**
348: * Sets the value of the gravity property.
349: *
350: * @param value
351: * allowed object is
352: * {@link TargetableFloat3 }
353: *
354: */
355: public void setGravity(TargetableFloat3 value) {
356: this .gravity = value;
357: }
358:
359: /**
360: * Gets the value of the timeStep property.
361: *
362: * @return
363: * possible object is
364: * {@link TargetableFloat }
365: *
366: */
367: public TargetableFloat getTimeStep() {
368: return timeStep;
369: }
370:
371: /**
372: * Sets the value of the timeStep property.
373: *
374: * @param value
375: * allowed object is
376: * {@link TargetableFloat }
377: *
378: */
379: public void setTimeStep(TargetableFloat value) {
380: this.timeStep = value;
381: }
382:
383: }
384:
385: }
|