Package org.apache.juddi.datatype

Examples of org.apache.juddi.datatype.TModelBag


    {
      handler = maker.lookup(CategoryBagHandler.TAG_NAME);
      handler.marshal(catBag,element);
    }

    TModelBag tModBag = request.getTModelBag();
    if (tModBag != null)
    {
      handler = maker.lookup(TModelBagHandler.TAG_NAME);
      handler.marshal(tModBag,element);
    }
View Full Code Here


    CategoryBag catBag = new CategoryBag();
    catBag.addKeyedReference(new KeyedReference("catBagKeyName","catBagKeyValue"));
    catBag.addKeyedReference(new KeyedReference("uuid:8ff45356-acde-4a4c-86bf-f953611d20c6","catBagKeyName2","catBagKeyValue2"));

    TModelBag tModBag = new TModelBag();
    tModBag.addTModelKey("uuid:35d9793b-9911-4b85-9f0e-5d4c65b4f253");
    tModBag.addTModelKey(new TModelKey("uuid:c5ab113f-0d6b-4247-b3c4-8c012726acd8"));

    FindBusiness request = new FindBusiness();
    request.addName(new Name("serviceNm"));
    request.addName(new Name("serviceNm2","en"));
    request.addFindQualifier(new FindQualifier(FindQualifier.SORT_BY_DATE_ASC));
View Full Code Here

    FindService request = (FindService)regObject;
    String generic = request.getGeneric();
    String businessKey = request.getBusinessKey();
    Vector nameVector = request.getNameVector();
    CategoryBag categoryBag = request.getCategoryBag();
    TModelBag tModelBag = request.getTModelBag();
    FindQualifiers qualifiers = request.getFindQualifiers();
    int maxRows = request.getMaxRows();

    // first make sure we need to continue with this request. If
    // no arguments were passed in then we'll simply return
    // an empty ServiceList (aka "a zero match result set").
    if (((nameVector == null) || (nameVector.size() == 0))  &&
       ((categoryBag == null) || (categoryBag.size() == 0)) &&
       ((tModelBag == null)   || (tModelBag.size() == 0)))
    {
      ServiceList list = new ServiceList();
      list.setServiceInfos(new ServiceInfos());
      list.setGeneric(generic);
      list.setOperator(Config.getOperator());
View Full Code Here

    RegistryEngine reg = new RegistryEngine();
    reg.init();

    try
    {
      TModelBag bag = new TModelBag();
      bag.addTModelKey("uuid:4C2A8920-BE0C-11D7-8920-8DA7324351E5");

      FindService request = new FindService();
      request.setGeneric("2.0");
      request.setTModelBag(bag);
View Full Code Here

    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    TModelBag obj = new TModelBag();
    Vector nodeList = null;
    AbstractHandler handler = null;

    // Attributes
    // {none}

   // Text Node Value
    // {none}

    // Child Elements
    nodeList = XMLUtils.getChildElementsByTagName(element,TModelKeyHandler.TAG_NAME);
    for (int i=0; i<nodeList.size(); i++)
    {
      handler = maker.lookup(TModelKeyHandler.TAG_NAME);
      obj.addTModelKey((TModelKey)handler.unmarshal((Element)nodeList.elementAt(i)));
    }

    return obj;
  }
View Full Code Here

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    TModelBag bag = (TModelBag)object;
    String generic = getGeneric(null);
    String namespace = getUDDINamespace(generic);
    Element element = parent.getOwnerDocument().createElementNS(namespace,TAG_NAME);
    AbstractHandler handler = null;

    Vector keyVector = bag.getTModelKeyVector();
    if ((keyVector!=null) && (keyVector.size() > 0))
    {
      handler = maker.lookup(TModelKeyHandler.TAG_NAME);
      for (int i=0; i < keyVector.size(); i++)
        handler.marshal(new TModelKey((String)keyVector.elementAt(i)),element);
View Full Code Here

    AbstractHandler handler = maker.lookup(TModelBagHandler.TAG_NAME);

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

    TModelBag bag = new TModelBag();
    bag.addTModelKey("uuid:35d9793b-9911-4b85-9f0e-5d4c65b4f253");
    bag.addTModelKey(new TModelKey("uuid:c5ab113f-0d6b-4247-b3c4-8c012726acd8"));

    System.out.println();

    RegistryObject regObject = bag;
    handler.marshal(regObject,parent);
View Full Code Here

    {
      handler = maker.lookup(CategoryBagHandler.TAG_NAME);
      handler.marshal(catBag,element);
    }

    TModelBag tModBag = request.getTModelBag();
    if (tModBag != null)
    {
      handler = maker.lookup(TModelBagHandler.TAG_NAME);
      handler.marshal(tModBag,element);
    }
View Full Code Here

    CategoryBag catBag = new CategoryBag();
    catBag.addKeyedReference(new KeyedReference("catBagKeyName","catBagKeyValue"));
    catBag.addKeyedReference(new KeyedReference("uuid:8ff45356-acde-4a4c-86bf-f953611d20c6","catBagKeyName2","catBagKeyValue2"));

    TModelBag tModBag = new TModelBag();
    tModBag.addTModelKey("uuid:35d9793b-9911-4b85-9f0e-5d4c65b4f253");
    tModBag.addTModelKey(new TModelKey("uuid:c5ab113f-0d6b-4247-b3c4-8c012726acd8"));

    FindService request = new FindService();
    request.addName(new Name("serviceNm"));
    request.addName(new Name("serviceNm2","en"));
    request.addFindQualifier(new FindQualifier(FindQualifier.SORT_BY_DATE_ASC));
View Full Code Here

    {
      handler = maker.lookup(CategoryBagHandler.TAG_NAME);
      handler.marshal(catBag,element);
    }

    TModelBag bag = request.getTModelBag();
    if (bag != null)
    {
      handler = maker.lookup(TModelBagHandler.TAG_NAME);
      handler.marshal(bag,element);
    }
View Full Code Here

TOP

Related Classes of org.apache.juddi.datatype.TModelBag

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.