public enum MeasurementType extends java.lang.Enum<MeasurementType>
Enum Constant and Description |
---|
CONTINUOUS
measurement was on a continuous long core or u-channel
|
DISCRETE
measurement was on a discrete sample
|
NONE
a measurement run was recorded, but no measurement was actually made
|
UNKNOWN
the measurement type data could not be interpreted
|
UNSET
this value has not yet been set
|
Modifier and Type | Method and Description |
---|---|
static MeasurementType |
fromString(java.lang.String string)
Creates a measurement type from a string representation.
|
java.lang.String |
getColumnHeader()
Returns a suitable column header for sample identifiers.
|
java.lang.String |
getNiceName() |
boolean |
isActualMeasurement()
Returns
true if this field corresponds to an actual measurement. |
boolean |
isContinuous()
Returns
true if this field is CONTINUOUS . |
boolean |
isDiscrete()
Returns
true if this field is DISCRETE . |
static MeasurementType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MeasurementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MeasurementType DISCRETE
public static final MeasurementType CONTINUOUS
public static final MeasurementType NONE
public static final MeasurementType UNSET
public static final MeasurementType UNKNOWN
public static MeasurementType[] values()
for (MeasurementType c : MeasurementType.values()) System.out.println(c);
public static MeasurementType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static MeasurementType fromString(java.lang.String string)
string
- a string representation of a measurement typepublic java.lang.String getColumnHeader()
public boolean isActualMeasurement()
true
if this field corresponds to an actual measurement.
This is the case if the field is DISCRETE
or CONTINUOUS
rather than one of the fields indicating a non-existent or unknown
measurement type.true
if this field corresponds to an actual measurementpublic boolean isDiscrete()
true
if this field is DISCRETE
. Convenience method.true
if this field is DISCRETE
public boolean isContinuous()
true
if this field is CONTINUOUS
. Convenience method.true
if this field is CONTINUOUS
public java.lang.String getNiceName()