Examples of NonElement


Examples of com.sun.xml.bind.v2.model.core.NonElement

                    protected void write(ContentModelContainer parent, boolean isOptional, boolean repeated) {
                        LocalElement e = parent.element();

                        QName tn = t.getTagName();

                        NonElement target = t.getTarget();
                        if (canBeDirectElementRef(t,tn) || ((!tn.getNamespaceURI().equals(uri) && tn.getNamespaceURI().length()>0) &&
                                                            (!((target instanceof ClassInfo) && (target.getTypeName() == null))))) {     // see Issue 517
                                e.ref(tn);
                        } else {
                            e.name(tn.getLocalPart());
                            writeTypeRef(e,t, "type");
                            elementFormDefault.writeForm(e,tn);
View Full Code Here

Examples of com.sun.xml.bind.v2.model.core.NonElement

/*      */
/*  210 */       Object s = nav().getSuperClass(this.clazz);
/*  211 */       if ((s == null) || (s == nav().asDecl(Object.class))) {
/*  212 */         this.baseClass = null;
/*      */       } else {
/*  214 */         NonElement b = this.builder.getClassInfo(s, true, this);
/*  215 */         if ((b instanceof ClassInfoImpl)) {
/*  216 */           this.baseClass = ((ClassInfoImpl)b);
/*  217 */           this.baseClass.hasSubClasses = true;
/*      */         } else {
/*  219 */           this.baseClass = null;
View Full Code Here

Examples of com.sun.xml.bind.v2.model.core.NonElement

/*     */   }
/*     */
/*     */   private boolean addAllSubtypes(T type) {
/* 223 */     Navigator nav = nav();
/*     */
/* 226 */     NonElement t = this.parent.builder.getClassInfo(nav.asDecl(type), this);
/* 227 */     if (!(t instanceof ClassInfo))
/*     */     {
/* 229 */       return false;
/*     */     }
/* 231 */     boolean result = false;
View Full Code Here

Examples of com.sun.xml.bind.v2.model.core.NonElement

/*     */   }
/*     */
/*     */   public NonElement<T, C> getClassInfo(C clazz, boolean searchForSuperClass, Locatable upstream)
/*     */   {
/* 201 */     assert (clazz != null);
/* 202 */     NonElement r = this.typeInfoSet.getClassInfo(clazz);
/* 203 */     if (r != null) {
/* 204 */       return r;
/*     */     }
/* 206 */     if (this.nav.isEnum(clazz)) {
/* 207 */       EnumLeafInfoImpl li = createEnumLeafInfo(clazz, upstream);
View Full Code Here

Examples of com.sun.xml.bind.v2.model.core.NonElement

/*     */     }
/*     */   }
/*     */
/*     */   public NonElement<T, C> getTypeInfo(T t, Locatable upstream)
/*     */   {
/* 285 */     NonElement r = this.typeInfoSet.getTypeInfo(t);
/* 286 */     if (r != null) return r;
/*     */
/* 288 */     if (this.nav.isArray(t)) {
/* 289 */       ArrayInfoImpl ai = createArrayInfo(upstream, t);
/*     */
View Full Code Here

Examples of com.sun.xml.bind.v2.model.core.NonElement

/* 305 */     Object s = reader().getClassValue(this.anno, "scope");
/* 306 */     if (s.equals(nav().ref(XmlElementDecl.GLOBAL.class))) {
/* 307 */       this.scope = null;
/*     */     }
/*     */     else {
/* 310 */       NonElement scp = builder.getClassInfo(nav().asDecl(s), this);
/* 311 */       if (!(scp instanceof ClassInfo)) {
/* 312 */         throw new IllegalAnnotationException(Messages.SCOPE_IS_NOT_COMPLEXTYPE.format(new Object[] { nav().getTypeName(s) }), this.anno);
/*     */       }
/*     */
/* 316 */       this.scope = ((ClassInfo)scp);
View Full Code Here

Examples of com.sun.xml.bind.v2.model.core.NonElement

/* 836 */       if ((tr.type == Void.TYPE) || (tr.type == Void.class)) {
/* 837 */         xsdgen.add(tr.tagName, false, null);
/*     */       }
/* 839 */       else if (tr.type != CompositeStructure.class)
/*     */       {
/* 842 */         NonElement typeInfo = getXmlType(tis, tr);
/* 843 */         xsdgen.add(tr.tagName, !Navigator.REFLECTION.isPrimitive(tr.type), typeInfo);
/*     */       }
/*     */     }
/* 846 */     return xsdgen;
/*     */   }
View Full Code Here

Examples of com.sun.xml.bind.v2.model.core.NonElement

/* 846 */     return xsdgen;
/*     */   }
/*     */
/*     */   public QName getTypeName(TypeReference tr) {
/*     */     try {
/* 851 */       NonElement xt = getXmlType(getTypeInfoSet(), tr);
/* 852 */       if (xt == null) throw new IllegalArgumentException();
/* 853 */       return xt.getTypeName();
/*     */     } catch (IllegalAnnotationsException e) {
/*     */     }
/* 856 */     throw new AssertionError(e);
/*     */   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.