Community articlegetXFDL method
Added by IBM contributorIBM on May 2, 2012
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.


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.


   public static XFDL getXFDL() throws UWIException;


There are no parameters for this method.


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


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