Package com.envoisolutions.sxc.builder.impl

Examples of com.envoisolutions.sxc.builder.impl.ElementParserBuilderImpl$ExpectedElement


        writerBuilder.write();
    }

    public ElementParserBuilderImpl getParserBuilder() {
        if (parserBuilder == null) {
            parserBuilder = new ElementParserBuilderImpl(builderContext.getBuildContext(), jaxbObjectClass, type, mixed);
            parserBuilder.setXmlType(xmlType);
            parserBuilder.setAllowUnkown(false);
            parserBuilder.setBaseClass(builderContext.getCodeModel().ref(JAXBObject.class).narrow(type));
            parserBuilder.getMethod()._throws(Exception.class);
View Full Code Here


    public JAXBObjectBuilder expectWrapperElement(QName elementName, JVar beanVar, String propertyName, boolean mixed) {
        if (expectedElements.contains(elementName)) throw new IllegalArgumentException("Element is alredy expected " + elementName);
        expectedElements.add(elementName);

        ElementParserBuilderImpl parserBuilder = new ElementParserBuilderImpl(builderContext.getBuildContext(), jaxbObjectClass, null, mixed, 2, propertyName);
        parserBuilder.setAllowUnkown(false);

        String name = parserBuilder.getVariableManager().createId(decapitalize(beanVar.type().name()));
        parserBuilder.getMethod().param(beanVar.type(), name);

        parserBuilder.getMethod()._throws(Exception.class);

        getParserBuilder().expectElement(elementName, parserBuilder, beanVar);

        JBlock block = new JBlock();
        block.add(new JLineComment("ELEMENT WRAPPER: " + propertyName));
View Full Code Here

TOP

Related Classes of com.envoisolutions.sxc.builder.impl.ElementParserBuilderImpl$ExpectedElement

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.