List of usage examples for java.lang Boolean FALSE
Boolean FALSE
To view the source code for java.lang Boolean FALSE.
Click Source Link
From source file:GUIUtils.java
/** * Make the passed internal frame a Tool Window. *//*from w w w.ja v a 2 s .c om*/ public static void makeToolWindow(JInternalFrame frame, boolean isToolWindow) { if (frame == null) { throw new IllegalArgumentException("null JInternalFrame passed"); } frame.putClientProperty("JInternalFrame.isPalette", isToolWindow ? Boolean.TRUE : Boolean.FALSE); }
From source file:com.inkubator.hrm.web.organisation.OrgTypeOfSpecFormController.java
@PostConstruct @Override//from ww w .j a va 2 s. c om public void initialization() { super.initialization(); try { String orgTypeOfSpecId = FacesUtil.getRequestParameter("orgTypeOfSpecId"); model = new OrgTypeOfSpecModel(); isUpdate = Boolean.FALSE; if (StringUtils.isNotEmpty(orgTypeOfSpecId)) { OrgTypeOfSpec orgTypeOfSpec = service.getEntiyByPK(Long.parseLong(orgTypeOfSpecId)); if (orgTypeOfSpecId != null) { model = getModelFromEntity(orgTypeOfSpec); isUpdate = Boolean.TRUE; } } } catch (Exception e) { LOGGER.error("Error", e); } }
From source file:net.heartsome.license.webservice.ServiceUtil.java
public static IService getService() throws MalformedURLException { // Service srvcModel = new ObjectServiceFactory().create(IService.class); // XFireProxyFactory factory = new XFireProxyFactory(XFireFactory // .newInstance().getXFire()); ////from w w w.j av a 2s . c om // IService srvc = (IService) factory.create(srvcModel, Constants.CONNECT_URL); // return srvc; ProtocolSocketFactory easy = new EasySSLProtocolSocketFactory(); Protocol protocol = new Protocol(HTTP_TYPE, easy, PORT); Protocol.registerProtocol(HTTP_TYPE, protocol); Service serviceModel = new ObjectServiceFactory().create(IService.class, SERVICE_NAME, SERVICE_NAMESPACE, null); IService service = (IService) new XFireProxyFactory().create(serviceModel, SERVICE_URL); Client client = ((XFireProxy) Proxy.getInvocationHandler(service)).getClient(); client.addOutHandler(new DOMOutHandler()); client.setProperty(CommonsHttpMessageSender.GZIP_ENABLED, Boolean.FALSE); client.setProperty(CommonsHttpMessageSender.DISABLE_EXPECT_CONTINUE, "1"); client.setProperty(CommonsHttpMessageSender.HTTP_TIMEOUT, "0"); return service; }
From source file:com.adaptris.core.services.jdbc.BooleanStatementParameter.java
@Override protected Boolean defaultValue() { return Boolean.FALSE; }
From source file:BusinessLayer.service.CloseacService.java
public Double closeAccount(String password) { CustomSecurityUser currentUser = (CustomSecurityUser) SecurityContextHolder.getContext().getAuthentication() .getPrincipal();/* w w w .j av a 2 s . c o m*/ System.out.println(currentUser.getId()); Utilisateur utilisateur = userDAO.getUser(currentUser.getId()); if (!utilisateur.getEnabled()) { throw new DisabledUserProfileException(); } if (!(utilisateur.getPass().equals(password))) { throw new WrongPasswordException(); } utilisateur.setEnabled(Boolean.FALSE); userDAO.saveUser(utilisateur); List useraccounts = accountDAO.getUserAccounts(currentUser.getId()); Double somme = 0.0; for (Object account : useraccounts) { somme += ((Compte) account).getSolde(); } return somme; }
From source file:io.cloudslang.lang.runtime.bindings.ScriptEvaluator.java
public Serializable evalExpr(String expr, Map<String, ? extends Serializable> context) { ScriptContext scriptContext = new SimpleScriptContext(); for (Map.Entry<String, ? extends Serializable> entry : context.entrySet()) { scriptContext.setAttribute(entry.getKey(), entry.getValue(), ScriptContext.ENGINE_SCOPE); }/*from www .ja v a2s.c om*/ if (scriptContext.getAttribute(TRUE) == null) scriptContext.setAttribute(TRUE, Boolean.TRUE, ScriptContext.ENGINE_SCOPE); if (scriptContext.getAttribute(FALSE) == null) scriptContext.setAttribute(FALSE, Boolean.FALSE, ScriptContext.ENGINE_SCOPE); try { return (Serializable) engine.eval(expr, scriptContext); } catch (ScriptException e) { ScriptException scriptException = new ScriptException(e); throw new RuntimeException("Error in running script expression or variable reference, for expression: '" + expr + "',\n\tScript exception is: " + scriptException.getMessage(), scriptException); } }
From source file:org.openscore.lang.runtime.bindings.ScriptEvaluator.java
public Serializable evalExpr(String expr, Map<String, ? extends Serializable> context) { ScriptContext scriptContext = new SimpleScriptContext(); for (Map.Entry<String, ? extends Serializable> entry : context.entrySet()) { scriptContext.setAttribute(entry.getKey(), entry.getValue(), ScriptContext.ENGINE_SCOPE); }//www . java 2s . co m if (scriptContext.getAttribute(TRUE) == null) scriptContext.setAttribute(TRUE, Boolean.TRUE, ScriptContext.ENGINE_SCOPE); if (scriptContext.getAttribute(FALSE) == null) scriptContext.setAttribute(FALSE, Boolean.FALSE, ScriptContext.ENGINE_SCOPE); try { return (Serializable) engine.eval(expr, scriptContext); } catch (ScriptException e) { ScriptException scriptException = new ScriptException(e); throw new RuntimeException("Error in running script expression or variable reference, for expression: '" + expr + "', Script exception is: \n" + scriptException.getMessage(), scriptException); } }
From source file:com.mmj.app.lucene.analyzer.AbstractWordAnalyzer.java
public List<String> segWords(String input, SegMode segMode) { if (StringUtils.isBlank(input)) { return new ArrayList<String>(0); }/*from w ww . j a v a 2s . com*/ return _segWords(input, segMode, Boolean.FALSE); }
From source file:at.beeone.netbankinglight.test.JsonParserTest.java
@Test public void testParseTransaction() throws JSONException { JSONObject json = new JSONObject(getSampleJson("transaction.json")); Transaction transaction = JsonParser.toTransaction(json); assertNotNull(transaction);// w w w .j a v a 2 s. c om assertEquals(transaction.getId(), "1155"); assertEquals(null, transaction.getBill()); assertEquals(Boolean.FALSE, transaction.isCancelled()); assertEquals(Boolean.TRUE, transaction.isFinished()); assertEquals(1350635542000L, transaction.getCarryOutDate().getTime()); assertEquals(1350635542000L, transaction.getCreatedOn().getTime()); assertEquals(null, transaction.getCustomerData()); assertEquals(null, transaction.getIdentification()); assertEquals(null, transaction.getNotes()); assertTrue(transaction.getTags().isEmpty()); }
From source file:com.civis.utils.html.parser.HtmlParseFilter.java
public Boolean matches(HtmlLink htmlLink) { Boolean textFilterStatus = matchText(htmlLink.getValue()); if (!textFilterStatus) { return Boolean.FALSE; }/*from ww w .j a v a 2 s . com*/ return matchLink(htmlLink.getHref()); }