Package omero.model
Class PressureI
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.model.Pressure
-
- omero.model.PressureI
-
- All Implemented Interfaces:
Ice.Object
,java.io.Serializable
,java.lang.Cloneable
,ome.model.ModelBased
,_PressureOperations
,_PressureOperationsNC
public class PressureI extends Pressure implements ome.model.ModelBased
Blitz wrapper around thePressure
class. LikeDetails
andPermissions
, this object is embedded into other objects and does not have a full life cycle of its own.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PressureI()
PressureI(double d, ome.model.enums.UnitsPressure ul)
Copy constructor that converts the givenPressure
based on the given ome.model enumPressureI(double d, ome.units.unit.Unit<ome.units.quantity.Pressure> unit)
PressureI(double d, UnitsPressure unit)
PressureI(ome.units.quantity.Pressure value)
Convert a Bio-FormatsLength
to an OMERO Length.PressureI(Pressure value, java.lang.String target)
Copy constructor that converts the givenPressure
based on the given enum string.PressureI(Pressure value, ome.units.unit.Unit<ome.units.quantity.Pressure> ul)
Copy constructor that converts the givenPressure
based on the given ome-xml enumPressureI(Pressure value, UnitsPressure target)
Copy constructor that converts between units if possible.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ome.units.quantity.Pressure
convert(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.Pressure
copy(Ice.Current ignore)
void
copyObject(ome.util.Filterable model, ome.util.ModelMapper mapper)
boolean
equals(java.lang.Object obj)
ome.util.Filterable
fillObject(ome.util.ReverseModelMapper mapper)
java.lang.String
getSymbol(Ice.Current current)
Returns the possibly unicode representation of the ""unit"" value for display.UnitsPressure
getUnit(Ice.Current current)
UnitsPressure
instance which is anIObject
meaning that its ID is sufficient for identifying equality.double
getValue(Ice.Current current)
Actual value for this unit-based field.int
hashCode()
static java.lang.String
lookupSymbol(UnitsPressure unit)
static Ice.ObjectFactory
makeFactory(client client)
static ome.units.quantity.Pressure
makeXMLQuantity(double d, java.lang.String unit)
static ome.xml.model.enums.UnitsPressure
makeXMLUnit(java.lang.String unit)
void
setUnit(UnitsPressure unit, Ice.Current current)
void
setValue(double value, Ice.Current current)
java.lang.String
toString()
-
Methods inherited from class omero.model.Pressure
___copy, ___getSymbol, ___getUnit, ___getValue, ___setUnit, ___setValue, __dispatch, __readImpl, __writeImpl, clone, copy, getSymbol, getUnit, getValue, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId, setUnit, setValue
-
-
-
-
Constructor Detail
-
PressureI
public PressureI()
-
PressureI
public PressureI(double d, UnitsPressure unit)
-
PressureI
public PressureI(double d, ome.units.unit.Unit<ome.units.quantity.Pressure> unit)
-
PressureI
public PressureI(Pressure value, ome.units.unit.Unit<ome.units.quantity.Pressure> ul) throws ome.model.units.BigResult
Copy constructor that converts the givenPressure
based on the given ome-xml enum- Throws:
ome.model.units.BigResult
-
PressureI
public PressureI(double d, ome.model.enums.UnitsPressure ul)
Copy constructor that converts the givenPressure
based on the given ome.model enum
-
PressureI
public PressureI(Pressure value, java.lang.String target) throws ome.model.units.BigResult
Copy constructor that converts the givenPressure
based on the given enum string. If either the source or the target unit is null or if no conversion is possible between the two types (e.g. PIXELS), anIllegalArgumentException
will be thrown. If the conversion results in an overflow, aBigResult
will be thrown, unless the input value was already Infinite or NaN, in which case that will be the return value.- Parameters:
target
- String representation of the CODE enum- Throws:
java.lang.IllegalArgumentException
- if the source or target unit is null or an unconvertible type (e.g. PIXELS)ome.model.units.BigResult
- if the conversion leads to an infinite or NaN result
-
PressureI
public PressureI(Pressure value, UnitsPressure target) throws ome.model.units.BigResult
Copy constructor that converts between units if possible.- Parameters:
target
- unit that is desired. non-null.- Throws:
ome.model.units.BigResult
-
PressureI
public PressureI(ome.units.quantity.Pressure value)
Convert a Bio-FormatsLength
to an OMERO Length.
-
-
Method Detail
-
lookupSymbol
public static java.lang.String lookupSymbol(UnitsPressure unit)
-
makeFactory
public static final Ice.ObjectFactory makeFactory(client client)
-
makeXMLUnit
public static ome.xml.model.enums.UnitsPressure makeXMLUnit(java.lang.String unit)
-
makeXMLQuantity
public static ome.units.quantity.Pressure makeXMLQuantity(double d, java.lang.String unit)
-
convert
public static ome.units.quantity.Pressure convert(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.
-
getValue
public double getValue(Ice.Current current)
Description copied from interface:_PressureOperations
Actual value for this unit-based field. The interpretation of the value is only possible along with theUnitsPressure
enum.- Specified by:
getValue
in interface_PressureOperations
- Parameters:
current
- The Current object for the invocation.
-
setValue
public void setValue(double value, Ice.Current current)
- Specified by:
setValue
in interface_PressureOperations
-
getUnit
public UnitsPressure getUnit(Ice.Current current)
Description copied from interface:_PressureOperations
UnitsPressure
instance which is anIObject
meaning that its ID is sufficient for identifying equality.- Specified by:
getUnit
in interface_PressureOperations
- Parameters:
current
- The Current object for the invocation.
-
setUnit
public void setUnit(UnitsPressure unit, Ice.Current current)
- Specified by:
setUnit
in interface_PressureOperations
-
getSymbol
public java.lang.String getSymbol(Ice.Current current)
Description copied from interface:_PressureOperations
Returns the possibly unicode representation of the ""unit"" value for display.- Specified by:
getSymbol
in interface_PressureOperations
- Parameters:
current
- The Current object for the invocation.
-
copy
public Pressure copy(Ice.Current ignore)
- Specified by:
copy
in interface_PressureOperations
-
copyObject
public void copyObject(ome.util.Filterable model, ome.util.ModelMapper mapper)
- Specified by:
copyObject
in interfaceome.model.ModelBased
-
fillObject
public ome.util.Filterable fillObject(ome.util.ReverseModelMapper mapper)
- Specified by:
fillObject
in interfaceome.model.ModelBased
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-