org.apache.tapestry.annotations
Class AnnotationUtils

java.lang.Object
  extended by org.apache.tapestry.annotations.AnnotationUtils

public final class AnnotationUtils
extends Object

Since:
4.0
Author:
Howard M. Lewis Ship

Method Summary
static Location buildLocationForAnnotation(Method method, java.lang.annotation.Annotation annotation, Resource classResource)
           
static String getPropertyName(Method method)
          Determines the property name for a method, by stripping off the is/get/set prefix and decapitalizing the first name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPropertyName

public static String getPropertyName(Method method)
Determines the property name for a method, by stripping off the is/get/set prefix and decapitalizing the first name.

Parameters:
method - accessor method (get/set/is)
Returns:
the property name for the method
Throws:
ApplicationRuntimeException - if the method is not an accessor or mutator method

buildLocationForAnnotation

public static Location buildLocationForAnnotation(Method method,
                                                  java.lang.annotation.Annotation annotation,
                                                  Resource classResource)


Copyright © 2006 Apache Software Foundation. All Rights Reserved.