Package ptolemy.moml.filter
Class AddEditorFactory
- java.lang.Object
-
- ptolemy.moml.filter.MoMLFilterSimple
-
- ptolemy.moml.filter.AddEditorFactory
-
- All Implemented Interfaces:
MoMLFilter
@Deprecated public class AddEditorFactory extends MoMLFilterSimple
Deprecated.UseAddMissingParameter
instead because it handles multiple missing parameter at once.Add a VisibleParameterEditorFactory named _editorFactory to certain Parameters.- Since:
- Ptolemy II 2.0
- Version:
- $Id$
- Author:
- Christopher Hylands, Edward A. Lee
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Red (cxh)
-
-
Constructor Summary
Constructors Constructor Description AddEditorFactory()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
filterAttributeValue(NamedObj container, java.lang.String element, java.lang.String attributeName, java.lang.String attributeValue, java.lang.String xmlFile)
Deprecated.Identify Parameters that need a VisibleParameterEditorFactory named _editorFactory added.void
filterEndElement(NamedObj container, java.lang.String elementName, java.lang.StringBuffer currentCharData, java.lang.String xmlFile)
Deprecated.UsefilterEndElement(NamedObj, String, StringBuffer, String, MoMLParser)
instead and pass a MoMLParser.void
filterEndElement(NamedObj container, java.lang.String elementName, java.lang.StringBuffer currentCharData, java.lang.String xmlFile, MoMLParser parser)
Deprecated.Make modifications to the specified container, which is defined in a MoML element with the specified name.java.lang.String
toString()
Deprecated.Return a string that describes what the filter does.-
Methods inherited from class ptolemy.moml.filter.MoMLFilterSimple
filterAttributeValue
-
-
-
-
Method Detail
-
filterAttributeValue
public java.lang.String filterAttributeValue(NamedObj container, java.lang.String element, java.lang.String attributeName, java.lang.String attributeValue, java.lang.String xmlFile)
Deprecated.Identify Parameters that need a VisibleParameterEditorFactory named _editorFactory added.- Parameters:
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.- Returns:
- the value of the attributeValue argument.
-
filterEndElement
@Deprecated public void filterEndElement(NamedObj container, java.lang.String elementName, java.lang.StringBuffer currentCharData, java.lang.String xmlFile) throws java.lang.Exception
Deprecated.UsefilterEndElement(NamedObj, String, StringBuffer, String, MoMLParser)
instead and pass a MoMLParser.Make modifications to the specified container, which is defined in a MoML element with the specified name.- Parameters:
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.- Throws:
java.lang.Exception
- if there is a problem substituting in the new value.
-
filterEndElement
public void filterEndElement(NamedObj container, java.lang.String elementName, java.lang.StringBuffer currentCharData, java.lang.String xmlFile, MoMLParser parser) throws java.lang.Exception
Deprecated.Make modifications to the specified container, which is defined in a MoML element with the specified name.- Specified by:
filterEndElement
in interfaceMoMLFilter
- Overrides:
filterEndElement
in classMoMLFilterSimple
- Parameters:
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.parser
- The parser in which MoML is optionally evaluated.- Throws:
java.lang.Exception
- if there is a problem substituting in the new value.
-
toString
public java.lang.String toString()
Deprecated.Return a string that describes what the filter does.- Specified by:
toString
in interfaceMoMLFilter
- Overrides:
toString
in classjava.lang.Object
- Returns:
- the description of the filter that ends with a newline.
-
-