public abstract class AbstractAnnotationValidator extends Object implements Serializable
For internal use only. May be renamed or removed in a future release.
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_MESSAGE_BEGINNING |
static String |
MIDDLE_ROUTER_LAYOUT |
static String |
NON_PARENT |
static String |
NON_PARENT_ALIAS |
static String |
NON_ROUTER_LAYOUT |
| Constructor and Description |
|---|
AbstractAnnotationValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<Class<?>> |
getAnnotations()
Gets the annotations that are subject to validate.
|
protected String |
getClassAnnotations(Class<?> clazz)
Returns the validation annotations declared for the
clazz. |
protected String |
getErrorHint()
Returns a hint for the discovered validation errors.
|
protected Optional<String> |
handleNonRouterLayout(Class<?> clazz)
Handles the
clazz which is not a top level route and not a router
layout. |
protected void |
validateClasses(Collection<Class<?>> classSet)
Validate the correctness of the annotations returned by the
getAnnotations() method applied to the classSet. |
public static final String ERROR_MESSAGE_BEGINNING
public static final String NON_PARENT
public static final String NON_PARENT_ALIAS
public static final String NON_ROUTER_LAYOUT
public static final String MIDDLE_ROUTER_LAYOUT
protected void validateClasses(Collection<Class<?>> classSet)
getAnnotations() method applied to the classSet.classSet - the classes to validateprotected abstract List<Class<?>> getAnnotations()
protected Optional<String> handleNonRouterLayout(Class<?> clazz)
clazz which is not a top level route and not a router
layout. Returns an optional message which describes the error having an
annotation for the class.clazz - class to validate annotationsprotected String getErrorHint()
Copyright © 2025. All rights reserved.