Class CellProcessorAdaptor

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected CellProcessor next
      the next processor in the chain
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CellProcessorAdaptor()
      Constructor used by CellProcessors to indicate that they are the last processor in the chain.
      protected CellProcessorAdaptor​(CellProcessor next)
      Constructor used by CellProcessors that require CellProcessor chaining (further processing is required).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()
      Returns the CellProccessor's fully qualified class name.
      protected void validateInputNotNull​(java.lang.Object value, CsvContext context)
      Checks that the input value is not null, throwing a NullInputException if it is.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • next

        protected final CellProcessor next
        the next processor in the chain
    • Constructor Detail

      • CellProcessorAdaptor

        protected CellProcessorAdaptor()
        Constructor used by CellProcessors to indicate that they are the last processor in the chain.
      • CellProcessorAdaptor

        protected CellProcessorAdaptor​(CellProcessor next)
        Constructor used by CellProcessors that require CellProcessor chaining (further processing is required).
        Parameters:
        next - the next CellProcessor in the chain
        Throws:
        java.lang.NullPointerException - if next is null
    • Method Detail

      • validateInputNotNull

        protected void validateInputNotNull​(java.lang.Object value,
                                            CsvContext context)
        Checks that the input value is not null, throwing a NullInputException if it is. This method should be called by all processors that need to ensure the input is not null.
        Parameters:
        value - the input value
        context - the CSV context
        Throws:
        SuperCsvCellProcessorException - if value is null
        Since:
        2.0.0
      • toString

        public java.lang.String toString()
        Returns the CellProccessor's fully qualified class name.
        Overrides:
        toString in class java.lang.Object