Interface GeneratorDestination

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.io.InputStream getResource​(java.lang.String resourcePath)
      Returns the stream for the given resource.
      java.io.Writer newClass​(java.lang.String className, java.lang.String originatingClassName)
      Returns the Writer for the given class.
      java.io.OutputStream newResource​(java.lang.String resourcePath)
      Returns the stream for the given resource.
      void printError​(java.lang.String message)
      Print the error.
      void printError​(java.lang.String message, java.lang.Throwable throwable)
      Print the error.
      void printError​(java.lang.String message, MetadataInfo element)
      Print the error.
      void printNote​(java.lang.String message)
      Print the informative message.
      void printWarning​(java.lang.String message)
      Print the warning.
      void printWarning​(java.lang.String message, java.lang.Throwable throwable)
      Print the warning.
      void printWarning​(java.lang.String message, MetadataInfo element)
      Print the warning.
    • Method Detail

      • newResource

        java.io.OutputStream newResource​(java.lang.String resourcePath)
                                  throws java.io.IOException
        Returns the stream for the given resource. Callers are responsible for closing streams.
        Parameters:
        resourcePath - resource path
        Returns:
        output stream to write the resource to.
        Throws:
        java.io.IOException - if something wacked happens
      • getResource

        java.io.InputStream getResource​(java.lang.String resourcePath)
                                 throws java.io.IOException
        Returns the stream for the given resource. Callers are responsible for closing streams.
        Parameters:
        resourcePath - resource path
        Returns:
        stream usable to read the resource
        Throws:
        java.io.IOException - if something wacked happens
      • newClass

        java.io.Writer newClass​(java.lang.String className,
                                java.lang.String originatingClassName)
                         throws java.io.IOException
        Returns the Writer for the given class. Callers are responsible for closing Writers.
        Parameters:
        className - class name
        originatingClassName - class name causing the creation of this class
        Returns:
        writer usable to write the resource
        Throws:
        java.io.IOException - if something wacked happens
      • printError

        void printError​(java.lang.String message)
        Print the error. Calling this method should not terminate anything.
        Parameters:
        message - error.
      • printError

        void printError​(java.lang.String message,
                        MetadataInfo element)
        Print the error. Calling this method should not terminate anything.
        Parameters:
        message - error.
        element - metadata element, to which this error is tailored
      • printError

        void printError​(java.lang.String message,
                        java.lang.Throwable throwable)
        Print the error. Calling this method should not terminate anything.
        Parameters:
        message - error.
        throwable - exception causing the error
      • printWarning

        void printWarning​(java.lang.String message)
        Print the warning. Calling this method should not terminate anything.
        Parameters:
        message - warning.
      • printWarning

        void printWarning​(java.lang.String message,
                          MetadataInfo element)
        Print the warning. Calling this method should not terminate anything.
        Parameters:
        message - warning.
        element - metadata element, to which this error is tailored
      • printWarning

        void printWarning​(java.lang.String message,
                          java.lang.Throwable throwable)
        Print the warning. Calling this method should not terminate anything.
        Parameters:
        message - warning.
        throwable - exception causing the error
      • printNote

        void printNote​(java.lang.String message)
        Print the informative message. Calling this method should not terminate anything.
        Parameters:
        message - message.