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