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);
}