• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package ohos;
17 
18 import java.util.ArrayList;
19 import java.util.HashMap;
20 import java.util.List;
21 
22 /**
23  * ModuleJson ability info in module
24  *
25  */
26 class ModuleAbilityInfo {
27     /**
28      * Indicates the name of module ModuleJson.
29      */
30     public String name = "";
31 
32     /**
33      * Indicates the srcEntrance of module ModuleJson.
34      */
35     public String srcEntrance = "";
36 
37     /**
38      * Indicates the launchType of module ModuleJson.
39      */
40     public String launchType = "standard";
41 
42     /**
43      * Indicates the description of module ModuleJson.
44      */
45     public String description = "";
46 
47     /**
48      * Indicates the icon of module ModuleJson.
49      */
50     public String icon = "";
51 
52     /**
53      * Indicates the label of module ModuleJson.
54      */
55     public String label = "";
56 
57     /**
58      * Indicates the permissions of module ModuleJson.
59      */
60     public List<String> permissions = new ArrayList<String>();
61 
62     /**
63      * Indicates the metadata of module ModuleJson.
64      */
65     public List<ModuleMetadataInfo> metadata = new ArrayList<ModuleMetadataInfo>();
66 
67     /**
68      * Indicates the visible of module ModuleJson.
69      */
70     public boolean visible = false;
71 
72     /**
73      * Indicates the continuable of module ModuleJson.
74      */
75     public boolean continuable = false;
76 
77     /**
78      * Indicates the skills of module ModuleJson.
79      */
80     public List<SkillInfo> skills = new ArrayList<SkillInfo>();
81 
82     /**
83      * Indicates the backgroundModes of module ModuleJson.
84      */
85     public List<String> backgroundModes = new ArrayList<String>();
86 
87     /**
88      * Indicates the descriptions of module ModuleJson, for Multilingual.
89      */
90     private HashMap<String, String> descriptions = new HashMap<>();
91 
92     /**
93      * Indicates the labels of module ModuleJson, for Multilingual.
94      */
95     private HashMap<String, String> labels = new HashMap<>();
96 
97     /**
98      * Indicates the iconId of module ModuleJson.
99      */
100     private int iconId = 0;
101 
102     /**
103      * Indicates the labelId of module ModuleJson.
104      */
105     private int labelId = 0;
106 
setLabels(HashMap<String, String> labels)107     public void setLabels(HashMap<String, String> labels) {
108         this.labels = labels;
109     }
110 
setDescriptions(HashMap<String, String> descriptions)111     public void setDescriptions(HashMap<String, String> descriptions) {
112         this.descriptions = descriptions;
113     }
114 
getDescriptions()115     public HashMap<String, String> getDescriptions() {
116         return descriptions;
117     }
118 
getLabels()119     public HashMap<String, String> getLabels() {
120         return labels;
121     }
122 
getIconId()123     public int getIconId() {
124         return iconId;
125     }
126 
setIconId(int iconId)127     public void setIconId(int iconId) {
128         this.iconId = iconId;
129     }
130 
getLabelId()131     public int getLabelId() {
132         return labelId;
133     }
134 
setLabelId(int labelId)135     public void setLabelId(int labelId) {
136         this.labelId = labelId;
137     }
138 }
139