Class ViewCheck


  • public class ViewCheck
    extends Object
    Checks the model viewer interfaces for consistent annotations.
    • attribute name: no [, ], 0-9, .
    • attribute name: also forbid spaces / other chars?
    • check the types of setters / getters
    Author:
    Kevin Goeser
    • Constructor Detail

      • ViewCheck

        public ViewCheck()
    • Method Detail

      • checkClass

        public static boolean checkClass​(CheckReport report,
                                         Class<?> view)
        Checks the integrity of the annotations in the class class.
        Parameters:
        report - Check report for messages, or null.
        view - The model viewer interface class object to be checked.
        Returns:
        True, if everything is ok.
      • checkData

        public boolean checkData​(Map<String,​String> data,
                                 CheckReport report,
                                 Class<?> view,
                                 Logger logger)
        pre con: run checkClass
        Parameters:
        data -
        report -
        view -
        logger - The logger for log messages.
        Returns:
        True, if the check is ok.
      • checkType

        public static boolean checkType​(Class<?> clazz,
                                        CheckReport report)
      • addReportEntry

        protected static void addReportEntry​(CheckReport report,
                                             String message,
                                             URI affectedElement)