Methods
-
<static> castAnyValue(value)
-
Convert a property value coming from the database to a sync if it is an object reference. Otherwise, return the value as is.
Parameters:
Name Type Description value
* Returns:
- Type
- *
-
<static> castAsOType(value)
-
Cast primitive JS types to Olympe types
Parameters:
Name Type Description value
* Returns:
- Type
- olympe.df.OBoolean | olympe.df.ONumber | olympe.df.OString | olympe.df.ODateTime | *
-
<static> castValueAsBoolean(value)
-
Converts a property value coming from the GraphDB to an
OBoolean
.Parameters:
Name Type Description value
* The raw value to convert.
Returns:
The result of the conversion, or
null
if it failed.- Type
- olympe.df.OBoolean
-
<static> castValueAsColor(value)
-
Converts a property value coming from the GraphDB to a
Color
.Parameters:
Name Type Description value
* The raw value to convert.
Returns:
The result of the conversion, or
null
if it failed.- Type
- olympe.df.Color
-
<static> castValueAsDateTime(value)
-
Converts a property value coming from the GraphDB to an
ODateTime
.Parameters:
Name Type Description value
* The raw value to convert.
Returns:
The result of the conversion, or
null
if it failed.- Type
- olympe.df.ODateTime
-
<static> castValueAsNumber(value)
-
Converts a property value coming from the GraphDB to an
ONumber
Parameters:
Name Type Description value
* The raw value to convert.
Returns:
The result of the conversion, or
null
if it failed.- Type
- olympe.df.ONumber
-
<static> castValueAsString(value)
-
Converts a property value coming from the GraphDB to an
OString
.Parameters:
Name Type Description value
* The raw value to convert.
Returns:
The result of the conversion, or
null
if it failed.- Type
- olympe.df.OString
-
<static> castValueAsSync(value)
-
Converts a property value coming from the GraphDB to a
Sync
.Parameters:
Name Type Description value
* The raw value to convert.
Returns:
The result of the conversion, or
null
if it failed. -
<static> getCasterFor(valueType)
-
Returns the
olympe.dc.CloudObject.ValueCaster
corresponding to the type passed in argument. If there isn't any, it will return a 'no-op' caster.Parameters:
Name Type Description valueType
function Returns: