Package com.j2xq.annotation

Examples of com.j2xq.annotation.J2XQ


  private static String getNamespace(Class<?> aClass){
    Annotation[] annotations = aClass.getAnnotations();
   
    for(Annotation annotation : annotations){
        if(annotation instanceof J2XQ){
            J2XQ annot = (J2XQ) annotation;           
            if(annot.name().equals("namespace"))
              return annot.value();           
        }
    }
   
    return "";
  }
View Full Code Here


  private static String getNamespacePrefix(Class<?> aClass){
    Annotation[] annotations = aClass.getAnnotations();
   
    for(Annotation annotation : annotations){
        if(annotation instanceof J2XQ){
            J2XQ annot = (J2XQ) annotation;           
            return annot.nsprefix();           
        }
    }
   
    return "";
  }
View Full Code Here

  private static String getMethodName(Method method){
    Annotation[] annotations = method.getAnnotations();
   
    for(Annotation annotation : annotations){
        if(annotation instanceof J2XQ){
            J2XQ annot = (J2XQ) annotation;           
            if(annot.name().equals("name"))
              return annot.value();           
        }
    }
   
    return "";
  }
View Full Code Here

TOP

Related Classes of com.j2xq.annotation.J2XQ

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.