@Embeddable public class Pressure extends java.lang.Object implements java.io.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.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
UNIT |
static java.lang.String |
VALUE |
Constructor and Description |
---|
Pressure()
Deprecated.
|
Pressure(double d,
java.lang.String u) |
Pressure(double d,
ome.units.unit.Unit<ome.units.quantity.Pressure> unit) |
Pressure(double d,
UnitsPressure u) |
Pressure(ome.units.quantity.Pressure value) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter filter) |
static ome.units.quantity.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)!", e); return new
PositiveFloat(1.0);
or similar.
|
static Pressure |
convertPressure(Pressure value,
java.lang.String target) |
static Pressure |
convertPressure(Pressure value,
ome.units.unit.Unit<ome.units.quantity.Pressure> ul) |
boolean |
equals(java.lang.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 ome.xml.model.enums.UnitsPressure |
makePressureUnitXML(java.lang.String unit) |
static ome.units.quantity.Pressure |
makePressureXML(double d,
java.lang.String unit) |
void |
setUnit(UnitsPressure unit) |
void |
setValue(double value) |
java.lang.String |
toString() |
public static final java.lang.String VALUE
public static final java.lang.String UNIT
@Deprecated public Pressure()
public Pressure(double d, java.lang.String u)
public Pressure(double d, UnitsPressure u)
public Pressure(double d, ome.units.unit.Unit<ome.units.quantity.Pressure> unit)
public Pressure(ome.units.quantity.Pressure value)
public static ome.xml.model.enums.UnitsPressure makePressureUnitXML(java.lang.String unit)
public static ome.units.quantity.Pressure makePressureXML(double d, java.lang.String unit)
public static ome.units.quantity.Pressure convertPressure(Pressure t)
public static Pressure convertPressure(Pressure value, ome.units.unit.Unit<ome.units.quantity.Pressure> ul)
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
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object