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 getLabels()95 public HashMap<String, String> getLabels() { 96 return labels; 97 } 98 getDescriptions()99 public HashMap<String, String> getDescriptions() { 100 return descriptions; 101 } 102 setDescriptions(HashMap<String, String> descriptions)103 public void setDescriptions(HashMap<String, String> descriptions) { 104 this.descriptions = descriptions; 105 } 106 setLabels(HashMap<String, String> labels)107 public void setLabels(HashMap<String, String> labels) { 108 this.labels = labels; 109 } 110 } 111