Class ViewCheck

java.lang.Object
de.aristaflow.adept2.model.common.viewer.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
  • Field Details

  • Constructor Details

    • ViewCheck

      public ViewCheck()
  • Method Details

    • 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.
    • checkEntry

      public boolean checkEntry(String name, String value, String defaultValue, CheckReport report, Map<String,String> data, Class<?> viewer, Logger logger)
    • checkType

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

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