Package org.uddi.api_v3

Examples of org.uddi.api_v3.Description


      Element docElement = wsdlDefinition.getService(serviceName).getDocumentationElement();
      if (docElement!=null && docElement.getTextContent()!=null) {
        serviceDescription = docElement.getTextContent();
      }
    }
    Description description = new Description();
    description.setLang(lang);
    description.setValue(serviceDescription);
    service.getDescription().add(description);
    // Service name
    Name sName = new Name();
    sName.setLang(lang);
    sName.setValue(serviceName.getLocalPart());
View Full Code Here


        // Override with the service description from the WSDL if present
        Element docElement = binding.getDocumentationElement();
        if (docElement!=null && docElement.getTextContent()!=null) {
          bindingDescription = docElement.getTextContent();
        }
        Description description = new Description();
        description.setLang(lang);
        description.setValue(bindingDescription);
        bindingTemplate.getDescription().add(description);
       
        // reference wsdl:binding tModel
        TModelInstanceInfo tModelInstanceInfoBinding = new TModelInstanceInfo();
        tModelInstanceInfoBinding.setTModelKey(keyDomainURI + binding.getQName().getLocalPart());
        InstanceDetails instanceDetails = new InstanceDetails();
        instanceDetails.setInstanceParms(portName)
        tModelInstanceInfoBinding.setInstanceDetails(instanceDetails);
        Description descriptionB = new Description();
        descriptionB.setLang(lang);
        descriptionB.setValue("The wsdl:binding that this wsdl:port implements. " + bindingDescription +
            " The instanceParms specifies the port local name.");
        tModelInstanceInfoBinding.getDescription().add(descriptionB);
        tModelInstanceDetails.getTModelInstanceInfo().add(tModelInstanceInfoBinding);
       
        // reference wsdl:portType tModel
        PortType portType = binding.getPortType();
        TModelInstanceInfo tModelInstanceInfoPortType = new TModelInstanceInfo();
        tModelInstanceInfoPortType.setTModelKey(keyDomainURI + portType.getQName().getLocalPart());
        String portTypeDescription = "";
        docElement = portType.getDocumentationElement();
        if (docElement!=null && docElement.getTextContent()!=null) {
          portTypeDescription = docElement.getTextContent();
        }
        Description descriptionPT = new Description();
        descriptionPT.setLang(lang);
        descriptionPT.setValue("The wsdl:portType that this wsdl:port implements." + portTypeDescription );
        tModelInstanceInfoPortType.getDescription().add(descriptionPT);
        tModelInstanceDetails.getTModelInstanceInfo().add(tModelInstanceInfoPortType);
       
        //reference bpel:process tModel
        TModelInstanceInfo tModelInstanceInfoBPEL = new TModelInstanceInfo();
        tModelInstanceInfoBPEL.setTModelKey(keyDomainURI + service.getQName().getLocalPart() + "Process");
        Description descriptionBPEL = new Description();
        // Description
        String serviceDescription = properties.getProperty(Property.SERVICE_DESCRIPTION, Property.DEFAULT_SERVICE_DESCRIPTION);
        // Override with the service description from the WSDL if present
        docElement = wsdlDefinition.getService(serviceName).getDocumentationElement();
        if (docElement!=null && docElement.getTextContent()!=null) {
          serviceDescription = docElement.getTextContent();
        }
        descriptionBPEL.setLang(lang);
        descriptionBPEL.setValue("The bpel:process this wsdl:port supports." + serviceDescription);
        tModelInstanceInfoBPEL.getDescription().add(descriptionBPEL);
        tModelInstanceDetails.getTModelInstanceInfo().add(tModelInstanceInfoBPEL);
       
        bindingTemplate.setTModelInstanceDetails(tModelInstanceDetails);
      } else {
View Full Code Here

                        return ret;
                }
                if (content.length() > UDDIConstants.MAX_description_length) {
                        int offset = 0;
                        while (offset < content.length()) {
                                Description description = new Description();
                                description.setLang(lang);
                                int trim = offset + UDDIConstants.MAX_description_length;
                                if (trim > content.length()) {
                                        trim = content.length()-1;
                                }
                                description.setValue(content.substring(offset, trim));
                                offset = offset + UDDIConstants.MAX_description_length;
                                ret.add(description);
                               
                        }
                } else {
                        ret.add(new Description(content, lang));
                }
                return ret;

        }
View Full Code Here

  }
 
  public static Description getDescription(List<Description> entityList, String lang) {
   
    if (entityList.size()==0) {
      Description description = new Description();
      description.setValue("");
      description.setLang(lang);
      entityList.add(description);
    }
    if (lang==null) return entityList.get(0);
    for (Description entity : entityList) {
      if (lang.equalsIgnoreCase(entity.getLang())) {
View Full Code Here

                tt.setInstanceDetails(new InstanceDetails());
                tt.getInstanceDetails().setInstanceParms(version);

                OverviewDoc doc = new OverviewDoc();
                doc.setOverviewURL(new OverviewURL("http://www.ibm.com/developerworks/webservices/library/ws-version/", "text"));
                doc.getDescription().add(new Description(
                        "Describes a version associated with either a service interface, a bindingTemplate service instance.", lang));
                tt.getDescription().add(new Description("Describes a version associated with either a service interface, a bindingTemplate service instance.", lang));
                tt.getInstanceDetails().getOverviewDoc().add(doc);
                return tt;
        }
View Full Code Here

        private static Contacts getContacts() {
                Contacts c = new Contacts();
                Contact admin = new Contact();
                admin.setUseType("it support");
                admin.getEmail().add(new Email("admin@localhost", "primary"));
                admin.getDescription().add(new Description("the guy in that keeps the lights green", "en"));
                admin.getPersonName().add(new PersonName("admin1", "en"));
                Address r=new Address();
                r.setLang("en");
                r.setSortCode("none");
                r.setTModelKey(domainprefix + "address");
View Full Code Here

        }

        private static Collection<? extends Description> getDescriptions() {
               
                List<Description> r = new ArrayList<Description>();
                r.add(new Description("description", "en"));
                return r;
        }
View Full Code Here

        sb.setAuthInfo(authInfoJoe);
        BusinessEntity be = new BusinessEntity();
        Name n = new Name();

        n.setValue("A Test business");
        Description d = new Description();
        d.setValue("a description");
        //27
        d.setLang(str27);
        be.getName().add(n);
        be.getDescription().add(d);
        sb.getBusinessEntity().add(be);
        try {
            BusinessDetail saveBusiness = publication.saveBusiness(sb);
View Full Code Here

        sb.setAuthInfo(authInfoJoe);
        BusinessEntity be = new BusinessEntity();
        Name n = new Name();

        n.setValue("A Test business");
        Description d = new Description();
        d.setValue("a description");
        //26
        d.setLang(str26);
        be.getDescription().add(d);
        be.getName().add(n);
        sb.getBusinessEntity().add(be);
        BusinessDetail saveBusiness = publication.saveBusiness(sb);
        DeleteBusiness db = new DeleteBusiness();
View Full Code Here

        sb.setAuthInfo(authInfoJoe);
        BusinessEntity be = new BusinessEntity();
        Name n = new Name();

        n.setValue("A Test business");
        Description d = new Description();
        d.setValue(str255);
        be.getDescription().add(d);
        be.getName().add(n);
        sb.getBusinessEntity().add(be);

        BusinessDetail saveBusiness = publication.saveBusiness(sb);
View Full Code Here

TOP

Related Classes of org.uddi.api_v3.Description

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.