Class MoMLFilterSimple

    • 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, MoMLParser parser)
      Return the old attribute value for properties that are not registered to be removed.
      void filterEndElement​(NamedObj container, java.lang.String elementName, java.lang.StringBuffer currentCharData, java.lang.String xmlFile, MoMLParser parser)
      Reset private variables.
      • Methods inherited from class java.lang.Object

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

      • MoMLFilterSimple

        public MoMLFilterSimple()
    • 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,
                                                     MoMLParser parser)
        Return the old attribute value for properties that are not registered to be removed. Otherwise, return null to remove the property.
        Specified by:
        filterAttributeValue in interface MoMLFilter
        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.
        parser - The parser in which MoML is optionally evaluated. Ignored in this method.
        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,
                                     MoMLParser parser)
                              throws java.lang.Exception
        Reset private variables.
        Specified by:
        filterEndElement in interface MoMLFilter
        Parameters:
        container - The object created by this element.
        elementName - The element name.
        currentCharData - The character data, which appears only in the doc and configure elements
        xmlFile - 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.