• 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 extensionAbility info.
24  *
25  */
26 public class ExtensionAbilityInfo {
27     /**
28      * Indicates the name of module ModuleJson.
29      */
30     public String name = "";
31     /**
32      * Indicates the srcEntrance of module ModuleJson.
33      */
34     public String srcEntrance = "";
35     /**
36      * Indicates the icon of module ModuleJson.
37      */
38     public String icon = "";
39     /**
40      * Indicates the label of module ModuleJson.
41      */
42     public String label = "";
43 
44     /**
45      * Indicates the description of module ModuleJson.
46      */
47     public String description = "";
48 
49     /**
50      * Indicates the type of module ModuleJson.
51      */
52     public String type = "";
53     /**
54      * Indicates the permissions of module ModuleJson.
55      */
56     public List<String> permissions = new ArrayList<>();
57     /**
58      * Indicates the readPermission of module ModuleJson.
59      */
60     public String readPermission = "";
61     /**
62      * Indicates the writePermission of module ModuleJson.
63      */
64     public String writePermission = "";
65     /**
66      * Indicates the visible of module ModuleJson.
67      */
68     public boolean visible = false;
69     /**
70      * Indicates the skill of module ModuleJson.
71      */
72     public List<SkillInfo> skills = new ArrayList<>();
73 
74     List<ModuleMetadataInfo> metadataInfos = new ArrayList<>();
75 
76     /**
77      * Indicates the metadata of module ModuleJson.
78      */
79     public MetaData metadata = new MetaData();
80     /**
81      * Indicates the uri of module ModuleJson.
82      */
83     public String uri = "";
84 
85     /**
86      * Indicates the descriptions of module ModuleJson.
87      */
88     private HashMap<String, String> descriptions = new HashMap<>();
89 
90     /**
91      * Indicates the labels of module ModuleJson, .
92      */
93     private HashMap<String, String> labels = new HashMap<>();
94 
95     /**
96      * Indicates the iconId of module ModuleJson.
97      */
98     private int iconId = 0;
99 
100     /**
101      * Indicates the labelId of module ModuleJson.
102      */
103     private int labelId = 0;
104 
getLabels()105     public HashMap<String, String> getLabels() {
106         return labels;
107     }
108 
getDescriptions()109     public HashMap<String, String> getDescriptions() {
110         return descriptions;
111     }
112 
setDescriptions(HashMap<String, String> descriptions)113     public void setDescriptions(HashMap<String, String> descriptions) {
114         this.descriptions = descriptions;
115     }
116 
setLabels(HashMap<String, String> labels)117     public void setLabels(HashMap<String, String> labels) {
118         this.labels = labels;
119     }
120 
getIconId()121     public int getIconId() {
122         return iconId;
123     }
124 
setIconId(int iconId)125     public void setIconId(int iconId) {
126         this.iconId = iconId;
127     }
128 
getLabelId()129     public int getLabelId() {
130         return labelId;
131     }
132 
setLabelId(int labelId)133     public void setLabelId(int labelId) {
134         this.labelId = labelId;
135     }
136 }
137