Class ValidationInput
java.lang.Object
eu.europa.ec.taxud.validation.input.ValidationInput
ValidationInput is the source container.-
Constructor Summary
ConstructorsConstructorDescriptionValidationInput(File input, InputFormatType format) Constructor to define a Validation input when source is a file.ValidationInput(InputStream inputStream, InputFormatType format) Default constructor.ValidationInput(Object input) Constructor to define a Validation input when source is a object. -
Method Summary
Modifier and TypeMethodDescriptiongetFile()Return the source input file.Return the file input format (CSV, XML).Return the source as InputStream.Return the source input type.Return the source input object.
-
Constructor Details
-
ValidationInput
Constructor to define a Validation input when source is a file.- Parameters:
input- The file to validateformat- the file input type (XML, CSV..)
-
ValidationInput
Constructor to define a Validation input when source is a object.- Parameters:
input- The Object to validate
-
ValidationInput
Default constructor.- Parameters:
inputStream- the input streamformat- the format
-
-
Method Details
-
getFile
Return the source input file.- Returns:
- File to validate
-
getObject
Return the source input object.- Returns:
- Object to validate
-
getInputType
Return the source input type.- Returns:
- Input type
-
getInputFormat
Return the file input format (CSV, XML).- Returns:
- Input format
-
getInputStream
Return the source as InputStream. The InputStream is kept as bytes and each time needed, a fresh copy of the bytes as ByteArrayInputStream is served.- Returns:
- object for validation
-