Community articlegetXFDL 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

Use this method to obtain the XFDL object. The XFDL object is an interface through which you can access the form’s root node. As a result, any program that needs to load an XFDL form must first obtain the XFDL object.

Method

   public static XFDL getXFDL() throws UWIException;


Parameters

There are no parameters for this method.

Returns

The XFDL object or throws a generic exception (UWIException) if an error occurs.

Example

In the following example, the loadForm method calls getXFDL to obtain the XFDL object called theXFDL.
   private static void loadForm() throws Exception
   {
   XFDL theXFDL;
   FormNodeP theForm;
      theXFDL = IFSSingleton.getXFDL();
      if(theXFDL == null)
         throw new Exception("Could not find interface");
      theForm = theXFDL.readForm("Sample.xfd", 0);
      if(theForm == null)
         throw new Exception("Could not load form.");
   }


Parent topic:
IFSSingleton class