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.JAXBElement;
013: import javax.xml.bind.annotation.XmlAccessType;
014: import javax.xml.bind.annotation.XmlAccessorType;
015: import javax.xml.bind.annotation.XmlAttribute;
016: import javax.xml.bind.annotation.XmlElement;
017: import javax.xml.bind.annotation.XmlElementRef;
018: import javax.xml.bind.annotation.XmlElementRefs;
019: import javax.xml.bind.annotation.XmlID;
020: import javax.xml.bind.annotation.XmlRootElement;
021: import javax.xml.bind.annotation.XmlType;
022: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
023: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
024:
025: /**
026: * <p>Java class for anonymous complex type.
027: *
028: * <p>The following schema fragment specifies the expected content contained within this class.
029: *
030: * <pre>
031: * <complexType>
032: * <complexContent>
033: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
034: * <sequence>
035: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}asset" minOccurs="0"/>
036: * <choice maxOccurs="unbounded" minOccurs="0">
037: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}lookat"/>
038: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}matrix"/>
039: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}rotate"/>
040: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}scale"/>
041: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}skew"/>
042: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}translate"/>
043: * </choice>
044: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}instance_camera" maxOccurs="unbounded" minOccurs="0"/>
045: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}instance_controller" maxOccurs="unbounded" minOccurs="0"/>
046: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}instance_geometry" maxOccurs="unbounded" minOccurs="0"/>
047: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}instance_light" maxOccurs="unbounded" minOccurs="0"/>
048: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}instance_node" maxOccurs="unbounded" minOccurs="0"/>
049: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}node" maxOccurs="unbounded" minOccurs="0"/>
050: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}extra" maxOccurs="unbounded" minOccurs="0"/>
051: * </sequence>
052: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
053: * <attribute name="layer" type="{http://www.collada.org/2005/11/COLLADASchema}ListOfNames" />
054: * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}NCName" />
055: * <attribute name="sid" type="{http://www.w3.org/2001/XMLSchema}NCName" />
056: * <attribute name="type" type="{http://www.collada.org/2005/11/COLLADASchema}NodeType" default="NODE" />
057: * </restriction>
058: * </complexContent>
059: * </complexType>
060: * </pre>
061: *
062: *
063: */
064: @XmlAccessorType(XmlAccessType.FIELD)
065: @XmlType(name="",propOrder={"asset","translatesAndMatrixesAndLookats","instanceCameras","instanceControllers","instanceGeometries","instanceLights","instanceNodes","nodes","extras"})
066: @XmlRootElement(name="node")
067: public class Node {
068:
069: protected Asset asset;
070: @XmlElementRefs({@XmlElementRef(name="rotate",namespace="http://www.collada.org/2005/11/COLLADASchema",type=Rotate.class),@XmlElementRef(name="translate",namespace="http://www.collada.org/2005/11/COLLADASchema",type=JAXBElement.class),@XmlElementRef(name="skew",namespace="http://www.collada.org/2005/11/COLLADASchema",type=Skew.class),@XmlElementRef(name="scale",namespace="http://www.collada.org/2005/11/COLLADASchema",type=JAXBElement.class),@XmlElementRef(name="matrix",namespace="http://www.collada.org/2005/11/COLLADASchema",type=Matrix.class),@XmlElementRef(name="lookat",namespace="http://www.collada.org/2005/11/COLLADASchema",type=Lookat.class)})
071: protected List<Object> translatesAndMatrixesAndLookats;
072: @XmlElement(name="instance_camera")
073: protected List<InstanceWithExtra> instanceCameras;
074: @XmlElement(name="instance_controller")
075: protected List<InstanceController> instanceControllers;
076: @XmlElement(name="instance_geometry")
077: protected List<InstanceGeometry> instanceGeometries;
078: @XmlElement(name="instance_light")
079: protected List<InstanceWithExtra> instanceLights;
080: @XmlElement(name="instance_node")
081: protected List<InstanceWithExtra> instanceNodes;
082: @XmlElement(name="node")
083: protected List<Node> nodes;
084: @XmlElement(name="extra")
085: protected List<Extra> extras;
086: @XmlAttribute
087: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
088: @XmlID
089: protected String id;
090: @XmlAttribute(name="layer")
091: protected List<String> layers;
092: @XmlAttribute
093: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
094: protected String name;
095: @XmlAttribute
096: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
097: protected String sid;
098: @XmlAttribute
099: protected NodeType type;
100:
101: /**
102: *
103: * The node element may contain an asset element.
104: *
105: *
106: * @return
107: * possible object is
108: * {@link Asset }
109: *
110: */
111: public Asset getAsset() {
112: return asset;
113: }
114:
115: /**
116: *
117: * The node element may contain an asset element.
118: *
119: *
120: * @param value
121: * allowed object is
122: * {@link Asset }
123: *
124: */
125: public void setAsset(Asset value) {
126: this .asset = value;
127: }
128:
129: /**
130: *
131: * The node element may contain any number of translate elements.
132: * Gets the value of the translatesAndMatrixesAndLookats property.
133: *
134: * <p>
135: * This accessor method returns a reference to the live list,
136: * not a snapshot. Therefore any modification you make to the
137: * returned list will be present inside the JAXB object.
138: * This is why there is not a <CODE>set</CODE> method for the translatesAndMatrixesAndLookats property.
139: *
140: * <p>
141: * For example, to add a new item, do as follows:
142: * <pre>
143: * getTranslatesAndMatrixesAndLookats().add(newItem);
144: * </pre>
145: *
146: *
147: * <p>
148: * Objects of the following type(s) are allowed in the list
149: * {@link Rotate }
150: * {@link JAXBElement }{@code <}{@link TargetableFloat3 }{@code >}
151: * {@link JAXBElement }{@code <}{@link TargetableFloat3 }{@code >}
152: * {@link Matrix }
153: * {@link Lookat }
154: * {@link Skew }
155: *
156: *
157: */
158: public List<Object> getTranslatesAndMatrixesAndLookats() {
159: if (translatesAndMatrixesAndLookats == null) {
160: translatesAndMatrixesAndLookats = new ArrayList<Object>();
161: }
162: return this .translatesAndMatrixesAndLookats;
163: }
164:
165: /**
166: *
167: * The node element may instance any number of camera objects.
168: * Gets the value of the instanceCameras property.
169: *
170: * <p>
171: * This accessor method returns a reference to the live list,
172: * not a snapshot. Therefore any modification you make to the
173: * returned list will be present inside the JAXB object.
174: * This is why there is not a <CODE>set</CODE> method for the instanceCameras property.
175: *
176: * <p>
177: * For example, to add a new item, do as follows:
178: * <pre>
179: * getInstanceCameras().add(newItem);
180: * </pre>
181: *
182: *
183: * <p>
184: * Objects of the following type(s) are allowed in the list
185: * {@link InstanceWithExtra }
186: *
187: *
188: */
189: public List<InstanceWithExtra> getInstanceCameras() {
190: if (instanceCameras == null) {
191: instanceCameras = new ArrayList<InstanceWithExtra>();
192: }
193: return this .instanceCameras;
194: }
195:
196: /**
197: *
198: * The node element may instance any number of controller objects.
199: * Gets the value of the instanceControllers property.
200: *
201: * <p>
202: * This accessor method returns a reference to the live list,
203: * not a snapshot. Therefore any modification you make to the
204: * returned list will be present inside the JAXB object.
205: * This is why there is not a <CODE>set</CODE> method for the instanceControllers property.
206: *
207: * <p>
208: * For example, to add a new item, do as follows:
209: * <pre>
210: * getInstanceControllers().add(newItem);
211: * </pre>
212: *
213: *
214: * <p>
215: * Objects of the following type(s) are allowed in the list
216: * {@link InstanceController }
217: *
218: *
219: */
220: public List<InstanceController> getInstanceControllers() {
221: if (instanceControllers == null) {
222: instanceControllers = new ArrayList<InstanceController>();
223: }
224: return this .instanceControllers;
225: }
226:
227: /**
228: *
229: * The node element may instance any number of geometry objects.
230: * Gets the value of the instanceGeometries property.
231: *
232: * <p>
233: * This accessor method returns a reference to the live list,
234: * not a snapshot. Therefore any modification you make to the
235: * returned list will be present inside the JAXB object.
236: * This is why there is not a <CODE>set</CODE> method for the instanceGeometries property.
237: *
238: * <p>
239: * For example, to add a new item, do as follows:
240: * <pre>
241: * getInstanceGeometries().add(newItem);
242: * </pre>
243: *
244: *
245: * <p>
246: * Objects of the following type(s) are allowed in the list
247: * {@link InstanceGeometry }
248: *
249: *
250: */
251: public List<InstanceGeometry> getInstanceGeometries() {
252: if (instanceGeometries == null) {
253: instanceGeometries = new ArrayList<InstanceGeometry>();
254: }
255: return this .instanceGeometries;
256: }
257:
258: /**
259: *
260: * The node element may instance any number of light objects.
261: * Gets the value of the instanceLights property.
262: *
263: * <p>
264: * This accessor method returns a reference to the live list,
265: * not a snapshot. Therefore any modification you make to the
266: * returned list will be present inside the JAXB object.
267: * This is why there is not a <CODE>set</CODE> method for the instanceLights property.
268: *
269: * <p>
270: * For example, to add a new item, do as follows:
271: * <pre>
272: * getInstanceLights().add(newItem);
273: * </pre>
274: *
275: *
276: * <p>
277: * Objects of the following type(s) are allowed in the list
278: * {@link InstanceWithExtra }
279: *
280: *
281: */
282: public List<InstanceWithExtra> getInstanceLights() {
283: if (instanceLights == null) {
284: instanceLights = new ArrayList<InstanceWithExtra>();
285: }
286: return this .instanceLights;
287: }
288:
289: /**
290: *
291: * The node element may instance any number of node elements or hierarchies objects.
292: * Gets the value of the instanceNodes property.
293: *
294: * <p>
295: * This accessor method returns a reference to the live list,
296: * not a snapshot. Therefore any modification you make to the
297: * returned list will be present inside the JAXB object.
298: * This is why there is not a <CODE>set</CODE> method for the instanceNodes property.
299: *
300: * <p>
301: * For example, to add a new item, do as follows:
302: * <pre>
303: * getInstanceNodes().add(newItem);
304: * </pre>
305: *
306: *
307: * <p>
308: * Objects of the following type(s) are allowed in the list
309: * {@link InstanceWithExtra }
310: *
311: *
312: */
313: public List<InstanceWithExtra> getInstanceNodes() {
314: if (instanceNodes == null) {
315: instanceNodes = new ArrayList<InstanceWithExtra>();
316: }
317: return this .instanceNodes;
318: }
319:
320: /**
321: *
322: * The node element may be hierarchical and be the parent of any number of other node elements.
323: * Gets the value of the nodes property.
324: *
325: * <p>
326: * This accessor method returns a reference to the live list,
327: * not a snapshot. Therefore any modification you make to the
328: * returned list will be present inside the JAXB object.
329: * This is why there is not a <CODE>set</CODE> method for the nodes property.
330: *
331: * <p>
332: * For example, to add a new item, do as follows:
333: * <pre>
334: * getNodes().add(newItem);
335: * </pre>
336: *
337: *
338: * <p>
339: * Objects of the following type(s) are allowed in the list
340: * {@link Node }
341: *
342: *
343: */
344: public List<Node> getNodes() {
345: if (nodes == null) {
346: nodes = new ArrayList<Node>();
347: }
348: return this .nodes;
349: }
350:
351: /**
352: *
353: * The extra element may appear any number of times.
354: * Gets the value of the extras property.
355: *
356: * <p>
357: * This accessor method returns a reference to the live list,
358: * not a snapshot. Therefore any modification you make to the
359: * returned list will be present inside the JAXB object.
360: * This is why there is not a <CODE>set</CODE> method for the extras property.
361: *
362: * <p>
363: * For example, to add a new item, do as follows:
364: * <pre>
365: * getExtras().add(newItem);
366: * </pre>
367: *
368: *
369: * <p>
370: * Objects of the following type(s) are allowed in the list
371: * {@link Extra }
372: *
373: *
374: */
375: public List<Extra> getExtras() {
376: if (extras == null) {
377: extras = new ArrayList<Extra>();
378: }
379: return this .extras;
380: }
381:
382: /**
383: * Gets the value of the id property.
384: *
385: * @return
386: * possible object is
387: * {@link String }
388: *
389: */
390: public String getId() {
391: return id;
392: }
393:
394: /**
395: * Sets the value of the id property.
396: *
397: * @param value
398: * allowed object is
399: * {@link String }
400: *
401: */
402: public void setId(String value) {
403: this .id = value;
404: }
405:
406: /**
407: * Gets the value of the layers property.
408: *
409: * <p>
410: * This accessor method returns a reference to the live list,
411: * not a snapshot. Therefore any modification you make to the
412: * returned list will be present inside the JAXB object.
413: * This is why there is not a <CODE>set</CODE> method for the layers property.
414: *
415: * <p>
416: * For example, to add a new item, do as follows:
417: * <pre>
418: * getLayers().add(newItem);
419: * </pre>
420: *
421: *
422: * <p>
423: * Objects of the following type(s) are allowed in the list
424: * {@link String }
425: *
426: *
427: */
428: public List<String> getLayers() {
429: if (layers == null) {
430: layers = new ArrayList<String>();
431: }
432: return this .layers;
433: }
434:
435: /**
436: * Gets the value of the name property.
437: *
438: * @return
439: * possible object is
440: * {@link String }
441: *
442: */
443: public String getName() {
444: return name;
445: }
446:
447: /**
448: * Sets the value of the name property.
449: *
450: * @param value
451: * allowed object is
452: * {@link String }
453: *
454: */
455: public void setName(String value) {
456: this .name = value;
457: }
458:
459: /**
460: * Gets the value of the sid property.
461: *
462: * @return
463: * possible object is
464: * {@link String }
465: *
466: */
467: public String getSid() {
468: return sid;
469: }
470:
471: /**
472: * Sets the value of the sid property.
473: *
474: * @param value
475: * allowed object is
476: * {@link String }
477: *
478: */
479: public void setSid(String value) {
480: this .sid = value;
481: }
482:
483: /**
484: * Gets the value of the type property.
485: *
486: * @return
487: * possible object is
488: * {@link NodeType }
489: *
490: */
491: public NodeType getType() {
492: if (type == null) {
493: return NodeType.NODE;
494: } else {
495: return type;
496: }
497: }
498:
499: /**
500: * Sets the value of the type property.
501: *
502: * @param value
503: * allowed object is
504: * {@link NodeType }
505: *
506: */
507: public void setType(NodeType value) {
508: this.type = value;
509: }
510:
511: }
|