Path: blob/master/sourcetools/j9nls/com/ibm/oti/NLSTool/MsgInfo.java
6004 views
/*******************************************************************************1* Copyright (c) 2004, 2017 IBM Corp. and others2*3* This program and the accompanying materials are made available under4* the terms of the Eclipse Public License 2.0 which accompanies this5* distribution and is available at https://www.eclipse.org/legal/epl-2.0/6* or the Apache License, Version 2.0 which accompanies this distribution and7* is available at https://www.apache.org/licenses/LICENSE-2.0.8*9* This Source Code may also be made available under the following10* Secondary Licenses when the conditions for such availability set11* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU12* General Public License, version 2 with the GNU Classpath13* Exception [1] and GNU General Public License, version 2 with the14* OpenJDK Assembly Exception [2].15*16* [1] https://www.gnu.org/software/classpath/license.html17* [2] http://openjdk.java.net/legal/assembly-exception.html18*19* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception20*******************************************************************************/21package com.ibm.oti.NLSTool;2223public class MsgInfo {24private String macro;25private int id;26private String key;27private String msg;28private String explanation;29private String systemAction;30private String userResponse;3132public MsgInfo() {33}3435public void setMacro(String macro) {36this.macro = macro;37}3839public void setId(int id) {40this.id = id;41}4243public void setKey(String key) {44this.key = key;45}4647public void setMsg(String msg) {48this.msg = msg;49}5051public String getMacro() {52return macro;53}5455public int getId() {56return id;57}5859public String getKey() {60return key;61}6263public String getMsg() {64return msg;65}6667public String getSystemAction() {68return systemAction;69}7071public void setSystemAction(String systemAction) {72this.systemAction = systemAction;73}7475public String getUserResponse() {76return userResponse;77}7879public void setUserResponse(String userResponse) {80this.userResponse = userResponse;81}8283public String getExplanation() {84return explanation;85}8687public void setExplanation(String explanation) {88this.explanation = explanation;89}9091public boolean containsDiagnostics() {92return93getUserResponse() != null ||94getExplanation() != null ||95getSystemAction() != null;96}97}9899100