Adds a listener to an event type.
When an event of the type pType fires, the callback pListener will be called. This function
returns a unique string id that may be used in removeEventListenerById to allow simple
listener removal.
It is possible to add an object that will be included in the callback to avoid creating too many closures.
Calling twice addEventListener with the same parameters results in the second call to be ignored,
only unique pairs callback / object are allowed, in order to avoid calling multiple times the same
thing.
The id of the inserted callback (actually an UUID).
Adds a listener to an event type.
When an event of the type pType fires, the callback pListener will be called. This function
returns a unique string id that may be used in removeEventListenerById to allow simple
listener removal.
The id of the inserted callback (actually an UUID).
Asynchronously asks for a attribute values enumeration.
This call may be used to implement a value completer.
A signal AttributeValuesEnumeratorInterfaceSignal.AttributesEnumerationReady will be sent shortly after telling the AttributeValuesEnumeratorInterface is ready. Then call getEnumerationResult to get the actual results of the call.
No more than 5 AttributeValuesEnumeratorInterface requests can run simultaneously, but only one request can be run at a time for a given AttributeValuesEnumeratorInterface. If you want to run multiple attribute values requests simultaneously, then create multiple AttributeValuesEnumeratorInterfaces.
Returns a promise.
If a request is already running on this AttributeValuesEnumeratorInterface, if initEnumeration failed, if no other values are available (hasOtherValues returns false), or if too many enumeration requests are running simultaneously, the result will be an error.
A promise. The promise is resolved with the reason (success, cancelled, disposed, bad input). In case of success, the promise contains the
requested Array
Cancels a running enumeration request (nextValues).
If the AttributeValuesEnumeratorInterface is running, the current request will be cancelled. If the AttributeValuesEnumeratorInterface is not running, returns false.
true if the running request was cancelled.
Gets rid of this object.
After this call, this object can no longer be used.
If the object is an InfiniteObjectDispatcherInterface, then the InfiniteObjectDispatcherInterfaceSignal.ObjectDisposed signal is emitted.
Further uses of the object (with the exception of isDisposed, getInfiniteObjectType and application id retrieval) will log a message with LogLevel.LL_UsingDisposedObject.
Gets the name of the attribute that was set by initEnumeration.
getAttributeName is empty by default, which is invalid.
The attribute name that was set by initEnumeration.
Gets the request start value of the attribute that was set by initEnumeration.
All attribute values that begins exactly with this value will be retrieved (no fuzzy search). In order to search for all available values, the enumeration request must be set with an empty string.
getEnumerationRequest is empty by default.
The request start value that was set by initEnumeration.
Gets the list of all values from the last call to the nextValues function.
An array of string is returned if the AttributeValuesEnumeratorInterface has finished computing. Use addEventListener on the event AttributeValuesEnumeratorInterfaceSignal.AttributesEnumerationReady to know when the AttributeValuesEnumeratorInterface is ready.
The hasOtherValues tells if more values are available, then you may call nextValues.
DO NOT modify this data in place, this results in undefined behavior.
Tells the type of the given interface.
The type of the given interface.
Gets the last error returned by the attribute values retrieval procedure.
Returns undefined if no error occurred.
The last error.
Each call to nextValues is assigned a request id.
This call tels the id of the last call to nextValues.
The id of the last call to nextValues.
Tells if the EventDispatcher has such a callback registered for the given event type.
true if such a listener is installed for the given type of event.
Tells if future values are available after the last call to the nextValues function.
Current available values may be queried by getEnumerationResult.
Returns true is returned if the AttributeValuesEnumeratorInterface is still computing.
Use addEventListener on the event AttributeValuesEnumeratorInterfaceSignal.AttributesEnumerationReady to
know when the AttributeValuesEnumeratorInterface is ready.
Asks for an attribute values enumeration.
This call cancels any running request on the given AttributeValuesEnumeratorInterface, and sets up a new enumeration. No value is available right now, but nextValues can be called after a successful setup.
If a previous call is cancelled, then a AttributeValuesEnumeratorInterfaceSignal.AttributesEnumerationReady signal is fired during the call with the id of the previous call.
pAttributeName must refer to a valid string attribute.
All values that strictly begins with pStartsWith will be exposed with the call to nextValues.
Warning The meaning of pStartsWith may change in future versions of the api. At the moment, the enumeration is case sensitive, and NO regular expression is allowed.
true if the call succeeded.
Tells if the AttributeValuesEnumeratorInterface has been cancelled.
This is generally the case after calling cancel when the AttributeValuesEnumeratorInterface is retrieving data.
true if the AttributeValuesEnumeratorInterface is cancelled.
Tells if this object has been gotten rid off.
true if dispose has been called on this object.
Tells if a values attribute retrieval procedure is running.
This is the case after calling nextValues.
true if a values attribute retrieval procedure request is running.
Asks for a attribute values enumeration.
This call may be used to implement a value completer.
A signal AttributeValuesEnumeratorInterfaceSignal.AttributesEnumerationReady will be sent shortly after telling the AttributeValuesEnumeratorInterface is ready. Then call getEnumerationResult to get the actual results of the call.
No more than 5 AttributeValuesEnumeratorInterface requests can run simultaneously, but only one request can be run at a time for a given AttributeValuesEnumeratorInterface. If you want to run multiple attribute values requests simultaneously, then create multiple AttributeValuesEnumeratorInterfaces.
Returns false if a request is already running on this AttributeValuesEnumeratorInterface, if initEnumeration failed, if
no other values are available (hasOtherValues returns false), or if too many enumeration requests are running simultaneously.
true if the call succeeded, and then a AttributeValuesEnumeratorInterfaceSignal.AttributesEnumerationReady will be fired shortly after.
Removes a listener from an event type.
If no such listener is found, then the function returns false and does nothing. You must use the exact parameters that were used in addEventListener to actually remove the listener.
The listener function that gets removed.
The listener object that was used when addEventListener was called.
true if the callback was removed else false.
Removes a listener from an event type.
If no such listener is found, then the function returns false and does nothing. You must use the exact parameters that were used in addEventListener to actually remove the listener.
The listener function that gets removed.
true if the callback was removed else false.
Removes a listener by its id.
If no such listener is found, then the function returns false and does nothing. You must use the return value of addEventListener to actually remove the listener.
true if the callback was removed else false.
The AttributeValuesEnumeratorInterface is used to query available values of a string attribute (AttributeInfoInterface).
The AttributeValuesEnumeratorInterface is created from a connected DataSessionInterface by the use of the DataSessionInterface.createAttributeValuesEnumerator function.
or asynchronously :
The AttributeValuesEnumeratorInterface must be used to fully handle FilterAttributeInterface.
See
AttributeValuesEnumeratorInterfaceSignal