|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.annotations.AnnotationUtils
public final class AnnotationUtils
Method Summary | |
---|---|
static org.apache.hivemind.Location |
buildLocationForAnnotation(Method method,
java.lang.annotation.Annotation annotation,
org.apache.hivemind.Resource classResource)
|
static String |
convertMethodNameToKeyName(String methodName)
Converts a method name to a property key. |
static void |
copyBindings(IContainedComponent source,
IContainedComponent target)
Copies all bindings of a component to another one. |
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 |
---|
public static String getPropertyName(Method method)
method
- accessor method (get/set/is)
org.apache.hivemind.ApplicationRuntimeException
- if the method is not an accessor or mutator methodpublic static String convertMethodNameToKeyName(String methodName)
The prefix "get" is stripped off (if present)
The letter following "get" is converted to lower case
Other capitalized letters are converted to lower case and preceded with a dash ("-")
methodName
- the method to convert
public static void copyBindings(IContainedComponent source, IContainedComponent target)
source
- target
- public static org.apache.hivemind.Location buildLocationForAnnotation(Method method, java.lang.annotation.Annotation annotation, org.apache.hivemind.Resource classResource)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |