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.XmlType;
017: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
018: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
019:
020: /**
021: *
022: * The InstanceWithExtra type is used for all generic instance elements. A generic instance element
023: * is one which does not have any specific child elements declared.
024: *
025: *
026: * <p>Java class for InstanceWithExtra complex type.
027: *
028: * <p>The following schema fragment specifies the expected content contained within this class.
029: *
030: * <pre>
031: * <complexType name="InstanceWithExtra">
032: * <complexContent>
033: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
034: * <sequence>
035: * <element ref="{http://www.collada.org/2005/11/COLLADASchema}extra" maxOccurs="unbounded" minOccurs="0"/>
036: * </sequence>
037: * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}NCName" />
038: * <attribute name="sid" type="{http://www.w3.org/2001/XMLSchema}NCName" />
039: * <attribute name="url" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
040: * </restriction>
041: * </complexContent>
042: * </complexType>
043: * </pre>
044: *
045: *
046: */
047: @XmlAccessorType(XmlAccessType.FIELD)
048: @XmlType(name="InstanceWithExtra",propOrder={"extras"})
049: public class InstanceWithExtra {
050:
051: @XmlElement(name="extra")
052: protected List<Extra> extras;
053: @XmlAttribute
054: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
055: protected String name;
056: @XmlAttribute
057: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
058: protected String sid;
059: @XmlAttribute(required=true)
060: protected String url;
061:
062: /**
063: *
064: * The extra element may occur any number of times.
065: * Gets the value of the extras property.
066: *
067: * <p>
068: * This accessor method returns a reference to the live list,
069: * not a snapshot. Therefore any modification you make to the
070: * returned list will be present inside the JAXB object.
071: * This is why there is not a <CODE>set</CODE> method for the extras property.
072: *
073: * <p>
074: * For example, to add a new item, do as follows:
075: * <pre>
076: * getExtras().add(newItem);
077: * </pre>
078: *
079: *
080: * <p>
081: * Objects of the following type(s) are allowed in the list
082: * {@link Extra }
083: *
084: *
085: */
086: public List<Extra> getExtras() {
087: if (extras == null) {
088: extras = new ArrayList<Extra>();
089: }
090: return this .extras;
091: }
092:
093: /**
094: * Gets the value of the name property.
095: *
096: * @return
097: * possible object is
098: * {@link String }
099: *
100: */
101: public String getName() {
102: return name;
103: }
104:
105: /**
106: * Sets the value of the name property.
107: *
108: * @param value
109: * allowed object is
110: * {@link String }
111: *
112: */
113: public void setName(String value) {
114: this .name = value;
115: }
116:
117: /**
118: * Gets the value of the sid property.
119: *
120: * @return
121: * possible object is
122: * {@link String }
123: *
124: */
125: public String getSid() {
126: return sid;
127: }
128:
129: /**
130: * Sets the value of the sid property.
131: *
132: * @param value
133: * allowed object is
134: * {@link String }
135: *
136: */
137: public void setSid(String value) {
138: this .sid = value;
139: }
140:
141: /**
142: * Gets the value of the url property.
143: *
144: * @return
145: * possible object is
146: * {@link String }
147: *
148: */
149: public String getUrl() {
150: return url;
151: }
152:
153: /**
154: * Sets the value of the url property.
155: *
156: * @param value
157: * allowed object is
158: * {@link String }
159: *
160: */
161: public void setUrl(String value) {
162: this.url = value;
163: }
164:
165: }
|