| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||||||
| ContentType |
|
| 0.0;0 |
| 1 | // |
|
| 2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.5-b01-fcs |
|
| 3 | // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> |
|
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. |
|
| 5 | // Generated on: 2008.06.11 at 12:15:37 AM EDT |
|
| 6 | // |
|
| 7 | ||
| 8 | ||
| 9 | package yarfraw.generated.atom10.elements; |
|
| 10 | ||
| 11 | import java.util.ArrayList; |
|
| 12 | import java.util.HashMap; |
|
| 13 | import java.util.List; |
|
| 14 | import java.util.Map; |
|
| 15 | import javax.xml.bind.annotation.XmlAccessType; |
|
| 16 | import javax.xml.bind.annotation.XmlAccessorType; |
|
| 17 | import javax.xml.bind.annotation.XmlAnyAttribute; |
|
| 18 | import javax.xml.bind.annotation.XmlAnyElement; |
|
| 19 | import javax.xml.bind.annotation.XmlAttribute; |
|
| 20 | import javax.xml.bind.annotation.XmlMixed; |
|
| 21 | import javax.xml.bind.annotation.XmlSchemaType; |
|
| 22 | import javax.xml.bind.annotation.XmlType; |
|
| 23 | import javax.xml.namespace.QName; |
|
| 24 | ||
| 25 | ||
| 26 | /** |
|
| 27 | * |
|
| 28 | * The Atom content construct is defined in section 4.1.3 of the format spec. |
|
| 29 | * |
|
| 30 | * |
|
| 31 | * <p>Java class for contentType complex type. |
|
| 32 | * |
|
| 33 | * <p>The following schema fragment specifies the expected content contained within this class. |
|
| 34 | * |
|
| 35 | * <pre> |
|
| 36 | * <complexType name="contentType"> |
|
| 37 | * <complexContent> |
|
| 38 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|
| 39 | * <sequence> |
|
| 40 | * <any/> |
|
| 41 | * </sequence> |
|
| 42 | * <attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/> |
|
| 43 | * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|
| 44 | * <attribute name="src" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> |
|
| 45 | * </restriction> |
|
| 46 | * </complexContent> |
|
| 47 | * </complexType> |
|
| 48 | * </pre> |
|
| 49 | * |
|
| 50 | * |
|
| 51 | */ |
|
| 52 | @XmlAccessorType(XmlAccessType.FIELD) |
|
| 53 | @XmlType(name = "contentType", propOrder = { |
|
| 54 | "content" |
|
| 55 | }) |
|
| 56 | 303 | public class ContentType { |
| 57 | ||
| 58 | @XmlMixed |
|
| 59 | @XmlAnyElement(lax = true) |
|
| 60 | protected List<Object> content; |
|
| 61 | @XmlAttribute |
|
| 62 | protected String type; |
|
| 63 | @XmlAttribute |
|
| 64 | @XmlSchemaType(name = "anyURI") |
|
| 65 | protected String src; |
|
| 66 | @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace") |
|
| 67 | @XmlSchemaType(name = "anyURI") |
|
| 68 | protected String base; |
|
| 69 | @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace") |
|
| 70 | protected String lang; |
|
| 71 | 303 | @XmlAnyAttribute |
| 72 | private Map<QName, String> otherAttributes = new HashMap<QName, String>(); |
|
| 73 | ||
| 74 | /** |
|
| 75 | * |
|
| 76 | * The Atom content construct is defined in section 4.1.3 of the format spec. |
|
| 77 | * Gets the value of the content property. |
|
| 78 | * |
|
| 79 | * <p> |
|
| 80 | * This accessor method returns a reference to the live list, |
|
| 81 | * not a snapshot. Therefore any modification you make to the |
|
| 82 | * returned list will be present inside the JAXB object. |
|
| 83 | * This is why there is not a <CODE>set</CODE> method for the content property. |
|
| 84 | * |
|
| 85 | * <p> |
|
| 86 | * For example, to add a new item, do as follows: |
|
| 87 | * <pre> |
|
| 88 | * getContent().add(newItem); |
|
| 89 | * </pre> |
|
| 90 | * |
|
| 91 | * |
|
| 92 | * <p> |
|
| 93 | * Objects of the following type(s) are allowed in the list |
|
| 94 | * {@link Object } |
|
| 95 | * {@link String } |
|
| 96 | * |
|
| 97 | * |
|
| 98 | */ |
|
| 99 | public List<Object> getContent() { |
|
| 100 | 330 | if (content == null) { |
| 101 | 39 | content = new ArrayList<Object>(); |
| 102 | } |
|
| 103 | 330 | return this.content; |
| 104 | } |
|
| 105 | ||
| 106 | /** |
|
| 107 | * Gets the value of the type property. |
|
| 108 | * |
|
| 109 | * @return |
|
| 110 | * possible object is |
|
| 111 | * {@link String } |
|
| 112 | * |
|
| 113 | */ |
|
| 114 | public String getType() { |
|
| 115 | 264 | return type; |
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| 119 | * Sets the value of the type property. |
|
| 120 | * |
|
| 121 | * @param value |
|
| 122 | * allowed object is |
|
| 123 | * {@link String } |
|
| 124 | * |
|
| 125 | */ |
|
| 126 | public void setType(String value) { |
|
| 127 | 39 | this.type = value; |
| 128 | 39 | } |
| 129 | ||
| 130 | /** |
|
| 131 | * Gets the value of the src property. |
|
| 132 | * |
|
| 133 | * @return |
|
| 134 | * possible object is |
|
| 135 | * {@link String } |
|
| 136 | * |
|
| 137 | */ |
|
| 138 | public String getSrc() { |
|
| 139 | 264 | return src; |
| 140 | } |
|
| 141 | ||
| 142 | /** |
|
| 143 | * Sets the value of the src property. |
|
| 144 | * |
|
| 145 | * @param value |
|
| 146 | * allowed object is |
|
| 147 | * {@link String } |
|
| 148 | * |
|
| 149 | */ |
|
| 150 | public void setSrc(String value) { |
|
| 151 | 39 | this.src = value; |
| 152 | 39 | } |
| 153 | ||
| 154 | /** |
|
| 155 | * Gets the value of the base property. |
|
| 156 | * |
|
| 157 | * @return |
|
| 158 | * possible object is |
|
| 159 | * {@link String } |
|
| 160 | * |
|
| 161 | */ |
|
| 162 | public String getBase() { |
|
| 163 | 264 | return base; |
| 164 | } |
|
| 165 | ||
| 166 | /** |
|
| 167 | * Sets the value of the base property. |
|
| 168 | * |
|
| 169 | * @param value |
|
| 170 | * allowed object is |
|
| 171 | * {@link String } |
|
| 172 | * |
|
| 173 | */ |
|
| 174 | public void setBase(String value) { |
|
| 175 | 39 | this.base = value; |
| 176 | 39 | } |
| 177 | ||
| 178 | /** |
|
| 179 | * Gets the value of the lang property. |
|
| 180 | * |
|
| 181 | * @return |
|
| 182 | * possible object is |
|
| 183 | * {@link String } |
|
| 184 | * |
|
| 185 | */ |
|
| 186 | public String getLang() { |
|
| 187 | 264 | return lang; |
| 188 | } |
|
| 189 | ||
| 190 | /** |
|
| 191 | * Sets the value of the lang property. |
|
| 192 | * |
|
| 193 | * @param value |
|
| 194 | * allowed object is |
|
| 195 | * {@link String } |
|
| 196 | * |
|
| 197 | */ |
|
| 198 | public void setLang(String value) { |
|
| 199 | 39 | this.lang = value; |
| 200 | 39 | } |
| 201 | ||
| 202 | /** |
|
| 203 | * Gets a map that contains attributes that aren't bound to any typed property on this class. |
|
| 204 | * |
|
| 205 | * <p> |
|
| 206 | * the map is keyed by the name of the attribute and |
|
| 207 | * the value is the string value of the attribute. |
|
| 208 | * |
|
| 209 | * the map returned by this method is live, and you can add new attribute |
|
| 210 | * by updating the map directly. Because of this design, there's no setter. |
|
| 211 | * |
|
| 212 | * |
|
| 213 | * @return |
|
| 214 | * always non-null |
|
| 215 | */ |
|
| 216 | public Map<QName, String> getOtherAttributes() { |
|
| 217 | 303 | return otherAttributes; |
| 218 | } |
|
| 219 | ||
| 220 | } |