Here you can find the source of isTextBoolean(String texto)
public static boolean isTextBoolean(String texto)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean isTextBoolean(String texto) { boolean out = false; if (texto != null) { texto = texto.toLowerCase().trim(); if ("true".equals(texto) || "false".equals(texto)) { return true; }// w ww. j a v a 2s .c om } return out; } }