Class StringCriterionElement
- java.lang.Object
 - 
- ptolemy.actor.gt.GTIngredientElement
 - 
- ptolemy.actor.gt.ingredients.criteria.CriterionElement
 - 
- ptolemy.actor.gt.ingredients.criteria.StringCriterionElement
 
 
 
 
- 
- Direct Known Subclasses:
 ChoiceCriterionElement
public class StringCriterionElement extends CriterionElement
A string element for a criterion.- Since:
 - Ptolemy II 8.0
 - Version:
 - $Id$
 - Author:
 - Thomas Huining Feng
 - Pt.AcceptedRating:
 - Red (tfeng)
 - Pt.ProposedRating:
 - Yellow (tfeng)
 
 
- 
- 
Constructor Summary
Constructors Constructor Description StringCriterionElement(java.lang.String name, boolean canDisable)Construct a string element for a criterion.StringCriterionElement(java.lang.String name, boolean canDisable, boolean acceptRegularExpression, boolean acceptPtolemyExpression)Construct a Boolean element for a criterion. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptPtolemyExpression()Return whether Ptolemy expression is accepted.booleanacceptRegularExpression()Return whether regular expression is accepted.- 
Methods inherited from class ptolemy.actor.gt.GTIngredientElement
canDisable, getName 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
StringCriterionElement
public StringCriterionElement(java.lang.String name, boolean canDisable)Construct a string element for a criterion.- Parameters:
 name- The name of the element.canDisable- Whether the element can be disabled.
 
- 
StringCriterionElement
public StringCriterionElement(java.lang.String name, boolean canDisable, boolean acceptRegularExpression, boolean acceptPtolemyExpression)Construct a Boolean element for a criterion.- Parameters:
 name- The name of the element.canDisable- Whether the element can be disabled.acceptRegularExpression- Whether regular expression is accepted.acceptPtolemyExpression- Whether Ptolemy expression is accepted.
 
 - 
 
- 
Method Detail
- 
acceptPtolemyExpression
public boolean acceptPtolemyExpression()
Return whether Ptolemy expression is accepted.- Returns:
 - true if Ptolemy expression is accepted.
 
 
- 
acceptRegularExpression
public boolean acceptRegularExpression()
Return whether regular expression is accepted.- Returns:
 - true if regular expression is accepted.
 
 
 - 
 
 -