themeinstaller/source/src/com/nokia/tools/themeinstaller/installationmanager/LanguageSpecificData.java
branchRCL_3
changeset 17 fe49e33862e2
parent 16 b685c59de105
child 18 04b7640f6fb5
equal deleted inserted replaced
16:b685c59de105 17:fe49e33862e2
     1 /*
       
     2 * Copyright (c) 2007 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:  Contains language specific data of each language.
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 package com.nokia.tools.themeinstaller.installationmanager;
       
    20 
       
    21 import java.util.Vector;
       
    22 
       
    23 /**
       
    24  * Contains all the language specific data.
       
    25  */
       
    26 public class LanguageSpecificData
       
    27     {
       
    28 
       
    29     // Language id according to TLanguage enumeration in e32const.h
       
    30     private Integer iLanguageId;
       
    31 
       
    32     // DTD file name of the language
       
    33     private String iFileDTD;
       
    34 
       
    35     // CSS file name of the language
       
    36     private String iFileCSS;
       
    37 
       
    38     // Localized theme full name
       
    39     private String iThemeFullName;
       
    40 
       
    41     // Language specific resource files
       
    42     private Vector iResources;
       
    43 
       
    44     /**
       
    45      * Constructor.
       
    46      * @param aLanguageId Id number of the language
       
    47      * @param aFileDTD DTD file name
       
    48      * @param aFileCSS CSS file name
       
    49      * @param aThemeFullName Localized theme full name
       
    50      * @param aResources List of language specific resource files
       
    51      */
       
    52     public LanguageSpecificData( Integer aLanguageId,
       
    53                                  String aFileDTD,
       
    54                                  String aFileCSS,
       
    55                                  String aThemeFullName,
       
    56                                  Vector aResources )
       
    57         {
       
    58         iLanguageId = aLanguageId;
       
    59         iFileDTD = aFileDTD;
       
    60         iFileCSS  = aFileCSS;
       
    61         iThemeFullName = aThemeFullName;
       
    62         iResources = aResources;
       
    63         if( iResources == null )
       
    64             {
       
    65             iResources = new Vector();
       
    66             }
       
    67         }
       
    68 
       
    69     /**
       
    70      * Get language id according to TLanguage enumeration in e32const.h.
       
    71      * @return Language id
       
    72      */
       
    73     public Integer getLanguageId()
       
    74         {
       
    75         return iLanguageId;
       
    76         }
       
    77 
       
    78     /**
       
    79      * Get DTD file name of the language.
       
    80      * @return File name of the DTD file
       
    81      */
       
    82     public String getDTDFile()
       
    83         {
       
    84         return iFileDTD;
       
    85         }
       
    86 
       
    87     /**
       
    88      * Get CSS file name of the language.
       
    89      * @return File name of the CSS file
       
    90      */
       
    91     public String getCSSFile()
       
    92         {
       
    93         return iFileCSS;
       
    94         }
       
    95 
       
    96     /**
       
    97      * Get localized theme full name.
       
    98      * @return Localized theme full name
       
    99      */
       
   100     public String getThemeFullName()
       
   101         {
       
   102         return iThemeFullName;
       
   103         }
       
   104 
       
   105     /**
       
   106      * Get language specific resource files
       
   107      * @return the resource file list
       
   108      */
       
   109     public Vector getResources()
       
   110         {
       
   111         return iResources;
       
   112         }
       
   113 
       
   114     }