Community articleisSigned 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.



Description

This method determines whether a node is signed.

Method

   public boolean isSigned(
      boolean excludeSelf
      ) throws UWIException;


Parameters

Table 1. Method parameters
ExpressionTypeDescription
excludeSelfbooleanA signature node is always self-signed. To determine whether a second signature has been applied to that node, you must exclude the self-signing from this check.
To exclude the self-signing from the signature check, set this to true. To include the self-signing, set this to false.


Returns

True if the node is signed, False if it is not.

Example

The following function locates the value node for a Date field, checks to see if it is signed, and sets the value if the node is not signed.
   private static void setDateValue(String theDate, formNodeP theForm) 
      throws Exception
   {
   FormNodeP tempNode;
 
      /* Locate the value option for the Date field */
 
      if ((tempNode = theForm.dereferenceEx(null, "PAGE1.Date.value", 0,
         FormNodeP.UFL_OPTION_REFERENCE, null)) == null)
      {
         throw new UWIException("Could not locate value node for Date.");
      }
 
      /* Check the value node to see if it is signed. If it is signed, 
         return an error. Otherwise, set it to the value passed into the 
         method. */
 
      if (tempNode.isSigned(false) == true)
      {
         throw new UWIException("Date's value is signed");
      }
      else
      {
         tempNode.setLiteralEx(null, theDate);
      }
   }


Parent topic:
FormNodeP class