Package org.apache.juddi.datatype.request

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


    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    DeletePublisher obj = new DeletePublisher();
    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,AuthInfoHandler.TAG_NAME);
    if (nodeList.size() > 0)
    {
      handler = maker.lookup(AuthInfoHandler.TAG_NAME);
      obj.setAuthInfo((AuthInfo)handler.unmarshal((Element)nodeList.elementAt(0)));
    }

    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


    return obj;
  }

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

    element.setAttribute("generic",generic);

    AuthInfo authInfo = request.getAuthInfo();
    if (authInfo != null)
    {
      handler = maker.lookup(AuthInfoHandler.TAG_NAME);
      handler.marshal(authInfo,element);
    }

    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

    Element child = null;

    AuthInfo authInfo = new AuthInfo();
    authInfo.setValue("6f157513-844e-4a95-a856-d257e6ba9726");

    DeletePublisher request = new DeletePublisher();
    request.setAuthInfo(authInfo);
    request.addPublisherID(new PublisherID("jdoe"));
    request.addPublisherID(new PublisherID("bpope"));
    request.addPublisherID(new PublisherID("sviens"));

    System.out.println();

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

   */
  public RegistryObject execute(RegistryObject regObject)
    throws RegistryException
  {
    // extract individual parameters
    DeletePublisher request = (DeletePublisher)regObject;
    String generic = request.getGeneric();
    AuthInfo authInfo = request.getAuthInfo();
    Vector publisherIDVector = request.getPublisherIDVector();

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

    try
View Full Code Here

  private RegistryObject getRegistryObject()
  {
    AuthInfo authInfo = new AuthInfo();
    authInfo.setValue("6f157513-844e-4a95-a856-d257e6ba9726");

    DeletePublisher object = new DeletePublisher();
    object.setAuthInfo(authInfo);
    object.addPublisherID(new PublisherID("jdoe"));
    object.addPublisherID(new PublisherID("bpope"));
    object.addPublisherID(new PublisherID("sviens"));

    return object;

  }
View Full Code Here

    this.maker = maker;
  }

  public RegistryObject unmarshal(Element element)
  {
    DeletePublisher obj = new DeletePublisher();
    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,AuthInfoHandler.TAG_NAME);
    if (nodeList.size() > 0)
    {
      handler = maker.lookup(AuthInfoHandler.TAG_NAME);
      obj.setAuthInfo((AuthInfo)handler.unmarshal((Element)nodeList.elementAt(0)));
    }

    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

    return obj;
  }

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

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

    AuthInfo authInfo = request.getAuthInfo();
    if (authInfo != null)
    {
      handler = maker.lookup(AuthInfoHandler.TAG_NAME);
      handler.marshal(authInfo,element);
    }

    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

    Element child = null;

    AuthInfo authInfo = new AuthInfo();
    authInfo.setValue("6f157513-844e-4a95-a856-d257e6ba9726");

    DeletePublisher request = new DeletePublisher();
    request.setAuthInfo(authInfo);
    request.addPublisherID(new PublisherID("jdoe"));
    request.addPublisherID(new PublisherID("bpope"));
    request.addPublisherID(new PublisherID("sviens"));

    System.out.println();

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

   */
  public RegistryObject execute(RegistryObject regObject)
    throws RegistryException
  {
    // extract individual parameters
    DeletePublisher request = (DeletePublisher)regObject;
    String generic = request.getGeneric();
    AuthInfo authInfo = request.getAuthInfo();
    Vector publisherIDVector = request.getPublisherIDVector();

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

    try
View Full Code Here

   */
  public RegistryObject execute(RegistryObject regObject)
    throws RegistryException
  {
    // extract individual parameters
    DeletePublisher request = (DeletePublisher)regObject;
    String generic = request.getGeneric();
    AuthInfo authInfo = request.getAuthInfo();
    Vector publisherIDVector = request.getPublisherIDVector();

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

    try
View Full Code Here

TOP

Related Classes of org.apache.juddi.datatype.request.DeletePublisher

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.