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