javacommons/utils/javasrc/com/nokia/mj/impl/utils/Id.java
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 00:10:53 +0300
changeset 79 2f468c1958d0
parent 48 e0d6e9bd3ca7
child 80 d6dafc5d983f
permissions -rw-r--r--
Revision: v2.2.15 Kit: 201039

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/


package com.nokia.mj.impl.utils;

/**
 * Localisation Identifier. This class is used to hide platform localisation
 * specifics.
 */
public class Id
{
    private String iAvkonLocString = null;
    private String iQtLocString = null;

    /**
     * Default constructor.
     */
    private Id()
    {
    }

    public Id(String aAvkonLocString, String aQtLocString)
    {
        this.iAvkonLocString = aAvkonLocString;
        this.iQtLocString = aQtLocString;
    }

    String getString(int aPlatform)
    {
        if (aPlatform == ResourceLoader.QT)
        {
            return iQtLocString;
        }
        else
        {
            return iAvkonLocString;       
        }
    }     
}