buildframework/helium/tools/common/java/src/com/nokia/ant/types/imaker/VariableSet.java
changeset 179 d8ac696cc51f
parent 1 be27ed110b50
child 180 e02a83d4c571
child 592 3215c239276a
equal deleted inserted replaced
1:be27ed110b50 179:d8ac696cc51f
     1 /*
       
     2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17  
       
    18 package com.nokia.ant.types.imaker;
       
    19 import org.apache.tools.ant.types.DataType;
       
    20 import java.util.Vector;
       
    21 
       
    22 /**
       
    23  * This object stores a set of Variable object.
       
    24  * @ant.type name="variableset" category="Imaker"
       
    25  */
       
    26 public class VariableSet extends DataType {
       
    27     
       
    28     private Vector variables = new Vector();
       
    29     
       
    30     public VariableSet() {
       
    31     }    
       
    32 
       
    33     /**
       
    34      * Creates a Variable object.
       
    35      * @return a Variable object.
       
    36      */
       
    37     public Variable createVariable() {
       
    38         Variable var =  new Variable();
       
    39         add(var);
       
    40         return var;
       
    41     }
       
    42     
       
    43     /**
       
    44      * Support the addition of a Variable object.
       
    45      * @param a Variable object.
       
    46      */
       
    47     public void add(Variable var) {
       
    48         variables.add(var);
       
    49     }
       
    50     
       
    51     /**
       
    52      * Get the list of Variable object.
       
    53      * @return a vector of Variable objects
       
    54      */
       
    55     public Vector getVariables() {
       
    56         return variables;
       
    57     }
       
    58     
       
    59 }