Coverage Report - org.simject.jaxb.Resource
 
Classes in this File Line Coverage Branch Coverage Complexity
Resource
46%
6/13
50%
1/2
0
 
 1  
 //
 2  
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-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.08.27 at 04:18:43 PM CEST 
 6  
 //
 7  
 
 8  
 
 9  
 package org.simject.jaxb;
 10  
 
 11  
 import java.util.ArrayList;
 12  
 import java.util.List;
 13  
 import javax.xml.bind.annotation.XmlAccessType;
 14  
 import javax.xml.bind.annotation.XmlAccessorType;
 15  
 import javax.xml.bind.annotation.XmlAttribute;
 16  
 import javax.xml.bind.annotation.XmlType;
 17  
 
 18  
 
 19  
 /**
 20  
  * <p>Java class for resource complex type.
 21  
  * 
 22  
  * <p>The following schema fragment specifies the expected content contained within this class.
 23  
  * 
 24  
  * <pre>
 25  
  * &lt;complexType name="resource">
 26  
  *   &lt;complexContent>
 27  
  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 28  
  *       &lt;sequence>
 29  
  *         &lt;element name="property" type="{http://simject.org/xml/ns/resources}property" maxOccurs="unbounded" minOccurs="0"/>
 30  
  *       &lt;/sequence>
 31  
  *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
 32  
  *       &lt;attribute name="target" type="{http://www.w3.org/2001/XMLSchema}string" />
 33  
  *       &lt;attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 34  
  *     &lt;/restriction>
 35  
  *   &lt;/complexContent>
 36  
  * &lt;/complexType>
 37  
  * </pre>
 38  
  * 
 39  
  * 
 40  
  */
 41  
 @XmlAccessorType(XmlAccessType.FIELD)
 42  
 @XmlType(name = "resource", propOrder = {
 43  
     "property"
 44  
 })
 45  24
 public class Resource {
 46  
 
 47  
     protected List<Property> property;
 48  
     @XmlAttribute
 49  
     protected String name;
 50  
     @XmlAttribute
 51  
     protected String target;
 52  
     @XmlAttribute(required = true)
 53  
     protected String type;
 54  
 
 55  
     /**
 56  
      * Gets the value of the property property.
 57  
      * 
 58  
      * <p>
 59  
      * This accessor method returns a reference to the live list,
 60  
      * not a snapshot. Therefore any modification you make to the
 61  
      * returned list will be present inside the JAXB object.
 62  
      * This is why there is not a <CODE>set</CODE> method for the property property.
 63  
      * 
 64  
      * <p>
 65  
      * For example, to add a new item, do as follows:
 66  
      * <pre>
 67  
      *    getProperty().add(newItem);
 68  
      * </pre>
 69  
      * 
 70  
      * 
 71  
      * <p>
 72  
      * Objects of the following type(s) are allowed in the list
 73  
      * {@link Property }
 74  
      * 
 75  
      * 
 76  
      */
 77  
     public List<Property> getProperty() {
 78  6
         if (property == null) {
 79  0
             property = new ArrayList<Property>();
 80  
         }
 81  6
         return this.property;
 82  
     }
 83  
 
 84  
     /**
 85  
      * Gets the value of the name property.
 86  
      * 
 87  
      * @return
 88  
      *     possible object is
 89  
      *     {@link String }
 90  
      *     
 91  
      */
 92  
     public String getName() {
 93  6
         return name;
 94  
     }
 95  
 
 96  
     /**
 97  
      * Sets the value of the name property.
 98  
      * 
 99  
      * @param value
 100  
      *     allowed object is
 101  
      *     {@link String }
 102  
      *     
 103  
      */
 104  
     public void setName(String value) {
 105  0
         this.name = value;
 106  0
     }
 107  
 
 108  
     /**
 109  
      * Gets the value of the target property.
 110  
      * 
 111  
      * @return
 112  
      *     possible object is
 113  
      *     {@link String }
 114  
      *     
 115  
      */
 116  
     public String getTarget() {
 117  66
         return target;
 118  
     }
 119  
 
 120  
     /**
 121  
      * Sets the value of the target property.
 122  
      * 
 123  
      * @param value
 124  
      *     allowed object is
 125  
      *     {@link String }
 126  
      *     
 127  
      */
 128  
     public void setTarget(String value) {
 129  0
         this.target = value;
 130  0
     }
 131  
 
 132  
     /**
 133  
      * Gets the value of the type property.
 134  
      * 
 135  
      * @return
 136  
      *     possible object is
 137  
      *     {@link String }
 138  
      *     
 139  
      */
 140  
     public String getType() {
 141  66
         return type;
 142  
     }
 143  
 
 144  
     /**
 145  
      * Sets the value of the type property.
 146  
      * 
 147  
      * @param value
 148  
      *     allowed object is
 149  
      *     {@link String }
 150  
      *     
 151  
      */
 152  
     public void setType(String value) {
 153  0
         this.type = value;
 154  0
     }
 155  
 
 156  
 }