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: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}instance_effect"/>
034: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}extra" maxOccurs="unbounded" minOccurs="0"/>
035: * </sequence>
036: * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
037: * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}NCName" />
038: * </restriction>
039: * </complexContent>
040: * </complexType>
041: * </pre>
042: *
043: *
044: */
045: @XmlAccessorType(XmlAccessType.FIELD)
046: @XmlType(name="",propOrder={"asset","instanceEffect","extras"})
047: @XmlRootElement(name="material")
048: public class Material {
049:
050: protected Asset asset;
051: @XmlElement(name="instance_effect",required=true)
052: protected InstanceEffect instanceEffect;
053: @XmlElement(name="extra")
054: protected List<Extra> extras;
055: @XmlAttribute
056: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
057: @XmlID
058: protected String id;
059: @XmlAttribute
060: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
061: protected String name;
062:
063: /**
064: *
065: * The material element may contain an asset element.
066: *
067: *
068: * @return
069: * possible object is
070: * {@link Asset }
071: *
072: */
073: public Asset getAsset() {
074: return asset;
075: }
076:
077: /**
078: *
079: * The material element may contain an asset element.
080: *
081: *
082: * @param value
083: * allowed object is
084: * {@link Asset }
085: *
086: */
087: public void setAsset(Asset value) {
088: this .asset = value;
089: }
090:
091: /**
092: *
093: * The material must instance an effect.
094: *
095: *
096: * @return
097: * possible object is
098: * {@link InstanceEffect }
099: *
100: */
101: public InstanceEffect getInstanceEffect() {
102: return instanceEffect;
103: }
104:
105: /**
106: *
107: * The material must instance an effect.
108: *
109: *
110: * @param value
111: * allowed object is
112: * {@link InstanceEffect }
113: *
114: */
115: public void setInstanceEffect(InstanceEffect value) {
116: this .instanceEffect = value;
117: }
118:
119: /**
120: *
121: * The extra element may appear any number of times.
122: * Gets the value of the extras property.
123: *
124: * <p>
125: * This accessor method returns a reference to the live list,
126: * not a snapshot. Therefore any modification you make to the
127: * returned list will be present inside the JAXB object.
128: * This is why there is not a <CODE>set</CODE> method for the extras property.
129: *
130: * <p>
131: * For example, to add a new item, do as follows:
132: * <pre>
133: * getExtras().add(newItem);
134: * </pre>
135: *
136: *
137: * <p>
138: * Objects of the following type(s) are allowed in the list
139: * {@link Extra }
140: *
141: *
142: */
143: public List<Extra> getExtras() {
144: if (extras == null) {
145: extras = new ArrayList<Extra>();
146: }
147: return this .extras;
148: }
149:
150: /**
151: * Gets the value of the id property.
152: *
153: * @return
154: * possible object is
155: * {@link String }
156: *
157: */
158: public String getId() {
159: return id;
160: }
161:
162: /**
163: * Sets the value of the id property.
164: *
165: * @param value
166: * allowed object is
167: * {@link String }
168: *
169: */
170: public void setId(String value) {
171: this .id = value;
172: }
173:
174: /**
175: * Gets the value of the name property.
176: *
177: * @return
178: * possible object is
179: * {@link String }
180: *
181: */
182: public String getName() {
183: return name;
184: }
185:
186: /**
187: * Sets the value of the name property.
188: *
189: * @param value
190: * allowed object is
191: * {@link String }
192: *
193: */
194: public void setName(String value) {
195: this.name = value;
196: }
197:
198: }
|