ptolemy.actor.gt.ingredients.operations
Class AttributeOperation

java.lang.Object
  extended by ptolemy.actor.gt.GTIngredient
      extended by ptolemy.actor.gt.ingredients.operations.Operation
          extended by ptolemy.actor.gt.ingredients.operations.AttributeOperation

public class AttributeOperation
extends Operation

Since:
Ptolemy II 6.1
Version:
$Id: AttributeOperation.java,v 1.8.4.1 2008/03/25 22:12:14 cxh Exp $
Author:
Thomas Huining Feng
Accepted Rating:
Red (tfeng)
Proposed Rating:
Red (tfeng)

Nested Class Summary
 
Nested classes/interfaces inherited from class ptolemy.actor.gt.GTIngredient
GTIngredient.FieldIterator, GTIngredient.NamedObjMatchResult
 
Field Summary
 
Fields inherited from class ptolemy.actor.gt.GTIngredient
FIELD_SEPARATOR
 
Constructor Summary
AttributeOperation(GTIngredientList owner)
           
AttributeOperation(GTIngredientList owner, java.lang.String values)
           
AttributeOperation(GTIngredientList owner, java.lang.String attributeName, java.lang.String attributeClass, java.lang.String attributeValue)
           
 
Method Summary
protected  void _reparse()
           
 ChangeRequest getChangeRequest(Pattern pattern, Replacement replacement, MatchResult matchResult, Entity patternEntity, Entity replacementEntity, Entity hostEntity)
           
 GTIngredientElement[] getElements()
           
 java.lang.Object getValue(int index)
           
 java.lang.String getValues()
           
 boolean isAttributeClassEnabled()
           
 boolean isAttributeNameEnabled()
           
 boolean isAttributeValueEnabled()
           
 void setAttributeClass(java.lang.String attributeClass)
           
 void setAttributeName(java.lang.String attributeName)
           
 void setAttributeValue(java.lang.String attributeValue)
           
 void setValue(int index, java.lang.Object value)
           
 void setValues(java.lang.String values)
           
 void validate()
           
 
Methods inherited from class ptolemy.actor.gt.GTIngredient
_decodeBooleanField, _decodeStringField, _encodeBooleanField, _encodeStringField, _escapeElementString, _findMatchingParen, _findSeparator, _unescapeElementString, disableAll, enableAll, getOwner, isEnabled, setEnabled, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeOperation

public AttributeOperation(GTIngredientList owner)

AttributeOperation

public AttributeOperation(GTIngredientList owner,
                          java.lang.String values)

AttributeOperation

public AttributeOperation(GTIngredientList owner,
                          java.lang.String attributeName,
                          java.lang.String attributeClass,
                          java.lang.String attributeValue)
Method Detail

getChangeRequest

public ChangeRequest getChangeRequest(Pattern pattern,
                                      Replacement replacement,
                                      MatchResult matchResult,
                                      Entity patternEntity,
                                      Entity replacementEntity,
                                      Entity hostEntity)
                               throws IllegalActionException
Specified by:
getChangeRequest in class Operation
Throws:
IllegalActionException

getElements

public GTIngredientElement[] getElements()
Specified by:
getElements in class GTIngredient

getValue

public java.lang.Object getValue(int index)
Specified by:
getValue in class GTIngredient

getValues

public java.lang.String getValues()
Specified by:
getValues in class GTIngredient

isAttributeClassEnabled

public boolean isAttributeClassEnabled()

isAttributeNameEnabled

public boolean isAttributeNameEnabled()

isAttributeValueEnabled

public boolean isAttributeValueEnabled()

setAttributeClass

public void setAttributeClass(java.lang.String attributeClass)

setAttributeName

public void setAttributeName(java.lang.String attributeName)

setAttributeValue

public void setAttributeValue(java.lang.String attributeValue)

setValue

public void setValue(int index,
                     java.lang.Object value)
Specified by:
setValue in class GTIngredient

setValues

public void setValues(java.lang.String values)
Specified by:
setValues in class GTIngredient

validate

public void validate()
              throws ValidationException
Specified by:
validate in class GTIngredient
Throws:
ValidationException

_reparse

protected void _reparse()
                 throws IllegalActionException
Throws:
IllegalActionException