| 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:37 AM EDT |
|
| 6 | // |
|
| 7 | ||
| 8 | ||
| 9 | package yarfraw.generated.atom10.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 | ||
| 27 | ||
| 28 | /** |
|
| 29 | * |
|
| 30 | * The Atom entry construct is defined in section 4.1.2 of the format spec. |
|
| 31 | * |
|
| 32 | * |
|
| 33 | * <p>Java class for entryType complex type. |
|
| 34 | * |
|
| 35 | * <p>The following schema fragment specifies the expected content contained within this class. |
|
| 36 | * |
|
| 37 | * <pre> |
|
| 38 | * <complexType name="entryType"> |
|
| 39 | * <complexContent> |
|
| 40 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|
| 41 | * <choice maxOccurs="unbounded"> |
|
| 42 | * <element name="author" type="{http://www.w3.org/2005/Atom}personType" maxOccurs="unbounded" minOccurs="0"/> |
|
| 43 | * <element name="category" type="{http://www.w3.org/2005/Atom}categoryType" maxOccurs="unbounded" minOccurs="0"/> |
|
| 44 | * <element name="content" type="{http://www.w3.org/2005/Atom}contentType" minOccurs="0"/> |
|
| 45 | * <element name="contributor" type="{http://www.w3.org/2005/Atom}personType" maxOccurs="unbounded" minOccurs="0"/> |
|
| 46 | * <element name="id" type="{http://www.w3.org/2005/Atom}idType"/> |
|
| 47 | * <element name="link" type="{http://www.w3.org/2005/Atom}linkType" maxOccurs="unbounded" minOccurs="0"/> |
|
| 48 | * <element name="published" type="{http://www.w3.org/2005/Atom}dateTimeType" minOccurs="0"/> |
|
| 49 | * <element name="rights" type="{http://www.w3.org/2005/Atom}textType" minOccurs="0"/> |
|
| 50 | * <element name="source" type="{http://www.w3.org/2005/Atom}textType" minOccurs="0"/> |
|
| 51 | * <element name="summary" type="{http://www.w3.org/2005/Atom}textType" minOccurs="0"/> |
|
| 52 | * <element name="title" type="{http://www.w3.org/2005/Atom}textType"/> |
|
| 53 | * <element name="updated" type="{http://www.w3.org/2005/Atom}dateTimeType"/> |
|
| 54 | * <any/> |
|
| 55 | * </choice> |
|
| 56 | * <attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/> |
|
| 57 | * </restriction> |
|
| 58 | * </complexContent> |
|
| 59 | * </complexType> |
|
| 60 | * </pre> |
|
| 61 | * |
|
| 62 | * |
|
| 63 | */ |
|
| 64 | @XmlAccessorType(XmlAccessType.FIELD) |
|
| 65 | @XmlType(name = "entryType", propOrder = { |
|
| 66 | "authorOrCategoryOrContent" |
|
| 67 | }) |
|
| 68 | 453 | public class EntryType { |
| 69 | ||
| 70 | @XmlElementRefs({ |
|
| 71 | @XmlElementRef(name = "source", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class), |
|
| 72 | @XmlElementRef(name = "link", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class), |
|
| 73 | @XmlElementRef(name = "title", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class), |
|
| 74 | @XmlElementRef(name = "id", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class), |
|
| 75 | @XmlElementRef(name = "published", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class), |
|
| 76 | @XmlElementRef(name = "summary", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class), |
|
| 77 | @XmlElementRef(name = "rights", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class), |
|
| 78 | @XmlElementRef(name = "content", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class), |
|
| 79 | @XmlElementRef(name = "author", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class), |
|
| 80 | @XmlElementRef(name = "updated", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class), |
|
| 81 | @XmlElementRef(name = "category", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class), |
|
| 82 | @XmlElementRef(name = "contributor", namespace = "http://www.w3.org/2005/Atom", type = JAXBElement.class) |
|
| 83 | }) |
|
| 84 | @XmlAnyElement(lax = true) |
|
| 85 | protected List<Object> authorOrCategoryOrContent; |
|
| 86 | @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace") |
|
| 87 | @XmlSchemaType(name = "anyURI") |
|
| 88 | protected String base; |
|
| 89 | @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace") |
|
| 90 | protected String lang; |
|
| 91 | 453 | @XmlAnyAttribute |
| 92 | private Map<QName, String> otherAttributes = new HashMap<QName, String>(); |
|
| 93 | ||
| 94 | /** |
|
| 95 | * Gets the value of the authorOrCategoryOrContent property. |
|
| 96 | * |
|
| 97 | * <p> |
|
| 98 | * This accessor method returns a reference to the live list, |
|
| 99 | * not a snapshot. Therefore any modification you make to the |
|
| 100 | * returned list will be present inside the JAXB object. |
|
| 101 | * This is why there is not a <CODE>set</CODE> method for the authorOrCategoryOrContent property. |
|
| 102 | * |
|
| 103 | * <p> |
|
| 104 | * For example, to add a new item, do as follows: |
|
| 105 | * <pre> |
|
| 106 | * getAuthorOrCategoryOrContent().add(newItem); |
|
| 107 | * </pre> |
|
| 108 | * |
|
| 109 | * |
|
| 110 | * <p> |
|
| 111 | * Objects of the following type(s) are allowed in the list |
|
| 112 | * {@link JAXBElement }{@code <}{@link TextType }{@code >} |
|
| 113 | * {@link JAXBElement }{@code <}{@link TextType }{@code >} |
|
| 114 | * {@link JAXBElement }{@code <}{@link DateTimeType }{@code >} |
|
| 115 | * {@link JAXBElement }{@code <}{@link TextType }{@code >} |
|
| 116 | * {@link JAXBElement }{@code <}{@link PersonType }{@code >} |
|
| 117 | * {@link JAXBElement }{@code <}{@link LinkType }{@code >} |
|
| 118 | * {@link JAXBElement }{@code <}{@link IdType }{@code >} |
|
| 119 | * {@link Object } |
|
| 120 | * {@link JAXBElement }{@code <}{@link TextType }{@code >} |
|
| 121 | * {@link JAXBElement }{@code <}{@link ContentType }{@code >} |
|
| 122 | * {@link JAXBElement }{@code <}{@link PersonType }{@code >} |
|
| 123 | * {@link JAXBElement }{@code <}{@link DateTimeType }{@code >} |
|
| 124 | * {@link JAXBElement }{@code <}{@link CategoryType }{@code >} |
|
| 125 | * |
|
| 126 | * |
|
| 127 | */ |
|
| 128 | public List<Object> getAuthorOrCategoryOrContent() { |
|
| 129 | 540 | if (authorOrCategoryOrContent == null) { |
| 130 | 87 | authorOrCategoryOrContent = new ArrayList<Object>(); |
| 131 | } |
|
| 132 | 540 | return this.authorOrCategoryOrContent; |
| 133 | } |
|
| 134 | ||
| 135 | /** |
|
| 136 | * Gets the value of the base property. |
|
| 137 | * |
|
| 138 | * @return |
|
| 139 | * possible object is |
|
| 140 | * {@link String } |
|
| 141 | * |
|
| 142 | */ |
|
| 143 | public String getBase() { |
|
| 144 | 366 | return base; |
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * Sets the value of the base property. |
|
| 149 | * |
|
| 150 | * @param value |
|
| 151 | * allowed object is |
|
| 152 | * {@link String } |
|
| 153 | * |
|
| 154 | */ |
|
| 155 | public void setBase(String value) { |
|
| 156 | 87 | this.base = value; |
| 157 | 87 | } |
| 158 | ||
| 159 | /** |
|
| 160 | * Gets the value of the lang property. |
|
| 161 | * |
|
| 162 | * @return |
|
| 163 | * possible object is |
|
| 164 | * {@link String } |
|
| 165 | * |
|
| 166 | */ |
|
| 167 | public String getLang() { |
|
| 168 | 366 | return lang; |
| 169 | } |
|
| 170 | ||
| 171 | /** |
|
| 172 | * Sets the value of the lang property. |
|
| 173 | * |
|
| 174 | * @param value |
|
| 175 | * allowed object is |
|
| 176 | * {@link String } |
|
| 177 | * |
|
| 178 | */ |
|
| 179 | public void setLang(String value) { |
|
| 180 | 87 | this.lang = value; |
| 181 | 87 | } |
| 182 | ||
| 183 | /** |
|
| 184 | * Gets a map that contains attributes that aren't bound to any typed property on this class. |
|
| 185 | * |
|
| 186 | * <p> |
|
| 187 | * the map is keyed by the name of the attribute and |
|
| 188 | * the value is the string value of the attribute. |
|
| 189 | * |
|
| 190 | * the map returned by this method is live, and you can add new attribute |
|
| 191 | * by updating the map directly. Because of this design, there's no setter. |
|
| 192 | * |
|
| 193 | * |
|
| 194 | * @return |
|
| 195 | * always non-null |
|
| 196 | */ |
|
| 197 | public Map<QName, String> getOtherAttributes() { |
|
| 198 | 540 | return otherAttributes; |
| 199 | } |
|
| 200 | ||
| 201 | } |