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.math.BigInteger;
011: import java.util.ArrayList;
012: import java.util.List;
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.XmlID;
018: import javax.xml.bind.annotation.XmlList;
019: import javax.xml.bind.annotation.XmlRootElement;
020: import javax.xml.bind.annotation.XmlType;
021: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
022: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
023:
024: /**
025: * <p>Java class for anonymous complex type.
026: *
027: * <p>The following schema fragment specifies the expected content contained within this class.
028: *
029: * <pre>
030: * <complexType>
031: * <complexContent>
032: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
033: * <sequence>
034: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}asset" minOccurs="0"/>
035: * <choice>
036: * <element name="data" type="{http://www.collada.org/2005/11/COLLADASchema}ListOfHexBinary"/>
037: * <element name="init_from" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
038: * </choice>
039: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}extra" maxOccurs="unbounded" minOccurs="0"/>
040: * </sequence>
041: * <attribute name="depth" type="{http://www.collada.org/2005/11/COLLADASchema}uint" default="1" />
042: * <attribute name="format" type="{http://www.w3.org/2001/XMLSchema}token" />
043: * <attribute name="height" type="{http://www.collada.org/2005/11/COLLADASchema}uint" />
044: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
045: * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}NCName" />
046: * <attribute name="width" type="{http://www.collada.org/2005/11/COLLADASchema}uint" />
047: * </restriction>
048: * </complexContent>
049: * </complexType>
050: * </pre>
051: *
052: *
053: */
054: @XmlAccessorType(XmlAccessType.FIELD)
055: @XmlType(name="",propOrder={"asset","initFrom","data","extras"})
056: @XmlRootElement(name="image")
057: public class Image {
058:
059: protected Asset asset;
060: @XmlElement(name="init_from")
061: protected String initFrom;
062: @XmlList
063: protected List<String> data;
064: @XmlElement(name="extra")
065: protected List<Extra> extras;
066: @XmlAttribute
067: protected BigInteger depth;
068: @XmlAttribute
069: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
070: protected String format;
071: @XmlAttribute
072: protected BigInteger height;
073: @XmlAttribute
074: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
075: @XmlID
076: protected String id;
077: @XmlAttribute
078: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
079: protected String name;
080: @XmlAttribute
081: protected BigInteger width;
082:
083: /**
084: *
085: * The image element may contain an asset element.
086: *
087: *
088: * @return
089: * possible object is
090: * {@link Asset }
091: *
092: */
093: public Asset getAsset() {
094: return asset;
095: }
096:
097: /**
098: *
099: * The image element may contain an asset element.
100: *
101: *
102: * @param value
103: * allowed object is
104: * {@link Asset }
105: *
106: */
107: public void setAsset(Asset value) {
108: this .asset = value;
109: }
110:
111: /**
112: * Gets the value of the initFrom property.
113: *
114: * @return
115: * possible object is
116: * {@link String }
117: *
118: */
119: public String getInitFrom() {
120: return initFrom;
121: }
122:
123: /**
124: * Sets the value of the initFrom property.
125: *
126: * @param value
127: * allowed object is
128: * {@link String }
129: *
130: */
131: public void setInitFrom(String value) {
132: this .initFrom = value;
133: }
134:
135: /**
136: * Gets the value of the data property.
137: *
138: * <p>
139: * This accessor method returns a reference to the live list,
140: * not a snapshot. Therefore any modification you make to the
141: * returned list will be present inside the JAXB object.
142: * This is why there is not a <CODE>set</CODE> method for the data property.
143: *
144: * <p>
145: * For example, to add a new item, do as follows:
146: * <pre>
147: * getData().add(newItem);
148: * </pre>
149: *
150: *
151: * <p>
152: * Objects of the following type(s) are allowed in the list
153: * {@link String }
154: *
155: *
156: */
157: public List<String> getData() {
158: if (data == null) {
159: data = new ArrayList<String>();
160: }
161: return this .data;
162: }
163:
164: /**
165: *
166: * The extra element may appear any number of times.
167: * Gets the value of the extras property.
168: *
169: * <p>
170: * This accessor method returns a reference to the live list,
171: * not a snapshot. Therefore any modification you make to the
172: * returned list will be present inside the JAXB object.
173: * This is why there is not a <CODE>set</CODE> method for the extras property.
174: *
175: * <p>
176: * For example, to add a new item, do as follows:
177: * <pre>
178: * getExtras().add(newItem);
179: * </pre>
180: *
181: *
182: * <p>
183: * Objects of the following type(s) are allowed in the list
184: * {@link Extra }
185: *
186: *
187: */
188: public List<Extra> getExtras() {
189: if (extras == null) {
190: extras = new ArrayList<Extra>();
191: }
192: return this .extras;
193: }
194:
195: /**
196: * Gets the value of the depth property.
197: *
198: * @return
199: * possible object is
200: * {@link BigInteger }
201: *
202: */
203: public BigInteger getDepth() {
204: if (depth == null) {
205: return new BigInteger("1");
206: } else {
207: return depth;
208: }
209: }
210:
211: /**
212: * Sets the value of the depth property.
213: *
214: * @param value
215: * allowed object is
216: * {@link BigInteger }
217: *
218: */
219: public void setDepth(BigInteger value) {
220: this .depth = value;
221: }
222:
223: /**
224: * Gets the value of the format property.
225: *
226: * @return
227: * possible object is
228: * {@link String }
229: *
230: */
231: public String getFormat() {
232: return format;
233: }
234:
235: /**
236: * Sets the value of the format property.
237: *
238: * @param value
239: * allowed object is
240: * {@link String }
241: *
242: */
243: public void setFormat(String value) {
244: this .format = value;
245: }
246:
247: /**
248: * Gets the value of the height property.
249: *
250: * @return
251: * possible object is
252: * {@link BigInteger }
253: *
254: */
255: public BigInteger getHeight() {
256: return height;
257: }
258:
259: /**
260: * Sets the value of the height property.
261: *
262: * @param value
263: * allowed object is
264: * {@link BigInteger }
265: *
266: */
267: public void setHeight(BigInteger value) {
268: this .height = value;
269: }
270:
271: /**
272: * Gets the value of the id property.
273: *
274: * @return
275: * possible object is
276: * {@link String }
277: *
278: */
279: public String getId() {
280: return id;
281: }
282:
283: /**
284: * Sets the value of the id property.
285: *
286: * @param value
287: * allowed object is
288: * {@link String }
289: *
290: */
291: public void setId(String value) {
292: this .id = value;
293: }
294:
295: /**
296: * Gets the value of the name property.
297: *
298: * @return
299: * possible object is
300: * {@link String }
301: *
302: */
303: public String getName() {
304: return name;
305: }
306:
307: /**
308: * Sets the value of the name property.
309: *
310: * @param value
311: * allowed object is
312: * {@link String }
313: *
314: */
315: public void setName(String value) {
316: this .name = value;
317: }
318:
319: /**
320: * Gets the value of the width property.
321: *
322: * @return
323: * possible object is
324: * {@link BigInteger }
325: *
326: */
327: public BigInteger getWidth() {
328: return width;
329: }
330:
331: /**
332: * Sets the value of the width property.
333: *
334: * @param value
335: * allowed object is
336: * {@link BigInteger }
337: *
338: */
339: public void setWidth(BigInteger value) {
340: this.width = value;
341: }
342:
343: }
|