org.simantics.databoard.accessor.interestset
Class RecordInterestSet

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

public class RecordInterestSet
extends InterestSet

Interest set of a Record Type.

Author:
Toni Kalajainen
See Also:
RecordType

Field Summary
 InterestSet[] componentInterests
          Component Interests by field, null array/element if no interest.
 boolean notification
          Interested in the _change_ to field assignments (excludes the value)
 boolean[] notifications
          Interested in the _change_ by field, null array/element if no interest
 boolean value
          Interested in all values
 boolean[] values
          Interested in values by field
 
Constructor Summary
RecordInterestSet(boolean notification, boolean[] specificNotifications, boolean value, boolean[] specificValues, InterestSet[] componentInterests)
           
 
Method Summary
 InterestSet getComponentInterest(int fieldIndex)
          Get composite intrest for the element at fieldIndex
 boolean inComponentNotifications()
          Return true there is notification interest to any component
 boolean inNotifications()
          Returns true, if interested in notifications of changes to any field assignment
 boolean inNotificationsOf(int fieldIndex)
          Returns true, if interested in assignment of the field at fieldIndex
 boolean inValues()
          Returns true, if interested in value of all elements
 boolean inValuesOf(int fieldIndex)
          Returns true, if interested in the complete value of the field at fieldIndex.
 
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 _change_ to field assignments (excludes the value)


notifications

public boolean[] notifications
Interested in the _change_ by field, null array/element if no interest


value

public boolean value
Interested in all values


values

public boolean[] values
Interested in values by field


componentInterests

public InterestSet[] componentInterests
Component Interests by field, null array/element if no interest.

Constructor Detail

RecordInterestSet

public RecordInterestSet(boolean notification,
                         boolean[] specificNotifications,
                         boolean value,
                         boolean[] specificValues,
                         InterestSet[] componentInterests)
Method Detail

inNotifications

public boolean inNotifications()
Returns true, if interested in notifications of changes to any field assignment

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

inNotificationsOf

public boolean inNotificationsOf(int fieldIndex)
Returns true, if interested in assignment of the field at fieldIndex

Parameters:
fieldIndex -
Returns:
true, if interested in notifications of the field at fieldIndex

inValues

public boolean inValues()
Returns true, if interested in value of all elements

Specified by:
inValues in class InterestSet
Returns:
true, if interested in values of all elements

inValuesOf

public boolean inValuesOf(int fieldIndex)
Returns true, if interested in the complete value of the field at fieldIndex.

Parameters:
fieldIndex -
Returns:
true, if interested in the values of the field at fieldIndex

getComponentInterest

public InterestSet getComponentInterest(int fieldIndex)
Get composite intrest for the element at fieldIndex

Parameters:
fieldIndex -
Returns:
interest of component or null

inComponentNotifications

public boolean inComponentNotifications()
Return true there is notification interest to any component

Returns:
true if there is interest in changes of components