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.XmlElement;
015: import javax.xml.bind.annotation.XmlElements;
016: import javax.xml.bind.annotation.XmlRootElement;
017: import javax.xml.bind.annotation.XmlType;
018:
019: /**
020: * <p>Java class for anonymous complex type.
021: *
022: * <p>The following schema fragment specifies the expected content contained within this class.
023: *
024: * <pre>
025: * <complexType>
026: * <complexContent>
027: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
028: * <sequence>
029: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}source" maxOccurs="unbounded"/>
030: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}vertices"/>
031: * <choice maxOccurs="unbounded" minOccurs="0">
032: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}lines"/>
033: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}linestrips"/>
034: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}polygons"/>
035: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}polylist"/>
036: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}triangles"/>
037: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}trifans"/>
038: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}tristrips"/>
039: * </choice>
040: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}extra" maxOccurs="unbounded" minOccurs="0"/>
041: * </sequence>
042: * </restriction>
043: * </complexContent>
044: * </complexType>
045: * </pre>
046: *
047: *
048: */
049: @XmlAccessorType(XmlAccessType.FIELD)
050: @XmlType(name="",propOrder={"sources","vertices","trianglesAndLinestripsAndPolygons","extras"})
051: @XmlRootElement(name="mesh")
052: public class Mesh {
053:
054: @XmlElement(name="source",required=true)
055: protected List<Source> sources;
056: @XmlElement(required=true)
057: protected Vertices vertices;
058: @XmlElements({@XmlElement(name="linestrips",type=Linestrips.class),@XmlElement(name="trifans",type=Trifans.class),@XmlElement(name="triangles",type=Triangles.class),@XmlElement(name="tristrips",type=Tristrips.class),@XmlElement(name="polylist",type=Polylist.class),@XmlElement(name="polygons",type=Polygons.class),@XmlElement(name="lines",type=Lines.class)})
059: protected List<Object> trianglesAndLinestripsAndPolygons;
060: @XmlElement(name="extra")
061: protected List<Extra> extras;
062:
063: /**
064: *
065: * The mesh element must contain one or more source elements.
066: * Gets the value of the sources property.
067: *
068: * <p>
069: * This accessor method returns a reference to the live list,
070: * not a snapshot. Therefore any modification you make to the
071: * returned list will be present inside the JAXB object.
072: * This is why there is not a <CODE>set</CODE> method for the sources property.
073: *
074: * <p>
075: * For example, to add a new item, do as follows:
076: * <pre>
077: * getSources().add(newItem);
078: * </pre>
079: *
080: *
081: * <p>
082: * Objects of the following type(s) are allowed in the list
083: * {@link Source }
084: *
085: *
086: */
087: public List<Source> getSources() {
088: if (sources == null) {
089: sources = new ArrayList<Source>();
090: }
091: return this .sources;
092: }
093:
094: /**
095: *
096: * The mesh element must contain one vertices element.
097: *
098: *
099: * @return
100: * possible object is
101: * {@link Vertices }
102: *
103: */
104: public Vertices getVertices() {
105: return vertices;
106: }
107:
108: /**
109: *
110: * The mesh element must contain one vertices element.
111: *
112: *
113: * @param value
114: * allowed object is
115: * {@link Vertices }
116: *
117: */
118: public void setVertices(Vertices value) {
119: this .vertices = value;
120: }
121:
122: /**
123: *
124: * The mesh element may contain any number of triangles elements.
125: * Gets the value of the trianglesAndLinestripsAndPolygons property.
126: *
127: * <p>
128: * This accessor method returns a reference to the live list,
129: * not a snapshot. Therefore any modification you make to the
130: * returned list will be present inside the JAXB object.
131: * This is why there is not a <CODE>set</CODE> method for the trianglesAndLinestripsAndPolygons property.
132: *
133: * <p>
134: * For example, to add a new item, do as follows:
135: * <pre>
136: * getTrianglesAndLinestripsAndPolygons().add(newItem);
137: * </pre>
138: *
139: *
140: * <p>
141: * Objects of the following type(s) are allowed in the list
142: * {@link Linestrips }
143: * {@link Trifans }
144: * {@link Triangles }
145: * {@link Tristrips }
146: * {@link Polylist }
147: * {@link Polygons }
148: * {@link Lines }
149: *
150: *
151: */
152: public List<Object> getTrianglesAndLinestripsAndPolygons() {
153: if (trianglesAndLinestripsAndPolygons == null) {
154: trianglesAndLinestripsAndPolygons = new ArrayList<Object>();
155: }
156: return this .trianglesAndLinestripsAndPolygons;
157: }
158:
159: /**
160: *
161: * The extra element may appear any number of times.
162: * Gets the value of the extras 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 extras property.
169: *
170: * <p>
171: * For example, to add a new item, do as follows:
172: * <pre>
173: * getExtras().add(newItem);
174: * </pre>
175: *
176: *
177: * <p>
178: * Objects of the following type(s) are allowed in the list
179: * {@link Extra }
180: *
181: *
182: */
183: public List<Extra> getExtras() {
184: if (extras == null) {
185: extras = new ArrayList<Extra>();
186: }
187: return this.extras;
188: }
189:
190: }
|