       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
      32 /**
      33  *
      34  *         OS name elements use the property os.name. OS version elements
      35  *         use the property os.version. OS arch elements use the property
      36  *         os.arch.
      37  *
      38  *
      39  * <p>Java class for OS complex type.
      40  *
      41  * <p>The following schema fragment specifies the expected content contained within this class.
      42  *
      43  * <pre>
      44  * &lt;complexType name="OS">
      45  *   &lt;complexContent>
      46  *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
      47  *       &lt;sequence>
      48  *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
      49  *         &lt;element name="version" type="{http://www.w3.org/2001/XMLSchema}string"/>
      50  *         &lt;element name="arch" type="{http://www.w3.org/2001/XMLSchema}string"/>
      51  *       &lt;/sequence>
      52  *     &lt;/restriction>
      53  *   &lt;/complexContent>
      54  * &lt;/complexType>
      55  * </pre>
      56  *
      57  *
      58  */
      59 public class COFOS extends COFItem{
      60
      61 static final String [] propOrder = {
      62         "name",
      63         "version",
      64         "arch"
      65     };
      66 static final String [] tags = {
      67         "name",
      68         "version",
      69         "arch"
      70     };
      71 static LinkedHashMap xmlAttributes;
      72
      73     static LinkedHashMap xmlElements;
      74
      75     static String xmlTagName;
      76
      77     static {
      78         xmlElements = new LinkedHashMap();
      79         for (int i = 0;i<propOrder.length;i++) {
      80             xmlElements.put(propOrder[i], tags[i]);
      81         }
      82         xmlTagName = "os";
      83         }
      84
      85         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      86     protected String arch;
      87
      88         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      89     protected String name;
      90
      91         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      92     protected String version;
      93
      94         /**
      95      * Gets the value of the arch property.
      96      *
      97      * @return
      98      *     possible object is
      99      *     {@link String }
     100      *
     101      */
     102     public String getArch() {
     103         return arch;
     104     }
     105
     106         LinkedHashMap getItemAttributes() {
     107                 return xmlAttributes;
     108         }
     109     LinkedHashMap getItemElements() {
     110                 return xmlElements;
     111         }
     112
     113         String getItemTagName() {
     114                 return xmlTagName;
     115         }
     116
     117     /**
     118      * Gets the value of the name property.
     119      *
     120      * @return
     121      *     possible object is
     122      *     {@link String }
     123      *
     124      */
     125     public String getName() {
     126         return name;
     127     }
     128
     129     /**
     130      * Gets the value of the version property.
     131      *
     132      * @return
     133      *     possible object is
     134      *     {@link String }
     135      *
     136      */
     137     public String getVersion() {
     138         return version;
     139     }
     140
     141     /**
     142      * Sets the value of the arch property.
     143      *
     144      * @param value
     145      *     allowed object is
     146      *     {@link String }
     147      *
     148      */
     149     public void setArch(String value) {
     150         this.arch = value;
     151     }
     152
     153     /**
     154      * Sets the value of the name property.
     155      *
     156      * @param value
     157      *     allowed object is
     158      *     {@link String }
     159      *
     160      */
     161     public void setName(String value) {
     162         this.name = value;
     163     }
     164
     165     /**
     166      * Sets the value of the version property.
     167      *
     168      * @param value
     169      *     allowed object is
     170      *     {@link String }
     171      *
     172      */
     173     public void setVersion(String value) {
     174         this.version = value;
     175     }
     176
     177
     178 }
    --- EOF ---