Example #1
0
 private static bool DoQuery(Query query)
 {
     try
     {
         bool any = false;
         //if (!query.isOpen()) query.open();
         while (query.hasMoreSolutions())
         {
             any = true;
             Hashtable ht = query.nextSolution();
             foreach (var list in ToEnumer(ht.elements()))
             {
                 string s = "" + list;
                 ConsoleTrace(s);
             }
         }
         return(any);
     }
     catch (Exception exception)
     {
         WriteException(exception);
         return(false);
     }
 }
Example #2
0
 /*
  * Returns an enumeration of the permissions in the receiver.
  *
  * @return Enumeration the permissions in the receiver.
  */
 public override java.util.Enumeration <Permission> elements()
 {
     return(perms.elements());
 }