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