[I] VisibilityFilter
A visibility filter that can be used to determine if a property is visible.
The filter is defined by three sets of visibility modifiers. The filter is satisfied if the property has:
- ALL of the visibilities in the
allset.
AND
- ANY of the visibilities in the
anyset.
AND
- NONE of the visibilities in the
noneset.
Note: The constraints behave similarly to the every and some methods of the Array prototype in JavaScript. If the
any constraint is set to an empty set, it will NEVER be satisfied (similarly, Array.prototype.some will always
return false for an empty array). If the none constraint is set to an empty set, it will ALWAYS be satisfied.
If the all constraint is set to an empty set, it will be satisfied (similarly, Array.prototype.every will always
return true for an empty array).
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
all? | Set<EnumMember> | If set, the filter considers a property visible if it has ALL of these visibility modifiers. If this set is empty, the filter will be satisfied if the other constraints are satisfied. |
any? | Set<EnumMember> | If set, the filter considers a property visible if it has ANY of these visibility modifiers. If this set is empty, the filter will NEVER be satisfied. |
none? | Set<EnumMember> | If set, the filter considers a property visible if it has NONE of these visibility modifiers. If this set is empty, the filter will be satisfied if the other constraints are satisfied. |