public static void checkDeletedCode(String aDeletedCode)
   throws IllegalArgumentException
   {
      if (aDeletedCode == null)
      {
         throw new IllegalArgumentException("deletedCode required");
      }

      if (!Data.NO.equals(aDeletedCode) && !Data.YES.equals(aDeletedCode))
      {
         throw new IllegalArgumentException(aDeletedCode
         + "is not valid. Expected valid is " + Data.NO + " or " + Data.YES);
      }
   }
public static void checkDeletedCode ( String aDeletedCode ) throws IllegalArgumentException { if ( aDeletedCode == null ) { throw new IllegalArgumentException ( "deletedCode required" ) ; } if ( ! Data . NO . equals ( aDeletedCode ) && ! Data . YES . equals ( aDeletedCode ) ) { throw new IllegalArgumentException ( aDeletedCode + "is not valid. Expected valid is " + Data . NO + " or " + Data . YES ) ; } }
@param aDeletedCode
@throws IllegalArgumentException if deleted code is invalid