| Classes in this File | Line Coverage | Branch Coverage | Complexity | |||||||
| LinkType |
|
| 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.math.BigInteger; |
|
| 12 | import java.util.HashMap; |
|
| 13 | import java.util.Map; |
|
| 14 | import javax.xml.bind.annotation.XmlAccessType; |
|
| 15 | import javax.xml.bind.annotation.XmlAccessorType; |
|
| 16 | import javax.xml.bind.annotation.XmlAnyAttribute; |
|
| 17 | import javax.xml.bind.annotation.XmlAttribute; |
|
| 18 | import javax.xml.bind.annotation.XmlSchemaType; |
|
| 19 | import javax.xml.bind.annotation.XmlType; |
|
| 20 | import javax.xml.bind.annotation.XmlValue; |
|
| 21 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; |
|
| 22 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
|
| 23 | import javax.xml.namespace.QName; |
|
| 24 | ||
| 25 | ||
| 26 | /** |
|
| 27 | * |
|
| 28 | * The Atom link construct is defined in section 3.4 of the format spec. |
|
| 29 | * |
|
| 30 | * |
|
| 31 | * <p>Java class for linkType complex type. |
|
| 32 | * |
|
| 33 | * <p>The following schema fragment specifies the expected content contained within this class. |
|
| 34 | * |
|
| 35 | * <pre> |
|
| 36 | * <complexType name="linkType"> |
|
| 37 | * <complexContent> |
|
| 38 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|
| 39 | * <attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/> |
|
| 40 | * <attribute name="href" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> |
|
| 41 | * <attribute name="rel" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|
| 42 | * <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|
| 43 | * <attribute name="hreflang" type="{http://www.w3.org/2001/XMLSchema}NMTOKEN" /> |
|
| 44 | * <attribute name="title" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|
| 45 | * <attribute name="length" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" /> |
|
| 46 | * </restriction> |
|
| 47 | * </complexContent> |
|
| 48 | * </complexType> |
|
| 49 | * </pre> |
|
| 50 | * |
|
| 51 | * |
|
| 52 | */ |
|
| 53 | @XmlAccessorType(XmlAccessType.FIELD) |
|
| 54 | @XmlType(name = "linkType", propOrder = { |
|
| 55 | "content" |
|
| 56 | }) |
|
| 57 | 1209 | public class LinkType { |
| 58 | ||
| 59 | @XmlValue |
|
| 60 | protected String content; |
|
| 61 | @XmlAttribute(required = true) |
|
| 62 | @XmlSchemaType(name = "anyURI") |
|
| 63 | protected String href; |
|
| 64 | @XmlAttribute |
|
| 65 | protected String rel; |
|
| 66 | @XmlAttribute |
|
| 67 | protected String type; |
|
| 68 | @XmlAttribute |
|
| 69 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) |
|
| 70 | @XmlSchemaType(name = "NMTOKEN") |
|
| 71 | protected String hreflang; |
|
| 72 | @XmlAttribute |
|
| 73 | protected String title; |
|
| 74 | @XmlAttribute |
|
| 75 | @XmlSchemaType(name = "positiveInteger") |
|
| 76 | protected BigInteger length; |
|
| 77 | @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace") |
|
| 78 | @XmlSchemaType(name = "anyURI") |
|
| 79 | protected String base; |
|
| 80 | @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace") |
|
| 81 | protected String lang; |
|
| 82 | 1209 | @XmlAnyAttribute |
| 83 | private Map<QName, String> otherAttributes = new HashMap<QName, String>(); |
|
| 84 | ||
| 85 | /** |
|
| 86 | * |
|
| 87 | * The Atom link construct is defined in section 3.4 of the format spec. |
|
| 88 | * |
|
| 89 | * |
|
| 90 | * @return |
|
| 91 | * possible object is |
|
| 92 | * {@link String } |
|
| 93 | * |
|
| 94 | */ |
|
| 95 | public String getContent() { |
|
| 96 | 0 | return content; |
| 97 | } |
|
| 98 | ||
| 99 | /** |
|
| 100 | * Sets the value of the content property. |
|
| 101 | * |
|
| 102 | * @param value |
|
| 103 | * allowed object is |
|
| 104 | * {@link String } |
|
| 105 | * |
|
| 106 | */ |
|
| 107 | public void setContent(String value) { |
|
| 108 | 0 | this.content = value; |
| 109 | 0 | } |
| 110 | ||
| 111 | /** |
|
| 112 | * Gets the value of the href property. |
|
| 113 | * |
|
| 114 | * @return |
|
| 115 | * possible object is |
|
| 116 | * {@link String } |
|
| 117 | * |
|
| 118 | */ |
|
| 119 | public String getHref() { |
|
| 120 | 1050 | return href; |
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * Sets the value of the href property. |
|
| 125 | * |
|
| 126 | * @param value |
|
| 127 | * allowed object is |
|
| 128 | * {@link String } |
|
| 129 | * |
|
| 130 | */ |
|
| 131 | public void setHref(String value) { |
|
| 132 | 159 | this.href = value; |
| 133 | 159 | } |
| 134 | ||
| 135 | /** |
|
| 136 | * Gets the value of the rel property. |
|
| 137 | * |
|
| 138 | * @return |
|
| 139 | * possible object is |
|
| 140 | * {@link String } |
|
| 141 | * |
|
| 142 | */ |
|
| 143 | public String getRel() { |
|
| 144 | 1050 | return rel; |
| 145 | } |
|
| 146 | ||
| 147 | /** |
|
| 148 | * Sets the value of the rel property. |
|
| 149 | * |
|
| 150 | * @param value |
|
| 151 | * allowed object is |
|
| 152 | * {@link String } |
|
| 153 | * |
|
| 154 | */ |
|
| 155 | public void setRel(String value) { |
|
| 156 | 159 | this.rel = value; |
| 157 | 159 | } |
| 158 | ||
| 159 | /** |
|
| 160 | * Gets the value of the type property. |
|
| 161 | * |
|
| 162 | * @return |
|
| 163 | * possible object is |
|
| 164 | * {@link String } |
|
| 165 | * |
|
| 166 | */ |
|
| 167 | public String getType() { |
|
| 168 | 1050 | return type; |
| 169 | } |
|
| 170 | ||
| 171 | /** |
|
| 172 | * Sets the value of the type property. |
|
| 173 | * |
|
| 174 | * @param value |
|
| 175 | * allowed object is |
|
| 176 | * {@link String } |
|
| 177 | * |
|
| 178 | */ |
|
| 179 | public void setType(String value) { |
|
| 180 | 159 | this.type = value; |
| 181 | 159 | } |
| 182 | ||
| 183 | /** |
|
| 184 | * Gets the value of the hreflang property. |
|
| 185 | * |
|
| 186 | * @return |
|
| 187 | * possible object is |
|
| 188 | * {@link String } |
|
| 189 | * |
|
| 190 | */ |
|
| 191 | public String getHreflang() { |
|
| 192 | 1050 | return hreflang; |
| 193 | } |
|
| 194 | ||
| 195 | /** |
|
| 196 | * Sets the value of the hreflang property. |
|
| 197 | * |
|
| 198 | * @param value |
|
| 199 | * allowed object is |
|
| 200 | * {@link String } |
|
| 201 | * |
|
| 202 | */ |
|
| 203 | public void setHreflang(String value) { |
|
| 204 | 159 | this.hreflang = value; |
| 205 | 159 | } |
| 206 | ||
| 207 | /** |
|
| 208 | * Gets the value of the title property. |
|
| 209 | * |
|
| 210 | * @return |
|
| 211 | * possible object is |
|
| 212 | * {@link String } |
|
| 213 | * |
|
| 214 | */ |
|
| 215 | public String getTitle() { |
|
| 216 | 1050 | return title; |
| 217 | } |
|
| 218 | ||
| 219 | /** |
|
| 220 | * Sets the value of the title property. |
|
| 221 | * |
|
| 222 | * @param value |
|
| 223 | * allowed object is |
|
| 224 | * {@link String } |
|
| 225 | * |
|
| 226 | */ |
|
| 227 | public void setTitle(String value) { |
|
| 228 | 159 | this.title = value; |
| 229 | 159 | } |
| 230 | ||
| 231 | /** |
|
| 232 | * Gets the value of the length property. |
|
| 233 | * |
|
| 234 | * @return |
|
| 235 | * possible object is |
|
| 236 | * {@link BigInteger } |
|
| 237 | * |
|
| 238 | */ |
|
| 239 | public BigInteger getLength() { |
|
| 240 | 1059 | return length; |
| 241 | } |
|
| 242 | ||
| 243 | /** |
|
| 244 | * Sets the value of the length property. |
|
| 245 | * |
|
| 246 | * @param value |
|
| 247 | * allowed object is |
|
| 248 | * {@link BigInteger } |
|
| 249 | * |
|
| 250 | */ |
|
| 251 | public void setLength(BigInteger value) { |
|
| 252 | 159 | this.length = value; |
| 253 | 159 | } |
| 254 | ||
| 255 | /** |
|
| 256 | * Gets the value of the base property. |
|
| 257 | * |
|
| 258 | * @return |
|
| 259 | * possible object is |
|
| 260 | * {@link String } |
|
| 261 | * |
|
| 262 | */ |
|
| 263 | public String getBase() { |
|
| 264 | 1050 | return base; |
| 265 | } |
|
| 266 | ||
| 267 | /** |
|
| 268 | * Sets the value of the base property. |
|
| 269 | * |
|
| 270 | * @param value |
|
| 271 | * allowed object is |
|
| 272 | * {@link String } |
|
| 273 | * |
|
| 274 | */ |
|
| 275 | public void setBase(String value) { |
|
| 276 | 159 | this.base = value; |
| 277 | 159 | } |
| 278 | ||
| 279 | /** |
|
| 280 | * Gets the value of the lang property. |
|
| 281 | * |
|
| 282 | * @return |
|
| 283 | * possible object is |
|
| 284 | * {@link String } |
|
| 285 | * |
|
| 286 | */ |
|
| 287 | public String getLang() { |
|
| 288 | 1050 | return lang; |
| 289 | } |
|
| 290 | ||
| 291 | /** |
|
| 292 | * Sets the value of the lang property. |
|
| 293 | * |
|
| 294 | * @param value |
|
| 295 | * allowed object is |
|
| 296 | * {@link String } |
|
| 297 | * |
|
| 298 | */ |
|
| 299 | public void setLang(String value) { |
|
| 300 | 159 | this.lang = value; |
| 301 | 159 | } |
| 302 | ||
| 303 | /** |
|
| 304 | * Gets a map that contains attributes that aren't bound to any typed property on this class. |
|
| 305 | * |
|
| 306 | * <p> |
|
| 307 | * the map is keyed by the name of the attribute and |
|
| 308 | * the value is the string value of the attribute. |
|
| 309 | * |
|
| 310 | * the map returned by this method is live, and you can add new attribute |
|
| 311 | * by updating the map directly. Because of this design, there's no setter. |
|
| 312 | * |
|
| 313 | * |
|
| 314 | * @return |
|
| 315 | * always non-null |
|
| 316 | */ |
|
| 317 | public Map<QName, String> getOtherAttributes() { |
|
| 318 | 2259 | return otherAttributes; |
| 319 | } |
|
| 320 | ||
| 321 | } |