< prev index next >

## src/com/sun/javatest/cof/COFTestSuites.java

Print this page

      42  * <pre>
      43  * &lt;complexType name="TestSuites">
      44  *   &lt;complexContent>
      45  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      46  *       &lt;sequence>
      47  *         &lt;element name="testsuite" type="{http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema}TestSuite" maxOccurs="unbounded"/>
      48  *       &lt;/sequence>
      49  *     &lt;/restriction>
      50  *   &lt;/complexContent>
      51  * &lt;/complexType>
      52  * </pre>
      53  *
      54  *
      55  */
      56 /*@XmlAccessorType(XmlAccessType.FIELD)
      57 @XmlType(name = "TestSuites", propOrder = {
      58     "testsuite"
      59 })*/
      60 public class COFTestSuites extends COFItem{
      61
      62 static LinkedHashMap xmlAttributes;
      63
      64         static LinkedHashMap xmlElements;
      65
      66         static String xmlTagName;
      67
      68         static {
      69         xmlElements = new LinkedHashMap();
      70         xmlElements.put("testsuite", "testsuite");
      71         xmlTagName = "testsuites";
      72     }
      73
      74         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      75     protected List/*<COFTestSuite>*/ testsuite;
      76
      77         LinkedHashMap getItemAttributes() {
      78                 return xmlAttributes;
      79         }
      80
      81         LinkedHashMap getItemElements() {
      82                 return xmlElements;
      83         }
      84
      85     String getItemTagName() {
      86                 return xmlTagName;
      87         }
      88
      89     /**
      90      * Gets the value of the testsuite property.
      91      *
      92      * <p>
      93      * This accessor method returns a reference to the live list,
      94      * not a snapshot. Therefore any modification you make to the
      95      * returned list will be present inside the JAXB object.
      96      * This is why there is not a <CODE>set</CODE> method for the testsuite property.
      97      *
      98      * <p>
      99      * For example, to add a new item, do as follows:
     100      * <pre>
     101      *    getTestsuite().add(newItem);
     102      * </pre>
     103      *
     104      *
     105      * <p>
     106      * Objects of the following type(s) are allowed in the list
     107      * {@link COFTestSuite }
     108      *
     109      *
     110      */
     111     public List/*<COFTestSuite>*/ getTestsuite() {
     112         if (testsuite == null) {
     113             testsuite = new ArrayList/*<COFTestSuite>*/();
     114         }
     115         return this.testsuite;
     116     }
     117
     118         /* (non-Javadoc)
     119          * @see com.sun.javatest.cof.COFItem#write(com.sun.javatest.util.XMLWriter)
     120          */
     121         void write(XMLWriter out) throws IOException {
     122                 out.newLine();
     123                 super.write(out);
     124                 out.newLine();
     125         }
     126 }
      42  * <pre>
      43  * &lt;complexType name="TestSuites">
      44  *   &lt;complexContent>
      45  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      46  *       &lt;sequence>
      47  *         &lt;element name="testsuite" type="{http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema}TestSuite" maxOccurs="unbounded"/>
      48  *       &lt;/sequence>
      49  *     &lt;/restriction>
      50  *   &lt;/complexContent>
      51  * &lt;/complexType>
      52  * </pre>
      53  *
      54  *
      55  */
      56 /*@XmlAccessorType(XmlAccessType.FIELD)
      57 @XmlType(name = "TestSuites", propOrder = {
      58     "testsuite"
      59 })*/
      60 public class COFTestSuites extends COFItem{
      61
      62 static LinkedHashMap<String, String> xmlAttributes;
      63
      64         static LinkedHashMap<String, String> xmlElements;
      65
      66         static String xmlTagName;
      67
      68         static {
      69         xmlElements = new LinkedHashMap<>();
      70         xmlElements.put("testsuite", "testsuite");
      71         xmlTagName = "testsuites";
      72     }
      73
      74         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      75     protected List<COFTestSuite> testsuite;
      76
      77         LinkedHashMap<String, String> getItemAttributes() {
      78                 return xmlAttributes;
      79         }
      80
      81         LinkedHashMap<String, String> getItemElements() {
      82                 return xmlElements;
      83         }
      84
      85     String getItemTagName() {
      86                 return xmlTagName;
      87         }
      88
      89     /**
      90      * Gets the value of the testsuite property.
      91      *
      92      * <p>
      93      * This accessor method returns a reference to the live list,
      94      * not a snapshot. Therefore any modification you make to the
      95      * returned list will be present inside the JAXB object.
      96      * This is why there is not a <CODE>set</CODE> method for the testsuite property.
      97      *
      98      * <p>
      99      * For example, to add a new item, do as follows:
     100      * <pre>
     101      *    getTestsuite().add(newItem);
     102      * </pre>
     103      *
     104      *
     105      * <p>
     106      * Objects of the following type(s) are allowed in the list
     107      * {@link COFTestSuite }
     108      *
     109      *
     110      */
     111     public List<COFTestSuite> getTestsuite() {
     112         if (testsuite == null) {
     113             testsuite = new ArrayList<>();
     114         }
     115         return this.testsuite;
     116     }
     117
     118         /* (non-Javadoc)
     119          * @see com.sun.javatest.cof.COFItem#write(com.sun.javatest.util.XMLWriter)
     120          */
     121         void write(XMLWriter out) throws IOException {
     122                 out.newLine();
     123                 super.write(out);
     124                 out.newLine();
     125         }
     126 }

< prev index next >