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