BindingElement binding = BindingElement.readBinding(url.openStream(), name, null, true, vctx); binding.setBaseUrl(url); vctx.setBindingRoot(binding); binding.runValidation(vctx);
loop: for (Iterator childiter = binding.topChildIterator(); childiter.hasNext();) { ElementBase child = (ElementBase)childiter.next(); switch (child.type()) {
ValidationContext vctx = new ValidationContext(loc); FileInputStream is = new FileInputStream(file); BindingElement binding = BindingElement.validateBinding(root.getFileName(), file.toURI().toURL(), is, vctx); if (binding == null || vctx.getErrorCount() > 0 || vctx.getFatalCount() > 0) { return null; if (hold != root) { URL url = new URL(base, hold.getFileName()); if (binding.addIncludePath(url.toExternalForm(), false)) { throw new IllegalStateException("Binding not found when read from file"); } else { bindings.add(binding.getExistingIncludeBinding(url));
ValidationContext vctx = BindingElement.newValidationContext(); binding = BindingElement.readBinding(new FileInputStream(file), path, vctx); binding.setBaseUrl(file.toURI().toURL()); vctx.setBindingRoot(binding); IncludePrevalidationVisitor ipv = new IncludePrevalidationVisitor(vctx); if (unwrap && complexTypeMap.size() > 0 && (binding == null || !binding.isForceClasses())) { throw new RuntimeException( "unwrapped binding must use force-classes='true' option in " + path); if (binding != null && binding.getName() != null && binding.getTargetPackage() != null) { bindinit.setAttribute("binding-name", binding.getName()); bindinit.setAttribute("binding-package", binding.getTargetPackage()); } else { if (mappedclass == null) {
ValidationContext vctx = BindingElement.newValidationContext(); binding = BindingElement.readBinding(new FileInputStream(file), path, vctx); binding.setBaseUrl(file.toURI().toURL()); vctx.setBindingRoot(binding); IncludePrevalidationVisitor ipv = new IncludePrevalidationVisitor(vctx); if (unwrap && complexTypeMap.size() > 0 && (binding == null || !binding.isForceClasses())) { throw new RuntimeException( "unwrapped binding must use force-classes='true' option in " + path); if (binding != null && binding.getName() != null && binding.getTargetPackage() != null) { bindinit.setAttribute("binding-name", binding.getName()); bindinit.setAttribute("binding-package", binding.getTargetPackage()); } else { if (mappedclass == null) {
BindingElement binding = BindingElement.readBinding(url.openStream(), name, null, true, vctx); binding.setBaseUrl(url); vctx.setBindingRoot(binding); binding.runValidation(vctx);
citer = binding.topChildIterator(); while (citer.hasNext()) { ElementBase child = (ElementBase)citer.next();
citer = binding.topChildIterator(); while (citer.hasNext()) { ElementBase child = (ElementBase)citer.next();
String defaultns = findDefaultNS(binding.topChildIterator(), dns); for (Iterator iter = binding.topChildIterator(); iter.hasNext();) { ElementBase child = (ElementBase)iter.next(); if (child.type() == ElementBase.INCLUDE_ELEMENT) {
String defaultns = findDefaultNS(binding.topChildIterator(), dns); for (Iterator iter = binding.topChildIterator(); iter.hasNext();) { ElementBase child = (ElementBase)iter.next(); if (child.type() == ElementBase.INCLUDE_ELEMENT) {