ptolemy.actor.gt.controller
Class DesignPatternImporter.MoMLContentFilter

java.lang.Object
  extended by ptolemy.actor.gt.controller.DesignPatternImporter.MoMLContentFilter
All Implemented Interfaces:
MoMLFilter
Enclosing class:
DesignPatternImporter

private class DesignPatternImporter.MoMLContentFilter
extends java.lang.Object
implements MoMLFilter

A moml filter that sets each created object to be non-persistent.

Since:
Ptolemy II 8.0
Version:
$Id: DesignPatternImporter.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Thomas Huining Feng
Accepted Rating:
Red (tfeng)
Proposed Rating:
Yellow (tfeng)

Constructor Summary
private DesignPatternImporter.MoMLContentFilter()
           
 
Method Summary
 java.lang.String filterAttributeValue(NamedObj container, java.lang.String element, java.lang.String attributeName, java.lang.String attributeValue, java.lang.String xmlFile)
          Return the value of the attribute.
 void filterEndElement(NamedObj container, java.lang.String elementName, java.lang.StringBuffer currentCharData, java.lang.String xmlFile)
          Set the created element to be non-persistent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ptolemy.moml.MoMLFilter
toString
 

Constructor Detail

DesignPatternImporter.MoMLContentFilter

private DesignPatternImporter.MoMLContentFilter()
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)
Return the value of the attribute.

Specified by:
filterAttributeValue in interface MoMLFilter
Parameters:
container - The container for XML element.
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 attribute.

filterEndElement

public void filterEndElement(NamedObj container,
                             java.lang.String elementName,
                             java.lang.StringBuffer currentCharData,
                             java.lang.String xmlFile)
                      throws java.lang.Exception
Set the created element to be non-persistent.

Specified by:
filterEndElement in interface MoMLFilter
Parameters:
container - The object defined by the element that this is the end of.
elementName - The element name.
currentCharData - The character data, which appears only in the doc and configure elements
xmlFile - The file currently being parsed.
Throws:
java.lang.Exception - Not thrown in this class.