public class BackwardCompatibility
extends java.lang.Object
When this class is registered with
MoMLParser.addMoMLFilters(BackwardCompatibility.allFilters())
method, it will cause MoMLParser to filter so that models from earlier releases will run in the current release.
MoMLFilter
Red (cxh) |
Red (cxh) |
Constructor and Description |
---|
BackwardCompatibility() |
Modifier and Type | Method and Description |
---|---|
static void |
addFilter(MoMLFilter filter)
Add a MoMLFilter to the list of filters.
|
static java.util.List |
allFilters()
Return a shallow copy of the list where each element of the
list is a MoMLFilter to be applied to handle backward
compatibility.
|
static void |
clear()
Clear the list of filters.
|
java.lang.String |
toString()
Return a string that describes all the filters.
|
public static void addFilter(MoMLFilter filter)
filter
- The filter to be added.public static java.util.List allFilters()
public static void clear()
public java.lang.String toString()
toString
in class java.lang.Object