Examples of RelatedBusinessInfos


Examples of com.sun.xml.registry.uddi.bindings_v2_2.RelatedBusinessInfos

    /**
     * Create an instance of {@link RelatedBusinessInfos }
     *
     */
    public RelatedBusinessInfos createRelatedBusinessInfos() {
        return new RelatedBusinessInfos();
    }
View Full Code Here

Examples of org.apache.juddi.datatype.response.RelatedBusinessInfos

    this.maker = maker;
  }

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

    // Attributes
    // {none}

    // Text Node Value
    // {none}

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

    return obj;
  }
View Full Code Here

Examples of org.apache.juddi.datatype.response.RelatedBusinessInfos

    return obj;
  }

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

    Vector vector = infos.getRelatedBusinessInfoVector();
    if ((vector!=null) && (vector.size() > 0))
    {
      handler = maker.lookup(RelatedBusinessInfoHandler.TAG_NAME);
      for (int i=0; i < vector.size(); i++)
        handler.marshal((RelatedBusinessInfo)vector.elementAt(i),element);
View Full Code Here

Examples of org.apache.juddi.datatype.response.RelatedBusinessInfos

    HandlerMaker maker = HandlerMaker.getInstance();
    AbstractHandler handler = maker.lookup(RelatedBusinessInfosHandler.TAG_NAME);
    Element parent = XMLUtils.newRootElement();
    Element child = null;

    RelatedBusinessInfos infos = new RelatedBusinessInfos();
    infos.addRelatedBusinessInfo(new RelatedBusinessInfo());
    infos.addRelatedBusinessInfo(new RelatedBusinessInfo());

    System.out.println();

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

Examples of org.apache.juddi.datatype.response.RelatedBusinessInfos

    {
      handler = maker.lookup(BusinessKeyHandler.TAG_NAME);
      handler.marshal(key,element);
    }

    RelatedBusinessInfos infos = list.getRelatedBusinessInfos();
    if (infos != null)
    {
      handler = maker.lookup(RelatedBusinessInfosHandler.TAG_NAME);
      handler.marshal(infos,element);
    }
View Full Code Here

Examples of org.apache.juddi.datatype.response.RelatedBusinessInfos

        }
      }

      // create a new BusinessInfos instance and stuff
      // the new Vector of BusinessInfos into it.
      RelatedBusinessInfos infos = new RelatedBusinessInfos();
      infos.setRelatedBusinessInfoVector(infoVector);

      dataStore.commit();

      // create a new RelatedBusinessesList instance and
      // stuff the new relatedBusinessInfoVector into it.
View Full Code Here

Examples of org.apache.juddi.datatype.response.RelatedBusinessInfos

    this.maker = maker;
  }

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

    // Attributes
    // {none}

    // Text Node Value
    // {none}

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

    return obj;
  }
View Full Code Here

Examples of org.apache.juddi.datatype.response.RelatedBusinessInfos

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    RelatedBusinessInfos infos = (RelatedBusinessInfos)object;
    Element element = parent.getOwnerDocument().createElementNS(null,TAG_NAME);
    AbstractHandler handler = null;

    Vector vector = infos.getRelatedBusinessInfoVector();
    if ((vector!=null) && (vector.size() > 0))
    {
      handler = maker.lookup(RelatedBusinessInfoHandler.TAG_NAME);
      for (int i=0; i < vector.size(); i++)
        handler.marshal((RelatedBusinessInfo)vector.elementAt(i),element);
View Full Code Here

Examples of org.apache.juddi.datatype.response.RelatedBusinessInfos

    HandlerMaker maker = HandlerMaker.getInstance();
    AbstractHandler handler = maker.lookup(RelatedBusinessInfosHandler.TAG_NAME);
    Element parent = XMLUtils.newRootElement();
    Element child = null;

    RelatedBusinessInfos infos = new RelatedBusinessInfos();
    infos.addRelatedBusinessInfo(new RelatedBusinessInfo());
    infos.addRelatedBusinessInfo(new RelatedBusinessInfo());

    System.out.println();

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

Examples of org.apache.juddi.datatype.response.RelatedBusinessInfos

    handler = ( RelatedBusinessInfosHandler)maker.lookup( RelatedBusinessInfosHandler.TAG_NAME);
  }

  private RegistryObject getRegistryObject()
  {
    RelatedBusinessInfos object = new RelatedBusinessInfos();
    object.addRelatedBusinessInfo(new RelatedBusinessInfo());
    object.addRelatedBusinessInfo(new RelatedBusinessInfo());

    return object;

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.