Package de.netallied.xsd2cppsax.TypeMapping

Examples of de.netallied.xsd2cppsax.TypeMapping.TypeMap


                replaceValue = fillInTypeMappingTemplate(replaceValue, null, null, dataProvider);
                tmpl = tmpl.replace(Constants.TMPL_POST_DATA_ATOMIC_XSD_2_CPP, replaceValue);
            }

            if (tmpl.contains(Constants.TMPL_DATA_ATOMIC_DATA_METHOD_IMPL)) {
                TypeMap typeMap = dataProvider.getConfig().getTypeMapping().get(xsdType);
                String cppImpl = null;
                if (Util.isFacetPatternSupported(simpleType, dataProvider.getConfig())) {
                    cppImpl = typeMap.getDataAtomicDataMethodImplFacetPattern();
                } else {
                    cppImpl = typeMap.getDataAtomicDataMethodImpl();
                }
                if (cppImpl != null && cppImpl.length() > 0) {
                    cppImpl = fillInTypeMappingTemplate(cppImpl, null, null, dataProvider);
                    tmpl = tmpl.replace(Constants.TMPL_DATA_ATOMIC_DATA_METHOD_IMPL, cppImpl);
                } else {
View Full Code Here


                fprintfSourceFile.println(");");

            } else {
                fprintfSourceFile.print(value);
                String xsdTypeString = Util.findXSDSimpleTypeString(memberTypes.get(i), getConfig());
                TypeMap typeMap = getConfig().getTypeMapping().get(xsdTypeString);
                if (typeMap != null) {
                    if (typeMap.getToString() != null) {
                        fprintfSourceFile.print(typeMap.getToString());
                    }
                }
            }
            if (!Util.isStringType(memberTypes.get(i), getConfig()) || Util.hasFacetEnum(memberTypes.get(i))) {
                fprintfSourceFile.println(");");
View Full Code Here

        } else if (Util.isBoolType(attrType, getConfig())) {
            fprintfSourceFile.print(value + createBoolToString());
        } else {
            fprintfSourceFile.print(value);
            String xsdTypeString = Util.findXSDSimpleTypeString(attrType, getConfig());
            TypeMap typeMap = getConfig().getTypeMapping().get(xsdTypeString);
            if (typeMap != null) {
                if (typeMap.getToString() != null) {
                    fprintfSourceFile.print(typeMap.getToString());
                }
            }
        }
        fprintfSourceFile.println(");");
    }
View Full Code Here

            fprintfSourceFile.print("fprintf(" + fileMemberName + ", \"");
            String formatSpecifier = findFormatSpecifier(simpleType);
            fprintfSourceFile.print(formatSpecifier);
            fprintfSourceFile.print("\", " + value);
            String xsdTypeString = Util.findXSDSimpleTypeString(simpleType, getConfig());
            TypeMap typeMap = getConfig().getTypeMapping().get(xsdTypeString);
            if (typeMap != null) {
                if (typeMap.getToString() != null) {
                    fprintfSourceFile.print(typeMap.getToString());
                }
            }
            fprintfSourceFile.println(");");
        }
    }
View Full Code Here

TOP

Related Classes of de.netallied.xsd2cppsax.TypeMapping.TypeMap

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.