< prev index next >

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

Print this page

      73  *       &lt;attribute name="id" use="required" type="{http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema}IDWithColon" />
      74  *     &lt;/restriction>
      75  *   &lt;/complexContent>
      76  * &lt;/complexType>
      77  * </pre>
      78  *
      79  *
      80  */
      81 /*@XmlAccessorType(XmlAccessType.FIELD)
      82  @XmlType(name = "TestCase", propOrder = {
      83  "name",
      84  "status",
      85  "starttime",
      86  "endtime",
      87  "attributes",
      88  "description"
      89  })*/
      90 public class COFTestCase extends COFItem {
      91         static long count = 0;
      92
      93         static LinkedHashMap xmlAttributes;
      94
      95         static LinkedHashMap xmlElements;
      96
      97         static String xmlTagName;
      98
      99         static {
     100                 xmlTagName = "testcase";
     101                 xmlElements = new LinkedHashMap();
     102                 xmlElements.put("name", "name");
     103                 xmlElements.put("status", "status");
     104                 xmlElements.put("starttime", "starttime");
     105                 xmlElements.put("endtime", "endtime");
     106                 xmlElements.put("attributes", "attributes");
     107                 xmlElements.put("description", "description");
     108                 xmlAttributes = new LinkedHashMap();
     109                 xmlAttributes.put("id", "id");
     110 //              xmlAttributes.put("analysis", "analysis");
     111         }
     112
     113         //    @XmlAttribute
     114         protected String analysis;
     115
     116         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema")
     117         protected COFTestAttributes attributes;
     118
     119         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema")
     120         protected String description;
     121
     122         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", type = String.class)
     123         //    @XmlJavaTypeAdapter(Adapter1 .class)
     124         protected Date endtime;
     125
     126         //    @XmlAttribute(required = true)
     127         protected String id;
     128
     185          *     possible object is
     186          *     {@link String }
     187          *
     188          */
     189         public Date getEndtime() {
     190                 return endtime;
     191         }
     192
     193         /**
     194          * Gets the value of the id property.
     195          *
     196          * @return
     197          *     possible object is
     198          *     {@link String }
     199          *
     200          */
     201         public String getId() {
     202                 return name + ":" + idNum;
     203         }
     204
     205         LinkedHashMap getItemAttributes() {
     206                 return xmlAttributes;
     207         }
     208
     209         LinkedHashMap getItemElements() {
     210                 return xmlElements;
     211         }
     212
     213         String getItemTagName() {
     214                 return xmlTagName;
     215         }
     216
     217         /**
     218          * Gets the value of the name property.
     219          *
     220          * @return
     221          *     possible object is
     222          *     {@link String }
     223          *
     224          */
     225         public String getName() {
     226                 return name;
     227         }
     228
     229         /**
      73  *       &lt;attribute name="id" use="required" type="{http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema}IDWithColon" />
      74  *     &lt;/restriction>
      75  *   &lt;/complexContent>
      76  * &lt;/complexType>
      77  * </pre>
      78  *
      79  *
      80  */
      81 /*@XmlAccessorType(XmlAccessType.FIELD)
      82  @XmlType(name = "TestCase", propOrder = {
      83  "name",
      84  "status",
      85  "starttime",
      86  "endtime",
      87  "attributes",
      88  "description"
      89  })*/
      90 public class COFTestCase extends COFItem {
      91         static long count = 0;
      92
      93         static LinkedHashMap<String, String> xmlAttributes;
      94
      95         static LinkedHashMap<String, String> xmlElements;
      96
      97         static String xmlTagName;
      98
      99         static {
     100                 xmlTagName = "testcase";
     101                 xmlElements = new LinkedHashMap<>();
     102                 xmlElements.put("name", "name");
     103                 xmlElements.put("status", "status");
     104                 xmlElements.put("starttime", "starttime");
     105                 xmlElements.put("endtime", "endtime");
     106                 xmlElements.put("attributes", "attributes");
     107                 xmlElements.put("description", "description");
     108                 xmlAttributes = new LinkedHashMap<>();
     109                 xmlAttributes.put("id", "id");
     110 //              xmlAttributes.put("analysis", "analysis");
     111         }
     112
     113         //    @XmlAttribute
     114         protected String analysis;
     115
     116         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema")
     117         protected COFTestAttributes attributes;
     118
     119         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema")
     120         protected String description;
     121
     122         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", type = String.class)
     123         //    @XmlJavaTypeAdapter(Adapter1 .class)
     124         protected Date endtime;
     125
     126         //    @XmlAttribute(required = true)
     127         protected String id;
     128
     185          *     possible object is
     186          *     {@link String }
     187          *
     188          */
     189         public Date getEndtime() {
     190                 return endtime;
     191         }
     192
     193         /**
     194          * Gets the value of the id property.
     195          *
     196          * @return
     197          *     possible object is
     198          *     {@link String }
     199          *
     200          */
     201         public String getId() {
     202                 return name + ":" + idNum;
     203         }
     204
     205         LinkedHashMap<String, String> getItemAttributes() {
     206                 return xmlAttributes;
     207         }
     208
     209         LinkedHashMap<String, String> getItemElements() {
     210                 return xmlElements;
     211         }
     212
     213         String getItemTagName() {
     214                 return xmlTagName;
     215         }
     216
     217         /**
     218          * Gets the value of the name property.
     219          *
     220          * @return
     221          *     possible object is
     222          *     {@link String }
     223          *
     224          */
     225         public String getName() {
     226                 return name;
     227         }
     228
     229         /**

< prev index next >