Coverage Report - org.xmlhammer.model.project.Input
 
Classes in this File Line Coverage Branch Coverage Complexity
Input
100% 
100% 
0
 
 1  
 //
 2  
 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-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: 2007.09.26 at 09:37:45 PM IST 
 6  
 //
 7  
 
 8  
 
 9  
 package org.xmlhammer.model.project;
 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.XmlElement;
 16  
 import javax.xml.bind.annotation.XmlElements;
 17  
 import javax.xml.bind.annotation.XmlRootElement;
 18  
 import javax.xml.bind.annotation.XmlType;
 19  
 
 20  
 
 21  
 /**
 22  
  * <p>Java class for input element declaration.
 23  
  * 
 24  
  * <p>The following schema fragment specifies the expected content contained within this class.
 25  
  * 
 26  
  * <pre>
 27  
  * &lt;element name="input">
 28  
  *   &lt;complexType>
 29  
  *     &lt;complexContent>
 30  
  *       &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 31  
  *         &lt;choice>
 32  
  *           &lt;element ref="{http://www.xmlhammer.org/2007/project}filter"/>
 33  
  *           &lt;sequence maxOccurs="unbounded">
 34  
  *             &lt;choice>
 35  
  *               &lt;sequence>
 36  
  *                 &lt;element ref="{http://www.xmlhammer.org/2007/project}source"/>
 37  
  *               &lt;/sequence>
 38  
  *               &lt;sequence>
 39  
  *                 &lt;element ref="{http://www.xmlhammer.org/2007/project}source"/>
 40  
  *                 &lt;element ref="{http://www.xmlhammer.org/2007/project}result"/>
 41  
  *               &lt;/sequence>
 42  
  *             &lt;/choice>
 43  
  *           &lt;/sequence>
 44  
  *         &lt;/choice>
 45  
  *       &lt;/restriction>
 46  
  *     &lt;/complexContent>
 47  
  *   &lt;/complexType>
 48  
  * &lt;/element>
 49  
  * </pre>
 50  
  * 
 51  
  * 
 52  
  */
 53  
 @XmlAccessorType(XmlAccessType.FIELD)
 54  
 @XmlType(name = "", propOrder = {
 55  
     "filter",
 56  
     "sourceOrSourceAndResult"
 57  
 })
 58  
 @XmlRootElement(name = "input")
 59  3080
 public class Input {
 60  
 
 61  
     @XmlElement(namespace = "http://www.xmlhammer.org/2007/project")
 62  
     protected Filter filter;
 63  
     @XmlElements({
 64  
         @XmlElement(name = "result", namespace = "http://www.xmlhammer.org/2007/project", required = true, type = Result.class),
 65  
         @XmlElement(name = "source", namespace = "http://www.xmlhammer.org/2007/project", required = true, type = Source.class)
 66  
     })
 67  
     protected List<Document> sourceOrSourceAndResult;
 68  
 
 69  
     /**
 70  
      * Gets the value of the filter property.
 71  
      * 
 72  
      * @return
 73  
      *     possible object is
 74  
      *     {@link Filter }
 75  
      *     
 76  
      */
 77  
     public Filter getFilter() {
 78  3300
         return filter;
 79  
     }
 80  
 
 81  
     /**
 82  
      * Sets the value of the filter property.
 83  
      * 
 84  
      * @param value
 85  
      *     allowed object is
 86  
      *     {@link Filter }
 87  
      *     
 88  
      */
 89  
     public void setFilter(Filter value) {
 90  308
         this.filter = value;
 91  308
     }
 92  
 
 93  
     /**
 94  
      * Gets the value of the sourceOrSourceAndResult property.
 95  
      * 
 96  
      * <p>
 97  
      * This accessor method returns a reference to the live list,
 98  
      * not a snapshot. Therefore any modification you make to the
 99  
      * returned list will be present inside the JAXB object.
 100  
      * This is why there is not a <CODE>set</CODE> method for the sourceOrSourceAndResult property.
 101  
      * 
 102  
      * <p>
 103  
      * For example, to add a new item, do as follows:
 104  
      * <pre>
 105  
      *    getSourceOrSourceAndResult().add(newItem);
 106  
      * </pre>
 107  
      * 
 108  
      * 
 109  
      * <p>
 110  
      * Objects of the following type(s) are allowed in the list
 111  
      * {@link Result }
 112  
      * {@link Source }
 113  
      * 
 114  
      * 
 115  
      */
 116  
     public List<Document> getSourceOrSourceAndResult() {
 117  5236
         if (sourceOrSourceAndResult == null) {
 118  1980
             sourceOrSourceAndResult = new ArrayList<Document>();
 119  
         }
 120  5236
         return this.sourceOrSourceAndResult;
 121  
     }
 122  
 
 123  
 }