|
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 one include settings for theme localisation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 package com.nokia.tools.themeinstaller.localisation; |
|
20 |
|
21 import java.util.Vector; |
|
22 |
|
23 /** |
|
24 * Contains one include settings for theme localisation. |
|
25 */ |
|
26 public class IncludeSetting |
|
27 { |
|
28 |
|
29 // File to include from |
|
30 private String iFile; |
|
31 |
|
32 // Include all entities |
|
33 private boolean iIncludeAll; |
|
34 |
|
35 // Search tree |
|
36 private Vector iSearchTree; |
|
37 |
|
38 // Entities to include |
|
39 private Vector iEntities; |
|
40 |
|
41 |
|
42 |
|
43 /** |
|
44 * Constructor. |
|
45 */ |
|
46 public IncludeSetting() |
|
47 { |
|
48 iSearchTree = new Vector(); |
|
49 iEntities = new Vector(); |
|
50 } |
|
51 |
|
52 /** |
|
53 * Get the file to include from. |
|
54 * @return the file |
|
55 */ |
|
56 public String getFile() |
|
57 { |
|
58 return iFile; |
|
59 } |
|
60 |
|
61 /** |
|
62 * Get the search tree. |
|
63 * @return the search tree |
|
64 */ |
|
65 public Vector getSearchTree() |
|
66 { |
|
67 return iSearchTree; |
|
68 } |
|
69 |
|
70 /** |
|
71 * Get the entities to include. |
|
72 * @return the entities to include |
|
73 */ |
|
74 public Vector getEntities() |
|
75 { |
|
76 return iEntities; |
|
77 } |
|
78 |
|
79 /** |
|
80 * Is include all entities flag set. |
|
81 * @return true if all entities in the file should be included |
|
82 */ |
|
83 public boolean isIncludeAll() |
|
84 { |
|
85 return iIncludeAll; |
|
86 } |
|
87 |
|
88 /** |
|
89 * Add an entity to include. |
|
90 * @param aEntity the entity to include |
|
91 */ |
|
92 public void addEntity( String aEntity ) |
|
93 { |
|
94 iEntities.add( aEntity ); |
|
95 } |
|
96 |
|
97 /** |
|
98 * Add a search directory for the file. |
|
99 * @param aDir Search directory |
|
100 */ |
|
101 public void addSearchTree( Vector aSearchTree ) |
|
102 { |
|
103 iSearchTree.addAll( aSearchTree ); |
|
104 } |
|
105 |
|
106 /** |
|
107 * Set the file to include from. |
|
108 * @param aFile the search pattern for the file |
|
109 */ |
|
110 public void setFile( String aFile ) |
|
111 { |
|
112 iFile = aFile; |
|
113 } |
|
114 |
|
115 /** |
|
116 * Set include all entities flag. |
|
117 * @param aIncludeAll true if all entities in the file should be included |
|
118 */ |
|
119 public void setIncludeAll( boolean aIncludeAll ) |
|
120 { |
|
121 iIncludeAll = aIncludeAll; |
|
122 } |
|
123 |
|
124 } |