Trees | Indices | Help |
|
---|
|
:
/* * $Id$ * * Copyright 2008 Glencoe Software, Inc. All rights reserved. * Use is subject to license terms supplied in LICENSE.txt * */
|
|||
RBoolI | |||
RDoubleI | |||
RFloatI | |||
RIntI | |||
RLongI | |||
RTimeI | |||
RInternalI | |||
RObjectI | |||
RStringI | |||
RClassI | |||
RArrayI Guaranteed to never contain an empty list. |
|||
RListI Guaranteed to never contain an empty list. |
|||
RSetI Guaranteed to never contain an empty list. |
|||
RMapI | |||
ObjectFactory |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
rtrue = RBoolI(True)
|
|||
rfalse = RBoolI(False)
|
|||
rlong0 = RLongI(0)
|
|||
rint0 = RIntI(0)
|
|||
remptystr = RStringI("")
|
|||
remptyclass = RClassI("")
|
|||
rnullinternal = RInternalI(None)
|
|||
rnullobject = RObjectI(None)
|
|||
ObjectFactories = {RBoolI: ObjectFactory(RBoolI, lambda: RBool
|
Imports: omero, Ice, omero_RTypes_ice, omero_Scripts_ice
|
If None or an RType, return the argument itself. Otherwise, attempts to dispatch to the other omero.rtypes.* static methods to create a proper {@link RType} subclass by checking the type of the input. If no conversion is found, a {@link ClientError} is thrown. Note: unlike the statically typed languages, the rtype implementation in Python is somewhat limited by the lack of types (float v. double) All float-like values will produce an omero.RFloat subclass. Similar problems may arise with rlong and rint |
Returns the argument itself if None or an instance of RBool. Otherwise, checks the value for"trueness" and returns either rtrue or rfalse. |
Returns the argument itself if None or an instance of RDouble. Otherwise, assigns a coerced float to the value of a new RDouble. |
Returns the argument itself if None or an instance of RFloat. Otherwise, assigns a coerced float to the value of a new RFloat. |
Returns the argument itself if None or an instance of RInt. If the argument is 0, rint0 is returned. Otherwise, assigns a coerced int to the value of a new RInt |
Returns the argument itself if None or an instance of RLong. If the argument is 0, rlong 0 is returned. Otherwise, assigns a coerced int to the value of a new RLong |
Returns the argument itself if None or an instance of RTime. Otherwise, assigns a coerced long to the value of a new RTime |
If argument is None, returns rnullinternal. If an RInternal, returns the argument itself. Otherwise creates a new RInternal. |
If argument is None, returns rnullobject. If an RObject, returns the argument itself. Otherwise creates a new RObject |
If argument is None or "", returns emptyclass. If an RClass, returns the argument itself. Otherwise creates a new RClass |
If argument is None or "", returns emptystring. If an RString, returns the argument itself. Otherwise creates a new RString |
|
ObjectFactories
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Oct 18 13:28:32 2011 | http://epydoc.sourceforge.net |