Unit tests for android extension of resource contianer
[platform/upstream/iotivity.git] / service / resource-container / android / resource-container / src / main / java / org / iotivity / service / resourcecontainer / RcsBundleInfo.java
1 //******************************************************************
2 //
3 // Copyright 2015 Samsung Electronics All Rights Reserved.
4 //
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 //
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
10 //
11 //      http://www.apache.org/licenses/LICENSE-2.0
12 //
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
18 //
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20
21
22 /**
23  * @file
24  * This file contains RCSBundleInfo class, which provides APIs related to Bundle information.
25  */
26 package org.iotivity.service.resourcecontainer;
27
28 /**
29  * This class provides APIs for getting and setting the Bundle Information
30  */
31 public class RcsBundleInfo {
32     private final String mId;
33     private final String mPath;
34     private final String mActivatorName;
35     private final String mLibraryPath;
36     private final String mVersion;
37
38     private RcsBundleInfo(String id, String path, String activatorName,
39             String libraryPath, String version) {
40         mId = id;
41         mPath = path;
42         mActivatorName = activatorName;
43         mLibraryPath = libraryPath;
44         mVersion = version;
45     }
46
47     /**
48      * API for getting the Id of the bundle
49      * 
50      * @return string - Id of the bundle
51      * 
52      */
53     public String getID() {
54         return mId;
55     }
56
57     /**
58      * API for getting the path of the bundle
59      * 
60      * @return path - path of the bundle
61      * 
62      */
63     public String getPath() {
64         return mPath;
65     }
66
67     /**
68      * API for setting the Activator name for the bundle
69      * 
70      * @return string - Name of the activator
71      * 
72      */
73     public String getActivatorName() {
74         return mActivatorName;
75     }
76
77     /**
78      * API for getting the library path for the bundle
79      * 
80      * @return string - Library path in string form
81      * 
82      */
83     public String getLibraryPath() {
84         return mLibraryPath;
85     }
86
87     /**
88      * API for getting the version of the bundle
89      * 
90      * @return string - version of the bundle
91      * 
92      */
93     public String getVersion() {
94         return mVersion;
95     }
96
97 }