Package omero.model
Class LengthI
- java.lang.Object
- 
- Ice.ObjectImpl
- 
- omero.model.Length
- 
- omero.model.LengthI
 
 
 
- 
- All Implemented Interfaces:
- Ice.Object,- java.io.Serializable,- java.lang.Cloneable,- ome.model.ModelBased,- _LengthOperations,- _LengthOperationsNC
 
 public class LengthI extends Length implements ome.model.ModelBased Blitz wrapper around theLengthclass. LikeDetailsandPermissions, this object is embedded into other objects and does not have a full life cycle of its own.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description LengthI()LengthI(double d, ome.model.enums.UnitsLength ul)Copy constructor that converts the givenLengthbased on the given ome.model enumLengthI(double d, ome.units.unit.Unit<ome.units.quantity.Length> unit)LengthI(double d, UnitsLength unit)LengthI(ome.units.quantity.Length value)Convert a Bio-FormatsLengthto an OMERO Length.LengthI(Length value, java.lang.String target)Copy constructor that converts the givenLengthbased on the given enum string.LengthI(Length value, ome.units.unit.Unit<ome.units.quantity.Length> ul)Copy constructor that converts the givenLengthbased on the given ome-xml enumLengthI(Length value, UnitsLength target)Copy constructor that converts between units if possible.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ome.units.quantity.Lengthconvert(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)!", e); return new PositiveFloat(1.0); or similar.Lengthcopy(Ice.Current ignore)voidcopyObject(ome.util.Filterable model, ome.util.ModelMapper mapper)booleanequals(java.lang.Object obj)ome.util.FilterablefillObject(ome.util.ReverseModelMapper mapper)java.lang.StringgetSymbol(Ice.Current current)Returns the possibly unicode representation of the ""unit"" value for display.UnitsLengthgetUnit(Ice.Current current)UnitsLengthinstance which is anIObjectmeaning that its ID is sufficient for identifying equality.doublegetValue(Ice.Current current)Actual value for this unit-based field.inthashCode()static java.lang.StringlookupSymbol(UnitsLength unit)static Ice.ObjectFactorymakeFactory(client client)static ome.units.quantity.LengthmakeXMLQuantity(double d, java.lang.String unit)static ome.xml.model.enums.UnitsLengthmakeXMLUnit(java.lang.String unit)voidsetUnit(UnitsLength unit, Ice.Current current)voidsetValue(double value, Ice.Current current)java.lang.StringtoString()- 
Methods inherited from class omero.model.Length___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- 
LengthIpublic LengthI() 
 - 
LengthIpublic LengthI(double d, UnitsLength unit)
 - 
LengthIpublic LengthI(double d, ome.units.unit.Unit<ome.units.quantity.Length> unit)
 - 
LengthIpublic LengthI(Length value, ome.units.unit.Unit<ome.units.quantity.Length> ul) throws ome.model.units.BigResult Copy constructor that converts the givenLengthbased on the given ome-xml enum- Throws:
- ome.model.units.BigResult
 
 - 
LengthIpublic LengthI(double d, ome.model.enums.UnitsLength ul)Copy constructor that converts the givenLengthbased on the given ome.model enum
 - 
LengthIpublic LengthI(Length value, java.lang.String target) throws ome.model.units.BigResult Copy constructor that converts the givenLengthbased 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), anIllegalArgumentExceptionwill be thrown. If the conversion results in an overflow, aBigResultwill 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
 
 - 
LengthIpublic LengthI(Length value, UnitsLength 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
 
 - 
LengthIpublic LengthI(ome.units.quantity.Length value) Convert a Bio-FormatsLengthto an OMERO Length.
 
- 
 - 
Method Detail- 
lookupSymbolpublic static java.lang.String lookupSymbol(UnitsLength unit) 
 - 
makeFactorypublic static final Ice.ObjectFactory makeFactory(client client) 
 - 
makeXMLUnitpublic static ome.xml.model.enums.UnitsLength makeXMLUnit(java.lang.String unit) 
 - 
makeXMLQuantitypublic static ome.units.quantity.Length makeXMLQuantity(double d, java.lang.String unit)
 - 
convertpublic static ome.units.quantity.Length convert(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)!", e); return new PositiveFloat(1.0); or similar.
 - 
getValuepublic double getValue(Ice.Current current) Description copied from interface:_LengthOperationsActual value for this unit-based field. The interpretation of the value is only possible along with theUnitsLengthenum.- Specified by:
- getValuein interface- _LengthOperations
- Parameters:
- current- The Current object for the invocation.
 
 - 
setValuepublic void setValue(double value, Ice.Current current)- Specified by:
- setValuein interface- _LengthOperations
 
 - 
getUnitpublic UnitsLength getUnit(Ice.Current current) Description copied from interface:_LengthOperationsUnitsLengthinstance which is anIObjectmeaning that its ID is sufficient for identifying equality.- Specified by:
- getUnitin interface- _LengthOperations
- Parameters:
- current- The Current object for the invocation.
 
 - 
setUnitpublic void setUnit(UnitsLength unit, Ice.Current current) - Specified by:
- setUnitin interface- _LengthOperations
 
 - 
getSymbolpublic java.lang.String getSymbol(Ice.Current current) Description copied from interface:_LengthOperationsReturns the possibly unicode representation of the ""unit"" value for display.- Specified by:
- getSymbolin interface- _LengthOperations
- Parameters:
- current- The Current object for the invocation.
 
 - 
copypublic Length copy(Ice.Current ignore) - Specified by:
- copyin interface- _LengthOperations
 
 - 
copyObjectpublic void copyObject(ome.util.Filterable model, ome.util.ModelMapper mapper)- Specified by:
- copyObjectin interface- ome.model.ModelBased
 
 - 
fillObjectpublic ome.util.Filterable fillObject(ome.util.ReverseModelMapper mapper) - Specified by:
- fillObjectin interface- ome.model.ModelBased
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 
- 
 
-