Package ch.admin.suis.validator.rest.to
Class ServiceInput
java.lang.Object
ch.admin.suis.validator.rest.to.ServiceInput
The top level data structure for calling the validation client service. The
ServiceInput contains one or more nested data structures of type
ValidatableFile each representing a file to validate.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets thelanguageproperty.Gets thepdfOutputFileNameproperty.Gets theuserNameproperty.Deprecated.Gets theuserOrganizationproperty.Gets thevalidatableFilesproperty.booleanGets thepdfReportproperty.booleanGets theprocessUnsignedFilesproperty.voidsetLanguage(String language) Sets thelanguageproperty.voidsetPdfOutputFileName(String pdfOutputFileName) Sets thepdfOutputFileNameproperty.voidsetPdfReport(boolean pdfReport) Sets thepdfReportproperty.voidsetProcessUnsignedFiles(boolean processUnsignedFiles) Sets theprocessUnsignedFilesproperty.voidsetUserName(String userName) Sets theuserNameproperty.voidsetUserOrganisation(String userOrganisation) Deprecated.voidsetUserOrganization(String userOrganization) Sets theuserOrganizationproperty.voidsetValidatableFiles(List<ValidatableFile> validatableFiles) Sets thevalidatableFilesproperty.toString()
-
Constructor Details
-
ServiceInput
public ServiceInput()
-
-
Method Details
-
getLanguage
Gets thelanguageproperty.- Returns:
- the value of the
languageproperty
-
getPdfOutputFileName
Gets thepdfOutputFileNameproperty. The output file name is not used by the validation service but will be returned in the validation results, so it can be used when writing a validation report to a file.- Returns:
- the value of the
pdfOutputFileNameproperty
-
getUserName
Gets theuserNameproperty.- Returns:
- the value of the
userNameproperty
-
getUserOrganisation
Deprecated.Gets theuserOrganizationproperty from its legacy name.- Returns:
- the
userOrganizationproperty.
-
getUserOrganization
Gets theuserOrganizationproperty.- Returns:
- the value of the
userOrganizationproperty
-
getValidatableFiles
Gets thevalidatableFilesproperty. ThevalidatableFilesproperty contains a list of data structures of typeValidatableFileeach representing a file to validate.- Returns:
- the value of the
validatableFilesproperty
-
isPdfReport
public boolean isPdfReport()Gets thepdfReportproperty. ThepdfReportproperty is a flag specifying whether the validation service should generate and return a report in PDF format in addition to the regular validation result.- Returns:
- the value of the
pdfReportproperty
-
isProcessUnsignedFiles
public boolean isProcessUnsignedFiles()Gets theprocessUnsignedFilesproperty.- Returns:
- the value of the
processUnsignedFilesproperty
-
setLanguage
Sets thelanguageproperty.- Parameters:
language- the value to set for thelanguageproperty.
-
setPdfOutputFileName
Sets thepdfOutputFileNameproperty. The output file name is not used by the validation service but will be returned in the validation results, so it can be used when writing a validation report to a file.- Parameters:
pdfOutputFileName- the value to set for thepdfOutputFileNameproperty.
-
setPdfReport
public void setPdfReport(boolean pdfReport) Sets thepdfReportproperty. ThepdfReportproperty is a flag specifying whether the validation service should generate and return a report in PDF format in addition to the regular validation result.- Parameters:
pdfReport- the value to set for thepdfReportproperty.
-
setProcessUnsignedFiles
public void setProcessUnsignedFiles(boolean processUnsignedFiles) Sets theprocessUnsignedFilesproperty.- Parameters:
processUnsignedFiles- the value to set for theprocessUnsignedFilesproperty.
-
setUserName
Sets theuserNameproperty.- Parameters:
userName- the value to set for theuserNameproperty.
-
setUserOrganisation
Deprecated.Sets theuserOrganizationproperty with its legacy name.- Parameters:
userOrganisation- the value to set for theuserOrganizationproperty.
-
setUserOrganization
Sets theuserOrganizationproperty.- Parameters:
userOrganization- the value to set for theuserOrganizationproperty.
-
setValidatableFiles
Sets thevalidatableFilesproperty. ThevalidatableFilesproperty contains a list of data structures of typeValidatableFileeach representing a file to validate.- Parameters:
validatableFiles- the value to set for thevalidatableFilesproperty
-
toString
-
getUserOrganization()