Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-6660

Validators should expose their id and severity

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Extensions, Validation
    • None

    Description

      Validators should expose their id and severity (maybe from service properties, but haven't to be service properties at all) by their own:

      [...]
      public interface Validator <T> {
      
      [...]
      
          String getId(); // validator.id
      
          int getSeverity(); // validator.severity
      
      [...]
      }
      

      This addition allows less code in ValidationModelRetrieverImpl and makes ValidatorAndSeverity obsolete.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              olli Oliver Lietz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: