public static class IltTrap.Type extends IlEnum implements IltAlarmSeverity, ilog.cpl.util.internal.IlpMutableLabel
| Modifier and Type | Field and Description |
|---|---|
static IltTrap.Type |
AuthenticationFailure |
static IltTrap.Type |
ColdStart |
static IltTrap.Type |
EGPNeighborLoss |
static IltTrap.Type |
LinkFailure |
static IlEnumInfo |
metainfo
Contains metainformation about this
IlEnum class. |
static IltTrap.Type |
WarmStart |
| Constructor and Description |
|---|
Type()
Creates a new trap type.
|
Type(String name,
int severity)
Creates a new trap type.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
void |
copy(IltTrap.Type from)
Copies the attributes from the given type.
|
String |
getCategory()
Returns the category of this type.
|
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, waitequals, getName, internpublic static IltTrap.Type ColdStart
public static IltTrap.Type WarmStart
public static IltTrap.Type LinkFailure
public static IltTrap.Type AuthenticationFailure
public static IltTrap.Type EGPNeighborLoss
public static IlEnumInfo metainfo
IlEnum class.public Type()
public Type(String name, int severity)
name - a name for the severity, used for serialization purposespublic String getCategory()
getCategory in interface IltAlarmSeveritypublic String getLabel(Locale locale)
getLabel in interface ilog.cpl.util.internal.IlpLabellocale - The locale used to retrieve the label.Localepublic void setLabel(String label)
setLabel in interface ilog.cpl.util.internal.IlpMutableLabellabel - The new label to be set.@Deprecated public String getDescription(IlpContext appContext)
IltAlarmSeveritygetDescription in interface IltAlarmSeverity@Deprecated public void setDescription(String description)
public void setMessage(String description)
public int getSeverity()
getSeverity in interface IltAlarmSeveritypublic void setSeverity(int value)
public void setName(String name)
public int hashCode()
hashCode in interface IltAlarmSeverityhashCode in class Objectpublic int compareTo(Object o)
compareTo in interface Comparablepublic void copy(IltTrap.Type from)
from - Source trap type© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.