buildframework/helium/sf/java/diamonds/src/com/nokia/helium/diamonds/Stage.java
changeset 628 7c4a911dc066
parent 588 c7c26511138f
child 629 541af5ee3ed9
equal deleted inserted replaced
588:c7c26511138f 628:7c4a911dc066
     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 
       
    19 package com.nokia.helium.diamonds;
       
    20 
       
    21 /**
       
    22  * Helper class for Stage configuration of Diamonds.
       
    23  * 
       
    24  */
       
    25 public class Stage {
       
    26     private String stageName;
       
    27     private String startTargetName;
       
    28     private String endTargetName;
       
    29     private String source;
       
    30 
       
    31     /**
       
    32      * Constructor
       
    33      * 
       
    34      * @param stName
       
    35      *            - name of the stage
       
    36      * @param startTgName
       
    37      *            - Name of the start target
       
    38      * @param endTgName
       
    39      *            - Name of the ending target of the stage
       
    40      */
       
    41     public Stage(String stName, String startTgName, String endTgName,
       
    42             String sourceFiles) {
       
    43         String emptyString = "";
       
    44         if (!stName.equals(emptyString)) {
       
    45             stageName = stName;
       
    46         }
       
    47         if (!startTgName.equals(emptyString)) {
       
    48             startTargetName = startTgName;
       
    49         }
       
    50         if (!endTgName.equals(emptyString)) {
       
    51             endTargetName = endTgName;
       
    52         }
       
    53         if (!sourceFiles.equals(emptyString)) {
       
    54             source = sourceFiles;
       
    55         }
       
    56     }
       
    57 
       
    58     /**
       
    59      * Get the stage Name of the stage.
       
    60      * 
       
    61      * @return - name of the stage
       
    62      */
       
    63     public String getStageName() {
       
    64         return stageName;
       
    65     }
       
    66 
       
    67     /**
       
    68      * Get the stage Name of the stage.
       
    69      * 
       
    70      * @return - name of the stage
       
    71      */
       
    72     public String getSourceFile() {
       
    73         return source;
       
    74     }
       
    75 
       
    76     /**
       
    77      * gets the start target of the stage
       
    78      * 
       
    79      * @return - start target of the stage
       
    80      */
       
    81     public String getStartTargetName() {
       
    82         return startTargetName;
       
    83     }
       
    84 
       
    85     /**
       
    86      * gets the end target name of the stage.
       
    87      * 
       
    88      * @return - end target name of the stage
       
    89      */
       
    90     public String getEndTargetName() {
       
    91         return endTargetName;
       
    92     }
       
    93 }