Interface Conversion

    • Method Detail

      • setOwner

        void setOwner​(Object value)
        Sets the owner of this conversion.
        Parameters:
        value - the owner
      • getOwner

        Object getOwner()
        Returns the owner of this conversion.
        Returns:
        the owner, null if none set
      • setInput

        void setInput​(Object value)
        Sets the original data to convert.
        Parameters:
        value - the data to convert
        See Also:
        StreamConversion
      • getInput

        Object getInput()
        The currently set input data to convert.
        Returns:
        the data to convert, can be null if not yet set
      • getInput

        <T> T getInput​(Class<T> cls)
        The currently set input data to convert.
        Parameters:
        cls - for casting
        Returns:
        the data to convert, can be null if not yet set
      • accepts

        Class accepts()
        Returns the class that is accepted as input.
        Returns:
        the class
      • generates

        Class generates()
        Returns the class that is generated as output.
        Returns:
        the class
      • convert

        String convert()
        Performs the conversion.
        Returns:
        null if everything worked otherwise the error message
      • getOutput

        Object getOutput()
        Returns the generated output.
        Returns:
        the output, null if none produced yet
      • getOutput

        <T> T getOutput​(Class<T> cls)
        Returns the generated output.
        Returns:
        the output, null if none produced yet