Package ptolemy.moml

Class ImportAttribute

    • Constructor Detail

      • ImportAttribute

        public ImportAttribute​(NamedObj container,
                               java.lang.String name)
                        throws IllegalActionException,
                               NameDuplicationException
        Deprecated.
        Construct an attribute with the specified container and name.
        Parameters:
        container - The container.
        name - The name of this attribute.
        Throws:
        IllegalActionException - If the attribute is not of an acceptable class for the container, or if the name contains a period.
        NameDuplicationException - If the name coincides with an attribute already in the container.
    • Method Detail

      • exportMoML

        public void exportMoML​(java.io.Writer output,
                               int depth,
                               java.lang.String name)
                        throws java.io.IOException
        Deprecated.
        Write a MoML description of this object, which in this case is an "import" element. If this object is not persistent, then write nothing.
        Specified by:
        exportMoML in interface MoMLExportable
        Overrides:
        exportMoML in class NamedObj
        Parameters:
        name - The name to use instead of the name of this object. This argument is ignored.
        output - The output stream to write to.
        depth - The depth in the hierarchy, to determine indenting.
        Throws:
        java.io.IOException - If there is a problem writing the MoML.
        See Also:
        MoMLExportable, NamedObj.clone(Workspace), NamedObj.isPersistent(), NamedObj.getDerivedLevel()