Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-3682

Define the CSAR validator interface for Models

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Istanbul Release
    • None
    • SDC
    • None

      Define a CSAR validator interface which all CSAR validators should implement.

      The interface should have a method to check if the validator apply to the model.

       

      A suggestion of interfaces for a singleton validator:

      CsarValidator

      ValidationResult validate(org.openecomp.core.utilities.file.FileContentHandler fileContentHandler) //the method that will validate the package and create the error list

      boolean applyTo(String model) //if the validator applies for that model

       int getOrder() //to check the order of execution of the validator (maybe there is no meaning for this)

       

      ValidationResult

      boolean isValid() //if the package is valid

      List<String> getErrors() //return the error messages during the validation

            andre.schmid andre.schmid
            andre.schmid andre.schmid
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: