Coverage Report - yarfraw.generated.atom03.elements.FeedType
 
Classes in this File Line Coverage Branch Coverage Complexity
FeedType
50% 
100% 
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.XmlSchemaType;
 21  
 import javax.xml.bind.annotation.XmlType;
 22  
 import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
 23  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 24  
 import javax.xml.namespace.QName;
 25  
 import org.w3c.dom.Element;
 26  
 
 27  
 
 28  
 /**
 29  
  * <p>Java class for feedType complex type.
 30  
  * 
 31  
  * <p>The following schema fragment specifies the expected content contained within this class.
 32  
  * 
 33  
  * <pre>
 34  
  * &lt;complexType name="feedType">
 35  
  *   &lt;complexContent>
 36  
  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 37  
  *       &lt;choice>
 38  
  *         &lt;element name="link" type="{http://purl.org/atom/ns#}linkType" maxOccurs="unbounded" minOccurs="0"/>
 39  
  *         &lt;element name="modified" type="{http://purl.org/atom/ns#}iso8601dateTime"/>
 40  
  *         &lt;element name="author" type="{http://purl.org/atom/ns#}personType" minOccurs="0"/>
 41  
  *         &lt;element name="contributor" type="{http://purl.org/atom/ns#}personType" maxOccurs="unbounded" minOccurs="0"/>
 42  
  *         &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
 43  
  *         &lt;element name="generator" type="{http://purl.org/atom/ns#}generatorType" minOccurs="0"/>
 44  
  *         &lt;element name="copyright" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 45  
  *         &lt;element name="entry" type="{http://purl.org/atom/ns#}entryType" maxOccurs="unbounded" minOccurs="0"/>
 46  
  *         &lt;any/>
 47  
  *       &lt;/choice>
 48  
  *       &lt;attribute name="version" use="required" type="{http://purl.org/atom/ns#}versionType" />
 49  
  *       &lt;attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
 50  
  *     &lt;/restriction>
 51  
  *   &lt;/complexContent>
 52  
  * &lt;/complexType>
 53  
  * </pre>
 54  
  * 
 55  
  * 
 56  
  */
 57  
 @XmlAccessorType(XmlAccessType.FIELD)
 58  
 @XmlType(name = "feedType", propOrder = {
 59  
     "link",
 60  
     "modified",
 61  
     "author",
 62  
     "contributor",
 63  
     "id",
 64  
     "generator",
 65  
     "copyright",
 66  
     "entry",
 67  
     "any"
 68  
 })
 69  3
 public class FeedType {
 70  
 
 71  
     protected List<LinkType> link;
 72  
     protected String modified;
 73  
     protected PersonType author;
 74  
     protected List<PersonType> contributor;
 75  
     @XmlSchemaType(name = "anyURI")
 76  
     protected String id;
 77  
     protected GeneratorType generator;
 78  
     protected String copyright;
 79  
     protected List<EntryType> entry;
 80  
     @XmlAnyElement(lax = true)
 81  
     protected List<Object> any;
 82  
     @XmlAttribute(required = true)
 83  
     @XmlJavaTypeAdapter(NormalizedStringAdapter.class)
 84  
     protected String version;
 85  
     @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
 86  
     protected String lang;
 87  3
     @XmlAnyAttribute
 88  
     private Map<QName, String> otherAttributes = new HashMap<QName, String>();
 89  
 
 90  
     /**
 91  
      * Gets the value of the link property.
 92  
      * 
 93  
      * <p>
 94  
      * This accessor method returns a reference to the live list,
 95  
      * not a snapshot. Therefore any modification you make to the
 96  
      * returned list will be present inside the JAXB object.
 97  
      * This is why there is not a <CODE>set</CODE> method for the link property.
 98  
      * 
 99  
      * <p>
 100  
      * For example, to add a new item, do as follows:
 101  
      * <pre>
 102  
      *    getLink().add(newItem);
 103  
      * </pre>
 104  
      * 
 105  
      * 
 106  
      * <p>
 107  
      * Objects of the following type(s) are allowed in the list
 108  
      * {@link LinkType }
 109  
      * 
 110  
      * 
 111  
      */
 112  
     public List<LinkType> getLink() {
 113  6
         if (link == null) {
 114  0
             link = new ArrayList<LinkType>();
 115  
         }
 116  6
         return this.link;
 117  
     }
 118  
 
 119  
     /**
 120  
      * Gets the value of the modified property.
 121  
      * 
 122  
      * @return
 123  
      *     possible object is
 124  
      *     {@link String }
 125  
      *     
 126  
      */
 127  
     public String getModified() {
 128  3
         return modified;
 129  
     }
 130  
 
 131  
     /**
 132  
      * Sets the value of the modified property.
 133  
      * 
 134  
      * @param value
 135  
      *     allowed object is
 136  
      *     {@link String }
 137  
      *     
 138  
      */
 139  
     public void setModified(String value) {
 140  0
         this.modified = value;
 141  0
     }
 142  
 
 143  
     /**
 144  
      * Gets the value of the author property.
 145  
      * 
 146  
      * @return
 147  
      *     possible object is
 148  
      *     {@link PersonType }
 149  
      *     
 150  
      */
 151  
     public PersonType getAuthor() {
 152  6
         return author;
 153  
     }
 154  
 
 155  
     /**
 156  
      * Sets the value of the author property.
 157  
      * 
 158  
      * @param value
 159  
      *     allowed object is
 160  
      *     {@link PersonType }
 161  
      *     
 162  
      */
 163  
     public void setAuthor(PersonType value) {
 164  0
         this.author = value;
 165  0
     }
 166  
 
 167  
     /**
 168  
      * Gets the value of the contributor property.
 169  
      * 
 170  
      * <p>
 171  
      * This accessor method returns a reference to the live list,
 172  
      * not a snapshot. Therefore any modification you make to the
 173  
      * returned list will be present inside the JAXB object.
 174  
      * This is why there is not a <CODE>set</CODE> method for the contributor property.
 175  
      * 
 176  
      * <p>
 177  
      * For example, to add a new item, do as follows:
 178  
      * <pre>
 179  
      *    getContributor().add(newItem);
 180  
      * </pre>
 181  
      * 
 182  
      * 
 183  
      * <p>
 184  
      * Objects of the following type(s) are allowed in the list
 185  
      * {@link PersonType }
 186  
      * 
 187  
      * 
 188  
      */
 189  
     public List<PersonType> getContributor() {
 190  6
         if (contributor == null) {
 191  3
             contributor = new ArrayList<PersonType>();
 192  
         }
 193  6
         return this.contributor;
 194  
     }
 195  
 
 196  
     /**
 197  
      * Gets the value of the id property.
 198  
      * 
 199  
      * @return
 200  
      *     possible object is
 201  
      *     {@link String }
 202  
      *     
 203  
      */
 204  
     public String getId() {
 205  3
         return id;
 206  
     }
 207  
 
 208  
     /**
 209  
      * Sets the value of the id property.
 210  
      * 
 211  
      * @param value
 212  
      *     allowed object is
 213  
      *     {@link String }
 214  
      *     
 215  
      */
 216  
     public void setId(String value) {
 217  0
         this.id = value;
 218  0
     }
 219  
 
 220  
     /**
 221  
      * Gets the value of the generator property.
 222  
      * 
 223  
      * @return
 224  
      *     possible object is
 225  
      *     {@link GeneratorType }
 226  
      *     
 227  
      */
 228  
     public GeneratorType getGenerator() {
 229  3
         return generator;
 230  
     }
 231  
 
 232  
     /**
 233  
      * Sets the value of the generator property.
 234  
      * 
 235  
      * @param value
 236  
      *     allowed object is
 237  
      *     {@link GeneratorType }
 238  
      *     
 239  
      */
 240  
     public void setGenerator(GeneratorType value) {
 241  0
         this.generator = value;
 242  0
     }
 243  
 
 244  
     /**
 245  
      * Gets the value of the copyright property.
 246  
      * 
 247  
      * @return
 248  
      *     possible object is
 249  
      *     {@link String }
 250  
      *     
 251  
      */
 252  
     public String getCopyright() {
 253  3
         return copyright;
 254  
     }
 255  
 
 256  
     /**
 257  
      * Sets the value of the copyright property.
 258  
      * 
 259  
      * @param value
 260  
      *     allowed object is
 261  
      *     {@link String }
 262  
      *     
 263  
      */
 264  
     public void setCopyright(String value) {
 265  0
         this.copyright = value;
 266  0
     }
 267  
 
 268  
     /**
 269  
      * Gets the value of the entry property.
 270  
      * 
 271  
      * <p>
 272  
      * This accessor method returns a reference to the live list,
 273  
      * not a snapshot. Therefore any modification you make to the
 274  
      * returned list will be present inside the JAXB object.
 275  
      * This is why there is not a <CODE>set</CODE> method for the entry property.
 276  
      * 
 277  
      * <p>
 278  
      * For example, to add a new item, do as follows:
 279  
      * <pre>
 280  
      *    getEntry().add(newItem);
 281  
      * </pre>
 282  
      * 
 283  
      * 
 284  
      * <p>
 285  
      * Objects of the following type(s) are allowed in the list
 286  
      * {@link EntryType }
 287  
      * 
 288  
      * 
 289  
      */
 290  
     public List<EntryType> getEntry() {
 291  6
         if (entry == null) {
 292  0
             entry = new ArrayList<EntryType>();
 293  
         }
 294  6
         return this.entry;
 295  
     }
 296  
 
 297  
     /**
 298  
      * Gets the value of the any property.
 299  
      * 
 300  
      * <p>
 301  
      * This accessor method returns a reference to the live list,
 302  
      * not a snapshot. Therefore any modification you make to the
 303  
      * returned list will be present inside the JAXB object.
 304  
      * This is why there is not a <CODE>set</CODE> method for the any property.
 305  
      * 
 306  
      * <p>
 307  
      * For example, to add a new item, do as follows:
 308  
      * <pre>
 309  
      *    getAny().add(newItem);
 310  
      * </pre>
 311  
      * 
 312  
      * 
 313  
      * <p>
 314  
      * Objects of the following type(s) are allowed in the list
 315  
      * {@link Object }
 316  
      * {@link Element }
 317  
      * 
 318  
      * 
 319  
      */
 320  
     public List<Object> getAny() {
 321  3
         if (any == null) {
 322  0
             any = new ArrayList<Object>();
 323  
         }
 324  3
         return this.any;
 325  
     }
 326  
 
 327  
     /**
 328  
      * Gets the value of the version property.
 329  
      * 
 330  
      * @return
 331  
      *     possible object is
 332  
      *     {@link String }
 333  
      *     
 334  
      */
 335  
     public String getVersion() {
 336  0
         return version;
 337  
     }
 338  
 
 339  
     /**
 340  
      * Sets the value of the version property.
 341  
      * 
 342  
      * @param value
 343  
      *     allowed object is
 344  
      *     {@link String }
 345  
      *     
 346  
      */
 347  
     public void setVersion(String value) {
 348  0
         this.version = value;
 349  0
     }
 350  
 
 351  
     /**
 352  
      * Gets the value of the lang property.
 353  
      * 
 354  
      * @return
 355  
      *     possible object is
 356  
      *     {@link String }
 357  
      *     
 358  
      */
 359  
     public String getLang() {
 360  3
         return lang;
 361  
     }
 362  
 
 363  
     /**
 364  
      * Sets the value of the lang property.
 365  
      * 
 366  
      * @param value
 367  
      *     allowed object is
 368  
      *     {@link String }
 369  
      *     
 370  
      */
 371  
     public void setLang(String value) {
 372  0
         this.lang = value;
 373  0
     }
 374  
 
 375  
     /**
 376  
      * Gets a map that contains attributes that aren't bound to any typed property on this class.
 377  
      * 
 378  
      * <p>
 379  
      * the map is keyed by the name of the attribute and 
 380  
      * the value is the string value of the attribute.
 381  
      * 
 382  
      * the map returned by this method is live, and you can add new attribute
 383  
      * by updating the map directly. Because of this design, there's no setter.
 384  
      * 
 385  
      * 
 386  
      * @return
 387  
      *     always non-null
 388  
      */
 389  
     public Map<QName, String> getOtherAttributes() {
 390  6
         return otherAttributes;
 391  
     }
 392  
 
 393  
 }