Coverage Report - yarfraw.generated.atom10.elements.TextType
 
Classes in this File Line Coverage Branch Coverage Complexity
TextType
93% 
100% 
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.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.XmlMixed;
 21  
 import javax.xml.bind.annotation.XmlSchemaType;
 22  
 import javax.xml.bind.annotation.XmlType;
 23  
 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
 24  
 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
 25  
 import javax.xml.namespace.QName;
 26  
 
 27  
 
 28  
 /**
 29  
  * 
 30  
  *                                 The Atom text construct is defined in section 3.1 of the format spec.
 31  
  *                         
 32  
  * 
 33  
  * <p>Java class for textType complex type.
 34  
  * 
 35  
  * <p>The following schema fragment specifies the expected content contained within this class.
 36  
  * 
 37  
  * <pre>
 38  
  * &lt;complexType name="textType">
 39  
  *   &lt;complexContent>
 40  
  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 41  
  *       &lt;sequence>
 42  
  *         &lt;any/>
 43  
  *       &lt;/sequence>
 44  
  *       &lt;attGroup ref="{http://www.w3.org/2005/Atom}commonAttributes"/>
 45  
  *       &lt;attribute name="type">
 46  
  *         &lt;simpleType>
 47  
  *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}token">
 48  
  *             &lt;enumeration value="text"/>
 49  
  *             &lt;enumeration value="html"/>
 50  
  *             &lt;enumeration value="xhtml"/>
 51  
  *           &lt;/restriction>
 52  
  *         &lt;/simpleType>
 53  
  *       &lt;/attribute>
 54  
  *     &lt;/restriction>
 55  
  *   &lt;/complexContent>
 56  
  * &lt;/complexType>
 57  
  * </pre>
 58  
  * 
 59  
  * 
 60  
  */
 61  
 @XmlAccessorType(XmlAccessType.FIELD)
 62  
 @XmlType(name = "textType", propOrder = {
 63  
     "content"
 64  
 })
 65  888
 public class TextType {
 66  
 
 67  
     @XmlMixed
 68  
     @XmlAnyElement(lax = true)
 69  
     protected List<Object> content;
 70  
     @XmlAttribute
 71  
     @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
 72  
     protected String type;
 73  
     @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
 74  
     @XmlSchemaType(name = "anyURI")
 75  
     protected String base;
 76  
     @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
 77  
     protected String lang;
 78  888
     @XmlAnyAttribute
 79  
     private Map<QName, String> otherAttributes = new HashMap<QName, String>();
 80  
 
 81  
     /**
 82  
      * 
 83  
      *                                 The Atom text construct is defined in section 3.1 of the format spec.
 84  
      *                         Gets the value of the content property.
 85  
      * 
 86  
      * <p>
 87  
      * This accessor method returns a reference to the live list,
 88  
      * not a snapshot. Therefore any modification you make to the
 89  
      * returned list will be present inside the JAXB object.
 90  
      * This is why there is not a <CODE>set</CODE> method for the content property.
 91  
      * 
 92  
      * <p>
 93  
      * For example, to add a new item, do as follows:
 94  
      * <pre>
 95  
      *    getContent().add(newItem);
 96  
      * </pre>
 97  
      * 
 98  
      * 
 99  
      * <p>
 100  
      * Objects of the following type(s) are allowed in the list
 101  
      * {@link Object }
 102  
      * {@link String }
 103  
      * 
 104  
      * 
 105  
      */
 106  
     public List<Object> getContent() {
 107  1101
         if (content == null) {
 108  213
             content = new ArrayList<Object>();
 109  
         }
 110  1101
         return this.content;
 111  
     }
 112  
 
 113  
     /**
 114  
      * Gets the value of the type property.
 115  
      * 
 116  
      * @return
 117  
      *     possible object is
 118  
      *     {@link String }
 119  
      *     
 120  
      */
 121  
     public String getType() {
 122  0
         return type;
 123  
     }
 124  
 
 125  
     /**
 126  
      * Sets the value of the type property.
 127  
      * 
 128  
      * @param value
 129  
      *     allowed object is
 130  
      *     {@link String }
 131  
      *     
 132  
      */
 133  
     public void setType(String value) {
 134  213
         this.type = value;
 135  213
     }
 136  
 
 137  
     /**
 138  
      * Gets the value of the base property.
 139  
      * 
 140  
      * @return
 141  
      *     possible object is
 142  
      *     {@link String }
 143  
      *     
 144  
      */
 145  
     public String getBase() {
 146  675
         return base;
 147  
     }
 148  
 
 149  
     /**
 150  
      * Sets the value of the base property.
 151  
      * 
 152  
      * @param value
 153  
      *     allowed object is
 154  
      *     {@link String }
 155  
      *     
 156  
      */
 157  
     public void setBase(String value) {
 158  213
         this.base = value;
 159  213
     }
 160  
 
 161  
     /**
 162  
      * Gets the value of the lang property.
 163  
      * 
 164  
      * @return
 165  
      *     possible object is
 166  
      *     {@link String }
 167  
      *     
 168  
      */
 169  
     public String getLang() {
 170  675
         return lang;
 171  
     }
 172  
 
 173  
     /**
 174  
      * Sets the value of the lang property.
 175  
      * 
 176  
      * @param value
 177  
      *     allowed object is
 178  
      *     {@link String }
 179  
      *     
 180  
      */
 181  
     public void setLang(String value) {
 182  213
         this.lang = value;
 183  213
     }
 184  
 
 185  
     /**
 186  
      * Gets a map that contains attributes that aren't bound to any typed property on this class.
 187  
      * 
 188  
      * <p>
 189  
      * the map is keyed by the name of the attribute and 
 190  
      * the value is the string value of the attribute.
 191  
      * 
 192  
      * the map returned by this method is live, and you can add new attribute
 193  
      * by updating the map directly. Because of this design, there's no setter.
 194  
      * 
 195  
      * 
 196  
      * @return
 197  
      *     always non-null
 198  
      */
 199  
     public Map<QName, String> getOtherAttributes() {
 200  888
         return otherAttributes;
 201  
     }
 202  
 
 203  
 }