Coverage Report - yarfraw.generated.rss20.elements.TRssItem
 
Classes in this File Line Coverage Branch Coverage Complexity
TRssItem
100% 
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.rss20.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.JAXBElement;
 16  
 import javax.xml.bind.annotation.XmlAccessType;
 17  
 import javax.xml.bind.annotation.XmlAccessorType;
 18  
 import javax.xml.bind.annotation.XmlAnyAttribute;
 19  
 import javax.xml.bind.annotation.XmlAnyElement;
 20  
 import javax.xml.bind.annotation.XmlElementRef;
 21  
 import javax.xml.bind.annotation.XmlElementRefs;
 22  
 import javax.xml.bind.annotation.XmlType;
 23  
 import javax.xml.namespace.QName;
 24  
 import org.w3c.dom.Element;
 25  
 
 26  
 
 27  
 /**
 28  
  * An item may represent a "story" -- much like a story in a newspaper or magazine; if so its description is a synopsis of the story, and the link points to the full story. An item may also be complete in itself, if so, the description contains the text (entity-encoded HTML is allowed), and the link and title may be omitted.
 29  
  * 
 30  
  * <p>Java class for tRssItem complex type.
 31  
  * 
 32  
  * <p>The following schema fragment specifies the expected content contained within this class.
 33  
  * 
 34  
  * <pre>
 35  
  * &lt;complexType name="tRssItem">
 36  
  *   &lt;complexContent>
 37  
  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 38  
  *       &lt;sequence>
 39  
  *         &lt;choice maxOccurs="unbounded">
 40  
  *           &lt;element name="title" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 41  
  *           &lt;element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 42  
  *           &lt;element name="link" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
 43  
  *           &lt;element name="author" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 44  
  *           &lt;element name="category" type="{}tCategory" minOccurs="0"/>
 45  
  *           &lt;element name="comments" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/>
 46  
  *           &lt;element name="enclosure" type="{}tEnclosure" minOccurs="0"/>
 47  
  *           &lt;element name="guid" type="{}tGuid" minOccurs="0"/>
 48  
  *           &lt;element name="pubDate" type="{}tRfc822FormatDate" minOccurs="0"/>
 49  
  *           &lt;element name="source" type="{}tSource" minOccurs="0"/>
 50  
  *           &lt;any/>
 51  
  *         &lt;/choice>
 52  
  *       &lt;/sequence>
 53  
  *     &lt;/restriction>
 54  
  *   &lt;/complexContent>
 55  
  * &lt;/complexType>
 56  
  * </pre>
 57  
  * 
 58  
  * 
 59  
  */
 60  
 @XmlAccessorType(XmlAccessType.FIELD)
 61  
 @XmlType(name = "tRssItem", propOrder = {
 62  
     "titleOrDescriptionOrLink"
 63  
 })
 64  7360
 public class TRssItem {
 65  
 
 66  
     @XmlElementRefs({
 67  
         @XmlElementRef(name = "category", type = JAXBElement.class),
 68  
         @XmlElementRef(name = "source", type = JAXBElement.class),
 69  
         @XmlElementRef(name = "guid", type = JAXBElement.class),
 70  
         @XmlElementRef(name = "description", type = JAXBElement.class),
 71  
         @XmlElementRef(name = "enclosure", type = JAXBElement.class),
 72  
         @XmlElementRef(name = "comments", type = JAXBElement.class),
 73  
         @XmlElementRef(name = "title", type = JAXBElement.class),
 74  
         @XmlElementRef(name = "author", type = JAXBElement.class),
 75  
         @XmlElementRef(name = "link", type = JAXBElement.class),
 76  
         @XmlElementRef(name = "pubDate", type = JAXBElement.class)
 77  
     })
 78  
     @XmlAnyElement
 79  
     protected List<Object> titleOrDescriptionOrLink;
 80  7360
     @XmlAnyAttribute
 81  
     private Map<QName, String> otherAttributes = new HashMap<QName, String>();
 82  
 
 83  
     /**
 84  
      * Gets the value of the titleOrDescriptionOrLink property.
 85  
      * 
 86  
      * <p>
 87  
      * This accessor method returns a reference to the live list,
 88  
      * not a snapshot. Therefore any modification you make to the
 89  
      * returned list will be present inside the JAXB object.
 90  
      * This is why there is not a <CODE>set</CODE> method for the titleOrDescriptionOrLink property.
 91  
      * 
 92  
      * <p>
 93  
      * For example, to add a new item, do as follows:
 94  
      * <pre>
 95  
      *    getTitleOrDescriptionOrLink().add(newItem);
 96  
      * </pre>
 97  
      * 
 98  
      * 
 99  
      * <p>
 100  
      * Objects of the following type(s) are allowed in the list
 101  
      * {@link JAXBElement }{@code <}{@link TCategory }{@code >}
 102  
      * {@link JAXBElement }{@code <}{@link TSource }{@code >}
 103  
      * {@link JAXBElement }{@code <}{@link String }{@code >}
 104  
      * {@link JAXBElement }{@code <}{@link TEnclosure }{@code >}
 105  
      * {@link JAXBElement }{@code <}{@link String }{@code >}
 106  
      * {@link JAXBElement }{@code <}{@link TGuid }{@code >}
 107  
      * {@link JAXBElement }{@code <}{@link String }{@code >}
 108  
      * {@link JAXBElement }{@code <}{@link String }{@code >}
 109  
      * {@link Element }
 110  
      * {@link JAXBElement }{@code <}{@link String }{@code >}
 111  
      * {@link JAXBElement }{@code <}{@link String }{@code >}
 112  
      * 
 113  
      * 
 114  
      */
 115  
     public List<Object> getTitleOrDescriptionOrLink() {
 116  7915
         if (titleOrDescriptionOrLink == null) {
 117  597
             titleOrDescriptionOrLink = new ArrayList<Object>();
 118  
         }
 119  7915
         return this.titleOrDescriptionOrLink;
 120  
     }
 121  
 
 122  
     /**
 123  
      * Gets a map that contains attributes that aren't bound to any typed property on this class.
 124  
      * 
 125  
      * <p>
 126  
      * the map is keyed by the name of the attribute and 
 127  
      * the value is the string value of the attribute.
 128  
      * 
 129  
      * the map returned by this method is live, and you can add new attribute
 130  
      * by updating the map directly. Because of this design, there's no setter.
 131  
      * 
 132  
      * 
 133  
      * @return
 134  
      *     always non-null
 135  
      */
 136  
     public Map<QName, String> getOtherAttributes() {
 137  110866
         return otherAttributes;
 138  
     }
 139  
 
 140  
 }