BPEL2UDDI extends AnnotationProcessor { public FindTModel createFindTModelForProcessName (QName serviceName) { FindTModel findTModel = new FindTModel(); Name name = new Name(); name.setValue(serviceName.getLocalPart()); findTModel.setName(name); CategoryBag categoryBag = new CategoryBag(); String namespace = serviceName.getNamespaceURI(); if (namespace!=null && namespace.length()!=0) { KeyedReference namespaceReference = WSDL2UDDI.newKeyedReference( "uddi:uddi.org:xml:namespace", "uddi-org:xml:namespace", namespace); categoryBag.getKeyedReference().add(namespaceReference); } KeyedReference typesReference = WSDL2UDDI.newKeyedReference( "uddi:uddi.org:bpel:types", "uddi-org:bpel:types", "process"); categoryBag.getKeyedReference().add(typesReference); findTModel.setCategoryBag(categoryBag); if (log.isDebugEnabled()) { log.debug(new PrintUDDI<FindTModel>().print(findTModel)); } return findTModel; } BPEL2UDDI(UDDIClerk clerk, URLLocalizer urlLocalizer, Properties properties); String getKeyDomainURI(); void setKeyDomainURI(String keyDomainURI); UDDIClerk getClerk(); void setClerk(UDDIClerk clerk); String getLang(); void setLang(String lang); URLLocalizer getUrlLocalizer(); void setUrlLocalizer(URLLocalizer urlLocalizer); @SuppressWarnings("unchecked") BindingTemplate register(QName serviceName, String portName, URL serviceUrl, Definition wsdlDefinition); String unRegister(QName serviceName, String portName, URL serviceUrl); BusinessService lookupService(String serviceKey); BusinessService createBusinessService(QName serviceName, Definition wsdlDefinition); Set<TModel> createWSDLPortTypeTModels(String wsdlURL, Map<QName,PortType> portTypes); Set<TModel> createWSDLBindingTModels(String wsdlURL, Map<QName,Binding> bindings); TModel createBPEL4WSProcessTModel(QName serviceName, String targetNamespace, Map<QName,PortType> portTypes, String bpelOverviewURL); BindingTemplate createBPELBinding(QName serviceName, String portName, URL serviceUrl, Definition wsdlDefinition); FindTModel createFindTModelForProcessName(QName serviceName); FindTModel createFindProcessesForPortTypes(String portTypeKey); GetTModelDetail createFindAllPortTypesForProcess_1(String processKey); GetTModelDetail createFindAllPortTypesForProcess_2(List<String> portTypeTModelKeys); FindBinding createFindImplementationsForProcess(String processKey);  }
@Test public void testTN_FindTModelForProcessName() throws JAXBException { QName processName = new QName("http: FindTModel findTModel = bpel2UDDI.createFindTModelForProcessName(processName); System.out.println("***** Find TModel For ProcessName: " + processName); if (serialize) System.out.println(pFindTModel.print(findTModel)); Assert.assertNotNull(findTModel.getCategoryBag()); }
@Test public void testHelloWorld_FindTModelForProcessName() throws JAXBException { QName processName = new QName("http: FindTModel findTModel = bpel2UDDI.createFindTModelForProcessName(processName); System.out.println("***** Find TModel For ProcessName: " + processName); if (serialize) System.out.println(pFindTModel.print(findTModel)); Assert.assertNotNull(findTModel.getCategoryBag()); }