< prev index next >

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

Print this page

      21  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
      22  *
      23  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
      24  * or visit www.oracle.com if you need additional information or have any
      25  * questions.
      26  */
      27 package com.sun.javatest.cof;
      28
      29 import java.util.ArrayList;
      30 import java.util.Date;
      31 import java.util.LinkedHashMap;
      32 import java.util.List;
      33
      34 public class Report extends COFItem {
      35         static final String COF_SCHEMA = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema";
      36
      37         static final String COF_SCHEMA_LOCATION = "http://hestia.sfbay.sun.com/projects/COF/2003/2_0_2/Schema/COF2_0_2.xsd";
      38
      39         static final String VERSION = "2.0.2";
      40
      41         static final LinkedHashMap xmlAttributes;
      42
      43         static final LinkedHashMap xmlElements;
      44
      45         static String xmlTagName;
      46
      47         private static final String XSI_NS = "http://www.w3.org/2001/XMLSchema-instance";
      48
      49         static {
      50                 xmlElements = new LinkedHashMap();
      51                 xmlAttributes = new LinkedHashMap();
      52                 xmlElements.put("date", "date");
      53                 xmlElements.put("version", "version");
      54                 xmlElements.put("environments", "environments");
      55                 xmlElements.put("swentities", "swentities");
      56                 xmlElements.put("applications", "applications");
      57                 xmlElements.put("operator", "operator");
      58                 xmlElements.put("harness", "harness");
      59                 xmlElements.put("testsuites", "testsuites");
      60                 xmlElements.put("annotations", "annotations");
      61                 xmlAttributes.put("xsiNS", "xmlns:xsi");
      62                 xmlAttributes.put("cofNS", "xmlns:cof");
      63                 xmlAttributes.put("targetNS", "xmlns");
      64                 xmlAttributes.put("schemaLocation", "xsi:schemaLocation");
      65                 xmlTagName = "report";
      66
      67         }
      68
      69         //    @XmlAttribute
      70         protected String analysis;
      71
      72         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      73         protected COFReportAnnotations annotations;
      74
      75         //    @XmlAnyElement
      76         protected List/*<Element>*/any;
      77
      78         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      79         protected COFApplications applications;
      80
      81         //  @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true, type = String.class)
      82         protected Date date;
      83
      84         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      85         protected COFEnvironments environments;
      86
      87         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema")
      88         protected String harness;
      89
      90         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema")
      91         protected String operator;
      92
      93         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema")
      94         protected COFSWEntities swentities;
      95
      96         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
     160          *
     161          * <p>
     162          * This accessor method returns a reference to the live list,
     163          * not a snapshot. Therefore any modification you make to the
     164          * returned list will be present inside the JAXB object.
     165          * This is why there is not a <CODE>set</CODE> method for the any property.
     166          *
     167          * <p>
     168          * For example, to add a new item, do as follows:
     169          * <pre>
     170          *    getAny().add(newItem);
     171          * </pre>
     172          *
     173          *
     174          * <p>
     175          * Objects of the following type(s) are allowed in the list
     176          * {@link Element }
     177          *
     178          *
     179          */
     180         public List/*<Element>*/getAny() {
     181                 if (any == null) {
     182                         any = new ArrayList/*<Element>*/();
     183                 }
     184                 return this.any;
     185         }
     186
     187         /**
     188          * Gets the value of the applications property.
     189          */
     190         public COFApplications getApplications() {
     191                 return applications;
     192         }
     193
     194         /**
     195          * @return Returns the cofNS.
     196          */
     197         public String getCofNS() {
     198                 return COF_SCHEMA;
     199         }
     200
     201         /**
     202          * Gets the value of the date property.
     219          *
     220          */
     221         public COFEnvironments getEnvironments() {
     222                 if (environments == null)
     223                         environments = new COFEnvironments();
     224                 return environments;
     225         }
     226
     227         /**
     228          * Gets the value of the harness property.
     229          *
     230          * @return
     231          *     possible object is
     232          *     {@link String }
     233          *
     234          */
     235         public String getHarness() {
     236                 return harness;
     237         }
     238
     239         LinkedHashMap getItemAttributes() {
     240                 return xmlAttributes;
     241         }
     242
     243         LinkedHashMap getItemElements() {
     244                 return xmlElements;
     245         }
     246
     247         String getItemTagName() {
     248                 return xmlTagName;
     249         }
     250
     251         /**
     252          * Gets the value of the operator property.
     253          *
     254          * @return
     255          *     possible object is
     256          *     {@link String }
     257          *
     258          */
     259         public String getOperator() {
     260                 return operator;
     261         }
     262
     263         /**
      21  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
      22  *
      23  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
      24  * or visit www.oracle.com if you need additional information or have any
      25  * questions.
      26  */
      27 package com.sun.javatest.cof;
      28
      29 import java.util.ArrayList;
      30 import java.util.Date;
      31 import java.util.LinkedHashMap;
      32 import java.util.List;
      33
      34 public class Report extends COFItem {
      35         static final String COF_SCHEMA = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema";
      36
      37         static final String COF_SCHEMA_LOCATION = "http://hestia.sfbay.sun.com/projects/COF/2003/2_0_2/Schema/COF2_0_2.xsd";
      38
      39         static final String VERSION = "2.0.2";
      40
      41         static final LinkedHashMap<String, String> xmlAttributes;
      42
      43         static final LinkedHashMap<String, String> xmlElements;
      44
      45         static String xmlTagName;
      46
      47         private static final String XSI_NS = "http://www.w3.org/2001/XMLSchema-instance";
      48
      49         static {
      50                 xmlElements = new LinkedHashMap<>();
      51                 xmlAttributes = new LinkedHashMap<>();
      52                 xmlElements.put("date", "date");
      53                 xmlElements.put("version", "version");
      54                 xmlElements.put("environments", "environments");
      55                 xmlElements.put("swentities", "swentities");
      56                 xmlElements.put("applications", "applications");
      57                 xmlElements.put("operator", "operator");
      58                 xmlElements.put("harness", "harness");
      59                 xmlElements.put("testsuites", "testsuites");
      60                 xmlElements.put("annotations", "annotations");
      61                 xmlAttributes.put("xsiNS", "xmlns:xsi");
      62                 xmlAttributes.put("cofNS", "xmlns:cof");
      63                 xmlAttributes.put("targetNS", "xmlns");
      64                 xmlAttributes.put("schemaLocation", "xsi:schemaLocation");
      65                 xmlTagName = "report";
      66
      67         }
      68
      69         //    @XmlAttribute
      70         protected String analysis;
      71
      72         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      73         protected COFReportAnnotations annotations;
      74
      75         //    @XmlAnyElement
      76         protected List<COFItem>any;
      77
      78         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      79         protected COFApplications applications;
      80
      81         //  @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true, type = String.class)
      82         protected Date date;
      83
      84         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      85         protected COFEnvironments environments;
      86
      87         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema")
      88         protected String harness;
      89
      90         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema")
      91         protected String operator;
      92
      93         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema")
      94         protected COFSWEntities swentities;
      95
      96         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
     160          *
     161          * <p>
     162          * This accessor method returns a reference to the live list,
     163          * not a snapshot. Therefore any modification you make to the
     164          * returned list will be present inside the JAXB object.
     165          * This is why there is not a <CODE>set</CODE> method for the any property.
     166          *
     167          * <p>
     168          * For example, to add a new item, do as follows:
     169          * <pre>
     170          *    getAny().add(newItem);
     171          * </pre>
     172          *
     173          *
     174          * <p>
     175          * Objects of the following type(s) are allowed in the list
     176          * {@link Element }
     177          *
     178          *
     179          */
     180         public List<COFItem>getAny() {
     181                 if (any == null) {
     182                         any = new ArrayList<>();
     183                 }
     184                 return this.any;
     185         }
     186
     187         /**
     188          * Gets the value of the applications property.
     189          */
     190         public COFApplications getApplications() {
     191                 return applications;
     192         }
     193
     194         /**
     195          * @return Returns the cofNS.
     196          */
     197         public String getCofNS() {
     198                 return COF_SCHEMA;
     199         }
     200
     201         /**
     202          * Gets the value of the date property.
     219          *
     220          */
     221         public COFEnvironments getEnvironments() {
     222                 if (environments == null)
     223                         environments = new COFEnvironments();
     224                 return environments;
     225         }
     226
     227         /**
     228          * Gets the value of the harness property.
     229          *
     230          * @return
     231          *     possible object is
     232          *     {@link String }
     233          *
     234          */
     235         public String getHarness() {
     236                 return harness;
     237         }
     238
     239         LinkedHashMap<String, String> getItemAttributes() {
     240                 return xmlAttributes;
     241         }
     242
     243         LinkedHashMap<String, String> getItemElements() {
     244                 return xmlElements;
     245         }
     246
     247         String getItemTagName() {
     248                 return xmlTagName;
     249         }
     250
     251         /**
     252          * Gets the value of the operator property.
     253          *
     254          * @return
     255          *     possible object is
     256          *     {@link String }
     257          *
     258          */
     259         public String getOperator() {
     260                 return operator;
     261         }
     262
     263         /**

< prev index next >