ptolemy.moml
Class MoMLVariableChecker

java.lang.Object
  extended by ptolemy.moml.MoMLVariableChecker

public class MoMLVariableChecker
extends java.lang.Object

Check that all the variables are defined in a piece of MoML.

Since:
Ptolemy II 6.1
Version:
$Id: MoMLVariableChecker.java,v 1.7 2007/12/16 07:31:18 cxh Exp $
Author:
Christopher Brooks
Accepted Rating:
Red (cxh)
Proposed Rating:
Red (cxh)

Constructor Summary
MoMLVariableChecker()
           
 
Method Summary
 java.lang.String checkCopy(java.lang.String momlToBeChecked, NamedObj container)
          Check for problems in the moml to be copied.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoMLVariableChecker

public MoMLVariableChecker()
Method Detail

checkCopy

public java.lang.String checkCopy(java.lang.String momlToBeChecked,
                                  NamedObj container)
                           throws IllegalActionException
Check for problems in the moml to be copied. If there are missing variables references, search for the variables and return MoML definitions for any found variables.

Parameters:
momlToBeChecked - The MoML string to be checked.
container - The container in which the string is to be checked.
Returns:
MoML to be inserted before the momlToBeChecked
Throws:
IllegalActionException - If there is a problem parsing the string, or validating a variable.