/** * Flag classes referenced more than once to be handled with <mapping> definitions. * * @param refmap */ private void flagMultipleReferences(ReferenceCountMap refmap) { for (Iterator iter = refmap.iterator(); iter.hasNext();) { String type = (String)iter.next(); if (refmap.getCount(type) > 1) { m_directSet.add(type); } } }
ReferenceCountMap refmap = new ReferenceCountMap(); m_directSet.addAll(concrs); m_directSet.addAll(abstrs);
refmap.incrementCount(type); throw new IllegalStateException("No way to handle type " + mtype + ", referenced from " + type); } else if (checkInclude(mtype)) { if (refmap.incrementCount(mtype) <= 1) { expandReferences(mtype, refmap); if (!"java.lang.Object".equals(stype) && !Types.isSimpleValue(stype) && !isValueClass(stype) && !m_global.isKnownMapping(stype) && checkInclude(stype)) { if (refmap.incrementCount(stype) <= 1) { expandReferences(stype, refmap);
ReferenceCountMap refmap = new ReferenceCountMap(); m_directSet.addAll(classes); findReferences(classes, refmap);
/** * Add mapping details for classes referenced more than once, or classes with mapping forced. * * @param refmap */ private void addReferencedMappings(ReferenceCountMap refmap) { for (Iterator iter = refmap.iterator(); iter.hasNext();) { String type = (String)iter.next(); if (refmap.getCount(type) > 1 && !m_mappingDetailsMap.containsKey(type)) { addMappingDetails(null, null, type); } } }
/** * Generate the mapping definitions for classes referenced more than once. * * @param refmap */ private void generateReferencedMappings(ReferenceCountMap refmap) { for (Iterator iter = refmap.iterator(); iter.hasNext();) { String type = (String)iter.next(); if (refmap.getCount(type) > 1) { BindingMappingDetail detail = (BindingMappingDetail)m_mappingDetailsMap.get(type); if (!detail.isGenerated()) { addMapping(type, detail); } } } }