private QName getCClassInfoQName(CClassInfo info) { QName qname = info.getTypeName(); if (qname == null) { qname = info.getElementName(); } return qname; }
public static ClassOutline findClassOutline(Outline outline, QName type) { Set<Map.Entry<NClass, CClassInfo>> set = outline.getModel().beans().entrySet(); for (Map.Entry<NClass, CClassInfo> entry : set) { ClassOutline classOutline = outline.getClazz(entry.getValue()); QName qname = entry.getValue().getTypeName(); if (!type.equals(qname)) { continue; } return classOutline; } throw new IllegalStateException("Object type class defined by qname '" + type + "' outline was not found."); }
private void addComplexType(Outline outline, Map<String, JFieldVar> namespaceFields) { Set<Map.Entry<NClass, CClassInfo>> set = outline.getModel().beans().entrySet(); for (Map.Entry<NClass, CClassInfo> entry : set) { ClassOutline classOutline = outline.getClazz(entry.getValue()); QName qname = entry.getValue().getTypeName(); if (qname == null) { continue; } JFieldVar namespaceField = namespaceFields.get(qname.getNamespaceURI()); createQName(outline, classOutline.implClass, COMPLEX_TYPE_FIELD_NAME, qname, namespaceField, false, false); } }
private boolean isFieldReference(JFieldVar field, ClassOutline classOutline) { CPropertyInfo propertyInfo = classOutline.target.getProperty(field.name()); Collection<? extends CTypeInfo> collection = propertyInfo.ref(); if (collection == null || collection.isEmpty()) { return false; } CTypeInfo info = collection.iterator().next(); if (info instanceof CClassInfo) { CClassInfo classInfo = (CClassInfo) info; if (OBJECT_REFERENCE_TYPE.equals(classInfo.getTypeName())) { return true; } } return false; }
protected CTypeRef toTypeRef(CElementPropertyInfo ep) { return new CTypeRef(ci,ci.getElementName(),ci.getTypeName(),false,null); } }
protected CTypeRef toTypeRef(CElementPropertyInfo ep) { return new CTypeRef(ci,ci.getElementName(),ci.getTypeName(),false,null); } }
protected CTypeRef toTypeRef(CElementPropertyInfo ep) { return new CTypeRef(ci,ci.getElementName(),ci.getTypeName(),false,null); } }
protected CTypeRef toTypeRef(CElementPropertyInfo ep) { return new CTypeRef(ci,ci.getElementName(),ci.getTypeName(),false,null); } }
protected CTypeRef toTypeRef(CElementPropertyInfo ep) { return new CTypeRef(ci,ci.getElementName(),ci.getTypeName(),false,null); } }
for (final ClassOutline classOutline : this.outline.getClasses()) { this.classes.put(classOutline.implClass.fullName(), classOutline); this.classesBySchemaComponent.put(classOutline.target.getTypeName(), classOutline);
countURI(uriCountMap, ci.getTypeName()); countURI(uriCountMap, ci.getElementName());
countURI(uriCountMap, ci.getTypeName()); countURI(uriCountMap, ci.getElementName());
if(parent().target.getTypeName()==null) enclosingTypeNS = parent()._package().getMostUsedNamespaceURI(); else enclosingTypeNS = parent().target.getTypeName().getNamespaceURI();
if(parent().target.getTypeName()==null) enclosingTypeNS = parent()._package().getMostUsedNamespaceURI(); else enclosingTypeNS = parent().target.getTypeName().getNamespaceURI();
private void updateObjectReferenceType(Outline outline) { ClassOutline objectReferenceOutline = null; for (Map.Entry<NClass, CClassInfo> entry : outline.getModel().beans().entrySet()) { QName qname = entry.getValue().getTypeName(); if (qname == null || !OBJECT_REFERENCE_TYPE.equals(qname)) { continue;
countURI(uriCountMap, ci.getTypeName()); countURI(uriCountMap, ci.getElementName());
countURI(uriCountMap, ci.getTypeName()); countURI(uriCountMap, ci.getElementName());
writeTypeName(cc.target.getTypeName(), xtw, mostUsedNamespaceURI);
writeTypeName(cc.target.getTypeName(), xtw, mostUsedNamespaceURI);
writeTypeName(cc.target.getTypeName(), xtw, mostUsedNamespaceURI);