Package org.apache.juddi.datatype

Examples of org.apache.juddi.datatype.Name


  public static void test(Connection connection)
    throws Exception
  {
    Vector names = new Vector();
    names.add(new Name("St"));
    names.add(new Name("X"));
    names.add(new Name("Select","en"));
    names.add(new Name("Inflex","en"));

    Vector keysIn = null;
    keysIn = new Vector();
    keysIn.add("0e70128c-f7c6-4854-b292-d2f13b638acf");
    keysIn.add("b405450a-64f5-4f95-8131-450429d0ae8c");
View Full Code Here


    BusinessService service = new BusinessService();
    service.setServiceKey("fe8af00d-3a2c-4e05-b7ca-95a1259aad4f");
    service.setBusinessKey("b8cc7266-9eed-4675-b621-34697f252a77");
    service.setBindingTemplates(bindings);
    service.setCategoryBag(catBag);
    service.addName(new Name("serviceNm"));
    service.addName(new Name("serviceNm2","en"));
    service.addDescription(new Description("service whatever"));
    service.addDescription(new Description("service whatever too","it"));

    BusinessServices services = new BusinessServices();
    services.addBusinessService(service);
    services.addBusinessService(service);

    BusinessEntity business = new BusinessEntity();
    business.setBusinessKey("6c0ac186-d36b-4b81-bd27-066a5fe0fc1f");
    business.setAuthorizedName("Steve Viens");
    business.setOperator("jUDDI");
    business.addName(new Name("businessNm"));
    business.addName(new Name("businessNm2","en"));
    business.addDescription(new Description("business whatever"));
    business.addDescription(new Description("business whatever too","fr"));
    business.setDiscoveryURLs(discURLs);
    business.setCategoryBag(catBag);
    business.setIdentifierBag(idBag);
View Full Code Here

    BusinessService object = new BusinessService();
    object.setServiceKey("fe8af00d-3a2c-4e05-b7ca-95a1259aad4f");
    object.setBusinessKey("b8cc7266-9eed-4675-b621-34697f252a77");
    object.setBindingTemplates(bindings);
    object.setCategoryBag(catBag);
    object.addName(new Name("serviceNm"));
    object.addName(new Name("serviceNm2","en"));
    object.addDescription(new Description("service whatever"));
    object.addDescription(new Description("service whatever too","it"));

    return object;
View Full Code Here

        BusinessService service = new BusinessService();
        service.setServiceKey(serviceKey);
        service.setBusinessKey(businessKey);

        Vector nameList = new Vector();
        nameList.add(new Name("SteveViens.com", "en"));
        nameList.add(new Name("EsephanoViens.com", "it"));
        nameList.add(new Name("AsdfJkl.com", "cy"));

        String authorizedUserID = "sviens";

        // begin a new transaction
        txn.begin(connection);
View Full Code Here

    // Child Elements
    nodeList = XMLUtils.getChildElementsByTagName(element,NameHandler.TAG_NAME);
    if (nodeList.size() > 0)
    {
      handler = maker.lookup(NameHandler.TAG_NAME);
      Name name = (Name )handler.unmarshal((Element)nodeList.elementAt(0));
      if (name != null)
        obj.setName(name);   
    }

    nodeList = XMLUtils.getChildElementsByTagName(element,FindQualifiersHandler.TAG_NAME);
View Full Code Here

    {
      handler = maker.lookup(FindQualifiersHandler.TAG_NAME);
      handler.marshal(qualifiers,element);
    }

    Name name = request.getName();
    if (name != null)
    {
      handler = maker.lookup(NameHandler.TAG_NAME);
      handler.marshal(name,element);
    }
View Full Code Here

    Element parent = XMLUtils.newRootElement();
    Element child = null;

    FindPublisher request = new FindPublisher();
    request.setName(new Name("s","en"));
    request.addFindQualifier(new FindQualifier(FindQualifier.SORT_BY_NAME_ASC));
    request.setMaxRows(50);

    System.out.println();
View Full Code Here

    // Child Elements
    // {none}

    // Only create Name instance if nameValue not null and not zero-length
    Name obj = null;
    if ((nameValue != null) && (nameValue.trim().length() > 0))
      obj = new Name(nameValue,langCode);
   
    return obj;
  }
View Full Code Here

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    Name name = (Name)object;
    Element element = parent.getOwnerDocument().createElementNS(null,TAG_NAME);

    String langCode = name.getLanguageCode();
    if ((langCode != null) && (langCode.trim().length() > 0))
      element.setAttribute("xml:lang",langCode);

    String nameValue = name.getValue();
    if (nameValue != null)
      element.appendChild(parent.getOwnerDocument().createTextNode(nameValue));

    parent.appendChild(element);
  }
View Full Code Here

    Element parent = XMLUtils.newRootElement();
    Element child = null;

    ServiceInfo sInfo = new ServiceInfo();
    sInfo.addName(new Name("regInfoServNm"));
    sInfo.addName(new Name("regInfoServNm2","en"));
    sInfo.setServiceKey("826e6443-e3c5-442b-9bf8-943071ca83f4");
    sInfo.setBusinessKey("56644a68-8779-46c7-93ce-90eeb7569f3f");

    BusinessInfo bInfo = new BusinessInfo();
    bInfo.setBusinessKey("56644a68-8779-46c7-93ce-90eeb7569f3f");
    bInfo.addName(new Name("regInfoBizNm"));
    bInfo.addName(new Name("regInfoBizNm2","en"));
    bInfo.addDescription(new Description("regInfoBiz whatever"));
    bInfo.addDescription(new Description("regInfoBiz whatever too","fr"));
    bInfo.addServiceInfo(sInfo);

    BusinessInfos bInfos = new BusinessInfos();
    bInfos.addBusinessInfo(bInfo);
    bInfos.addBusinessInfo(bInfo);

    TModelInfo tInfo = new TModelInfo();
    tInfo.setTModelKey("uuid:e86bd2a9-03f6-44c4-b619-400ef2cd7e47");
    tInfo.setName(new Name("RegInfoTestDriver"));

    TModelInfos tInfos = new TModelInfos();
    tInfos.addTModelInfo(tInfo);
    tInfos.addTModelInfo(tInfo);
View Full Code Here

TOP

Related Classes of org.apache.juddi.datatype.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.