Examples of GetPublisherDetail


Examples of org.apache.juddi.datatype.request.GetPublisherDetail

   *
   */
  public RegistryObject execute(RegistryObject regObject)
    throws RegistryException
  {
    GetPublisherDetail request = (GetPublisherDetail)regObject;
    String generic = request.getGeneric();
    Vector idVector = request.getPublisherIDVector();

    // aquire a jUDDI datastore instance
    DataStore dataStore = DataStoreFactory.getDataStore();

    try
View Full Code Here

Examples of org.apache.juddi.datatype.request.GetPublisherDetail

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

  private RegistryObject getRegistryObject()
  {
    GetPublisherDetail object = new GetPublisherDetail();
    object.addPublisherID("guest");
    object.addPublisherID(new PublisherID("guest"));

    return object;

  }
View Full Code Here

Examples of org.apache.juddi.datatype.request.GetPublisherDetail

    this.maker = maker;
  }

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

    // Attributes
    String generic = element.getAttribute("generic");
    if ((generic != null && (generic.trim().length() > 0)))
      obj.setGeneric(generic);

    // Text Node Value
    // {none}

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

    return obj;
  }
View Full Code Here

Examples of org.apache.juddi.datatype.request.GetPublisherDetail

    return obj;
  }

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

    String generic = request.getGeneric();
    if (generic != null)
      element.setAttribute("generic",generic);

    Vector idVector = request.getPublisherIDVector();
    if ((idVector!=null) && (idVector.size() > 0))
    {
      handler = maker.lookup(PublisherIDHandler.TAG_NAME);
      for (int i=0; i<idVector.size(); i++)
        handler.marshal(new PublisherID((String)idVector.elementAt(i)),element);
View Full Code Here

Examples of org.apache.juddi.datatype.request.GetPublisherDetail

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

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

    GetPublisherDetail service = new GetPublisherDetail();
    service.addPublisherID("sviens");
    service.addPublisherID(new PublisherID("jdoe"));

    System.out.println();

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

Examples of org.apache.juddi.datatype.request.GetPublisherDetail

   *
   */
  public RegistryObject execute(RegistryObject regObject)
    throws RegistryException
  {
    GetPublisherDetail request = (GetPublisherDetail)regObject;
    String generic = request.getGeneric();
    Vector idVector = request.getPublisherIDVector();

    // aquire a jUDDI datastore instance
    DataStore dataStore = DataStoreFactory.getDataStore();

    try
View Full Code Here

Examples of org.apache.juddi.datatype.request.GetPublisherDetail

    this.maker = maker;
  }

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

    // Attributes
    String generic = element.getAttribute("generic");
    if ((generic != null && (generic.trim().length() > 0)))
      obj.setGeneric(generic);

    // Text Node Value
    // {none}

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

    return obj;
  }
View Full Code Here

Examples of org.apache.juddi.datatype.request.GetPublisherDetail

    return obj;
  }

  public void marshal(RegistryObject object,Element parent)
  {
    GetPublisherDetail request = (GetPublisherDetail)object;
    Element element = parent.getOwnerDocument().createElement(TAG_NAME);
    AbstractHandler handler = null;

    String generic = request.getGeneric();
    if (generic != null)
      element.setAttribute("generic",generic);

    Vector idVector = request.getPublisherIDVector();
    if ((idVector!=null) && (idVector.size() > 0))
    {
      handler = maker.lookup(PublisherIDHandler.TAG_NAME);
      for (int i=0; i<idVector.size(); i++)
        handler.marshal(new PublisherID((String)idVector.elementAt(i)),element);
View Full Code Here

Examples of org.apache.juddi.datatype.request.GetPublisherDetail

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

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

    GetPublisherDetail service = new GetPublisherDetail();
    service.addPublisherID("sviens");
    service.addPublisherID(new PublisherID("jdoe"));

    System.out.println();

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

Examples of org.apache.juddi.datatype.request.GetPublisherDetail

   * @exception RegistryException;
   */
  public PublisherDetail getPublisherDetail(Vector publisherIDVector)
    throws RegistryException
  {
    GetPublisherDetail request = new GetPublisherDetail();
    request.setPublisherIDVector(publisherIDVector);

    return (PublisherDetail)execute(request);
  }
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.