       1 /*
       2  * $Id$
       3  *
       4  * Copyright (c) 2010, 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 public class COFApplication extends COFItem {
      32         static LinkedHashMap<String, String> xmlAttributes;
      33         static LinkedHashMap<String, String> xmlElements;
      34         static String xmlTagName;
      35         static {
      36                 xmlTagName = "application";
      37                 xmlAttributes = new LinkedHashMap<>();
      38                 xmlAttributes.put("id", "id");
      39                 xmlAttributes.put("environmentid", "environmentid");
      40                 xmlAttributes.put("swentityid", "swentityid");
      41         }
      42
      43         protected String id = "app:0";
      44
      45         protected String environmentid="env:0";
      46
      47         protected String swentityid = "swentity:0";
      48
      49         /**
      50          * Gets the value of the id property.
      51          *
      52          * @return possible object is {@link String }
      53          *
      54          */
      55         public String getId() {
      56                 return id;
      57         }
      58
      59         LinkedHashMap<String, String> getItemAttributes() {
      60                 return xmlAttributes;
      61         }
      62
      63         LinkedHashMap<String, String> getItemElements() {
      64                 return xmlElements;
      65         }
      66
      67         String getItemTagName() {
      68                 return xmlTagName;
      69         }
      70
      71         public void setId(String value) {
      72                 this.id = value;
      73         }
      74
      75         public String getEnvironmentid() {
      76                 return environmentid;
      77         }
      78
      79         public void setEnvironmentid(String environmentid) {
      80                 this.environmentid = environmentid;
      81         }
      82
      83         public String getSwentityid() {
      84                 return swentityid;
      85         }
      86
      87         public void setSwentityid(String swentityid) {
      88                 this.swentityid = swentityid;
      89         }
      90
      91         /**
      92          * Sets the value of the name property.
      93          *
      94          * @param value
      95          *            allowed object is {@link String }
      96          *
      97          */
      98
      99 }
    --- EOF ---