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

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


    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

          if (specificationObject.getKey() != null && specificationObject.getKey().getId() != null) {
            emptyTInfo.setTModelKey(specificationObject.getKey().getId());
                        if (specificationObject.getDescription()!=null) {
                            for (Object o : specificationObject.getDescription().getLocalizedStrings()) {
                                LocalizedString locDesc = (LocalizedString) o;
                                Description description = objectFactory.createDescription();
                                emptyTInfo.getDescription().add(description);
                                description.setValue(locDesc.getValue());
                                description.setLang(locDesc.getLocale().getLanguage());
                            }
                        }
                        Collection<ExternalLink> externalLinks = slink.getExternalLinks();
                        if (externalLinks!=null && externalLinks.size()>0) {
                            for (ExternalLink link : externalLinks) {
                                InstanceDetails ids = objectFactory.createInstanceDetails();
                                emptyTInfo.setInstanceDetails(ids);
                                if (link.getDescription()!=null) {
                                    Description description = objectFactory.createDescription();
                                    ids.getDescription().add(description);
                                    description.setValue(link.getDescription().getValue());
                                }
                                if (link.getExternalURI()!=null) {
                                    OverviewDoc overviewDoc = objectFactory.createOverviewDoc();
                                    ids.setOverviewDoc(overviewDoc);
                                    overviewDoc.setOverviewURL(link.getExternalURI());
View Full Code Here

    private static void addDescriptions(List<Description> descripions, InternationalString idesc) throws JAXRException {
        if (idesc != null) {
            for (Object o : idesc.getLocalizedStrings()) {
                LocalizedString locName = (LocalizedString) o;
                Description desc = objectFactory.createDescription();
                descripions.add(desc);
                desc.setValue(locName.getValue());
                desc.setLang(locName.getLocale().getLanguage());
            }
        }
    }
View Full Code Here

           String url = link.getExternalURI();
           if(url != null)
               od.setOverviewURL(url);
           InternationalString extDesc = link.getDescription();
           if(extDesc != null) {
               Description description = objectFactory.createDescription();
               od.getDescription().add(description);
               description.setValue(extDesc.getValue());
           }
           return od;
       }
View Full Code Here

    List<Name> namesList = businessEntity.getName();
    Name n = null;
    if (namesList.size()>0) n = namesList.get(0);

    List<Description> descriptionList = businessEntity.getDescription();
    Description desc =null;
    if (descriptionList.size()>0) desc = descriptionList.get(0);

    Organization org = new OrganizationImpl(lifeCycleManager);
    if(n != null ) {
      org.setName(getIString(n.getLang(), n.getValue(), lifeCycleManager));
    }
    if( desc != null) {
      org.setDescription(getIString(desc.getLang(), desc.getValue(), lifeCycleManager));
    }
    org.setKey(lifeCycleManager.createKey(businessEntity.getBusinessKey()));

    //Set Services also
    BusinessServices services = businessEntity.getBusinessServices();
View Full Code Here

    BusinessEntity entity = bizEntityList.get(0);
    Name n = null;
    if (entity.getName().size()>0) n = entity.getName().get(0);

    List<Description> descriptionList = entity.getDescription();
    Description desc =null;
    if (descriptionList.size()>0) desc = descriptionList.get(0);

    Organization org = new OrganizationImpl(lifeCycleManager);
    if( n != null ) {
      org.setName(getIString(n.getLang(), n.getValue(), lifeCycleManager));
    }
    if( desc != null ) {
      org.setDescription(getIString(desc.getLang(), desc.getValue(), lifeCycleManager));
    }
    org.setKey(lifeCycleManager.createKey(entity.getBusinessKey()));

    //Set Services also
    BusinessServices services = entity.getBusinessServices();
View Full Code Here

    if (n != null) {
      String name = n.getValue();
      serve.setName(lifeCycleManager.createInternationalString(getLocale(n.getLang()), name));
    }

    Description desc =null;
    if (businessService.getDescription().size()>0) desc = businessService.getDescription().get(0);
    if (desc != null ) {
      serve.setDescription(lifeCycleManager.createInternationalString(getLocale(desc.getLang()), desc.getValue()));
    }

    //Populate the ServiceBindings for this Service
    BindingTemplates bts = businessService.getBindingTemplates();
    List<BindingTemplate> bindingTemplateList = bts.getBindingTemplate();
View Full Code Here

    //Access URI
    AccessPoint access = businessTemplate.getAccessPoint();
    if (access != null) serviceBinding.setAccessURI(access.getValue());

    //Description
    Description desc = null;
    if (businessTemplate.getDescription().size()>0) desc = businessTemplate.getDescription().get(0);
    if (desc!=null) {
      serviceBinding.setDescription(new InternationalStringImpl(desc.getValue()));
    }
    /**Section D.10 of JAXR 1.0 Specification */

    TModelInstanceDetails details = businessTemplate.getTModelInstanceDetails();
    List<TModelInstanceInfo> tmodelInstanceInfoList = details.getTModelInstanceInfo();
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.