org.javalid.core.cache
Interface AnnotationCache

All Superinterfaces:
AnnotationBaseCache
All Known Implementing Classes:
AnnotationFieldCache, AnnotationMethodCache

public interface AnnotationCache
extends AnnotationBaseCache

Interface that is used for method / field annotation cache.

Since:
1.2
Version:
1.0
Author:
M.Reuvers

Method Summary
 java.lang.String createValidationPath(java.lang.String currentPath)
          Returns a new path appended to currentPath, if currentPath is empty returns the name of the field / method only.
 java.lang.String getName()
          Returns name of field / method.
 NotEmpty getNotEmptyAnnotation()
          If present, returns the NotEmpty annotation, else returns null.
 NotNull getNotNullAnnotation()
          If present, returns the NotNull annotation, else returns null.
 StopValidation getStopValidationAnnotation()
          If present, returns the StopValidation annotation else returns null.
 
Methods inherited from interface org.javalid.core.cache.AnnotationBaseCache
addAnnotation, getAnnotations, getJvGroup, hasAnnotations, isAnnotationPresent
 

Method Detail

getNotNullAnnotation

NotNull getNotNullAnnotation()
If present, returns the NotNull annotation, else returns null.

Returns:
NotNull if present, null otherwise.

getNotEmptyAnnotation

NotEmpty getNotEmptyAnnotation()
If present, returns the NotEmpty annotation, else returns null.

Returns:
NotEmpty if present, null otherwise.

getStopValidationAnnotation

StopValidation getStopValidationAnnotation()
If present, returns the StopValidation annotation else returns null.

Returns:
StopValidation if pressent, null otherwise.

createValidationPath

java.lang.String createValidationPath(java.lang.String currentPath)
Returns a new path appended to currentPath, if currentPath is empty returns the name of the field / method only.

Parameters:
currentPath - The current path to pre-pend
Returns:
New validation path

getName

java.lang.String getName()
Returns name of field / method.

Returns:
Name of field / method.