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