ptolemy.actor.gt.ingredients.operations
Class RenameOperation

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

public class RenameOperation
extends Operation

Since:
Ptolemy II 6.1
Version:
$Id: RenameOperation.java,v 1.9.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
RenameOperation(GTIngredientList owner)
           
RenameOperation(GTIngredientList owner, java.lang.String values)
           
 
Method Summary
 ChangeRequest getChangeRequest(Pattern pattern, Replacement replacement, MatchResult matchResult, Entity patternEntity, Entity replacementEntity, Entity hostEntity)
           
 GTIngredientElement[] getElements()
           
 java.lang.String getName()
           
 java.lang.Object getValue(int index)
           
 java.lang.String getValues()
           
 boolean isNameEnabled()
           
 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

RenameOperation

public RenameOperation(GTIngredientList owner)

RenameOperation

public RenameOperation(GTIngredientList owner,
                       java.lang.String values)
Method Detail

getChangeRequest

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

getElements

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

getName

public java.lang.String getName()

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

isNameEnabled

public boolean isNameEnabled()

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