public class MonitorField extends Object
Equality and hash code are based on the name parameter provided to the constructor
and returned by name() method.
| Modifier and Type | Field and Description |
|---|---|
static MonitorField |
ALERT_HIGH |
static MonitorField |
ALERT_LOW |
static MonitorField |
DESCR |
static String |
FORMAT_KEY |
static MonitorField |
HIGH |
static MonitorField |
HIGH_WARN |
static String |
ID_KEY |
static MonitorField |
LOW |
static MonitorField |
LOW_WARN |
static MonitorField |
NAME |
static MonitorField |
NULL |
static String |
PAGE_KEY |
static String |
SECTION_KEY |
static String |
STATE_KEY |
static MonitorField |
UNITS |
static MonitorField |
VALUE |
| Constructor and Description |
|---|
MonitorField(String name,
String title,
boolean updatable,
boolean editable)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static MonitorField |
getInstance(String name)
Returns an instance with the specified name.
|
static MonitorField |
getInstance(String name,
String title,
boolean updatable,
boolean editable)
Returns a newly created instance with the specified parameters.
|
String |
getTitle()
Returns human readable title associated with this field.
|
int |
hashCode() |
boolean |
isEditable() |
boolean |
isUpdatable() |
String |
name()
Returns a unique name of this field.
|
String |
toString()
Returns the name of this field.
|
static MonitorField |
valueOf(String name)
Returns an instance with the specified name, or
null if no such instance exists. |
public static final MonitorField NULL
public static final MonitorField NAME
public static final MonitorField VALUE
public static final MonitorField UNITS
public static final MonitorField LOW
public static final MonitorField ALERT_LOW
public static final MonitorField HIGH
public static final MonitorField ALERT_HIGH
public static final MonitorField DESCR
public static final MonitorField LOW_WARN
public static final MonitorField HIGH_WARN
public static final String ID_KEY
public static final String PAGE_KEY
public static final String STATE_KEY
public static final String FORMAT_KEY
public static final String SECTION_KEY
public MonitorField(String name, String title, boolean updatable, boolean editable)
name - Unique string ID. Used as the last key segment in status messages.title - Human readable title.updatable - true if this field is not guaranteed to remain constant.editable - true if this field is editable through monitoring views.public static MonitorField getInstance(String name, String title, boolean updatable, boolean editable)
valueOf(String).name - Unique string ID. Used as the last key segment in status messages.title - Human readable title.updatable - true if this field is not guaranteed to remain constant.editable - true if this field is editable through monitoring views.IllegalArgumentException - if an instance with this id already exists.public static MonitorField getInstance(String name)
name - Unique string ID. Used as the last key segment in status messages.public static MonitorField valueOf(String name)
null if no such instance exists.name - Field name.null if no such instance exists.public String name()
public String getTitle()
public boolean isUpdatable()
public boolean isEditable()
public String toString()
Copyright © 2017 LSST. All rights reserved.