|
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 package com.nokia.mj.impl.rt.test; |
|
19 |
|
20 import com.nokia.mj.impl.utils.Uid; |
|
21 import com.nokia.mj.impl.rt.support.ApplicationInfo; |
|
22 |
|
23 /** |
|
24 * |
|
25 * @author Nokia Corporation |
|
26 * @version 1.0 |
|
27 */ |
|
28 |
|
29 public class ApplicationInfoImpl extends ApplicationInfo |
|
30 { |
|
31 public static final String TEST_RT_TYPE = "TEST RT"; |
|
32 public static final String TEST_PROTECTION_DOMAIN = "TEST DOMAIN"; |
|
33 public static final Uid TEST_APP_UID = Uid.createUid("[12345678]"); |
|
34 public static final Uid TEST_APP_SUITE_UID = Uid.createUid("[87654321]"); |
|
35 public static final String TEST_APP_NAME = "TEST NAME"; |
|
36 public static final String TEST_APP_SUITE_NAME = "TEST SUITE NAME"; |
|
37 public static final String TEST_APP_VENDOR = "TEST VENDOR"; |
|
38 public static final String TEST_APP_VERSION = "TEST VERSION"; |
|
39 public static final String TEST_PATH = "TEST PATH"; |
|
40 public static final String MAIN_CLASS = "TEST CLASS"; |
|
41 public static final String TEST_KEY = "TEST KEY"; |
|
42 public static final String TEST_VALUE = "TEST VALUE"; |
|
43 |
|
44 public String getRuntimeType() |
|
45 { |
|
46 return TEST_RT_TYPE; |
|
47 } |
|
48 |
|
49 public String getProtectionDomain() |
|
50 { |
|
51 return TEST_PROTECTION_DOMAIN; |
|
52 } |
|
53 |
|
54 public Uid getUid() |
|
55 { |
|
56 return TEST_APP_UID; |
|
57 } |
|
58 |
|
59 public Uid getSuiteUid() |
|
60 { |
|
61 return TEST_APP_SUITE_UID; |
|
62 } |
|
63 |
|
64 public String getSuiteName() |
|
65 { |
|
66 return TEST_APP_SUITE_NAME; |
|
67 } |
|
68 |
|
69 public String getName() |
|
70 { |
|
71 return TEST_APP_NAME; |
|
72 } |
|
73 |
|
74 public String getVendor() |
|
75 { |
|
76 return TEST_APP_VENDOR; |
|
77 } |
|
78 |
|
79 public String getVersion() |
|
80 { |
|
81 return TEST_APP_VERSION; |
|
82 } |
|
83 |
|
84 public String getRootPath() |
|
85 { |
|
86 return TEST_PATH; |
|
87 } |
|
88 |
|
89 public String getMainClass() |
|
90 { |
|
91 return MAIN_CLASS; |
|
92 } |
|
93 |
|
94 public String getAttribute(String key) |
|
95 { |
|
96 if (TEST_KEY.equals(key)) |
|
97 { |
|
98 return TEST_VALUE; |
|
99 } |
|
100 return null; |
|
101 } |
|
102 } |