org.simantics.databoard.accessor.interestset
Class UnionInterestSet

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

public class UnionInterestSet
extends InterestSet

Interest set of Union Type.

Author:
Toni Kalajainen
See Also:
UnionType

Field Summary
 InterestSet[] componentInterests
          Component intersts, null if no specific interest
static UnionInterestSet MONITOR_EVERYTHING
           
 boolean notification
          Interested in the notifications (excludes the value)
 boolean value
          Interested in the value (includes notification)
 
Constructor Summary
UnionInterestSet(boolean notification, boolean value, InterestSet[] componentInterests)
           
 
Method Summary
 InterestSet getComponentInterest(int tag)
          Get interest in the component value.
 boolean inNotifications()
          Returns true, if interested in notification.
 boolean inNotificationsOf(int tag)
           
 boolean inValues()
          Returns true, if interested in the value
 boolean inValuesOf(int tag)
           
 
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

MONITOR_EVERYTHING

public static final UnionInterestSet MONITOR_EVERYTHING

notification

public boolean notification
Interested in the notifications (excludes the value)


value

public boolean value
Interested in the value (includes notification)


componentInterests

public InterestSet[] componentInterests
Component intersts, null if no specific interest

Constructor Detail

UnionInterestSet

public UnionInterestSet(boolean notification,
                        boolean value,
                        InterestSet[] componentInterests)
Method Detail

inNotifications

public boolean inNotifications()
Returns true, if interested in notification.

Specified by:
inNotifications in class InterestSet
Returns:
true, if interested in notification

inNotificationsOf

public boolean inNotificationsOf(int tag)

inValues

public boolean inValues()
Returns true, if interested in the value

Specified by:
inValues in class InterestSet
Returns:
true, if interested in the value

inValuesOf

public boolean inValuesOf(int tag)

getComponentInterest

public InterestSet getComponentInterest(int tag)
Get interest in the component value.

Returns:
component interest or null