| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||||||
| TRss |
|
| 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.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.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 tRss complex type. |
|
| 28 | * |
|
| 29 | * <p>The following schema fragment specifies the expected content contained within this class. |
|
| 30 | * |
|
| 31 | * <pre> |
|
| 32 | * <complexType name="tRss"> |
|
| 33 | * <complexContent> |
|
| 34 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|
| 35 | * <sequence> |
|
| 36 | * <element name="channel" type="{}tRssChannel"/> |
|
| 37 | * <any/> |
|
| 38 | * </sequence> |
|
| 39 | * <attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}double" fixed="2.0" /> |
|
| 40 | * </restriction> |
|
| 41 | * </complexContent> |
|
| 42 | * </complexType> |
|
| 43 | * </pre> |
|
| 44 | * |
|
| 45 | * |
|
| 46 | */ |
|
| 47 | @XmlAccessorType(XmlAccessType.FIELD) |
|
| 48 | @XmlType(name = "tRss", propOrder = { |
|
| 49 | "channel", |
|
| 50 | "any" |
|
| 51 | }) |
|
| 52 | 359 | public class TRss { |
| 53 | ||
| 54 | @XmlElement(required = true) |
|
| 55 | protected TRssChannel channel; |
|
| 56 | @XmlAnyElement |
|
| 57 | protected List<Element> any; |
|
| 58 | @XmlAttribute(required = true) |
|
| 59 | protected double version; |
|
| 60 | 359 | @XmlAnyAttribute |
| 61 | private Map<QName, String> otherAttributes = new HashMap<QName, String>(); |
|
| 62 | ||
| 63 | /** |
|
| 64 | * Gets the value of the channel property. |
|
| 65 | * |
|
| 66 | * @return |
|
| 67 | * possible object is |
|
| 68 | * {@link TRssChannel } |
|
| 69 | * |
|
| 70 | */ |
|
| 71 | public TRssChannel getChannel() { |
|
| 72 | 275 | return channel; |
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * Sets the value of the channel property. |
|
| 77 | * |
|
| 78 | * @param value |
|
| 79 | * allowed object is |
|
| 80 | * {@link TRssChannel } |
|
| 81 | * |
|
| 82 | */ |
|
| 83 | public void setChannel(TRssChannel value) { |
|
| 84 | 81 | this.channel = value; |
| 85 | 81 | } |
| 86 | ||
| 87 | /** |
|
| 88 | * Gets the value of the any property. |
|
| 89 | * |
|
| 90 | * <p> |
|
| 91 | * This accessor method returns a reference to the live list, |
|
| 92 | * not a snapshot. Therefore any modification you make to the |
|
| 93 | * returned list will be present inside the JAXB object. |
|
| 94 | * This is why there is not a <CODE>set</CODE> method for the any property. |
|
| 95 | * |
|
| 96 | * <p> |
|
| 97 | * For example, to add a new item, do as follows: |
|
| 98 | * <pre> |
|
| 99 | * getAny().add(newItem); |
|
| 100 | * </pre> |
|
| 101 | * |
|
| 102 | * |
|
| 103 | * <p> |
|
| 104 | * Objects of the following type(s) are allowed in the list |
|
| 105 | * {@link Element } |
|
| 106 | * |
|
| 107 | * |
|
| 108 | */ |
|
| 109 | public List<Element> getAny() { |
|
| 110 | 0 | if (any == null) { |
| 111 | 0 | any = new ArrayList<Element>(); |
| 112 | } |
|
| 113 | 0 | return this.any; |
| 114 | } |
|
| 115 | ||
| 116 | /** |
|
| 117 | * Gets the value of the version property. |
|
| 118 | * |
|
| 119 | */ |
|
| 120 | public double getVersion() { |
|
| 121 | 0 | return version; |
| 122 | } |
|
| 123 | ||
| 124 | /** |
|
| 125 | * Sets the value of the version property. |
|
| 126 | * |
|
| 127 | */ |
|
| 128 | public void setVersion(double value) { |
|
| 129 | 81 | this.version = value; |
| 130 | 81 | } |
| 131 | ||
| 132 | /** |
|
| 133 | * Gets a map that contains attributes that aren't bound to any typed property on this class. |
|
| 134 | * |
|
| 135 | * <p> |
|
| 136 | * the map is keyed by the name of the attribute and |
|
| 137 | * the value is the string value of the attribute. |
|
| 138 | * |
|
| 139 | * the map returned by this method is live, and you can add new attribute |
|
| 140 | * by updating the map directly. Because of this design, there's no setter. |
|
| 141 | * |
|
| 142 | * |
|
| 143 | * @return |
|
| 144 | * always non-null |
|
| 145 | */ |
|
| 146 | public Map<QName, String> getOtherAttributes() { |
|
| 147 | 0 | return otherAttributes; |
| 148 | } |
|
| 149 | ||
| 150 | } |