javacommons/utils/javasrc/com/nokia/mj/impl/utils/Id.java
changeset 48 e0d6e9bd3ca7
child 72 1f0034e370aa
equal deleted inserted replaced
47:f40128debb5d 48:e0d6e9bd3ca7
       
     1 /*
       
     2 * Copyright (c) 2010 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 "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.mj.impl.utils;
       
    20 
       
    21 /**
       
    22  * Localisation Identifier. This class is used to hide platform localisation
       
    23  * specifics.
       
    24  */
       
    25 public class Id
       
    26 {
       
    27     private String iAvkonLocString = null;
       
    28     private String iQtLocString = null;
       
    29 
       
    30     /**
       
    31      * Default constructor.
       
    32      */
       
    33     private Id()
       
    34     {
       
    35     }
       
    36 
       
    37     public Id(String aAvkonLocString, String aQtLocString)
       
    38     {
       
    39         this.iAvkonLocString = aAvkonLocString;
       
    40         this.iQtLocString = aQtLocString;
       
    41     }
       
    42 
       
    43     public String getString(int aPlatform)
       
    44     {
       
    45         if (aPlatform == ResourceLoader.QT)
       
    46         {
       
    47             return iQtLocString;
       
    48         }
       
    49         else
       
    50         {
       
    51             return iAvkonLocString;       
       
    52         }
       
    53     }     
       
    54 }