setvalue
Purpose
Synopsis
procedure setvalue(obj:jvmobject,val:integer)
procedure setvalue(obj:jvmobject,val:real)
procedure setvalue(obj:jvmobject,val:boolean)
procedure setvalue(obj:jvmobject,val:string)
procedure setvalue(obj:jvmobject,val:text)
procedure setboolvalue(obj:jvmobject,val:boolean)
procedure setbytevalue(obj:jvmobject,val:integer)
procedure setcharvalue(obj:jvmobject,val:text)
procedure setfloatvalue(obj:jvmobject,val:real)
procedure setintvalue(obj:jvmobject,val:integer)
procedure setlongvalue(obj:jvmobject,val:real)
procedure setrealvalue(obj:jvmobject,val:real)
procedure setshortvalue(obj:jvmobject,val:integer)
procedure setstrvalue(obj:jvmobject,val:string)
procedure settextvalue(obj:jvmobject,val:text)
Arguments
|
obj
|
The object reference to set
|
|
val
|
The value to store
|
Further information
1. This will create a Java object to hold the passed value and store its reference within the
jvmobject. This reference will automatically be deleted when the model ends, or the
jvmobject variable is reset or falls out of scope, or
setvalue or
setnull is called for this object.
2. When calling
setvalue, the
jvmobject will be populated with a
java.lang.Integer,
java.lang.Double,
java.lang.Boolean or
java.lang.String, depending on the type. To specify a different type, call one of the procedures with the type in the name, such as setshortvalue.
3. When calling
setcharvalue, the passed value must be a
text containing a single character. The model will abort with a runtime error if the value is an empty string or contains multiple characters.
4. Deletes any reference to a Java object that was previously held by the
jvmobject. If there are no other references to the Java object, it may become eligible for garbage collection in the usual Java way.
5. If
mosjvm has not yet loaded the Java Virtual Machine into the Mosel process, it will be loaded by this function. If Java cannot be found or an error occurs loading it, the model will terminate with a runtime error.
Related topics
getisnull,
getboolvalue,
getbytevalue,
getcharvalue,
getfloatvalue,
getintvalue,
getlongvalue,
getrealvalue,
getshortvalue,
getstrvalue,
gettextvalue
© 2001-2022 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation ("FICO"). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
