|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.moml.filter.ClassChanges
When this class is registered with the MoMLParser.setMoMLFilter() method, it will cause MoMLParser to filter so that models from earlier releases will run in the current release.
This class will filter moml for simple class changes where the context of the class name to be changed does not matter - all occurrences of the class name will be changed. This class can be though of as a primitive form of sed.
If a class within an actor is what has changed, use (@see PropertyClassChanges) instead.
| Red (cxh) |
| Red (cxh) |
| Constructor Summary | |
ClassChanges()
|
|
| Method Summary | |
java.lang.String |
filterAttributeValue(NamedObj container,
java.lang.String attributeName,
java.lang.String attributeValue)
If the attributeName is "class" and attributeValue names a class that needs to be renamed, then substitute in the new class name. |
java.lang.String |
filterEndElement(NamedObj container,
java.lang.String elementName)
Given the elementName, perform any filter operations that are appropriate for the MOMLParser.endElement() method. |
java.lang.String |
toString()
Return a string that describes what the filter does. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ClassChanges()
| Method Detail |
public java.lang.String filterAttributeValue(NamedObj container,
java.lang.String attributeName,
java.lang.String attributeValue)
filterAttributeValue in interface MoMLFiltercontainer - The container for this attribute.attributeName - The name of the attribute.attributeValue - The value of the attribute.
public java.lang.String filterEndElement(NamedObj container,
java.lang.String elementName)
throws java.lang.Exception
filterEndElement in interface MoMLFiltercontainer - The container for this attribute.
in this method.elementName - The element type name.
java.lang.Exceptionpublic java.lang.String toString()
toString in interface MoMLFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||