CDocBuilderValue
new CDocBuilderValue
Class used by ONLYOFFICE Document Builder for getting the results of called JS commands. It represents a wrapper for a JS object.
The CDocBuilderValue class can be created from the primitive data types:
CDocBuilderValue(boolean value);
CDocBuilderValue(int value);
CDocBuilderValue(double value);
CDocBuilderValue(String value);
CDocBuilderValue(Object[] values);
Methods
Name | Description |
---|---|
call | Calls the specified Document Builder method. |
clear | Clears the object. |
createArray | Creates an array value. |
createNull | Creates a null value. |
createUndefined | Creates an undefined value. |
get | Returns an array value by its index or name. |
getLength | Returns the length if this object is an array. |
getProperty | Returns a property of this object. |
isArray | Returns true if this object is an array. |
isBool | Returns true if this object is a boolean value. |
isDouble | Returns true if this object is a double value. |
isEmpty | Returns true if this object is empty. |
isFunction | Returns true if this object is a function. |
isInt | Returns true if this object is an integer. |
isNull | Returns true if this object is null. |
isObject | Returns true if this object is an object. |
isString | Returns true if this object is a string. |
isUndefined | Returns true if this object is undefined. |
set | Sets an array value by its index or name. |
setProperty | Sets a property to this object. |
toBool | Converts this object to a boolean value. |
toDouble | Converts this object to a double value. |
toInt | Converts this object to an integer. |
toString | Converts this object to a string. |