User: hiram   
  Date: 00/12/23 07:48:27

  Modified:    src/java/org/spydermq/xml XElement.java
  Log:
  These changes were done to add the following features:
  The selector is now evaluated at the server side.
  The infrastructure has been laid for durable topic subscriptions.
  The QueueBrowser has been implemented.
  Queues now can have a Selector.
  
  Revision  Changes    Path
  1.2       +12 -1     spyderMQ/src/java/org/spydermq/xml/XElement.java
  
  Index: XElement.java
  ===================================================================
  RCS file: /products/cvs/ejboss/spyderMQ/src/java/org/spydermq/xml/XElement.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- XElement.java     2000/12/13 00:34:04     1.1
  +++ XElement.java     2000/12/23 15:48:27     1.2
  @@ -59,7 +59,7 @@
    *
    *   @author Hiram Chirino ([EMAIL PROTECTED])
    *
  - *   @version $Revision: 1.1 $
  + *   @version $Revision: 1.2 $
    */
   public class XElement {
        
  @@ -625,4 +625,15 @@
                }
        }
   
  +     /**
  +      * Removes this XElement from the parent.
  +      * @throws XElementException if the object did not have a parent
  +      */
  +     public void removeFromParent() throws XElementException {
  +             if (parent == null)
  +                     throw new XElementException("" + getName() + " does not have a 
parent");
  +                     
  +             parent.contents.remove(this);
  +             parent = null;
  +     }
   }
  
  
  

Reply via email to