Class ValidateCsv
- All Implemented Interfaces:
AdaptrisComponent,ComponentLifecycle,ComponentLifecycleExtension,ConfigComment,MessageEventGenerator,Service,StateManagedComponent
-
Field Summary
Fields inherited from class com.adaptris.core.ServiceImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoiddoService(AdaptrisMessage msg) Enable case sensitivity when performing external expression resolution.Whether or not we fail immediately on the first error or report on all errors.The schema.The Path substitutions to apply.What to do when the CSV file is considered invalid.protected voidvoidprepare()voidsetCaseSensitive(Boolean caseSensitive) Enable case sensitivity when performing external expression resolution.voidsetFailFast(Boolean failFast) Whether or not we fail immediately on the first error or report on all errors.voidsetSchemaFile(String schemaFile) The schema.voidsetSubstitutions(KeyValuePairSet substitutions) The Path substitutions to apply.voidsetViolationHandler(SchemaViolationHandler violationHandler) What to do when the CSV file is considered invalid.withSchema(String s) Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, enabled, getComments, getContinueOnFail, getEnabled, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setComments, setContinueOnFail, setEnabled, setIsTrackingEndpoint, setUniqueId, start, stop
-
Constructor Details
-
ValidateCsv
public ValidateCsv()
-
-
Method Details
-
initService
- Specified by:
initServicein classServiceImp- Throws:
CoreException
-
closeService
protected void closeService()- Specified by:
closeServicein classServiceImp
-
prepare
- Throws:
CoreException
-
doService
- Throws:
ServiceException
-
withSchema
-
withViolationHandler
-
getSchemaFile
The schema. -
setSchemaFile
The schema. -
getViolationHandler
What to do when the CSV file is considered invalid. -
setViolationHandler
What to do when the CSV file is considered invalid. -
getFailFast
Whether or not we fail immediately on the first error or report on all errors.Using failFast implies that you will fail on the first
ErrorMessage, warnings will still be emitted but only up until the first error. -
setFailFast
Whether or not we fail immediately on the first error or report on all errors.Using failFast implies that you will fail on the first
ErrorMessage, warnings will still be emitted but only up until the first error. -
getCaseSensitive
Enable case sensitivity when performing external expression resolution.Useful if you are accessing external resources as part of your schema.
-
setCaseSensitive
Enable case sensitivity when performing external expression resolution.Useful if you are accessing external resources as part of your schema.
-
getSubstitutions
The Path substitutions to apply.Useful if you are accessing external resources as part of your schema. This ultimately resolves to a list of
Substitutionobjects which is passed into theCsvValidator#validate()method. The 'key' is the from, with the 'value' being the to. -
setSubstitutions
The Path substitutions to apply.Useful if you are accessing external resources as part of your schema. This ultimately resolves to a list of
Substitutionobjects which is passed into theCsvValidator#validate()method. The 'key' is the from, with the 'value' being the to.
-