net.sf.gilead.annotations
Class AnnotationsHelper

java.lang.Object
  extended by net.sf.gilead.annotations.AnnotationsHelper

public class AnnotationsHelper
extends java.lang.Object

Helper class for annotation management

Author:
bruno.marchesson

Constructor Summary
AnnotationsHelper()
           
 
Method Summary
static boolean hasReadOnlyAnnotations(java.lang.Class<?> clazz)
          Indicated if the argument has "ReadOnly" annotation on one of its field.
static boolean hasServerOnlyAnnotations(java.lang.Class<?> clazz)
          Indicated if the argument has "ServerOnly" annotation on one of its field.
static boolean hasServerOnlyOrReadOnlyAnnotations(java.lang.Class<?> clazz)
          Indicated if the argument has "ServerOnly" annotation on one of its field.
static boolean isReadOnly(java.lang.Class<?> clazz, java.lang.String propertyName)
          Indicated if the argument has "ReadOnly" annotation on the named field.
static boolean isServerOnly(java.lang.Class<?> clazz, java.lang.String propertyName)
          Indicated if the argument has "ServerOnly" annotation on the named field.
static boolean isServerOrReadOnly(java.lang.Class<?> clazz, java.lang.String propertyName)
          Indicated if the argument has "ReadOnly" annotation on the named field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationsHelper

public AnnotationsHelper()
Method Detail

isServerOnly

public static boolean isServerOnly(java.lang.Class<?> clazz,
                                   java.lang.String propertyName)
Indicated if the argument has "ServerOnly" annotation on the named field.


isReadOnly

public static boolean isReadOnly(java.lang.Class<?> clazz,
                                 java.lang.String propertyName)
Indicated if the argument has "ReadOnly" annotation on the named field.


isServerOrReadOnly

public static boolean isServerOrReadOnly(java.lang.Class<?> clazz,
                                         java.lang.String propertyName)
Indicated if the argument has "ReadOnly" annotation on the named field.


hasServerOnlyAnnotations

public static boolean hasServerOnlyAnnotations(java.lang.Class<?> clazz)
Indicated if the argument has "ServerOnly" annotation on one of its field.


hasServerOnlyOrReadOnlyAnnotations

public static boolean hasServerOnlyOrReadOnlyAnnotations(java.lang.Class<?> clazz)
Indicated if the argument has "ServerOnly" annotation on one of its field.


hasReadOnlyAnnotations

public static boolean hasReadOnlyAnnotations(java.lang.Class<?> clazz)
Indicated if the argument has "ReadOnly" annotation on one of its field.