Class DocAttributeChanges

  • All Implemented Interfaces:
    MoMLFilter

    public class DocAttributeChanges
    extends MoMLFilterSimple
    A MoML filter to convert StringParameters contained by DocAttribute to StringAttributes.
    Since:
    Ptolemy II 11.0
    Version:
    $Id$
    Author:
    Daniel Crawl
    Pt.AcceptedRating:
    Red ()
    Pt.ProposedRating:
    Red ()
    • Method Summary

      All Methods Instance Methods Concrete 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)
      Change StringParameter attributes insinde DocAttribute to StringAttribute.
      void filterEndElement​(NamedObj container, java.lang.String elementName, java.lang.StringBuffer currentCharData, java.lang.String xmlFile)
      In this class, do nothing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DocAttributeChanges

        public DocAttributeChanges()
    • 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)
        Change StringParameter attributes insinde DocAttribute to StringAttribute.
        Parameters:
        container - The container for this attribute.
        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

        public void filterEndElement​(NamedObj container,
                                     java.lang.String elementName,
                                     java.lang.StringBuffer currentCharData,
                                     java.lang.String xmlFile)
                              throws java.lang.Exception
        In this class, do nothing.
        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 - If there is a problem modifying the specified container.