hep.wired.cut
Class StringConditionDefinition
java.lang.Object
hep.wired.cut.AbstractConditionDefinition
hep.wired.cut.StringConditionDefinition
- All Implemented Interfaces:
- ConditionDefinition
public class StringConditionDefinition
- extends AbstractConditionDefinition
- Version:
- $Id: StringConditionDefinition.java 13824 2011-05-04 18:30:02Z onoprien $
- Author:
- Dmitry Onoprienko
Methods inherited from class hep.wired.cut.AbstractConditionDefinition |
addChangeListener, createCondition, fireStateChanged, fireStateChanged, getDescription, getName, getUnit, getValueIsAdjusting, remove, removeChangeListener, removeCondition, setValueIsAdjusting |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringConditionDefinition
public StringConditionDefinition(String name)
StringConditionDefinition
public StringConditionDefinition(String name,
String unit,
String description)
getType
public ConditionDefinition.Type getType()
- Returns the type of this condition.
createCondition
public StringCondition createCondition(boolean enabled,
boolean inverted)
- Returns a new
Condition
object linked to this ConditionDefinition.
setDomain
public void setDomain(Object domain)
- Sets the domain of possible values for the condition.
The argument passed to this method should be a collection of strings.
getDomain
public Set<String> getDomain()
- Returns the domain of possible values for the condition.
The actual return type is an unmodifiable set of strings.
addToDomain
public void addToDomain(org.freehep.util.Value value)
- Updates the domain to ensure it contains the specified value.
addToDomain
public void addToDomain(String value)
- Updates the domain to ensure it contains the specified value.
Copyright © 1996-2013 FreeHEP. All Rights Reserved.