public void addModel(Object resolved, ProcessorContext context) { modelResolver.addModel(resolved, context); }
public void addModel(Object resolved, ProcessorContext context) { modelResolver.addModel(resolved, context); }
public void addModel(Object resolved, ProcessorContext context) { ModelResolver resolver = getModelResolverInstance(resolved.getClass()); if (resolver != null) { resolver.addModel(resolved, context); } else { map.put(resolved, resolved); } }
public void addModel(Object resolved, ProcessorContext context) { ModelResolver resolver = getModelResolverInstance(resolved.getClass()); if (resolver != null) { resolver.addModel(resolved, context); } else { map.put(resolved, resolved); } }
public void addModel(Object resolved, ProcessorContext context) { WSDLDefinition definition = (WSDLDefinition)resolved; for (XSDefinition d : definition.getXmlSchemas()) { if (contribution != null) { contribution.getModelResolver().addModel(d, context); } } List<WSDLDefinition> list = map.get(definition.getNamespace()); if (list == null) { list = new ArrayList<WSDLDefinition>(); map.put(definition.getNamespace(), list); } list.add(definition); }
public void addModel(Object resolved, ProcessorContext context) { WSDLDefinition definition = (WSDLDefinition)resolved; for (XSDefinition d : definition.getXmlSchemas()) { if (contribution != null) { contribution.getModelResolver().addModel(d, context); } } List<WSDLDefinition> list = map.get(definition.getNamespace()); if (list == null) { list = new ArrayList<WSDLDefinition>(); map.put(definition.getNamespace(), list); } list.add(definition); }
/** * A pre-resolution step, which is required for Contributions to handle the resolution of imports and exports so that * at resolve time, imports can be followed to exports and anything exported that is required can be resolved on demand * without the need to have already resolved the whole of the Contribution containing the export * @param contribution - the Contribution * @param resolver - the Resolver to use * @throws ContributionResolveException */ public void preResolve(Contribution contribution, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { // Resolve the contribution model itself ModelResolver contributionResolver = contribution.getModelResolver(); contribution.setUnresolved(false); contributionResolver.addModel(contribution, context); // Resolve Exports resolveExports(contribution, contributionResolver, context); // Resolve Imports resolveImports(contribution, contributionResolver, context); preResolved = true; } // end method preResolve
/** * A pre-resolution step, which is required for Contributions to handle the resolution of imports and exports so that * at resolve time, imports can be followed to exports and anything exported that is required can be resolved on demand * without the need to have already resolved the whole of the Contribution containing the export * @param contribution - the Contribution * @param resolver - the Resolver to use * @throws ContributionResolveException */ public void preResolve(Contribution contribution, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { // Resolve the contribution model itself ModelResolver contributionResolver = contribution.getModelResolver(); contribution.setUnresolved(false); contributionResolver.addModel(contribution, context); // Resolve Exports resolveExports(contribution, contributionResolver, context); // Resolve Imports resolveImports(contribution, contributionResolver, context); preResolved = true; } // end method preResolve
/** * Resolve an implementation. * @param implementation * @param resolver * @param context * @return * @throws ContributionResolveException */ protected Implementation resolveImplementation(Implementation implementation, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { if (implementation != null) { if (implementation.isUnresolved()) { implementation = resolver.resolveModel(Implementation.class, implementation, context); // Lazily resolve implementations if (implementation.isUnresolved()) { extensionProcessor.resolve(implementation, resolver, context); if (!implementation.isUnresolved()) { resolver.addModel(implementation, context); } } } } return implementation; }
throw ce; resolver.addModel(wsdlInterface, context); theInterfaces.add(wsdlInterface);
throw ce; resolver.addModel(wsdlInterface, context); theInterfaces.add(wsdlInterface);
/** * Resolve an implementation. * @param implementation * @param resolver * @param context * @return * @throws ContributionResolveException */ protected Implementation resolveImplementation(Implementation implementation, ModelResolver resolver, ProcessorContext context) throws ContributionResolveException { if (implementation != null) { if (implementation.isUnresolved()) { implementation = resolver.resolveModel(Implementation.class, implementation, context); // Lazily resolve implementations if (implementation.isUnresolved()) { extensionProcessor.resolve(implementation, resolver, context); if (!implementation.isUnresolved()) { resolver.addModel(implementation, context); } } } } return implementation; }
wsdlInterface = wsdlFactory.createWSDLInterface(portType.getElement(), wsdlDefinition, resolver, monitor); wsdlInterface.setWsdlDefinition(wsdlDefinition); resolver.addModel(wsdlInterface, context); } catch (InvalidInterfaceException e) { String message = context.getMonitor().getMessageString(WSDLInterfaceProcessor.class.getName(),
wsdlInterface = wsdlFactory.createWSDLInterface(portType.getElement(), wsdlDefinition, resolver, monitor); wsdlInterface.setWsdlDefinition(wsdlDefinition); resolver.addModel(wsdlInterface, context); } catch (InvalidInterfaceException e) { String message = context.getMonitor().getMessageString(WSDLInterfaceProcessor.class.getName(),
newWSDLInterface.getRequiredIntents().addAll(wsdlInterface.getRequiredIntents()); newWSDLInterface.getPolicySets().addAll(wsdlInterface.getPolicySets()); resolver.addModel(newWSDLInterface, context); wsdlInterface = newWSDLInterface; } catch (InvalidInterfaceException e) {
newWSDLInterface.getRequiredIntents().addAll(wsdlInterface.getRequiredIntents()); newWSDLInterface.getPolicySets().addAll(wsdlInterface.getPolicySets()); resolver.addModel(newWSDLInterface, context); wsdlInterface = newWSDLInterface; } catch (InvalidInterfaceException e) {
scaSchema.setLocation(IOHelper.toURI(scaSchemaURL)); scaSchema.setUnresolved(false); modelResolver.addModel(scaSchema, context);
resolver.addModel(javaInterface, context);
resolver.addModel(javaInterface, context);