Element
|
Description
|
||
Component
|
Specifies the name of the validation component.
|
||
Creation
|
Specifies the method used for creating the component. The Type attribute for this element is always JavaObject.
|
||
Class
|
Specifies the Java class of the validation component. A Java class is a custom Java file that extends an existing default validation for CSV files.
|
||
Config
|
Specifies configuration details, such as the validation information.
|
||
Validation
|
Specifies the following validation attributes:
• code: The error code of the validation.
• description: A description for the validation.
• resolution: The resolution for the validation.
|
Attribute Value
|
Description
|
All
|
Specifies whether the validation applies to all files.
|
<CSV_File_Name>
|
Specifies the name of the CSV file to which the validation applies. You must specify the relative path of the CSV file from the CSV files bundle location.
|
Attribute
|
Description
|
type
|
Specifies the type of validation. The following values are valid:
• file: Performs the validation on the entire CSV file.
• row: Performs the validation on each row of the CSV file.
• column: Performs the validation on the column specified in the columnName attribute of the rule element.
|
columnName
|
Specifies the name of a column in the CSV file. You specify the value of this attribute only when the type attribute of the rule element is set to column.
|
validationCriteria
|
Specifies the name of the validation component. The details for this validation component are specified in the customizedContext_YY.conf.xml file. For more information, see Defining Validations.
|
required
|
Specifies whether the validation is an error or warning. The following values are valid:
• true: Specifies that the validation is of type error and must be resolved. This type of validation requires the user to fix the validation for successful import of the CSV file.
• false: Specifies that the validation is of type warning. This type of validation is for information purpose only and does not prevent the CSV file from being imported.
|