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
-
-
Constructor Summary
Constructors Constructor Description ViewCheck()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static void
addReportEntry(CheckReport report, String message, URI affectedElement)
static boolean
checkClass(CheckReport report, Class<?> view)
Checks the integrity of the annotations in the class class.boolean
checkData(Map<String,String> data, CheckReport report, Class<?> view, Logger logger)
pre con: run checkClass
boolean
checkEntry(String name, String value, String defaultValue, CheckReport report, Map<String,String> data, Class<?> viewer, Logger logger)
static boolean
checkType(Class<?> clazz, CheckReport report)
-
-
-
Field Detail
-
ID
public static final String ID
My check ID.- See Also:
- Constant Field Values
-
-
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.
-
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)
-
-