Adds a value in the full text search attribute set.
Elects all the part instances having the attribute whose name set with setAttributeName
in their joined attribute set that have a value that contains at least one of the values in the given string array.
Use addEventListener on the event FilterDataChanged to know when the FilterAttributeInterface data changed.
Do not forget to call update to trigger a recomputation of the changed filters when you have done all your changes.
Making this call is not legal if hasNaValueActivated and hasNaValueAvailable return true. In this case, the call is disregarded (the FilterAttributeInterface is left unchanged) and returns false.
true if the FilterAttributeInterface is updated.
search attribute set.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.
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).
Adds a value in the exact search attribute set.
Elects all the part instances having the attribute whose name set with setAttributeName
in their joined attribute set that have a value in the exact search attribute set.
Use addEventListener on the event FilterDataChanged to know when the FilterAttributeInterface data changed.
Do not forget to call update to trigger a recomputation of the changed filters when you have done all your changes.
search attribute set.Gets rid of this object.
After this call, this object can no longer be used.
If the object is an InfiniteObjectDispatcherInterface, then the ObjectDisposed signal is emitted.
Further uses of the object (with the exception of isDisposed and getInfiniteObjectType) will log a message with LL_UsingDisposedObject.
Gets the operator to apply with this FilterItemInterface and its closest enabled predecessor in its parent container.
The FilterItemInterface operator of the first enabled FilterItemInterface in a parent list (FilterSolverInterface, FilterSetInterface, FilterCompoundInterface) is always ignored, but a warning is outputted in the console when the FilterOperator is different that FO_UNION.
A FilterItemInterface has the FO_UNION operator by default.
The operator to combine this FilterItemInterface and its first enabled predecessor.
Tells the type of the given interface.
The type of the given interface.
Gets the identifier of the parent container that contains this FilterItemInterface (getFilterId()).
Such a container may be a FilterSolverInterface, FilterSetInterface or a FilterCompoundInterface. Returns an empty string if the FilterItemInterface is not included in a parent container.
The identifier of the parent container.
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 the N/A value handling should be used if available.
This boolean property tells if the N/A value should be handled
in order to use or discard the N/A value if the given attribute is enumerable.
The hasNaValueActivated boolean property is not changed when setAttributeName is called.
The hasNaValueActivated is true as default.
This call returns the internal property : it is legal that hasNaValueAvailable returns false and hasNaValueActivated returns true.
NB : this does not include necessarily part instances with a N/A value, setNaValueChecked(true) should
be called in order to include part instances with the N/A value.
true if the N/A value handling is activated.
Tells if the N/A value is available.
The N/A value is available if setAttributeName is called with an
attribute that has isEnumerable true.
This property is updated only on a setAttributeName call.
true is the filter has the NA value available.
Tells if this object has been gotten rid off.
true if dispose has been called on this object.
Tells if the FilterItemInterface is enabled.
If disabled, this FilterItemInterface is completely ignored during all the computations (the behavior is the same as if it had not been created).
A FilterItemInterface is enabled by default.
true if the FilterItemInterface is enabled.
Tells if the FilterItemInterface is "inverted".
When "inverted", a FilterItemInterface elects all the part instances that were not selected if it was not inverted.
A FilterItemInterface is not "inverted" by default.
true if such a FilterItemInterface is "inverted".
Tells if the N/A value is included in the exact search attribute set.
The FilterAttributeInterface has an internal property that tells to include part instances with the N/A value
if if is available (setNaValueChecked),
but isNaValueChecked will return true if and only if hasNaValueActivated, hasNaValueAvailable and
this internal property are true.
This internal property is not reset on a setAttributeName call.
It is legal to make setNaValueChecked(true) but isNaValueChecked returns false.
This internal property is true as default.
true if the N/A value is included in the exact search attribute set.
Removes a value from the full text search attribute set.
Elects all the part instances having the attribute whose name set with setAttributeName
in their joined attribute set that have a value that contains at least one of the values in the given string array.
Use addEventListener on the event FilterDataChanged to know when the FilterAttributeInterface data changed.
Do not forget to call update to trigger a recomputation of the changed filters when you have done all your changes.
Making this call is not legal if hasNaValueActivated and hasNaValueAvailable return true. In this case, the call is disregarded (the FilterAttributeInterface is left unchanged) and returns false.
true if the call is legal and such a value was found in the full text search attribute set and therefore the FilterAttributeInterface
was modified.
search attribute set.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.
true if the callback was removed else false.
The listener function that gets removed.
The listener object that was used when addEventListener was called.
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.
true if the callback was removed else false.
The listener function that gets removed.
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.
Removes a value from the exact search attribute set.
Elects all the part instances having the attribute whose name set with setAttributeName
in their joined attribute set that have a value exactly included in the exact search attribute set.
Use addEventListener on the event FilterDataChanged to know when the FilterAttributeInterface data changed.
Do not forget to call update to trigger a recomputation of the changed filters when you have done all your changes.
true if such a value was found in the exact search attribute set and therefore the FilterAttributeInterface
was modified.
search attribute set.Sets the name of the attribute to filter with.
Calling this function with the same attribute name
that was set previously does nothing and returns true. If the attribute name is
changed and valid, this function will clear any values previously set by
setExactValues, setContainsValues.
Calling this function with an unknown attribute, or an attribute that does
not have a string value is illegal. In that case, the FilterAttributeInterface
is left unchanged and false is returned.
Please refer to the getDictionary to get the
list of available attributes and their types.
Use addEventListener on the event FilterDataChanged to know when the FilterAttributeInterface data changed.
A FilterAttributeInterface has an empty (invalid) attribute name by default.
true if the new attribute name was set and legal.
Sets the full text search attribute set.
Elects all the part instances having the attribute whose name set with setAttributeName
in their joined attribute set that have a value that contains at least one of the values in the given string array.
Use addEventListener on the event FilterDataChanged to know when the FilterAttributeInterface data changed.
Do not forget to call update to trigger a recomputation of the changed filters when you have done all your changes.
Making this call is not legal if hasNaValueActivated and hasNaValueAvailable return true. In this case, the call is disregarded (the FilterAttributeInterface is left unchanged) and returns false.
If the call is legal, there is no check to make sure the new search attribute set is different from the former
search attribute set. In this case, the FilterAttributeInterface is modified and
recomputed even if the search attribute set is not modified.
true if the FilterAttributeInterface is updated.
Sets the FilterItemInterface enabled/disabled status.
If disabled, this FilterItemInterface is completely ignored during all the computations (the behavior is the same as if it had not been created). Use addEventListener on the event FilterEnabledChanged to know when the FilterItemInterface has changed its enabled status.
A FilterItemInterface is enabled by default.
Sets the exact search attribute set.
Elects all the part instances having the attribute whose name set with setAttributeName
in their joined attribute set that have a value exactly included in the given string array.
Use addEventListener on the event FilterDataChanged to know when the FilterAttributeInterface data changed.
Do not forget to call update to trigger a recomputation of the changed filters when you have done all your changes.
There is no check to make sure the new search attribute set is different from the former
search attribute set. In this case, the FilterAttributeInterface is modified and
recomputed even if the search attribute set is not modified.
Sets the content of the FilterItemInterface from a former call to getFilterData.
Use addEventListener on the event FilterDataChanged to know when the FilterItemInterface internal data changed.
true if the data is set.
Sets the operator to apply with this FilterItemInterface and its closest enabled predecessor in its parent container.
The FilterItemInterface operator of the first enabled FilterItemInterface in a parent list (FilterSolverInterface, FilterSetInterface, FilterCompoundInterface) is always ignored, but a warning is outputted in the console when the FilterOperator is different that FO_UNION. Use addEventListener on the event FilterInvertedChanged to know when the FilterItemInterface operator changed.
A FilterItemInterface has the FO_UNION operator by default.
Sets the "inverted" status of the FilterItemInterface.
When "inverted", a FilterItemInterface elects all the part instances that were not selected if it was not inverted.
Use addEventListener on the event FilterInvertedChanged
to know when the FilterItemInterface has changed its "inverted" status.
A FilterItemInterface is not "inverted" by default.
Enables/disables the N/A value handling if it is available.
This boolean property tells if the N/A value should be handled (hasNaValueActivated)
in order to use or discard the N/A value if the given attribute is enumerable.
The hasNaValueActivated boolean property is not changed when setAttributeName is called.
The hasNaValueActivated is true as default.
Remember that If you want to use the setContainsValues function, you will have to make a
{@link setNaValueActivated | setNaValueActivated(false);} call.
NB : this does not include necessarily part instances with a N/A value, setNaValueChecked(true) should
be called in order to include part instances with the N/A value.
N/A value handling.Includes/removes the N/A value in the exact search attribute set.
Sets if part instances with the N/A value should be included in the FilterAttributeInterface.
The FilterAttributeInterface has an internal property that tells to include part instances with the N/A value
if if is available, this call updates this internal property,
but isNaValueChecked will return true if and only if hasNaValueActivated, hasNaValueAvailable and
this internal property are true.
This internal property is not reset on a setAttributeName call.
It is legal to make setNaValueChecked(true) but isNaValueChecked returns false.
This internal property is true as default.
Returns true if the call will change the content of the FilterAttributeInterface, e.g. calling setNaValueChecked when hasNaValueActivated or hasNaValueActivated is false will return false.
true if the FilterAttributeInterface is updated.
N/A value should be included/removed in the exact
search attribute set.
The FilterAttributeInterface interface is a FilterItemInterface to elect
part instancesfrom their string attributes metadata.This FilterItemInterface selects
part instancesbased on their string attributes or their parent string attributes (as defined in Documents). Eachpart instanceis considered to have the union between their own attributes and the attributes of its genealogy (parent, grand-parent, etc ...) : thejoined attribute set.The list of attributes and their types is available through the getDictionary function.
The FilterAttributeInterface defines 2 sets of string values : two
search attribute sets:search attribute set.search attribute set.This FilterItemInterface selects
part instanceshaving a string attribute inside theirjoined attribute setwhose value :search attribute set(an item in the exactsearch attribute setis exactly the value of the attribute).search attribute set.If the given attribute has only a limited number of possible values across the DMU (less than 1024), and its values are not too large, then such a string attribute is
enumerable(see isEnumerable). If an attribute isenumerable, then the special valueN/A(not applicable) is available and selected as default (hasNaValueAvailable, setNaValueActivated, setNaValueChecked). The special valueN/Aselects all otherpart instancesthan the union of all possible values of such a string attribute. Due to this special handling and implementation details, using theN/Avalue is not compatible with using the setContainsValues function. Moreover, the N/A value is not available if the FilterAttributeInterface is used inside a FilterCompoundInterface. Any FilterAttributeInterface on anenumerableattribute has hasNaValueAvailabletrue. The hasNaValueAvailable is updated only on a setAttributeName call.The FilterAttributeInterface has also a boolean property telling if the
N/Avalue should be handled (setNaValueActivated, hasNaValueActivated) in order to use or discard theN/Avalue if the given attribute isenumerable. The hasNaValueActivated boolean property is not changed when setAttributeName is called. The hasNaValueActivated is true as default.If you want to use the setContainsValues function, you will have to make a
setNaValueActivated(false);call.Finally, the FilterAttributeInterface has an internal property telling to use the
N/Avalue if it is available (setNaValueChecked, isNaValueChecked), this internal property is only changed on a setNaValueChecked call, but isNaValueChecked will return true only if hasNaValueActivated, hasNaValueAvailable and this internal property are true. This internal property is true as default.In the case of a setContainsValues call, the
search attribute setis a full text search. It is case insensitive and allows the use of wildcards symbols :?replaces one and only one character,*replaces any number of characters (by default, the engine prefixes and postfixes the search with*)$prevents the default addition of the prefix or postfix*wildcard (if$is positioned at the beginning of the text, no*prefix added; if$is positioned at the end, no*postfix added). This allows to make queries like : gets all thepart instanceswhose type begins by "electrical" ($electrical). Please see 3djuump infinite literal and search query language for more information about using special characters.The FilterAttributeInterface interface is created through the createFilterAttribute.
The FilterAttributeInterface has the type FT_ATTRIBUTE (getFilterType).
The FilterAttributeInterface has a depth contribution of 2.
Please refer to Available Filters for a list of other [FilterItemInterfaces](FilterItemInterface.html).
See