@Embeddable public class Length extends Object implements 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.| Constructor and Description | 
|---|
| Length()Deprecated.  | 
| Length(double d,
      String u) | 
| Length(double d,
      Unit<Length> unit) | 
| Length(double d,
      UnitsLength u) | 
| Length(Length value) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | acceptFilter(Filter filter) | 
| static 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,
             String target) | 
| static Length | convertLength(Length value,
             Unit<Length> ul) | 
| boolean | equals(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 UnitsLength | makeLengthUnitXML(String unit) | 
| static Length | makeLengthXML(double d,
             String unit) | 
| void | setUnit(UnitsLength unit) | 
| void | setValue(double value) | 
| String | toString() | 
public static final String VALUE
public static final String UNIT
@Deprecated public Length()
public Length(double d,
              String u)
public Length(double d,
              UnitsLength u)
public Length(Length value)
public static UnitsLength makeLengthUnitXML(String unit)
public static Length convertLength(Length t)
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
                
                
Version: 5.2.5-ice35-b28
Copyright © 2016 The University of Dundee & Open Microscopy Environment. All Rights Reserved.