Package com.codiform.moo.annotation

Examples of com.codiform.moo.annotation.InvalidAnnotationException


    return null;
  }

  private static void validateNoPropertyAnnotation( com.codiform.moo.annotation.Property annotation, String propertyName, Class<?> declaringClass ) {
    if ( annotation != null ) {
      throw new InvalidAnnotationException(
          "The property %s on class %s is a map or collection and should not be annotated with @Property; use @CollectionProperty or @MapProperty instead.",
          propertyName, declaringClass );
    }
  }
View Full Code Here


  }

  private static void validateNoCollectionPropertyAnnotation( com.codiform.moo.annotation.CollectionProperty annotation, String propertyName,
      Class<?> declaringClass ) {
    if ( annotation != null ) {
      throw new InvalidAnnotationException(
          "The property %s on class %s is not a collection and should not be annotated with @CollectionProperty.", propertyName,
          declaringClass );
    }
  }
View Full Code Here

  }

  private static void validateNoMapPropertyAnnotation( com.codiform.moo.annotation.MapProperty annotation, String propertyName,
      Class<?> declaringClass ) {
    if ( annotation != null ) {
      throw new InvalidAnnotationException( "The property %s on class %s is not a map and should not be annotated with @MapProperty.",
          propertyName, declaringClass );
    }
  }
View Full Code Here

  private static void validateNoPropertyAnnotation(
      com.codiform.moo.annotation.Property annotation,
      String propertyName, Class<?> declaringClass) {
    if( annotation != null ) {
      throw new InvalidAnnotationException(
          "The property %s on class %s is a collection and should not be annotated with @Property; use @CollectionProperty instead.",
          propertyName, declaringClass );
    }
  }
View Full Code Here

  private static void validateNoCollectionPropertyAnnotation(
      com.codiform.moo.annotation.CollectionProperty annotation,
      String propertyName, Class<?> declaringClass) {
    if( annotation != null ) {
      throw new InvalidAnnotationException(
          "The property %s on class %s is not a collection and should not be annotated with @CollectionProperty; use @Property instead.",
          propertyName, declaringClass );
    }
  }
View Full Code Here

TOP

Related Classes of com.codiform.moo.annotation.InvalidAnnotationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.