示例#1
0
文件: Util.java 项目: ngrstad/basex
 /**
  * Checks if the specified string is "no", "false" or "off".
  *
  * @param string string to be checked
  * @return result of check
  */
 public static boolean no(final String string) {
   return Token.eqic(string, NO, FALSE, OFF, INFOOFF);
 }
示例#2
0
文件: Util.java 项目: ngrstad/basex
 /**
  * Checks if the specified string is "yes", "true" or "on".
  *
  * @param string string to be checked
  * @return result of check
  */
 public static boolean yes(final String string) {
   return Token.eqic(string, YES, TRUE, ON, INFOON);
 }