themeinstaller/source/src/com/nokia/tools/themeinstaller/localisation/Settings.java
branchRCL_3
changeset 32 fe49e33862e2
parent 31 b685c59de105
child 33 04b7640f6fb5
equal deleted inserted replaced
31:b685c59de105 32: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 the localisation settings that were defined in the
       
    15  *                localisation settings file.
       
    16  *
       
    17 */
       
    18 
       
    19 
       
    20 package com.nokia.tools.themeinstaller.localisation;
       
    21 
       
    22 import java.util.Vector;
       
    23 
       
    24 /**
       
    25  * Contains the localisation settings that were defined in the localisation
       
    26  * settings file. One instance contains settings for one theme.
       
    27  */
       
    28 public class Settings
       
    29     {
       
    30 
       
    31     // Theme application uid
       
    32     private long iAppUid;
       
    33 
       
    34     // Theme provider uid
       
    35     private long iProviderUid;
       
    36 
       
    37     // Theme uid
       
    38     private long iThemeUid;
       
    39 
       
    40     // Main DTD file search tree
       
    41     private Vector iSearchTree;
       
    42 
       
    43     // Include settings
       
    44     private Vector iIncludeSettings;
       
    45 
       
    46     /**
       
    47      * Constructor.
       
    48      */
       
    49     public Settings()
       
    50         {
       
    51         iSearchTree = new Vector();
       
    52         iIncludeSettings = new Vector();
       
    53         }
       
    54 
       
    55     /**
       
    56      * Get application uid.
       
    57      * @return the application uid
       
    58      */
       
    59     public long getAppUid()
       
    60         {
       
    61         return iAppUid;
       
    62         }
       
    63 
       
    64     /**
       
    65      * Get provider uid.
       
    66      * @return the provider uid
       
    67      */
       
    68     public long getProviderUid()
       
    69         {
       
    70         return iProviderUid;
       
    71         }
       
    72 
       
    73     /**
       
    74      * Get theme uid.
       
    75      * @return the theme uid
       
    76      */
       
    77     public long getThemeUid()
       
    78         {
       
    79         return iThemeUid;
       
    80         }
       
    81 
       
    82     /**
       
    83      * Get the search tree of the main DTD file.
       
    84      * @return Search tree
       
    85      */
       
    86     public Vector getSearchTree()
       
    87         {
       
    88         return iSearchTree;
       
    89         }
       
    90 
       
    91     /**
       
    92      * Get all include settings of a theme.
       
    93      * @return List of include settings
       
    94      */
       
    95     public Vector getIncludes()
       
    96         {
       
    97         return iIncludeSettings;
       
    98         }
       
    99 
       
   100     /**
       
   101      * Set application uid.
       
   102      * @param aAppUid the application uid to set
       
   103      */
       
   104     public void setAppUid( long aAppUid )
       
   105         {
       
   106         iAppUid = aAppUid;
       
   107         }
       
   108 
       
   109     /**
       
   110      * Set provider uid.
       
   111      * @param aProviderUid the provider uid to set
       
   112      */
       
   113     public void setProviderUid( long aProviderUid )
       
   114         {
       
   115         iProviderUid = aProviderUid;
       
   116         }
       
   117 
       
   118     /**
       
   119      * Set theme uid.
       
   120      * @param aThemeUid the theme uid to set
       
   121      */
       
   122     public void setThemeUid( long aThemeUid )
       
   123         {
       
   124         iThemeUid = aThemeUid;
       
   125         }
       
   126 
       
   127     /**
       
   128      * Add main DTD search tree.
       
   129      * @param aSearchTree Search tree
       
   130      */
       
   131     public void addSearchTree( Vector aSearchTree )
       
   132         {
       
   133         iSearchTree.addAll( aSearchTree );
       
   134         }
       
   135 
       
   136     /**
       
   137      * Add include settings of the theme.
       
   138      * @param aInclude Include settings
       
   139      */
       
   140     public void addInclude( IncludeSetting aInclude )
       
   141         {
       
   142         iIncludeSettings.add( aInclude );
       
   143         }
       
   144     }