Package org.codehaus.enunciate.qname

Examples of org.codehaus.enunciate.qname.XmlQNameEnumRef


        added = elementRef;
      }
      else if (isAnyAttribute(accessor)) {
        hasAnyAttribute = true;

        XmlQNameEnumRef enumRef = accessor.getAnnotation(XmlQNameEnumRef.class);
        if (enumRef != null) {
          AnnotationProcessorEnvironment env = Context.getCurrentEnvironment();
          try {
            TypeDeclaration decl = env.getTypeDeclaration(enumRef.value().getName());
            anyAttributeQNameEnumRef = env.getTypeUtils().getDeclaredType(decl);
          }
          catch (MirroredTypeException e) {
            anyAttributeQNameEnumRef = e.getTypeMirror();
          }
View Full Code Here


   * The enum type containing the known qnames for this qname enum accessor, or null is this accessor doesn't reference a known qname type.
   *
   * @return The enum type containing the known qnames for this qname enum accessor.
   */
  public TypeMirror getQNameEnumRef() {
    XmlQNameEnumRef enumRef = getAnnotation(XmlQNameEnumRef.class);
    TypeMirror qnameEnumType = null;
    if (enumRef != null) {
      AnnotationProcessorEnvironment env = Context.getCurrentEnvironment();
      try {
        TypeDeclaration decl = env.getTypeDeclaration(enumRef.value().getName());
        qnameEnumType = env.getTypeUtils().getDeclaredType(decl);
      }
      catch (MirroredTypeException e) {
        qnameEnumType = e.getTypeMirror();
      }
View Full Code Here

TOP

Related Classes of org.codehaus.enunciate.qname.XmlQNameEnumRef

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.