| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||||||
| PersonType |
|
| 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.atom03.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.XmlSchemaType; |
|
| 20 | import javax.xml.bind.annotation.XmlType; |
|
| 21 | import javax.xml.bind.annotation.adapters.NormalizedStringAdapter; |
|
| 22 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
|
| 23 | import javax.xml.namespace.QName; |
|
| 24 | import org.w3c.dom.Element; |
|
| 25 | ||
| 26 | ||
| 27 | /** |
|
| 28 | * <p>Java class for personType complex type. |
|
| 29 | * |
|
| 30 | * <p>The following schema fragment specifies the expected content contained within this class. |
|
| 31 | * |
|
| 32 | * <pre> |
|
| 33 | * <complexType name="personType"> |
|
| 34 | * <complexContent> |
|
| 35 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|
| 36 | * <choice> |
|
| 37 | * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/> |
|
| 38 | * <element name="url" type="{http://www.w3.org/2001/XMLSchema}anyURI" minOccurs="0"/> |
|
| 39 | * <element name="email" type="{http://purl.org/atom/ns#}emailType" minOccurs="0"/> |
|
| 40 | * <any/> |
|
| 41 | * </choice> |
|
| 42 | * </restriction> |
|
| 43 | * </complexContent> |
|
| 44 | * </complexType> |
|
| 45 | * </pre> |
|
| 46 | * |
|
| 47 | * |
|
| 48 | */ |
|
| 49 | @XmlAccessorType(XmlAccessType.FIELD) |
|
| 50 | @XmlType(name = "personType", propOrder = { |
|
| 51 | "name", |
|
| 52 | "url", |
|
| 53 | "email", |
|
| 54 | "any" |
|
| 55 | }) |
|
| 56 | 3 | public class PersonType { |
| 57 | ||
| 58 | protected String name; |
|
| 59 | @XmlSchemaType(name = "anyURI") |
|
| 60 | protected String url; |
|
| 61 | @XmlJavaTypeAdapter(NormalizedStringAdapter.class) |
|
| 62 | protected String email; |
|
| 63 | @XmlAnyElement(lax = true) |
|
| 64 | protected List<Object> any; |
|
| 65 | 3 | @XmlAnyAttribute |
| 66 | private Map<QName, String> otherAttributes = new HashMap<QName, String>(); |
|
| 67 | ||
| 68 | /** |
|
| 69 | * Gets the value of the name property. |
|
| 70 | * |
|
| 71 | * @return |
|
| 72 | * possible object is |
|
| 73 | * {@link String } |
|
| 74 | * |
|
| 75 | */ |
|
| 76 | public String getName() { |
|
| 77 | 6 | return name; |
| 78 | } |
|
| 79 | ||
| 80 | /** |
|
| 81 | * Sets the value of the name property. |
|
| 82 | * |
|
| 83 | * @param value |
|
| 84 | * allowed object is |
|
| 85 | * {@link String } |
|
| 86 | * |
|
| 87 | */ |
|
| 88 | public void setName(String value) { |
|
| 89 | 0 | this.name = value; |
| 90 | 0 | } |
| 91 | ||
| 92 | /** |
|
| 93 | * Gets the value of the url property. |
|
| 94 | * |
|
| 95 | * @return |
|
| 96 | * possible object is |
|
| 97 | * {@link String } |
|
| 98 | * |
|
| 99 | */ |
|
| 100 | public String getUrl() { |
|
| 101 | 3 | return url; |
| 102 | } |
|
| 103 | ||
| 104 | /** |
|
| 105 | * Sets the value of the url property. |
|
| 106 | * |
|
| 107 | * @param value |
|
| 108 | * allowed object is |
|
| 109 | * {@link String } |
|
| 110 | * |
|
| 111 | */ |
|
| 112 | public void setUrl(String value) { |
|
| 113 | 0 | this.url = value; |
| 114 | 0 | } |
| 115 | ||
| 116 | /** |
|
| 117 | * Gets the value of the email property. |
|
| 118 | * |
|
| 119 | * @return |
|
| 120 | * possible object is |
|
| 121 | * {@link String } |
|
| 122 | * |
|
| 123 | */ |
|
| 124 | public String getEmail() { |
|
| 125 | 6 | return email; |
| 126 | } |
|
| 127 | ||
| 128 | /** |
|
| 129 | * Sets the value of the email property. |
|
| 130 | * |
|
| 131 | * @param value |
|
| 132 | * allowed object is |
|
| 133 | * {@link String } |
|
| 134 | * |
|
| 135 | */ |
|
| 136 | public void setEmail(String value) { |
|
| 137 | 0 | this.email = value; |
| 138 | 0 | } |
| 139 | ||
| 140 | /** |
|
| 141 | * Gets the value of the any property. |
|
| 142 | * |
|
| 143 | * <p> |
|
| 144 | * This accessor method returns a reference to the live list, |
|
| 145 | * not a snapshot. Therefore any modification you make to the |
|
| 146 | * returned list will be present inside the JAXB object. |
|
| 147 | * This is why there is not a <CODE>set</CODE> method for the any property. |
|
| 148 | * |
|
| 149 | * <p> |
|
| 150 | * For example, to add a new item, do as follows: |
|
| 151 | * <pre> |
|
| 152 | * getAny().add(newItem); |
|
| 153 | * </pre> |
|
| 154 | * |
|
| 155 | * |
|
| 156 | * <p> |
|
| 157 | * Objects of the following type(s) are allowed in the list |
|
| 158 | * {@link Object } |
|
| 159 | * {@link Element } |
|
| 160 | * |
|
| 161 | * |
|
| 162 | */ |
|
| 163 | public List<Object> getAny() { |
|
| 164 | 3 | if (any == null) { |
| 165 | 3 | any = new ArrayList<Object>(); |
| 166 | } |
|
| 167 | 3 | return this.any; |
| 168 | } |
|
| 169 | ||
| 170 | /** |
|
| 171 | * Gets a map that contains attributes that aren't bound to any typed property on this class. |
|
| 172 | * |
|
| 173 | * <p> |
|
| 174 | * the map is keyed by the name of the attribute and |
|
| 175 | * the value is the string value of the attribute. |
|
| 176 | * |
|
| 177 | * the map returned by this method is live, and you can add new attribute |
|
| 178 | * by updating the map directly. Because of this design, there's no setter. |
|
| 179 | * |
|
| 180 | * |
|
| 181 | * @return |
|
| 182 | * always non-null |
|
| 183 | */ |
|
| 184 | public Map<QName, String> getOtherAttributes() { |
|
| 185 | 0 | return otherAttributes; |
| 186 | } |
|
| 187 | ||
| 188 | } |