public class MessageManager
extends java.lang.Object
This project was carried out at:
and supported byGenOpt Copyright (c) 1998-2021, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.
| Modifier and Type | Field and Description |
|---|---|
private int |
ARRAYINCREMENT
Constant for increasing the array size
|
private int |
arrSiz
current size of array
|
private GenOpt |
go
reference to GenOpt object (used to print messages)
|
protected java.lang.String |
kind
indicator whether this objects collects info or warnings
|
private static java.lang.String |
LS
System dependent line separator
|
private java.lang.String[] |
mes
array with the messages
|
private int |
numOfMes
1-based counter for number of message
|
| Constructor and Description |
|---|
MessageManager(GenOpt genOptRef)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMessages()
gets a String with all messages
|
int |
getNumberOfMessages()
gets a the number of messages
|
private void |
increaseArraySize()
increases the array size
|
void |
setMessage(java.lang.String message)
sets a message
|
private static final java.lang.String LS
private final int ARRAYINCREMENT
private GenOpt go
private java.lang.String[] mes
private int arrSiz
private int numOfMes
protected java.lang.String kind
public MessageManager(GenOpt genOptRef)
genOptRef - reference to GenOpt objectpublic void setMessage(java.lang.String message)
message - the messagepublic java.lang.String getMessages()
public int getNumberOfMessages()
private void increaseArraySize()