ptolemy.moml.filter
Class BackwardCompatibility

java.lang.Object
  extended by ptolemy.moml.filter.BackwardCompatibility

public class BackwardCompatibility
extends java.lang.Object

Return a list where each element is a backward compatibility filter to be applied by the MoMLParser.

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.

Since:
Ptolemy II 2.0
Version:
$Id: BackwardCompatibility.java 54721 2009-06-26 22:32:23Z cxh $
Author:
Christopher Hylands, Edward A. Lee
See Also:
MoMLFilter
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Field Summary
private static java.util.List<MoMLFilter> _filterList
           
 
Constructor Summary
BackwardCompatibility()
           
 
Method Summary
static java.util.List allFilters()
          Return a list where each element of the list is a MoMLFilter to be applied to handle backward compatibility.
 java.lang.String toString()
          Return a string that describes all the filters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_filterList

private static java.util.List<MoMLFilter> _filterList
Constructor Detail

BackwardCompatibility

public BackwardCompatibility()
Method Detail

allFilters

public static java.util.List allFilters()
Return a list where each element of the list is a MoMLFilter to be applied to handle backward compatibility.

Returns:
a list of all the filters.

toString

public java.lang.String toString()
Return a string that describes all the filters.

Overrides:
toString in class java.lang.Object
Returns:
the String that describes all the filters and that ends with a newline.