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.XmlRootElement;
017: import javax.xml.bind.annotation.XmlType;
018: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
019: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
020: import javax.xml.datatype.XMLGregorianCalendar;
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 name="contributor" maxOccurs="unbounded" minOccurs="0">
033: * <complexType>
034: * <complexContent>
035: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
036: * <sequence>
037: * <element name="author" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
038: * <element name="authoring_tool" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
039: * <element name="comments" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
040: * <element name="copyright" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
041: * <element name="source_data" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
042: * </sequence>
043: * </restriction>
044: * </complexContent>
045: * </complexType>
046: * </element>
047: * <element name="created" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
048: * <element name="keywords" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
049: * <element name="modified" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
050: * <element name="revision" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
051: * <element name="subject" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
052: * <element name="title" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
053: * <element name="unit" minOccurs="0">
054: * <complexType>
055: * <complexContent>
056: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
057: * <attribute name="meter" type="{http://www.collada.org/2005/11/COLLADASchema}float" default="1.0" />
058: * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" default="meter" />
059: * </restriction>
060: * </complexContent>
061: * </complexType>
062: * </element>
063: * <element name="up_axis" type="{http://www.collada.org/2005/11/COLLADASchema}UpAxisType" minOccurs="0"/>
064: * </sequence>
065: * </restriction>
066: * </complexContent>
067: * </complexType>
068: * </pre>
069: *
070: *
071: */
072: @XmlAccessorType(XmlAccessType.FIELD)
073: @XmlType(name="",propOrder={"contributors","created","keywords","modified","revision","subject","title","unit","upAxis"})
074: @XmlRootElement(name="asset")
075: public class Asset {
076:
077: @XmlElement(name="contributor")
078: protected List<Asset.Contributor> contributors;
079: @XmlElement(required=true)
080: protected XMLGregorianCalendar created;
081: protected String keywords;
082: @XmlElement(required=true)
083: protected XMLGregorianCalendar modified;
084: protected String revision;
085: protected String subject;
086: protected String title;
087: protected Asset.Unit unit;
088: @XmlElement(name="up_axis",defaultValue="Y_UP")
089: protected UpAxisType upAxis;
090:
091: /**
092: * Gets the value of the contributors property.
093: *
094: * <p>
095: * This accessor method returns a reference to the live list,
096: * not a snapshot. Therefore any modification you make to the
097: * returned list will be present inside the JAXB object.
098: * This is why there is not a <CODE>set</CODE> method for the contributors property.
099: *
100: * <p>
101: * For example, to add a new item, do as follows:
102: * <pre>
103: * getContributors().add(newItem);
104: * </pre>
105: *
106: *
107: * <p>
108: * Objects of the following type(s) are allowed in the list
109: * {@link Asset.Contributor }
110: *
111: *
112: */
113: public List<Asset.Contributor> getContributors() {
114: if (contributors == null) {
115: contributors = new ArrayList<Asset.Contributor>();
116: }
117: return this .contributors;
118: }
119:
120: /**
121: * Gets the value of the created property.
122: *
123: * @return
124: * possible object is
125: * {@link XMLGregorianCalendar }
126: *
127: */
128: public XMLGregorianCalendar getCreated() {
129: return created;
130: }
131:
132: /**
133: * Sets the value of the created property.
134: *
135: * @param value
136: * allowed object is
137: * {@link XMLGregorianCalendar }
138: *
139: */
140: public void setCreated(XMLGregorianCalendar value) {
141: this .created = value;
142: }
143:
144: /**
145: * Gets the value of the keywords property.
146: *
147: * @return
148: * possible object is
149: * {@link String }
150: *
151: */
152: public String getKeywords() {
153: return keywords;
154: }
155:
156: /**
157: * Sets the value of the keywords property.
158: *
159: * @param value
160: * allowed object is
161: * {@link String }
162: *
163: */
164: public void setKeywords(String value) {
165: this .keywords = value;
166: }
167:
168: /**
169: * Gets the value of the modified property.
170: *
171: * @return
172: * possible object is
173: * {@link XMLGregorianCalendar }
174: *
175: */
176: public XMLGregorianCalendar getModified() {
177: return modified;
178: }
179:
180: /**
181: * Sets the value of the modified property.
182: *
183: * @param value
184: * allowed object is
185: * {@link XMLGregorianCalendar }
186: *
187: */
188: public void setModified(XMLGregorianCalendar value) {
189: this .modified = value;
190: }
191:
192: /**
193: * Gets the value of the revision property.
194: *
195: * @return
196: * possible object is
197: * {@link String }
198: *
199: */
200: public String getRevision() {
201: return revision;
202: }
203:
204: /**
205: * Sets the value of the revision property.
206: *
207: * @param value
208: * allowed object is
209: * {@link String }
210: *
211: */
212: public void setRevision(String value) {
213: this .revision = value;
214: }
215:
216: /**
217: * Gets the value of the subject property.
218: *
219: * @return
220: * possible object is
221: * {@link String }
222: *
223: */
224: public String getSubject() {
225: return subject;
226: }
227:
228: /**
229: * Sets the value of the subject property.
230: *
231: * @param value
232: * allowed object is
233: * {@link String }
234: *
235: */
236: public void setSubject(String value) {
237: this .subject = value;
238: }
239:
240: /**
241: * Gets the value of the title property.
242: *
243: * @return
244: * possible object is
245: * {@link String }
246: *
247: */
248: public String getTitle() {
249: return title;
250: }
251:
252: /**
253: * Sets the value of the title property.
254: *
255: * @param value
256: * allowed object is
257: * {@link String }
258: *
259: */
260: public void setTitle(String value) {
261: this .title = value;
262: }
263:
264: /**
265: * Gets the value of the unit property.
266: *
267: * @return
268: * possible object is
269: * {@link Asset.Unit }
270: *
271: */
272: public Asset.Unit getUnit() {
273: return unit;
274: }
275:
276: /**
277: * Sets the value of the unit property.
278: *
279: * @param value
280: * allowed object is
281: * {@link Asset.Unit }
282: *
283: */
284: public void setUnit(Asset.Unit value) {
285: this .unit = value;
286: }
287:
288: /**
289: * Gets the value of the upAxis property.
290: *
291: * @return
292: * possible object is
293: * {@link UpAxisType }
294: *
295: */
296: public UpAxisType getUpAxis() {
297: return upAxis;
298: }
299:
300: /**
301: * Sets the value of the upAxis property.
302: *
303: * @param value
304: * allowed object is
305: * {@link UpAxisType }
306: *
307: */
308: public void setUpAxis(UpAxisType value) {
309: this .upAxis = value;
310: }
311:
312: /**
313: * <p>Java class for anonymous complex type.
314: *
315: * <p>The following schema fragment specifies the expected content contained within this class.
316: *
317: * <pre>
318: * <complexType>
319: * <complexContent>
320: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
321: * <sequence>
322: * <element name="author" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
323: * <element name="authoring_tool" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
324: * <element name="comments" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
325: * <element name="copyright" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
326: * <element name="source_data" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
327: * </sequence>
328: * </restriction>
329: * </complexContent>
330: * </complexType>
331: * </pre>
332: *
333: *
334: */
335: @XmlAccessorType(XmlAccessType.FIELD)
336: @XmlType(name="",propOrder={"author","authoringTool","comments","copyright","sourceData"})
337: public static class Contributor {
338:
339: protected String author;
340: @XmlElement(name="authoring_tool")
341: protected String authoringTool;
342: protected String comments;
343: protected String copyright;
344: @XmlElement(name="source_data")
345: protected String sourceData;
346:
347: /**
348: * Gets the value of the author property.
349: *
350: * @return
351: * possible object is
352: * {@link String }
353: *
354: */
355: public String getAuthor() {
356: return author;
357: }
358:
359: /**
360: * Sets the value of the author property.
361: *
362: * @param value
363: * allowed object is
364: * {@link String }
365: *
366: */
367: public void setAuthor(String value) {
368: this .author = value;
369: }
370:
371: /**
372: * Gets the value of the authoringTool property.
373: *
374: * @return
375: * possible object is
376: * {@link String }
377: *
378: */
379: public String getAuthoringTool() {
380: return authoringTool;
381: }
382:
383: /**
384: * Sets the value of the authoringTool property.
385: *
386: * @param value
387: * allowed object is
388: * {@link String }
389: *
390: */
391: public void setAuthoringTool(String value) {
392: this .authoringTool = value;
393: }
394:
395: /**
396: * Gets the value of the comments property.
397: *
398: * @return
399: * possible object is
400: * {@link String }
401: *
402: */
403: public String getComments() {
404: return comments;
405: }
406:
407: /**
408: * Sets the value of the comments property.
409: *
410: * @param value
411: * allowed object is
412: * {@link String }
413: *
414: */
415: public void setComments(String value) {
416: this .comments = value;
417: }
418:
419: /**
420: * Gets the value of the copyright property.
421: *
422: * @return
423: * possible object is
424: * {@link String }
425: *
426: */
427: public String getCopyright() {
428: return copyright;
429: }
430:
431: /**
432: * Sets the value of the copyright property.
433: *
434: * @param value
435: * allowed object is
436: * {@link String }
437: *
438: */
439: public void setCopyright(String value) {
440: this .copyright = value;
441: }
442:
443: /**
444: * Gets the value of the sourceData property.
445: *
446: * @return
447: * possible object is
448: * {@link String }
449: *
450: */
451: public String getSourceData() {
452: return sourceData;
453: }
454:
455: /**
456: * Sets the value of the sourceData property.
457: *
458: * @param value
459: * allowed object is
460: * {@link String }
461: *
462: */
463: public void setSourceData(String value) {
464: this .sourceData = value;
465: }
466:
467: }
468:
469: /**
470: * <p>Java class for anonymous complex type.
471: *
472: * <p>The following schema fragment specifies the expected content contained within this class.
473: *
474: * <pre>
475: * <complexType>
476: * <complexContent>
477: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
478: * <attribute name="meter" type="{http://www.collada.org/2005/11/COLLADASchema}float" default="1.0" />
479: * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" default="meter" />
480: * </restriction>
481: * </complexContent>
482: * </complexType>
483: * </pre>
484: *
485: *
486: */
487: @XmlAccessorType(XmlAccessType.FIELD)
488: @XmlType(name="")
489: public static class Unit {
490:
491: @XmlAttribute
492: protected Double meter;
493: @XmlAttribute
494: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
495: protected String name;
496:
497: /**
498: * Gets the value of the meter property.
499: *
500: * @return
501: * possible object is
502: * {@link Double }
503: *
504: */
505: public double getMeter() {
506: if (meter == null) {
507: return 1.0D;
508: } else {
509: return meter;
510: }
511: }
512:
513: /**
514: * Sets the value of the meter property.
515: *
516: * @param value
517: * allowed object is
518: * {@link Double }
519: *
520: */
521: public void setMeter(Double value) {
522: this .meter = value;
523: }
524:
525: /**
526: * Gets the value of the name property.
527: *
528: * @return
529: * possible object is
530: * {@link String }
531: *
532: */
533: public String getName() {
534: if (name == null) {
535: return "meter";
536: } else {
537: return name;
538: }
539: }
540:
541: /**
542: * Sets the value of the name property.
543: *
544: * @param value
545: * allowed object is
546: * {@link String }
547: *
548: */
549: public void setName(String value) {
550: this.name = value;
551: }
552:
553: }
554:
555: }
|