3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.remote
.service
;
12 import org
.springframework
.stereotype
.Component
;
18 * Interprets a string as boolean value with true/TRUE/True or any integer greater 0 being true
22 public static Boolean
isTrue(String boolString
){
23 // empty string returns null
24 if (boolString
==null || boolString
.trim().length()==0){
27 boolean result
= Boolean
.parseBoolean(boolString
);
29 if (!result
&& Integer
.valueOf(boolString
)>0){