Package org.apache.juddi.datatype.response

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


    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

    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

    {
      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

        }
      }

      // 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

    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

    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

    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

    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

    {
      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

TOP

Related Classes of org.apache.juddi.datatype.response.RelatedBusinessInfos

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.