@Embeddable public class Length extends java.lang.Object implements java.io.Serializable, Filterable, Unit
UnitsLength
instance. As
also described in the remoting definition (.ice) for Length, 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 |
---|
Length()
Deprecated.
|
Length(double d,
java.lang.String u) |
Length(double d,
ome.units.unit.Unit<ome.units.quantity.Length> unit) |
Length(double d,
UnitsLength u) |
Length(ome.units.quantity.Length value) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptFilter(Filter filter) |
static ome.units.quantity.Length |
convertLength(Length 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 Length |
convertLength(Length value,
java.lang.String target) |
static Length |
convertLength(Length value,
ome.units.unit.Unit<ome.units.quantity.Length> ul) |
boolean |
equals(java.lang.Object obj) |
UnitsLength |
getUnit()
Many-to-one field ome.model.units.Length.unit (ome.model.enums.UnitsLength).
|
double |
getValue()
value of this unit-field.
|
int |
hashCode() |
static ome.xml.model.enums.UnitsLength |
makeLengthUnitXML(java.lang.String unit) |
static ome.units.quantity.Length |
makeLengthXML(double d,
java.lang.String unit) |
void |
setUnit(UnitsLength 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 Length()
public Length(double d, java.lang.String u)
public Length(double d, UnitsLength u)
public Length(double d, ome.units.unit.Unit<ome.units.quantity.Length> unit)
public Length(ome.units.quantity.Length value)
public static ome.xml.model.enums.UnitsLength makeLengthUnitXML(java.lang.String unit)
public static ome.units.quantity.Length makeLengthXML(double d, java.lang.String unit)
public static ome.units.quantity.Length convertLength(Length t)
public static Length convertLength(Length value, ome.units.unit.Unit<ome.units.quantity.Length> ul)
public double getValue()
Length
will be stored in a column "pixelsphysicalSizeX".public UnitsLength getUnit()
value
for physicalSizeX will be stored as "pixels.physicalSizeX", the unit enum
will be stored as "pixels.physicalSizeXUnit".public void setUnit(UnitsLength 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
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.