Community articledestroy method (Streaming API)
Added by IBM contributorIBM on August 16, 2011
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars




Description

This method destroys the indicated FormNodeP and all of its child nodes.

Method

   public void destroy( ) throws UWIException;


Parameters

There are no parameters for this method.

Returns

Nothing if call is successful or throws a generic exception (UWIException) if an error occurs.

Example

In the following example, dereferenceEx locates an item node and destroy removes it from the structure.
   private static void removeRadios( ) throws UWIException
   {
   FormNodeP tempNode;
 
      if ((tempNode = theForm.dereferenceEx(null, "PAGE1.MALERADIO", 0,
         FormNodeP.UFL_ITEM_REFERENCE, null)) == null)
      {
         throw new UWIException("Could not locate MALERADIO node.");
      } 
 
      tempNode.destroy( );
      
      /* additional code removed */
 
   }


Parent topic:
FormNodeP class