DOpusFactory
最后更新于
最后更新于
The DOpusFactory object is a helper object that you can use to create various other objects. Unlike the objects that represent existing things (e.g. or ), the objects created by DOpusFactory are independent objects that you can instantiate whenever you need their functionality. The DOpusFactory object is obtained via the .Create method.
Method Name | Arguments | Return Type | Description |
Blob | You can also create a Blob pre-filled with data by specifying the actual byte values (e.g. Blob(72,69,76,76,79)). If another Blob (or an array - see the documentation on the Blob object for a discussion of this) is given then the new Blob will be created as a copy of the existing one. |
BusyIndicator | none |
Command | none |
Date | none or <variant:date> or JScript Date |
|
Filter | none or <string> |
Map | none or <variant:key>, <variant:value>... | The individual keys and values can be different types. |
StringSet | none or <string>, ... |
StringSetI | none or <string>, ... |
StringTools | none |
UnorderedSet | none or variants... |
Vector | If no arguments are provided, the Vector will be empty. If a single integer argument is provided, the Vector will be pre-initialized to that number of elements. If more than one argument is provided, the Vector will be pre-initialized with those elements; for example: The individual elements can be different types. If you want to create a Vector with just a single element, it is best to create an empty Vector and then add the element as a second step. Passing a single element during creation can have unexpected results, as it may be interpreted as one of the other cases. (Many of the scripting objects can be implicitly converted into integers or collections.) |
none or <int:size> or <byte, byte, ...> or <:source>
object:
Returns a new object, that lets you access and manipulate a chunk of binary data from a script. If no parameters are given the new Blob will be empty - you can set its size using the resize method - otherwise you can specify the initial size as a parameter.
object:
Creates a new object, that lets you control the breadcrumbs bar busy indicator from your script.
object:
Creates a new object, that lets you run Opus commands from a script.
object:
Creates a new object. If a date value is provided the new object will be initialized to that value, otherwise the date will be set to the current local time. The provided value can be one of the following:
object:
Creates a new object, which lets you control recursive filtering when running commands from scripts. You can optionally provide a string to initialise the filter with. Check the valid property of the new Filter object to find out whether this string was parsed successfully or not.
object:
Creates a new object. If no arguments are provided, the Map will be empty. Otherwise, the Map will be pre-initialized with the supplied key/value pairs.
//For
object:
Creates a new case-sensitive object. If no arguments are provided, the StringSet will be empty. Otherwise it will be pre-initialized with the supplied strings; for example:
You can also pass an array of strings or object to initialise the set.
object:
Creates a new case-insensitive object. If no arguments are provided, the StringSet will be empty. Otherwise it will be pre-initialized with the supplied strings.
object:
Creates a new object, that provides helper functions for string encoding and decoding.
object:
Creates a new object. If no arguments are provided the UnorderedSet will be empty. Otherwise it will be pre-initialized with the supplied elements.
You can also pass an array or to initialise the set.
none or <int:elements> or variants... or object: or JScript Array
object:
Creates a new object.
You can also pass another or a JScript array, or most enumerable objects, as the argument to initialise the new Vector with the contents of an existing collection.