       1 /*
       2  * $Id$
       3  *
       4  * Copyright (c) 2006, 2009, Oracle and/or its affiliates. All rights reserved.
       5  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       6  *
       7  * This code is free software; you can redistribute it and/or modify it
       8  * under the terms of the GNU General Public License version 2 only, as
       9  * published by the Free Software Foundation.  Oracle designates this
      10  * particular file as subject to the "Classpath" exception as provided
      11  * by Oracle in the LICENSE file that accompanied this code.
      12  *
      13  * This code is distributed in the hope that it will be useful, but WITHOUT
      14  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
      15  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
      16  * version 2 for more details (a copy is included in the LICENSE file that
      17  * accompanied this code).
      18  *
      19  * You should have received a copy of the GNU General Public License version
      20  * 2 along with this work; if not, write to the Free Software Foundation,
      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.LinkedHashMap;
      30
      31 /*import javax.xml.bind.annotation.XmlAccessType;
      32 import javax.xml.bind.annotation.XmlAccessorType;
      33 import javax.xml.bind.annotation.XmlAttribute;
      34 import javax.xml.bind.annotation.XmlElement;
      35 import javax.xml.bind.annotation.XmlType;*/
      36
      37
      38 /**
      39  *
      40  *         Actual elements contain text that refers to an actual value.
      41  *         This can be anything. A header, value, body, ..... If the tag
      42  *         log appears, it may be understood that a URL of a log file will
      43  *         appear as the PCDATA for this tag. If present, that URL uses
      44  *         either http or file protocol. If http protocol, the server name
      45  *         will be fully qualified. If file protocol, the full path
      46  *         beginning with /net will be expected. Microsoft file mapping or
      47  *         Unix automounts should not be used.
      48  * <p>Java class for Status complex type.
      49  *
      50  * <p>The following schema fragment specifies the expected content contained within this class.
      51  *
      52  * <pre>
      53  * &lt;complexType name="Status">
      54  *   &lt;complexContent>
      55  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      56  *       &lt;sequence minOccurs="0">
      57  *         &lt;element name="expected" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
      58  *         &lt;element name="actual" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
      59  *       &lt;/sequence>
      60  *       &lt;attribute name="value" use="required">
      61  *         &lt;simpleType>
      62  *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
      63  *             &lt;enumeration value="pass"/>
      64  *             &lt;enumeration value="fail"/>
      65  *             &lt;enumeration value="ambiguous"/>
      66  *             &lt;enumeration value="error"/>
      67  *             &lt;enumeration value="vm_fail"/>
      68  *             &lt;enumeration value="did_not_run"/>
      69  *           &lt;/restriction>
      70  *         &lt;/simpleType>
      71  *       &lt;/attribute>
      72  *     &lt;/restriction>
      73  *   &lt;/complexContent>
      74  * &lt;/complexType>
      75  * </pre>
      76  */
      77 /*@XmlAccessorType(XmlAccessType.FIELD)
      78 @XmlType(name = "Status", propOrder = {
      79     "expected",
      80     "actual"
      81 })*/
      82 public class COFStatus extends COFItem{
      83
      84 static LinkedHashMap xmlAttributes;
      85 static LinkedHashMap xmlElements;
      86 static String xmlTagName;
      87
      88     static {
      89                 xmlElements = new LinkedHashMap();
      90                 xmlAttributes = new LinkedHashMap();
      91                 xmlElements.put("expected","expected");
      92                 xmlElements.put("actual","actual");
      93                 xmlAttributes.put("value","value");
      94                 xmlTagName = "status";
      95         }
      96
      97         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema")
      98     protected String actual;
      99
     100         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema")
     101     protected String expected;
     102
     103         //    @XmlAttribute(required = true)
     104     protected String value;
     105
     106         /**
     107      * Gets the value of the actual property.
     108      *
     109      * @return
     110      *     possible object is
     111      *     {@link String }
     112      *
     113      */
     114     public String getActual() {
     115         return actual;
     116     }
     117
     118         /**
     119      * Gets the value of the expected property.
     120      *
     121      * @return
     122      *     possible object is
     123      *     {@link String }
     124      *
     125      */
     126     public String getExpected() {
     127         return expected;
     128     }
     129     LinkedHashMap getItemAttributes() {
     130                 return xmlAttributes;
     131         }
     132
     133         LinkedHashMap getItemElements() {
     134                 return xmlElements;
     135         }
     136
     137     String getItemTagName() {
     138                 return xmlTagName;
     139         }
     140
     141     /**
     142      * Gets the value of the value property.
     143      *
     144      * @return
     145      *     possible object is
     146      *     {@link String }
     147      *
     148      */
     149     public String getValue() {
     150         return value;
     151     }
     152
     153     /**
     154      * Sets the value of the actual property.
     155      *
     156      * @param value
     157      *     allowed object is
     158      *     {@link String }
     159      *
     160      */
     161     public void setActual(String value) {
     162         this.actual = value;
     163     }
     164
     165     /**
     166      * Sets the value of the expected property.
     167      *
     168      * @param value
     169      *     allowed object is
     170      *     {@link String }
     171      *
     172      */
     173     public void setExpected(String value) {
     174         this.expected = value;
     175     }
     176
     177     /**
     178      * Sets the value of the value property.
     179      *
     180      * @param value
     181      *     allowed object is
     182      *     {@link String }
     183      *
     184      */
     185     public void setValue(String value) {
     186         this.value = value;
     187     }
     188
     189 }