Class TransformationOutput


  • public class TransformationOutput
    extends java.lang.Object
    A class that holds the result of a transformation (by the Transformer).
    • Constructor Summary

      Constructors 
      Constructor Description
      TransformationOutput​(Message msg)
      Instantiate an instance of this class with a message.
      TransformationOutput​(java.lang.Exception exception)
      Instantiate an instance of this class with an exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Exception getException()  
      Message getMsg()  
      • Methods inherited from class java.lang.Object

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

      • TransformationOutput

        public TransformationOutput​(Message msg)
        Instantiate an instance of this class with a message.
        Parameters:
        msg - the resulting message after the transformation. May be null, which signifies that the transformation resulted in the message being discarded.
      • TransformationOutput

        public TransformationOutput​(java.lang.Exception exception)
        Instantiate an instance of this class with an exception.
        Parameters:
        exception - the exception encountered with the associated transformation, if any.
    • Method Detail

      • getException

        public java.lang.Exception getException()
        Returns:
        the Exception, if any, that the transformation encountered. May be null.
      • getMsg

        public Message getMsg()
        Returns:
        the Message, if any, that the transformation resulted in. May be null.