Ejemplo n.º 1
0
  public QName getXmlTypeName(Reference javaType) {
    NonElement<TypeMirror, TypeElement> ti = refMap.get(javaType);

    if (ti != null) return ti.getTypeName();

    return null;
  }
Ejemplo n.º 2
0
 /*     */ private void addTypeName(NonElement<T, C> r) /*     */ {
   /* 280 */ QName t = r.getTypeName();
   /* 281 */ if (t == null) return;
   /*     */
   /* 283 */ TypeInfo old = (TypeInfo) this.typeNames.put(t, r);
   /* 284 */ if (old != null)
   /*     */ {
     /* 286 */ reportError(
         new IllegalAnnotationException(
             Messages.CONFLICTING_XML_TYPE_MAPPING.format(new Object[] {r.getTypeName()}),
             old,
             r));
     /*     */ }
   /*     */ }