Class CellProcessorAdaptor
java.lang.Object
org.supercsv.cellprocessor.CellProcessorAdaptor
- All Implemented Interfaces:
CellProcessor
- Direct Known Subclasses:
AbstractTemporalAccessorFormattingProcessor, AbstractTemporalAccessorParsingProcessor, Collector, ConvertNullTo, DMinMax, Equals, FmtBool, FmtDate, FmtDuration, FmtNumber, FmtPeriod, FmtZoneId, ForbidSubStr, HashMapper, IsElementOf, IsIncludedIn, LMinMax, NotNull, ParseBigDecimal, ParseBool, ParseChar, ParseDate, ParseDouble, ParseDuration, ParseEnum, ParseInt, ParseLong, ParsePeriod, ParseZoneId, RequireHashCode, RequireSubStr, Strlen, StrMinMax, StrNotNullOrEmpty, StrRegEx, StrReplace, Token, Trim, Truncate, Unique, UniqueHashCode
Abstract super class containing shared behaviour of all cell processors. Processors are linked together in a linked
list. The end element of this list should always be an instance of NullObjectPattern.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classThis is an implementation-specific processor and should only be used by the CellProcessorAdaptor class. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor used by CellProcessors to indicate that they are the last processor in the chain.protectedConstructor used by CellProcessors that require CellProcessor chaining (further processing is required). -
Method Summary
Modifier and TypeMethodDescriptiontoString()Returns the CellProccessor's fully qualified class name.protected voidvalidateInputNotNull(Object value, CsvContext context) Checks that the input value is not null, throwing a NullInputException if it is.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface CellProcessor
execute
-
Field Details
-
next
the next processor in the chain
-
-
Constructor Details
-
CellProcessorAdaptor
protected CellProcessorAdaptor()Constructor used by CellProcessors to indicate that they are the last processor in the chain. -
CellProcessorAdaptor
Constructor used by CellProcessors that require CellProcessor chaining (further processing is required).- Parameters:
next- the next CellProcessor in the chain- Throws:
NullPointerException- if next is null
-
-
Method Details
-
validateInputNotNull
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 valuecontext- the CSV context- Throws:
SuperCsvCellProcessorException- if value is null- Since:
- 2.0.0
-
toString
-