org.simantics.databoard.accessor.interestset
Class MapInterestSet

java.lang.Object
  extended by org.simantics.databoard.accessor.interestset.InterestSet
      extended by org.simantics.databoard.accessor.interestset.MapInterestSet

public class MapInterestSet
extends InterestSet

Interest set of a Map Type.

Author:
Toni Kalajainen
See Also:
MapType

Field Summary
 InterestSet componentInterest
          Interest in the contents of values (includes assignment notification and new values)
 java.util.Map<Variant,InterestSet> componentInterests
          Interest in the contents of values by key (includes assignment notification and new values)
 boolean notification
          Interested in the notifications of entry assignments, add and removal (excludes the value)
 Variant[] notifications
          Interested in the notifications of entry assignments by key (excludes the value).
 boolean value
          Interested in new values of entry assignments (includes notification, excludes composite changes)
 Variant[] values
          Interested in new values of entry assignments by key (includes notification, excludes composite changes).
 
Constructor Summary
MapInterestSet(boolean notification, Variant[] notifications, boolean value, Variant[] values, InterestSet componentInterest, java.util.Map<Variant,InterestSet> componentInterests)
          Create a map interest set
 
Method Summary
 InterestSet getComponentInterest()
          Get the interest of component type of every value.
 InterestSet getComponentInterest(Variant key)
          Get the interest of component type of entries of key.
 boolean inNotifications()
          Returns true, if interested in notification of entry add, removal or replacement of container.
 boolean inNotificationsOf(Variant key)
          Returns true, if interested in notification of entry add, removal or replacement of container of specific keys.
 boolean inValues()
          Returns true, if interested in notifications and values of entry assignments.
 boolean inValuesOf(Variant key)
          Returns true, if interested in notifications and values of entry assignments of key.
 
Methods inherited from class org.simantics.databoard.accessor.interestset.InterestSet
newInterestSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

notification

public boolean notification
Interested in the notifications of entry assignments, add and removal (excludes the value)


notifications

public Variant[] notifications
Interested in the notifications of entry assignments by key (excludes the value). Sorted array of keys


value

public boolean value
Interested in new values of entry assignments (includes notification, excludes composite changes)


values

public Variant[] values
Interested in new values of entry assignments by key (includes notification, excludes composite changes). Sorted array of keys


componentInterest

public InterestSet componentInterest
Interest in the contents of values (includes assignment notification and new values)


componentInterests

public java.util.Map<Variant,InterestSet> componentInterests
Interest in the contents of values by key (includes assignment notification and new values)

Constructor Detail

MapInterestSet

public MapInterestSet(boolean notification,
                      Variant[] notifications,
                      boolean value,
                      Variant[] values,
                      InterestSet componentInterest,
                      java.util.Map<Variant,InterestSet> componentInterests)
Create a map interest set

Parameters:
notification - interested in add, remove and change notifications of entry assignments
notifications - interested in add, remove and change to assignment of all specific entries
value - interested in add, remove and change to assignment of all entries, incl. new values
values - interested in add, remove and change to assignment of all specific entries, incl. new values
componentInterest - Interest of the changes of values and their sub-value changes of all entries
componentInterests - Interest of the changes of values and their sub-value changes of specific entries
Method Detail

inNotifications

public boolean inNotifications()
Returns true, if interested in notification of entry add, removal or replacement of container. This doesn't include interest in the new value

Specified by:
inNotifications in class InterestSet
Returns:
true if interested in notifications

inNotificationsOf

public boolean inNotificationsOf(Variant key)
Returns true, if interested in notification of entry add, removal or replacement of container of specific keys. This doesn't include interest in the new value.

Returns:
true if interested in notifications of a specific entry

inValues

public boolean inValues()
Returns true, if interested in notifications and values of entry assignments.

Specified by:
inValues in class InterestSet
Returns:
true, if interested in values of entry assignments.

inValuesOf

public boolean inValuesOf(Variant key)
Returns true, if interested in notifications and values of entry assignments of key.

Returns:
true, if interested in values of specific entry

getComponentInterest

public InterestSet getComponentInterest()
Get the interest of component type of every value.

Returns:
interest of component or null

getComponentInterest

public InterestSet getComponentInterest(Variant key)
Get the interest of component type of entries of key.

Returns:
interest of component or null