Package org.polyglotted.xpathstax.bind.XmlBinderContext

Examples of org.polyglotted.xpathstax.bind.XmlBinderContext.ClassContext


        checkNames(types, "book", "revision", "description");
       
        Map<Class<?>, ClassContext> contexts = ctx.getContexts();
        checkClasses(contexts, Book.class, Revision.class, Desc.class);
       
        ClassContext bookCtx = contexts.get(Book.class);
        checkAttributes(bookCtx, "id");
        checkElements(bookCtx, "title", "author", "price", "description", "genre");
        checkCollections(bookCtx, "type", "revision", "comment");

        ClassContext revCtx = contexts.get(Revision.class);
        checkAttributes(revCtx, "year", "definition");
        checkXmlValue(revCtx);

        ClassContext descCtx = contexts.get(Desc.class);
        checkXmlValue(descCtx);
    }
View Full Code Here

TOP

Related Classes of org.polyglotted.xpathstax.bind.XmlBinderContext.ClassContext

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.