Class JRValidationFault

  • All Implemented Interfaces:
    java.io.Serializable

    public class JRValidationFault
    extends java.lang.Object
    implements java.io.Serializable
    A report validation fault.
    Author:
    Lucian Chirita (lucianc@users.sourceforge.net)
    See Also:
    JRVerifier, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JRValidationFault()
      Creates an empty fault.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      Returns the fault message/description.
      java.lang.Object getSource()
      Returns the fault source object.
      void setMessage​(java.lang.String message)
      Sets the fault message/description.
      void setSource​(java.lang.Object source)
      Set the fault source.
      • Methods inherited from class java.lang.Object

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

      • JRValidationFault

        public JRValidationFault()
        Creates an empty fault.
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Returns the fault message/description.
        Returns:
        the fault description
      • setMessage

        public void setMessage​(java.lang.String message)
        Sets the fault message/description.
        Parameters:
        message - the description
      • getSource

        public java.lang.Object getSource()
        Returns the fault source object.

        The source is the report object that dispalayed the fault. It can be, for instance, a (@link JRDesignVariable variable}, an expression, or a report element.

        Returns:
        the fault source
      • setSource

        public void setSource​(java.lang.Object source)
        Set the fault source.
        Parameters:
        source - the fault source