@Embeddable public class Time extends Object implements Serializable, Filterable, Unit
UnitsTime
instance. As
also described in the remoting definition (.ice) for Time, 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 |
---|
Time()
Deprecated.
|
Time(double d,
String u) |
Time(double d,
Unit<Time> unit) |
Time(double d,
UnitsTime u) |
Time(Time value) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter filter) |
static Time |
convertTime(Time 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 Time |
convertTime(Time value,
String target) |
static Time |
convertTime(Time value,
Unit<Time> ul) |
boolean |
equals(Object obj) |
UnitsTime |
getUnit()
Many-to-one field ome.model.units.Time.unit (ome.model.enums.UnitsTime).
|
double |
getValue()
value of this unit-field.
|
int |
hashCode() |
static UnitsTime |
makeTimeUnitXML(String unit) |
static Time |
makeTimeXML(double d,
String unit) |
void |
setUnit(UnitsTime unit) |
void |
setValue(double value) |
String |
toString() |
public static final String VALUE
public static final String UNIT
@Deprecated public Time()
public Time(double d, String u)
public Time(double d, UnitsTime u)
public Time(Time value)
public static Time convertTime(Time t)
public double getValue()
Time
will be stored in a column "planeInfoexposureTime".public UnitsTime getUnit()
value
for physicalSizeX will be stored as "planeInfo.exposureTime", the unit enum
will be stored as "planeInfo.exposureTimeUnit".public void setUnit(UnitsTime 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.