org.javalid.core.cache
Class AnnotationClassLevelCache

java.lang.Object
  extended by org.javalid.core.cache.AnnotationClassLevelCache
All Implemented Interfaces:
AnnotationBaseCache

public class AnnotationClassLevelCache
extends java.lang.Object
implements AnnotationBaseCache


Constructor Summary
AnnotationClassLevelCache(JvGroup jvGroup)
           
 
Method Summary
 void addAnnotation(java.lang.annotation.Annotation annotation)
          Add a new annotation for this field / method (must be an annotation supported by JaValid.
 java.util.List<java.lang.annotation.Annotation> getAnnotations()
          Returns an immutable list with all annotations that are on the the field / method - supported by JaValid.
 JvGroup getJvGroup()
          Returns the group annotation that was on the field, method or class.
 boolean hasAnnotations()
          Returns true if at least one (javalid) supported annotation is present.
 boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
          Returns true if given annotation is present in the map (at least once)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationClassLevelCache

public AnnotationClassLevelCache(JvGroup jvGroup)
Method Detail

getJvGroup

public JvGroup getJvGroup()
Description copied from interface: AnnotationBaseCache
Returns the group annotation that was on the field, method or class.

Specified by:
getJvGroup in interface AnnotationBaseCache
Returns:
JvGroup that was on the field or method

getAnnotations

public java.util.List<java.lang.annotation.Annotation> getAnnotations()
Description copied from interface: AnnotationBaseCache
Returns an immutable list with all annotations that are on the the field / method - supported by JaValid.

Specified by:
getAnnotations in interface AnnotationBaseCache
Returns:
Immutable list with annotations

addAnnotation

public void addAnnotation(java.lang.annotation.Annotation annotation)
Description copied from interface: AnnotationBaseCache
Add a new annotation for this field / method (must be an annotation supported by JaValid.

Specified by:
addAnnotation in interface AnnotationBaseCache
Parameters:
annotation - New annotation

isAnnotationPresent

public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
Description copied from interface: AnnotationBaseCache
Returns true if given annotation is present in the map (at least once)

Specified by:
isAnnotationPresent in interface AnnotationBaseCache
Parameters:
annotation - The annotation to check
Returns:
True if present, false otherwise.

hasAnnotations

public boolean hasAnnotations()
Description copied from interface: AnnotationBaseCache
Returns true if at least one (javalid) supported annotation is present.

Specified by:
hasAnnotations in interface AnnotationBaseCache
Returns:
True if at least one javalid supported annotation is present, false otherwise.