@Embeddable public class Pressure extends Object implements Serializable, Filterable, Unit
UnitsPressure
instance. As
also described in the remoting definition (.ice) for Pressure, this is an
embedded class meaning that the columns here do not appear in their own
table but exist directly on the containing object. Like Details and
Permissions, instances do not contain long identifiers and cannot be
persisted on their own.Constructor and Description |
---|
Pressure()
Deprecated.
|
Pressure(double d,
String u) |
Pressure(double d,
Unit<Pressure> unit) |
Pressure(double d,
UnitsPressure u) |
Pressure(Pressure value) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter filter) |
static Pressure |
convertPressure(Pressure t)
FIXME: this should likely take a default so that locations which don't
want an exception can have
log.warn("Using new PositiveFloat(1.0)!"
|
static Pressure |
convertPressure(Pressure value,
String target) |
static Pressure |
convertPressure(Pressure value,
Unit<Pressure> ul) |
boolean |
equals(Object obj) |
UnitsPressure |
getUnit()
Many-to-one field ome.model.units.Pressure.unit (ome.model.enums.UnitsPressure).
|
double |
getValue()
value of this unit-field.
|
int |
hashCode() |
static UnitsPressure |
makePressureUnitXML(String unit) |
static Pressure |
makePressureXML(double d,
String unit) |
void |
setUnit(UnitsPressure unit) |
void |
setValue(double value) |
String |
toString() |
public static final String VALUE
public static final String UNIT
@Deprecated public Pressure()
public Pressure(double d, String u)
public Pressure(double d, UnitsPressure u)
public Pressure(Pressure value)
public static UnitsPressure makePressureUnitXML(String unit)
public static Pressure convertPressure(Pressure t)
public double getValue()
Pressure
will be stored in a column "imagingEnvironmentpressure".public UnitsPressure getUnit()
value
for physicalSizeX will be stored as "imagingEnvironment.pressure", the unit enum
will be stored as "imagingEnvironment.pressureUnit".public void setUnit(UnitsPressure unit)
public boolean acceptFilter(Filter filter)
acceptFilter
in interface Filterable
Version: 5.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.