protected abstract static class IltAlarm.AbstractSeverity extends IlEnum implements IltAlarmSeverity, ilog.cpl.util.internal.IlpMutableLabel
Modifier and Type | Field and Description |
---|---|
protected String |
_description
An arbitrary string describing the severity.
|
protected String |
_message
Message from catalog
|
protected int |
_severity
A numerical value for the severity.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractSeverity() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
void |
copy(IltAlarm.AbstractSeverity from)
Copies the attributes from the given severity to this instance.
|
String |
getDescription(IlpContext appContext)
Deprecated.
Use getLabel(Locale) instead.
|
String |
getLabel(Locale locale)
Returns a localized description of the severity.
|
int |
getSeverity()
Returns the severity index.
|
int |
hashCode()
Support for hash tables
|
void |
setDescription(String description)
Deprecated.
Use setLabel(String) instead.
|
void |
setLabel(String label)
Sets the label.
|
void |
setMessage(String description)
Sets the description of the severity as a message from
the JTGO catalog.
|
void |
setName(String name)
Sets the severity name.
|
void |
setSeverity(int value)
Sets the severity attribute.
|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getCategory, getName, intern
protected int _severity
protected String _description
protected String _message
public String getLabel(Locale locale)
getLabel
in interface ilog.cpl.util.internal.IlpLabel
locale
- The locale used to retrieve the label.Locale
public void setLabel(String label)
setLabel
in interface ilog.cpl.util.internal.IlpMutableLabel
label
- The new label to be set.@Deprecated public String getDescription(IlpContext appContext)
IltAlarmSeverity
getDescription
in interface IltAlarmSeverity
@Deprecated public void setDescription(String description)
public void setMessage(String description)
public int getSeverity()
getSeverity
in interface IltAlarmSeverity
public void setSeverity(int value)
public void setName(String name)
public int compareTo(Object o)
compareTo
in interface Comparable
public int hashCode()
hashCode
in interface IltAlarmSeverity
hashCode
in class Object
public void copy(IltAlarm.AbstractSeverity from)
from
- Source severity© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.