org.simantics.databoard.accessor.interestset
Class InterestSet

java.lang.Object
  extended by org.simantics.databoard.accessor.interestset.InterestSet
Direct Known Subclasses:
ArrayInterestSet, BooleanInterestSet, ByteInterestSet, DoubleInterestSet, FloatInterestSet, IntegerInterestSet, LongInterestSet, MapInterestSet, OptionalInterestSet, RecordInterestSet, StringInterestSet, UnionInterestSet, VariantInterestSet

public abstract class InterestSet
extends java.lang.Object

InterestSet is a description about what is monitored in a data model.

Author:
Toni Kalajainen

Constructor Summary
InterestSet()
           
 
Method Summary
abstract  boolean inNotifications()
          Returns true, if interested in notifications of modifications, this question excludes an interest to the values.
abstract  boolean inValues()
          Returns true, if interested in notifications of changes and the new values.
static InterestSet newInterestSet(Datatype type, boolean notification, boolean value, boolean recursive)
          Create a new interest set
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterestSet

public InterestSet()
Method Detail

inNotifications

public abstract boolean inNotifications()
Returns true, if interested in notifications of modifications, this question excludes an interest to the values.

Returns:
true if interested in notifications

inValues

public abstract boolean inValues()
Returns true, if interested in notifications of changes and the new values.

Returns:
true if interested in notifications and value

newInterestSet

public static InterestSet newInterestSet(Datatype type,
                                         boolean notification,
                                         boolean value,
                                         boolean recursive)
Create a new interest set

Parameters:
type - the type to create interest set for
notification - interested in notification of changes, not the values
value - interested in values (includes notification)
recursive - interested in values recursivelu (includes notification)