Class TdsValidator
java.lang.Object
org.ctan.site.services.upload.util.TdsValidator
This class constitutes a validator for TDS archives.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
The methodcheck
provides means to perform the checks.void
check
(Messages messages, String archiveName, String pkg, ZipInputStream zip) This method inspects the TDS archive and adds messages if something unusual is found.
-
Field Details
-
TDS
The fieldTDS
contains the specification if the TDS tree.
-
-
Constructor Details
-
TdsValidator
public TdsValidator()
-
-
Method Details
-
check
The methodcheck
provides means to perform the checks.- Parameters:
messages
- the list of messagesname
- the name of the filepkg
- the packagecontent
- the content
-
check
This method inspects the TDS archive and adds messages if something unusual is found.- Parameters:
messages
- the messagesarchiveName
- the name of the archive under inspectionpkg
- the name of the packagezip
- the content of the TDS archive
-