| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||||||
| EntryType |
|
| 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:38 AM EDT |
|
| 6 | // |
|
| 7 | ||
| 8 | ||
| 9 | package yarfraw.generated.atom03.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.XmlElement; |
|
| 21 | import javax.xml.bind.annotation.XmlType; |
|
| 22 | import javax.xml.namespace.QName; |
|
| 23 | import org.w3c.dom.Element; |
|
| 24 | ||
| 25 | ||
| 26 | /** |
|
| 27 | * <p>Java class for entryType complex type. |
|
| 28 | * |
|
| 29 | * <p>The following schema fragment specifies the expected content contained within this class. |
|
| 30 | * |
|
| 31 | * <pre> |
|
| 32 | * <complexType name="entryType"> |
|
| 33 | * <complexContent> |
|
| 34 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|
| 35 | * <sequence> |
|
| 36 | * <element name="link" type="{http://purl.org/atom/ns#}linkType"/> |
|
| 37 | * <element name="author" type="{http://purl.org/atom/ns#}personType" minOccurs="0"/> |
|
| 38 | * <element name="contributor" type="{http://purl.org/atom/ns#}personType" maxOccurs="unbounded" minOccurs="0"/> |
|
| 39 | * <element name="id" type="{http://www.w3.org/2001/XMLSchema}string"/> |
|
| 40 | * <element name="modified" type="{http://purl.org/atom/ns#}iso8601dateTime"/> |
|
| 41 | * <element name="created" type="{http://purl.org/atom/ns#}iso8601dateTime" minOccurs="0"/> |
|
| 42 | * <any/> |
|
| 43 | * </sequence> |
|
| 44 | * <attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/> |
|
| 45 | * </restriction> |
|
| 46 | * </complexContent> |
|
| 47 | * </complexType> |
|
| 48 | * </pre> |
|
| 49 | * |
|
| 50 | * |
|
| 51 | */ |
|
| 52 | @XmlAccessorType(XmlAccessType.FIELD) |
|
| 53 | @XmlType(name = "entryType", propOrder = { |
|
| 54 | "link", |
|
| 55 | "author", |
|
| 56 | "contributor", |
|
| 57 | "id", |
|
| 58 | "modified", |
|
| 59 | "created", |
|
| 60 | "any" |
|
| 61 | }) |
|
| 62 | 78 | public class EntryType { |
| 63 | ||
| 64 | @XmlElement(required = true) |
|
| 65 | protected LinkType link; |
|
| 66 | protected PersonType author; |
|
| 67 | protected List<PersonType> contributor; |
|
| 68 | @XmlElement(required = true) |
|
| 69 | protected String id; |
|
| 70 | @XmlElement(required = true) |
|
| 71 | protected String modified; |
|
| 72 | protected String created; |
|
| 73 | @XmlAnyElement(lax = true) |
|
| 74 | protected List<Object> any; |
|
| 75 | @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace") |
|
| 76 | protected String lang; |
|
| 77 | 78 | @XmlAnyAttribute |
| 78 | private Map<QName, String> otherAttributes = new HashMap<QName, String>(); |
|
| 79 | ||
| 80 | /** |
|
| 81 | * Gets the value of the link property. |
|
| 82 | * |
|
| 83 | * @return |
|
| 84 | * possible object is |
|
| 85 | * {@link LinkType } |
|
| 86 | * |
|
| 87 | */ |
|
| 88 | public LinkType getLink() { |
|
| 89 | 156 | return link; |
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * Sets the value of the link property. |
|
| 94 | * |
|
| 95 | * @param value |
|
| 96 | * allowed object is |
|
| 97 | * {@link LinkType } |
|
| 98 | * |
|
| 99 | */ |
|
| 100 | public void setLink(LinkType value) { |
|
| 101 | 0 | this.link = value; |
| 102 | 0 | } |
| 103 | ||
| 104 | /** |
|
| 105 | * Gets the value of the author property. |
|
| 106 | * |
|
| 107 | * @return |
|
| 108 | * possible object is |
|
| 109 | * {@link PersonType } |
|
| 110 | * |
|
| 111 | */ |
|
| 112 | public PersonType getAuthor() { |
|
| 113 | 78 | return author; |
| 114 | } |
|
| 115 | ||
| 116 | /** |
|
| 117 | * Sets the value of the author property. |
|
| 118 | * |
|
| 119 | * @param value |
|
| 120 | * allowed object is |
|
| 121 | * {@link PersonType } |
|
| 122 | * |
|
| 123 | */ |
|
| 124 | public void setAuthor(PersonType value) { |
|
| 125 | 0 | this.author = value; |
| 126 | 0 | } |
| 127 | ||
| 128 | /** |
|
| 129 | * Gets the value of the contributor property. |
|
| 130 | * |
|
| 131 | * <p> |
|
| 132 | * This accessor method returns a reference to the live list, |
|
| 133 | * not a snapshot. Therefore any modification you make to the |
|
| 134 | * returned list will be present inside the JAXB object. |
|
| 135 | * This is why there is not a <CODE>set</CODE> method for the contributor property. |
|
| 136 | * |
|
| 137 | * <p> |
|
| 138 | * For example, to add a new item, do as follows: |
|
| 139 | * <pre> |
|
| 140 | * getContributor().add(newItem); |
|
| 141 | * </pre> |
|
| 142 | * |
|
| 143 | * |
|
| 144 | * <p> |
|
| 145 | * Objects of the following type(s) are allowed in the list |
|
| 146 | * {@link PersonType } |
|
| 147 | * |
|
| 148 | * |
|
| 149 | */ |
|
| 150 | public List<PersonType> getContributor() { |
|
| 151 | 156 | if (contributor == null) { |
| 152 | 78 | contributor = new ArrayList<PersonType>(); |
| 153 | } |
|
| 154 | 156 | return this.contributor; |
| 155 | } |
|
| 156 | ||
| 157 | /** |
|
| 158 | * Gets the value of the id property. |
|
| 159 | * |
|
| 160 | * @return |
|
| 161 | * possible object is |
|
| 162 | * {@link String } |
|
| 163 | * |
|
| 164 | */ |
|
| 165 | public String getId() { |
|
| 166 | 78 | return id; |
| 167 | } |
|
| 168 | ||
| 169 | /** |
|
| 170 | * Sets the value of the id property. |
|
| 171 | * |
|
| 172 | * @param value |
|
| 173 | * allowed object is |
|
| 174 | * {@link String } |
|
| 175 | * |
|
| 176 | */ |
|
| 177 | public void setId(String value) { |
|
| 178 | 0 | this.id = value; |
| 179 | 0 | } |
| 180 | ||
| 181 | /** |
|
| 182 | * Gets the value of the modified property. |
|
| 183 | * |
|
| 184 | * @return |
|
| 185 | * possible object is |
|
| 186 | * {@link String } |
|
| 187 | * |
|
| 188 | */ |
|
| 189 | public String getModified() { |
|
| 190 | 78 | return modified; |
| 191 | } |
|
| 192 | ||
| 193 | /** |
|
| 194 | * Sets the value of the modified property. |
|
| 195 | * |
|
| 196 | * @param value |
|
| 197 | * allowed object is |
|
| 198 | * {@link String } |
|
| 199 | * |
|
| 200 | */ |
|
| 201 | public void setModified(String value) { |
|
| 202 | 0 | this.modified = value; |
| 203 | 0 | } |
| 204 | ||
| 205 | /** |
|
| 206 | * Gets the value of the created property. |
|
| 207 | * |
|
| 208 | * @return |
|
| 209 | * possible object is |
|
| 210 | * {@link String } |
|
| 211 | * |
|
| 212 | */ |
|
| 213 | public String getCreated() { |
|
| 214 | 78 | return created; |
| 215 | } |
|
| 216 | ||
| 217 | /** |
|
| 218 | * Sets the value of the created property. |
|
| 219 | * |
|
| 220 | * @param value |
|
| 221 | * allowed object is |
|
| 222 | * {@link String } |
|
| 223 | * |
|
| 224 | */ |
|
| 225 | public void setCreated(String value) { |
|
| 226 | 0 | this.created = value; |
| 227 | 0 | } |
| 228 | ||
| 229 | /** |
|
| 230 | * Gets the value of the any property. |
|
| 231 | * |
|
| 232 | * <p> |
|
| 233 | * This accessor method returns a reference to the live list, |
|
| 234 | * not a snapshot. Therefore any modification you make to the |
|
| 235 | * returned list will be present inside the JAXB object. |
|
| 236 | * This is why there is not a <CODE>set</CODE> method for the any property. |
|
| 237 | * |
|
| 238 | * <p> |
|
| 239 | * For example, to add a new item, do as follows: |
|
| 240 | * <pre> |
|
| 241 | * getAny().add(newItem); |
|
| 242 | * </pre> |
|
| 243 | * |
|
| 244 | * |
|
| 245 | * <p> |
|
| 246 | * Objects of the following type(s) are allowed in the list |
|
| 247 | * {@link Object } |
|
| 248 | * {@link Element } |
|
| 249 | * |
|
| 250 | * |
|
| 251 | */ |
|
| 252 | public List<Object> getAny() { |
|
| 253 | 78 | if (any == null) { |
| 254 | 0 | any = new ArrayList<Object>(); |
| 255 | } |
|
| 256 | 78 | return this.any; |
| 257 | } |
|
| 258 | ||
| 259 | /** |
|
| 260 | * Gets the value of the lang property. |
|
| 261 | * |
|
| 262 | * @return |
|
| 263 | * possible object is |
|
| 264 | * {@link String } |
|
| 265 | * |
|
| 266 | */ |
|
| 267 | public String getLang() { |
|
| 268 | 78 | return lang; |
| 269 | } |
|
| 270 | ||
| 271 | /** |
|
| 272 | * Sets the value of the lang property. |
|
| 273 | * |
|
| 274 | * @param value |
|
| 275 | * allowed object is |
|
| 276 | * {@link String } |
|
| 277 | * |
|
| 278 | */ |
|
| 279 | public void setLang(String value) { |
|
| 280 | 0 | this.lang = value; |
| 281 | 0 | } |
| 282 | ||
| 283 | /** |
|
| 284 | * Gets a map that contains attributes that aren't bound to any typed property on this class. |
|
| 285 | * |
|
| 286 | * <p> |
|
| 287 | * the map is keyed by the name of the attribute and |
|
| 288 | * the value is the string value of the attribute. |
|
| 289 | * |
|
| 290 | * the map returned by this method is live, and you can add new attribute |
|
| 291 | * by updating the map directly. Because of this design, there's no setter. |
|
| 292 | * |
|
| 293 | * |
|
| 294 | * @return |
|
| 295 | * always non-null |
|
| 296 | */ |
|
| 297 | public Map<QName, String> getOtherAttributes() { |
|
| 298 | 156 | return otherAttributes; |
| 299 | } |
|
| 300 | ||
| 301 | } |