Coverage Report - yarfraw.generated.rss10.elements.TRss10Item
 
Classes in this File Line Coverage Branch Coverage Complexity
TRss10Item
92% 
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:45 AM EDT 
 6  
 //
 7  
 
 8  
 
 9  
 package yarfraw.generated.rss10.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.XmlAttribute;
 21  
 import javax.xml.bind.annotation.XmlElementRef;
 22  
 import javax.xml.bind.annotation.XmlElementRefs;
 23  
 import javax.xml.bind.annotation.XmlSchemaType;
 24  
 import javax.xml.bind.annotation.XmlType;
 25  
 import javax.xml.namespace.QName;
 26  
 import org.w3c.dom.Element;
 27  
 
 28  
 
 29  
 /**
 30  
  *  While commonly a news headline, with RSS 1.0's modular extensibility, 
 31  
  *                         this can be just about anything: discussion posting, job listing, software patch -- 
 32  
  *                         any object with a URI. There may be a minimum of one item per RSS document. 
 33  
  *                         While RSS 1.0 does not enforce an upper limit, for backward compatibility with 
 34  
  *                         RSS 0.9 and 0.91, a maximum of fifteen items is recommended.
 35  
  *                         {item_uri} must be unique with respect to any other rdf:about 
 36  
  *                         attributes in the RSS document and is a URI which identifies the item. 
 37  
  *                         {item_uri} should be identical to the value of the 'link' sub-element of 
 38  
  *                         the 'item' element, if possible. 
 39  
  * 
 40  
  * <p>Java class for tRss10Item complex type.
 41  
  * 
 42  
  * <p>The following schema fragment specifies the expected content contained within this class.
 43  
  * 
 44  
  * <pre>
 45  
  * &lt;complexType name="tRss10Item">
 46  
  *   &lt;complexContent>
 47  
  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 48  
  *       &lt;sequence>
 49  
  *         &lt;choice maxOccurs="unbounded">
 50  
  *           &lt;element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
 51  
  *           &lt;element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 52  
  *           &lt;element name="link" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
 53  
  *           &lt;element ref="{http://purl.org/dc/elements/1.1/}creator" minOccurs="0"/>
 54  
  *           &lt;element ref="{http://purl.org/dc/elements/1.1/}rights" minOccurs="0"/>
 55  
  *           &lt;element ref="{http://purl.org/dc/elements/1.1/}subject" maxOccurs="unbounded" minOccurs="0"/>
 56  
  *           &lt;element ref="{http://purl.org/dc/elements/1.1/}date" minOccurs="0"/>
 57  
  *           &lt;element ref="{http://purl.org/dc/elements/1.1/}contributor" minOccurs="0"/>
 58  
  *           &lt;any/>
 59  
  *         &lt;/choice>
 60  
  *       &lt;/sequence>
 61  
  *       &lt;attribute ref="{http://www.w3.org/1999/02/22-rdf-syntax-ns#}about use="required""/>
 62  
  *       &lt;attribute ref="{http://www.w3.org/1999/02/22-rdf-syntax-ns#}resource"/>
 63  
  *     &lt;/restriction>
 64  
  *   &lt;/complexContent>
 65  
  * &lt;/complexType>
 66  
  * </pre>
 67  
  * 
 68  
  * 
 69  
  */
 70  
 @XmlAccessorType(XmlAccessType.FIELD)
 71  
 @XmlType(name = "tRss10Item", propOrder = {
 72  
     "titleOrDescriptionOrLink"
 73  
 })
 74  279
 public class TRss10Item {
 75  
 
 76  
     @XmlElementRefs({
 77  
         @XmlElementRef(name = "subject", namespace = "http://purl.org/dc/elements/1.1/", type = JAXBElement.class),
 78  
         @XmlElementRef(name = "link", namespace = "http://purl.org/rss/1.0/", type = JAXBElement.class),
 79  
         @XmlElementRef(name = "title", namespace = "http://purl.org/rss/1.0/", type = JAXBElement.class),
 80  
         @XmlElementRef(name = "creator", namespace = "http://purl.org/dc/elements/1.1/", type = JAXBElement.class),
 81  
         @XmlElementRef(name = "contributor", namespace = "http://purl.org/dc/elements/1.1/", type = JAXBElement.class),
 82  
         @XmlElementRef(name = "date", namespace = "http://purl.org/dc/elements/1.1/", type = JAXBElement.class),
 83  
         @XmlElementRef(name = "rights", namespace = "http://purl.org/dc/elements/1.1/", type = JAXBElement.class),
 84  
         @XmlElementRef(name = "description", namespace = "http://purl.org/rss/1.0/", type = JAXBElement.class)
 85  
     })
 86  
     @XmlAnyElement
 87  
     protected List<Object> titleOrDescriptionOrLink;
 88  
     @XmlAttribute(namespace = "http://www.w3.org/1999/02/22-rdf-syntax-ns#", required = true)
 89  
     @XmlSchemaType(name = "anyURI")
 90  
     protected String about;
 91  
     @XmlAttribute(namespace = "http://www.w3.org/1999/02/22-rdf-syntax-ns#")
 92  
     @XmlSchemaType(name = "anyURI")
 93  
     protected String resource;
 94  279
     @XmlAnyAttribute
 95  
     private Map<QName, String> otherAttributes = new HashMap<QName, String>();
 96  
 
 97  
     /**
 98  
      * Gets the value of the titleOrDescriptionOrLink property.
 99  
      * 
 100  
      * <p>
 101  
      * This accessor method returns a reference to the live list,
 102  
      * not a snapshot. Therefore any modification you make to the
 103  
      * returned list will be present inside the JAXB object.
 104  
      * This is why there is not a <CODE>set</CODE> method for the titleOrDescriptionOrLink property.
 105  
      * 
 106  
      * <p>
 107  
      * For example, to add a new item, do as follows:
 108  
      * <pre>
 109  
      *    getTitleOrDescriptionOrLink().add(newItem);
 110  
      * </pre>
 111  
      * 
 112  
      * 
 113  
      * <p>
 114  
      * Objects of the following type(s) are allowed in the list
 115  
      * {@link JAXBElement }{@code <}{@link DcType }{@code >}
 116  
      * {@link JAXBElement }{@code <}{@link String }{@code >}
 117  
      * {@link JAXBElement }{@code <}{@link String }{@code >}
 118  
      * {@link JAXBElement }{@code <}{@link DcType }{@code >}
 119  
      * {@link JAXBElement }{@code <}{@link DcType }{@code >}
 120  
      * {@link JAXBElement }{@code <}{@link DcType }{@code >}
 121  
      * {@link JAXBElement }{@code <}{@link DcType }{@code >}
 122  
      * {@link Element }
 123  
      * {@link JAXBElement }{@code <}{@link String }{@code >}
 124  
      * 
 125  
      * 
 126  
      */
 127  
     public List<Object> getTitleOrDescriptionOrLink() {
 128  282
         if (titleOrDescriptionOrLink == null) {
 129  54
             titleOrDescriptionOrLink = new ArrayList<Object>();
 130  
         }
 131  282
         return this.titleOrDescriptionOrLink;
 132  
     }
 133  
 
 134  
     /**
 135  
      * Gets the value of the about property.
 136  
      * 
 137  
      * @return
 138  
      *     possible object is
 139  
      *     {@link String }
 140  
      *     
 141  
      */
 142  
     public String getAbout() {
 143  0
         return about;
 144  
     }
 145  
 
 146  
     /**
 147  
      * Sets the value of the about property.
 148  
      * 
 149  
      * @param value
 150  
      *     allowed object is
 151  
      *     {@link String }
 152  
      *     
 153  
      */
 154  
     public void setAbout(String value) {
 155  51
         this.about = value;
 156  51
     }
 157  
 
 158  
     /**
 159  
      * Gets the value of the resource property.
 160  
      * 
 161  
      * @return
 162  
      *     possible object is
 163  
      *     {@link String }
 164  
      *     
 165  
      */
 166  
     public String getResource() {
 167  228
         return resource;
 168  
     }
 169  
 
 170  
     /**
 171  
      * Sets the value of the resource property.
 172  
      * 
 173  
      * @param value
 174  
      *     allowed object is
 175  
      *     {@link String }
 176  
      *     
 177  
      */
 178  
     public void setResource(String value) {
 179  282
         this.resource = value;
 180  282
     }
 181  
 
 182  
     /**
 183  
      * Gets a map that contains attributes that aren't bound to any typed property on this class.
 184  
      * 
 185  
      * <p>
 186  
      * the map is keyed by the name of the attribute and 
 187  
      * the value is the string value of the attribute.
 188  
      * 
 189  
      * the map returned by this method is live, and you can add new attribute
 190  
      * by updating the map directly. Because of this design, there's no setter.
 191  
      * 
 192  
      * 
 193  
      * @return
 194  
      *     always non-null
 195  
      */
 196  
     public Map<QName, String> getOtherAttributes() {
 197  54
         return otherAttributes;
 198  
     }
 199  
 
 200  
 }