       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.ArrayList;
      30 import java.util.LinkedHashMap;
      31 import java.util.List;
      32
      33
      34 public class COFApplications extends COFItem {
      35
      36 static LinkedHashMap xmlAttributes;
      37
      38     static LinkedHashMap xmlElements;
      39
      40         static String xmlTagName;
      41
      42         static  {
      43         xmlElements = new LinkedHashMap();
      44         xmlElements.put("application", "application");
      45         xmlTagName = "applications";
      46     }
      47
      48         //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
      49     protected List  application;
      50
      51         LinkedHashMap getItemAttributes() {
      52                 return xmlAttributes;
      53         }
      54
      55         LinkedHashMap getItemElements() {
      56                 return xmlElements;
      57         }
      58     String getItemTagName() {
      59                 return xmlTagName;
      60         }
      61
      62     public List getApplication() {
      63         if (application == null) {
      64             application = new ArrayList();
      65         }
      66         return this.application;
      67     }
      68
      69 }