public class StringCondition extends AbstractCondition
Condition based on comparison with String set._definition, _enabled, _inverted, _set| Constructor and Description |
|---|
StringCondition(StringConditionDefinition definition) |
StringCondition(StringConditionDefinition definition,
boolean enabled,
boolean inverted) |
StringCondition(StringConditionDefinition definition,
boolean enabled,
boolean inverted,
Collection<String> pass) |
StringCondition(StringConditionDefinition definition,
Collection<String> pass) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
get()
Returns the set of strings that satisfy this condition.
|
StringConditionDefinition |
getDefinition()
Returns ConditionDefinition associated with this condition.
|
String |
getStatus()
Returns status string describing what attribute values satisfy this condition in its current state.
|
boolean |
pass(org.freehep.util.Value value)
Returns true is the value satisfies this condition.
|
void |
reset()
Resets condition to its default state.
|
void |
set(Collection<String> pass)
Sets the set of strings that satisfy this condition.
|
void |
set(Object value)
Sets criteria to be used by this condition.
|
fireStateChanged, getCut, isEnabled, isInverted, setCut, setEnabled, setInverted, toStringpublic StringCondition(StringConditionDefinition definition)
public StringCondition(StringConditionDefinition definition, boolean enabled, boolean inverted)
public StringCondition(StringConditionDefinition definition, Collection<String> pass)
public StringCondition(StringConditionDefinition definition, boolean enabled, boolean inverted, Collection<String> pass)
public boolean pass(org.freehep.util.Value value)
public void set(Collection<String> pass)
public void set(Object value)
public void reset()
reset in interface Conditionreset in class AbstractConditionpublic StringConditionDefinition getDefinition()
getDefinition in interface ConditiongetDefinition in class AbstractConditionpublic String getStatus()
Copyright © 1996-2014 FreeHEP. All Rights Reserved.