Package ptolemy.moml
Class MoMLVariableChecker
- java.lang.Object
-
- ptolemy.moml.MoMLVariableChecker
-
public class MoMLVariableChecker extends java.lang.ObjectCheck that all the variables are defined in a piece of MoML.- Since:
- Ptolemy II 6.1
- Version:
- $Id$
- Author:
- Christopher Brooks
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (cxh)
-
-
Constructor Summary
Constructors Constructor Description MoMLVariableChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcheckCopy(java.lang.String momlToBeChecked, NamedObj container)Check for problems in the moml to be copied.java.lang.StringcheckCopy(java.lang.String momlToBeChecked, NamedObj container, boolean hideVariables)Check for problems in the moml to be copied.
-
-
-
Method Detail
-
checkCopy
public java.lang.String checkCopy(java.lang.String momlToBeChecked, NamedObj container) throws IllegalActionExceptionCheck 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.
-
checkCopy
public java.lang.String checkCopy(java.lang.String momlToBeChecked, NamedObj container, boolean hideVariables) throws IllegalActionExceptionCheck for problems in the moml to be copied. If there are missing variable 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.hideVariables- If true, add MoML that will make all the found variables hidden from the user interface when they are copied.- Returns:
- MoML to be inserted before the momlToBeChecked
- Throws:
IllegalActionException- If there is a problem parsing the string, or validating a variable.
-
-