1 /*******************************************************************************
\r
2 * Copyright (c) 2010 Association for Decentralized Information Management in
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.databoard.accessor.interestset;
14 import org.simantics.databoard.type.StringType;
\r
17 * Interest set of a String Type.
20 * @author Toni Kalajainen <toni.kalajainen@vtt.fi>
22 public class StringInterestSet extends InterestSet {
24 public static final StringInterestSet MONITOR_EVERYTHING = new StringInterestSet(true, true);
26 /** Interested in the notification (excludes the value) */
27 public boolean notification = true;
28 /** Interested in the value (includes notification) */
29 public boolean value = true;
31 public StringInterestSet(boolean notification, boolean value) {
32 this.notification = notification;
37 * Returns true, if interested in notifications or the value.
39 * Note, interest to notification alone does not imply interest in the value.
41 * @return true, if interested in notifications.
43 public boolean inNotifications() {
44 return notification | value;
48 * Returns true, if interested in the value
50 * @return true, if interested in the value
52 public boolean inValues() {