public class PortClassChanges extends MoMLFilterSimple
This class will filter for actors that have had port class changes.
| Constructor and Description |
|---|
PortClassChanges() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
filterAttributeValue(NamedObj container,
java.lang.String element,
java.lang.String attributeName,
java.lang.String attributeValue,
java.lang.String xmlFile)
If the attributeName is "class" and attributeValue names a
class that has had its port classes changed between releases,
then substitute in the new port classes.
|
void |
filterEndElement(NamedObj container,
java.lang.String elementName,
java.lang.StringBuffer currentCharData,
java.lang.String xmlFile)
Reset private variables.
|
java.lang.String |
toString()
Return a string that describes what the filter does.
|
filterAttributeValue, filterEndElementpublic PortClassChanges()
public java.lang.String filterAttributeValue(NamedObj container, java.lang.String element, java.lang.String attributeName, java.lang.String attributeValue, java.lang.String xmlFile)
container - The container for this attribute.
in this method.element - The XML element name.attributeName - The name of the attribute.attributeValue - The value of the attribute.xmlFile - The file currently being parsed.public void filterEndElement(NamedObj container, java.lang.String elementName, java.lang.StringBuffer currentCharData, java.lang.String xmlFile) throws java.lang.Exception
container - The object created by this element.elementName - The element name.currentCharData - The character data, which appears
only in the doc and configure elementsxmlFile - The file currently being parsed.java.lang.Exception - if there is a problem substituting
in the new value.public java.lang.String toString()
toString in interface MoMLFiltertoString in class java.lang.Object