Package org.apache.ws.scout.model.uddi.v2

Examples of org.apache.ws.scout.model.uddi.v2.Description


    for (TModel tmodel : tmodelList) {
      concept.setKey(lifeCycleManager.createKey(tmodel.getTModelKey()));
      concept.setName(lifeCycleManager.createInternationalString(getLocale(tmodel.getName().getLang()),
          tmodel.getName().getValue()));

      Description desc = getDescription(tmodel);
      if( desc != null ) {
        concept.setDescription(lifeCycleManager.createInternationalString(getLocale(desc.getLang()),
            desc.getValue()));
      }

      concept.addExternalIdentifiers(getExternalIdentifiers(tmodel.getIdentifierBag(), lifeCycleManager));
      concept.addClassifications(getClassifications(tmodel.getCategoryBag(), lifeCycleManager));
    }
View Full Code Here


    Concept concept = new ConceptImpl(lifeCycleManager);
    concept.setKey(lifeCycleManager.createKey(tmodel.getTModelKey()));
    concept.setName(lifeCycleManager.createInternationalString(getLocale(tmodel.getName().getLang()),
        tmodel.getName().getValue()));

    Description desc = getDescription(tmodel);
    if (desc != null) {
      concept.setDescription(lifeCycleManager.createInternationalString(getLocale(desc.getLang()),
          desc.getValue()));
    }

    concept.addExternalIdentifiers(getExternalIdentifiers(tmodel.getIdentifierBag(), lifeCycleManager));
    concept.addClassifications(getClassifications(tmodel.getCategoryBag(), lifeCycleManager));
View Full Code Here

    return concept;
  }

  private static Description getDescription( TModel tmodel )
  {
    Description desc = null;
    if (tmodel.getDescription().size()>0) desc=tmodel.getDescription().get(0);
    return desc;
  }
View Full Code Here

  {
    ArrayList<ExternalLink> alist = new ArrayList<ExternalLink>(1);
    if(overviewDoc != null)
    {
      String descStr = "";
      Description desc = null;
      if (overviewDoc.getDescription().size()>0) desc = overviewDoc.getDescription().get(0);
      if (desc !=null) descStr = desc.getValue();
      alist.add(lifeCycleManager.createExternalLink(overviewDoc.getOverviewURL(),descStr));
    }

    return alist;
  }
View Full Code Here

     
      //Now updating the business by adding another description
      SaveBusiness sb = new SaveBusiness();
      sb.setAuthInfo(authInfo);
      BusinessEntity beIn = beOut;
      Description desc2= new Description();
      desc2.setLang("nl");
      desc2.setValue("Omschrijving");
      beIn.getDescription().add(desc2);
      sb.getBusinessEntity().add(beIn);
      publication.saveBusiness(sb);
 
      // Now get the entity and check the values
View Full Code Here

    }
    assertEquals(descriptions1.size(), descriptions2.size());
    Iterator<Description> descriptions1Itr = descriptions1.iterator();
    Iterator<Description> descriptions2Itr = descriptions2.iterator();
    while (descriptions1Itr.hasNext()) {
      Description description1 = descriptions1Itr.next();
      Description description2 = descriptions2Itr.next();
      assertEquals(description1.getLang(), description2.getLang());
      assertEquals(description1.getValue(), description2.getValue());
    }
  }
View Full Code Here

    if (elem1s.size() == 0 && elem2s.size() == 0) {
      isMatch = true;
    }
   
    while (elem1.hasNext()) {
      Description desc1 = elem1.next();
     
      if (desc1 instanceof org.uddi.api_v3.Description) {
        //Descriptions
        Iterator<Description> elem2 = elem2s.iterator();
        while (elem2.hasNext()) {
          Description desc2 = elem2.next();
          if (desc2 instanceof org.uddi.api_v3.Description) {
            if (desc1.getLang().equals(desc2.getLang()) && desc1.getValue().equals(desc2.getValue())) {
              isMatch=true;
              break;
            }
          }
        }
View Full Code Here

    Iterator<Description> descIter1 = descList1.iterator();
    if (descList1.size() == 0 && doc2.getDescription().size() == 0) {
      descMatch = true;
    }
    while (descIter1.hasNext()) {
      Description descr1 = (Description) descIter1.next();
      List<Description> descList2 = doc2.getDescription();
      Iterator<Description> descElem2 = descList2.iterator();
      while (descElem2.hasNext()) {
        Description descr2 = descElem2.next();
        if (descr1.getLang().equals(descr2.getLang()) && descr1.getValue().equals(descr2.getValue())) {
          descMatch=true;
        }
      }
    }
View Full Code Here

        name.setValue(webServiceAnnotation.serviceName());
      } else {
        name.setValue(clazz.getSimpleName());
      }
      service.getName().add(name);
      Description description = new Description();
      description.setLang(lang);
      description.setValue(TokenResolver.replaceTokens(uddiService.description(),properties));
      service.getDescription().add(description);
     
      //categoryBag on the service
      if (!"".equals(uddiService.categoryBag())) {
        CategoryBag categoryBag = parseCategoryBag(uddiService.categoryBag());
View Full Code Here

     
      String bindingLang = String.valueOf(lang);
      if (uddiServiceBinding.lang()!=null) {
        bindingLang = TokenResolver.replaceTokens(uddiServiceBinding.lang(),properties);
      }
      Description bindingDescription = new Description();
      bindingDescription.setLang(bindingLang);
      bindingDescription.setValue(TokenResolver.replaceTokens(uddiServiceBinding.description(),properties));
      bindingTemplate.getDescription().add(bindingDescription);
     
      AccessPoint accessPoint = new AccessPoint();
      accessPoint.setUseType(AccessPointType.WSDL_DEPLOYMENT.toString());
      if (!"".equals(uddiServiceBinding.accessPointType())) {
View Full Code Here

TOP

Related Classes of org.apache.ws.scout.model.uddi.v2.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.