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

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


  public TModelList findTModel(String name, CategoryBag categoryBag,
      IdentifierBag identifierBag, FindQualifiers findQualifiers,
      int maxRows) throws RegistryException {
    FindTModel request = this.objectFactory.createFindTModel();

    Name jaxbName = this.objectFactory.createName();

    if (name != null) {
      jaxbName.setValue(name);
    }

    request.setName(jaxbName);

    if (categoryBag != null) {
View Full Code Here


    }

    private static Name getFirstName(InternationalString iname) throws JAXRException {
        for (Object o : iname.getLocalizedStrings()) {
            LocalizedString locName = (LocalizedString) o;
            Name name = objectFactory.createName();
            name.setValue(locName.getValue());
            name.setLang(locName.getLocale().getLanguage());
            return name;
        }
        return null;
    }
View Full Code Here

        return null;
    }
    private static void addNames(List<Name> names, InternationalString iname) throws JAXRException {
        for (Object o : iname.getLocalizedStrings()) {
            LocalizedString locName = (LocalizedString) o;
            Name name = objectFactory.createName();
            name.setValue(locName.getValue());
            name.setLang(locName.getLocale().getLanguage());
            names.add(name);
        }
    }
View Full Code Here

        Name[] result = new Name[namePatterns.size()];
        int currLoc = 0;
        for (Iterator i = namePatterns.iterator(); i.hasNext();)
        {
            Object obj = i.next();
            Name name = objectFactory.createName();
            if (obj instanceof String) {
                name.setValue((String)obj);
            } else if (obj instanceof LocalizedString) {
                LocalizedString ls = (LocalizedString)obj;
                name.setValue(ls.getValue());
                name.setLang(ls.getLocale().getLanguage());
            }
            result[currLoc] = name;
            currLoc++;
        }
        return result;
View Full Code Here

    }

    private static Name getFirstName(InternationalString iname) throws JAXRException {
        for (Object o : iname.getLocalizedStrings()) {
            LocalizedString locName = (LocalizedString) o;
            Name name = objectFactory.createName();
            name.setValue(locName.getValue());
            name.setLang(locName.getLocale().getLanguage());
            return name;
        }
        return null;
    }
View Full Code Here

        return null;
    }
    private static void addNames(List<Name> names, InternationalString iname) throws JAXRException {
        for (Object o : iname.getLocalizedStrings()) {
            LocalizedString locName = (LocalizedString) o;
            Name name = objectFactory.createName();
            name.setValue(locName.getValue());
            name.setLang(locName.getLocale().getLanguage());
            names.add(name);
        }
    }
View Full Code Here

  public static Organization getOrganization(BusinessEntity businessEntity,
      LifeCycleManager lifeCycleManager)
  throws JAXRException
  {
    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()));
View Full Code Here

    List<BusinessEntity> bizEntityList = bizdetail.getBusinessEntity();
    if (bizEntityList.size() != 1) {
      throw new JAXRException("Unexpected count of organizations in BusinessDetail: " + bizEntityList.size());
    }
    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()));
View Full Code Here

    if (keystr != null)
    {
      serve.setKey(lifeCycleManager.createKey(keystr));
    }

    Name n = null;
    if (businessService.getName().size()>0) n = businessService.getName().get(0);

    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 ) {
View Full Code Here

    if (keystr != null)
    {
      service.setKey(lifeCycleManager.createKey(keystr));
    }

    Name n = null;
    if (serviceInfo.getName().size()>0) n = serviceInfo.getName().get(0);
    if (n != null) {
      String name = n.getValue();
      service.setName(lifeCycleManager.createInternationalString(getLocale(n.getLang()), name));
    }
    return service;
  }
View Full Code Here

TOP

Related Classes of org.apache.ws.scout.model.uddi.v2.Name

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.