query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Validation Functions Description : To validate the Security Question of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:SecurityQuestion
public void validate_the_Security_Question_of_Security_in_Customer_Tab(String SecurityQuestion)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Security Question").replaceAll("M_InnerText", SecurityQuestion), "Security Question - "+SecurityQuestion, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean Validate() {\n String[] testArr = {titleTxf.getText(), fNameTxf.getText(), sNameTxf.getText(),\n initialTxf.getText(), hNumTxf.getText(), cNumTxf.getText(), emailTxf.getText(), idNumTxf.getText(),\n (String) maritalCbx.getSelectedItem(), \n resTxf1.getText() + \"\" + resTxf2.getText(), zipResTxf.getText(),postTxf1.getText() + \"\" + postTxf2.getText(),\n zipPostTxf.getText() };\n\n // verify user has entered data into required fields\n String inputTest = \"\";\n\n for (int i = 0; i < testArr.length; i++) {\n if (testArr[i].equals(inputTest)) {\n\n JOptionPane.showMessageDialog(rootPane, \"please fill in all required fields\", \"ERROR\", ERROR_MESSAGE);\n \n return false;\n \n\n }\n \n \n }\n //verify Home number\n if(hNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Home number\", \"ERROR\", ERROR_MESSAGE);\n errHNum.setText(\"!\");\n \n return false;\n }\n else{\n errHNum.setText(\"\");\n }\n //verify CellNo\n if(cNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Cellphone number\", \"ERROR\", ERROR_MESSAGE);\n errCNum.setText(\"!\");\n \n return false;\n \n }\n else{\n errCNum.setText(\"\");\n }\n //verify email\n String email =emailTxf.getText(); \n if(!email.contains(\"@\")|| !email.contains(\".\")){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild email address\", \"ERROR\", ERROR_MESSAGE);\n errEmail.setText(\"!\");\n return false;\n }\n else{\n errEmail.setText(\"\");\n }\n \n //verify ID No. (Local)\n String ID = idNumTxf.getText();\n if(ID.length()!=13){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild ID number\", \"ERROR\", ERROR_MESSAGE);\n errID.setText(\"!\");\n return false;\n }\n else{\n errID.setText(\"\");\n }\n \n if(zipResTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipRes.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipRes.setText(\"\");\n }\n if(zipPostTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipPost.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipPost.setText(\"\");\n }\n \n \n return true;\n\n }", "private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "@Test\r\n\tpublic void view3_current_table_data_validation()\r\n\t{\t\r\n\t\t//Key on which we have to validate other values.\r\n\t\tString key = \"Calls In Queue\";\r\n\t\t//Text on which we will fetch other tables columns\r\n\t\tString check_text = \"Agents\";\r\n\r\n\t\t//Initialize Elements of tables and their columns data.\r\n\r\n\t\t//Table 1 - Data\r\n\t\tList<WebElement> data_of_table1 = driver.findElements(view3_Current_table_data_val);\r\n\t\t//Table 1 - Columns\r\n\t\tList<WebElement> col_of_table1 = driver.findElements(By.xpath(view3_curr_data_table));\r\n\t\t//Removing Column data from another table.\r\n\t\tdata_of_table1 = helper.modify_cols_data_of_table(col_of_table1, data_of_table1 , check_text );\r\n\t\t//Validating N/A and integer for columns\r\n\t\thelper.data_validate_Down(driver, key , col_of_table1, data_of_table1 );\r\n\t}", "private void validateData() {\n }", "public void validate_the_Security_Answer_of_Security_in_Customer_Tab(String SecurityAnswer)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll(\"M_Header\", \"Security\").replaceAll(\"M_Category\", \"Security Answer\").replaceAll(\"M_InnerText\", SecurityAnswer), \"Security Answer - \"+SecurityAnswer, false);\n\t}", "@Test\r\n\tpublic void view3_COEs_table_data_validation()\r\n\t{\t\r\n\t\t//Key on which we have to validate other values.\r\n\t\tString key = \"Calls In Queue\";\r\n\t\t//Text on which we will fetch other tables columns\r\n\t\tString check_text = \"Agents\";\r\n\r\n\t\t//Initialize Elements of tables and their columns data.\r\n\t\t//Table 3 - Data .\r\n\t\tList<WebElement> data_of_table3 = driver.findElements(view3_COEs_table_data_val);\r\n\t\t//Table 3 - Columns\r\n\t\tList<WebElement> col_of_table3 = driver.findElements(By.xpath(view3_curr_agent_stats_col));\r\n\t\t//Table 1 - Data\r\n\t\tList<WebElement> updated_col_table1 = driver.findElements(view3_Current_table_data_val);\r\n\t\t//Table 1 - Colums\r\n\t\tList<WebElement> col_of_table1 = driver.findElements(By.xpath(view3_curr_data_table));\r\n\t\t\r\n\t\t//Adding Column data from another table.\r\n\t\tdata_of_table3 = helper.modify_cols_data_of_table(col_of_table1, data_of_table3, updated_col_table1 , check_text );\r\n\t\t//Validating N/A and integer for columns\r\n\t\thelper.data_validate_Down(driver, key , col_of_table3, data_of_table3 );\r\n\t}", "@Test\r\n\tpublic void view3_todays_table_data_validation()\r\n\t{\t\r\n\t\t//Key on which we have to validate other values.\r\n\t\tString key = \"CML Service Level\";\r\n\r\n\t\t//Initialize Elements of tables and their columns data.\r\n\r\n\t\t//Table 1 - Data\r\n\t\tList<WebElement> data_of_table2 = driver.findElements(view3_todays_table_data_val);\r\n\t\t//Table 1 - Colums\r\n\t\tList<WebElement> col_of_table2 = driver.findElements(By.xpath(view3_today_data_table));\r\n\t\t//Validating N/A and integer for columns\r\n\t\thelper.data_validate_Down(driver, key , col_of_table2, data_of_table2 );\r\n\t}", "private boolean validate(){\n return EditorUtils.editTextValidator(generalnformation,etGeneralnformation,\"Type in information\") &&\n EditorUtils.editTextValidator(symptoms,etSymptoms, \"Type in symptoms\") &&\n EditorUtils.editTextValidator(management,etManagement, \"Type in management\");\n }", "public void validateCreateCustomerAndTask() {\n\t\tAttSelectNewCustomerOptionFromListBox.click();\n\t\tAttCustomerNameTextBox.sendKeys(\"TestCust\");\n\t\tAttProjectNameTextBox.sendKeys(\"TestProject\");\n\t\tAttTaskNameTextBox.sendKeys(\"Tast1WCNP\");\n\t\tAttBudgetTimeTextBox.sendKeys(\"3:00\");\n\t\tAttEnterDateInDateField.sendKeys(Keys.ENTER,\"Jan 27, 2019\");\n\t\tAttSelectBillableBillingType.click();\n\t\tAttSelectCheckBoxMarkToBeAdd.click();\n\t\tAttCreateTaskBtn.click();\n\t}", "public void validateRpd13s6()\n {\n // This guideline cannot be automatically tested.\n }", "public void validate() {}", "public void validateRpd13s15()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s11()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s7()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd15s1()\n {\n // This guideline cannot be automatically tested.\n }", "void validate();", "void validate();", "public void validateRpd15s7()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s9()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s17()\n {\n // This guideline cannot be automatically tested.\n }", "private boolean validateFields(){ \n ImplLogger.enterMethod(); \n StringBuffer validationMessage = new StringBuffer();\n boolean isValidationPassed = true;\n if(!ImplValidationUtils.isAlphaSpace(pharmaNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_NAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n pharmaNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n } \n if(!ImplValidationUtils.isAlphabetOnly(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplCommonUtil.isUserNameExist(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME_EXIST);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(contactTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_CONTACT);\n validationMessage.append(ImplConst.NEXT_LINE);\n contactTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(zipCodeTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_ZIPCODE);\n validationMessage.append(ImplConst.NEXT_LINE);\n zipCodeTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(passwordField.getText())){\n validationMessage.append(ImplConst.VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n passwordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n confirmPasswordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if (!ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText()) && !confirmPasswordField.getText().equals(passwordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n isValidationPassed = false; \n }\n if(!isValidationPassed){\n JOptionPane.showMessageDialog(null,validationMessage);\n } \n ImplLogger.exitMethod();\n return isValidationPassed;\n }", "private void validation() {\n Pattern pattern = validationfilterStringData();\n if (pattern.matcher(txtDrug.getText().trim()).matches() && pattern.matcher(txtGenericName.getText().trim()).matches()) {\n try {\n TblTreatmentadvise treatmentadvise = new TblTreatmentadvise();\n treatmentadvise.setDrugname(txtDrug.getText());\n treatmentadvise.setGenericname(txtGenericName.getText());\n treatmentadvise.setTiming(cmbDosestiming.getSelectedItem().toString());\n cmbtiming.setSelectedItem(cmbDosestiming);\n treatmentadvise.setDoses(loadcomboDoses());\n treatmentadvise.setDuration(loadcomboDuration());\n PatientService.saveEntity(treatmentadvise);\n JOptionPane.showMessageDialog(this, \"SAVE SUCCESSFULLY\");\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, \"STARTUP THE DATABASE CONNECTION\");\n }\n } else {\n JOptionPane.showMessageDialog(this, \"WRONG DATA ENTERED.\");\n }\n }", "ValidationResponse validate();", "public void validateRpd13s2()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s13()\n {\n // This guideline cannot be automatically tested.\n }", "private boolean tableDataValid()\r\n {\r\n // if there are any form level validations that should go there\r\n int rowTotal = tblProtoCorresp.getRowCount();\r\n int colTotal = tblProtoCorresp.getColumnCount();\r\n for (int rowIndex = 0; rowIndex < rowTotal ; rowIndex++)\r\n {\r\n for (int colIndex = 0; colIndex < colTotal; colIndex++)\r\n {\r\n TableColumn column = codeTableColumnModel.getColumn(colIndex) ;\r\n\r\n ColumnBean columnBean = (ColumnBean)column.getIdentifier() ;\r\n\r\n if (columnBean.getColumnEditable()\r\n && !columnBean.getColumnCanBeNull())\r\n {\r\n if ( tblProtoCorresp.getValueAt(rowIndex,colIndex) != null)\r\n {\r\n if (tblProtoCorresp.getValueAt(rowIndex,colIndex).equals(\"\")\r\n || tblProtoCorresp.getValueAt(rowIndex,colIndex).toString().trim().equals(\"\") )\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"checkInputValue_exceptionCode.2402\");\r\n String msgColName = \" \" + columnBean.getDisplayName() + \". \";\r\n CoeusOptionPane.showInfoDialog(msg + msgColName);\r\n tblProtoCorresp.changeSelection(rowIndex, colIndex, false, false) ;\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"checkInputValue_exceptionCode.2402\");\r\n\r\n String msgColName = \" \" + columnBean.getDisplayName() + \". \";\r\n CoeusOptionPane.showInfoDialog(msg + msgColName);\r\n tblProtoCorresp.changeSelection(rowIndex, colIndex, false, false) ;\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n }\r\n return true ;\r\n }", "protected void validate(String operationType) throws Exception\r\n\t{\r\n\t\tsuper.validate(operationType);\r\n\r\n\t\tMPSString id_validator = new MPSString();\r\n\t\tid_validator.validate(operationType, id, \"\\\"id\\\"\");\r\n\t\t\r\n\t\tMPSBoolean secure_access_only_validator = new MPSBoolean();\r\n\t\tsecure_access_only_validator.validate(operationType, secure_access_only, \"\\\"secure_access_only\\\"\");\r\n\t\t\r\n\t\tMPSString svm_ns_comm_validator = new MPSString();\r\n\t\tsvm_ns_comm_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);\r\n\t\tsvm_ns_comm_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tsvm_ns_comm_validator.validate(operationType, svm_ns_comm, \"\\\"svm_ns_comm\\\"\");\r\n\t\t\r\n\t\tMPSString ns_br_interface_validator = new MPSString();\r\n\t\tns_br_interface_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);\r\n\t\tns_br_interface_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tns_br_interface_validator.validate(operationType, ns_br_interface, \"\\\"ns_br_interface\\\"\");\r\n\t\t\r\n\t\tMPSBoolean vm_auto_poweron_validator = new MPSBoolean();\r\n\t\tvm_auto_poweron_validator.validate(operationType, vm_auto_poweron, \"\\\"vm_auto_poweron\\\"\");\r\n\t\t\r\n\t\tMPSString ns_br_interface_2_validator = new MPSString();\r\n\t\tns_br_interface_2_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);\r\n\t\tns_br_interface_2_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tns_br_interface_2_validator.validate(operationType, ns_br_interface_2, \"\\\"ns_br_interface_2\\\"\");\r\n\t\t\r\n\t\tMPSInt init_status_validator = new MPSInt();\r\n\t\tinit_status_validator.validate(operationType, init_status, \"\\\"init_status\\\"\");\r\n\t\t\r\n\t}", "public void validateRpd15s2()\n {\n // This guideline cannot be automatically tested.\n }", "public String validate() {\n\t\tString msg=\"\";\n\t\t// for name..\n\t\tif(name==null||name.equals(\"\"))\n\t\t{\n\t\t\tmsg=\"Task name should not be blank or null\";\n\t\t}\n\t\tif(name.split(\" \").length>1)\n\t\t{\n\t\t\tmsg=\"multiple words are not allowed\";\n\t\t}\n\t\telse\n\t\t{\n\t\t for(int i=0;i<name.length();i++)\n\t\t {\n\t\t\t char c=name.charAt(i);\n\t\t\t\tif(!(Character.isDigit(c)||Character.isLetter(c)))\n\t\t\t\t{\n\t\t\t\t\tmsg=\"special characters are not allowed\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t }\n\t\t}\n\t\t\t\n\t\t\n\t\t\t// for Description...\n\t\t\tif(desc==null||desc.equals(\"\"))\n\t\t\t{\n\t\t\t\tmsg=\"Task descrshould not be blank or null\";\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t // for tag...\n\t\t\t \n\t\t\t if(tag==null||tag.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tmsg=\"Task tags not be blank or null\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t // for date { imp here}\n\t\t\t if(tarik!=null)\n\t\t\t {\n\t\t\t SimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t sdf.setLenient(false); // very imp here..\n\t\t\t try {\n\t\t\t\tDate d=sdf.parse(tarik);\n\t\t\t} catch (ParseException e) {\n\t\t\t\t\n\t\t\t//\tmsg=\"date should be correct foramat\";\n\t\t\t\tmsg=e.getMessage();\n\t\t\t}\n\t\t\t }\n\t\t\t// for prority..\n\t\t\t if(prio<1&&prio>10)\n\t\t\t {\n\t\t\t\t msg=\"prority range is 1 to 10 oly pa\";\n\t\t\t }\n\t\t\t\t\n\t\t\t\tif(msg.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\treturn Constant.SUCCESS;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\treturn msg;\n\t}", "public void validate(){\r\n\t\ttry{\r\n\t\t\t//First name, last name, date of birth and email are compulsory.\r\n\t\tif(FirstName==null||LastName==null||Dob==null||Email==null) \r\n\t\t\tthrow new Exception(\"One of the field is Empty :\\n(First name / last name / dob / email )\");\r\n\t\tif(TelephoneNumber!=0||MobileNumber!=0)\r\n\t\t\tthrow new Exception(\"Enter Contact Number\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\t/*finally{\r\n\t\t\tSystem.out.println(\"Program Executed\");\r\n\t\t}*/\r\n\t}", "public void ValidationData() {\n try {\n ConnectionClass connectionClass = new ConnectionClass();\n connect = connectionClass.CONN();\n if (connect == null) {\n ConnectionResult = \"Check your Internet Connection\";\n } else {\n String query = \"Select No from machinestatustest where Line='\" + Line + \"' and Station = '\" + Station + \"'\";\n Statement stmt = connect.createStatement();\n ResultSet rs = stmt.executeQuery(query);\n if (rs.next()) {\n Validation = rs.getString(\"No\");\n }\n ConnectionResult = \"Successfull\";\n connect.close();\n }\n } catch (Exception ex) {\n ConnectionResult = ex.getMessage();\n }\n }", "public void validateRpd8s22()\n {\n // Duplicate of 8s14\n }", "public void validateRpd11s6()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd22s6()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s12()\n {\n // This guideline cannot be automatically tested.\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void EditViewLessthan15AcctsErrorValidation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether proper error message is displayed in view when continuing with out enabling the accounts check box\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvManageView\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t\t.clicktestacct();\n\t\t/*.ClickManageUserLink()\n\t\t.ManageViews()\n\t\t.VerifyEditviewname(userProfile)\n\t\t.EditViewNameErrorValidation(userProfile); \t \t\t\t\t\t\t \t \t\t\n\t}*/\n\t}", "public void validateRpd13s8()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd15s4()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd15s5()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd11s1()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd22s1()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd22s7()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd11s7()\n {\n // This guideline cannot be automatically tested.\n }", "private void validate() {\n\t\t// just in case;\n\t\tfor (int i=0;i<NR_OF_FIELDS; i++) {\n\t\t\tvalid[i] = \"0\";\n\t\t}\n\t\t//\n\t\t// Validate name and surname:\n\t\t//\n\t\tif ( ! this.isUpperAlpha(nume)) {\n\t\t\tfields[0] = \"1\";\n\t\t}\n\t\t\n\t\tif ( ! this.isUpperAlphaWithSpace(nume)) {\n\t\t\tfields[1] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate seria\n\t\t//\n\t\tvalid[2] = \"1\";\t\t\t\t\t\t\t// presupun ca seria este invalida, si incerc sa o validez\n\t\tfor (int i=0; i<seriiBuletin.length; i++) {\n\t\t\tif (seriiBuletin[i].equals(seria)) {\n\t\t\t\tvalid[2] = \"0\";\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// validate numarul\n\t\t//\n\t\ttry {\n\t\t\tvalid[3] = \"1\";\n\t\t\tint nr = Integer.valueOf(numarul);\n\t\t\tif ( nr >= 100000 && nr <= 999999 ) {\n\t\t\t\tvalid[3] = \"0\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.d(TAG, \"Error validating seria.\");\n\t\t}\n\n\t\t//\n\t\t// validate sex\n\t\t//\n\t\tif ( ! (sex == 'M' || sex == 'F')) {\n\t\t\tvalid[6] = \"1\";\n\t\t}\n\t\t//\n\t\t// Validate valabilitate\n\t\t//\n\t\tif ( ! isNumber(this.valabilitate)) {\n\t\t\tvalid[7] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate CNP\n\t\t//\n\t\tif ( ! (isNumber(CNP) && isValidCNP(CNP))) {\n\t\t\tvalid[8] = \"1\";\n\t\t}\n\t\t\n\t}", "private void validateDetails() {\n\n clearErrors();\n Utils.hide_keyboard(getActivity());\n\n boolean valid = true;\n\n String cvv = cvvTv.getText().toString();\n String expiryDate = cardExpiryTv.getText().toString();\n String cardNo = cardNoTv.getText().toString();\n\n if (cvv.length() < 3) {\n valid = false;\n cvvTil.setError(\"Enter a valid cvv\");\n }\n\n if (expiryDate.length() != 5) {\n cardExpiryTil.setError(\"Enter a valid expiry date\");\n valid = false;\n }\n\n String cardNoStripped = cardNo.replaceAll(\"\\\\s\", \"\");\n\n if (cardNoStripped.length() < 12 ) {\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n else {\n try {\n Long parsed = Long.parseLong(cardNoStripped);\n }\n catch (Exception e) {\n e.printStackTrace();\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n }\n\n if (valid) {\n\n if (saveCardSwitch.isChecked()) {\n int cardLen = cardNoStripped.length();\n cardFirst6 = cardNoStripped.substring(0, 6);\n cardLast4 = cardNoStripped.substring(cardLen - 4, cardLen);\n shouldISaveThisCard = true;\n presenter.savePotentialCardDets(cardFirst6, cardLast4);\n }\n\n //make request\n PayloadBuilder builder = new PayloadBuilder();\n builder.setAmount(thetellerInitializer.getAmount() + \"\")\n .setNarration(thetellerInitializer.getNarration())\n .setCardno(cardNoStripped)\n .set3dUrl(thetellerInitializer.get3dUrl())\n .setEmail(thetellerInitializer.getEmail())\n .setCurrency(thetellerInitializer.getCurrency())\n .setMerchant_id(thetellerInitializer.getMerchant_id())\n .setCvv(cvv).setFirstname(thetellerInitializer.getfName())\n .setLastname(thetellerInitializer.getlName())\n .setIP(Utils.getDeviceImei(getActivity()))\n .setTxRef(thetellerInitializer.getTxRef())\n .setExpiryyear(expiryDate.substring(3,5))\n .setExpirymonth(expiryDate.substring(0,2))\n .setMeta(thetellerInitializer.getMeta())\n .setApiUser(thetellerInitializer.getApiUser())\n .setApiKey(thetellerInitializer.getApiKey())\n .setDevice_fingerprint(Utils.getDeviceImei(getActivity()))\n .setCardType(cardType);\n\n if (thetellerInitializer.getPayment_plan() != null) {\n builder.setPaymentPlan(thetellerInitializer.getPayment_plan());\n }\n\n body = builder.createPayload();\n\n presenter.chargeCard(body, thetellerConstants.API_KEY);\n }\n }", "private void validateInputParameters(){\n\n }", "public void validateRpd22s9()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s10()\n {\n // This guideline cannot be automatically tested.\n }", "private void validateITResource() {\n // TODO Auto-generated method stub\n \n }", "@Override\r\n\tArrayList<String> checkData() {\n\t\tArrayList<String> cf = new ArrayList<String>();\r\n\t\tboolean errorSuperficie = false;\r\n\t\t\r\n\t\t\r\n\t\tfor (Entry<String, String[]> entry : request.getParameterMap().entrySet()) {\r\n\r\n\t\t\tif(entry.getKey().indexOf(\"PR\") != -1){\r\n\t\t\t\t\r\n\t\t\t\tif(!isPositive0Included(request.getParameter(entry.getKey()))){\r\n\t\t\t\t\terrorSuperficie = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif(errorSuperficie){\r\n\t\t\tcf.add(\"Las superficies tienen que ser positivas.\");\r\n\t\t}\r\n\r\n\t\t\r\n\t\treturn cf;\r\n\t}", "@Test\n public void test10020ATS001ValidationofDatefieldsinPayHistory() throws Exception {\n driver.get(\"http://Clarity\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_UserNameTextBox\")).clear();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_UserNameTextBox\")).sendKeys(\"02.08.09\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_PasswordTextBox\")).clear();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_PasswordTextBox\")).sendKeys(\"password\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_LoginButton\")).click();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_btnLogin\")).click();\n //driver.findElement(By.linkText(\"Select\")).click();\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*How much is my pension[\\\\s\\\\S][\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).clear();\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).sendKeys(\"02/10/20\");\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*Start date is later than end date\\\\.[\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).clear();\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).sendKeys(\"25/07/2017\");\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).clear();\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate\")).clear();\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate\")).sendKeys(\"02/10/2\");\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).sendKeys(\"02/10/2\");\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton\")).click();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton']\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*End Date is not recognized as a valid date\\\\.[\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate']\")).clear();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate']\")).sendKeys(\"21221\\\"\\\"\\\"\");\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).clear();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).sendKeys(\"wewe\\\"\\\"\\\"\");\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton']\")).click();\n Thread.sleep(1000);\n //try {\n //assertTrue(driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDateTypeValidator\")).getText().matches(\"^exact:[\\\\s\\\\S]*$\"));\n //} catch (Error e) {\n // verificationErrors.append(e.toString());\n //}\n // ERROR: Caught exception [Error: locator strategy either id or name must be specified explicitly.]\n driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_LoginStatus\")).click();\n }", "public void validateRpd22s5()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd14s1()\n {\n // This guideline cannot be automatically tested.\n }", "protected void validate(String operationType) throws Exception\r\n\t{\r\n\t\tsuper.validate(operationType);\r\n\r\n\t\tMPSString id_validator = new MPSString();\r\n\t\tid_validator.setConstraintIsReq(MPSConstants.DELETE_CONSTRAINT, true);\r\n\t\tid_validator.setConstraintIsReq(MPSConstants.MODIFY_CONSTRAINT, true);\r\n\t\tid_validator.validate(operationType, id, \"\\\"id\\\"\");\r\n\t\t\r\n\t\tMPSInt adapter_id_validator = new MPSInt();\r\n\t\tadapter_id_validator.validate(operationType, adapter_id, \"\\\"adapter_id\\\"\");\r\n\t\t\r\n\t\tMPSInt pdcount_validator = new MPSInt();\r\n\t\tpdcount_validator.validate(operationType, pdcount, \"\\\"pdcount\\\"\");\r\n\t\t\r\n\t\tMPSInt ldcount_validator = new MPSInt();\r\n\t\tldcount_validator.validate(operationType, ldcount, \"\\\"ldcount\\\"\");\r\n\t\t\r\n\t}", "public void validateRpd13s16()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd3s15()\n {\n // This guideline cannot be automatically tested.\n }", "@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}", "@Then(\"^Validate the fields present in the result page$\") // Move to UserStep Definition\r\n\tpublic void attribute_validation(){\r\n\t\tenduser.attri_field();\r\n\t}", "@Override\n\tpublic void validate()\n\t{\n\n\t}", "public void validateRpd22s4()\n {\n // This guideline cannot be automatically tested.\n }", "@Override\r\n\tpublic boolean isValid(String code, ConstraintValidatorContext theConstaint) {\r\n \r\n titles = customerService.getTitles();\r\n \r\n for(String i : titles)\r\n {\r\n \tSystem.out.println(i);\r\n }\r\n //descriptions = ec.getDescriptions();\r\n for(String i : titles)\r\n {\r\n\t result = code.equals(i);\r\n\t\tif(code != null)\t\t\r\n\t\t\tresult = code.equals(i);\r\n\t\telse\r\n\t\t\tresult = true;\r\n\t\tif(result == true)\r\n\t\t\tbreak;\r\n }\r\n\t\treturn result;\r\n\t}", "@Test\n\tpublic void testValidate()\n\t{\n\t\tSystem.out.println(\"validate\");\n\t\tUserTypeCode userTypeCode = new UserTypeCode();\n\t\tuserTypeCode.setCode(\"Test\");\n\t\tuserTypeCode.setDescription(\"Test\");\n\n\t\tValidationModel validateModel = new ValidationModel(userTypeCode);\n\t\tvalidateModel.setConsumeFieldsOnly(true);\n\n\t\tValidationResult result = ValidationUtil.validate(validateModel);\n\t\tSystem.out.println(\"Any Valid consume: \" + result.toString());\n\t\tif (result.valid() == false) {\n\t\t\tAssert.fail(\"Failed validation when it was expected to pass.\");\n\t\t}\n\t\tSystem.out.println(\"---------------------------\");\n\n\t\tvalidateModel = new ValidationModel(userTypeCode);\n\t\tresult = ValidationUtil.validate(validateModel);\n\t\tSystem.out.println(\"Faild: \" + result.toString());\n\t}", "public void printValidateInformation() {\n\n if(!validateFirstName()){\n System.out.println(\"The first name must be filled in\");\n }\n if(!validateFirstNameLength()){\n System.out.println(\"The first name must be at least 2 characters long.\");\n }\n if(!validateLastName()){\n System.out.println(\"The last name must be filled in\");\n }\n if(!validateLastNameLength()){\n System.out.println(\"The last name must be at least 2 characters long.\");\n }\n if(!validateZipcode()){\n System.out.println(\"The zipcode must be a 5 digit number.\");\n }\n if (!validateEmployeeID()){\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n }\n\n if(validateFirstName() && validateFirstNameLength() && validateLastName() && validateLastNameLength()\n && validateZipcode() && validateEmployeeID()){\n System.out.println(\"There were no errors found.\");\n }\n }", "@Override\n\tpublic void validate() {\n\t\t if(pname==null||pname.toString().equals(\"\")){\n\t\t\t addActionError(\"父项节点名称必填!\");\n\t\t }\n\t\t if(cname==null||cname.toString().equals(\"\")){\n\t\t\t addActionError(\"子项节点名称必填!\");\n\t\t }\n\t\t if(caction==null||caction.toString().equals(\"\")){\n\t\t\t addActionError(\"子项节点动作必填!\");\n\t\t }\n\t\t \n\t\t List l=new ArrayList();\n\t\t\tl=userService.QueryByTabId(\"Resfun\", \"resfunid\", resfunid);\n\t\t\t//判断是否修改\n\t\t\tif(l.size()!=0){\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<l.size();i++){\n\t\t\t\t\tResfun rf=new Resfun();\n\t\t\t\t\trf=(Resfun)l.get(i);\n\t\t\t\t\tif(rf.getCaction().equals(caction.trim())&&rf.getCname().equals(cname)&&rf.getPname().equals(pname)){\n\t\t\t\t\t\tSystem.out.println(\"mei gai\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tList n=new ArrayList();\n\t\t\t\t\t\tn=userService.QueryByPcac(\"Resfun\", \"pname\", pname, \"cname\", cname, \"caction\", caction);\n\t\t\t\t\t\tif(n.size()!=0){\n\t\t\t\t\t\t\taddActionError(\"该记录已经存在!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t \n\t\t \n\t\t \n\t\t \n\t}", "private boolean validateData() {\n if (!mCommon.validateData()) return false;\n\n Core core = new Core(this);\n\n // Due Date is required\n if (TextUtils.isEmpty(getRecurringTransaction().getDueDateString())) {\n core.alert(R.string.due_date_required);\n return false;\n }\n\n if (TextUtils.isEmpty(mCommon.viewHolder.dateTextView.getText().toString())) {\n core.alert(R.string.error_next_occurrence_not_populate);\n\n return false;\n }\n\n // Payments Left must have a value\n if (getRecurringTransaction().getPaymentsLeft() == null) {\n core.alert(R.string.payments_left_required);\n return false;\n }\n return true;\n }", "private boolean validateInput(){\n Window owner=root.getScene().getWindow();\n inputFileds.addAll(txtfn,txtln,txtsurname,txtDOB,txtResidence,txtMobile,txtID,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().isEmpty()){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n inputFileds.removeAll(txtDOB,txtMobile,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().length()>30){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Sorry the text you entered can not be greater that 30 characters\",\"Text too Long\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n if(username.getText().length()>20 || username.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Username has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid input\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n if(pass.getText().isEmpty()){\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n if(pass.getText().length()>20 || pass.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Password has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n SimpleDateFormat yearFormat = new SimpleDateFormat(\"yyyy\");\n try {\n date = dateFormat.parse(txtDOB.getText());\n Calendar cal=Calendar.getInstance();\n int year=Integer.parseInt(yearFormat.format(date));\n if (year <= 1900 || year>cal.get(Calendar.YEAR)) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n String initialEntry=txtDOB.getText();\n String parsedValue=dateFormat.format(date);\n if(!initialEntry.equals(parsedValue)){\n Dialog.showMessageDialog(owner, \"Note your Date of Birth has been corrected\", \"Date Corrected\",DialogIcon.INFORMATION);\n }\n txtDOB.setText(dateFormat.format(date));\n } catch (ParseException ex) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n try {\n int mobile=Integer.parseInt(txtMobile.getText());\n } catch (NumberFormatException e) {\n Dialog.showMessageDialog(owner, \"Invalid Mobile Number\", \"Invalid data\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n if(txtMobile.getText().length() != 10){\n Dialog.showMessageDialog(owner, \"Sorry your Mobile Number is invalid\", \"Invalid input\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n String sql=\"select Username,Password from users where Username=?\";\n try(PreparedStatement prstmt=con.prepareStatement(sql)) {\n prstmt.setString(1, username.getText());\n ResultSet rs=prstmt.executeQuery();\n if(rs.next()){\n Dialog.showMessageDialog(owner, \"Sorry Username already exists\\n Please change to different Username\", \"Username Exists\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n rs.close();\n } catch (SQLException e) {\n System.err.println(e);\n }\n return true;\n }", "public void validate(DataRecord value) {\n\r\n\t}", "public int ValidateAndGetSupplierFields()\n {\n int error = 0;\n \n if(txtSuplId.getText() == null || txtSuplId.getText().equals(\"\")) \n {\n saveSupl.setSupplId(Integer.valueOf(\"0\"));\n }else\n {\n saveSupl.setSupplId(Integer.valueOf(txtSuplId.getText())); //pk - not expected to be null!\n }\n \n if(!ValidateFields.validateStringCharTextField(txtSuplCode.getText())) \n {\n error++;\n txtSuplCode.requestFocus();\n txtSuplCode.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_CODE);\n return error;\n }else\n {\n txtSuplCode.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSupplCode(txtSuplCode.getText()); //Save the value to supplier object\n }\n \n if(!ValidateFields.validateStringCharTextField(txtSuplContact.getText())) \n {\n error++;\n txtSuplContact.requestFocus();\n txtSuplContact.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_CONTACT);\n return error;\n }else\n {\n txtSuplContact.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplContact(txtSuplContact.getText()); //Save the value to supplier object\n }\n \n \n if(!ValidateFields.validatePhoneNumberTextField(txtSuplTel.getText())) \n {\n error++;\n txtSuplTel.requestFocus();\n txtSuplTel.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_TEL);\n return error;\n }else\n {\n txtSuplTel.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplTel(txtSuplTel.getText()); //save the value\n }\n \n if(!ValidateFields.validatePhoneNumberTextField(txtSuplCell.getText())) \n {\n error++;\n txtSuplCell.requestFocus();\n txtSuplCell.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_TEL);\n return error;\n }else\n {\n txtSuplCell.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplCell(txtSuplCell.getText()); //save the value\n }\n \n if(!ValidateFields.validatePhoneNumberTextField(txtSuplFax.getText())) \n {\n error++;\n txtSuplFax.requestFocus();\n txtSuplFax.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_FAX);\n return error;\n }else\n {\n txtSuplFax.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplFax(txtSuplFax.getText()); //save the value\n }\n \n if(!ValidateFields.validateEmailTextField(txtSuplEmail.getText())) \n {\n error++;\n txtSuplEmail.requestFocus();\n txtSuplEmail.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_EMAIL);\n return error;\n }else\n {\n txtSuplEmail.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplEmail(txtSuplEmail.getText()); //save the value\n }\n \n if(!ValidateFields.validateStringCharTextField(txtSuplBank.getText())) \n {\n error++;\n txtSuplBank.requestFocus();\n txtSuplBank.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_BANK);\n return error;\n }else\n {\n txtSuplBank.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplBank(txtSuplBank.getText()); //save the value\n }\n \n if(!ValidateFields.validateIntegerNumberTextField(txtSuplBranchCode.getText())) \n {\n error++;\n txtSuplBranchCode.requestFocus();\n txtSuplBranchCode.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_BRANCH_CODE);\n return error;\n }else\n {\n txtSuplBranchCode.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplBranchCode(Integer.valueOf(txtSuplBranchCode.getText())); //save the value\n }\n \n if(!ValidateFields.validateIntegerNumberTextField(txtSuplAccNum.getText())) \n {\n error++;\n txtSuplAccNum.requestFocus();\n txtSuplAccNum.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_ACC);\n return error;\n }else\n {\n txtSuplAccNum.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplAccNum(Integer.valueOf(txtSuplAccNum.getText())); //Save the value to supplier object\n }\n \n if(!ValidateFields.validateStringCharTextField(txtSuplAccType.getText())) \n {\n error++;\n txtSuplAccType.requestFocus();\n txtSuplAccType.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_ACC_TYPE);\n return error;\n }else\n {\n txtSuplAccType.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplAccType(txtSuplAccType.getText()); //save the value\n }\n \n if(!ValidateFields.validateStringCharTextField(txtSuplComments.getText())) \n {\n error++;\n txtSuplComments.requestFocus();\n txtSuplComments.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLEMENT_DESC);\n return error;\n }else\n {\n txtSuplComments.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplComments(txtSuplComments.getText()); //save the value\n }\n \n return error;\n }", "void validateTransactionForPremiumWorksheet(Record inputRecord, Connection conn);", "public void validateRpd3s14()\n {\n // This guideline cannot be automatically tested.\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void ValidateCheckboxField() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the whether error message is getting displayed when the user doesnot marks Terms and conditions check box \"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDataspl\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreation()\n\t\t.validateCheckboxTermsAndCnds(userProfile);\t\t\t\t \t \t\t\t\t\t\t\n\t}", "public void validateRpd3s12()\n {\n // This guideline cannot be automatically tested.\n }", "public PaymentRequestPage paymentRequestPaymentAvailabilityValidation(String cashbackType,String cashbackValue,String rewardsValue) {\r\n\r\n\t\tString actual = \"\";\r\n\r\n\t\treportStep(\"About to validate the Cashback and Rewards Payment avilablity section in the payment Request page \", \"INFO\");\r\n\r\n\t\tswitch (cashbackType) {\r\n\r\n\t\tcase \"Only_Cashback\":\r\n\r\n\t\t\tvalidateTheElementPresence(cashbackAvailableForPaymentText);\r\n\r\n\t\t\tactual = getText(totalcashbackAvailableForPaymentAmount);\r\n\r\n\t\t\tvalidateTheActualValueContainsExpectedValue(actual, cashbackValue);\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"Only_Rewards\":\r\n\r\n\t\t\tvalidateTheElementPresence(rewardsAvailableForPaymentText);\r\n\r\n\t\t\tactual = getText(totalcashbackAvailableForPaymentAmount);\r\n\r\n\t\t\tvalidateTheActualValueContainsExpectedValue(actual, rewardsValue);\r\n\r\n\t\t\tbreak;\r\n\r\n\r\n\t\tcase \"BothCashback_Rewards\":\r\n\r\n\t\t\tfloat cashbackAmount = Float.parseFloat(cashbackValue);\r\n\t\t\tfloat rewardsAmount = Float.parseFloat(rewardsValue);\r\n\t\t\tfloat totalAmount = cashbackAmount + rewardsAmount ;\r\n\r\n\t\t\tString strTotalAmount = Float.toString(totalAmount) + \"0\";\r\n\t\t\tString strOnlyCashbackAmount = Float.toString(cashbackAmount) + \"0\";\r\n\t\t\tString strOnlyRewardsAmount = Float.toString(rewardsAmount) + \"0\";\r\n\r\n\r\n\t\t\tvalidateTheElementPresence(rewardsAvailableForPaymentText);\r\n\t\t\tvalidateTheElementPresence(cashbackText);\r\n\t\t\tvalidateTheElementPresence(rewardsText);\r\n\r\n\t\t\t//validate total cashback amount\r\n\t\t\tactual = getText(totalcashbackAvailableForPaymentAmount);\r\n\t\t\tvalidateTheActualValueContainsExpectedValue(actual, strTotalAmount);\r\n\r\n\t\t\t//validate only cashback amount\r\n\t\t\tactual = getText(cashbackAvailableForPaymentAmount);\r\n\t\t\tvalidateTheActualValueContainsExpectedValue(actual, strOnlyCashbackAmount);\r\n\r\n\r\n\t\t\t//validate only rewards amount\r\n\t\t\tactual = getText(rewardsAvailableForPaymentAmount);\r\n\t\t\tvalidateTheActualValueContainsExpectedValue(actual, strOnlyRewardsAmount);\r\n\r\n\t\t\tbreak;\r\n\r\n\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\r\n\t}", "public Iterator<String> validate() {\r\n\t\tValidityReport vr = ONT_MODEL.validate();\r\n\t\t\r\n\t\tCollection<String> reports = new ArrayList<String>();\r\n\t\t\r\n\t\tfor(Iterator riter = vr.getReports(); riter.hasNext();)\r\n\t\t{\r\n\t\t\tValidityReport.Report r = (ValidityReport.Report)riter.next();\r\n\t\t\tString msg =\"\";\r\n\t\t\tif(r.isError())\r\n\t\t\t\tmsg += \"[ERROR]\";\r\n\t\t\telse\r\n\t\t\t\tmsg += \"[WARNING]\";\r\n\t\t\tmsg+=\"[\"+r.getType()+\"]\";\r\n\t\t\tmsg+=r.getDescription();\r\n\t\t\treports.add(msg);\r\n\t\t}\r\n\t\t\r\n\t\treturn reports.iterator();\r\n\t}", "public void validateRpd8s13()\n {\n // This guideline cannot be automatically tested.\n }", "@Test(enabled=true, priority =1)\r\n\tpublic void view3_validate_table_data() {\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_curr_data) , \"Test_View3\" , \"view3_curr_data\" );\t\r\n\t\thelper.validate_table_columns( view3_curr_data_table , driver , \"\" , \"Test_View3\" , \"view3_curr_data_table\" );\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_today_data) , \"Test_View3\" , \"view3_today_data\" );\r\n\t\thelper.validate_table_columns( view3_today_data_table , driver , \"\" , \"Test_View3\" , \"view3_today_data_table\" );\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_curr_agent_stats_tbl) , \"Test_View3\" , \"view3_curr_agent_stats_tbl\" );\r\n\t\thelper.validate_table_columns( view3_curr_agent_stats_col , driver , \"\" , \"Test_View3\" , \"view3_curr_agent_stats_col\" );\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_agent_details) , \"Test_View3\" , \"view3_agent_details\" );\t\r\n\t\thelper.validate_table_columns( view3_Agent_table_data_start , driver , view3_Agent_table_data_end , \"Test_View3\" , \"view3_Agent_table_data\" );\r\n\t}", "private void questionValidation(Question question) throws SurveyEngineException {\r\n if (\"\".equals(question.getDescription())) {\r\n throw new SurveyEngineException(\"Question description empty or null\");\r\n }\r\n HashMap<Integer, String> answers = question.getAnswers();\r\n if (answers.size() < 2) {\r\n throw new SurveyEngineException(\"Question has less than 2 answers\");\r\n }\r\n for (int i: answers.keySet()) {\r\n if (\"\".equals(answers.get(i))) {\r\n throw new SurveyEngineException(\"Answer for a question is empty or null\");\r\n }\r\n } \r\n }", "@Test\n public void h_qcStatementsEdit() {\n webDriver.findElement(By.id(\"cpf:checkpkixqcsyntaxv2\")).click();\n webDriver.findElement(By.id(\"cpf:textfieldqcsemanticsid\")).sendKeys(\"text\");\n webDriver.findElement(By.id(\"cpf:textfieldqcstatementraname\")).sendKeys(\"text\");\n webDriver.findElement(By.id(\"cpf:checkqcetsiqcompliance\")).click();\n webDriver.findElement(By.id(\"cpf:checkqcetsisignaturedevice\")).click();\n webDriver.findElement(By.id(\"cpf:checkqcetsivaluelimit\")).click();\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimitcur\")).clear();\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimitcur\")).sendKeys(\"text\");\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimit\")).clear();\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimit\")).sendKeys(\"text\");\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimitexp\")).clear();\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimitexp\")).sendKeys(\"text\");\n webDriver.findElement(By.id(\"cpf:checkqcetsiretentionperiod\")).click();\n\n // Check that two errors appear\n assertEquals(\"Expected 2 error messages\", 2,\n webDriver.findElements(By.xpath(\"//td[contains(text(), 'Only decimal numbers are allowed in ETSI Value Limit Amount and Exponent fields.')]\")).size());\n\n // Clear invalid fields and keep doing clicky stuff\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimitcur\")).clear();\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimit\")).clear();\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimitexp\")).clear();\n webDriver.findElement(By.id(\"cpf:checkqcetsiretentionperiod\")).click();\n webDriver.findElement(By.id(\"cpf:checkqccustomstring\")).click();\n webDriver.findElement(By.id(\"cpf:textfieldqccustomstringtext\")).sendKeys(\"text\");\n CertificateProfileHelper.save(webDriver, true);\n }", "UserPayment validate(String cardHolderName,String cardType,String securityCode,String paymentType);", "public void validateRpd3s6()\n {\n // This guideline cannot be automatically tested.\n }", "@Test\n public void test() {\n\t \n String obj1 = \"EMP201\"; \n String obj3 = \"Jackson\";\n String obj5 = \"Bond\";\n String obj7 = \"01/21/1989\";\n String obj9 = \"Male\";\n String obj11= \"[email protected]\";\n String obj13 = \"Male\";\n String obj16= \"0172345658\";\n String obj17= \"H.N0 34,Jack Street,Malaysia\";\n String obj19= \"Developer\";\n String obj21= \"ICT\";\n String obj23= \"6000\";\n String obj25=\"02/21/2004\";\n\n /* Error When User enter some other form of value or \n * submit page without any parameter*/\n\n String obj2 = \"EMP201\";\n String obj4 = \"Jackson\";\n String obj6 = \"Bond\";\n String obj8 = \"01/21/1989\";\n String obj10 = \"Male\";\n String obj12= \"[email protected]\";\n /*String obj12= \"jackso.com\";*/\n String obj14 = \"Male\";\n String obj15= \"0172345658\";\n /* String obj15= \"\";*/\n String obj18 = \"H.N0 34,Jack Street,Malaysia\";\n String obj20= \"Developer\";\n String obj22 = \"ICT\";\n /*int obj22 = 22;*/\n String obj24= \"6000\";\n String obj26=\"02/21/2004\";\n \n /*Testing paramter when entering values are in correct form*/\n /*assertEquals(obj1, obj2);*/\n assertEquals(obj3, obj4);\n assertEquals(obj5, obj6);\n assertEquals(obj7, obj8);\n assertEquals(obj9, obj10);\n assertEquals(obj11, obj12);\n assertEquals(obj13, obj14);\n assertEquals(obj15, obj16);\n assertEquals(obj17, obj18);\n assertEquals(obj19, obj20);\n assertEquals(obj21, obj22);\n assertEquals(obj23, obj24);\n assertEquals(obj25, obj26); \n \n /*assertNull(obj15);*/\n \n \n \n\n }", "public boolean isValid() {\r\n/* */ try {\r\n/* 326 */ validate();\r\n/* 327 */ } catch (ValidationException vex) {\r\n/* 328 */ return false;\r\n/* */ } \r\n/* 330 */ return true;\r\n/* */ }", "public void SpecialRateplan_Validation() throws InterruptedException\r\n\t{\r\n\t\tThread.sleep(3000);\r\n\r\n\t\tExplicitWait(Offercode);\r\n\t\tint No_of_offercdes=SpecialRateplans.size();\r\n\t\t//System.out.println(No_of_offercdes+\" offer codes are available\");\r\n\t\tfor(int i=1;i<=No_of_offercdes;i++)\r\n\t\t{\r\n\r\n\t\t\t//Confirms the xpath being used actually works \r\n\t\t\tWebElement Specialrateplan= SeleniumRepo.driver.findElement(By.xpath(\"(//input[@class='custom-radio-checkbox ng-isolate-scope none-outline']/..)[\"+i+\"]\"));\r\n\r\n\t\t\tif(Specialrateplan.isDisplayed())\r\n\t\t\t{\t\r\n\t\t\t\tString offercode=Specialrateplan.getText();\r\n\t\t\t\t////System.out.println(offercode);\r\n\t\t\t\t//System.out.println(\"Offer code present at \"+i+\" radio button SPECIAL RATES & OFFER CODE is \"+offercode);\r\n\t\t\t\ttest.log(Status.INFO, \"Obtained text is displayed successfully\");\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setDataValidation(String dataValidation);", "private void validateFunctionData(FunctionData functionData) throws EQException\n\t{\n\t\tFunctionValidate functionValidate = new FunctionValidate(fhd, screenSetPrint, functionData);\n\t\tfunctionValidate.setHaltOnError(false);\n\t\tfunctionValidate.setDefaultValues(false);\n\t\tfunctionValidate.setApplicationValidate(false);\n\t\tfunctionValidate.validate();\n\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyfiftyAcctsviewValidatation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether proper error message is diplayed when accounts added more than 50 on clicking the confirm button\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvManageView\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ManageViews()\n\t\t.FiftyAcctsViewnameErrorValidation(userProfile); \t \t\t\t\t\t\t \t \t\t\t \t \t \t\t\t\t\t\t \t \t\t\n\t}", "private boolean checkInputFields(){\r\n\t\tString allertMsg = \"Invalid input: \" + System.getProperty(\"line.separator\");\r\n\t\t\r\n\t\t//Check input for MCS text field\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_MCSTf.getText());\r\n\t\t\tif(testValue < 0 || testValue > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a number between 0 and 1 as a MCS score.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for relevance score weight and coherence score weight text fields\r\n\t\ttry{\r\n\t\t\tFloat relScoreW = Float.parseFloat(m_RelScoreTf.getText());\r\n\t\t\tFloat cohScoreW = Float.parseFloat(m_CohScoreTf.getText());\r\n\t\t\tif(relScoreW < 0 || relScoreW > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t\tif(cohScoreW < 0 || cohScoreW > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t\tif((relScoreW + cohScoreW) != 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a number between 0 and 1 as a weight for relevance and coherence score.\" + System.getProperty(\"line.separator\");\r\n\t\t\tallertMsg += \"Sum of the weights for relevance and coherence score must be 1.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for MCS text field\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_KeyTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as multiplier for keyword concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for category confidence weight\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_CatConfTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as a weight for the weight of the category confidence of concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for weight of repeated concepts\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_RepeatTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as a weight for repeated concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for number of output categories\r\n\t\ttry{\r\n\t\t\tInteger testValue = Integer.parseInt(m_MaxCatsTf.getText());\r\n\t\t\tif(testValue < 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number for the maximum number of output categories.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tInteger testValue = Integer.parseInt(m_MinCatsTf.getText());\r\n\t\t\tif(testValue < 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number for the minimum number of output categories.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_MinCatScoreTf.getText());\r\n\t\t\tif(testValue < 0.0f || testValue > 1.0f)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number between 0 and 1 as minimum category score.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\tif(allertMsg.length() > 18){\r\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\talert.setContentText(allertMsg);\r\n\t\t\talert.showAndWait();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static void main(String[] args){\n\tValidateUser first =(String Fname) -> {\n\t\tif(Pattern.matches(\"[A-Z]{1}[a-z]{2,}\",Fname))\n\t\t\tSystem.out.println(\"First Name Validate\");\n\t\t\telse \n\t\t\tSystem.out.println(\"Invalid Name, Try again\");\n\t}; \n\t//Lambda expression for Validate User Last Name\n\tValidateUser last =(String Lname) -> {\n\t\tif(Pattern.matches(\"[A-Z]{1}[a-z]{2,}\",Lname))\n\t\t\tSystem.out.println(\"Last Name Validate\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Last Name, Try again\");\n\t};\n\t//Lambda expression for Validate User Email\n\tValidateUser Email =(String email) -> {\n\t\tif(Pattern.matches(\"^[\\\\w-\\\\+]+(\\\\.[\\\\w]+)*@[\\\\w-]+(\\\\.[\\\\w]+)*(\\\\.[a-z]{2,})$\",email))\n\t\t\tSystem.out.println(\"email Validate\");\n\t\telse\n\t\t\tSystem.out.println(\"Invalid Email, Try again\");\n\t};\n\t//Lambda expression for Validate User Phone Number\n\tValidateUser Num =(String Number) -> {\n\t\tif(Pattern.matches(\"^[0-9]{2}[\\\\s][0-9]{10}\",Number))\n\t\t\tSystem.out.println(\"Phone Number Validate\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Number, Try Again\");\n\t};\n\t//Lambda expression for Validate User Password\n\tValidateUser Password =(String pass) -> {\n\t\tif(Pattern.matches(\"(?=.*[$#@!%^&*])(?=.*[0-9])(?=.*[A-Z]).{8,20}$\",pass))\n\t\t\tSystem.out.println(\"Password Validate\");\n\t\t\telse\n\t\t\tSystem.out.println(\"Invalid Password Try Again\");\n\t};\n\t\n\tfirst.CheckUser(\"Raghav\");\n\tlast.CheckUser(\"Shettay\");\n\tEmail.CheckUser(\"[email protected]\");\n\tNum.CheckUser(\"91 8998564522\");\n\tPassword.CheckUser(\"Abcd@321\");\n\t\n\t\n\t\n\t//Checking all Email's Sample Separately\n\tArrayList<String> emails = new ArrayList<String>();\n\t//Valid Email's\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\t\n\t//Invalid Email's\n\temails.add(\"[email protected]\");\n\temails.add(\"abc123@%*.com\");\n\t\n\tString regex=\"^[\\\\w-\\\\+]+(\\\\.[\\\\w]+)*@[\\\\w-]+(\\\\.[\\\\w]+)*(\\\\.[a-z]{2,})$\";\n\t\n\tPattern pattern = Pattern.compile(regex);\n\t\n\tfor(String mail : emails) {\n\t\tMatcher matcher = pattern.matcher(mail);\n\t System.out.println(mail +\" : \"+ matcher.matches());\n\t}\n \n}", "private void validatePurchaseOrder(MaintenanceRequest mrq) throws MalBusinessException{\n\t\tArrayList<String> messages = new ArrayList<String>();\n\t\tBigDecimal amount = new BigDecimal(0.00);\n\t\t\t\t\n\t\t//Validate PO header required data\n\t\tif(MALUtilities.isEmptyString(mrq.getJobNo()))\n\t\t\tmessages.add(\"Job No. is required\");\n\t\tif(MALUtilities.isEmptyString(mrq.getMaintReqStatus()))\n\t\t\tmessages.add(\"PO Status is required\");\n\t\tif(MALUtilities.isEmptyString(mrq.getMaintReqType()))\n\t\t\tmessages.add(\"PO Type is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getCurrentOdo()))\n\t\t\tmessages.add(\"Odo is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getActualStartDate()))\n\t\t\tmessages.add(\"Actual Start Date is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getPlannedEndDate()))\n\t\t\tmessages.add(\"End date is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getServiceProvider()))\n\t\t\tmessages.add(\"Service Provider is required\");\n\t\t/* TODO Need to determine if this check is necessary. We do not have a hard requirement for this.\n\t\tif(!MALUtilities.isEmpty(po.getServiceProvider()) \n\t\t\t\t&& (!MALUtilities.convertYNToBoolean(po.getServiceProvider().getNetworkVendor()) \n\t\t\t\t\t\t&& this.calculateMarkUp(po).compareTo(new BigDecimal(0.00)) < 1))\n\t\t\tmessages.add(\"Mark Up is required for out of network service providers\");\n\t */\n\t\t\n\t\t//Validate PO Line items (tasks) required data\n\t\tif(!MALUtilities.isEmpty(mrq.getMaintenanceRequestTasks())){\n\t\t\tfor(MaintenanceRequestTask line : mrq.getMaintenanceRequestTasks()){\n\t\t\t\tif(MALUtilities.isEmptyString(line.getMaintCatCode()))\n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Maint Category is required\");\n\t\t\t\tif(MALUtilities.isEmpty(line.getTaskQty()))\n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Qty is required\");\n\t\t\t\tif(MALUtilities.isEmpty(line.getUnitCost()))\n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Unit Price is required\");\n\t\t\t\tif(MALUtilities.isEmpty(line.getTotalCost())) \n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Total Amount is required\");\t\t\t\t\t\t\t\t\n\t\t\t\tif(!(MALUtilities.isEmpty(line.getTaskQty()) && MALUtilities.isEmpty(line.getUnitCost()))){\n\t\t\t\t\tamount = line.getUnitCost().multiply(line.getTaskQty()).setScale(2, BigDecimal.ROUND_HALF_UP); \n\t\t\t\t\tif( amount.compareTo(line.getTotalCost().setScale(2, BigDecimal.ROUND_HALF_UP)) != 0)\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Total amount is incorrect\");\t\t\t\t\t\t\t\n\t\t\t\t}\t\n/** TODO This will not work well with goodwill POs as the user will not have the changes to add cost avoidance data to subsequent lines.\t\t\t\t\n\t\t\t\tif(mrq.isGoodwillIndicator() && line.isCostAvoidanceIndicator()){\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceCode()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Reason is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceAmount()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Amount is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getGoodwillReason()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Goodwill Reason is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getGoodwillCost()) || line.getGoodwillCost().compareTo(new BigDecimal(0)) < 1)\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Goodwill Amount is required\");\t\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getGoodwillPercent()) || line.getGoodwillPercent().compareTo(new BigDecimal(0)) < 1)\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Goodwill Percent is required\");\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!mrq.isGoodwillIndicator() && line.isCostAvoidanceIndicator()){\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceCode()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Reason is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceAmount()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Amount is required\");\t\t\t\t\t\n\t\t\t\t}\n*/\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(messages.size() > 0)\n\t\t\tthrow new MalBusinessException(\"service.validation\", messages.toArray(new String[messages.size()]));\t\t\n\t\t\n\t}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void TitileFieldErrorValidation(){\t\t\t \n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verify the functionality of Title drop down and its appropriate error messages\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRElectricityUserforsingleMeter\");\n\tnew SubmitMeterReadAction()\n\t.openSMRpage(\"Electricity\")\n\t.verifyAndValidateSMRTitleFieldContent(smrProfile); \n}", "public void validateSchedular() {\n boolean startDateCheck = false, cronTimeCheck = false, dateFormatCheck = false;\n /*\n Schedular Properties\n */\n\n System.out.println(\"Date: \" + startDate.getValue());\n if (startDate.getValue() != null) {\n System.out.println(\"Date: \" + startDate.getValue());\n startDateCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Start Date should not be empty.\\n\");\n }\n\n if (!cronTime.getText().isEmpty()) {\n cronTimeCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Cron Time should not be empty.\\n\");\n }\n// if (!dateFormat.getText().isEmpty()) {\n// dateFormatCheck = true;\n// } else {\n// execptionData.append((++exceptionCount) + \". Date Format should not be empty.\\n\");\n// }\n\n if (startDateCheck == true && cronTimeCheck == true) {\n schedularCheck = true;\n } else {\n schedularCheck = false;\n startDateCheck = false;\n cronTimeCheck = false;\n dateFormatCheck = false;\n }\n\n }", "public void validateRpd11s9()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd3s7()\n {\n // This guideline cannot be automatically tested.\n }", "private boolean checkValidations() {\n if (TextUtils.isEmpty(etFirstName.getText().toString().trim())) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.empty_name_war));\n return false;\n } else if (etPhoneNo.getText().length() > 0 && etPhoneNo.getText().toString().trim().length() < 7) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.valid_mo_no_war));\n return false;\n }\n /*else if (TextUtils.isEmpty(etAdress.getText().toString().trim())) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.empty_address_war));\n return false;\n } else if (countryId==null || countryId.equals(\"\")) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.country_war));\n return false;\n } else if (stateId==null || stateId.equals(\"\")) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.state_war));\n return false;\n }*/ /*else if (cityId==null || cityId.equals(\"\")) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.city_war));\n return false;\n }*/\n else\n return true;\n }", "public boolean isValidPart() {\n boolean result = false;\n boolean isComplete = !partPrice.getText().equals(\"\")\n && !partName.getText().equals(\"\")\n && !inventoryCount.getText().equals(\"\")\n && !partId.getText().equals(\"\")\n && !maximumInventory.getText().equals(\"\")\n && !minimumInventory.getText().equals(\"\")\n && !variableTextField.getText().equals(\"\");\n boolean isValidPrice = isDoubleValid(partPrice);\n boolean isValidName = isCSVTextValid(partName);\n boolean isValidId = isIntegerValid(partId);\n boolean isValidMax = isIntegerValid(maximumInventory);\n boolean isValidMin = isIntegerValid(minimumInventory);\n boolean isMinLessThanMax = false;\n if (isComplete)\n isMinLessThanMax = Integer.parseInt(maximumInventory.getText()) > Integer.parseInt(minimumInventory.getText());\n\n if (!isComplete) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Missing Information\");\n errorMessage.setHeaderText(\"You didn't enter required information!\");\n errorMessage.setContentText(\"All fields are required! Your part has not been saved. Press \\\"OK\\\" and try again.\");\n errorMessage.show();\n } else if (!isMinLessThanMax) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Invalid Entry\");\n errorMessage.setHeaderText(\"Min must be less than Max!\");\n errorMessage.setContentText(\"Re-enter your data! Your part has not been saved.Press \\\"OK\\\" and try again.\");\n errorMessage.show();\n } else if (!isValidPrice) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Price is not valid\");\n errorMessage.setHeaderText(\"The value you entered for price is not valid\");\n errorMessage.setContentText(\"Please ensure that the value you have entered does\" +\n \" not include more than one decimal point (.), does not contain any letters, and does not \" +\n \"have more than two digits after the decimal. \");\n errorMessage.show();\n } else if (!isValidName) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Invalid Name\");\n errorMessage.setHeaderText(\"The value you entered for name is not valid.\");\n errorMessage.setContentText(\"Please ensure that the text you enter does not\" +\n \" include any quotation marks,\" +\n \"(\\\"), or commas (,).\");\n errorMessage.show();\n } else if (!isValidId) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Incorrect ID\");\n errorMessage.setHeaderText(\"The value you entered for ID is not valid\");\n errorMessage.setContentText(\"Please ensure that the value you have entered\" +\n \" is a whole number, with no letters, symbols or decimal points. \");\n errorMessage.show();\n } else if (!isValidMax) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Incorrect Max Inventory\");\n errorMessage.setHeaderText(\"The value you entered for Max is not valid\");\n errorMessage.setContentText(\"Please ensure that the value you have entered\" +\n \" is a whole number, with no letters, symbols or decimal points. \");\n errorMessage.show();\n } else if (!isValidMin) {\n Alert errorMessage = new Alert(Alert.AlertType.INFORMATION);\n errorMessage.setTitle(\"Incorrect Min Inventory\");\n errorMessage.setHeaderText(\"The value you entered for Min is not valid\");\n errorMessage.setContentText(\"Please ensure that the value you have entered\" +\n \" is a whole number, with no letters, symbols or decimal points. \");\n errorMessage.show();\n } else {\n result = true;\n }\n\n return result;\n }", "public void validateRpd11s3()\n {\n // This guideline cannot be automatically tested.\n }", "private void validateUpdateCustomer(CustomersInputDTO inputData, String formatDate) {\n List<Map<String, Object>> listValidate = new ArrayList<>();\n if (inputData == null) {\n throw new CustomRestException(ConstantsCustomers.MSG_PARAMETER_VALUE_INVALID,\n CommonUtils.putError(\"inputData\", Constants.RIQUIRED_CODE));\n }\n Long customerId = inputData.getCustomerId();\n if (inputData.getCustomerId() == null) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.CUSTOMER_ID, Constants.RIQUIRED_CODE));\n }\n // 1.2 Validate parent relation\n if (inputData.getParentId() != null && inputData.getParentId().longValue() > 0l) {\n if (!isSameParentId(customerId, inputData.getParentId())) {\n Long countRelParentId = customersRepository.countCustomerExistedWithParentId(inputData.getParentId(),\n customerId);\n if (ConstantsCustomers.NUMBER_CHECK_PARENT_ID.equals(countRelParentId)) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.CUSTOMER_PARENT,\n ConstantsCustomers.CUSTOMER_PARENT_INVAIL));\n }\n } else {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.CUSTOMER_PARENT,\n ConstantsCustomers.CUSTOMER_PARENT_INVAIL));\n }\n }\n // build map parameters\n CommonValidateJsonBuilder jsonBuilder = new CommonValidateJsonBuilder();\n String validateJson = jsonBuilder.build(FieldBelongEnum.CUSTOMER.getCode(), (Map<String, Object>) null,\n buildParamsValidateCustomersInput(inputData, jsonBuilder), formatDate);\n String token = SecurityUtils.getTokenValue().orElse(null);\n String tenantName = jwtTokenUtil.getTenantIdFromToken();\n listValidate.addAll(CustomersCommonUtil.validateCommon(validateJson, restOperationUtils, token, tenantName));\n if (!listValidate.isEmpty()) {\n throw new CustomRestException(ConstantsCustomers.VALIDATE_MSG_FAILED, listValidate);\n }\n }", "public void VerifyCustomeralsoViewedTitle(String Exptext){\r\n\t\tString[] ExpText = getValue(Exptext).split(\",\", 2);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Title with \"+ExpText+\" should be present in SKU Page\");\r\n\t\ttry{\r\n\t\t\tif(getAndVerifyTextfromList(locator_split(\"txtCustomeralsoOrdered\"), ExpText[1], Integer.valueOf(ExpText[0]))){\r\n\t\t\t\tSystem.out.println(ExpText[1]+\" is present\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- \"+ExpText[1]+\" is present in SKU Page\");\r\n\t\t\t} else{ \r\n\t\t\t\tthrow new Error(\"Actual Text: \"+ExpText[1]+\" is not present in SKU Page\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(NoSuchElementException e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- \"+elementProperties.getProperty(\"txtCustomeralsoOrdered\").toString() +\" is not Present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCustomeralsoOrdered\").toString()\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t\tcatch(Error Er){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Actual Text: \"+ExpText[1]+\" is not present in SKU Page\");\r\n\t\t\tthrow new Error(\"Expected text - '\"+ExpText[1]+\" and Actual Text : \"+getText(locator_split(\"txtCustomeralsoOrdered\"))+\" is not equal\");\r\n\t\t}\r\n\t}" ]
[ "0.6471008", "0.6441492", "0.6392627", "0.6392627", "0.63362134", "0.63252723", "0.62966293", "0.624039", "0.61814624", "0.616876", "0.6074127", "0.60643655", "0.6027238", "0.6018214", "0.5991649", "0.5986464", "0.59532773", "0.5932436", "0.5932436", "0.5932098", "0.5923798", "0.5923381", "0.5923273", "0.5915843", "0.5892255", "0.5881067", "0.58768886", "0.5872003", "0.5864757", "0.58554924", "0.58524454", "0.5844093", "0.5825509", "0.5820468", "0.58203226", "0.58167124", "0.5813843", "0.5811704", "0.580917", "0.57749116", "0.5762412", "0.5758459", "0.5749404", "0.5745935", "0.5741678", "0.5735707", "0.5724817", "0.5721022", "0.57158685", "0.571415", "0.57024115", "0.5697963", "0.5682176", "0.5681083", "0.56807", "0.56664056", "0.56606114", "0.5646709", "0.56392074", "0.5632833", "0.5630324", "0.56136143", "0.56097823", "0.5608625", "0.56016815", "0.5599698", "0.5597967", "0.55939037", "0.55931187", "0.5592812", "0.55896765", "0.5587622", "0.55801356", "0.55746543", "0.5572462", "0.5568289", "0.5566969", "0.556457", "0.55616945", "0.5561201", "0.55555296", "0.55526525", "0.55477095", "0.5546924", "0.5546057", "0.5528127", "0.55150706", "0.5513614", "0.55135214", "0.5511045", "0.55048716", "0.54940706", "0.5493892", "0.5475896", "0.54733104", "0.5473122", "0.5472278", "0.5470044", "0.5466239", "0.5462818" ]
0.6637797
0
Validation Functions Description : To validate the Security Answer of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:SecurityAnswer
public void validate_the_Security_Answer_of_Security_in_Customer_Tab(String SecurityAnswer)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Security Answer").replaceAll("M_InnerText", SecurityAnswer), "Security Answer - "+SecurityAnswer, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public boolean Validate() {\n String[] testArr = {titleTxf.getText(), fNameTxf.getText(), sNameTxf.getText(),\n initialTxf.getText(), hNumTxf.getText(), cNumTxf.getText(), emailTxf.getText(), idNumTxf.getText(),\n (String) maritalCbx.getSelectedItem(), \n resTxf1.getText() + \"\" + resTxf2.getText(), zipResTxf.getText(),postTxf1.getText() + \"\" + postTxf2.getText(),\n zipPostTxf.getText() };\n\n // verify user has entered data into required fields\n String inputTest = \"\";\n\n for (int i = 0; i < testArr.length; i++) {\n if (testArr[i].equals(inputTest)) {\n\n JOptionPane.showMessageDialog(rootPane, \"please fill in all required fields\", \"ERROR\", ERROR_MESSAGE);\n \n return false;\n \n\n }\n \n \n }\n //verify Home number\n if(hNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Home number\", \"ERROR\", ERROR_MESSAGE);\n errHNum.setText(\"!\");\n \n return false;\n }\n else{\n errHNum.setText(\"\");\n }\n //verify CellNo\n if(cNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Cellphone number\", \"ERROR\", ERROR_MESSAGE);\n errCNum.setText(\"!\");\n \n return false;\n \n }\n else{\n errCNum.setText(\"\");\n }\n //verify email\n String email =emailTxf.getText(); \n if(!email.contains(\"@\")|| !email.contains(\".\")){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild email address\", \"ERROR\", ERROR_MESSAGE);\n errEmail.setText(\"!\");\n return false;\n }\n else{\n errEmail.setText(\"\");\n }\n \n //verify ID No. (Local)\n String ID = idNumTxf.getText();\n if(ID.length()!=13){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild ID number\", \"ERROR\", ERROR_MESSAGE);\n errID.setText(\"!\");\n return false;\n }\n else{\n errID.setText(\"\");\n }\n \n if(zipResTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipRes.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipRes.setText(\"\");\n }\n if(zipPostTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipPost.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipPost.setText(\"\");\n }\n \n \n return true;\n\n }", "private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }", "private void validateData() {\n }", "@Test\r\n\tpublic void view3_COEs_table_data_validation()\r\n\t{\t\r\n\t\t//Key on which we have to validate other values.\r\n\t\tString key = \"Calls In Queue\";\r\n\t\t//Text on which we will fetch other tables columns\r\n\t\tString check_text = \"Agents\";\r\n\r\n\t\t//Initialize Elements of tables and their columns data.\r\n\t\t//Table 3 - Data .\r\n\t\tList<WebElement> data_of_table3 = driver.findElements(view3_COEs_table_data_val);\r\n\t\t//Table 3 - Columns\r\n\t\tList<WebElement> col_of_table3 = driver.findElements(By.xpath(view3_curr_agent_stats_col));\r\n\t\t//Table 1 - Data\r\n\t\tList<WebElement> updated_col_table1 = driver.findElements(view3_Current_table_data_val);\r\n\t\t//Table 1 - Colums\r\n\t\tList<WebElement> col_of_table1 = driver.findElements(By.xpath(view3_curr_data_table));\r\n\t\t\r\n\t\t//Adding Column data from another table.\r\n\t\tdata_of_table3 = helper.modify_cols_data_of_table(col_of_table1, data_of_table3, updated_col_table1 , check_text );\r\n\t\t//Validating N/A and integer for columns\r\n\t\thelper.data_validate_Down(driver, key , col_of_table3, data_of_table3 );\r\n\t}", "@Test\r\n\tpublic void view3_current_table_data_validation()\r\n\t{\t\r\n\t\t//Key on which we have to validate other values.\r\n\t\tString key = \"Calls In Queue\";\r\n\t\t//Text on which we will fetch other tables columns\r\n\t\tString check_text = \"Agents\";\r\n\r\n\t\t//Initialize Elements of tables and their columns data.\r\n\r\n\t\t//Table 1 - Data\r\n\t\tList<WebElement> data_of_table1 = driver.findElements(view3_Current_table_data_val);\r\n\t\t//Table 1 - Columns\r\n\t\tList<WebElement> col_of_table1 = driver.findElements(By.xpath(view3_curr_data_table));\r\n\t\t//Removing Column data from another table.\r\n\t\tdata_of_table1 = helper.modify_cols_data_of_table(col_of_table1, data_of_table1 , check_text );\r\n\t\t//Validating N/A and integer for columns\r\n\t\thelper.data_validate_Down(driver, key , col_of_table1, data_of_table1 );\r\n\t}", "@Test\r\n\tpublic void view3_todays_table_data_validation()\r\n\t{\t\r\n\t\t//Key on which we have to validate other values.\r\n\t\tString key = \"CML Service Level\";\r\n\r\n\t\t//Initialize Elements of tables and their columns data.\r\n\r\n\t\t//Table 1 - Data\r\n\t\tList<WebElement> data_of_table2 = driver.findElements(view3_todays_table_data_val);\r\n\t\t//Table 1 - Colums\r\n\t\tList<WebElement> col_of_table2 = driver.findElements(By.xpath(view3_today_data_table));\r\n\t\t//Validating N/A and integer for columns\r\n\t\thelper.data_validate_Down(driver, key , col_of_table2, data_of_table2 );\r\n\t}", "public void validate_the_Security_Question_of_Security_in_Customer_Tab(String SecurityQuestion)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll(\"M_Header\", \"Security\").replaceAll(\"M_Category\", \"Security Question\").replaceAll(\"M_InnerText\", SecurityQuestion), \"Security Question - \"+SecurityQuestion, false);\n\t}", "public PaymentRequestPage paymentRequestPaymentAvailabilityValidation(String cashbackType,String cashbackValue,String rewardsValue) {\r\n\r\n\t\tString actual = \"\";\r\n\r\n\t\treportStep(\"About to validate the Cashback and Rewards Payment avilablity section in the payment Request page \", \"INFO\");\r\n\r\n\t\tswitch (cashbackType) {\r\n\r\n\t\tcase \"Only_Cashback\":\r\n\r\n\t\t\tvalidateTheElementPresence(cashbackAvailableForPaymentText);\r\n\r\n\t\t\tactual = getText(totalcashbackAvailableForPaymentAmount);\r\n\r\n\t\t\tvalidateTheActualValueContainsExpectedValue(actual, cashbackValue);\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"Only_Rewards\":\r\n\r\n\t\t\tvalidateTheElementPresence(rewardsAvailableForPaymentText);\r\n\r\n\t\t\tactual = getText(totalcashbackAvailableForPaymentAmount);\r\n\r\n\t\t\tvalidateTheActualValueContainsExpectedValue(actual, rewardsValue);\r\n\r\n\t\t\tbreak;\r\n\r\n\r\n\t\tcase \"BothCashback_Rewards\":\r\n\r\n\t\t\tfloat cashbackAmount = Float.parseFloat(cashbackValue);\r\n\t\t\tfloat rewardsAmount = Float.parseFloat(rewardsValue);\r\n\t\t\tfloat totalAmount = cashbackAmount + rewardsAmount ;\r\n\r\n\t\t\tString strTotalAmount = Float.toString(totalAmount) + \"0\";\r\n\t\t\tString strOnlyCashbackAmount = Float.toString(cashbackAmount) + \"0\";\r\n\t\t\tString strOnlyRewardsAmount = Float.toString(rewardsAmount) + \"0\";\r\n\r\n\r\n\t\t\tvalidateTheElementPresence(rewardsAvailableForPaymentText);\r\n\t\t\tvalidateTheElementPresence(cashbackText);\r\n\t\t\tvalidateTheElementPresence(rewardsText);\r\n\r\n\t\t\t//validate total cashback amount\r\n\t\t\tactual = getText(totalcashbackAvailableForPaymentAmount);\r\n\t\t\tvalidateTheActualValueContainsExpectedValue(actual, strTotalAmount);\r\n\r\n\t\t\t//validate only cashback amount\r\n\t\t\tactual = getText(cashbackAvailableForPaymentAmount);\r\n\t\t\tvalidateTheActualValueContainsExpectedValue(actual, strOnlyCashbackAmount);\r\n\r\n\r\n\t\t\t//validate only rewards amount\r\n\t\t\tactual = getText(rewardsAvailableForPaymentAmount);\r\n\t\t\tvalidateTheActualValueContainsExpectedValue(actual, strOnlyRewardsAmount);\r\n\r\n\t\t\tbreak;\r\n\r\n\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\r\n\t}", "public void validateCreateCustomerAndTask() {\n\t\tAttSelectNewCustomerOptionFromListBox.click();\n\t\tAttCustomerNameTextBox.sendKeys(\"TestCust\");\n\t\tAttProjectNameTextBox.sendKeys(\"TestProject\");\n\t\tAttTaskNameTextBox.sendKeys(\"Tast1WCNP\");\n\t\tAttBudgetTimeTextBox.sendKeys(\"3:00\");\n\t\tAttEnterDateInDateField.sendKeys(Keys.ENTER,\"Jan 27, 2019\");\n\t\tAttSelectBillableBillingType.click();\n\t\tAttSelectCheckBoxMarkToBeAdd.click();\n\t\tAttCreateTaskBtn.click();\n\t}", "ValidationResponse validate();", "private void validateDetails() {\n\n clearErrors();\n Utils.hide_keyboard(getActivity());\n\n boolean valid = true;\n\n String cvv = cvvTv.getText().toString();\n String expiryDate = cardExpiryTv.getText().toString();\n String cardNo = cardNoTv.getText().toString();\n\n if (cvv.length() < 3) {\n valid = false;\n cvvTil.setError(\"Enter a valid cvv\");\n }\n\n if (expiryDate.length() != 5) {\n cardExpiryTil.setError(\"Enter a valid expiry date\");\n valid = false;\n }\n\n String cardNoStripped = cardNo.replaceAll(\"\\\\s\", \"\");\n\n if (cardNoStripped.length() < 12 ) {\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n else {\n try {\n Long parsed = Long.parseLong(cardNoStripped);\n }\n catch (Exception e) {\n e.printStackTrace();\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n }\n\n if (valid) {\n\n if (saveCardSwitch.isChecked()) {\n int cardLen = cardNoStripped.length();\n cardFirst6 = cardNoStripped.substring(0, 6);\n cardLast4 = cardNoStripped.substring(cardLen - 4, cardLen);\n shouldISaveThisCard = true;\n presenter.savePotentialCardDets(cardFirst6, cardLast4);\n }\n\n //make request\n PayloadBuilder builder = new PayloadBuilder();\n builder.setAmount(thetellerInitializer.getAmount() + \"\")\n .setNarration(thetellerInitializer.getNarration())\n .setCardno(cardNoStripped)\n .set3dUrl(thetellerInitializer.get3dUrl())\n .setEmail(thetellerInitializer.getEmail())\n .setCurrency(thetellerInitializer.getCurrency())\n .setMerchant_id(thetellerInitializer.getMerchant_id())\n .setCvv(cvv).setFirstname(thetellerInitializer.getfName())\n .setLastname(thetellerInitializer.getlName())\n .setIP(Utils.getDeviceImei(getActivity()))\n .setTxRef(thetellerInitializer.getTxRef())\n .setExpiryyear(expiryDate.substring(3,5))\n .setExpirymonth(expiryDate.substring(0,2))\n .setMeta(thetellerInitializer.getMeta())\n .setApiUser(thetellerInitializer.getApiUser())\n .setApiKey(thetellerInitializer.getApiKey())\n .setDevice_fingerprint(Utils.getDeviceImei(getActivity()))\n .setCardType(cardType);\n\n if (thetellerInitializer.getPayment_plan() != null) {\n builder.setPaymentPlan(thetellerInitializer.getPayment_plan());\n }\n\n body = builder.createPayload();\n\n presenter.chargeCard(body, thetellerConstants.API_KEY);\n }\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void EditViewLessthan15AcctsErrorValidation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether proper error message is displayed in view when continuing with out enabling the accounts check box\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvManageView\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t\t.clicktestacct();\n\t\t/*.ClickManageUserLink()\n\t\t.ManageViews()\n\t\t.VerifyEditviewname(userProfile)\n\t\t.EditViewNameErrorValidation(userProfile); \t \t\t\t\t\t\t \t \t\t\n\t}*/\n\t}", "@Test\n public void test10020ATS001ValidationofDatefieldsinPayHistory() throws Exception {\n driver.get(\"http://Clarity\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_UserNameTextBox\")).clear();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_UserNameTextBox\")).sendKeys(\"02.08.09\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_PasswordTextBox\")).clear();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_PasswordTextBox\")).sendKeys(\"password\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_LoginButton\")).click();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_btnLogin\")).click();\n //driver.findElement(By.linkText(\"Select\")).click();\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*How much is my pension[\\\\s\\\\S][\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).clear();\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).sendKeys(\"02/10/20\");\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*Start date is later than end date\\\\.[\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).clear();\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).sendKeys(\"25/07/2017\");\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).clear();\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate\")).clear();\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate\")).sendKeys(\"02/10/2\");\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).sendKeys(\"02/10/2\");\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton\")).click();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton']\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*End Date is not recognized as a valid date\\\\.[\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate']\")).clear();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate']\")).sendKeys(\"21221\\\"\\\"\\\"\");\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).clear();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).sendKeys(\"wewe\\\"\\\"\\\"\");\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton']\")).click();\n Thread.sleep(1000);\n //try {\n //assertTrue(driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDateTypeValidator\")).getText().matches(\"^exact:[\\\\s\\\\S]*$\"));\n //} catch (Error e) {\n // verificationErrors.append(e.toString());\n //}\n // ERROR: Caught exception [Error: locator strategy either id or name must be specified explicitly.]\n driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_LoginStatus\")).click();\n }", "UserPayment validate(String cardHolderName,String cardType,String securityCode,String paymentType);", "private boolean validateFields(){ \n ImplLogger.enterMethod(); \n StringBuffer validationMessage = new StringBuffer();\n boolean isValidationPassed = true;\n if(!ImplValidationUtils.isAlphaSpace(pharmaNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_NAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n pharmaNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n } \n if(!ImplValidationUtils.isAlphabetOnly(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplCommonUtil.isUserNameExist(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME_EXIST);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(contactTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_CONTACT);\n validationMessage.append(ImplConst.NEXT_LINE);\n contactTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(zipCodeTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_ZIPCODE);\n validationMessage.append(ImplConst.NEXT_LINE);\n zipCodeTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(passwordField.getText())){\n validationMessage.append(ImplConst.VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n passwordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n confirmPasswordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if (!ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText()) && !confirmPasswordField.getText().equals(passwordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n isValidationPassed = false; \n }\n if(!isValidationPassed){\n JOptionPane.showMessageDialog(null,validationMessage);\n } \n ImplLogger.exitMethod();\n return isValidationPassed;\n }", "public void validateRpd15s2()\n {\n // This guideline cannot be automatically tested.\n }", "public void validate() {}", "protected void validate(String operationType) throws Exception\r\n\t{\r\n\t\tsuper.validate(operationType);\r\n\r\n\t\tMPSString id_validator = new MPSString();\r\n\t\tid_validator.validate(operationType, id, \"\\\"id\\\"\");\r\n\t\t\r\n\t\tMPSBoolean secure_access_only_validator = new MPSBoolean();\r\n\t\tsecure_access_only_validator.validate(operationType, secure_access_only, \"\\\"secure_access_only\\\"\");\r\n\t\t\r\n\t\tMPSString svm_ns_comm_validator = new MPSString();\r\n\t\tsvm_ns_comm_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);\r\n\t\tsvm_ns_comm_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tsvm_ns_comm_validator.validate(operationType, svm_ns_comm, \"\\\"svm_ns_comm\\\"\");\r\n\t\t\r\n\t\tMPSString ns_br_interface_validator = new MPSString();\r\n\t\tns_br_interface_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);\r\n\t\tns_br_interface_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tns_br_interface_validator.validate(operationType, ns_br_interface, \"\\\"ns_br_interface\\\"\");\r\n\t\t\r\n\t\tMPSBoolean vm_auto_poweron_validator = new MPSBoolean();\r\n\t\tvm_auto_poweron_validator.validate(operationType, vm_auto_poweron, \"\\\"vm_auto_poweron\\\"\");\r\n\t\t\r\n\t\tMPSString ns_br_interface_2_validator = new MPSString();\r\n\t\tns_br_interface_2_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);\r\n\t\tns_br_interface_2_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tns_br_interface_2_validator.validate(operationType, ns_br_interface_2, \"\\\"ns_br_interface_2\\\"\");\r\n\t\t\r\n\t\tMPSInt init_status_validator = new MPSInt();\r\n\t\tinit_status_validator.validate(operationType, init_status, \"\\\"init_status\\\"\");\r\n\t\t\r\n\t}", "public void validateRpd13s6()\n {\n // This guideline cannot be automatically tested.\n }", "public void ValidationData() {\n try {\n ConnectionClass connectionClass = new ConnectionClass();\n connect = connectionClass.CONN();\n if (connect == null) {\n ConnectionResult = \"Check your Internet Connection\";\n } else {\n String query = \"Select No from machinestatustest where Line='\" + Line + \"' and Station = '\" + Station + \"'\";\n Statement stmt = connect.createStatement();\n ResultSet rs = stmt.executeQuery(query);\n if (rs.next()) {\n Validation = rs.getString(\"No\");\n }\n ConnectionResult = \"Successfull\";\n connect.close();\n }\n } catch (Exception ex) {\n ConnectionResult = ex.getMessage();\n }\n }", "public void validateRpd15s1()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd22s6()\n {\n // This guideline cannot be automatically tested.\n }", "void validate();", "void validate();", "public void validateRpd8s22()\n {\n // Duplicate of 8s14\n }", "public void validateRpd13s12()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s2()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd22s1()\n {\n // This guideline cannot be automatically tested.\n }", "public void SpecialRateplan_Validation() throws InterruptedException\r\n\t{\r\n\t\tThread.sleep(3000);\r\n\r\n\t\tExplicitWait(Offercode);\r\n\t\tint No_of_offercdes=SpecialRateplans.size();\r\n\t\t//System.out.println(No_of_offercdes+\" offer codes are available\");\r\n\t\tfor(int i=1;i<=No_of_offercdes;i++)\r\n\t\t{\r\n\r\n\t\t\t//Confirms the xpath being used actually works \r\n\t\t\tWebElement Specialrateplan= SeleniumRepo.driver.findElement(By.xpath(\"(//input[@class='custom-radio-checkbox ng-isolate-scope none-outline']/..)[\"+i+\"]\"));\r\n\r\n\t\t\tif(Specialrateplan.isDisplayed())\r\n\t\t\t{\t\r\n\t\t\t\tString offercode=Specialrateplan.getText();\r\n\t\t\t\t////System.out.println(offercode);\r\n\t\t\t\t//System.out.println(\"Offer code present at \"+i+\" radio button SPECIAL RATES & OFFER CODE is \"+offercode);\r\n\t\t\t\ttest.log(Status.INFO, \"Obtained text is displayed successfully\");\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void validateRpd11s6()\n {\n // This guideline cannot be automatically tested.\n }", "private boolean tableDataValid()\r\n {\r\n // if there are any form level validations that should go there\r\n int rowTotal = tblProtoCorresp.getRowCount();\r\n int colTotal = tblProtoCorresp.getColumnCount();\r\n for (int rowIndex = 0; rowIndex < rowTotal ; rowIndex++)\r\n {\r\n for (int colIndex = 0; colIndex < colTotal; colIndex++)\r\n {\r\n TableColumn column = codeTableColumnModel.getColumn(colIndex) ;\r\n\r\n ColumnBean columnBean = (ColumnBean)column.getIdentifier() ;\r\n\r\n if (columnBean.getColumnEditable()\r\n && !columnBean.getColumnCanBeNull())\r\n {\r\n if ( tblProtoCorresp.getValueAt(rowIndex,colIndex) != null)\r\n {\r\n if (tblProtoCorresp.getValueAt(rowIndex,colIndex).equals(\"\")\r\n || tblProtoCorresp.getValueAt(rowIndex,colIndex).toString().trim().equals(\"\") )\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"checkInputValue_exceptionCode.2402\");\r\n String msgColName = \" \" + columnBean.getDisplayName() + \". \";\r\n CoeusOptionPane.showInfoDialog(msg + msgColName);\r\n tblProtoCorresp.changeSelection(rowIndex, colIndex, false, false) ;\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"checkInputValue_exceptionCode.2402\");\r\n\r\n String msgColName = \" \" + columnBean.getDisplayName() + \". \";\r\n CoeusOptionPane.showInfoDialog(msg + msgColName);\r\n tblProtoCorresp.changeSelection(rowIndex, colIndex, false, false) ;\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n }\r\n return true ;\r\n }", "private boolean validate(){\n return EditorUtils.editTextValidator(generalnformation,etGeneralnformation,\"Type in information\") &&\n EditorUtils.editTextValidator(symptoms,etSymptoms, \"Type in symptoms\") &&\n EditorUtils.editTextValidator(management,etManagement, \"Type in management\");\n }", "public void validateRpd13s11()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd11s1()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s7()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd15s7()\n {\n // This guideline cannot be automatically tested.\n }", "public void VerifyRecapBillinfo(){\r\n\t\tString BillingName = getValue(\"FirstName\")+\" \"+getValue(\"LastName\");\r\n\t\tString Companyname = getValue(\"CompanyName\");\r\n\t\tString Address = getValue(\"Address\");\r\n\t\tString ZipCity = getValue(\"Zip\")+\" , \"+getValue(\"City\");\r\n\t\tString CardType= getValue(\"CardType\");\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- shopping cart image link should be clicked\");\r\n\r\n\r\n\t\ttry{\r\n\t\t\tString[] BD=getWebTableData(locator_split(\"txtRecapBillinfo\"), locator_split(\"txtRecapBillinfodata\"));\r\n\t\t\tif(BD[1].equalsIgnoreCase(BillingName)&&BD[2].equalsIgnoreCase(Companyname)\r\n\t\t\t\t\t&&BD[3].equalsIgnoreCase(Address)&&BD[5].equalsIgnoreCase(ZipCity)\r\n\t\t\t\t\t&&BD[6].contains(CardType)){\r\n\t\t\t\tSystem.out.println(\"The data from Web matches with Excel Registration data\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- The data from Web matches with Excel Registration data\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tReporter.log(\"FAIL_MESSAGE:- The data from Web dosent match with Excel Registration data\");\r\n\t\t\t\tthrow new Exception(\"The data from Web dosent match with Excel Registration data\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- shopping cart image link is not clicked \");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtRecapBillinfo\")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtRecapBillinfodata\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public void validate(){\r\n\t\ttry{\r\n\t\t\t//First name, last name, date of birth and email are compulsory.\r\n\t\tif(FirstName==null||LastName==null||Dob==null||Email==null) \r\n\t\t\tthrow new Exception(\"One of the field is Empty :\\n(First name / last name / dob / email )\");\r\n\t\tif(TelephoneNumber!=0||MobileNumber!=0)\r\n\t\t\tthrow new Exception(\"Enter Contact Number\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\t/*finally{\r\n\t\t\tSystem.out.println(\"Program Executed\");\r\n\t\t}*/\r\n\t}", "private void validation() {\n Pattern pattern = validationfilterStringData();\n if (pattern.matcher(txtDrug.getText().trim()).matches() && pattern.matcher(txtGenericName.getText().trim()).matches()) {\n try {\n TblTreatmentadvise treatmentadvise = new TblTreatmentadvise();\n treatmentadvise.setDrugname(txtDrug.getText());\n treatmentadvise.setGenericname(txtGenericName.getText());\n treatmentadvise.setTiming(cmbDosestiming.getSelectedItem().toString());\n cmbtiming.setSelectedItem(cmbDosestiming);\n treatmentadvise.setDoses(loadcomboDoses());\n treatmentadvise.setDuration(loadcomboDuration());\n PatientService.saveEntity(treatmentadvise);\n JOptionPane.showMessageDialog(this, \"SAVE SUCCESSFULLY\");\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, \"STARTUP THE DATABASE CONNECTION\");\n }\n } else {\n JOptionPane.showMessageDialog(this, \"WRONG DATA ENTERED.\");\n }\n }", "private void validate() {\n\t\t// just in case;\n\t\tfor (int i=0;i<NR_OF_FIELDS; i++) {\n\t\t\tvalid[i] = \"0\";\n\t\t}\n\t\t//\n\t\t// Validate name and surname:\n\t\t//\n\t\tif ( ! this.isUpperAlpha(nume)) {\n\t\t\tfields[0] = \"1\";\n\t\t}\n\t\t\n\t\tif ( ! this.isUpperAlphaWithSpace(nume)) {\n\t\t\tfields[1] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate seria\n\t\t//\n\t\tvalid[2] = \"1\";\t\t\t\t\t\t\t// presupun ca seria este invalida, si incerc sa o validez\n\t\tfor (int i=0; i<seriiBuletin.length; i++) {\n\t\t\tif (seriiBuletin[i].equals(seria)) {\n\t\t\t\tvalid[2] = \"0\";\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// validate numarul\n\t\t//\n\t\ttry {\n\t\t\tvalid[3] = \"1\";\n\t\t\tint nr = Integer.valueOf(numarul);\n\t\t\tif ( nr >= 100000 && nr <= 999999 ) {\n\t\t\t\tvalid[3] = \"0\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.d(TAG, \"Error validating seria.\");\n\t\t}\n\n\t\t//\n\t\t// validate sex\n\t\t//\n\t\tif ( ! (sex == 'M' || sex == 'F')) {\n\t\t\tvalid[6] = \"1\";\n\t\t}\n\t\t//\n\t\t// Validate valabilitate\n\t\t//\n\t\tif ( ! isNumber(this.valabilitate)) {\n\t\t\tvalid[7] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate CNP\n\t\t//\n\t\tif ( ! (isNumber(CNP) && isValidCNP(CNP))) {\n\t\t\tvalid[8] = \"1\";\n\t\t}\n\t\t\n\t}", "private boolean validateInput(){\n Window owner=root.getScene().getWindow();\n inputFileds.addAll(txtfn,txtln,txtsurname,txtDOB,txtResidence,txtMobile,txtID,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().isEmpty()){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n inputFileds.removeAll(txtDOB,txtMobile,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().length()>30){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Sorry the text you entered can not be greater that 30 characters\",\"Text too Long\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n if(username.getText().length()>20 || username.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Username has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid input\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n if(pass.getText().isEmpty()){\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n if(pass.getText().length()>20 || pass.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Password has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n SimpleDateFormat yearFormat = new SimpleDateFormat(\"yyyy\");\n try {\n date = dateFormat.parse(txtDOB.getText());\n Calendar cal=Calendar.getInstance();\n int year=Integer.parseInt(yearFormat.format(date));\n if (year <= 1900 || year>cal.get(Calendar.YEAR)) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n String initialEntry=txtDOB.getText();\n String parsedValue=dateFormat.format(date);\n if(!initialEntry.equals(parsedValue)){\n Dialog.showMessageDialog(owner, \"Note your Date of Birth has been corrected\", \"Date Corrected\",DialogIcon.INFORMATION);\n }\n txtDOB.setText(dateFormat.format(date));\n } catch (ParseException ex) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n try {\n int mobile=Integer.parseInt(txtMobile.getText());\n } catch (NumberFormatException e) {\n Dialog.showMessageDialog(owner, \"Invalid Mobile Number\", \"Invalid data\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n if(txtMobile.getText().length() != 10){\n Dialog.showMessageDialog(owner, \"Sorry your Mobile Number is invalid\", \"Invalid input\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n String sql=\"select Username,Password from users where Username=?\";\n try(PreparedStatement prstmt=con.prepareStatement(sql)) {\n prstmt.setString(1, username.getText());\n ResultSet rs=prstmt.executeQuery();\n if(rs.next()){\n Dialog.showMessageDialog(owner, \"Sorry Username already exists\\n Please change to different Username\", \"Username Exists\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n rs.close();\n } catch (SQLException e) {\n System.err.println(e);\n }\n return true;\n }", "public void validateRpd14s1()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd22s7()\n {\n // This guideline cannot be automatically tested.\n }", "public void interestRate_Validation() {\n\t\thelper.assertString(interestRate_AftrLogin(), payOffOffer.interestRate_BfrLogin());\n\t\tSystem.out.print(\"The Interest Rate is: \" + interestRate_AftrLogin());\n\t}", "public void validateRpd13s15()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s9()\n {\n // This guideline cannot be automatically tested.\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyfiftyAcctsviewValidatation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether proper error message is diplayed when accounts added more than 50 on clicking the confirm button\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvManageView\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ManageViews()\n\t\t.FiftyAcctsViewnameErrorValidation(userProfile); \t \t\t\t\t\t\t \t \t\t\t \t \t \t\t\t\t\t\t \t \t\t\n\t}", "public void validateRpd22s9()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd22s5()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd3s12()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd15s4()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd22s4()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s8()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s17()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd11s7()\n {\n // This guideline cannot be automatically tested.\n }", "@Then(\"^Validate the fields present in the result page$\") // Move to UserStep Definition\r\n\tpublic void attribute_validation(){\r\n\t\tenduser.attri_field();\r\n\t}", "public int ValidateAndGetSupplierFields()\n {\n int error = 0;\n \n if(txtSuplId.getText() == null || txtSuplId.getText().equals(\"\")) \n {\n saveSupl.setSupplId(Integer.valueOf(\"0\"));\n }else\n {\n saveSupl.setSupplId(Integer.valueOf(txtSuplId.getText())); //pk - not expected to be null!\n }\n \n if(!ValidateFields.validateStringCharTextField(txtSuplCode.getText())) \n {\n error++;\n txtSuplCode.requestFocus();\n txtSuplCode.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_CODE);\n return error;\n }else\n {\n txtSuplCode.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSupplCode(txtSuplCode.getText()); //Save the value to supplier object\n }\n \n if(!ValidateFields.validateStringCharTextField(txtSuplContact.getText())) \n {\n error++;\n txtSuplContact.requestFocus();\n txtSuplContact.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_CONTACT);\n return error;\n }else\n {\n txtSuplContact.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplContact(txtSuplContact.getText()); //Save the value to supplier object\n }\n \n \n if(!ValidateFields.validatePhoneNumberTextField(txtSuplTel.getText())) \n {\n error++;\n txtSuplTel.requestFocus();\n txtSuplTel.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_TEL);\n return error;\n }else\n {\n txtSuplTel.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplTel(txtSuplTel.getText()); //save the value\n }\n \n if(!ValidateFields.validatePhoneNumberTextField(txtSuplCell.getText())) \n {\n error++;\n txtSuplCell.requestFocus();\n txtSuplCell.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_TEL);\n return error;\n }else\n {\n txtSuplCell.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplCell(txtSuplCell.getText()); //save the value\n }\n \n if(!ValidateFields.validatePhoneNumberTextField(txtSuplFax.getText())) \n {\n error++;\n txtSuplFax.requestFocus();\n txtSuplFax.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_FAX);\n return error;\n }else\n {\n txtSuplFax.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplFax(txtSuplFax.getText()); //save the value\n }\n \n if(!ValidateFields.validateEmailTextField(txtSuplEmail.getText())) \n {\n error++;\n txtSuplEmail.requestFocus();\n txtSuplEmail.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_EMAIL);\n return error;\n }else\n {\n txtSuplEmail.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplEmail(txtSuplEmail.getText()); //save the value\n }\n \n if(!ValidateFields.validateStringCharTextField(txtSuplBank.getText())) \n {\n error++;\n txtSuplBank.requestFocus();\n txtSuplBank.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_BANK);\n return error;\n }else\n {\n txtSuplBank.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplBank(txtSuplBank.getText()); //save the value\n }\n \n if(!ValidateFields.validateIntegerNumberTextField(txtSuplBranchCode.getText())) \n {\n error++;\n txtSuplBranchCode.requestFocus();\n txtSuplBranchCode.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_BRANCH_CODE);\n return error;\n }else\n {\n txtSuplBranchCode.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplBranchCode(Integer.valueOf(txtSuplBranchCode.getText())); //save the value\n }\n \n if(!ValidateFields.validateIntegerNumberTextField(txtSuplAccNum.getText())) \n {\n error++;\n txtSuplAccNum.requestFocus();\n txtSuplAccNum.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_ACC);\n return error;\n }else\n {\n txtSuplAccNum.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplAccNum(Integer.valueOf(txtSuplAccNum.getText())); //Save the value to supplier object\n }\n \n if(!ValidateFields.validateStringCharTextField(txtSuplAccType.getText())) \n {\n error++;\n txtSuplAccType.requestFocus();\n txtSuplAccType.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLIER_ACC_TYPE);\n return error;\n }else\n {\n txtSuplAccType.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplAccType(txtSuplAccType.getText()); //save the value\n }\n \n if(!ValidateFields.validateStringCharTextField(txtSuplComments.getText())) \n {\n error++;\n txtSuplComments.requestFocus();\n txtSuplComments.setStyle(\"-fx-border-color: red;\");\n \n txtError.setText(ERR_SUPLEMENT_DESC);\n return error;\n }else\n {\n txtSuplComments.setStyle(\"-fx-border-color: transparent;\");\n txtError.setText(\"\");\n saveSupl.setSuplComments(txtSuplComments.getText()); //save the value\n }\n \n return error;\n }", "@Test\n public void verifyPost2Corporate_EVENT_TYPE_RULE()\n {\n\n String clauseStatement =\"EVENT_TYPE = 'C2CORP'\";\n\n //The aim is to use a List for each Event Types. Each Event Type Data should have its onw list\n //And on each Test below we will use the Lists accordingly\n objSUB_EVN_LIST_DATA = new T_C3D_SUBSCR_SUB_EVN_LIST_DATA(clauseStatement);\n objtestSUB_EVN_LIST = objSUB_EVN_LIST_DATA.getData();\n\n objSUB_ATR_LIST_DATA = new T_C3D_SUBSCR_SUB_ATR_LIST_DATA();\n objSUB_ATR_LIST = objSUB_ATR_LIST_DATA.getData();\n\n // Log the Start of the Test\n logger = report.startTest(\"EVENT_TYPE = DEAL_SWAP \",\n \"TO VERIFY THAT EVENT_TYPE ACT MANDATORY FIELDS ARE POPULATED WITH CORRECT DATA\");\n\n int numberOfSubsWithCorrectValues = 0;\n int numberOfSubsWithIncorrectValues= 0;\n int totalNumberOfSubs = 0;\n int failedSubs = 0;\n int passedSubs = 0;\n\n try {\n\n String busEventTypeStr = null;\n String eventDateStr = null;\n String eventTypeStr = null;\n String eventSubsId = null;\n String strCUSTOMER_ID = null;\n String strMSIN = null;\n String strICC_ID = null;\n Object PROFILE_START_DATE_VALUE = null;\n Object strPROFILE_END_DATE;\n String strSUBSCRIBER_ID;\n String strT11_MSISDN;\n String strEXTERNAL_ID;\n String strACTIVATION_DATE;\n String strEVENT_SEQ;\n String strCONNECTION_DATE;\n Object strDISCONNECTION_DATE;\n Object strEvent_Date;\n\n\n TRANSLATION_LAYER_MANDATORY_FIELDS Function = new TRANSLATION_LAYER_MANDATORY_FIELDS();\n\n for(T_C3D_SUBSCR_SUB_EVN_LIST objSUB_EVN_LIST : objtestSUB_EVN_LIST){\n\n listOfNullValues.clear();\n listOfIncorrectValues.clear();\n listOfCorrectValues.clear();\n\n try {\n eventSubsId = objSUB_EVN_LIST.getSUBSCRIBER_ID().toString();\n\n } catch (Exception e) {\n\n isSubsIdNotNull = false;\n listOfNullValues.add(\" SUBS_ID '\"+objSUB_EVN_LIST.getSUBSCRIBER_ID()+\"'\");\n }\n\n try {\n strCUSTOMER_ID = objSUB_EVN_LIST.getCUSTOMER_ID().trim().toString();\n\n } catch (Exception e) {\n\n if(checkDuplication(listOfDuplicationRecord,eventSubsId) == false) {\n\n listOfNullValues.add(\" CUSTOMER_ID: '\"+objSUB_EVN_LIST.getCUSTOMER_ID()+\"'\");\n }\n else\n {\n listOfDuplicationRecord.add(eventSubsId);\n }\n }\n\n\n try {\n\n strEvent_Date = objSUB_EVN_LIST.getEVENT_DATE().toString();\n\n\n\n } catch (Exception e) {\n\n listOfNullValues.add(\" EVENT_DATE: '\"+objSUB_EVN_LIST.getEVENT_DATE()+\"'\");\n }\n\n try {\n if (objSUB_EVN_LIST.getBUS_EVENT_TYPE().equals(\"DI\")) {\n\n isSuspen_BusEventType_Null = true;\n listOfCorrectValues.add(\" BUS_EVENT_TYPE: '\"+objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"'\");\n\n } else\n {\n isSuspen_BusEventType_Null = false;\n listOfIncorrectValues.add(\" BUS_EVENT_TYPE: '\"+objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"'\");\n }\n } catch (Exception e) {\n isBusEventTypeNotNull = false;\n listOfNullValues.add(\" BUS_EVENT_TYPE: '\"+objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"\");\n\n }\n\n Function.TRANSLATION_LAYER_MONDATORY_FIELDS();\n\n\n if(listOfNullValues.size() > 0 && listOfIncorrectValues.size() > 0 ) {\n logger.log(LogStatus.FAIL, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\", \" FIELDS WITH NULLS : \" + listOfNullValues+//errorMessageOfNull+\n \" FIELDS WITH INCORRECT VALUES : \" + listOfIncorrectValues);\n numberOfSubsWithNullValues++; numberOfSubsWithIncorrectValues++; totalNumberOfSubs++; failedSubs++;\n //isCheckAllAttr = false;\n }\n else if(listOfNullValues.size() > 0 && listOfIncorrectValues.size() == 0 ) {\n logger.log(LogStatus.FAIL, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\", \" FIELDS WITH NULLS : \" +listOfNullValues);//+ errorMessageOfNull);\n //isCheckAllAttr = false;\n numberOfSubsWithNullValues++; totalNumberOfSubs++; failedSubs++;\n }\n else if(listOfNullValues.size() == 0 && listOfIncorrectValues.size() > 0 ) {\n logger.log(LogStatus.FAIL, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\",\" FIELDS WITH INCORRECT VALUES : \" +listOfIncorrectValues);//+ errorMessageOfIncorrect);\n numberOfSubsWithIncorrectValues++; totalNumberOfSubs++; failedSubs++;\n }else if(listOfCorrectValues.size()>0){\n\n logger.log(LogStatus.PASS, \"FOR SUBS_ID = [\" + objSUB_EVN_LIST.getSUBSCRIBER_ID() + \"]\",\"EVENT_TYPE: '\" + objSUB_EVN_LIST.getEVENT_TYPE()+\"' \"+\"BUSINESS EVENT_TYPE: '\" + objSUB_EVN_LIST.getBUS_EVENT_TYPE()+\"' \"+\" EVENT_DATE: '\"+ objSUB_EVN_LIST.getEVENT_DATE()+\"'\");numberOfSubsWithCorrectValues++; totalNumberOfSubs++; passedSubs++;\n }\n\n }\n\n logger.log(LogStatus.INFO,\"STATISTICS \");\n logger.log(LogStatus.INFO,\"\"+numberOfSubsWithNullValues,\" SUBSCRIBERS WITH NULLS \");\n logger.log(LogStatus.INFO,\"\"+numberOfSubsWithCorrectValues,\" SUBSCRIBERS WITH CORRECT VALUES \");\n logger.log(LogStatus.INFO,\"\"+numberOfSubsWithIncorrectValues,\" SUBSCRIBERS WITH INCORRECT VALUES \");\n logger.log(LogStatus.INFO,\"\"+failedSubs,\" FAILED SUBSCRIBERS \");\n logger.log(LogStatus.INFO,\"\"+passedSubs,\" PASSED SUBSCRIBERS \");\n logger.log(LogStatus.INFO,\"\"+totalNumberOfSubs,\" TOTAL NUMBER OF SUBSCRIBERS \");\n\n\n }catch (Exception e)\n {\n logger.log(LogStatus.FAIL,\"ALL SUBS HAVE NULL EVENT_TYPE\");\n // System.out.println(\"EVENT_TYPE have NULLS for ALL SUBS\");\n }\n\n }", "private boolean validateData() {\n if (!mCommon.validateData()) return false;\n\n Core core = new Core(this);\n\n // Due Date is required\n if (TextUtils.isEmpty(getRecurringTransaction().getDueDateString())) {\n core.alert(R.string.due_date_required);\n return false;\n }\n\n if (TextUtils.isEmpty(mCommon.viewHolder.dateTextView.getText().toString())) {\n core.alert(R.string.error_next_occurrence_not_populate);\n\n return false;\n }\n\n // Payments Left must have a value\n if (getRecurringTransaction().getPaymentsLeft() == null) {\n core.alert(R.string.payments_left_required);\n return false;\n }\n return true;\n }", "public void validateRpd22s2()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd15s5()\n {\n // This guideline cannot be automatically tested.\n }", "@Test\n public void test() {\n\t \n String obj1 = \"EMP201\"; \n String obj3 = \"Jackson\";\n String obj5 = \"Bond\";\n String obj7 = \"01/21/1989\";\n String obj9 = \"Male\";\n String obj11= \"[email protected]\";\n String obj13 = \"Male\";\n String obj16= \"0172345658\";\n String obj17= \"H.N0 34,Jack Street,Malaysia\";\n String obj19= \"Developer\";\n String obj21= \"ICT\";\n String obj23= \"6000\";\n String obj25=\"02/21/2004\";\n\n /* Error When User enter some other form of value or \n * submit page without any parameter*/\n\n String obj2 = \"EMP201\";\n String obj4 = \"Jackson\";\n String obj6 = \"Bond\";\n String obj8 = \"01/21/1989\";\n String obj10 = \"Male\";\n String obj12= \"[email protected]\";\n /*String obj12= \"jackso.com\";*/\n String obj14 = \"Male\";\n String obj15= \"0172345658\";\n /* String obj15= \"\";*/\n String obj18 = \"H.N0 34,Jack Street,Malaysia\";\n String obj20= \"Developer\";\n String obj22 = \"ICT\";\n /*int obj22 = 22;*/\n String obj24= \"6000\";\n String obj26=\"02/21/2004\";\n \n /*Testing paramter when entering values are in correct form*/\n /*assertEquals(obj1, obj2);*/\n assertEquals(obj3, obj4);\n assertEquals(obj5, obj6);\n assertEquals(obj7, obj8);\n assertEquals(obj9, obj10);\n assertEquals(obj11, obj12);\n assertEquals(obj13, obj14);\n assertEquals(obj15, obj16);\n assertEquals(obj17, obj18);\n assertEquals(obj19, obj20);\n assertEquals(obj21, obj22);\n assertEquals(obj23, obj24);\n assertEquals(obj25, obj26); \n \n /*assertNull(obj15);*/\n \n \n \n\n }", "@Test\n public void h_qcStatementsEdit() {\n webDriver.findElement(By.id(\"cpf:checkpkixqcsyntaxv2\")).click();\n webDriver.findElement(By.id(\"cpf:textfieldqcsemanticsid\")).sendKeys(\"text\");\n webDriver.findElement(By.id(\"cpf:textfieldqcstatementraname\")).sendKeys(\"text\");\n webDriver.findElement(By.id(\"cpf:checkqcetsiqcompliance\")).click();\n webDriver.findElement(By.id(\"cpf:checkqcetsisignaturedevice\")).click();\n webDriver.findElement(By.id(\"cpf:checkqcetsivaluelimit\")).click();\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimitcur\")).clear();\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimitcur\")).sendKeys(\"text\");\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimit\")).clear();\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimit\")).sendKeys(\"text\");\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimitexp\")).clear();\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimitexp\")).sendKeys(\"text\");\n webDriver.findElement(By.id(\"cpf:checkqcetsiretentionperiod\")).click();\n\n // Check that two errors appear\n assertEquals(\"Expected 2 error messages\", 2,\n webDriver.findElements(By.xpath(\"//td[contains(text(), 'Only decimal numbers are allowed in ETSI Value Limit Amount and Exponent fields.')]\")).size());\n\n // Clear invalid fields and keep doing clicky stuff\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimitcur\")).clear();\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimit\")).clear();\n webDriver.findElement(By.id(\"cpf:textfieldqcetsivaluelimitexp\")).clear();\n webDriver.findElement(By.id(\"cpf:checkqcetsiretentionperiod\")).click();\n webDriver.findElement(By.id(\"cpf:checkqccustomstring\")).click();\n webDriver.findElement(By.id(\"cpf:textfieldqccustomstringtext\")).sendKeys(\"text\");\n CertificateProfileHelper.save(webDriver, true);\n }", "public void validate(DataRecord value) {\n\r\n\t}", "public void validateRpd13s13()\n {\n // This guideline cannot be automatically tested.\n }", "private void validateInputParameters(){\n\n }", "public void validateRpd8s12()\n {\n // This guideline cannot be automatically tested.\n }", "@Test(enabled=true, priority =1)\r\n\tpublic void view3_validate_table_data() {\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_curr_data) , \"Test_View3\" , \"view3_curr_data\" );\t\r\n\t\thelper.validate_table_columns( view3_curr_data_table , driver , \"\" , \"Test_View3\" , \"view3_curr_data_table\" );\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_today_data) , \"Test_View3\" , \"view3_today_data\" );\r\n\t\thelper.validate_table_columns( view3_today_data_table , driver , \"\" , \"Test_View3\" , \"view3_today_data_table\" );\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_curr_agent_stats_tbl) , \"Test_View3\" , \"view3_curr_agent_stats_tbl\" );\r\n\t\thelper.validate_table_columns( view3_curr_agent_stats_col , driver , \"\" , \"Test_View3\" , \"view3_curr_agent_stats_col\" );\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_agent_details) , \"Test_View3\" , \"view3_agent_details\" );\t\r\n\t\thelper.validate_table_columns( view3_Agent_table_data_start , driver , view3_Agent_table_data_end , \"Test_View3\" , \"view3_Agent_table_data\" );\r\n\t}", "public void validateUserListTable() throws Exception {\n\t\tlog.info(\"Started ----- Validate for UserListTable -----\");\n\t\tAddUser.getText();\n\t\tFirstNameText.getText();\n\t\tLastNameText.getText();\n\t\tUserNameText.getText();\n\t\tCustomerText.getText();\n\t\tRoleText.getText();\n\t\tEmailText.getText();\n\t\tCellPhoneText.getText();\n\t\tLockedText.getText();\n\n\t\tString actualadduser = AddUser.getText();\n\t\tString expectedadduser = \"Add User\";\n\t\tString actualfirstname = FirstNameText.getText();\n\t\tString expectedfirstname = \"First Name\";\n\t\tString actuallastname = LastNameText.getText();\n\t\tString expectedlastname = \"Last Name\";\n\t\tString actualusername = UserNameText.getText();\n\t\tString expectedusername = \"User Name\";\n\t\tString actualcustomer = CustomerText.getText();\n\t\tString expectedcustomer = \"Customer\";\n\t\tString actualroletext = RoleText.getText();\n\t\tString expectedroletext = \"Role\";\n\t\tString actualemail = EmailText.getText();\n\t\tString expectedemail = \"E-mail\";\n\t\tString actualcellphone = CellPhoneText.getText();\n\t\tString expectedcellphone = \"Cell Phone\";\n\t\tString actuallocked = LockedText.getText();\n\t\tString expectedlocked = \"Locked\";\n\n\t\tAssert.assertEquals(actualadduser, expectedadduser);\n\t\tAssert.assertEquals(actualfirstname, expectedfirstname);\n\t\tAssert.assertEquals(actuallastname, expectedlastname);\n\t\tAssert.assertEquals(actualusername, expectedusername);\n\t\tAssert.assertEquals(actualcustomer, expectedcustomer);\n\t\tAssert.assertEquals(actualroletext, expectedroletext);\n\t\tAssert.assertEquals(actualemail, expectedemail);\n\t\tAssert.assertEquals(actualcellphone, expectedcellphone);\n\t\tAssert.assertEquals(actuallocked, expectedlocked);\n\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal:\" + actualadduser);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualfirstname);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actuallastname);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualusername);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualcustomer);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualroletext);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualemail);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualcellphone);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actuallocked);\n\t\tlog.info(\"Ended ----- Validate for UserListTable -----\");\n\t}", "public void validateRpd13s10()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd1s2()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s16()\n {\n // This guideline cannot be automatically tested.\n }", "private boolean checkInputFields(){\r\n\t\tString allertMsg = \"Invalid input: \" + System.getProperty(\"line.separator\");\r\n\t\t\r\n\t\t//Check input for MCS text field\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_MCSTf.getText());\r\n\t\t\tif(testValue < 0 || testValue > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a number between 0 and 1 as a MCS score.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for relevance score weight and coherence score weight text fields\r\n\t\ttry{\r\n\t\t\tFloat relScoreW = Float.parseFloat(m_RelScoreTf.getText());\r\n\t\t\tFloat cohScoreW = Float.parseFloat(m_CohScoreTf.getText());\r\n\t\t\tif(relScoreW < 0 || relScoreW > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t\tif(cohScoreW < 0 || cohScoreW > 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t\tif((relScoreW + cohScoreW) != 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a number between 0 and 1 as a weight for relevance and coherence score.\" + System.getProperty(\"line.separator\");\r\n\t\t\tallertMsg += \"Sum of the weights for relevance and coherence score must be 1.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for MCS text field\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_KeyTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as multiplier for keyword concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for category confidence weight\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_CatConfTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as a weight for the weight of the category confidence of concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for weight of repeated concepts\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_RepeatTf.getText());\r\n\t\t\tif(testValue < 0)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number as a weight for repeated concepts.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\t//Check input for number of output categories\r\n\t\ttry{\r\n\t\t\tInteger testValue = Integer.parseInt(m_MaxCatsTf.getText());\r\n\t\t\tif(testValue < 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number for the maximum number of output categories.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tInteger testValue = Integer.parseInt(m_MinCatsTf.getText());\r\n\t\t\tif(testValue < 1)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number for the minimum number of output categories.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tFloat testValue = Float.parseFloat(m_MinCatScoreTf.getText());\r\n\t\t\tif(testValue < 0.0f || testValue > 1.0f)\r\n\t\t\t\tthrow new NumberFormatException();\r\n\t\t}catch (NumberFormatException e){\r\n\t\t\tallertMsg += \"Please enter a positive number between 0 and 1 as minimum category score.\" + System.getProperty(\"line.separator\");\r\n\t\t}\r\n\t\tif(allertMsg.length() > 18){\r\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\talert.setContentText(allertMsg);\r\n\t\t\talert.showAndWait();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "protected void validate(String operationType) throws Exception\r\n\t{\r\n\t\tsuper.validate(operationType);\r\n\r\n\t\tMPSString id_validator = new MPSString();\r\n\t\tid_validator.setConstraintIsReq(MPSConstants.DELETE_CONSTRAINT, true);\r\n\t\tid_validator.setConstraintIsReq(MPSConstants.MODIFY_CONSTRAINT, true);\r\n\t\tid_validator.validate(operationType, id, \"\\\"id\\\"\");\r\n\t\t\r\n\t\tMPSInt adapter_id_validator = new MPSInt();\r\n\t\tadapter_id_validator.validate(operationType, adapter_id, \"\\\"adapter_id\\\"\");\r\n\t\t\r\n\t\tMPSInt pdcount_validator = new MPSInt();\r\n\t\tpdcount_validator.validate(operationType, pdcount, \"\\\"pdcount\\\"\");\r\n\t\t\r\n\t\tMPSInt ldcount_validator = new MPSInt();\r\n\t\tldcount_validator.validate(operationType, ldcount, \"\\\"ldcount\\\"\");\r\n\t\t\r\n\t}", "public static void main(String[] args){\n\tValidateUser first =(String Fname) -> {\n\t\tif(Pattern.matches(\"[A-Z]{1}[a-z]{2,}\",Fname))\n\t\t\tSystem.out.println(\"First Name Validate\");\n\t\t\telse \n\t\t\tSystem.out.println(\"Invalid Name, Try again\");\n\t}; \n\t//Lambda expression for Validate User Last Name\n\tValidateUser last =(String Lname) -> {\n\t\tif(Pattern.matches(\"[A-Z]{1}[a-z]{2,}\",Lname))\n\t\t\tSystem.out.println(\"Last Name Validate\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Last Name, Try again\");\n\t};\n\t//Lambda expression for Validate User Email\n\tValidateUser Email =(String email) -> {\n\t\tif(Pattern.matches(\"^[\\\\w-\\\\+]+(\\\\.[\\\\w]+)*@[\\\\w-]+(\\\\.[\\\\w]+)*(\\\\.[a-z]{2,})$\",email))\n\t\t\tSystem.out.println(\"email Validate\");\n\t\telse\n\t\t\tSystem.out.println(\"Invalid Email, Try again\");\n\t};\n\t//Lambda expression for Validate User Phone Number\n\tValidateUser Num =(String Number) -> {\n\t\tif(Pattern.matches(\"^[0-9]{2}[\\\\s][0-9]{10}\",Number))\n\t\t\tSystem.out.println(\"Phone Number Validate\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Number, Try Again\");\n\t};\n\t//Lambda expression for Validate User Password\n\tValidateUser Password =(String pass) -> {\n\t\tif(Pattern.matches(\"(?=.*[$#@!%^&*])(?=.*[0-9])(?=.*[A-Z]).{8,20}$\",pass))\n\t\t\tSystem.out.println(\"Password Validate\");\n\t\t\telse\n\t\t\tSystem.out.println(\"Invalid Password Try Again\");\n\t};\n\t\n\tfirst.CheckUser(\"Raghav\");\n\tlast.CheckUser(\"Shettay\");\n\tEmail.CheckUser(\"[email protected]\");\n\tNum.CheckUser(\"91 8998564522\");\n\tPassword.CheckUser(\"Abcd@321\");\n\t\n\t\n\t\n\t//Checking all Email's Sample Separately\n\tArrayList<String> emails = new ArrayList<String>();\n\t//Valid Email's\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\t\n\t//Invalid Email's\n\temails.add(\"[email protected]\");\n\temails.add(\"abc123@%*.com\");\n\t\n\tString regex=\"^[\\\\w-\\\\+]+(\\\\.[\\\\w]+)*@[\\\\w-]+(\\\\.[\\\\w]+)*(\\\\.[a-z]{2,})$\";\n\t\n\tPattern pattern = Pattern.compile(regex);\n\t\n\tfor(String mail : emails) {\n\t\tMatcher matcher = pattern.matcher(mail);\n\t System.out.println(mail +\" : \"+ matcher.matches());\n\t}\n \n}", "public boolean isValid() {\r\n/* */ try {\r\n/* 326 */ validate();\r\n/* 327 */ } catch (ValidationException vex) {\r\n/* 328 */ return false;\r\n/* */ } \r\n/* 330 */ return true;\r\n/* */ }", "public void validateRpd6s2()\n {\n // This guideline cannot be automatically tested.\n }", "@Override\r\n\tArrayList<String> checkData() {\n\t\tArrayList<String> cf = new ArrayList<String>();\r\n\t\tboolean errorSuperficie = false;\r\n\t\t\r\n\t\t\r\n\t\tfor (Entry<String, String[]> entry : request.getParameterMap().entrySet()) {\r\n\r\n\t\t\tif(entry.getKey().indexOf(\"PR\") != -1){\r\n\t\t\t\t\r\n\t\t\t\tif(!isPositive0Included(request.getParameter(entry.getKey()))){\r\n\t\t\t\t\terrorSuperficie = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif(errorSuperficie){\r\n\t\t\tcf.add(\"Las superficies tienen que ser positivas.\");\r\n\t\t}\r\n\r\n\t\t\r\n\t\treturn cf;\r\n\t}", "@Test\n\tpublic void testValidate()\n\t{\n\t\tSystem.out.println(\"validate\");\n\t\tUserTypeCode userTypeCode = new UserTypeCode();\n\t\tuserTypeCode.setCode(\"Test\");\n\t\tuserTypeCode.setDescription(\"Test\");\n\n\t\tValidationModel validateModel = new ValidationModel(userTypeCode);\n\t\tvalidateModel.setConsumeFieldsOnly(true);\n\n\t\tValidationResult result = ValidationUtil.validate(validateModel);\n\t\tSystem.out.println(\"Any Valid consume: \" + result.toString());\n\t\tif (result.valid() == false) {\n\t\t\tAssert.fail(\"Failed validation when it was expected to pass.\");\n\t\t}\n\t\tSystem.out.println(\"---------------------------\");\n\n\t\tvalidateModel = new ValidationModel(userTypeCode);\n\t\tresult = ValidationUtil.validate(validateModel);\n\t\tSystem.out.println(\"Faild: \" + result.toString());\n\t}", "private void checkInvalidInformation(EditPlanDirectToManaged editPlanPage) throws Exception {\n //\n Reporter.log(\"Verifying Error Messages on Edit Plan Page\", true);\n editPlanPage.invalidEditPlanUpdate();\n softAssert.assertTrue(editPlanPage.verifyEditPlanErrorMessage());\n\n //Re-Enter correct details\n editPlanPage.updateAnnualHouseHoldincome(Constants.DEFAULT_ANNUAL_HOUSEHOLD_INCOME);\n editPlanPage.updateRetirementAge(Constants.DEFAULT_RETIREMENT_AGE + \"\");\n }", "private boolean validate() {\n\n EditText fnameET = findViewById(R.id.fnameET);\n EditText lnameET = findViewById(R.id.lnameET);\n EditText perNoET = findViewById(R.id.perNoET);\n EditText lecEmailET = findViewById(R.id.lecEmailET);\n EditText adminCodeET = findViewById(R.id.adminCodeET);\n EditText passwET = findViewById(R.id.passwET);\n EditText cpasswET = findViewById(R.id.cpasswET);\n\n String fname = fnameET.getText().toString().trim();\n String lname = lnameET.getText().toString().trim();\n String personNo = perNoET.getText().toString().trim();\n String lectEmail = lecEmailET.getText().toString().trim();\n String adminCode = adminCodeET.getText().toString().trim();\n String password = passwET.getText().toString().trim();\n String cpassword = cpasswET.getText().toString().trim();\n\n //boolean flag;\n\n if(fname.isEmpty()) {\n fnameET.setError(\"Field can't be empty!\");\n fnameET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(lname.isEmpty()) {\n lnameET.setError(\"Field can't be empty!\");\n lnameET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(personNo.isEmpty()) {\n perNoET.setError(\"Field can't be empty!\");\n perNoET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(lectEmail.isEmpty()) {\n lecEmailET.setError(\"Field can't be empty!\");\n lecEmailET.requestFocus();\n return false;\n } else if (!Patterns.EMAIL_ADDRESS.matcher(lectEmail).matches()) {\n lecEmailET.setError(\"check that your email is entered correctly!\");\n lecEmailET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(adminCode.isEmpty()) {\n adminCodeET.setError(\"Field can't be empty!\");\n adminCodeET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(password.isEmpty()) {\n passwET.setError(\"Field can't be empty!\");\n passwET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(cpassword.isEmpty()) {\n cpasswET.setError(\"Field can't be empty!\");\n cpasswET.requestFocus();\n return false;\n } else if (!cpassword.equals(password)) {\n cpasswET.setError(\"password doesn't match the above entered password!\");\n cpasswET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n return true;\n }", "void validateTransactionForPremiumWorksheet(Record inputRecord, Connection conn);", "@org.junit.Test\r\n public void testPositiveScenario() {\n boolean result = Validation.validateSAPhoneNumber(\"+27712612199\");// function should return true\r\n assertEquals(true, result);\r\n\r\n }", "public String validate() {\n\t\tString msg=\"\";\n\t\t// for name..\n\t\tif(name==null||name.equals(\"\"))\n\t\t{\n\t\t\tmsg=\"Task name should not be blank or null\";\n\t\t}\n\t\tif(name.split(\" \").length>1)\n\t\t{\n\t\t\tmsg=\"multiple words are not allowed\";\n\t\t}\n\t\telse\n\t\t{\n\t\t for(int i=0;i<name.length();i++)\n\t\t {\n\t\t\t char c=name.charAt(i);\n\t\t\t\tif(!(Character.isDigit(c)||Character.isLetter(c)))\n\t\t\t\t{\n\t\t\t\t\tmsg=\"special characters are not allowed\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t }\n\t\t}\n\t\t\t\n\t\t\n\t\t\t// for Description...\n\t\t\tif(desc==null||desc.equals(\"\"))\n\t\t\t{\n\t\t\t\tmsg=\"Task descrshould not be blank or null\";\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t // for tag...\n\t\t\t \n\t\t\t if(tag==null||tag.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tmsg=\"Task tags not be blank or null\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t // for date { imp here}\n\t\t\t if(tarik!=null)\n\t\t\t {\n\t\t\t SimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t sdf.setLenient(false); // very imp here..\n\t\t\t try {\n\t\t\t\tDate d=sdf.parse(tarik);\n\t\t\t} catch (ParseException e) {\n\t\t\t\t\n\t\t\t//\tmsg=\"date should be correct foramat\";\n\t\t\t\tmsg=e.getMessage();\n\t\t\t}\n\t\t\t }\n\t\t\t// for prority..\n\t\t\t if(prio<1&&prio>10)\n\t\t\t {\n\t\t\t\t msg=\"prority range is 1 to 10 oly pa\";\n\t\t\t }\n\t\t\t\t\n\t\t\t\tif(msg.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\treturn Constant.SUCCESS;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\treturn msg;\n\t}", "public void validateRpd22s8()\n {\n // This guideline cannot be automatically tested.\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void readingElectricityErrorMsgValidation(){\t\t\t \n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verify the anonymous submit meter read page for error message validation\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRUser1\");\n\tnew SubmitMeterReadAction()\n\t.openSMRpage(\"Electricity\")\n\t.validateElectricityreadingFiledErrormsg(smrProfile);\t\t\t\n}", "public void validateRpd7s2()\n {\n // This guideline cannot be automatically tested.\n }", "public TestResult validate(License license, ValidationParameters validationParameters);", "public void SetCreditCarddetails(String ccnumber, String ccname, String ccmonth, String ccyear, String ccseccode){\r\n\t\tString countrygroup_ccdetails= \"UK,PresselAustria\";\r\n\t\tString CCnum = getValue(ccnumber);\r\n\t\tString CCName = getValue(ccname);\r\n\t\tString CCMonth = getValue(ccmonth);\r\n\t\tString CCYear = getValue(ccyear);\r\n\t\tString CCSecCode = getValue(ccseccode);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+CCnum+\", \"+CCName+\", \"+CCMonth+\", \"+CCYear+\", \"+CCSecCode);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- The CreditCard details should be entered\");\r\n\t\ttry{\r\n\t\t\tif(!(countrygroup_ccdetails).contains(countries.get(countrycount))){\r\n\t\t\t\tswitchframe(\"TokenizationPage\");\r\n\t\t\t\tsleep(2000);\r\n\t\t\t\tsendKeys(locator_split(\"txtCCnumber\"), CCnum);\r\n\t\t\t\tclearWebEdit(locator_split(\"txtCCname\"));\r\n\t\t\t\tsendKeys(locator_split(\"txtCCname\"), CCName);\r\n\t\t\t\tsendKeys(locator_split(\"dpCCMonth\"), CCMonth);\r\n\t\t\t\tsendKeys(locator_split(\"dpCCYear\"), CCYear);\r\n\t\t\t\tclearWebEdit(locator_split(\"txtCCcode\"));\r\n\t\t\t\tsendKeys(locator_split(\"txtCCcode\"), CCSecCode);\t\t\t\t\t\t\r\n\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- The CreditCard details are entered\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- The new CreditCard details are applicable to this \" +country);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- The CreditCard details are not entered\");\r\n\t\t\tthrow new NoSuchElementException(\"One of the element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCCnumber\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCCname\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"dpCCMonth\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"dpCCYear\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCCcode\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" are not found\");\r\n\r\n\t\t}\r\n\t}", "public void validateRpd3s14()\n {\n // This guideline cannot be automatically tested.\n }", "@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}", "public void validateRpd9s2()\n {\n // This guideline cannot be automatically tested.\n }", "abstract void fiscalCodeValidity();", "public void printValidateInformation() {\n\n if(!validateFirstName()){\n System.out.println(\"The first name must be filled in\");\n }\n if(!validateFirstNameLength()){\n System.out.println(\"The first name must be at least 2 characters long.\");\n }\n if(!validateLastName()){\n System.out.println(\"The last name must be filled in\");\n }\n if(!validateLastNameLength()){\n System.out.println(\"The last name must be at least 2 characters long.\");\n }\n if(!validateZipcode()){\n System.out.println(\"The zipcode must be a 5 digit number.\");\n }\n if (!validateEmployeeID()){\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n }\n\n if(validateFirstName() && validateFirstNameLength() && validateLastName() && validateLastNameLength()\n && validateZipcode() && validateEmployeeID()){\n System.out.println(\"There were no errors found.\");\n }\n }", "@Override\n\tpublic void validate()\n\t{\n\n\t}", "public void validateRpd22s10()\n {\n // This guideline cannot be automatically tested.\n }", "private void validateUpdateCustomer(CustomersInputDTO inputData, String formatDate) {\n List<Map<String, Object>> listValidate = new ArrayList<>();\n if (inputData == null) {\n throw new CustomRestException(ConstantsCustomers.MSG_PARAMETER_VALUE_INVALID,\n CommonUtils.putError(\"inputData\", Constants.RIQUIRED_CODE));\n }\n Long customerId = inputData.getCustomerId();\n if (inputData.getCustomerId() == null) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.CUSTOMER_ID, Constants.RIQUIRED_CODE));\n }\n // 1.2 Validate parent relation\n if (inputData.getParentId() != null && inputData.getParentId().longValue() > 0l) {\n if (!isSameParentId(customerId, inputData.getParentId())) {\n Long countRelParentId = customersRepository.countCustomerExistedWithParentId(inputData.getParentId(),\n customerId);\n if (ConstantsCustomers.NUMBER_CHECK_PARENT_ID.equals(countRelParentId)) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.CUSTOMER_PARENT,\n ConstantsCustomers.CUSTOMER_PARENT_INVAIL));\n }\n } else {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.CUSTOMER_PARENT,\n ConstantsCustomers.CUSTOMER_PARENT_INVAIL));\n }\n }\n // build map parameters\n CommonValidateJsonBuilder jsonBuilder = new CommonValidateJsonBuilder();\n String validateJson = jsonBuilder.build(FieldBelongEnum.CUSTOMER.getCode(), (Map<String, Object>) null,\n buildParamsValidateCustomersInput(inputData, jsonBuilder), formatDate);\n String token = SecurityUtils.getTokenValue().orElse(null);\n String tenantName = jwtTokenUtil.getTenantIdFromToken();\n listValidate.addAll(CustomersCommonUtil.validateCommon(validateJson, restOperationUtils, token, tenantName));\n if (!listValidate.isEmpty()) {\n throw new CustomRestException(ConstantsCustomers.VALIDATE_MSG_FAILED, listValidate);\n }\n }", "private boolean isInputValid() {\n String errorMessage = \"\";\n\n if (ServiceName.getText() == null || ServiceName.getText().length() == 0) {\n errorMessage += \"No valid name!\\n\";\n }\n if (Serviceemail.getText() == null || Serviceemail.getText().length() == 0) {\n Pattern p = Pattern.compile(\"[_A-Za-z0-9][A-Za-z0-9._]*?@[_A-Za-z0-9]+([.][_A-Za-z]+)+\");\n Matcher m = p.matcher(Serviceemail.getText());\n if (m.find() && m.group().equals(Serviceemail.getText())) {\n errorMessage += \"No valid Mail Forment!\\n\";\n }\n }\n if (servicedescrip.getText() == null || servicedescrip.getText().length() == 0) {\n errorMessage += \"No valid description !\\n\";\n }\n if (f == null && s.getImage() == null) {\n errorMessage += \"No valid photo ( please upload a photo !)\\n\";\n }\n if (Serviceprice.getText() == null || Serviceprice.getText().length() == 0) {\n errorMessage += \"No valid prix !\\n\";\n } else {\n // try to parse the postal code into an int.\n try {\n Float.parseFloat(Serviceprice.getText());\n } catch (NumberFormatException e) {\n errorMessage += \"No valid prix (must be a Float)!\\n\";\n }\n }\n if ( !Weekly.isSelected() && !Daily.isSelected() && !Monthly.isSelected()) {\n errorMessage += \"No valid Etat ( select an item !)\\n\";\n }\n if (Servicesatet.getSelectionModel().getSelectedIndex() == -1) {\n errorMessage += \"No valid etat ( select an item !)\\n\";\n }\n if (ServiceCity.getSelectionModel().getSelectedIndex() == -1) {\n errorMessage += \"No valid City ( select an item !)\\n\";\n }\n if (servicetype.getSelectionModel().getSelectedIndex() == -1) {\n errorMessage += \"No valid Type ( select an item !)\\n\";\n }\n if (errorMessage.length() == 0) {\n return true;\n } else {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Invalid Fields\");\n alert.setHeaderText(\"Please correct invalid fields\");\n alert.setContentText(errorMessage);\n alert.showAndWait();\n return false;\n }\n }" ]
[ "0.66832244", "0.66832244", "0.65866315", "0.65084094", "0.62716705", "0.6245503", "0.6228582", "0.62238526", "0.6157448", "0.6119678", "0.6107489", "0.6031855", "0.6021551", "0.60161424", "0.60074294", "0.59886384", "0.5974048", "0.59571576", "0.59545505", "0.5951701", "0.59506524", "0.59336907", "0.5931132", "0.5918295", "0.590573", "0.590573", "0.5888904", "0.58876413", "0.5879956", "0.5878359", "0.58698606", "0.586877", "0.5866837", "0.5865864", "0.5854221", "0.58344424", "0.5829748", "0.58292216", "0.5818846", "0.58185416", "0.5803293", "0.58020735", "0.5801272", "0.57998055", "0.5798617", "0.5796551", "0.5776782", "0.57741106", "0.5766382", "0.5751932", "0.5748444", "0.57482725", "0.5746077", "0.57386726", "0.57366717", "0.5735153", "0.5732926", "0.5725287", "0.5722936", "0.57114154", "0.5709854", "0.56861913", "0.567704", "0.56601703", "0.56596875", "0.5647516", "0.56437767", "0.56405246", "0.563293", "0.5632843", "0.56298137", "0.56274277", "0.56208277", "0.5616377", "0.5605137", "0.56042", "0.559793", "0.5597858", "0.559319", "0.55839956", "0.5580252", "0.5574704", "0.55744565", "0.55699575", "0.55628157", "0.55590355", "0.555131", "0.55481887", "0.55455446", "0.5543705", "0.55351794", "0.5533757", "0.5533375", "0.5531693", "0.55224854", "0.5522208", "0.5521279", "0.5518108", "0.55155545", "0.5514298" ]
0.65996003
2
Validation Functions Description : To validate the Date of Birth of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:DateofBirth
public void validate_the_Date_of_Birth_of_Security_in_Customer_Tab(String DateofBirth)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Date of Birth").replaceAll("M_InnerText", DateofBirth), "Date of Birth - "+DateofBirth, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void birthDateValidity();", "public Boolean validateDate(String date_of_birth) {\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n try {\n format.parse(date_of_birth);\n } catch (ParseException exception) {\n System.out.println(\"Invalid Input!\");\n return true;\n }\n return false;\n }", "void birthDateValidity(M person) {\n // Valid data\n assignValidData(person);\n assertDoesNotThrow(person::checkDataValidity);\n\n // Invalid data\n person.setBirthdate(null);\n assertThrows(InvalidFieldException.class, person::checkDataValidity);\n }", "private boolean isDOBValid(String DOB) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n dateFormat.setLenient(false);\n try {\n dateFormat.parse(DOB.trim());\n } catch (ParseException pe) {\n return false;\n }\n return true;\n }", "@Test\n public void testconvertDateYearsLongueurPasValide() {\n FieldVerifier projet = new FieldVerifier();\n boolean longueurInvalideTest = projet.isValidDate(\"01/05/102\");\n assertEquals(false, longueurInvalideTest);\n }", "public static void birthdateValidation(Date birthdate) throws Exception {\n if (birthdate.after(new Date())) {\n throw new Exception(\"Your birth date cannot be in the future\");\n }\n }", "public void validate(){\r\n\t\ttry{\r\n\t\t\t//First name, last name, date of birth and email are compulsory.\r\n\t\tif(FirstName==null||LastName==null||Dob==null||Email==null) \r\n\t\t\tthrow new Exception(\"One of the field is Empty :\\n(First name / last name / dob / email )\");\r\n\t\tif(TelephoneNumber!=0||MobileNumber!=0)\r\n\t\t\tthrow new Exception(\"Enter Contact Number\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\t/*finally{\r\n\t\t\tSystem.out.println(\"Program Executed\");\r\n\t\t}*/\r\n\t}", "public static boolean isValidDOB(String userInput) {\n \n return Pattern.matches(Constants.DATE_VALIDATION, userInput);\n }", "public DateValidator(Integer Day,Integer Month,Integer Year) throws InvalidDateException\n\t{\n\t\t\n\t\t\tiDay = Day;\n\t\t\tiMonth = Month;\n\t\t\tiYear = Year;\n\t\t\t//create Calendar object for current date\n\t\t\tCalendar now = Calendar.getInstance ( );\n\t\t\t//create Calendar Object to test\n\t\t\tCalendar test = Calendar.getInstance( );\n\t\t\t//set the attributes of test Calendar\n\t\t\ttest.set (iYear,iMonth,iDay);\n\t\t\t\n\t\t\tboolean leap = true;//holds the boolean value of leap year \n\t\t\t\n\t\t\t/* test year for proper input*/\n\t\t\tif (iYear + 120 < now.get (Calendar.YEAR) || now.before (test))\n\t\t\t{\t\n\t\t\t\tthrow new InvalidDateException(\"year\");\n\t\t\t}\n\t\t\t/* Test the month for proper input*/\n\t\t\tif (iMonth < 0 || iMonth > 12)\n\t\t\t{\t\n\t\t\t\tthrow new InvalidDateException(\"month\");\n\t\t\t}\n\t\t\t\n\t\t\t//algorithm to determine if it is a leap year\n\t\t\tif (iYear % 400 == 0)\n\t\t\t\tleap = true;\n\t\t\telse if (iYear % 100 == 0)\n\t\t\t\tleap = false;\n\t\t\telse if (iYear % 4 == 0)\n\t\t\t\tleap = true;\n\t\t\telse\n\t\t\t\tleap = false;\n\t\t\t\n\t\t\t/*Test to see if user has entered a\n\t\t\t * valid day for that particular month\n\t\t\t */\n\t\t\t\n\t\t\t//if the day entered for February is greater then 29 in a leap year it is invalid\n\t\t\tif ( leap == true && iMonth == 2)\n\t\t\t{\n\t\t\t\tif ( iDay < 0 || iDay > 29 )\n\t\t\t\t{\t\n\t\t\t\t\tthrow new InvalidDateException(\"day\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if the day entered for February is greater then 28 in a non leap year it is invalid\n\t\t\tif ( leap == false && iMonth == 2)\n\t\t\t{\n\t\t\t\tif ( iDay < 0 || iDay > 28)\n\t\t\t\t{\t\n\t\t\t\t\tthrow new InvalidDateException(\"day\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//in the months of Apr, Jun, Sep, or Nov a day greater then 30 is invalid\n\t\t\tif( iMonth == 4 ||\n\t\t\t\tiMonth == 6 ||\n\t\t\t\tiMonth == 9 ||\n\t\t\t\tiMonth == 11 )\n\t\t\t{\n\t\t\t\tif( iDay < 0 || iDay > 30)\n\t\t\t\t{\t\n\t\t\t\t\tthrow new InvalidDateException(\"day\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//in the remaining months a day greater than 31 is invalid\n\t\t\tif (iDay < 0 || iDay > 31)\n\t\t\t{\t\n\t\t\t\tthrow new InvalidDateException(\"day\");\n\t\t\t}\n\t}", "private void validateDate() {\n if (dtpSightingDate.isEmpty()) {\n dtpSightingDate.setErrorMessage(\"This field cannot be left empty.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n // Check that the selected date is after research began (range check)\n else if (!validator.checkDateAfterMin(dtpSightingDate.getValue())) {\n dtpSightingDate.setErrorMessage(\"Please enter from \" + researchDetails.MIN_DATE + \" and afterwards. This is when the research period began.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n // Check that the selected date is not in the future (range check / logic check)\n else if (!validator.checkDateNotInFuture(dtpSightingDate.getValue())) {\n dtpSightingDate.setErrorMessage(\"Please enter a date from today or before. Sighting date cannot be in the future.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n }", "boolean isValidDate(String datestr)\n {\n String validch = \"1234567890/\";\n String month, day, year;\n Integer I;\n int m, d, y;\n int slash1, slash2;\n\n datestr.trim();\n if (datestr.length() == 0)\n return false;\n\n if (!checkchars(datestr, validch, false)) {\n // Invalid date entry\n return false;\n }\n\n\n slash1 = datestr.indexOf(\"/\");\n slash2 = datestr.indexOf(\"/\",slash1+1);\n if (slash1 <= 0 || slash2 <= 0)\n {\n // Invalid Entry\n return false;\n }\n\n month = datestr.substring(0,slash1);\n day = datestr.substring(slash1+1,slash2);\n year = datestr.substring(slash2+1,datestr.length());\n if ((month.length()<1 || month.length()>2) ||\n (day.length()<1 || day.length()>2) || (year.length()!=4))\n {\n // Invalid Date\n return false;\n }\n\n I = new Integer(month);\n m = I.intValue();\n I = new Integer(day);\n d = I.intValue();\n I = new Integer(year);\n y = I.intValue();\n //basic error checking\n if (m<1 || m>12 || d<1 || d>31 || y<0 || y>9999)\n return false;\n\n // months with 30 days\n if (d==31 && (m==4 || m==6 || m==9 || m==11)){\n return false;\n }\n\n // february, leap year\n if (m==2 && d>28){\n if (d > 29)\n return false;\n if ((y%4 == 0) || ((y%400==0) && (y%100!=0)))\n return false;\n }\n\n return true;\n }", "private void validateCreateCustomer(CustomersInputDTO inputData, String formatDate) {\n if (inputData == null) {\n throw new CustomRestException(ConstantsCustomers.MSG_PARAMETER_VALUE_INVALID,\n CommonUtils.putError(\"inputData\", Constants.RIQUIRED_CODE));\n }\n List<Map<String, Object>> listValidate = new ArrayList<>();\n if (inputData.getCustomerName() == null || inputData.getCustomerName().isBlank()) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.PARAM_CUSTOMER_NAME, Constants.RIQUIRED_CODE));\n }\n if (inputData.getBusinessMainId() == null) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.PARAM_BUSINESS_MAIN_ID, Constants.RIQUIRED_CODE));\n }\n if (inputData.getBusinessSubId() == null) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.PARAM_BUSINESS_SUB_ID, Constants.RIQUIRED_CODE));\n }\n\n // build map parameters\n CommonValidateJsonBuilder jsonBuilder = new CommonValidateJsonBuilder();\n String validateJson = jsonBuilder.build(FieldBelongEnum.CUSTOMER.getCode(), (Map<String, Object>) null,\n buildParamsValidateCustomersInput(inputData, jsonBuilder), formatDate);\n String token = SecurityUtils.getTokenValue().orElse(null);\n String tenantName = jwtTokenUtil.getTenantIdFromToken();\n listValidate.addAll(CustomersCommonUtil.validateCommon(validateJson, restOperationUtils, token, tenantName));\n if (!listValidate.isEmpty()) {\n throw new CustomRestException(ConstantsCustomers.VALIDATE_MSG_FAILED, listValidate);\n }\n }", "public boolean DateValidation(String date, String startTime, String currentTime) {\n\n boolean state = false;\n\n //String x = dateChooser.getDate().toString();\n String Hyear = date.substring(24, 28); // get user input date\n String Hmonth = monthToCompare(date);\n String Hdate = date.substring(8, 10);\n String stHr = startTime.substring(0, 2);\n String stMin = startTime.substring(3, 5);\n\n int userYr, userMnth, userDate, userHour, userMin = 0;\n userYr = Integer.parseInt(Hyear); // conversion of user entered year to int\n userMnth = Integer.parseInt(Hmonth);\n userDate = Integer.parseInt(Hdate);\n userHour = Integer.parseInt(stHr);\n userMin = Integer.parseInt(stMin);\n\n String yyr = currentTime.substring(0, 4); // get currrent year from the string f\n String mmnth = currentTime.substring(5, 7);\n String ddt = currentTime.substring(8, 10); // get current date from the string f\n String hours = currentTime.substring(11, 13);\n String mins = currentTime.substring(14, 16);\n\n int yr, mnth, dt, shr, smin = 0;\n yr = Integer.parseInt(yyr); // convert current year from string to int\n mnth = Integer.parseInt(mmnth);\n dt = Integer.parseInt(ddt);\n shr = Integer.parseInt(hours);\n smin = Integer.parseInt(mins);\n\n if ((userYr == yr) || (userYr > yr)) { // if user entered year is the current year or future year, ok \n if (((userYr == yr) && (userMnth >= mnth)) || ((userYr > yr) && (userMnth >= mnth)) || ((userYr > yr) && (userMnth < mnth))) {\n if (((userYr == yr) && (userMnth >= mnth) && (userDate >= dt)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt)) || ((userYr == yr) && (userMnth > mnth) && (userDate >= dt))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt))) {\n if (((userYr == yr) && (userMnth == mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr))) {\n if (((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour == shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate == dt) && (userHour > shr) && (userMin < smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour >= shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth == mnth) && (userDate > dt) && (userHour < shr) && (userMin < smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour >= shr) && (userMin < smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin)) || ((userYr == yr) && (userMnth > mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin))\n || ((userYr == yr) && (userMnth > mnth) && (userDate > dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate >= dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth >= mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate >= dt) && (userHour < shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour >= shr) && (userMin < smin)) || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr) && (userMin >= smin))\n || ((userYr > yr) && (userMnth < mnth) && (userDate < dt) && (userHour < shr) && (userMin < smin))) {\n state = true;\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid time!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid time!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid day!\");\n state = false;\n }\n\n } else {\n JOptionPane.showMessageDialog(null, \"Invalid month!\");\n state = false;\n }\n } else {// if the user entered year is already passed\n JOptionPane.showMessageDialog(null, \"Invalid year\");\n state = false;\n }\n return state;\n }", "private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }", "private boolean dateValidation(String userDate){\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n sdf.setLenient(false);\n\n try {\n\n //if not valid, it will throw ParseException\n Date date = sdf.parse(userDate);\n System.out.println(date);\n\n } catch (ParseException e) {\n\n e.printStackTrace();\n return false;\n }\n\n return true;\n }", "boolean checkNumberFormat (String birthDate){\r\n for (int i = 0; i < birthDate.length(); i++) {\r\n if ((birthDate.charAt(i) < 48 && birthDate.charAt(i) != 32 \r\n && birthDate.charAt(i) != 10) \r\n || birthDate.charAt(i) > 57){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "@Test\n public void test10020ATS001ValidationofDatefieldsinPayHistory() throws Exception {\n driver.get(\"http://Clarity\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_UserNameTextBox\")).clear();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_UserNameTextBox\")).sendKeys(\"02.08.09\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_PasswordTextBox\")).clear();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_PasswordTextBox\")).sendKeys(\"password\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_LoginButton\")).click();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_btnLogin\")).click();\n //driver.findElement(By.linkText(\"Select\")).click();\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*How much is my pension[\\\\s\\\\S][\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).clear();\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).sendKeys(\"02/10/20\");\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*Start date is later than end date\\\\.[\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).clear();\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).sendKeys(\"25/07/2017\");\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).clear();\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate\")).clear();\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate\")).sendKeys(\"02/10/2\");\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).sendKeys(\"02/10/2\");\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton\")).click();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton']\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*End Date is not recognized as a valid date\\\\.[\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate']\")).clear();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate']\")).sendKeys(\"21221\\\"\\\"\\\"\");\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).clear();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).sendKeys(\"wewe\\\"\\\"\\\"\");\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton']\")).click();\n Thread.sleep(1000);\n //try {\n //assertTrue(driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDateTypeValidator\")).getText().matches(\"^exact:[\\\\s\\\\S]*$\"));\n //} catch (Error e) {\n // verificationErrors.append(e.toString());\n //}\n // ERROR: Caught exception [Error: locator strategy either id or name must be specified explicitly.]\n driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_LoginStatus\")).click();\n }", "public static boolean isValidBirthdate (String test) {\n try {\n LocalDate.parse(test);\n return isValidBirthdate(LocalDate.parse(test));\n } catch (DateTimeParseException e) {\n return false;\n }\n }", "public boolean isValidDate(String valD) { //Checks if date is in proper format\n String valDWithoutSpace = valD.replaceAll(\"\\\\s\", \"\");\n return valDWithoutSpace.length() == 8;\n}", "@Test\n @Disabled\n public void testValidateFecha() {\n assertTrue(RegExprMain.validateFecha(\"10/06/2022\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2011\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2015\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2016\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2021\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/1999\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2007\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2000\"));\n assertTrue(RegExprMain.validateFecha(\"10/06/2002\"));\n assertFalse(RegExprMain.validateFecha(\"38/06/2009\"));\n assertFalse(RegExprMain.validateFecha(\"10/20/2010\"));\n \n \n\n }", "@Test\n public void testInvalidBirthDate() {\n registerUser(username, password, password, email, email, forename, surname, \"01011990\");\n assertNull(userService.getUser(username));\n }", "public PassengerPersonalInfo(){\n \t// TODO Auto-generated constructor stub\n Scanner cin = new Scanner(System.in);\n String tempAge;\n System.out.print(\"FIRST NAME: \");\n firstName = cin.nextLine();\n System.out.print(\"LAST NAME: \");\n lastName = cin.nextLine();\n while(true) {\n System.out.print(\"AGE: \");\n tempAge = cin.nextLine();\n try {\n age = Integer.parseInt(tempAge);\n if(age < 0 || age > 150) {\n throw new Exception();\n }\n break;\n }\n catch(Exception e){\n System.err.println(\"ERROR: Invalid Age!\");\n } \n } \n SimpleDateFormat sdt = new SimpleDateFormat(\"MM-dd-yyyy\");\n while(true) {\n System.out.print(\"DATE OF BIRTH(mm-dd-yyyy): \");\n String tempDateOfBirth = cin.nextLine();\n try { \n this.dateOfBirth= sdt.parse(tempDateOfBirth);\n break;\n } \n catch (ParseException e) { \n System.err.println(\"ERROR: Invalid Date Format!\"); \n }\n }\n //String ch = cin.nextLine();\n System.out.print(\"ADDRESS: \");\n address = cin.nextLine();\n System.out.print(\"NATIONALITY: \");\n nationality = cin.nextLine();\n while(true) {\n System.out.print(\"CONTACT NUMBER: \");\n String tempContactNumber = cin.nextLine();\n try {\n \tcontact = Long.parseLong(tempContactNumber);\n if(tempContactNumber.length() != 11)\n throw new Exception();\n break;\n }\n catch(Exception e){\n System.err.println(\"ERROR: Invalid Contact Number!\");\n } \n } \n }", "public Date checkDate() {\n // Create new sdf with format is dd/MM/yyyy\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n sdf.setLenient(false); // Check special day\n Date date = null; // Create date\n boolean isOK = true; // Condition loop\n\n while (isOK) {\n try {\n String dateStr = checkEmpty(\"DOB\"); // Call method to check input of dob\n date = sdf.parse(dateStr); // Convert string to date\n return date;\n\n } catch (ParseException e) {\n // Print error if date is invalid\n System.out.println(\"Date is invalid !\");\n System.out.print(\"Enter again (dd/MM/yyyy): \");\n }\n }\n return date; // Return date\n }", "public void setBirth_date(java.lang.String birth_date) {\n this.birth_date = birth_date;\n }", "private void validateUpdateCustomer(CustomersInputDTO inputData, String formatDate) {\n List<Map<String, Object>> listValidate = new ArrayList<>();\n if (inputData == null) {\n throw new CustomRestException(ConstantsCustomers.MSG_PARAMETER_VALUE_INVALID,\n CommonUtils.putError(\"inputData\", Constants.RIQUIRED_CODE));\n }\n Long customerId = inputData.getCustomerId();\n if (inputData.getCustomerId() == null) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.CUSTOMER_ID, Constants.RIQUIRED_CODE));\n }\n // 1.2 Validate parent relation\n if (inputData.getParentId() != null && inputData.getParentId().longValue() > 0l) {\n if (!isSameParentId(customerId, inputData.getParentId())) {\n Long countRelParentId = customersRepository.countCustomerExistedWithParentId(inputData.getParentId(),\n customerId);\n if (ConstantsCustomers.NUMBER_CHECK_PARENT_ID.equals(countRelParentId)) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.CUSTOMER_PARENT,\n ConstantsCustomers.CUSTOMER_PARENT_INVAIL));\n }\n } else {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.CUSTOMER_PARENT,\n ConstantsCustomers.CUSTOMER_PARENT_INVAIL));\n }\n }\n // build map parameters\n CommonValidateJsonBuilder jsonBuilder = new CommonValidateJsonBuilder();\n String validateJson = jsonBuilder.build(FieldBelongEnum.CUSTOMER.getCode(), (Map<String, Object>) null,\n buildParamsValidateCustomersInput(inputData, jsonBuilder), formatDate);\n String token = SecurityUtils.getTokenValue().orElse(null);\n String tenantName = jwtTokenUtil.getTenantIdFromToken();\n listValidate.addAll(CustomersCommonUtil.validateCommon(validateJson, restOperationUtils, token, tenantName));\n if (!listValidate.isEmpty()) {\n throw new CustomRestException(ConstantsCustomers.VALIDATE_MSG_FAILED, listValidate);\n }\n }", "@And(\"^Complete user data birthday and gender$\")\t\t\t\t\t\n public void Complete_user_data_birthday_and_gender() throws Throwable \t\t\t\t\t\t\t\n { \n \tdriver.findElement(By.id(\"day\")).sendKeys(\"19\");\n driver.findElement(By.xpath(\"//*[@id='month']/option[9]\")).click();\n driver.findElement(By.id(\"year\")).sendKeys(\"1994\");\n driver.findElement(By.xpath(\"//*[@id='gender']/option[2]\")).click();\n driver.findElement(By.xpath(\"//*[@id='personalDetailsNext']/content/span\")).click();\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\t\n }", "@Test\n public void testBirthDate() {\n registerUser(username, password, password, email, email, forename, surname, \"01/01/1990\");\n assertNotNull(userService.getUser(username));\n }", "public BirthDate(String date) throws InvalidDateException {\n this.date = stringToDate(date);\n checkDate();\n }", "public void setBirth_date(Date birth_date) {\n this.birth_date = birth_date;\n }", "public void setBirth_date(Date birth_date) {\n this.birth_date = birth_date;\n }", "@Test\n public void testGetDateCreated() throws ParseException {\n System.out.println(\"getDateCreated Test (Passing value)\");\n Date expResult = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parse(\"1955-11-05 06:00:00\");\n Date result = user.getDateCreated();\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertEquals(expResult, result);\n }", "@Override\n\tpublic void validate(OrthopedicSurgeryRecordBean bean) throws FormValidationException {\n\t\tErrorList errorList = new ErrorList();\n\t\tif (bean != null) {\n\t\t\t//at this point, we can assume that all numerical fields have made it into the bean successfully,\n\t\t\t//we still need to check to make sure they are in the right ranges.\n\t\t\t\n\t\t\tif(bean.getVisitDateString() == null || bean.getVisitDateString().equals(\"\")){\n\t\t\t\terrorList.addIfNotNull(\"Date is a required field\");\n\t\t\t}\n\t\t\terrorList.addIfNotNull(checkFormat(\"Visit Date:\", bean.getVisitDateString(), ValidationFormat.DATE, true));\n\t\t\t\n\t\t\terrorList.addIfNotNull(checkFormat(\"Last Name:\", bean.getLastName(), ValidationFormat.NAME, false));\n\t\t\terrorList.addIfNotNull(checkFormat(\"First Name:\", bean.getFirstName(), ValidationFormat.NAME, false));\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t} else {\n\t\t\terrorList.addIfNotNull(\"Bean is null.\");\n\t\t}\n\t\t\n\t\tif (errorList.hasErrors()){\n\t\t\tthrow new FormValidationException(errorList);\n\t\t}\n\t}", "private static boolean validateAge(String age) {\n return true;\n\n }", "abstract void fiscalCodeValidity();", "@Test\n public void isValidFormat() {\n assertFalse(Deadline.isValidFormat(VALID_DAY_1));\n\n // Deadline with day and month dd/mm -> true\n assertTrue(Deadline.isValidFormat(VALID_1ST_JAN_WITHOUT_YEAR.toString()));\n\n // Deadline with all 3 fields dd/mm/yyyy -> true\n assertTrue(Deadline.isValidFormat(VALID_1ST_JAN_2018.toString()));\n }", "private boolean validate(String[] st) throws Exception{\r\n for(int i=0; i<st.length; i++){\r\n switch(i) {\r\n case 0: \r\n //year\r\n if (!(Integer.parseInt(st[0]) > 0 && Integer.parseInt(st[0]) <= 9999)){\r\n throw new RuntimeException(\"Year out of bounds!\");\r\n }\r\n break;\r\n case 1: \r\n //month\r\n if (!(Integer.parseInt(st[1]) > 0 && Integer.parseInt(st[1]) <= 12)){\r\n throw new RuntimeException(\"Month out of bounds!\");\r\n }\r\n break;\r\n case 2: \r\n //day\r\n List<String> enaInTrideset = Arrays.asList(\"01\", \"03\", \"05\", \"07\", \"08\", \"10\", \"12\");\r\n List<String> trideset = Arrays.asList(\"04\", \"06\", \"09\", \"11\");\r\n \r\n if (st[1].equals(\"02\") \r\n && (Integer.parseInt(st[0])%4==0 && (Integer.parseInt(st[0])%100!=0 && Integer.parseInt(st[0])%400==0)) \r\n && !(Integer.parseInt(st[2]) > 0 && Integer.parseInt(st[2]) <= 29)) {\r\n //February leap year\r\n \r\n throw new RuntimeException(\"Month out of bounds - Leap year - February\"); \r\n \r\n } else if (st[1].equals(\"02\") \r\n && !(Integer.parseInt(st[0])%4==0 && (Integer.parseInt(st[0])%100!=0 && Integer.parseInt(st[0])%400==0)) \r\n && !(Integer.parseInt(st[2]) > 0 && Integer.parseInt(st[2]) <= 28)) {\r\n //February non leap year\r\n \r\n throw new RuntimeException(\"Month out of bounds - Non-leap year - February\");\r\n \r\n } else if(trideset.stream().anyMatch(str -> str.trim().equals(st[1])) \r\n && !(Integer.parseInt(st[2]) > 0 && Integer.parseInt(st[2]) <= 30)){ \r\n //Thirty day months\r\n\r\n throw new RuntimeException(\"Month out of bounds - 30 day month\");\r\n \r\n } else if(enaInTrideset.stream().anyMatch(str -> str.trim().equals(st[1])) \r\n && !(Integer.parseInt(st[2]) > 0 && Integer.parseInt(st[2]) <= 31)) {\r\n //Thirtyone day months\r\n\r\n throw new RuntimeException(\"Month out of bounds - 31 day month\");\r\n } \r\n break;\r\n case 3: \r\n //hours\r\n if (!(Integer.parseInt(st[3]) >= 0 && Integer.parseInt(st[3]) <= 24)){\r\n throw new RuntimeException(\"Hour out of bounds!\");\r\n }\r\n break;\r\n case 4: \r\n //minutes\r\n if (!(Integer.parseInt(st[4]) >= 0 && Integer.parseInt(st[4]) <= 59)){\r\n throw new RuntimeException(\"Minute out of bounds!\");\r\n }\r\n break;\r\n }\r\n }\r\n\r\n return true;\r\n }", "public void validateCreateCustomerAndTask() {\n\t\tAttSelectNewCustomerOptionFromListBox.click();\n\t\tAttCustomerNameTextBox.sendKeys(\"TestCust\");\n\t\tAttProjectNameTextBox.sendKeys(\"TestProject\");\n\t\tAttTaskNameTextBox.sendKeys(\"Tast1WCNP\");\n\t\tAttBudgetTimeTextBox.sendKeys(\"3:00\");\n\t\tAttEnterDateInDateField.sendKeys(Keys.ENTER,\"Jan 27, 2019\");\n\t\tAttSelectBillableBillingType.click();\n\t\tAttSelectCheckBoxMarkToBeAdd.click();\n\t\tAttCreateTaskBtn.click();\n\t}", "public boolean isValid() {\n if (this.month >= 1 && this.month <= 12 && this.day >= 1 && this.day < 32) {\n\n if ((this.month == 1 || this.month == 3 || this.month == 5 || this.month == 7 || this.month == 8\n || this.month == 10 || this.month == 12) && this.day > 30) {\n return false;\n } else if (this.month == 2 && this.day > 29) {\n return false;\n } else if (this.month == 2 && this.day > 28 && !isLeap(this.year)) {\n return false;\n } else {\n return true;\n }\n\n } else {\n return false;\n }\n }", "public void validate(DataRecord value) {\n\r\n\t}", "public void dateOfBirthDropDownTest() {\r\n\t\tif(Step.Wait.forElementVisible(QuoteForm_ComponentObject.birthMonthDropDownLocator, \"Birth month drop-down\", 5)) {\r\n\t\t\tdropDownTest(QuoteForm_ComponentObject.birthMonthDropDownLocator,QuoteForm_ComponentObject.birthMonthDefaultLocator,\r\n\t\t\t\t\tQuoteForm_ComponentObject.birthMonthValidSelectionLocator, QuoteForm_ComponentObject.birthMonthInvalidSelectionLocator, \"MM\", \"June\");\r\n\t\t}\r\n\t\tif(Step.Wait.forElementVisible(QuoteForm_ComponentObject.birthDayDropDownLocator, \"Birth day drop-down\", 5)) {\r\n\t\t\tdropDownTest(QuoteForm_ComponentObject.birthDayDropDownLocator, QuoteForm_ComponentObject.birthDayDefaultLocator,\r\n\t\t\t\t\tQuoteForm_ComponentObject.birthDayValidSelectionLocator,QuoteForm_ComponentObject.birthDayInvalidSelectionLocator, \"DD\", \"14\");\r\n\t\t}\r\n\t\tif(Step.Wait.forElementVisible(QuoteForm_ComponentObject.birthYearDropDownLocator, \"Birth year drop-down\", 5)) {\r\n\t\t\tdropDownTest(QuoteForm_ComponentObject.birthYearDropDownLocator, QuoteForm_ComponentObject.birthYearDefaultLocator,\r\n\t\t\t\t\tQuoteForm_ComponentObject.birthYearValidSelectionLocator, QuoteForm_ComponentObject.birthYearInvalidSelectionLocator, \"YYYY\", \"1990\");\r\n\t\t}\r\n\t}", "public Boolean validarFecha(LocalDate fechaIngresada);", "private boolean validateInput(){\n Window owner=root.getScene().getWindow();\n inputFileds.addAll(txtfn,txtln,txtsurname,txtDOB,txtResidence,txtMobile,txtID,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().isEmpty()){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n inputFileds.removeAll(txtDOB,txtMobile,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().length()>30){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Sorry the text you entered can not be greater that 30 characters\",\"Text too Long\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n if(username.getText().length()>20 || username.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Username has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid input\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n if(pass.getText().isEmpty()){\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n if(pass.getText().length()>20 || pass.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Password has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n SimpleDateFormat yearFormat = new SimpleDateFormat(\"yyyy\");\n try {\n date = dateFormat.parse(txtDOB.getText());\n Calendar cal=Calendar.getInstance();\n int year=Integer.parseInt(yearFormat.format(date));\n if (year <= 1900 || year>cal.get(Calendar.YEAR)) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n String initialEntry=txtDOB.getText();\n String parsedValue=dateFormat.format(date);\n if(!initialEntry.equals(parsedValue)){\n Dialog.showMessageDialog(owner, \"Note your Date of Birth has been corrected\", \"Date Corrected\",DialogIcon.INFORMATION);\n }\n txtDOB.setText(dateFormat.format(date));\n } catch (ParseException ex) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n try {\n int mobile=Integer.parseInt(txtMobile.getText());\n } catch (NumberFormatException e) {\n Dialog.showMessageDialog(owner, \"Invalid Mobile Number\", \"Invalid data\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n if(txtMobile.getText().length() != 10){\n Dialog.showMessageDialog(owner, \"Sorry your Mobile Number is invalid\", \"Invalid input\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n String sql=\"select Username,Password from users where Username=?\";\n try(PreparedStatement prstmt=con.prepareStatement(sql)) {\n prstmt.setString(1, username.getText());\n ResultSet rs=prstmt.executeQuery();\n if(rs.next()){\n Dialog.showMessageDialog(owner, \"Sorry Username already exists\\n Please change to different Username\", \"Username Exists\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n rs.close();\n } catch (SQLException e) {\n System.err.println(e);\n }\n return true;\n }", "private void validateData() {\n }", "private void validate() {\n\t\t// just in case;\n\t\tfor (int i=0;i<NR_OF_FIELDS; i++) {\n\t\t\tvalid[i] = \"0\";\n\t\t}\n\t\t//\n\t\t// Validate name and surname:\n\t\t//\n\t\tif ( ! this.isUpperAlpha(nume)) {\n\t\t\tfields[0] = \"1\";\n\t\t}\n\t\t\n\t\tif ( ! this.isUpperAlphaWithSpace(nume)) {\n\t\t\tfields[1] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate seria\n\t\t//\n\t\tvalid[2] = \"1\";\t\t\t\t\t\t\t// presupun ca seria este invalida, si incerc sa o validez\n\t\tfor (int i=0; i<seriiBuletin.length; i++) {\n\t\t\tif (seriiBuletin[i].equals(seria)) {\n\t\t\t\tvalid[2] = \"0\";\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// validate numarul\n\t\t//\n\t\ttry {\n\t\t\tvalid[3] = \"1\";\n\t\t\tint nr = Integer.valueOf(numarul);\n\t\t\tif ( nr >= 100000 && nr <= 999999 ) {\n\t\t\t\tvalid[3] = \"0\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.d(TAG, \"Error validating seria.\");\n\t\t}\n\n\t\t//\n\t\t// validate sex\n\t\t//\n\t\tif ( ! (sex == 'M' || sex == 'F')) {\n\t\t\tvalid[6] = \"1\";\n\t\t}\n\t\t//\n\t\t// Validate valabilitate\n\t\t//\n\t\tif ( ! isNumber(this.valabilitate)) {\n\t\t\tvalid[7] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate CNP\n\t\t//\n\t\tif ( ! (isNumber(CNP) && isValidCNP(CNP))) {\n\t\t\tvalid[8] = \"1\";\n\t\t}\n\t\t\n\t}", "public void setDate_of_birth(String date_of_birth) {\n this.date_of_birth = date_of_birth;\n }", "public String verifyDateInput(String object, String data) {\n logger.debug(\"verifying Date in Input\");\n try {\n Boolean flag = false;\n String actual = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object)))).getAttribute(\"value\");\n String expected = data.replace(\",\", \"/\");\n logger.debug(actual);\n logger.debug(expected);\n if (actual.trim().equals(expected.trim()))\n flag = true;\n else\n flag = false;\n\n if (flag)\n return Constants.KEYWORD_PASS + \"--Date Inputs Matched\";\n else\n return Constants.KEYWORD_FAIL + \"--Date Input is not matched\";\n\n } \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch (Exception ex) {\n \t\n return Constants.KEYWORD_FAIL + ex.getLocalizedMessage();\n }\n }", "@Test\n public void testIncorrectDate(){\n UserRegisterKYC feb29NonLeap = new UserRegisterKYC(\"hello\",validId3,\"29/02/1995\",\"738583\");\n int requestResponse = feb29NonLeap.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC feb30Leap = new UserRegisterKYC(\"hello\",validId3,\"30/02/1996\",\"738583\");\n requestResponse = feb30Leap.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC longMonth32 = new UserRegisterKYC(\"hello\",validId3,\"32/01/1995\",\"738583\");\n requestResponse = longMonth32.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC shortMonth31 = new UserRegisterKYC(\"hello\",validId3,\"31/04/1995\",\"738583\");\n requestResponse = shortMonth31.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC wrongSeparator = new UserRegisterKYC(\"hello\",validId3,\"28.02.1995\",\"738583\");\n requestResponse = wrongSeparator.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC wrongDateLength = new UserRegisterKYC(\"hello\",validId3,\"9/02/1995\",\"738583\");\n requestResponse = wrongDateLength.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC wrongMonthLength = new UserRegisterKYC(\"hello\",validId3,\"27/2/1995\",\"738583\");\n requestResponse = wrongMonthLength.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC wrongYearLength = new UserRegisterKYC(\"hello\",validId3,\"27/02/195\",\"738583\");\n requestResponse = wrongYearLength.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC moreThan12Months = new UserRegisterKYC(\"hello\",validId3,\"15/13/1995\",\"738583\");\n requestResponse = moreThan12Months.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC dateInFuture = new UserRegisterKYC(\"hello\",validId3,\"29/03/2020\",\"738583\");\n requestResponse = feb30Leap.sendRegisterRequest();\n assertEquals(400,requestResponse);\n }", "@Test\n public void testSsnvalidatorFalse(){\n assertFalse(register.ssnValidator(\"70091212345\")); // a date can`t start with 70\n }", "private static String dateAddAndValidation() {\n Scanner scan = new Scanner(System.in);\r\n String date;\r\n while (true) {\r\n System.out.println(\"Please add task due date(YYYY-MM-DD)\");\r\n date = scan.nextLine().trim();\r\n String[] dateArray = date.split(\"-\");\r\n if (dateArray.length != 3 || date.length() != 10) {\r\n System.out.println(RED + \"Date format is incorrect. \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[0].length() != 4 || !StringUtils.isNumeric(dateArray[0])) {\r\n System.out.println(RED + \"You have typed incorrect Year format (not all of the data are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[1].length() != 2 || !NumberUtils.isDigits(dateArray[1])) {\r\n System.out.println(RED + \"You have given incorrect Month format (not all of the signs are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (Integer.parseInt(dateArray[1]) < 1 || Integer.parseInt(dateArray[1]) > 12) {\r\n System.out.println(RED + \"You have given incorrect Month date (Month date shouldn't be greater than 12 or less than 1). \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[2].length() != 2 || !NumberUtils.isDigits(dateArray[2])) {\r\n System.out.println(RED + \"You have given incorrect Day format (not all of the signs are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (Integer.parseInt(dateArray[2]) < 1 || Integer.parseInt(dateArray[2]) > 31) {\r\n System.out.println(RED + \"You have typed incorrect Day date (Day date shouldn't be greater than 31 or less than 1). \" + RESET);\r\n continue;\r\n }\r\n break;\r\n }\r\n return date;\r\n }", "private boolean checkValidDate(String inputDate) {\n SimpleDateFormat date = new SimpleDateFormat(\"ddMMyy\");\n date.setLenient(false);\n try {\n date.parse(inputDate);\n return true;\n } catch (ParseException e) {\n return false;\n }\n }", "@Override\n\t@FXML\n\tpublic boolean validate() {\n\t\t\n\t\tboolean isDataEntered = true;\n\t\tLocalDate startDate = Database.getInstance().getStartingDate();\n\t\tSystem.out.println();\n\t\tif(amountField.getText() == null || amountField.getText().trim().isEmpty())\n\t\t\tisDataEntered = setErrorTxt(\"You left the amount field empty.\");\n\t\telse if(!(Validation.validateAmount(amountField.getText())))\n\t\t\tisDataEntered = setErrorTxt(\"Please enter a valid amount\");\n\t\telse if(creditTextField.getText() == null || creditTextField.getText().trim().isEmpty())\n\t\t\tisDataEntered = setErrorTxt(\"You left the credit text field empty.\");\n\t\telse if(!(Validation.validateChars(creditTextField.getText())))\n\t\t\tisDataEntered = setErrorTxt(\"Please only enter valid characters\");\n\t\telse if(dateField.getValue() == null) {\n\t\t\tisDataEntered = setErrorTxt(\"You left the date field empty.\");\t\t\t\n\t\t}\n\t\telse if(dateField.getValue().isBefore(startDate))\n\t\t\tisDataEntered = setErrorTxt(\"Sorry, the date you entered is before the starting date.\");\n\t\treturn isDataEntered;\n\t}", "public void validate() {}", "public static void isValidCreditCardExpirationDate(String userInput) {\n\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"MM/yy\");\n\t\ttry {\n\t\t\t// Try to parse a YearMonth from the input, then check to make sure it is not in\n\t\t\t// the past.\n\t\t\tif (YearMonth.parse(userInput, formatter).isBefore(YearMonth.now())) {\n\t\t\t\tthrow new IllegalArgumentException(\"Expiration date must be in the future! Please try again:\");\n\t\t\t}\n\t\t} catch (DateTimeException dte) {\n\t\t\tthrow new IllegalArgumentException(\"Expiration date format must be mm/yy. Please try again:\");\n\t\t}\n\n\t}", "public boolean verifyInputCorrectFormatDate(String dateValue, boolean isNewToDoPage) {\n boolean result = true;\n try {\n // If isNewToDoPage = true :verify in add new to-do page | isNewToDoPage = false, verify in to-do list page\n if (isNewToDoPage) {\n waitForClickableOfElement(eleIdDueDate, \"Due date text box\");\n clickElement(eleIdDueDate, \"Due date text box\");\n sendKeyTextBox(eleIdDueDate, dateValue, \"Due date text box\");\n result = validateAttributeElement(eleIdDueDate, \"value\", \"\");\n } else {\n waitForClickableOfElement(eleToDoNewRowDueDateText.get(0), \"Select due date text box\");\n clickElement(eleToDoNewRowDueDateText.get(0), \"Select due date text box\");\n sendKeyTextBox(eleToDoNewRowDueDateText.get(0), dateValue, \"Select due date text box\");\n result = validateAttributeElement(eleToDoNewRowDueDateText.get(0), \"value\", \"\");\n\n }\n //If result = false : before and after value as not same --> can not input correct data into due date control\n if (!result) {\n NXGReports.addStep(\"TestScript Failed: Input correct date format in due date text box \", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n return false;\n }\n NXGReports.addStep(\"Input correct date format in due date text box \", LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"TestScript Failed: Input correct date format in due date text box \", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n return false;\n }\n return result;\n }", "@Override\n public Validator validate(Contract contract) {\n\n if (contract.getUser().getBirth().compareTo(Calendar.getInstance()) > 0) {\n this.setMessage(\"birth date is not valid\");\n this.setErrorStatus(ERROR);\n this.setErrorString(contract.getUser().getBirth().toString());\n } else if ((int) (Math.log10(contract.getUser().getPassportNumber()) + 1) != 4 ||\n (int) (Math.log10(contract.getUser().getPassportSeries()) + 1) != 6) {\n this.setMessage(\"passport data is not valid\");\n this.setErrorStatus(ERROR);\n this.setErrorString(contract.getUser().getPassportNumber()+ \" \" +\n contract.getUser().getPassportSeries());\n } else if (contract.getUser().getLastName().equals(\"\")) {\n this.setMessage(\"user's name is null\");\n this.setErrorStatus(WORN);\n this.setErrorString(contract.getUser().getId()+\"\");\n } else {\n this.setMessage(\"\");\n this.setErrorStatus(OKAY);\n }\n return this;\n }", "@Test\n\tpublic void testValidate() {\n\t\tSystem.out.println(\"starting testValidate()\");\n\t\tPersonalData personalData = new PersonalData(\"Kelvin\", \"Huynh\", \"4081234567\", \"[email protected]\");\n\t\tassertTrue (\"address validates\", personalData.validatePersonalData());\n\t System.out.println(\"testValidate PASSED\");\n\t}", "private void checkDate(String strDate, LocalDate localDate) {\n if (Integer.parseInt(strDate.substring(0, 4)) != localDate.getYear()\n || Integer.parseInt(strDate.substring(5, 7)) != localDate.getMonthValue()\n || Integer.parseInt(strDate.substring(8,10)) != localDate.getDayOfMonth()) {\n throw new IllegalArgumentException(\"Illegal date: date dose not exist.\");\n }\n }", "public static void validateDate(String date) throws CustomExceptionHandler {\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd.MM.yyyy\");\n formatter.setLenient(false);\n Date parsedDate;\n\n //Throw Exception if string is blank\n if(date.isBlank()||date.isEmpty())\n throw new CustomExceptionHandler(\"Date NOT Specified\");\n\n\n\n //Throw exception if date is not formatted correctly\n try\n {\n parsedDate = formatter.parse(date);\n\n }\n catch (Exception e)\n {\n throw new CustomExceptionHandler(\"The date format is not correct\");\n }\n }", "private boolean validateInputs(String iStart, String iEnd, String country, String type) {\n \thideErrors();\n \tint validStart;\n \tint validEnd;\n boolean valid = true;\n// \t//will not occur due to UI interface\n// if (isComboBoxEmpty(type)) {\n// \tvalid = false;\n// \tT3_type_error_Text.setVisible(true);\n// }\n if (isComboBoxEmpty(country)) {\n \tvalid = false;\n \tT3_country_error_Text.setVisible(true);\n }\n \t//checking if start year and end year are set\n if (isComboBoxEmpty(iStart)){\n //start is empty\n T3_start_year_error_Text.setVisible(true);\n valid = false;\n }\n if (isComboBoxEmpty(iEnd)){\n //end is empty\n T3_end_year_error_Text.setVisible(true);\n valid = false;\n }\n \tif (valid){\n //if years are not empty and valid perform further testing\n \t\t//fetch valid data range\n \tPair<String,String> validRange = DatasetHandler.getValidRange(type, country);\n \tvalidStart = Integer.parseInt(validRange.getKey());\n \tvalidEnd = Integer.parseInt(validRange.getValue());\n //check year range validity\n \t\tint start = Integer.parseInt(iStart);\n \t\tint end = Integer.parseInt(iEnd);\n \tif (start>=end) {\n \t\tT3_range_error_Text.setText(\"Start year should be < end year\");\n \t\tT3_range_error_Text.setVisible(true);\n \t\tvalid=false;\n \t}\n// \t//will not occur due to UI interface\n// \telse if (start<validStart) {\n// \t\tT3_range_error_Text.setText(\"Start year should be >= \" + Integer.toString(validStart));\n// \t\tT3_range_error_Text.setVisible(true);\n// \t\tvalid=false;\n// \t}else if (end>validEnd) {\n// \t\tT3_range_error_Text.setText(\"End year should be <= \" + Integer.toString(validEnd));\n// \t\tT3_range_error_Text.setVisible(true);\n// \t\tvalid=false;\n// \t}\n \t}\n// \t//will not occur due to UI interface\n// \tif(isComboBoxEmpty(type)) {\n// \t\t//if type is not set\n// T3_type_error_Text.setVisible(true);\n// \t}\n \t\n if(isComboBoxEmpty(country)) {\n //if country is not set\n T3_country_error_Text.setVisible(true);\n }\n \treturn valid;\n }", "public static void main(String[] args) {\r\n\t\tDate today = new Date(2, 26, 2012);\r\n\t\tSystem.out.println(\"Input date is \" + today);\r\n\t\tSystem.out.println(\"Printing the next 10 days after \" + today);\r\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\ttoday = today.next();\r\n\t\t\tSystem.out.println(today);\r\n\t\t}\r\n\t\tDate expiry = new Date(2011);\r\n\t\tSystem.out.println(\"testing year 2011 as input:\" + expiry);\r\n\r\n\t\tDate todayDate = new Date();\r\n\t\tSystem.out.println(\"todays date: \" + todayDate);\r\n\t\tSystem.out.println(\"current month:\" + todayDate.month);\r\n\r\n\t\t// testing isValidMonth function\r\n\t\tDate start = new Date(\"08-01-2010\");\r\n\t\tDate end1 = new Date(\"09-01-2010\");\r\n\t\tboolean param1 = start.isValidMonth(4, end1);\r\n\t\tSystem.out.println(\"is April valid between: \" + start + \" and \" + end1\r\n\t\t\t\t+ \": \" + param1);\r\n\t\tDate end2 = new Date(\"02-01-2011\");\r\n\t\tboolean param2 = start.isValidMonth(2, end2);\r\n\t\tSystem.out.println(\"is feb valid between: \" + start + \" and \" + end2\r\n\t\t\t\t+ \": \" + param2);\r\n\t\tboolean param3 = start.isValidMonth(8, start);\r\n\t\tSystem.out.println(\"is aug valid between: \" + start + \" and \" + start\r\n\t\t\t\t+ \": \" + param3);\r\n\t\tparam3 = start.isValidMonth(4, start);\r\n\t\tSystem.out.println(\"is april valid between: \" + start + \" and \" + start\r\n\t\t\t\t+ \": \" + param3);\r\n\t\tDate end3 = new Date(\"02-01-2010\");\r\n\t\tboolean param4 = start.isValidMonth(8, end3);\r\n\t\tSystem.out.println(\"is aug valid between: \" + start + \" and \" + end3\r\n\t\t\t\t+ \": \" + param4);\r\n\t\t \r\n\t\tDate lease = new Date(\"1-01-2012\");\r\n\t\tDate expiry1 = new Date(\"12-31-2012\");\r\n\r\n\t\t// testing daysBetween\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING daysBetween method\\n------------------------------\");\r\n\t\tint count = lease.daysBetween(expiry);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + expiry + \"is: \"\r\n\t\t\t\t+ count);\r\n count = new Date(\"1-01-2011\").daysBetween(new Date(\"12-31-2011\"));\r\n\t\tSystem.out.println(\"Days between [1-01-2011] and [12-31-2011]\" + \"is: \"\r\n\t\t\t\t+ count);\r\n\t\tcount = lease.daysBetween(expiry1);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + expiry1 + \"is: \"\r\n\t\t\t\t+ count);\r\n\t\tDate testDate = new Date(\"12-31-2013\");\r\n\t\tcount = lease.daysBetween(testDate);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and [12-31-2013] \"\r\n\t\t\t\t+ \"is: \" + count);\r\n\t\tcount = lease.daysBetween(lease);\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and \" + lease + \"is: \"\r\n\t\t\t\t+ count);\r\n count = lease.daysBetween(new Date(\"1-10-2012\"));\r\n\t\tSystem.out.println(\"Days between \" + lease + \" and [1-10-2012\" + \"is: \"\r\n\t\t\t\t+ count);\r\n \r\n\t\tcount = testDate.daysBetween(lease);\r\n\t\tSystem.out.println(\"Days between \" + testDate + \" and \" + lease + \"is: \"\r\n\t\t\t\t+ count);\r\n\r\n\t\t// testin isBefore\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING isBefore method\\n------------------------------\");\r\n\t\tboolean isBefore = today.isBefore(today.next());\r\n\t\tSystem.out.println(today + \"is before \" + today.next() + \": \"\r\n\t\t\t\t+ isBefore);\r\n\t\tisBefore = today.next().isBefore(today);\r\n\t\tSystem.out.println(today.next() + \"is before \" + today + \": \"\r\n\t\t\t\t+ isBefore);\r\n\t\tisBefore = today.isBefore(today);\r\n\t\tSystem.out.println(today + \"is before \" + today + \": \" + isBefore);\r\n isBefore = today.isBefore(today.addMonths(12));\r\n\t\tSystem.out.println(today + \"is before \" + today.addMonths(12) + \": \" + isBefore);\r\n\r\n\t\t// testing addMonths\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING addMonths method\\n------------------------------\");\r\n\t\ttoday = new Date(\"1-31-2011\");\r\n\t\tDate newDate = today.addMonths(1);\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"adding 1 months to \" + today + \" gives: \" + newDate);\r\n\t\tnewDate = today.addMonths(13);\r\n\t\tSystem.out.println(\"adding 13 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\ttoday = new Date(\"3-31-2010\");\r\n\t\tnewDate = today.addMonths(15);\r\n\t\tSystem.out.println(\"adding 15 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(23);\r\n\t\tSystem.out.println(\"adding 23 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(49);\r\n\t\tSystem.out.println(\"adding 49 months to \" + today + \" gives: \"\r\n\t\t\t\t+ newDate);\r\n\t\tnewDate = today.addMonths(0);\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"adding 0 months to \" + today + \" gives: \" + newDate);\r\n\t\t\r\n\t\t// testing monthsBetween\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"\\nTESTING monthsBetween method\\n------------------------------\");\r\n\t\tint monthDiff = today.monthsBetween(today.addMonths(1));\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + today.addMonths(1)\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\tmonthDiff = today.next().monthsBetween(today);\r\n\t\tSystem.out.println(\"months between \" + today.next() + \" and \" + today\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\ttoday = new Date(\"09-30-2011\");\r\n\t\tDate endDate = new Date(\"2-29-2012\");\r\n\t\tmonthDiff = today.monthsBetween(endDate);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate + \": \"\r\n\t\t\t\t+ monthDiff);\r\n\t\ttoday = new Date();\r\n\t\tDate endDate1 = new Date(\"12-04-2011\");\r\n\t\tmonthDiff = today.monthsBetween(endDate1);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate1\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\ttoday = new Date();\r\n\t\tDate endDate2 = new Date(\"12-22-2010\");\r\n\t\tmonthDiff = today.monthsBetween(endDate2);\r\n\t\tSystem.out.println(\"months between \" + today + \" and \" + endDate2\r\n\t\t\t\t+ \": \" + monthDiff);\r\n\t\t\r\n\t\t// following should generate exception as date is invalid!\r\n\t\t// today = new Date(13, 13, 2010);\r\n\r\n\t\t// expiry = new Date(\"2-29-2009\");\r\n // newDate = today.addMonths(-11);\r\n\r\n\t}", "Date getBirthDate();", "public void validateEditedUserValues(String mName, String lName, String mDOB, String mEmail)\n\t{\n\t\tString actlName = lastName.getText().toString();\n\t\tString actDOB = startDate.getText().toString();\n\t\tString actEmail = email.getText().toString();\n\t\t//System.out.println(actfName.equals(mName));\n\t\tSystem.out.println(actlName.equals(lName));\n\t\tSystem.out.println(actDOB.equals(mDOB));\n\t\tSystem.out.println(actEmail.equals(mEmail));\n\t\t//Assert.assertEquals(actfName, mName);\n\t\t//Assert.assertEquals(actlName, lName);\n\t\t//Assert.assertEquals(actDOB, mDOB);\n\t\t//Assert.assertEquals(actEmail, mEmail);\n\t\tbackBtn.click();\n\t\t\n\t}", "public boolean checkBirthDay(java.util.Date birthdate) {\r\n\r\n Calendar calendar = GregorianCalendar.getInstance();\r\n calendar.setTime(new java.util.Date());\r\n int currentYear = calendar.get(Calendar.YEAR);\r\n\r\n calendar.setTime(birthdate);\r\n int birthYear = calendar.get(Calendar.YEAR);\r\n if ((currentYear - birthYear) < 18) {\r\n return false;\r\n }\r\n return true;\r\n\r\n }", "@Test\n public void execute_dateOfBirthParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"dob\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(5, \"december\", \"dob\",\n true, false, Arrays.asList(ALICE, BENSON, CARL, DANIEL, FIONA));\n //Single keyword, case sensitive, no one found.\n execute_parameterPredicate_test(0, \"december\", \"dob\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(4, \"june 11\", \"dob\",\n true, false, Arrays.asList(ALICE, CARL, ELLE, GEORGE));\n //Multiple keywords, ignore case, and condition, one person found\n execute_parameterPredicate_test(1, \"june 11\", \"dob\",\n true, true, Arrays.asList(ELLE));\n //Multiple keywords, case sensitive, or condition, one person found\n execute_parameterPredicate_test(4, \"june 11\", \"dob\",\n false, false, Arrays.asList(ALICE, CARL, ELLE, GEORGE));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"june 11\", \"dob\",\n false, true, Collections.emptyList());\n }", "private static boolean validDate(String date) {\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yy\");\n\t\tformatter.setLenient(false);\n\t\tDate tryDate = null; \n\t\t\ttry\n\t\t{\n\t\t\ttryDate = formatter.parse(date);\n\t\t}catch (ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t\tformatDate(tryDate);\n\t\treturn true; \n\t\t\n\t}", "public void validar(Date fechaDesde, Date fechaHasta, int idOrganizacion)\r\n/* 43: */ throws ExcepcionAS2Financiero\r\n/* 44: */ {\r\n/* 45: 86 */ this.periodoDao.validar(fechaDesde, fechaHasta, idOrganizacion);\r\n/* 46: */ }", "public String verifyDateFormat(String object, String data) {\n\t\tlogger.debug(\"verifying the date format\");\n\t\ttry {\n\t\t\tString date_text = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object)))).getText();\n\t\t\tString date[] = date_text.split(\"/\");\n\t\t\tBoolean flag = false;\n\n\t\t\tint month = Integer.parseInt(date[0]);\n\t\t\tint day = Integer.parseInt(date[1]);\n\t\t\tint year = Integer.parseInt(date[2]);\n\n\t\t\tfor (int i = 0; i < date.length; i++) {\n\t\t\t\tif (month <= 12 && day <= 31 && year > 2000) {\n\t\t\t\t\tflag = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif (flag) {\n\n\t\t\t\treturn Constants.KEYWORD_PASS + \"--date is in correct format\";\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\treturn Constants.KEYWORD_FAIL + \"--date is not in correct format\";\n\t\t\t}\n\n\t\t} \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\n\t\t\treturn Constants.KEYWORD_FAIL + e.getLocalizedMessage();\n\t\t}\n\t}", "void fiscalCodeValidity(M person) {\n // Valid data\n assignValidData(person);\n assertDoesNotThrow(person::checkDataValidity);\n\n // Invalid data\n person.setFiscalCode(null);\n assertThrows(InvalidFieldException.class, person::checkDataValidity);\n person.setFiscalCode(\"A\");\n assertThrows(InvalidFieldException.class, person::checkDataValidity);\n }", "public static boolean isValidDate(String test) {\n if (test.matches(VALIDATION_REGEX)) {\n try {\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd-MM-yyyy\");\n LocalDate date = LocalDate.parse(test, format);\n if (date.format(format).equals(test)) {\n return true;\n }\n return false;\n } catch (DateTimeParseException e) {\n return false;\n }\n }\n return false;\n }", "LocalDate getDateOfBirth();", "String isOoseChangeDateAllowed(Record inputRecord);", "@Test\n public void testGetLastLoginDate() throws ParseException {\n System.out.println(\"getLastLoginDate Test (Passing value)\");\n Date expResult = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parse(\"1955-11-05 06:00:00\");\n Date result = user.getLastLoginDate();\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertEquals(expResult, result);\n }", "public void TypeBirthdayDate2(String TypeBirthdayDate2) {\r\n\t\tbirthdaydate2.clear();\r\n\t\tbirthdaydate2.sendKeys(TypeBirthdayDate2);\r\n\t\t\tLog(\"Entered Birthday (MM/DD) 2: \" + TypeBirthdayDate2);\r\n\t}", "void checkForValidDate(String dateTime) {\n\n int daysOfMonth[] = {31,28,31,30,31,30,31,31,30,31,30,31};\n\n Timestamp now = new Timestamp(new java.util.Date().getTime());\n Timestamp date = Timestamp.valueOf(startDateTime);\n if (date.after(now)) {\n outputError(lineCount + \" - Fatal - \" +\n \"Date / Time later than today's date : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (date.after(now))\n\n StringTokenizer t = new StringTokenizer(dateTime, \"- :.\");\n int year = Integer.parseInt(t.nextToken());\n int month = Integer.parseInt(t.nextToken());\n int day = Integer.parseInt(t.nextToken());\n int hour = Integer.parseInt(t.nextToken());\n int minute = Integer.parseInt(t.nextToken());\n boolean isLeapYear = ((year % 4 == 0) && (year % 100 != 0) || (year % 400 == 0));\n if (isLeapYear) daysOfMonth[1] += 1;\n if (year < 1850) {\n outputError(lineCount + \" - Fatal - \" +\n \"Year before 1850 : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (year < 1850)\n\n if (month > 12) {\n outputError(lineCount + \" - Fatal - \" +\n \"Month invalid ( > 12) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (month > 12)\n\n if (day > daysOfMonth[month-1]) {\n outputError(lineCount + \" - Fatal - \" +\n \"Day invalid ( > no of days in month) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (day > (daysOfMonth[month-1])\n\n if (hour > 23) {\n outputError(lineCount + \" - Fatal - \" +\n \"Hour invalid ( > 23) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (hour > 23)\n\n if (minute > 59) {\n outputError(lineCount + \" - Fatal - \" +\n \"Minute invalid ( > 59) : \" +\n startDateTime + \" : \" + station.getStationId(\"\"));\n } // if (minute > 59)\n\n }", "public boolean validateDate(Date Date) {\n if (Date.after(startSemester) && Date.before(endSemester))\n if (Date.after(endHoliday) || Date.before(beginHoliday))\n return true;\n return false;\n\n }", "public static void main(String[] args){\n\tValidateUser first =(String Fname) -> {\n\t\tif(Pattern.matches(\"[A-Z]{1}[a-z]{2,}\",Fname))\n\t\t\tSystem.out.println(\"First Name Validate\");\n\t\t\telse \n\t\t\tSystem.out.println(\"Invalid Name, Try again\");\n\t}; \n\t//Lambda expression for Validate User Last Name\n\tValidateUser last =(String Lname) -> {\n\t\tif(Pattern.matches(\"[A-Z]{1}[a-z]{2,}\",Lname))\n\t\t\tSystem.out.println(\"Last Name Validate\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Last Name, Try again\");\n\t};\n\t//Lambda expression for Validate User Email\n\tValidateUser Email =(String email) -> {\n\t\tif(Pattern.matches(\"^[\\\\w-\\\\+]+(\\\\.[\\\\w]+)*@[\\\\w-]+(\\\\.[\\\\w]+)*(\\\\.[a-z]{2,})$\",email))\n\t\t\tSystem.out.println(\"email Validate\");\n\t\telse\n\t\t\tSystem.out.println(\"Invalid Email, Try again\");\n\t};\n\t//Lambda expression for Validate User Phone Number\n\tValidateUser Num =(String Number) -> {\n\t\tif(Pattern.matches(\"^[0-9]{2}[\\\\s][0-9]{10}\",Number))\n\t\t\tSystem.out.println(\"Phone Number Validate\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Number, Try Again\");\n\t};\n\t//Lambda expression for Validate User Password\n\tValidateUser Password =(String pass) -> {\n\t\tif(Pattern.matches(\"(?=.*[$#@!%^&*])(?=.*[0-9])(?=.*[A-Z]).{8,20}$\",pass))\n\t\t\tSystem.out.println(\"Password Validate\");\n\t\t\telse\n\t\t\tSystem.out.println(\"Invalid Password Try Again\");\n\t};\n\t\n\tfirst.CheckUser(\"Raghav\");\n\tlast.CheckUser(\"Shettay\");\n\tEmail.CheckUser(\"[email protected]\");\n\tNum.CheckUser(\"91 8998564522\");\n\tPassword.CheckUser(\"Abcd@321\");\n\t\n\t\n\t\n\t//Checking all Email's Sample Separately\n\tArrayList<String> emails = new ArrayList<String>();\n\t//Valid Email's\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\t\n\t//Invalid Email's\n\temails.add(\"[email protected]\");\n\temails.add(\"abc123@%*.com\");\n\t\n\tString regex=\"^[\\\\w-\\\\+]+(\\\\.[\\\\w]+)*@[\\\\w-]+(\\\\.[\\\\w]+)*(\\\\.[a-z]{2,})$\";\n\t\n\tPattern pattern = Pattern.compile(regex);\n\t\n\tfor(String mail : emails) {\n\t\tMatcher matcher = pattern.matcher(mail);\n\t System.out.println(mail +\" : \"+ matcher.matches());\n\t}\n \n}", "@Test\n public void testSsnvalidatorNull(){\n assertFalse(register.ssnValidator(\"\")); // a date can`t start with 70\n }", "boolean isValidFor (@Nonnull DATATYPE aDate);", "protected void validateEntity()\n {\n super.validateEntity();\n \n Date startDate = getStartDate();\n Date endDate = getEndDate();\n \n validateStartDate(startDate);\n validateEndDate(endDate);\n\n // We validate the following here instead of from within an attribute because\n // we need to make sure that both values are set before we perform the test.\n\n if (endDate != null)\n {\n // Note that we want to truncate these values to allow for the possibility\n // that we're trying to set them to be the same day. Calling \n // dateValue( ) does not include time. Were we to want the time element,\n // we would call timestampValue(). Finally, whenever comparing jbo\n // Date objects, we have to convert to long values.\n \n long endDateLong = endDate.dateValue().getTime();\n\n // We can assume we have a Start Date or the validation of this \n // value would have thrown an exception.\n \n if (endDateLong < startDate.dateValue().getTime())\n {\n throw new OARowValException(OARowValException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(),\n getPrimaryKey(),\n \"AK\", // Message product short name\n \"FWK_TBX_T_START_END_BAD\"); // Message name\n } \n } \n \n }", "public interface RegexRule {\n /**\n * yyyy-MM 格式校验\n */\n String START_END_TIME_RULE=\"(19|20)[0-9][0-9]-(0[1-9]|1[0-2])\";\n /**\n * yyyy-MM 格式校验\n */\n String START_END_TIME_RULE_Y_M = \"(19|20)[0-9][0-9]-(0[1-9]|1[0-2])\";\n /**\n * yyyy-MM-dd 时间格式校验\n */\n String START_END_TIME_RULE_Y_M_D = \"((\\\\d{2}(([02468][048])|([13579][26]))[\\\\-\\\\s]?((((0?[13578])|(1[02]))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])))))|(\\\\d{2}(([02468][1235679])|([13579][01345789]))[\\\\-\\\\s]?((((0?[13578])|(1[02]))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(3[01])))|(((0?[469])|(11))[\\\\-\\\\s]?((0?[1-9])|([1-2][0-9])|(30)))|(0?2[\\\\-\\\\s]?((0?[1-9])|(1[0-9])|(2[0-8]))))))\";\n /**\n * yyyy-MM-dd hh:mm:ss\n */\n String START_END_TIME_RULE_Y_M_D_H_M_S = \"^\\\\d{4}[-]([0][1-9]|(1[0-2]))[-]([1-9]|([012]\\\\d)|(3[01]))([ \\\\t\\\\n\\\\x0B\\\\f\\\\r])(([0-1]{1}[0-9]{1})|([2]{1}[0-4]{1}))([:])(([0-5]{1}[0-9]{1}|[6]{1}[0]{1}))([:])((([0-5]{1}[0-9]{1}|[6]{1}[0]{1})))$\";\n /**\n * 名称格式校验\n */\n String NAME_RULE = \"[^\\\\\\\\<>%'\\\"]{0,10}\";\n /**\n * 不含有特殊字符格式校验\n */\n String SPECIAL_WORD_RULE = \"[^\\\\\\\\<>%'\\\"]{1,50}\";\n /**\n * 不含有特殊字符格式校验\n */\n String SPECIAL_WORD_RULE_TWENTY = \"[^\\\\\\\\<>%'\\\"]{1,19}\";\n /**\n * 标题校验\n */\n String TITLE_RULE = \"[^\\\\\\\\<>%'\\\"]{1,60}\";\n /**\n * 用户昵称格式\n */\n String USERNAME_RULE = \"[^\\\\\\\\<>%'\\\"]{1,15}$\";\n /**\n * 时间的格式\n */\n String TIME_FORMAT_Y_M_D = \"yyyy-MM-dd\";\n /**\n * 时间的格式yyyy-MM-dd HH:MM:SS 12时制\n */\n String TIME_FARMAT_Y_M_D_H_M_S = \"yyyy-MM-dd hh:mm:ss\";\n /**\n * 24时制\n */\n String TIME_FARMAT_YYYY_MM_DD_HH_MM_SS_24 = \"yyyy-MM-dd HH:mm:ss\";\n\n /**\n * 1-50汉字格式校验\n */\n String CHINA_WORD = \"[^\\\\\\\\<>%'\\\"]{1,50}\";\n /**\n * 1-5汉字的格式检验\n */\n String CHINESE_RULE = \"^[\\\\u4e00-\\\\u9fa5 ]{1,5}$\";\n\n int FIVE_THOUSAND = 500;\n\n}", "void validate();", "void validate();", "public static boolean validateJavaDate(String strDate)\r\n {\r\n\tif (strDate.trim().equals(\"\"))\r\n\t{\r\n\t\tSystem.out.println(strDate+\" is Invalid Date format\");\r\n\t return false;\r\n\t \r\n\t}\r\n\t/* Date is not 'null' */\r\n\telse\r\n\t{\r\n\t /*\r\n\t * Set preferred date format,\r\n\t * For example MM-dd-yyyy, MM.dd.yyyy,dd.MM.yyyy etc.*/\r\n\t SimpleDateFormat sdfrmt = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t sdfrmt.setLenient(false);\r\n\t /* Create Date object\r\n\t * parse the string into date \r\n */\r\n\t try\r\n\t {\r\n\t Date javaDate = sdfrmt.parse(strDate); \r\n\t System.out.println(strDate+\" is valid date format\");\r\n\t }\r\n\t /* Date format is invalid */\r\n\t catch (ParseException e)\r\n\t {\r\n\t System.out.println(strDate+\" is Invalid Date format\");\r\n\t return false;\r\n\t }\r\n\t \r\n\t return true;\r\n\t}\r\n }", "@Override\n public boolean isInputDateValid(String dateStr) {\n DateFormat sdf = new SimpleDateFormat(this.date);\n sdf.setLenient(false);\n try {\n sdf.parse(dateStr);\n } catch (ParseException e) {\n return false;\n }\n return true;\n }", "public CpFldValidDate() { super(10018, 1); }", "private void validation() {\n Pattern pattern = validationfilterStringData();\n if (pattern.matcher(txtDrug.getText().trim()).matches() && pattern.matcher(txtGenericName.getText().trim()).matches()) {\n try {\n TblTreatmentadvise treatmentadvise = new TblTreatmentadvise();\n treatmentadvise.setDrugname(txtDrug.getText());\n treatmentadvise.setGenericname(txtGenericName.getText());\n treatmentadvise.setTiming(cmbDosestiming.getSelectedItem().toString());\n cmbtiming.setSelectedItem(cmbDosestiming);\n treatmentadvise.setDoses(loadcomboDoses());\n treatmentadvise.setDuration(loadcomboDuration());\n PatientService.saveEntity(treatmentadvise);\n JOptionPane.showMessageDialog(this, \"SAVE SUCCESSFULLY\");\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, \"STARTUP THE DATABASE CONNECTION\");\n }\n } else {\n JOptionPane.showMessageDialog(this, \"WRONG DATA ENTERED.\");\n }\n }", "public static String verifyHireDate(Scanner input, String tempDate){\n \n //String used for regex verification of input date\n String theRegex = \"[0-1][0-9][/][0-3][0-9][/][1-2][0-9][0-9][0-9]\";\n \n //While tempDate does not match theRegex\n while(!tempDate.matches(theRegex)){\n System.out.print(\"The employee's hire date you entered was invalid.\\nMake sure the date you enter matches IX/JX/KXXX including the slashes\"\n + \"\\nwhere I is a 0 or 1, J is 0-3, K is a 1 or 2, and X is a digit 0-9: \");\n tempDate = input.nextLine();\n }\n return tempDate; \n }", "public void validateInput(Information information) {\n information.validateFirstName();\n information.validateLastName();\n information.validateZipcode();\n information.validateEmployeeID();\n }", "@Test\n public void isValidDeadline() {\n assertFalse(Deadline.isValidDeadline(INVALID_0_JAN_2018.toString()));\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_0_2018.toString()));\n\n // Valid deadline -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_JAN_2018.toString()));\n\n // Valid deadline for february -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_28TH_FEB_2018.toString()));\n\n // Invalid deadline for february in common year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_29TH_FEB_2018.toString()));\n\n // Valid deadline for february during leap year -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_29TH_FEB_2020.toString()));\n\n // Invalid deadline for february during leap year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_30TH_FEB_2020.toString()));\n\n // Valid deadline for months with 30 days -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_30TH_APR_2018.toString()));\n\n // Invalid deadline for months with 30 days -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_31ST_APR_2018.toString()));\n\n // Valid deadline for months with 31 days -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_31ST_JAN_2018.toString()));\n\n // Invalid deadline for months with 31 days -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_32ND_JAN_2018.toString()));\n\n // Invalid month -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_0_2018.toString()));\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_13_2018.toString()));\n\n // Valid month -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_APR_2018.toString()));\n\n // Valid year -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_JAN_9999.toString()));\n\n // Invalid year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_JAN_2017.toString()));\n assertFalse(Deadline.isValidDeadline(INVALID_1ST_JAN_10000.toString()));\n\n // Valid date without year -> returns true\n assertTrue(Deadline.isValidDeadline(VALID_1ST_JAN_WITHOUT_YEAR.toString()));\n\n // Invalid date without year -> returns false\n assertFalse(Deadline.isValidDeadline(INVALID_32ND_JAN_WITHOUT_YEAR.toString()));\n }", "public ErrorMessage verifyCode(String code, Integer year, Long exception);", "public void validateRegistration(RegistrationModel register) {\n\t\tif (registerDao.checkAccountNoIfExist(register.getAccount_no(), register.getJai())) {\n\t\t\t// Checks if account if not Existing and not Verified \n\t\t\tif (!registerDao.checkCustomerLinkIfExist(register.getAccount_no())) {\n\t\t\t\t\tgenerateCustomerRecord(register);\n\t\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t// Account already registered.\n\t\t\t\tVerificationModel verify = new VerificationModel();\n\t\t\t\tverify.setAccount_no(register.getAccount_no());\n\t\t\t\t\n\t\t\t\tTimestamp todayTimeStamp = new Timestamp(System.currentTimeMillis());\n\t\t\t\tTimestamp regTimeStamp = verifyDao.retireveReg_date(verify); \n\t\t\t\tlong diffHours = (regTimeStamp.getTime()-todayTimeStamp.getTime()) / (60 * 60 * 1000);\n\t\t\t\t\n\t\t\t\tif (diffHours>24) {\n\t\t\t\t\tgenerateCustomerRecord(register);\n\t\t\t\t} else {\n\t\t\t\t\t// Account already registered. Please verify your registration\n\t\t\t\t\tsetRegistrationError(\"R02\"); \n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// Customer not allowed to access online service of OBS!\n\t\t\tsetRegistrationError(\"R01\"); \n\t\t}\n\t}", "public boolean validarFechaNac() {\n\t\treturn fecha_nac != null;\n\t}", "public void setBirthdate(String birthdate) {\r\n this.birthdate = birthdate;\r\n }", "private void VehicleValidation(Vehicle vehicle) throws ServiceException {\n\n\n if (vehicle.getTitle() == null) {\n throw new ServiceException(\"Title is null ! \");\n }\n if (vehicle.getTitle().equals(\"\")) {\n throw new ServiceException(\"Title is empty ! \");\n }\n\n if (vehicle.getYear() == 0) {\n throw new ServiceException(\"year ist empty !\");\n }\n if (!isNumeric(vehicle.getYear() + \"\")) {\n throw new ServiceException(\"wrong format for year !\");\n }\n if (vehicle.getYear()<1885 || vehicle.getYear() >2018){\n throw new ServiceException(\"year has to be between 2018 and 1885 !\");\n }\n String s = vehicle.getYear() + \"\";\n if (s.length() != 4) {\n throw new ServiceException(\"only 4 digit ! \");\n }\n if (!isNumeric(vehicle.getSeats() + \"\")) {\n throw new ServiceException(\"only 1-10 !\");\n }\n if (!vehicle.getLicenseClass().isEmpty()) {\n if (vehicle.getLicensePlate().isEmpty()) {\n throw new ServiceException(\"License Plate is empty !\");\n }\n if (vehicle.getLicensePlate().equals(\"\")) {\n throw new ServiceException(\"License Plate is empty !\");\n }\n }\n if (!isNumeric(vehicle.getPrice() + \"\")) {\n throw new ServiceException(\"wrong format for Price !\");\n }\n if (vehicle.getPrice() == 0 || vehicle.getPrice() < 0) {\n throw new ServiceException(\"wrong format for Price !\");\n }\n\n if (vehicle.getTypeOfDrive().equals(\"motorized\")) {\n if (!isNumeric(vehicle.getPower() + \"\")) {\n throw new ServiceException(\"wrong format for power !\");\n }\n if (vehicle.getPower() == 0) {\n throw new ServiceException(\"power is empty!\");\n }\n }\n\n\n }", "private boolean employeeDobValid(EmployeeDto newEmpDto) {\n\t\treturn (newEmpDto.getDob().compareTo(Calendar.getInstance()) < 0) ? true : false ;\n\t}", "@Test\n public void testSetDateCreated() throws ParseException {\n System.out.println(\"setDateCreated Test (Passing value)\");\n Date dateCreated = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parse(\"1955-11-05 06:00:00\");\n user.setDateCreated(dateCreated);\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertTrue(violations.isEmpty());\n }", "public void setBirthDate(Date inBirthDate)\n {\n birthdate = inBirthDate;\n }", "boolean validDate(String dateString){\r\n\t\t\r\n\t\tif(DateUtil.parse(dateString) != null){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public DateInputVerifier(String df)\n {\n super();\n sdf = new SimpleDateFormat(df);\n errmsg = new String();\n dfstr = df;\n }", "public interface DateValidator {\n\n boolean isDateValid(String date);\n}" ]
[ "0.712833", "0.7003447", "0.665768", "0.63361156", "0.63189775", "0.631185", "0.62816274", "0.6232431", "0.6226556", "0.6220341", "0.6178844", "0.617396", "0.61267525", "0.6113514", "0.60549235", "0.6043632", "0.60404015", "0.5978477", "0.5938741", "0.5938344", "0.5929006", "0.5914349", "0.5900397", "0.58708453", "0.586741", "0.5840768", "0.5828542", "0.5826923", "0.5821614", "0.5821614", "0.58215153", "0.5814275", "0.58073664", "0.57833886", "0.5779589", "0.5767081", "0.57662725", "0.57642764", "0.57541174", "0.57537544", "0.5750315", "0.57426363", "0.573302", "0.57298476", "0.5728006", "0.57256174", "0.57149094", "0.5699731", "0.5693405", "0.568408", "0.5678052", "0.5677595", "0.56751263", "0.567506", "0.5658772", "0.5645612", "0.5640063", "0.5635114", "0.56327635", "0.56312835", "0.5628056", "0.5623483", "0.56229776", "0.5617635", "0.5609121", "0.5595523", "0.5586502", "0.55836105", "0.55824935", "0.55723226", "0.55722034", "0.5572042", "0.55668765", "0.5564483", "0.5557584", "0.55548435", "0.5549487", "0.55492496", "0.5544579", "0.55433434", "0.55384153", "0.55384153", "0.55335325", "0.55171824", "0.5507923", "0.55070126", "0.55040747", "0.54968", "0.5489024", "0.54883516", "0.54876906", "0.54851943", "0.5484035", "0.54830927", "0.5480231", "0.5474753", "0.5471767", "0.54698944", "0.5469635", "0.54691553" ]
0.7471816
0
Validation Functions Description : To validate the Nominated user of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:Nominateduser
public void validate_the_Nominated_user_of_Security_in_Customer_Tab(String Nominateduser)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Nominated user").replaceAll("M_InnerText", Nominateduser), "Nominated user - "+Nominateduser, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void validate() {\n\t\tif(name==null||name.trim().equals(\"\")){\n\t\t\taddActionError(\"用户必须填写!\");\n\t\t}\n\t\t\n\t\tList l=new ArrayList();\n\t\tl=userService.QueryByTabId(\"Xxuser\", \"id\", id);\n\t\t//判断是否修改\n\t\tif(l.size()!=0){\n\t\t\t\n\t\t\tfor(int i=0;i<l.size();i++){\n\t\t\t\tXxuser xxuser=new Xxuser();\n\t\t\t\txxuser=(Xxuser)l.get(i);\n\t\t\t\tif(xxuser.getName().equals(name.trim())){\n\t\t\t\t\tSystem.out.println(\"mei gai\");\n\t\t\t\t}else{\n\t\t\t\t\tList n=new ArrayList();\n\t\t\t\t\tn=userService.QueryByTab(\"Xxuser\", \"name\", name);\n\t\t\t\t\tif(n.size()!=0){\n\t\t\t\t\t\taddActionError(\"该用户已经存在!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\n\t\t\t\n\t\t}\n\t}", "public void validate(Object obj, Errors err) {\n\t\tUserLogin userLogin=(UserLogin)obj;\r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(err, \"fName\", \"fName.emptyOrSpace\");\r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(err, \"lName\", \"lName.emptyOrSpace\");\r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(err, \"mailId\", \"mailId.emptyOrSpace\");\r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(err, \"pass\", \"password.emptyOrSpace\");\r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(err, \"mob\", \"mob.emptyOrSpace\");\r\n\t\t\r\n\t\t//Business rule related Validation \r\n\t\tif(userLogin.getfName()!=null && userLogin.getfName().trim().length()>0) {\r\n\t\t\tif(userLogin.getfName().trim().length()>20)\r\n\t\t\t\terr.rejectValue(\"fName\", \"fName.length.exceeds\");\r\n\t\t}\r\n\t\t\r\n\t\tif(userLogin.getlName()!=null && userLogin.getlName().trim().length()>0) {\r\n\t\t\tif(userLogin.getlName().trim().length()>10)\r\n\t\t\t\terr.rejectValue(\"lName\", \"lName.length.exceeds\");\r\n\t\t}\r\n\t\t\r\n\t\tif(userLogin.getMob()!=null && userLogin.getMob().trim().length()>0) {\r\n\t\t\tif(userLogin.getMob().trim().length()!=10)\r\n\t\t\t\terr.rejectValue(\"mob\", \"mob.length.exceeds\");\r\n\t\t}\r\n\t\t\r\n\t\tif(userLogin.getMailId()!=null && userLogin.getMailId().trim().length()>0) {\r\n\t\t\tif(userLogin.getMailId().trim().length()>=20 ) {\r\n\t\t\t\terr.rejectValue(\"mailId\", \"mailId.length.exceeds\");\r\n\t\t\t}else if(!userLogin.getMailId().contains(\"@\")) {\r\n\t\t\t\terr.rejectValue(\"mailId\", \"mailId.format.first.rule\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(userLogin.getPass()!=null && userLogin.getPass().trim().length()>0) {\r\n\t\t\tif(userLogin.getPass().trim().length()>=10 ) {\r\n\t\t\t\terr.rejectValue(\"pass\", \"pass.length.exceeds\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t//DB validations\r\n\t\tif(!registerService.validateUser(userLogin)) {\r\n\t\t\terr.rejectValue(\"mailId\", \"mailId.alreadyRegistered\");\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String args[]) {\n\t\t\n\t\t//validating the first name of the user\n\t\tUserValidationInterface validateFirstName = (firstName) -> {\n\t\t\tString regex = \"^[A-Z][a-z]{2,}\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(firstName);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"First Name of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"First Name of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidateFirstName.validate(\"Rosy\");\n\n\t\t//validating the last name of the user\n\t\tUserValidationInterface validateLastName = (lastName) -> {\n\t\t\tString regex = \"^[A-Z][a-z]{2,}\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(lastName);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"Last Name of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Last Name of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidateLastName.validate(\"Rupali\");\n\n\t\t//validating the email Id of the user\n\t\tUserValidationInterface validateEmailId = (emailId) -> {\n\t\t\tString regex = \"^[a-z0-9.+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,6}$\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(emailId);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"Email Id of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Email Id of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidateEmailId.validate(\"[email protected]\");\n\n\t\t//validating the mobile number of the user\n\t\tUserValidationInterface validatePhoneNumber = (mobileNumber) -> {\n\t\t\tString regex = \"[0-9]{2}\\\\s{1}[0-9]{10}\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(mobileNumber);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"Mobile number of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Mobile number of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidatePhoneNumber.validate(\"91 9423632176\");\n\n\t\t//validating the password of the user\n\t\tUserValidationInterface validatePassword = (password) -> {\n\t\t\tString regex = \"^(?=.*[A-Z])(?=.*[0-9])(?=.*[^a-zA-Z0-9]).{8,}$\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(password);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"password of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"password of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidatePassword.validate(\"oneFine$123\");\n\n\t}", "private String checkUserDetail(UserModel userModel) {\n\t\tString name = userModel.getName();\n\t\tString mobileNumber = userModel.getMobileNumber();\n\t\tString email = userModel.getEmail();\n\t\tString pincode = userModel.getPincode();\n\t\tString area = userModel.getAreaName();\n\t\tString state = userModel.getStateName();\n\t\tString res = \"okkk\";\n\t\tif (mobileNumber.length() != 10) {\n\t\t\tres = \"Enter ten digit mobile number\";\n\t\t} else if (!checkMobileDigit(mobileNumber)) {\n\t\t\tres = \"enter only digit\";\n\t\t} else if (!checkNameChar(name)) {\n\t\t\tres = \"name shuld be only in alphabet\";\n\t\t} else if (!checkEmail(email)) {\n\t\t\tres = \"enter a valid email\";\n\t\t} else if (pincode.length() != 6) {\n\t\t\tres = \"enter valid pincode and enter only six digit\";\n\t\t} else if (!checkPincode(pincode)) {\n\t\t\tres = \"enter only digit\";\n\t\t} else if (area.equals(null)) {\n\t\t\tres = \"choose area\";\n\t\t} else if (state.equals(null)) {\n\t\t\tres = \"choose state\";\n\t\t}\n\t\treturn res;\n\t}", "public boolean testUser(){\n VallidateUserName validator = new VallidateUserName();\n return validator.isValidUser(UserName);\n }", "protected void validate_return(User[] param){\r\n \r\n }", "private boolean isFormValid(AdminAddEditUserDTO dto)\r\n\t{\n\t\tSOWError error;\r\n\t\tList<IError> errors = new ArrayList<IError>();\t\t\r\n\t\t\r\n\t\t// First Name\r\n\t\tif(com.newco.marketplace.web.utils.SLStringUtils.isNullOrEmpty(dto.getFirstName()))\r\n\t\t{\r\n\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_First_Name\"),\r\n\t\t\t\t\tgetTheResourceBundle().getString(\"Admin_First_Name_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\terrors.add(error);\r\n\t\t}\r\n\t\t// Last Name\r\n\t\tif(com.newco.marketplace.web.utils.SLStringUtils.isNullOrEmpty(dto.getLastName()))\r\n\t\t{\r\n\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_Last_Name\"),\r\n\t\t\t\t\tgetTheResourceBundle().getString(\"Admin_Last_Name_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\terrors.add(error);\r\n\t\t}\r\n\t\t\r\n\t\t// User Name\r\n\t\tif(com.newco.marketplace.web.utils.SLStringUtils.isNullOrEmpty(dto.getUsername()))\r\n\t\t{\r\n\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_User_Name\"),\r\n\t\t\t\t\tgetTheResourceBundle().getString(\"Admin_User_Name_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\terrors.add(error);\r\n\t\t}\r\n\t\telse\r\n\t\t{\t\r\n\t\t\t//User Name Length Check\r\n\t\t\tif((dto.getUsername().length() < 8) || (dto.getUsername().length() >30)){\r\n\t\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_User_Name\"),getTheResourceBundle().getString(\"Admin_User_Name_Length_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\t\terrors.add(error);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString jobRole = getParameter(\"jobRole\");\r\n\t\tif(\"-1\".equals(jobRole))\r\n\t\t{\r\n\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_Job_Role\"),\r\n\t\t\t\t\tgetTheResourceBundle().getString(\"Admin_Job_Role_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\terrors.add(error);\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Handle Primary Email\r\n\t\tif(com.newco.marketplace.web.utils.SLStringUtils.isNullOrEmpty(dto.getEmail()))\r\n\t\t{\r\n\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_Email\"),\r\n\t\t\t\t\tgetTheResourceBundle().getString(\"Admin_Email_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\terrors.add(error);\t\t\t\t\t\t\t\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif(com.newco.marketplace.web.utils.SLStringUtils.isEmailValid(dto.getEmail()) == false)\r\n\t\t\t{\r\n\t\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_PrimaryEmail\"),\r\n\t\t\t\t\t\tgetTheResourceBundle().getString(\"Admin_Email_Pattern_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\t\terrors.add(error);\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if(dto.getEmail().equals(dto.getEmailConfirm()) == false)\r\n\t\t\t{\r\n\t\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_PrimaryEmail\"),\r\n\t\t\t\t\t\tgetTheResourceBundle().getString(\"Admin_Email_Confirm_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\t\terrors.add(error);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Check for existing username, only in Add mode\r\n\t\tString mode = (String)getSession().getAttribute(\"addEditUserMode\");\r\n\t\tif(mode != null)\r\n\t\t{\r\n\t\t\tif(mode.equals(\"add\"))\r\n\t\t\t{\r\n\t\t\t\tif(manageUsersDelegate.getAdminUser(dto.getUsername()) != null || manageUsersDelegate.getBuyerUser(dto.getUsername()) != null)\r\n\t\t\t\t{\r\n\t\t\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_User_Name\"), getTheResourceBundle().getString(\"Admin_Existing_User_Validation_Msg1\")+\" \" + dto.getUsername() +\" \" +getTheResourceBundle().getString(\"Admin_Existing_User_Validation_Msg2\"), OrderConstants.FM_ERROR);\r\n\t\t\t\t\terrors.add(error);\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\r\n\t\t// If we have errors, put them in request.\r\n\t\tif(errors.size() > 0)\r\n\t\t{\r\n\t\t\tsetAttribute(\"errors\", errors);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tgetSession().removeAttribute(\"addEditUserMode\");\r\n\t\t\tgetSession().removeAttribute(\"originalUsername\");\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }", "private boolean checkUserInformation(String name,String userName,String email,String password)\n {\n\n if(userName.isEmpty())\n {\n eUserName.setError(\"empty field\");\n return false;\n }\n\n if(name.isEmpty())\n {\n eName.setError(\"empty field\");\n return false;\n }\n\n if(email.isEmpty())\n {\n eEmail.setError(\"empty field\");\n return false;\n }\n if(password.isEmpty())\n {\n ePassword.setError(\"empty field\");\n return false;\n }\n\n\n if(password.length()<6)\n {\n ePassword.setError(\"Invalid password\");\n ePassword.requestFocus();\n return false;\n }\n if(password.length()>16)\n {\n ePassword.setError(\"Invalid password\");\n ePassword.requestFocus();\n return false;\n }\n\n if(eAddress.getText().toString().isEmpty())\n {\n eAddress.setError(\"Invalid address\");\n eAddress.requestFocus();\n return false;\n }\n\n if(eFavourite.getText().toString().isEmpty())\n {\n eFavourite.setError(\"empty field\");\n eFavourite.requestFocus();\n return false;\n }\n\n if(!email.contains(\"@\"))\n {\n eEmail.setError(\"Invalid email\");\n eEmail.requestFocus();\n return false;\n }\n\n if(name.length()<3)\n {\n eName.setError(\"Invalid name\");\n eName.requestFocus();\n return false;\n }\n\n for(char c : name.toCharArray()){\n if(Character.isDigit(c)){\n eName.setError(\"Invalid Name\");\n eName.requestFocus();\n return false;\n }\n }\n\n if(userName.length()<5)\n {\n eUserName.setError(\"User name must be in 6 to 12 character\");\n eUserName.requestFocus();\n return false;\n }\n\n if(eAddress.getText().toString().length()<10||eAddress.getText().toString().length()>30)\n {\n eAddress.setError(\"Must be in 10-30 characters\");\n eAddress.requestFocus();\n return false;\n }\n return true;\n }", "public static void main(String[] args){\n\tValidateUser first =(String Fname) -> {\n\t\tif(Pattern.matches(\"[A-Z]{1}[a-z]{2,}\",Fname))\n\t\t\tSystem.out.println(\"First Name Validate\");\n\t\t\telse \n\t\t\tSystem.out.println(\"Invalid Name, Try again\");\n\t}; \n\t//Lambda expression for Validate User Last Name\n\tValidateUser last =(String Lname) -> {\n\t\tif(Pattern.matches(\"[A-Z]{1}[a-z]{2,}\",Lname))\n\t\t\tSystem.out.println(\"Last Name Validate\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Last Name, Try again\");\n\t};\n\t//Lambda expression for Validate User Email\n\tValidateUser Email =(String email) -> {\n\t\tif(Pattern.matches(\"^[\\\\w-\\\\+]+(\\\\.[\\\\w]+)*@[\\\\w-]+(\\\\.[\\\\w]+)*(\\\\.[a-z]{2,})$\",email))\n\t\t\tSystem.out.println(\"email Validate\");\n\t\telse\n\t\t\tSystem.out.println(\"Invalid Email, Try again\");\n\t};\n\t//Lambda expression for Validate User Phone Number\n\tValidateUser Num =(String Number) -> {\n\t\tif(Pattern.matches(\"^[0-9]{2}[\\\\s][0-9]{10}\",Number))\n\t\t\tSystem.out.println(\"Phone Number Validate\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Number, Try Again\");\n\t};\n\t//Lambda expression for Validate User Password\n\tValidateUser Password =(String pass) -> {\n\t\tif(Pattern.matches(\"(?=.*[$#@!%^&*])(?=.*[0-9])(?=.*[A-Z]).{8,20}$\",pass))\n\t\t\tSystem.out.println(\"Password Validate\");\n\t\t\telse\n\t\t\tSystem.out.println(\"Invalid Password Try Again\");\n\t};\n\t\n\tfirst.CheckUser(\"Raghav\");\n\tlast.CheckUser(\"Shettay\");\n\tEmail.CheckUser(\"[email protected]\");\n\tNum.CheckUser(\"91 8998564522\");\n\tPassword.CheckUser(\"Abcd@321\");\n\t\n\t\n\t\n\t//Checking all Email's Sample Separately\n\tArrayList<String> emails = new ArrayList<String>();\n\t//Valid Email's\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\t\n\t//Invalid Email's\n\temails.add(\"[email protected]\");\n\temails.add(\"abc123@%*.com\");\n\t\n\tString regex=\"^[\\\\w-\\\\+]+(\\\\.[\\\\w]+)*@[\\\\w-]+(\\\\.[\\\\w]+)*(\\\\.[a-z]{2,})$\";\n\t\n\tPattern pattern = Pattern.compile(regex);\n\t\n\tfor(String mail : emails) {\n\t\tMatcher matcher = pattern.matcher(mail);\n\t System.out.println(mail +\" : \"+ matcher.matches());\n\t}\n \n}", "@Test(priority = 2)\r\n\tpublic void invalidUserTest()\r\n\t{\r\n\t\tAdminDashboardPage adminPage=new AdminDashboardPage(driver);\r\n\t\tadminPage.clickUsersTab();\r\n\t\t\r\n\t\tUsersListViewPage ulPage=new UsersListViewPage(driver);\r\n\t\tulPage.clickNewUser();\r\n\r\n\t\tCreateNewUserPage crUserPage=new CreateNewUserPage(driver);\r\n\t\tcrUserPage.enterUserDetails(\"Kathy\",\"pass\",\"[email protected]\");\r\n\t\tcrUserPage.clickCreateUser();\r\n\t\t\r\n\t\t\r\n\t\tString expectedError=\"has already been taken\";\t\t\r\n\t\t\r\n\t\tString actualNameError=crUserPage.getUserNameErrorMessage().trim();\r\n\t\tAssert.assertEquals(actualNameError, expectedError);\t\r\n\t\t\r\n\t\t\r\n\t\tString actualEmailError= crUserPage.getEmailErrorMessage().trim();\r\n\t\tAssert.assertEquals(actualEmailError, expectedError);\r\n\t\t\r\n\t}", "private void validateUserObject(User user) {\n\t }", "void onBoardUser(@Valid String x,HttpServletRequest request)throws Exception;", "public boolean Validate() {\n String[] testArr = {titleTxf.getText(), fNameTxf.getText(), sNameTxf.getText(),\n initialTxf.getText(), hNumTxf.getText(), cNumTxf.getText(), emailTxf.getText(), idNumTxf.getText(),\n (String) maritalCbx.getSelectedItem(), \n resTxf1.getText() + \"\" + resTxf2.getText(), zipResTxf.getText(),postTxf1.getText() + \"\" + postTxf2.getText(),\n zipPostTxf.getText() };\n\n // verify user has entered data into required fields\n String inputTest = \"\";\n\n for (int i = 0; i < testArr.length; i++) {\n if (testArr[i].equals(inputTest)) {\n\n JOptionPane.showMessageDialog(rootPane, \"please fill in all required fields\", \"ERROR\", ERROR_MESSAGE);\n \n return false;\n \n\n }\n \n \n }\n //verify Home number\n if(hNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Home number\", \"ERROR\", ERROR_MESSAGE);\n errHNum.setText(\"!\");\n \n return false;\n }\n else{\n errHNum.setText(\"\");\n }\n //verify CellNo\n if(cNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Cellphone number\", \"ERROR\", ERROR_MESSAGE);\n errCNum.setText(\"!\");\n \n return false;\n \n }\n else{\n errCNum.setText(\"\");\n }\n //verify email\n String email =emailTxf.getText(); \n if(!email.contains(\"@\")|| !email.contains(\".\")){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild email address\", \"ERROR\", ERROR_MESSAGE);\n errEmail.setText(\"!\");\n return false;\n }\n else{\n errEmail.setText(\"\");\n }\n \n //verify ID No. (Local)\n String ID = idNumTxf.getText();\n if(ID.length()!=13){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild ID number\", \"ERROR\", ERROR_MESSAGE);\n errID.setText(\"!\");\n return false;\n }\n else{\n errID.setText(\"\");\n }\n \n if(zipResTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipRes.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipRes.setText(\"\");\n }\n if(zipPostTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipPost.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipPost.setText(\"\");\n }\n \n \n return true;\n\n }", "private boolean validate(){\n\n String MobilePattern = \"[0-9]{10}\";\n String name = String.valueOf(userName.getText());\n String number = String.valueOf(userNumber.getText());\n\n\n if(name.length() > 25){\n Toast.makeText(getApplicationContext(), \"pls enter less the 25 characher in user name\",\n Toast.LENGTH_SHORT).show();\n return true;\n }\n\n\n\n else if(name.length() == 0 || number.length() == 0 ){\n Toast.makeText(getApplicationContext(), \"pls fill the empty fields\",\n Toast.LENGTH_SHORT).show();\n return false;\n }\n\n\n\n else if(number.matches(MobilePattern))\n {\n\n return true;\n }\n else if(!number.matches(MobilePattern))\n {\n Toast.makeText(getApplicationContext(), \"Please enter valid 10\" +\n \"digit phone number\", Toast.LENGTH_SHORT).show();\n\n\n return false;\n }\n\n return false;\n\n }", "@Test(priority = 1)\r\n\tpublic void validUserTest() {\t\t\t\r\n\r\n\t\tAdminDashboardPage adminPage=new AdminDashboardPage(driver);\r\n\t\tadminPage.clickUsersTab();\t\r\n\t\t\r\n\t\tUsersListViewPage ulPage=new UsersListViewPage(driver);\r\n\t\tulPage.clickNewUser();\r\n\t\t\r\n\t\tCreateNewUserPage crUserPage=new CreateNewUserPage(driver);\r\n\t\tcrUserPage.enterUserDetails(\"Kathy\",\"pass\",\"[email protected]\");\r\n\t\tcrUserPage.clickCreateUser();\t\t\r\n\t\t\r\n\t\tadminPage.clickUsersTab();\r\n\t\tString actUserCreated=ulPage.verifyCreatedUser();\r\n\t\tAssert.assertEquals(actUserCreated,\"Kathy\");\r\n\t\t\r\n\t}", "private boolean validateFields(){ \n ImplLogger.enterMethod(); \n StringBuffer validationMessage = new StringBuffer();\n boolean isValidationPassed = true;\n if(!ImplValidationUtils.isAlphaSpace(pharmaNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_NAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n pharmaNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n } \n if(!ImplValidationUtils.isAlphabetOnly(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplCommonUtil.isUserNameExist(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME_EXIST);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(contactTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_CONTACT);\n validationMessage.append(ImplConst.NEXT_LINE);\n contactTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(zipCodeTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_ZIPCODE);\n validationMessage.append(ImplConst.NEXT_LINE);\n zipCodeTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(passwordField.getText())){\n validationMessage.append(ImplConst.VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n passwordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n confirmPasswordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if (!ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText()) && !confirmPasswordField.getText().equals(passwordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n isValidationPassed = false; \n }\n if(!isValidationPassed){\n JOptionPane.showMessageDialog(null,validationMessage);\n } \n ImplLogger.exitMethod();\n return isValidationPassed;\n }", "private void validateUserObject(User user) {\n }", "private boolean userInfoCheck(){\n boolean isValid = true;\n EditText et_user_name = findViewById(R.id.et_client_fName);\n EditText et_user_location = findViewById(R.id.et_client_sName);\n if(et_user_name.getText().toString().trim().isEmpty()){\n et_user_name.setError(\"Name Cannot Be Empty\");\n isValid = false;\n }\n if (et_user_location.getText().toString().trim().isEmpty()){\n et_user_location.setError(\"Location Cannot Be Empty\");\n isValid = false;\n }\n return isValid;\n }", "public void validateCreateCustomerAndTask() {\n\t\tAttSelectNewCustomerOptionFromListBox.click();\n\t\tAttCustomerNameTextBox.sendKeys(\"TestCust\");\n\t\tAttProjectNameTextBox.sendKeys(\"TestProject\");\n\t\tAttTaskNameTextBox.sendKeys(\"Tast1WCNP\");\n\t\tAttBudgetTimeTextBox.sendKeys(\"3:00\");\n\t\tAttEnterDateInDateField.sendKeys(Keys.ENTER,\"Jan 27, 2019\");\n\t\tAttSelectBillableBillingType.click();\n\t\tAttSelectCheckBoxMarkToBeAdd.click();\n\t\tAttCreateTaskBtn.click();\n\t}", "public boolean validateuser(){\n if(fname.getText().toString().isEmpty()){\n fname.setError(\"Enter your first name\");\n fname.requestFocus();\n return false;\n }\n if(lname.getText().toString().isEmpty()){\n lname.setError(\"Enter your last name\");\n lname.requestFocus();\n return false;\n }\n if(username.getText().toString().isEmpty()){\n username.setError(\"Enter your last name\");\n username.requestFocus();\n return false;\n }\n if(password.getText().toString().isEmpty()||password.getText().toString().length()<6){\n password.setError(\"Enter your password with digit more than 6\");\n password.requestFocus();\n return false;\n }\n return true;\n }", "public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {\r\n ActionErrors actionErrors = new ActionErrors();\r\n try {\r\n UserDAO gObjUserDAO = new UserDAOImpl();\r\n if (userFirstName == null || userFirstName.length() < 1) {\r\n\r\n actionErrors.add(\"userFirstName\", new ActionMessage(\"error.userFirstName\"));\r\n // TODO: add 'error.name.required' key to your resources\r\n }\r\n if (getUserName() == null || getUserName().length() < 1) {\r\n\r\n actionErrors.add(\"userName\", new ActionMessage(\"error.userName\"));\r\n // TODO: add 'error.name.required' key to your resources\r\n }\r\n if (getUserPassword() == null || getUserPassword().length() < 1) {\r\n actionErrors.add(\"userPassword\", new ActionMessage(\"error.userPassword\"));\r\n // TODO: add 'error.name.required' key to your resources\r\n }\r\n if (getUserActivationCode() == null || getUserActivationCode().length() < 1) {\r\n actionErrors.add(\"userActivationCode\", new ActionMessage(\"error.userActivationCode\"));\r\n // TODO: add 'error.name.required' key to your resources\r\n }\r\n if (getUserName() != null && getUserName().length() > 0) {\r\n\r\n List<CmnUserMst> lLstCmnUserMst = new ArrayList<CmnUserMst>();\r\n lLstCmnUserMst = gObjUserDAO.validateUserName(getUserName().toUpperCase());\r\n if (!lLstCmnUserMst.isEmpty()) {\r\n actionErrors.add(\"userName\", new ActionMessage(\"error.duplicateUserName\"));\r\n\r\n }\r\n\r\n }\r\n if (getUserActivationCode() != null && getUserActivationCode().length() > 0) {\r\n\r\n System.out.println(\"userType.....\" + userType);\r\n logger.info(\"userType......\" + userType);\r\n if (userType != null && !\"\".equals(userType) && \"H\".equals(userType)) {\r\n roleActivationMpgList = gObjUserDAO.validateActivationCodeForHR(getUserActivationCode());\r\n if (roleActivationMpgList != null && !roleActivationMpgList.isEmpty()) {\r\n PcHrDtls lObjPcHrDtls = (PcHrDtls) roleActivationMpgList.get(0);\r\n universityId = lObjPcHrDtls.getUniversityId();\r\n }\r\n }\r\n else if (userType != null && !\"\".equals(userType) && (\"S\".equals(userType) || \"A\".equals(userType) || \"F\".equals(userType))) {\r\n roleActivationMpgList = gObjUserDAO.validateActnCodeForStudOrAlumniOfFaculty(userType,userActivationCode);\r\n if(roleActivationMpgList != null && !roleActivationMpgList.isEmpty())\r\n {\r\n List lLstResult = gObjUserDAO.validateActivationCodeWithExistingCode(userActivationCode);\r\n if(lLstResult != null && !lLstResult.isEmpty())\r\n {\r\n actionErrors.add(\"userActivationCode\", new ActionMessage(\"error.validateUserActivationCodeWithExistingCode\")); \r\n }\r\n else\r\n {\r\n TmpUserExcelData lObjTmpUserExcelData = (TmpUserExcelData) roleActivationMpgList.get(0);\r\n universityId = lObjTmpUserExcelData.getUniversityId();\r\n }\r\n }\r\n } \r\n else {\r\n roleActivationMpgList = gObjUserDAO.validateActivationCode(getUserActivationCode());\r\n if (roleActivationMpgList != null && !roleActivationMpgList.isEmpty()) {\r\n CmnRoleActivationMpg lObjCmnRoleActivationMpg = (CmnRoleActivationMpg) roleActivationMpgList.get(0);\r\n universityId = lObjCmnRoleActivationMpg.getUniversityId();\r\n }\r\n }\r\n\r\n if (roleActivationMpgList == null || roleActivationMpgList.isEmpty()) {\r\n actionErrors.add(\"userActivationCode\", new ActionMessage(\"error.validateUserActivationCode\"));\r\n\r\n }\r\n }\r\n request.setAttribute(\"fromFlag\", \"signUp\");\r\n } catch (Exception ex) {\r\n logger.error(\"Error while validating user data : \" + ex, ex);\r\n }\r\n return actionErrors;\r\n }", "UserPayment validate(String cardHolderName,String cardType,String securityCode,String paymentType);", "@Test\n\tpublic void testUserValidationIfThere() {\n\t\tUserFunctions userCollections = new UserFunctions();\n\t\t\n\t\tassertNotEquals(-1, userCollections.validatePotentialUser(\"jonasanJosuta\", \"zaPasshon\"));\n\t}", "private void validateUser(user theUserOfThisAccount2) {\n\t\tboolean ok=false;\n\n\t\t\t\n\t\tif(passwordOfRegisteration.equals(passwordConfirm)&&!passwordOfRegisteration.equals(\"\")&&passwordOfRegisteration!=null){\n\t\t\tok=true;\n\t\t}\n\t\t\n\t\t\n\t\tif(ok){\n\t\t\t\n\t\t\t\ttheUserOfThisAccount2.setPassword(new Md5PasswordEncoder().encodePassword(passwordOfRegisteration,theUserOfThisAccount2.getUserName()));\n\t\t\t\tuserDataFacede.adduser(theUserOfThisAccount2);\n\t\t\t\tPrimeFaces.current().executeScript(\"new PNotify({\\r\\n\" + \n\t\t\t\t\t\t\"\t\t\ttitle: 'Success',\\r\\n\" + \n\t\t\t\t\t\t\"\t\t\ttext: 'Your data has been changed.',\\r\\n\" + \n\t\t\t\t\t\t\"\t\t\ttype: 'success'\\r\\n\" + \n\t\t\t\t\t\t\"\t\t});\");\n\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tpleaseCheck();\n\t\t\t\n\t\t}\n\t}", "public void validate(){\r\n\t\ttry{\r\n\t\t\t//First name, last name, date of birth and email are compulsory.\r\n\t\tif(FirstName==null||LastName==null||Dob==null||Email==null) \r\n\t\t\tthrow new Exception(\"One of the field is Empty :\\n(First name / last name / dob / email )\");\r\n\t\tif(TelephoneNumber!=0||MobileNumber!=0)\r\n\t\t\tthrow new Exception(\"Enter Contact Number\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\t/*finally{\r\n\t\t\tSystem.out.println(\"Program Executed\");\r\n\t\t}*/\r\n\t}", "public void testvalidateUserName0001()\n\t{\n\t\tLoginCheck loginCheckTest = new LoginCheck();\n\t\t\n\t\tassertFalse(loginCheckTest.validateUserName(\"usrnm\"));\n\t}", "private void validateData() {\n }", "@Test\n\t\tpublic void givenFirstLetterSmall_CheckForValidation_ReturnFalse() {\n\t\t\tboolean result = ValidateUserDetails.validateFirstName(\"priya\");\n\t\t\tAssertions.assertFalse(result);\n\t\t}", "User getUserUnderValidation();", "private boolean validateInput(){\n Window owner=root.getScene().getWindow();\n inputFileds.addAll(txtfn,txtln,txtsurname,txtDOB,txtResidence,txtMobile,txtID,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().isEmpty()){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n inputFileds.removeAll(txtDOB,txtMobile,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().length()>30){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Sorry the text you entered can not be greater that 30 characters\",\"Text too Long\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n if(username.getText().length()>20 || username.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Username has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid input\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n if(pass.getText().isEmpty()){\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n if(pass.getText().length()>20 || pass.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Password has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n SimpleDateFormat yearFormat = new SimpleDateFormat(\"yyyy\");\n try {\n date = dateFormat.parse(txtDOB.getText());\n Calendar cal=Calendar.getInstance();\n int year=Integer.parseInt(yearFormat.format(date));\n if (year <= 1900 || year>cal.get(Calendar.YEAR)) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n String initialEntry=txtDOB.getText();\n String parsedValue=dateFormat.format(date);\n if(!initialEntry.equals(parsedValue)){\n Dialog.showMessageDialog(owner, \"Note your Date of Birth has been corrected\", \"Date Corrected\",DialogIcon.INFORMATION);\n }\n txtDOB.setText(dateFormat.format(date));\n } catch (ParseException ex) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n try {\n int mobile=Integer.parseInt(txtMobile.getText());\n } catch (NumberFormatException e) {\n Dialog.showMessageDialog(owner, \"Invalid Mobile Number\", \"Invalid data\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n if(txtMobile.getText().length() != 10){\n Dialog.showMessageDialog(owner, \"Sorry your Mobile Number is invalid\", \"Invalid input\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n String sql=\"select Username,Password from users where Username=?\";\n try(PreparedStatement prstmt=con.prepareStatement(sql)) {\n prstmt.setString(1, username.getText());\n ResultSet rs=prstmt.executeQuery();\n if(rs.next()){\n Dialog.showMessageDialog(owner, \"Sorry Username already exists\\n Please change to different Username\", \"Username Exists\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n rs.close();\n } catch (SQLException e) {\n System.err.println(e);\n }\n return true;\n }", "@Then(\"^Validate the fields present in the result page$\") // Move to UserStep Definition\r\n\tpublic void attribute_validation(){\r\n\t\tenduser.attri_field();\r\n\t}", "private void validate() {\n\t\t// just in case;\n\t\tfor (int i=0;i<NR_OF_FIELDS; i++) {\n\t\t\tvalid[i] = \"0\";\n\t\t}\n\t\t//\n\t\t// Validate name and surname:\n\t\t//\n\t\tif ( ! this.isUpperAlpha(nume)) {\n\t\t\tfields[0] = \"1\";\n\t\t}\n\t\t\n\t\tif ( ! this.isUpperAlphaWithSpace(nume)) {\n\t\t\tfields[1] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate seria\n\t\t//\n\t\tvalid[2] = \"1\";\t\t\t\t\t\t\t// presupun ca seria este invalida, si incerc sa o validez\n\t\tfor (int i=0; i<seriiBuletin.length; i++) {\n\t\t\tif (seriiBuletin[i].equals(seria)) {\n\t\t\t\tvalid[2] = \"0\";\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// validate numarul\n\t\t//\n\t\ttry {\n\t\t\tvalid[3] = \"1\";\n\t\t\tint nr = Integer.valueOf(numarul);\n\t\t\tif ( nr >= 100000 && nr <= 999999 ) {\n\t\t\t\tvalid[3] = \"0\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.d(TAG, \"Error validating seria.\");\n\t\t}\n\n\t\t//\n\t\t// validate sex\n\t\t//\n\t\tif ( ! (sex == 'M' || sex == 'F')) {\n\t\t\tvalid[6] = \"1\";\n\t\t}\n\t\t//\n\t\t// Validate valabilitate\n\t\t//\n\t\tif ( ! isNumber(this.valabilitate)) {\n\t\t\tvalid[7] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate CNP\n\t\t//\n\t\tif ( ! (isNumber(CNP) && isValidCNP(CNP))) {\n\t\t\tvalid[8] = \"1\";\n\t\t}\n\t\t\n\t}", "public void validateUserListTable() throws Exception {\n\t\tlog.info(\"Started ----- Validate for UserListTable -----\");\n\t\tAddUser.getText();\n\t\tFirstNameText.getText();\n\t\tLastNameText.getText();\n\t\tUserNameText.getText();\n\t\tCustomerText.getText();\n\t\tRoleText.getText();\n\t\tEmailText.getText();\n\t\tCellPhoneText.getText();\n\t\tLockedText.getText();\n\n\t\tString actualadduser = AddUser.getText();\n\t\tString expectedadduser = \"Add User\";\n\t\tString actualfirstname = FirstNameText.getText();\n\t\tString expectedfirstname = \"First Name\";\n\t\tString actuallastname = LastNameText.getText();\n\t\tString expectedlastname = \"Last Name\";\n\t\tString actualusername = UserNameText.getText();\n\t\tString expectedusername = \"User Name\";\n\t\tString actualcustomer = CustomerText.getText();\n\t\tString expectedcustomer = \"Customer\";\n\t\tString actualroletext = RoleText.getText();\n\t\tString expectedroletext = \"Role\";\n\t\tString actualemail = EmailText.getText();\n\t\tString expectedemail = \"E-mail\";\n\t\tString actualcellphone = CellPhoneText.getText();\n\t\tString expectedcellphone = \"Cell Phone\";\n\t\tString actuallocked = LockedText.getText();\n\t\tString expectedlocked = \"Locked\";\n\n\t\tAssert.assertEquals(actualadduser, expectedadduser);\n\t\tAssert.assertEquals(actualfirstname, expectedfirstname);\n\t\tAssert.assertEquals(actuallastname, expectedlastname);\n\t\tAssert.assertEquals(actualusername, expectedusername);\n\t\tAssert.assertEquals(actualcustomer, expectedcustomer);\n\t\tAssert.assertEquals(actualroletext, expectedroletext);\n\t\tAssert.assertEquals(actualemail, expectedemail);\n\t\tAssert.assertEquals(actualcellphone, expectedcellphone);\n\t\tAssert.assertEquals(actuallocked, expectedlocked);\n\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal:\" + actualadduser);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualfirstname);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actuallastname);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualusername);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualcustomer);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualroletext);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualemail);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualcellphone);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actuallocked);\n\t\tlog.info(\"Ended ----- Validate for UserListTable -----\");\n\t}", "private boolean validate() {\n\n EditText fnameET = findViewById(R.id.fnameET);\n EditText lnameET = findViewById(R.id.lnameET);\n EditText perNoET = findViewById(R.id.perNoET);\n EditText lecEmailET = findViewById(R.id.lecEmailET);\n EditText adminCodeET = findViewById(R.id.adminCodeET);\n EditText passwET = findViewById(R.id.passwET);\n EditText cpasswET = findViewById(R.id.cpasswET);\n\n String fname = fnameET.getText().toString().trim();\n String lname = lnameET.getText().toString().trim();\n String personNo = perNoET.getText().toString().trim();\n String lectEmail = lecEmailET.getText().toString().trim();\n String adminCode = adminCodeET.getText().toString().trim();\n String password = passwET.getText().toString().trim();\n String cpassword = cpasswET.getText().toString().trim();\n\n //boolean flag;\n\n if(fname.isEmpty()) {\n fnameET.setError(\"Field can't be empty!\");\n fnameET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(lname.isEmpty()) {\n lnameET.setError(\"Field can't be empty!\");\n lnameET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(personNo.isEmpty()) {\n perNoET.setError(\"Field can't be empty!\");\n perNoET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(lectEmail.isEmpty()) {\n lecEmailET.setError(\"Field can't be empty!\");\n lecEmailET.requestFocus();\n return false;\n } else if (!Patterns.EMAIL_ADDRESS.matcher(lectEmail).matches()) {\n lecEmailET.setError(\"check that your email is entered correctly!\");\n lecEmailET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(adminCode.isEmpty()) {\n adminCodeET.setError(\"Field can't be empty!\");\n adminCodeET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(password.isEmpty()) {\n passwET.setError(\"Field can't be empty!\");\n passwET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(cpassword.isEmpty()) {\n cpasswET.setError(\"Field can't be empty!\");\n cpasswET.requestFocus();\n return false;\n } else if (!cpassword.equals(password)) {\n cpasswET.setError(\"password doesn't match the above entered password!\");\n cpasswET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n return true;\n }", "private void validateUserObject(User user) {\n }", "public void validateEditedUserValues(String mName, String lName, String mDOB, String mEmail)\n\t{\n\t\tString actlName = lastName.getText().toString();\n\t\tString actDOB = startDate.getText().toString();\n\t\tString actEmail = email.getText().toString();\n\t\t//System.out.println(actfName.equals(mName));\n\t\tSystem.out.println(actlName.equals(lName));\n\t\tSystem.out.println(actDOB.equals(mDOB));\n\t\tSystem.out.println(actEmail.equals(mEmail));\n\t\t//Assert.assertEquals(actfName, mName);\n\t\t//Assert.assertEquals(actlName, lName);\n\t\t//Assert.assertEquals(actDOB, mDOB);\n\t\t//Assert.assertEquals(actEmail, mEmail);\n\t\tbackBtn.click();\n\t\t\n\t}", "private void validateCreateCustomer(CustomersInputDTO inputData, String formatDate) {\n if (inputData == null) {\n throw new CustomRestException(ConstantsCustomers.MSG_PARAMETER_VALUE_INVALID,\n CommonUtils.putError(\"inputData\", Constants.RIQUIRED_CODE));\n }\n List<Map<String, Object>> listValidate = new ArrayList<>();\n if (inputData.getCustomerName() == null || inputData.getCustomerName().isBlank()) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.PARAM_CUSTOMER_NAME, Constants.RIQUIRED_CODE));\n }\n if (inputData.getBusinessMainId() == null) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.PARAM_BUSINESS_MAIN_ID, Constants.RIQUIRED_CODE));\n }\n if (inputData.getBusinessSubId() == null) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.PARAM_BUSINESS_SUB_ID, Constants.RIQUIRED_CODE));\n }\n\n // build map parameters\n CommonValidateJsonBuilder jsonBuilder = new CommonValidateJsonBuilder();\n String validateJson = jsonBuilder.build(FieldBelongEnum.CUSTOMER.getCode(), (Map<String, Object>) null,\n buildParamsValidateCustomersInput(inputData, jsonBuilder), formatDate);\n String token = SecurityUtils.getTokenValue().orElse(null);\n String tenantName = jwtTokenUtil.getTenantIdFromToken();\n listValidate.addAll(CustomersCommonUtil.validateCommon(validateJson, restOperationUtils, token, tenantName));\n if (!listValidate.isEmpty()) {\n throw new CustomRestException(ConstantsCustomers.VALIDATE_MSG_FAILED, listValidate);\n }\n }", "@Test\n\tpublic void testValidate()\n\t{\n\t\tSystem.out.println(\"validate\");\n\t\tUserTypeCode userTypeCode = new UserTypeCode();\n\t\tuserTypeCode.setCode(\"Test\");\n\t\tuserTypeCode.setDescription(\"Test\");\n\n\t\tValidationModel validateModel = new ValidationModel(userTypeCode);\n\t\tvalidateModel.setConsumeFieldsOnly(true);\n\n\t\tValidationResult result = ValidationUtil.validate(validateModel);\n\t\tSystem.out.println(\"Any Valid consume: \" + result.toString());\n\t\tif (result.valid() == false) {\n\t\t\tAssert.fail(\"Failed validation when it was expected to pass.\");\n\t\t}\n\t\tSystem.out.println(\"---------------------------\");\n\n\t\tvalidateModel = new ValidationModel(userTypeCode);\n\t\tresult = ValidationUtil.validate(validateModel);\n\t\tSystem.out.println(\"Faild: \" + result.toString());\n\t}", "private void validateUpdateCustomer(CustomersInputDTO inputData, String formatDate) {\n List<Map<String, Object>> listValidate = new ArrayList<>();\n if (inputData == null) {\n throw new CustomRestException(ConstantsCustomers.MSG_PARAMETER_VALUE_INVALID,\n CommonUtils.putError(\"inputData\", Constants.RIQUIRED_CODE));\n }\n Long customerId = inputData.getCustomerId();\n if (inputData.getCustomerId() == null) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.CUSTOMER_ID, Constants.RIQUIRED_CODE));\n }\n // 1.2 Validate parent relation\n if (inputData.getParentId() != null && inputData.getParentId().longValue() > 0l) {\n if (!isSameParentId(customerId, inputData.getParentId())) {\n Long countRelParentId = customersRepository.countCustomerExistedWithParentId(inputData.getParentId(),\n customerId);\n if (ConstantsCustomers.NUMBER_CHECK_PARENT_ID.equals(countRelParentId)) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.CUSTOMER_PARENT,\n ConstantsCustomers.CUSTOMER_PARENT_INVAIL));\n }\n } else {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.CUSTOMER_PARENT,\n ConstantsCustomers.CUSTOMER_PARENT_INVAIL));\n }\n }\n // build map parameters\n CommonValidateJsonBuilder jsonBuilder = new CommonValidateJsonBuilder();\n String validateJson = jsonBuilder.build(FieldBelongEnum.CUSTOMER.getCode(), (Map<String, Object>) null,\n buildParamsValidateCustomersInput(inputData, jsonBuilder), formatDate);\n String token = SecurityUtils.getTokenValue().orElse(null);\n String tenantName = jwtTokenUtil.getTenantIdFromToken();\n listValidate.addAll(CustomersCommonUtil.validateCommon(validateJson, restOperationUtils, token, tenantName));\n if (!listValidate.isEmpty()) {\n throw new CustomRestException(ConstantsCustomers.VALIDATE_MSG_FAILED, listValidate);\n }\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void ValidateAdduserEmailidField() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the Email address Field validations and its appropriate error message\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDataspl\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreation()\n\t\t.validateEmailidField(userProfile);\t\t\t\t \t \t\t\t\t\t\t\n\t}", "@Override\n\tpublic void validate(Object obj, Errors errors) {\n\n\t\tUser user = (User) obj;\n\t\t\n\t\t // Check validate for values in form\n\t\tValidationUtils.rejectIfEmpty(errors, \"user_fullName\", \"user.user_fullName.emplty\");\n\t\tValidationUtils.rejectIfEmpty(errors, \"user_mail\", \"user.user_mail.emplty\");\n\t\tValidationUtils.rejectIfEmpty(errors, \"user_passWord\", \"user.user_passWord.emplty\");\n\t\tValidationUtils.rejectIfEmpty(errors, \"role_id\", \"user.role_id.emplty\");\n\n\t\tPattern pattern = Pattern.compile(\"^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\\\.[A-Z]{2,6}$\", Pattern.CASE_INSENSITIVE);\n\t\tif (!(pattern.matcher(user.getUser_mail()).matches())) {\n\t\t\terrors.rejectValue(\"user_mail\", \"user.user_mail.invalid\");\n\t\t}\n\n\t\tif (user.getUser_fullName().length() <= 3 || user.getUser_fullName().length() >= 50) {\n\t\t\terrors.rejectValue(\"user_fullName\", \"user.user_fullName.limit\");\n\t\t}\n\n\t\tif (user.getUser_passWord().length() <= 4 || user.getUser_passWord().length() >= 15) {\n\t\t\terrors.rejectValue(\"user_passWord\", \"user.user_passWord.limit\");\n\n\t\t}\n\n\t}", "public void testvalidateUserName0003()\n\t{\n\t\tLoginCheck loginCheckTest = new LoginCheck();\n\t\t\n\t\tassertFalse(loginCheckTest.validateUserName(\"username test greater than\"));\n\t}", "@Override\n\tpublic void validate(Object target, Errors errors) {\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(errors,\"nombre\",\"NotEmpty.usuario.nombre\");\n\t\t\n\t\t//if(usuario.getIdentificador().matches(\"[0-9]{2}[.][0-9]{3}[.][0-9]{3}[-][A-Z]{1}\") == false){\n\t\t//\terrors.rejectValue(\"identificador\", \"Pattern.usuario.identificador\");\n\t\t//}\n\t}", "@Test\n\t\tpublic static void givenFirstName_WhenProper_ShouldReturnTrue() {\n\t\t\tboolean result= ValidateUserDetails.validateFirstName(\"Priyanka\");\n\t\t\tAssertions.assertTrue(result);\n\n\t\t}", "@Test\n\t\tpublic void givenTwoLetters_CheckForValidation_ReturnFalse() {\n\t\t\tboolean result = ValidateUserDetails.validateFirstName(\"Pr\");\n\t\t\tAssertions.assertFalse(result);\n\t\t}", "public void validate() {\n\t\tlog(\"In validate of LoginAction\");\n\t\t//if (StringUtils.isEmpty(user.getUserId())) {\n\t if (StringUtils.isEmpty(userId)) {\t\n\t\t\tlog(\"In validate of LoginAction: userId is blank\");\n\t\t\taddFieldError(\"userId\", \"User ID cannot be blank\");\n\t\t}\n\t\t//if (StringUtils.isEmpty(user.getPassword())) {\n\t if (StringUtils.isEmpty(password)) {\n\t\t\tlog(\"In validate of LoginAction: password is blank\");\n\t\t\taddFieldError(\"password\", \"Password cannot be blank\");\n\t\t}\n\t\tlog(\"Completed validate of LoginAction\");\n\t}", "public static boolean validateCrewUser(String userId) throws SQLException, ParseException {\n String q1 = \"{call [sp_validateAndRetrieveUserBasedOnCrewId](?,?)}\";\n ArrayList<String> userValues = new ArrayList<>();\n ArrayList<String> dataTypes = new ArrayList<>();\n\n userValues.add(userId);\n dataTypes.add(\"string\");\n\n int validUser = db.callableStatementReturnInt(q1, userValues.toArray(new String[userValues.size()]),\n dataTypes.toArray(new String[dataTypes.size()]));\n\n return validUser > 0;\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tString mobilePattern =\"^[7-9]\\\\d{9}$\";\r\n\t\t\r\n\t\tString userNamePattern = \"^r[A-Za-z]+vi$\" ;\r\n\t\t\r\n\t\tString mobileNo;\r\n\t\tString userName;\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Please Enter Mobile No( 10 digits)\");\r\n\t \r\n\t\tmobileNo = scanner.next();\r\n\t\r\n\t Pattern mobile=Pattern.compile(mobilePattern);\r\n\t \r\n\t Matcher matcher = mobile.matcher(mobileNo);\r\n\t \r\n\t if(matcher.find()){\r\n\t \tSystem.out.println(\"Correct Formate\");\r\n\t }\r\n\t else\r\n\t {\r\n\t \tSystem.out.println(\"Wrong Mobile Number format!\");\r\n\t }\r\n\t \r\n\t \r\n\t System.out.println(\"Please Enter UserName( mandatory) ( it should be started with 'r' and follwed by any character and ends with \\\"vi\\\"\");\r\n\t\t \r\n\t\tuserName = scanner.next();\r\n\t\r\n\t Pattern userPattern=Pattern.compile(uaerNamePattern);\r\n\t \r\n\t matcher = userPattern.matcher(userName);\r\n\t \r\n\t \r\n\t if(matcher.find()){\r\n\t \tSystem.out.println(\"Correct Formate\");\r\n\t }\r\n\t else\r\n\t {\r\n\t \tSystem.out.println(\"Wrong userName format!\");\r\n\t }\r\n\t \r\n\t \r\n\t \r\n\t \r\n\t \r\n\t}", "public String validateDisplayUserName(String object, String data) {\n\t\tlogger.debug(\"check the display user name\");\n\t\tString username[] = null;\n\t\tString DisplayName = \"\";\n\t\tString build=\"\";\n\t\ttry {\n\t\t\tWebElement element = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object))));\n\t\t\tDisplayName = element.getText();\n\t\t\tlogger.debug(\"DisplayName--\" + DisplayName);\n\n\t\t\tusername = DisplayName.split(Constants.Object_SPLIT);\n\t\t\tif (!data.equals(username[1].trim())) {\n\t\t\t\tlogger.debug(\"login username \" + data + \" and display username\" + username[1] + \" is not matched\");\n\t\t\t\tAssert.assertFalse(true, \"login username \" + data + \" and display username\" + username[1] + \" is not matched\");\n\t\t\t}\n\n\t\t\tString version=(wait.until(explicitWaitForElement(By.xpath(OR.getProperty(\"build_version\")))).getText()).split(\":\")[1].trim(); // Modified By Karan on 28/07/2015\n\t\t\t\t\t\t\t\t\t\n\t\t\tif(version.contains(\"v\"))\n\t\t\t{\n\t\t\t\tbuild=version.split(\"v\")[1].trim();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuild=version;\n\t\t\t}\n\t\t\t\n\t\t\tlogger.debug(\"build value = \" + build);\t\n\t\t}\n\t\t\n\t\tcatch(ArrayIndexOutOfBoundsException aex)\n\t\t{\n\t\t\tbuild=\"N.A.\";\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ aex.getCause() + Constants.DATA_SPLIT + build;\n\t\t}\n\t\t\n\t\tcatch(TimeoutException ex)\n\t\t{\n\t\t\tbuild=\"N.A.\";\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause() + Constants.DATA_SPLIT + build;\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\n\t\t\tlogger.debug(\"DisplayName--\" + DisplayName);\n\t\t\treturn Constants.KEYWORD_FAIL + \"login username\" + data + \" and display username\" + username[1] + \" is not matched.\" + e.getMessage();\n\t\t}\n\t\treturn Constants.KEYWORD_PASS + Constants.DATA_SPLIT + build;\n\t}", "public void validate() {}", "public void validateInput(String fName, String lName, String zipCode, String employID){\n boolean firstname = firstNameTwoCharactersLong(fName);\n //boolean firstFilled = firstNameFilled\n boolean firstFilled = firstNameFilled(fName);\n //boolean lastname = lastNameTwoCharactersLong\n boolean lastname = lastNameTwoCharactersLong(lName);\n //boolean lastFilled = lastNameFilled\n boolean lastFilled = lastNameFilled(lName);\n //boolean the rest\n boolean employeeID = employeeIDValid(employID);\n boolean zCode = zipCodeValid(zipCode);\n\n //if all of them are valid=true then error prints \"there are no errors found\n if (firstname && firstFilled && lastname && lastFilled && employeeID && zCode){\n errorMessage = \"There were no errors found\";\n }\n //Display error message\n System.out.println(errorMessage);\n\n }", "private boolean checkValidations() {\n if (TextUtils.isEmpty(etFirstName.getText().toString().trim())) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.empty_name_war));\n return false;\n } else if (etPhoneNo.getText().length() > 0 && etPhoneNo.getText().toString().trim().length() < 7) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.valid_mo_no_war));\n return false;\n }\n /*else if (TextUtils.isEmpty(etAdress.getText().toString().trim())) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.empty_address_war));\n return false;\n } else if (countryId==null || countryId.equals(\"\")) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.country_war));\n return false;\n } else if (stateId==null || stateId.equals(\"\")) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.state_war));\n return false;\n }*/ /*else if (cityId==null || cityId.equals(\"\")) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.city_war));\n return false;\n }*/\n else\n return true;\n }", "protected void validateFirstName(){\n Boolean firstName = Pattern.matches(\"[A-Z][a-z]{2,}\",getFirstName());\n System.out.println(nameResult(firstName));\n }", "private void validateFields(){\n String email = edtEmail.getText().toString().trim();\n String number=edtPhone.getText().toString().trim();\n String cc=txtCountryCode.getText().toString();//edtcc.getText().toString().trim();\n String phoneNo=cc+number;\n // Check for a valid email address.\n\n\n if (TextUtils.isEmpty(email)) {\n mActivity.showSnackbar(getString(R.string.error_empty_email), Toast.LENGTH_SHORT);\n return;\n\n } else if (!Validation.isValidEmail(email)) {\n mActivity.showSnackbar(getString(R.string.error_title_invalid_email), Toast.LENGTH_SHORT);\n return;\n\n }\n\n if(TextUtils.isEmpty(phoneNo)){\n mActivity.showSnackbar(getString(R.string.error_empty_Mobile), Toast.LENGTH_SHORT);\n return;\n }\n if(!Validation.isValidMobile(phoneNo)){\n mActivity.showSnackbar(getString(R.string.error_title_invalid_Mobile), Toast.LENGTH_SHORT);\n return;\n }\n\n if(selectedCurrency==null){\n //mActivity.showSnackbar(getString(R.string.str_select_currency), Toast.LENGTH_SHORT);\n Snackbar.make(getView(),\"Currency data not found!\",Snackbar.LENGTH_LONG)\n .setAction(\"Try again\", new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n getAllCurrency();\n }\n }).show();\n return;\n }\n try {\n JsonObject object = new JsonObject();\n object.addProperty(KEY_EMAIL, email);\n object.addProperty(KEY_PHONE,phoneNo);\n object.addProperty(KEY_CURRENCY,selectedCurrency.getId().toString());\n updateUser(object,token);\n }catch (Exception e){\n\n }\n\n }", "public int userValidation(Validation v) {\r\n\t\tint a=0;\r\n\t\tString query=\"select * from user_registration where user_name='\"+v.getUsername() +\"' and password='\"+v.getPassword()+\"'\";\r\n\t\t\r\n\t\tRowMapper<Validation> rowMapper=new RowMapper<Validation>() {\r\n\r\n\t\t\tpublic Validation mapRow(ResultSet rs, int row) throws SQLException {\r\n\t\t\t\t Validation v=new Validation();\r\n\t\t\t\t v.setUsername(rs.getString(\"user_name\"));\r\n\t\t\t\t v.setPassword(rs.getString(\"password\"));\r\n\t\t\treturn v;\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\tList<Validation> list=jdbctemplate.query(query, rowMapper);\r\n\t\t\r\n\t\t a=list.size()>0?1:0;\r\n\t\treturn a;\r\n\t}", "public void validate(Object obj, Errors errors)\n {\n User user = (User) obj;\n //errors.rejectValue(\"userName\", \"error.userName.required\",\"User name or password incorrect!\");\n ValidationUtils.rejectIfEmptyOrWhitespace(errors, \"userName\", \"error.invalid.name\", \"UserName Required\");\n ValidationUtils.rejectIfEmptyOrWhitespace(errors, \"passWord\", \"error.invalid.password\", \"Password Required\");\n \n UserDAO userDao = new UserDAO();\n try {\n User temp = userDao.get(user.getUserName(), user.getPassWord());\n if(temp == null){\n errors.rejectValue(\"userName\", \"error.userName.required\",\"User name or password incorrect!\");\n }\n } catch (AdException ex) {\n Logger.getLogger(MyAccountValidator.class.getName()).log(Level.SEVERE, null, ex);\n errors.rejectValue(\"userName\", \"error.userName.required\",\"User or password incorrect!\");\n }\n userDao.close();\n }", "private boolean validateData() {\n boolean validData = true;\n\n String email = mUserEmail.getText().toString().trim();\n String name = mUserName.getText().toString().trim();\n String password = mUserPassword.getText().toString();\n\n // If the Name text field is empty or Name is less then 3 characters,\n // give user a error message\n if (TextUtils.isEmpty(name) || name.length() < 3) {\n mUserNameWrapper.setError(getString(R.string.text_layout_invalid_name));\n validData = false;\n } else {\n mUserNameWrapper.setErrorEnabled(false);\n }\n\n // If the email text field is empty or email address is not per EMAIL_ADDRESS pattern,\n // give user a error message\n if (TextUtils.isEmpty(email) || !android.util.Patterns.EMAIL_ADDRESS.matcher(email).matches()) {\n mUserEmailWrapper.setError(getString(R.string.text_layout_invalid_email));\n validData = false;\n } else {\n mUserEmailWrapper.setErrorEnabled(false);\n }\n\n // If the password text field is emory or password is not between 5 and 8 digits,\n // give user a error message\n if (TextUtils.isEmpty(password) || password.length() < 5 || password.length() > 8) {\n mUserPasswordWrapper.setError(getString(R.string.text_layout_invalid_password));\n validData = false;\n } else {\n mUserEmailWrapper.setErrorEnabled(false);\n }\n return validData;\n }", "private boolean validate() {\n if(edtMobileNumber.getText().toString().length() <= 0){\n edtMobileNumber.setFocusable(true);\n edtMobileNumber.setError(Constants.ERR_MSG_MOBILE);\n return false;\n }else if(edtFirstName.getText().toString().length() <= 0){\n edtFirstName.setFocusable(true);\n edtFirstName.setError(Constants.ERR_MSG_FIRST_NAME);\n return false;\n }else if(edtLastName.getText().toString().length() <= 0){\n edtLastName.setFocusable(true);\n edtLastName.setError(Constants.ERR_MSG_LAST_NAME);\n return false;\n }else if(edtDateOfBirth.getText().toString().length() <= 0){\n edtDateOfBirth.setFocusable(true);\n edtDateOfBirth.setError(Constants.ERR_MSG_DATE_OF_BIRTH);\n return false;\n }else if(edtEnterPin.getText().toString().length() <= 0){\n edtEnterPin.setFocusable(true);\n edtEnterPin.setError(Constants.ERR_MSG_PIN);\n return false;\n }else if(edtConfirmPin.getText().toString().length() <= 0){\n edtConfirmPin.setFocusable(true);\n edtConfirmPin.setError(Constants.ERR_MSG_CONFIRM_PIN);\n return false;\n }else if(spnStatus.getSelectedItemPosition() == 0){\n Toast.makeText(context, Constants.ERR_MSG_STATUS, Toast.LENGTH_SHORT).show();\n return false;\n }else if(spnBloodGroup.getSelectedItemPosition() == 0){\n Toast.makeText(context, Constants.ERR_MSG_BLOOD_GROUP, Toast.LENGTH_SHORT).show();\n return false;\n }else if(rgGender.getCheckedRadioButtonId() == -1){\n Toast.makeText(context,Constants.ERR_MSG_GENDER,Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "public static boolean registerAndValidateUser(String xpath, List<Param> params) throws NoSuchFieldException, SecurityException, Exception {\n\t\tboolean flag = false;\n\t\ttry {\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(0).getValue()), params.get(18).getValue());if(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(1).getValue()), params.get(19).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(2).getValue()), params.get(20).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(3).getValue()), params.get(21).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(4).getValue()), params.get(22).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(5).getValue()), params.get(23).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(6).getValue()), params.get(24).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(7).getValue()), params.get(25).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.selectValueInDropDownByCss(getefareORElement(params.get(8).getValue()), params.get(26).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(9).getValue()), params.get(27).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.selectValueInDropDownByCss(getefareORElement(params.get(10).getValue()), params.get(28).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(11).getValue()), params.get(29).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(12).getValue()), params.get(30).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(13).getValue()), params.get(31).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.clickCheckBoxByCss(getefareORElement(params.get(14).getValue()), params.get(32).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.selectValueInDropDownByCss(getefareORElement(params.get(15).getValue()), params.get(33).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(16).getValue()), params.get(34).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.clickBycssSelector(getefareORElement(params.get(17).getValue()));\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tThread.sleep(50000);\n\t\t\tString link = GmailUtility.getVerificationLinkFromGmail(params.get(35).getValue(), params.get(36).getValue());\n\t\t\tdriver.get(link);\n\n\t\t\tflag = true;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Exception was raised in registerAndValidateUser method and the exception is :\"+e);\n\t\t\tflag=false;\n\t\t}\n\t\treturn flag;\n\t}", "@Override\n public boolean validate()\n {\n return inRSArea(TUTORIAL_ISLAND_ACC_CREATOR);\n }", "public User validate(String emailID , String password);", "void validate(N ndcRequest, ErrorsType errorsType);", "@Test\n\t\tvoid givenTwoSmalls_CheckForValidationForLName_RetrunFalse() {\n\t\t\tboolean result = ValidateUserDetails.validateLastName(\"more\");\n\t\t\tAssertions.assertFalse(result);\n\t\t}", "@Override\n\tprotected void validators() {\n\t\tString nsrmc = getDj_nsrxx().getNsrmc();\n\n\t\tif (ValidateUtils.isNullOrEmpty(nsrmc)) {\n\t\t\tthis.setSystemMessage(\"纳税人名称不能为空\", true, null);\n\t\t}\n\n\t}", "private void validationNom(String nameGroup) throws FormValidationException {\n\t\tif (nameGroup != null && nameGroup.length() < 3) {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Le nom d'utilisateur doit contenir au moins 3 caractères.\");\n\t\t\tthrow new FormValidationException(\n\t\t\t\t\t\"Le nom d'utilisateur doit contenir au moins 3 caractères.\");\n\t\t}\n\n\t\t// TODO checker si le nom exist pas ds la bdd\n\t\t// else if (){\n\t\t//\n\t\t// }\n\t}", "public int getValidSpEmailUname(Validation v) {\r\n\t\tint a=0;\r\nString query=\"select * from sp_final where user_name='\"+v.getUsername() +\"' and email='\"+v.getEmail()+\"'\";\r\n\t\t\r\n\t\tRowMapper<Validation> rowMapper=new RowMapper<Validation>() {\r\n\r\n\t\t\tpublic Validation mapRow(ResultSet rs, int row) throws SQLException {\r\n\t\t\t\t Validation v=new Validation();\r\n\t\t\t\t v.setUsername(rs.getString(\"user_name\"));\r\n\t\t\t\t v.setEmail(rs.getString(\"email\"));\r\n\t\t\treturn v;\r\n\t\t\t}\r\n\t\t};\r\n\t\tList<Validation> list=jdbctemplate.query(query, rowMapper);\r\n\t\t a=list.size()>0?1:0; \r\n\t\treturn a;\r\n\t}", "@Override\n\tpublic void validate() {\n\t\tSystem.out.println(user+\"//\"+password);\n\t\tif (user == null || user.trim().equals(\"\")) {\n\t\t\taddFieldError(\"user\", \"The user is required\");\n\t\t}\n\t\tif (password == null || password.trim().equals(\"\")) {\n\t\t\taddFieldError(\"password\", \"password is required\");\n\t\t}\n\t}", "private String validarEntradas()\n { \n return Utilitarios.validarEntradas(campoNomeAC, campoEnderecoAC, campoBairroAC, campoCidadeAC, campoUfAC, campoCepAC, campoTelefoneAC, campoEmailAC);\n }", "void validate();", "void validate();", "private boolean isInfoValidate(){\n if(mEmailAddress.getText() == null || mEmailAddress.getText().toString().equals(\"\")){\n errorText = getString(R.string.register_warning_input_email_address);\n return false;\n }\n\n if(!mEmailAddress.getText().toString().contains(\"@\")){\n errorText = getString(R.string.register_warning_valid_email_address);\n return false;\n }\n\n// if(mRegionSpinner.getSelectedItemPosition() == Constant.NON_SELECT){\n// errorText = getString(R.string.register_warning_select_region);\n// return false;\n// }\n\n// if( (mRegionSpinner.getSelectedItemPosition() == Constant.HONG_KONG)\n// &&\n// (mEmailAddress.getText().toString().length() != Constant.HONGKONG_PHONE_LENGTH) ){\n//\n// errorText = getString(R.string.register_warning_valid_phone_num);\n// return false;\n// }\n//\n// if( (mRegionSpinner.getSelectedItemPosition() == Constant.CHINA)\n// &&\n// (mEmailAddress.getText().toString().length() != Constant.CHINA_PHONE_LENGTH) ){\n//\n// errorText = getString(R.string.register_warning_valid_phone_num);\n// return false;\n// }\n\n if(mPassword.getText() == null || mPassword.getText().toString().equals(\"\")){\n errorText = getString(R.string.register_warning_input_password);\n return false;\n }\n\n if(mRetypePassword.getText() == null || mRetypePassword.getText().toString().equals(\"\")){\n errorText = getString(R.string.register_warning_retype_password);\n return false;\n }\n\n if(!mPassword.getText().toString().equals(mRetypePassword.getText().toString())){\n errorText = getString(R.string.register_warning_not_the_same);\n return false;\n }\n\n if(!Utility.judgeContainsStr( mPassword.getText().toString())){\n errorText = getString(R.string.register_warning_contains_character);\n return false;\n }\n\n// if(!mPolicyCheckBox.isChecked()){\n// errorText = getString(R.string.register_warning_check_agreement);\n// return false;\n// }\n\n return true;\n }", "@Test\n\t\tvoid givenLasrName_CheckForValidationForLName_ReturnTrue() {\n\t\t\tboolean result = ValidateUserDetails.validateLastName(\"More\");\n\t\t\tAssertions.assertTrue(result);\n\t\t}", "public void testvalidateUserName0002()\n\t{\n\t\tLoginCheck loginCheckTest = new LoginCheck();\n\t\t\n\t\tassertTrue( loginCheckTest.validateUserName(\"username test\"));\n\t}", "public CredentialValidationResult validate(UsernamePasswordCredential unpc){\r\n \r\n \r\n return null;\r\n}", "@Test\n public void testUserIdIsNotBlank() {\n Owner testUser = ownerHelper.validateUser(\"\", \"Pa$$w0rd\");\n assertEquals(testUser, null);\n }", "private boolean isValidate() {\n name = edt_name.getText().toString();\n phone = edt_phone.getText().toString();\n landMark = edt_landmark.getText().toString();\n address = edt_address.getText().toString();\n city = edt_city.getText().toString();\n state = edt_state.getText().toString();\n if (name.length() == 0) {\n edt_name.setError(\"Please Enter Name \");\n requestFocus(edt_name);\n return false;\n } else if (phone.isEmpty()) {\n edt_phone.setError(\"Please Enter Phone Number \");\n requestFocus(edt_phone);\n return false;\n } else if (phone.length() != 10) {\n edt_phone.setError(\"Please Enter Valid Phone Number \");\n requestFocus(edt_phone);\n return false;\n } else if (address.length() == 0) {\n edt_address.setError(\"Please Enter Address\");\n requestFocus(edt_address);\n return false;\n } else if (city.length() == 0) {\n edt_city.setError(\"Please Enter City Name\");\n requestFocus(edt_city);\n return false;\n } else if (state.length() == 0) {\n edt_state.setError(\"Please Enter State Name\");\n requestFocus(edt_state);\n return false;\n }\n return true;\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyStdSpecificacctsPrepopulatedUserdetails() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the confirmation page of Add new user is getting displayed with prepopulated user details\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDatas\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUser_Creation()\n\t\t.VerifySpecificAccountsViewNames(userProfile);\t \t \t\t \t \t\t \t \t \t \t\t \t \t\t \t \t\t \t \t\t\n\t}", "@Override\r\npublic ValidationResponseDto validateUserName(String userId) {\n\treturn null;\r\n}", "private void validateFields() {\n\t\t// TODO validate ID\n\t\tboolean valid = (mEdtAddress.getText().length() > 2)\n\t\t\t\t&& (mEdtPassword.getText().length() > 0);\n\t\tmBtnNext.setEnabled(valid);\n\t}", "ValidationResponse validate();", "public String validateUser(String un) {\n\t\tUser checkForUser = userDao.findByUsername(un);\n\t\tif (checkForUser != null) {\t\t\t\t\t//user exists\n\t\t\treturn \"That username already exists\";\n\t\t}\n\t\telse {\n\t\t\t//validate username\n\t\t\tif(!User.isValidUsername(un)) {\n\t\t\t\treturn \"Username must be between 5 and 11 characters and contain 1 alpha\";\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private void checkValidation() {\n // Get email id and password\n MainActivity.EmailAddress = emailid.getText().toString();\n finalPassword = password.getText().toString();\n\n // Check patter for email id\n Pattern p = Pattern.compile(Utils.regEx);\n\n Matcher m = p.matcher(MainActivity.EmailAddress);\n\n // Check for both field is empty or not\n if (MainActivity.EmailAddress.equals(\"\") || MainActivity.EmailAddress.length() == 0\n || finalPassword.equals(\"\") || finalPassword.length() == 0) {\n loginLayout.startAnimation(shakeAnimation);\n new CustomToast().Show_Toast(getActivity(), view,\n \"Enter both credentials.\");\n\n }\n // Check if email id is valid or not\n else if (!m.find())\n new CustomToast().Show_Toast(getActivity(), view,\n \"Your Email Id is Invalid.\");\n // Else do login and do your stuff\n else\n tryLoginUser();\n\n }", "public void printValidateInformation() {\n\n if(!validateFirstName()){\n System.out.println(\"The first name must be filled in\");\n }\n if(!validateFirstNameLength()){\n System.out.println(\"The first name must be at least 2 characters long.\");\n }\n if(!validateLastName()){\n System.out.println(\"The last name must be filled in\");\n }\n if(!validateLastNameLength()){\n System.out.println(\"The last name must be at least 2 characters long.\");\n }\n if(!validateZipcode()){\n System.out.println(\"The zipcode must be a 5 digit number.\");\n }\n if (!validateEmployeeID()){\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n }\n\n if(validateFirstName() && validateFirstNameLength() && validateLastName() && validateLastNameLength()\n && validateZipcode() && validateEmployeeID()){\n System.out.println(\"There were no errors found.\");\n }\n }", "@Test\n public void searchUserAndValidateUserID(){\n String userId = searchForUser();\n if (userId == \"\" || userId == null) {\n Assert.assertFalse(userId == \"\");\n Assert.assertFalse(userId == null);\n }\n }", "private void checkValidation() {\n String getInstituteName = NameofInstitute.getText().toString();\n String getDegreename = SpinnerDegree.getSelectedItem().toString();\n\n\n // Check if all strings are null or not\n if (getInstituteName.equals(\"\") || getInstituteName.length() == 0 || getDegreename.equals(\"\") || getDegreename.length() == 0)\n new CustomToast().Show_Toast(getActivity(), getView(),\"All fields are required.\");\n // Else do signup or do your stuff\n else {\n //Toast.makeText(getActivity(), \"All Ok till Now\", Toast.LENGTH_SHORT).show();\n AddQualifications(getDegreename,getInstituteName);\n }\n\n }", "@Override\r\n\tpublic void validate(Object target, Errors errors) {\n\t\tUser user = (User) target;\r\n\t\t//System.out.println(\"user\"+user.getUsername());\r\n\t\tif(!StringUtils.hasText(user.getUsername()))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"uname\");\r\n\t\t\terrors.rejectValue(\"username\", \"error.username.empty\");\r\n\t\t}\r\n\t\tif(!StringUtils.hasText(user.getPassword()))\r\n\t\t{\t\r\n\t\t\tSystem.out.println(\"pwd\");\r\n\t\t\terrors.rejectValue(\"password\", \"error.password.empty\");}\r\n\t\t\r\n\t}", "public void validarRuc(FacesContext context, UIComponent component, Object value) throws ValidatorException {\r\n //921999488001\r\n String ruc=\"\";\r\n boolean t;\r\n ruc = value.toString();\r\n \r\n if(ruc.length() == 12){\r\n ruc = \"0\"+ruc;\r\n }\r\n \r\n if(ruc.length() == 13){\r\n \r\n t = Validaciones.validacionCedula(ruc);\r\n if (t) {\r\n //Codigo para autocompletar una empresa\r\n //emp.setNombre_empresa(\"funciono\");\r\n } else {\r\n FacesMessage msg = new FacesMessage(\"RUC no valido\");\r\n msg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\r\n throw new ValidatorException(msg);\r\n }\r\n }\r\n }", "private boolean validate(RegisterRequest clientRequest) {\r\n boolean isValid = true;\r\n if(clientRequest.getUserName() == null || clientRequest.getUserName().length() == 0) {\r\n isValid = false;\r\n }\r\n if(clientRequest.getPassword() == null || clientRequest.getPassword().length() == 0) {\r\n isValid = false;\r\n }\r\n if(clientRequest.getEmail() == null || clientRequest.getEmail().length() == 0) {\r\n isValid = false;\r\n }\r\n if(clientRequest.getFirstName() == null || clientRequest.getFirstName().length() == 0) {\r\n isValid = false;\r\n }\r\n if(clientRequest.getLastName() == null || clientRequest.getLastName().length() == 0) {\r\n isValid = false;\r\n }\r\n if(!clientRequest.getGender().equals(\"m\") && !clientRequest.getGender().equals(\"f\")) {\r\n isValid = false;\r\n }\r\n return isValid;\r\n }", "public void validateUserName(FacesContext context, UIComponent validate, Object value){\n\t\tcheckHibernateAnnotations(context, validate, value);\t\t\t\t\n\t\tString username=(String)value;\n\t\tif (!isUsernameAvailable(username)) {\n\t\t\tFacesMessage msg = new FacesMessage(\"ice username already taken\");\n\t\t\tcontext.addMessage(validate.getClientId(context), msg);\n\t\t\tusernameValid=false;\n\t\t}else usernameValid=true;\n\t}", "public String userTypeValidation(String arg_userType) {\n\t\tString userType = null;\n\n\t\tswitch (arg_userType) {\n\t\tcase \"AD\":\n\t\tcase \"ad\":\n\t\t\tuserType = \"ADMIN\";\n\t\t\tbreak;\n\t\tcase \"CC\":\n\t\tcase \"cc\":\n\t\t\tuserType = \"COORDINATOR\";\n\t\t\tbreak;\n\t\tcase \"AP\":\n\t\tcase \"ap\":\n\t\t\tuserType = \"APPROVER\";\n\t\t\tbreak;\n\t\tcase \"CA\":\n\t\tcase \"ca\":\n\t\t\tuserType = \"CASUAL\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\treturn userType;\n\t}", "@Test\n\tpublic void testValidate() {\n\t\tSystem.out.println(\"starting testValidate()\");\n\t\tPersonalData personalData = new PersonalData(\"Kelvin\", \"Huynh\", \"4081234567\", \"[email protected]\");\n\t\tassertTrue (\"address validates\", personalData.validatePersonalData());\n\t System.out.println(\"testValidate PASSED\");\n\t}", "@Test\n public void testUserIdExists() {\n\n String userInput = \"guest.login\";\n Owner testUser = ownerHelper.validateUser(userInput, \"Pa$$w0rd\");\n assertEquals(testUser.getPassword(), owner3.getPassword());\n assertEquals(testUser.getFirstName(), owner3.getFirstName());\n assertEquals(testUser.getLastName(), owner3.getLastName());\n\n }", "void validateMobileNumber(String stringToBeValidated,String name);", "public boolean isRegiInfoValid() {\n\n\t\tboolean isValid = true;\n \n\t\t// userName\n\t\tif (this.userName == null || this.userName.trim().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t\terrors.put(\"userName\", \"cannot be empty\");\n\t\t} else {\n\t\t\tif (!this.userName.matches(\"[0-9a-zA-Z]{1,20}\")) {\n\t\t\t\tisValid = false;\n\t\t\t\terrors.put(\"userName\", \"only can contain numbers and letters\");\n\t\t\t}\n\t\t}\n\n\t\t// userPwd\n\t\tif (this.userPwd == null || this.userPwd.trim().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t\terrors.put(\"userPwd\", \"cannot be empty\");\n\t\t} else {\n\t\t\tif (!this.userPwd.matches(\"[\\\\d|a-zA-Z]{6,12}\")) {\n\t\t\t\tisValid = false;\n\t\t\t\terrors.put(\"userPwd\", \"only can contain 3~12 numbers and letters\");\n\t\t\t}\n\t\t}\n\n\t\t// confirmPwd must be the same with userPwd\n\t\tif (this.confirmPwd != null) {\n\t\t\tif (!this.confirmPwd.equals(this.userPwd)) {\n\t\t\t\tisValid = false;\n\t\t\t\terrors.put(\"confirmPwd\", \"different password\");\n\t\t\t}\n\t\t}\n\n\t\treturn isValid;\n\t}", "@Override\r\n\tpublic boolean checkUser(User user) {\n\t\tint age = user.getAge();\r\n\t\tint height = user.getHeight();\r\n\t\tint weight = user.getWeight();\r\n\t\tString country =user.getCountry();\r\n\t\t if((age>=18 && age<=35) && (height>=155 && height<=170) && (weight>=55 && weight<=90) && country.equals(\"ProGrad\")) \r\n\t\t\t return true;\r\n\t\t else \r\n\t\t\t return false;\r\n\t }", "public Validation(model.User.StringData user) {\n // validationUtils method validates each user input (String even if destined for other type) from WebUser object\n // side effect of validationUtils method puts validated, converted typed value into TypedData object\n this.user = user;\n\n // this is not needed for insert, but will be needed for update.\n if (user.fantasyUserId != null && user.fantasyUserId.length() != 0) {\n this.fieldErrors.fantasyUserId = model.User.ValidationUtils.integerValidationMsg(user.fantasyUserId, true);\n }\n this.fieldErrors.fname = model.User.ValidationUtils.stringValidationMsg(user.fname, 45, true);\n this.fieldErrors.lname = model.User.ValidationUtils.stringValidationMsg(user.lname, 45, true);\n this.fieldErrors.email = model.User.ValidationUtils.stringValidationMsg(user.email, 45, true);\n this.fieldErrors.password = model.User.ValidationUtils.stringValidationMsg(user.password, 45, true);\n this.fieldErrors.passwordConf = model.User.ValidationUtils.stringValidationMsg(user.passwordConf, 45, true);\n \n if (user.password.compareTo(user.passwordConf) != 0) {\n this.fieldErrors.passwordConf = \"Both passwords must match.\";\n }\n \n \n String allMessages = this.fieldErrors.getAllStrings();\n //System.out.println(allMessages);\n this.valid = (allMessages.length() == 0);\n }", "private boolean validateInput(){\n boolean result = false;\n\n if(!us.setUsername(userField.getText())){\n errorLabel.setText(\"Nombre de usuario invalido\");\n } else if(!us.setPassword(passField.getText())){ //Valido 1 por uno los campos que ingreso el usuario\n errorLabel.setText(\"Contraseña invalida\");\n } else if(!us.setName(nameField.getText())){\n errorLabel.setText(\"Nombre Invalido\");\n } else if(!us.setSurname(surnameField.getText())){\n errorLabel.setText(\"Apellido Invalido\");\n } else if(!us.setDni(dniField.getText())){\n errorLabel.setText(\"Dni invalido\");\n } else if(!ageField.getText().matches(\"\\\\d{2}\")){\n errorLabel.setText(\"Edad invalida\");\n }\n else{\n us.setAge(Integer.parseInt(ageField.getText()));\n result = true;\n }\n return result;\n }", "@When(\"^user should enter the valid username in the loginpage$\")\n\tpublic void user_should_enter_the_valid_username_in_the_loginpage() throws Throwable {\n\t inputValuestoElement(pa.getAp().getUsernamedisplay(), \"Srini1010\");\n\t}", "@Override\n public void displayInvalidUser() {\n Toast.makeText(this, \"Username cannot be blank or contain $\", Toast.LENGTH_LONG).show();\n }" ]
[ "0.6759888", "0.6549214", "0.6479061", "0.64065266", "0.63328004", "0.6307085", "0.6281728", "0.62321603", "0.6223951", "0.62192404", "0.6215264", "0.6143726", "0.6134415", "0.61230487", "0.61161053", "0.6093587", "0.60765755", "0.606998", "0.60617256", "0.60589206", "0.60519755", "0.60362935", "0.60222554", "0.60136837", "0.5986606", "0.59700495", "0.59636843", "0.5957781", "0.59468853", "0.5943556", "0.59417915", "0.59314907", "0.5930806", "0.5930376", "0.5924075", "0.59200835", "0.59149224", "0.5902351", "0.5890116", "0.58230233", "0.582201", "0.5821529", "0.58002836", "0.57920474", "0.57862186", "0.57740706", "0.5761691", "0.5733674", "0.5724542", "0.5706985", "0.5704709", "0.5696846", "0.5677655", "0.56768847", "0.5676824", "0.56657493", "0.5654067", "0.56531924", "0.5648645", "0.56478953", "0.56466675", "0.5646404", "0.56436706", "0.5638309", "0.5637989", "0.56291837", "0.5625421", "0.56149566", "0.5606481", "0.5604018", "0.5604018", "0.55949676", "0.55944943", "0.558876", "0.558637", "0.55728304", "0.5571216", "0.55549204", "0.5552462", "0.5550844", "0.55485225", "0.5545645", "0.55444765", "0.554015", "0.55387735", "0.55354816", "0.55351454", "0.5531528", "0.5521839", "0.5518589", "0.55169016", "0.55143446", "0.5512962", "0.55070204", "0.55051017", "0.5498407", "0.54950666", "0.5494678", "0.5492341", "0.5479614" ]
0.6853692
0
Validation Functions Description : To validate the Accessibility Need of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:AccessibilityNeed
public void validate_the_Accessibility_Need_of_Security_in_Customer_Tab(String AccessibilityNeed)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Accessibility Need").replaceAll("M_InnerText", AccessibilityNeed), "Accessibility Need - "+AccessibilityNeed, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }", "private void validateData() {\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "public void validate() {\n ASPManager mgr = getASPManager();\n ASPTransactionBuffer trans = mgr.newASPTransactionBuffer();\n ASPCommand cmd;\n String val = mgr.readValue(\"VALIDATE\");\n// String PRICE = \"\";\n \n \n if (\"CONTRACT_ID\".equals(val)) {\n cmd = trans.addCustomFunction(\"GETCONTRACTNAME\", \n \"PROJECT_CONTRACT_API.Get_Contract_Desc\", \"CONTRACT_NAME\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n cmd = trans.addCustomFunction(\"GETSECONDSIDE\", \n \"PROJECT_CONTRACT_API.Get_Secend_Side\", \"SECOND_SIDE\");\n cmd.addParameter(\"PROJ_NO,CONTRACT_ID\");\n \n trans = mgr.validate(trans);\n String contractName = trans.getValue(\"GETCONTRACTNAME/DATA/CONTRACT_NAME\");\n String SECONDSIDE = trans.getValue(\"GETSECONDSIDE/DATA/SECOND_SIDE\");\n trans.clear();\n cmd = trans.addCustomFunction(\"GETSECONDSIDENAME\", \n \"SUPPLIER_INFO_API.GET_NAME\", \"SECOND_SIDE_NAME\");\n cmd.addParameter(\"SECOND_SIDE\",SECONDSIDE);\n \n trans = mgr.validate(trans);\n \n String SECONDSIDENAME = trans.getValue(\"GETSECONDSIDENAME/DATA/SECOND_SIDE_NAME\");\n\n String txt = ((mgr.isEmpty(contractName)) ? \"\" : contractName ) + \"^\"\n + ((mgr.isEmpty(SECONDSIDE)) ? \"\" : SECONDSIDE ) + \"^\" \n + ((mgr.isEmpty(SECONDSIDENAME)) ? \"\" : SECONDSIDENAME ) + \"^\";\n \n mgr.responseWrite(txt);\n }\n mgr.endResponse();\n }", "@Test\r\n\tpublic void view3_todays_table_data_validation()\r\n\t{\t\r\n\t\t//Key on which we have to validate other values.\r\n\t\tString key = \"CML Service Level\";\r\n\r\n\t\t//Initialize Elements of tables and their columns data.\r\n\r\n\t\t//Table 1 - Data\r\n\t\tList<WebElement> data_of_table2 = driver.findElements(view3_todays_table_data_val);\r\n\t\t//Table 1 - Colums\r\n\t\tList<WebElement> col_of_table2 = driver.findElements(By.xpath(view3_today_data_table));\r\n\t\t//Validating N/A and integer for columns\r\n\t\thelper.data_validate_Down(driver, key , col_of_table2, data_of_table2 );\r\n\t}", "@Then(\"^Validate the fields present in the result page$\") // Move to UserStep Definition\r\n\tpublic void attribute_validation(){\r\n\t\tenduser.attri_field();\r\n\t}", "@Test\r\n\tpublic void view3_current_table_data_validation()\r\n\t{\t\r\n\t\t//Key on which we have to validate other values.\r\n\t\tString key = \"Calls In Queue\";\r\n\t\t//Text on which we will fetch other tables columns\r\n\t\tString check_text = \"Agents\";\r\n\r\n\t\t//Initialize Elements of tables and their columns data.\r\n\r\n\t\t//Table 1 - Data\r\n\t\tList<WebElement> data_of_table1 = driver.findElements(view3_Current_table_data_val);\r\n\t\t//Table 1 - Columns\r\n\t\tList<WebElement> col_of_table1 = driver.findElements(By.xpath(view3_curr_data_table));\r\n\t\t//Removing Column data from another table.\r\n\t\tdata_of_table1 = helper.modify_cols_data_of_table(col_of_table1, data_of_table1 , check_text );\r\n\t\t//Validating N/A and integer for columns\r\n\t\thelper.data_validate_Down(driver, key , col_of_table1, data_of_table1 );\r\n\t}", "@Test\r\n\tpublic void view3_COEs_table_data_validation()\r\n\t{\t\r\n\t\t//Key on which we have to validate other values.\r\n\t\tString key = \"Calls In Queue\";\r\n\t\t//Text on which we will fetch other tables columns\r\n\t\tString check_text = \"Agents\";\r\n\r\n\t\t//Initialize Elements of tables and their columns data.\r\n\t\t//Table 3 - Data .\r\n\t\tList<WebElement> data_of_table3 = driver.findElements(view3_COEs_table_data_val);\r\n\t\t//Table 3 - Columns\r\n\t\tList<WebElement> col_of_table3 = driver.findElements(By.xpath(view3_curr_agent_stats_col));\r\n\t\t//Table 1 - Data\r\n\t\tList<WebElement> updated_col_table1 = driver.findElements(view3_Current_table_data_val);\r\n\t\t//Table 1 - Colums\r\n\t\tList<WebElement> col_of_table1 = driver.findElements(By.xpath(view3_curr_data_table));\r\n\t\t\r\n\t\t//Adding Column data from another table.\r\n\t\tdata_of_table3 = helper.modify_cols_data_of_table(col_of_table1, data_of_table3, updated_col_table1 , check_text );\r\n\t\t//Validating N/A and integer for columns\r\n\t\thelper.data_validate_Down(driver, key , col_of_table3, data_of_table3 );\r\n\t}", "public boolean Validate() {\n String[] testArr = {titleTxf.getText(), fNameTxf.getText(), sNameTxf.getText(),\n initialTxf.getText(), hNumTxf.getText(), cNumTxf.getText(), emailTxf.getText(), idNumTxf.getText(),\n (String) maritalCbx.getSelectedItem(), \n resTxf1.getText() + \"\" + resTxf2.getText(), zipResTxf.getText(),postTxf1.getText() + \"\" + postTxf2.getText(),\n zipPostTxf.getText() };\n\n // verify user has entered data into required fields\n String inputTest = \"\";\n\n for (int i = 0; i < testArr.length; i++) {\n if (testArr[i].equals(inputTest)) {\n\n JOptionPane.showMessageDialog(rootPane, \"please fill in all required fields\", \"ERROR\", ERROR_MESSAGE);\n \n return false;\n \n\n }\n \n \n }\n //verify Home number\n if(hNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Home number\", \"ERROR\", ERROR_MESSAGE);\n errHNum.setText(\"!\");\n \n return false;\n }\n else{\n errHNum.setText(\"\");\n }\n //verify CellNo\n if(cNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Cellphone number\", \"ERROR\", ERROR_MESSAGE);\n errCNum.setText(\"!\");\n \n return false;\n \n }\n else{\n errCNum.setText(\"\");\n }\n //verify email\n String email =emailTxf.getText(); \n if(!email.contains(\"@\")|| !email.contains(\".\")){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild email address\", \"ERROR\", ERROR_MESSAGE);\n errEmail.setText(\"!\");\n return false;\n }\n else{\n errEmail.setText(\"\");\n }\n \n //verify ID No. (Local)\n String ID = idNumTxf.getText();\n if(ID.length()!=13){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild ID number\", \"ERROR\", ERROR_MESSAGE);\n errID.setText(\"!\");\n return false;\n }\n else{\n errID.setText(\"\");\n }\n \n if(zipResTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipRes.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipRes.setText(\"\");\n }\n if(zipPostTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipPost.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipPost.setText(\"\");\n }\n \n \n return true;\n\n }", "public void validateCreateCustomerAndTask() {\n\t\tAttSelectNewCustomerOptionFromListBox.click();\n\t\tAttCustomerNameTextBox.sendKeys(\"TestCust\");\n\t\tAttProjectNameTextBox.sendKeys(\"TestProject\");\n\t\tAttTaskNameTextBox.sendKeys(\"Tast1WCNP\");\n\t\tAttBudgetTimeTextBox.sendKeys(\"3:00\");\n\t\tAttEnterDateInDateField.sendKeys(Keys.ENTER,\"Jan 27, 2019\");\n\t\tAttSelectBillableBillingType.click();\n\t\tAttSelectCheckBoxMarkToBeAdd.click();\n\t\tAttCreateTaskBtn.click();\n\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void EditViewLessthan15AcctsErrorValidation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether proper error message is displayed in view when continuing with out enabling the accounts check box\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvManageView\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t\t.clicktestacct();\n\t\t/*.ClickManageUserLink()\n\t\t.ManageViews()\n\t\t.VerifyEditviewname(userProfile)\n\t\t.EditViewNameErrorValidation(userProfile); \t \t\t\t\t\t\t \t \t\t\n\t}*/\n\t}", "@Test\n public void test10020ATS001ValidationofDatefieldsinPayHistory() throws Exception {\n driver.get(\"http://Clarity\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_UserNameTextBox\")).clear();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_UserNameTextBox\")).sendKeys(\"02.08.09\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_PasswordTextBox\")).clear();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_PasswordTextBox\")).sendKeys(\"password\");\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_LoginButton\")).click();\n driver.findElement(By.id(\"ctl00_ContentPlaceHolder_btnLogin\")).click();\n //driver.findElement(By.linkText(\"Select\")).click();\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*How much is my pension[\\\\s\\\\S][\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).clear();\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).sendKeys(\"02/10/20\");\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*Start date is later than end date\\\\.[\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).clear();\n driver.findElement(By.id(\"ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate\")).sendKeys(\"25/07/2017\");\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).clear();\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate\")).clear();\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate\")).sendKeys(\"02/10/2\");\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).sendKeys(\"02/10/2\");\n //driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton\")).click();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton']\")).click();\n Thread.sleep(1000);\n // Warning: verifyTextPresent may require manual changes\n try {\n assertTrue(driver.findElement(By.cssSelector(\"BODY\")).getText().matches(\"^[\\\\s\\\\S]*End Date is not recognized as a valid date\\\\.[\\\\s\\\\S]*$\"));\n } catch (Error e) {\n verificationErrors.append(e.toString());\n }\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='navigation']/li[3]/span/a\")).click();\n driver.findElement(By.linkText(\"How much is my pension?\")).click();\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate']\")).clear();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDate']\")).sendKeys(\"21221\\\"\\\"\\\"\");\n Thread.sleep(1000);\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).clear();\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_EndDate']\")).sendKeys(\"wewe\\\"\\\"\\\"\");\n driver.findElement(By.xpath(\".//*[@id='ctl01_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_goButton']\")).click();\n Thread.sleep(1000);\n //try {\n //assertTrue(driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_ContentPlaceHolder_StartDateTypeValidator\")).getText().matches(\"^exact:[\\\\s\\\\S]*$\"));\n //} catch (Error e) {\n // verificationErrors.append(e.toString());\n //}\n // ERROR: Caught exception [Error: locator strategy either id or name must be specified explicitly.]\n driver.findElement(By.id(\"ctl00_ctl00_BaseContentPlaceHolder_LoginStatus\")).click();\n }", "private boolean validateFields(){ \n ImplLogger.enterMethod(); \n StringBuffer validationMessage = new StringBuffer();\n boolean isValidationPassed = true;\n if(!ImplValidationUtils.isAlphaSpace(pharmaNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_NAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n pharmaNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n } \n if(!ImplValidationUtils.isAlphabetOnly(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplCommonUtil.isUserNameExist(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME_EXIST);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(contactTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_CONTACT);\n validationMessage.append(ImplConst.NEXT_LINE);\n contactTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(zipCodeTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_ZIPCODE);\n validationMessage.append(ImplConst.NEXT_LINE);\n zipCodeTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(passwordField.getText())){\n validationMessage.append(ImplConst.VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n passwordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n confirmPasswordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if (!ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText()) && !confirmPasswordField.getText().equals(passwordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n isValidationPassed = false; \n }\n if(!isValidationPassed){\n JOptionPane.showMessageDialog(null,validationMessage);\n } \n ImplLogger.exitMethod();\n return isValidationPassed;\n }", "private boolean validate(){\n return EditorUtils.editTextValidator(generalnformation,etGeneralnformation,\"Type in information\") &&\n EditorUtils.editTextValidator(symptoms,etSymptoms, \"Type in symptoms\") &&\n EditorUtils.editTextValidator(management,etManagement, \"Type in management\");\n }", "public void VerifyRecapBillinfo(){\r\n\t\tString BillingName = getValue(\"FirstName\")+\" \"+getValue(\"LastName\");\r\n\t\tString Companyname = getValue(\"CompanyName\");\r\n\t\tString Address = getValue(\"Address\");\r\n\t\tString ZipCity = getValue(\"Zip\")+\" , \"+getValue(\"City\");\r\n\t\tString CardType= getValue(\"CardType\");\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- shopping cart image link should be clicked\");\r\n\r\n\r\n\t\ttry{\r\n\t\t\tString[] BD=getWebTableData(locator_split(\"txtRecapBillinfo\"), locator_split(\"txtRecapBillinfodata\"));\r\n\t\t\tif(BD[1].equalsIgnoreCase(BillingName)&&BD[2].equalsIgnoreCase(Companyname)\r\n\t\t\t\t\t&&BD[3].equalsIgnoreCase(Address)&&BD[5].equalsIgnoreCase(ZipCity)\r\n\t\t\t\t\t&&BD[6].contains(CardType)){\r\n\t\t\t\tSystem.out.println(\"The data from Web matches with Excel Registration data\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- The data from Web matches with Excel Registration data\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tReporter.log(\"FAIL_MESSAGE:- The data from Web dosent match with Excel Registration data\");\r\n\t\t\t\tthrow new Exception(\"The data from Web dosent match with Excel Registration data\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- shopping cart image link is not clicked \");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtRecapBillinfo\")\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtRecapBillinfodata\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}", "public PaymentRequestPage paymentRequestPaymentAvailabilityValidation(String cashbackType,String cashbackValue,String rewardsValue) {\r\n\r\n\t\tString actual = \"\";\r\n\r\n\t\treportStep(\"About to validate the Cashback and Rewards Payment avilablity section in the payment Request page \", \"INFO\");\r\n\r\n\t\tswitch (cashbackType) {\r\n\r\n\t\tcase \"Only_Cashback\":\r\n\r\n\t\t\tvalidateTheElementPresence(cashbackAvailableForPaymentText);\r\n\r\n\t\t\tactual = getText(totalcashbackAvailableForPaymentAmount);\r\n\r\n\t\t\tvalidateTheActualValueContainsExpectedValue(actual, cashbackValue);\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"Only_Rewards\":\r\n\r\n\t\t\tvalidateTheElementPresence(rewardsAvailableForPaymentText);\r\n\r\n\t\t\tactual = getText(totalcashbackAvailableForPaymentAmount);\r\n\r\n\t\t\tvalidateTheActualValueContainsExpectedValue(actual, rewardsValue);\r\n\r\n\t\t\tbreak;\r\n\r\n\r\n\t\tcase \"BothCashback_Rewards\":\r\n\r\n\t\t\tfloat cashbackAmount = Float.parseFloat(cashbackValue);\r\n\t\t\tfloat rewardsAmount = Float.parseFloat(rewardsValue);\r\n\t\t\tfloat totalAmount = cashbackAmount + rewardsAmount ;\r\n\r\n\t\t\tString strTotalAmount = Float.toString(totalAmount) + \"0\";\r\n\t\t\tString strOnlyCashbackAmount = Float.toString(cashbackAmount) + \"0\";\r\n\t\t\tString strOnlyRewardsAmount = Float.toString(rewardsAmount) + \"0\";\r\n\r\n\r\n\t\t\tvalidateTheElementPresence(rewardsAvailableForPaymentText);\r\n\t\t\tvalidateTheElementPresence(cashbackText);\r\n\t\t\tvalidateTheElementPresence(rewardsText);\r\n\r\n\t\t\t//validate total cashback amount\r\n\t\t\tactual = getText(totalcashbackAvailableForPaymentAmount);\r\n\t\t\tvalidateTheActualValueContainsExpectedValue(actual, strTotalAmount);\r\n\r\n\t\t\t//validate only cashback amount\r\n\t\t\tactual = getText(cashbackAvailableForPaymentAmount);\r\n\t\t\tvalidateTheActualValueContainsExpectedValue(actual, strOnlyCashbackAmount);\r\n\r\n\r\n\t\t\t//validate only rewards amount\r\n\t\t\tactual = getText(rewardsAvailableForPaymentAmount);\r\n\t\t\tvalidateTheActualValueContainsExpectedValue(actual, strOnlyRewardsAmount);\r\n\r\n\t\t\tbreak;\r\n\r\n\r\n\t\t}\r\n\r\n\t\treturn this;\r\n\r\n\t}", "public void validate() {}", "private void validateFields() {\n\t\t// TODO validate ID\n\t\tboolean valid = (mEdtAddress.getText().length() > 2)\n\t\t\t\t&& (mEdtPassword.getText().length() > 0);\n\t\tmBtnNext.setEnabled(valid);\n\t}", "public void validateRpd11s1()\n {\n // This guideline cannot be automatically tested.\n }", "@Override\r\n\tpublic boolean isValid(String code, ConstraintValidatorContext theConstaint) {\r\n \r\n titles = customerService.getTitles();\r\n \r\n for(String i : titles)\r\n {\r\n \tSystem.out.println(i);\r\n }\r\n //descriptions = ec.getDescriptions();\r\n for(String i : titles)\r\n {\r\n\t result = code.equals(i);\r\n\t\tif(code != null)\t\t\r\n\t\t\tresult = code.equals(i);\r\n\t\telse\r\n\t\t\tresult = true;\r\n\t\tif(result == true)\r\n\t\t\tbreak;\r\n }\r\n\t\treturn result;\r\n\t}", "public void validateRpd15s1()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd14s1()\n {\n // This guideline cannot be automatically tested.\n }", "public void validate(){\r\n\t\ttry{\r\n\t\t\t//First name, last name, date of birth and email are compulsory.\r\n\t\tif(FirstName==null||LastName==null||Dob==null||Email==null) \r\n\t\t\tthrow new Exception(\"One of the field is Empty :\\n(First name / last name / dob / email )\");\r\n\t\tif(TelephoneNumber!=0||MobileNumber!=0)\r\n\t\t\tthrow new Exception(\"Enter Contact Number\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\t/*finally{\r\n\t\t\tSystem.out.println(\"Program Executed\");\r\n\t\t}*/\r\n\t}", "public void validateRpd15s2()\n {\n // This guideline cannot be automatically tested.\n }", "private boolean validateVisa() {\r\n\t\tString creditCardNumber = getCreditCardNumber();\r\n\t\t// checking the card number length\r\n\t\tif (creditCardNumber.length() != 13 && creditCardNumber.length() != 16 && creditCardNumber.length() != 19) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t// checking the validity of the credit card number\r\n\t\tif (creditCardNumber.charAt(0) != '4') {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "void validate();", "void validate();", "private boolean validateInput(){\n Window owner=root.getScene().getWindow();\n inputFileds.addAll(txtfn,txtln,txtsurname,txtDOB,txtResidence,txtMobile,txtID,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().isEmpty()){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n inputFileds.removeAll(txtDOB,txtMobile,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().length()>30){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Sorry the text you entered can not be greater that 30 characters\",\"Text too Long\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n if(username.getText().length()>20 || username.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Username has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid input\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n if(pass.getText().isEmpty()){\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n if(pass.getText().length()>20 || pass.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Password has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n SimpleDateFormat yearFormat = new SimpleDateFormat(\"yyyy\");\n try {\n date = dateFormat.parse(txtDOB.getText());\n Calendar cal=Calendar.getInstance();\n int year=Integer.parseInt(yearFormat.format(date));\n if (year <= 1900 || year>cal.get(Calendar.YEAR)) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n String initialEntry=txtDOB.getText();\n String parsedValue=dateFormat.format(date);\n if(!initialEntry.equals(parsedValue)){\n Dialog.showMessageDialog(owner, \"Note your Date of Birth has been corrected\", \"Date Corrected\",DialogIcon.INFORMATION);\n }\n txtDOB.setText(dateFormat.format(date));\n } catch (ParseException ex) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n try {\n int mobile=Integer.parseInt(txtMobile.getText());\n } catch (NumberFormatException e) {\n Dialog.showMessageDialog(owner, \"Invalid Mobile Number\", \"Invalid data\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n if(txtMobile.getText().length() != 10){\n Dialog.showMessageDialog(owner, \"Sorry your Mobile Number is invalid\", \"Invalid input\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n String sql=\"select Username,Password from users where Username=?\";\n try(PreparedStatement prstmt=con.prepareStatement(sql)) {\n prstmt.setString(1, username.getText());\n ResultSet rs=prstmt.executeQuery();\n if(rs.next()){\n Dialog.showMessageDialog(owner, \"Sorry Username already exists\\n Please change to different Username\", \"Username Exists\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n rs.close();\n } catch (SQLException e) {\n System.err.println(e);\n }\n return true;\n }", "@Override\n protected boolean validater(String[] line) {\n if (line.length != 9) {\n errorCounter(0);\n return false;\n }\n\n changeNulls(line);\n\n if (!isAirlineValid(line[airline])) {\n errorCounter(1);\n return false;\n }\n\n if (!isAirlineIDValid(line[airlineID])) {\n errorCounter(2);\n return false;\n }\n\n if (!isAirportValid(line[sourceAirport])) {\n errorCounter(3);\n return false;\n }\n\n if (!isAirportIDValid(line[sourceAirportID])) {\n errorCounter(4);\n return false;\n }\n\n if (!isAirportValid(line[destinationAirport])) {\n errorCounter(5);\n return false;\n }\n\n if (!isAirportIDValid(line[destinationAirportID])) {\n errorCounter(6);\n return false;\n }\n\n if (!isCodeshareValid(line[codeshare])) {\n errorCounter(7);\n return false;\n }\n\n if (!isStopsValid(line[stops])) {\n errorCounter(8);\n return false;\n }\n\n if (!isEquipmentValid(line[equipment])) {\n errorCounter(9);\n return false;\n }\n\n return true;\n }", "public void validateRpd13s11()\n {\n // This guideline cannot be automatically tested.\n }", "@Override\n public boolean validate()\n {\n return inRSArea(TUTORIAL_ISLAND_ACC_CREATOR);\n }", "private void validate() {\n\t\t// just in case;\n\t\tfor (int i=0;i<NR_OF_FIELDS; i++) {\n\t\t\tvalid[i] = \"0\";\n\t\t}\n\t\t//\n\t\t// Validate name and surname:\n\t\t//\n\t\tif ( ! this.isUpperAlpha(nume)) {\n\t\t\tfields[0] = \"1\";\n\t\t}\n\t\t\n\t\tif ( ! this.isUpperAlphaWithSpace(nume)) {\n\t\t\tfields[1] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate seria\n\t\t//\n\t\tvalid[2] = \"1\";\t\t\t\t\t\t\t// presupun ca seria este invalida, si incerc sa o validez\n\t\tfor (int i=0; i<seriiBuletin.length; i++) {\n\t\t\tif (seriiBuletin[i].equals(seria)) {\n\t\t\t\tvalid[2] = \"0\";\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// validate numarul\n\t\t//\n\t\ttry {\n\t\t\tvalid[3] = \"1\";\n\t\t\tint nr = Integer.valueOf(numarul);\n\t\t\tif ( nr >= 100000 && nr <= 999999 ) {\n\t\t\t\tvalid[3] = \"0\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.d(TAG, \"Error validating seria.\");\n\t\t}\n\n\t\t//\n\t\t// validate sex\n\t\t//\n\t\tif ( ! (sex == 'M' || sex == 'F')) {\n\t\t\tvalid[6] = \"1\";\n\t\t}\n\t\t//\n\t\t// Validate valabilitate\n\t\t//\n\t\tif ( ! isNumber(this.valabilitate)) {\n\t\t\tvalid[7] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate CNP\n\t\t//\n\t\tif ( ! (isNumber(CNP) && isValidCNP(CNP))) {\n\t\t\tvalid[8] = \"1\";\n\t\t}\n\t\t\n\t}", "private void validateInputParameters(){\n\n }", "@Test(enabled=true, priority =1)\r\n\tpublic void view3_validate_table_data() {\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_curr_data) , \"Test_View3\" , \"view3_curr_data\" );\t\r\n\t\thelper.validate_table_columns( view3_curr_data_table , driver , \"\" , \"Test_View3\" , \"view3_curr_data_table\" );\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_today_data) , \"Test_View3\" , \"view3_today_data\" );\r\n\t\thelper.validate_table_columns( view3_today_data_table , driver , \"\" , \"Test_View3\" , \"view3_today_data_table\" );\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_curr_agent_stats_tbl) , \"Test_View3\" , \"view3_curr_agent_stats_tbl\" );\r\n\t\thelper.validate_table_columns( view3_curr_agent_stats_col , driver , \"\" , \"Test_View3\" , \"view3_curr_agent_stats_col\" );\r\n\r\n\t\thelper.validate_table_names( driver.findElement(view3_agent_details) , \"Test_View3\" , \"view3_agent_details\" );\t\r\n\t\thelper.validate_table_columns( view3_Agent_table_data_start , driver , view3_Agent_table_data_end , \"Test_View3\" , \"view3_Agent_table_data\" );\r\n\t}", "protected void validate(String operationType) throws Exception\r\n\t{\r\n\t\tsuper.validate(operationType);\r\n\r\n\t\tMPSString id_validator = new MPSString();\r\n\t\tid_validator.validate(operationType, id, \"\\\"id\\\"\");\r\n\t\t\r\n\t\tMPSBoolean secure_access_only_validator = new MPSBoolean();\r\n\t\tsecure_access_only_validator.validate(operationType, secure_access_only, \"\\\"secure_access_only\\\"\");\r\n\t\t\r\n\t\tMPSString svm_ns_comm_validator = new MPSString();\r\n\t\tsvm_ns_comm_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);\r\n\t\tsvm_ns_comm_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tsvm_ns_comm_validator.validate(operationType, svm_ns_comm, \"\\\"svm_ns_comm\\\"\");\r\n\t\t\r\n\t\tMPSString ns_br_interface_validator = new MPSString();\r\n\t\tns_br_interface_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);\r\n\t\tns_br_interface_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tns_br_interface_validator.validate(operationType, ns_br_interface, \"\\\"ns_br_interface\\\"\");\r\n\t\t\r\n\t\tMPSBoolean vm_auto_poweron_validator = new MPSBoolean();\r\n\t\tvm_auto_poweron_validator.validate(operationType, vm_auto_poweron, \"\\\"vm_auto_poweron\\\"\");\r\n\t\t\r\n\t\tMPSString ns_br_interface_2_validator = new MPSString();\r\n\t\tns_br_interface_2_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);\r\n\t\tns_br_interface_2_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tns_br_interface_2_validator.validate(operationType, ns_br_interface_2, \"\\\"ns_br_interface_2\\\"\");\r\n\t\t\r\n\t\tMPSInt init_status_validator = new MPSInt();\r\n\t\tinit_status_validator.validate(operationType, init_status, \"\\\"init_status\\\"\");\r\n\t\t\r\n\t}", "private boolean tableDataValid()\r\n {\r\n // if there are any form level validations that should go there\r\n int rowTotal = tblProtoCorresp.getRowCount();\r\n int colTotal = tblProtoCorresp.getColumnCount();\r\n for (int rowIndex = 0; rowIndex < rowTotal ; rowIndex++)\r\n {\r\n for (int colIndex = 0; colIndex < colTotal; colIndex++)\r\n {\r\n TableColumn column = codeTableColumnModel.getColumn(colIndex) ;\r\n\r\n ColumnBean columnBean = (ColumnBean)column.getIdentifier() ;\r\n\r\n if (columnBean.getColumnEditable()\r\n && !columnBean.getColumnCanBeNull())\r\n {\r\n if ( tblProtoCorresp.getValueAt(rowIndex,colIndex) != null)\r\n {\r\n if (tblProtoCorresp.getValueAt(rowIndex,colIndex).equals(\"\")\r\n || tblProtoCorresp.getValueAt(rowIndex,colIndex).toString().trim().equals(\"\") )\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"checkInputValue_exceptionCode.2402\");\r\n String msgColName = \" \" + columnBean.getDisplayName() + \". \";\r\n CoeusOptionPane.showInfoDialog(msg + msgColName);\r\n tblProtoCorresp.changeSelection(rowIndex, colIndex, false, false) ;\r\n return false;\r\n }\r\n }\r\n else\r\n {\r\n String msg = coeusMessageResources.parseMessageKey(\r\n \"checkInputValue_exceptionCode.2402\");\r\n\r\n String msgColName = \" \" + columnBean.getDisplayName() + \". \";\r\n CoeusOptionPane.showInfoDialog(msg + msgColName);\r\n tblProtoCorresp.changeSelection(rowIndex, colIndex, false, false) ;\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n }\r\n return true ;\r\n }", "public void validateRpd13s2()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s12()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd22s1()\n {\n // This guideline cannot be automatically tested.\n }", "private boolean validateData() {\n if (!mCommon.validateData()) return false;\n\n Core core = new Core(this);\n\n // Due Date is required\n if (TextUtils.isEmpty(getRecurringTransaction().getDueDateString())) {\n core.alert(R.string.due_date_required);\n return false;\n }\n\n if (TextUtils.isEmpty(mCommon.viewHolder.dateTextView.getText().toString())) {\n core.alert(R.string.error_next_occurrence_not_populate);\n\n return false;\n }\n\n // Payments Left must have a value\n if (getRecurringTransaction().getPaymentsLeft() == null) {\n core.alert(R.string.payments_left_required);\n return false;\n }\n return true;\n }", "abstract void fiscalCodeValidity();", "public void validate(DataRecord value) {\n\r\n\t}", "public boolean isValid() {\r\n/* */ try {\r\n/* 326 */ validate();\r\n/* 327 */ } catch (ValidationException vex) {\r\n/* 328 */ return false;\r\n/* */ } \r\n/* 330 */ return true;\r\n/* */ }", "protected boolean checkAAField()\n {\n if (this.pdWidget.getActions() != null)\n {\n ctx.addValidationError(new ValidationError(ERROR_ANNOT_FORBIDDEN_AA));\n return false;\n }\n return true;\n }", "public void validateRpd3s12()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s6()\n {\n // This guideline cannot be automatically tested.\n }", "private boolean isValidate() {\n name = edt_name.getText().toString();\n phone = edt_phone.getText().toString();\n landMark = edt_landmark.getText().toString();\n address = edt_address.getText().toString();\n city = edt_city.getText().toString();\n state = edt_state.getText().toString();\n if (name.length() == 0) {\n edt_name.setError(\"Please Enter Name \");\n requestFocus(edt_name);\n return false;\n } else if (phone.isEmpty()) {\n edt_phone.setError(\"Please Enter Phone Number \");\n requestFocus(edt_phone);\n return false;\n } else if (phone.length() != 10) {\n edt_phone.setError(\"Please Enter Valid Phone Number \");\n requestFocus(edt_phone);\n return false;\n } else if (address.length() == 0) {\n edt_address.setError(\"Please Enter Address\");\n requestFocus(edt_address);\n return false;\n } else if (city.length() == 0) {\n edt_city.setError(\"Please Enter City Name\");\n requestFocus(edt_city);\n return false;\n } else if (state.length() == 0) {\n edt_state.setError(\"Please Enter State Name\");\n requestFocus(edt_state);\n return false;\n }\n return true;\n }", "private boolean checkInfo()\n {\n boolean flag = true;\n if(gName.isEmpty())\n {\n groupName.setError(\"Invalid name\");\n flag = false;\n }\n if(gId.isEmpty())\n {\n groupId.setError(\"Invalid id\");\n flag = false;\n }\n if(gAddress.isEmpty())\n {\n groupAddress.setError(\"Invalid address\");\n flag = false;\n }\n\n for(char c : gName.toCharArray()){\n if(Character.isDigit(c)){\n groupName.setError(\"Invalid Name\");\n flag = false;\n groupName.requestFocus();\n }\n }\n\n if(groupType.isEmpty())\n {\n flag = false;\n rPublic.setError(\"Choose one option\");\n }\n\n if(time.isEmpty())\n time = \"not set\";\n\n if(groupDescription.getText().toString().length()<20||groupDescription.getText().toString().length()>200)\n groupDescription.setError(\"Invalid description\");\n\n return flag;\n }", "public void VerifyCustomeralsoViewedTitle(String Exptext){\r\n\t\tString[] ExpText = getValue(Exptext).split(\",\", 2);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Title with \"+ExpText+\" should be present in SKU Page\");\r\n\t\ttry{\r\n\t\t\tif(getAndVerifyTextfromList(locator_split(\"txtCustomeralsoOrdered\"), ExpText[1], Integer.valueOf(ExpText[0]))){\r\n\t\t\t\tSystem.out.println(ExpText[1]+\" is present\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- \"+ExpText[1]+\" is present in SKU Page\");\r\n\t\t\t} else{ \r\n\t\t\t\tthrow new Error(\"Actual Text: \"+ExpText[1]+\" is not present in SKU Page\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(NoSuchElementException e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- \"+elementProperties.getProperty(\"txtCustomeralsoOrdered\").toString() +\" is not Present\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtCustomeralsoOrdered\").toString()\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\t\tcatch(Error Er){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Actual Text: \"+ExpText[1]+\" is not present in SKU Page\");\r\n\t\t\tthrow new Error(\"Expected text - '\"+ExpText[1]+\" and Actual Text : \"+getText(locator_split(\"txtCustomeralsoOrdered\"))+\" is not equal\");\r\n\t\t}\r\n\t}", "private void validateDetails() {\n\n clearErrors();\n Utils.hide_keyboard(getActivity());\n\n boolean valid = true;\n\n String cvv = cvvTv.getText().toString();\n String expiryDate = cardExpiryTv.getText().toString();\n String cardNo = cardNoTv.getText().toString();\n\n if (cvv.length() < 3) {\n valid = false;\n cvvTil.setError(\"Enter a valid cvv\");\n }\n\n if (expiryDate.length() != 5) {\n cardExpiryTil.setError(\"Enter a valid expiry date\");\n valid = false;\n }\n\n String cardNoStripped = cardNo.replaceAll(\"\\\\s\", \"\");\n\n if (cardNoStripped.length() < 12 ) {\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n else {\n try {\n Long parsed = Long.parseLong(cardNoStripped);\n }\n catch (Exception e) {\n e.printStackTrace();\n valid = false;\n cardNoTil.setError(\"Enter a valid credit card number\");\n }\n }\n\n if (valid) {\n\n if (saveCardSwitch.isChecked()) {\n int cardLen = cardNoStripped.length();\n cardFirst6 = cardNoStripped.substring(0, 6);\n cardLast4 = cardNoStripped.substring(cardLen - 4, cardLen);\n shouldISaveThisCard = true;\n presenter.savePotentialCardDets(cardFirst6, cardLast4);\n }\n\n //make request\n PayloadBuilder builder = new PayloadBuilder();\n builder.setAmount(thetellerInitializer.getAmount() + \"\")\n .setNarration(thetellerInitializer.getNarration())\n .setCardno(cardNoStripped)\n .set3dUrl(thetellerInitializer.get3dUrl())\n .setEmail(thetellerInitializer.getEmail())\n .setCurrency(thetellerInitializer.getCurrency())\n .setMerchant_id(thetellerInitializer.getMerchant_id())\n .setCvv(cvv).setFirstname(thetellerInitializer.getfName())\n .setLastname(thetellerInitializer.getlName())\n .setIP(Utils.getDeviceImei(getActivity()))\n .setTxRef(thetellerInitializer.getTxRef())\n .setExpiryyear(expiryDate.substring(3,5))\n .setExpirymonth(expiryDate.substring(0,2))\n .setMeta(thetellerInitializer.getMeta())\n .setApiUser(thetellerInitializer.getApiUser())\n .setApiKey(thetellerInitializer.getApiKey())\n .setDevice_fingerprint(Utils.getDeviceImei(getActivity()))\n .setCardType(cardType);\n\n if (thetellerInitializer.getPayment_plan() != null) {\n builder.setPaymentPlan(thetellerInitializer.getPayment_plan());\n }\n\n body = builder.createPayload();\n\n presenter.chargeCard(body, thetellerConstants.API_KEY);\n }\n }", "@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}", "@Override\n\tpublic void validate()\n\t{\n\n\t}", "public void validateRpd11s6()\n {\n // This guideline cannot be automatically tested.\n }", "public void printValidateInformation() {\n\n if(!validateFirstName()){\n System.out.println(\"The first name must be filled in\");\n }\n if(!validateFirstNameLength()){\n System.out.println(\"The first name must be at least 2 characters long.\");\n }\n if(!validateLastName()){\n System.out.println(\"The last name must be filled in\");\n }\n if(!validateLastNameLength()){\n System.out.println(\"The last name must be at least 2 characters long.\");\n }\n if(!validateZipcode()){\n System.out.println(\"The zipcode must be a 5 digit number.\");\n }\n if (!validateEmployeeID()){\n System.out.println(\"The employee ID must be in the format of AA-1234.\");\n }\n\n if(validateFirstName() && validateFirstNameLength() && validateLastName() && validateLastNameLength()\n && validateZipcode() && validateEmployeeID()){\n System.out.println(\"There were no errors found.\");\n }\n }", "private void validation() {\n Pattern pattern = validationfilterStringData();\n if (pattern.matcher(txtDrug.getText().trim()).matches() && pattern.matcher(txtGenericName.getText().trim()).matches()) {\n try {\n TblTreatmentadvise treatmentadvise = new TblTreatmentadvise();\n treatmentadvise.setDrugname(txtDrug.getText());\n treatmentadvise.setGenericname(txtGenericName.getText());\n treatmentadvise.setTiming(cmbDosestiming.getSelectedItem().toString());\n cmbtiming.setSelectedItem(cmbDosestiming);\n treatmentadvise.setDoses(loadcomboDoses());\n treatmentadvise.setDuration(loadcomboDuration());\n PatientService.saveEntity(treatmentadvise);\n JOptionPane.showMessageDialog(this, \"SAVE SUCCESSFULLY\");\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, \"STARTUP THE DATABASE CONNECTION\");\n }\n } else {\n JOptionPane.showMessageDialog(this, \"WRONG DATA ENTERED.\");\n }\n }", "public void validateRpd15s4()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s15()\n {\n // This guideline cannot be automatically tested.\n }", "private void validateITResource() {\n // TODO Auto-generated method stub\n \n }", "public void validateRpd13s9()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd15s7()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd13s7()\n {\n // This guideline cannot be automatically tested.\n }", "private void validatePurchaseOrder(MaintenanceRequest mrq) throws MalBusinessException{\n\t\tArrayList<String> messages = new ArrayList<String>();\n\t\tBigDecimal amount = new BigDecimal(0.00);\n\t\t\t\t\n\t\t//Validate PO header required data\n\t\tif(MALUtilities.isEmptyString(mrq.getJobNo()))\n\t\t\tmessages.add(\"Job No. is required\");\n\t\tif(MALUtilities.isEmptyString(mrq.getMaintReqStatus()))\n\t\t\tmessages.add(\"PO Status is required\");\n\t\tif(MALUtilities.isEmptyString(mrq.getMaintReqType()))\n\t\t\tmessages.add(\"PO Type is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getCurrentOdo()))\n\t\t\tmessages.add(\"Odo is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getActualStartDate()))\n\t\t\tmessages.add(\"Actual Start Date is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getPlannedEndDate()))\n\t\t\tmessages.add(\"End date is required\");\n\t\tif(MALUtilities.isEmpty(mrq.getServiceProvider()))\n\t\t\tmessages.add(\"Service Provider is required\");\n\t\t/* TODO Need to determine if this check is necessary. We do not have a hard requirement for this.\n\t\tif(!MALUtilities.isEmpty(po.getServiceProvider()) \n\t\t\t\t&& (!MALUtilities.convertYNToBoolean(po.getServiceProvider().getNetworkVendor()) \n\t\t\t\t\t\t&& this.calculateMarkUp(po).compareTo(new BigDecimal(0.00)) < 1))\n\t\t\tmessages.add(\"Mark Up is required for out of network service providers\");\n\t */\n\t\t\n\t\t//Validate PO Line items (tasks) required data\n\t\tif(!MALUtilities.isEmpty(mrq.getMaintenanceRequestTasks())){\n\t\t\tfor(MaintenanceRequestTask line : mrq.getMaintenanceRequestTasks()){\n\t\t\t\tif(MALUtilities.isEmptyString(line.getMaintCatCode()))\n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Maint Category is required\");\n\t\t\t\tif(MALUtilities.isEmpty(line.getTaskQty()))\n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Qty is required\");\n\t\t\t\tif(MALUtilities.isEmpty(line.getUnitCost()))\n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Unit Price is required\");\n\t\t\t\tif(MALUtilities.isEmpty(line.getTotalCost())) \n\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Total Amount is required\");\t\t\t\t\t\t\t\t\n\t\t\t\tif(!(MALUtilities.isEmpty(line.getTaskQty()) && MALUtilities.isEmpty(line.getUnitCost()))){\n\t\t\t\t\tamount = line.getUnitCost().multiply(line.getTaskQty()).setScale(2, BigDecimal.ROUND_HALF_UP); \n\t\t\t\t\tif( amount.compareTo(line.getTotalCost().setScale(2, BigDecimal.ROUND_HALF_UP)) != 0)\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Total amount is incorrect\");\t\t\t\t\t\t\t\n\t\t\t\t}\t\n/** TODO This will not work well with goodwill POs as the user will not have the changes to add cost avoidance data to subsequent lines.\t\t\t\t\n\t\t\t\tif(mrq.isGoodwillIndicator() && line.isCostAvoidanceIndicator()){\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceCode()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Reason is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceAmount()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Amount is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getGoodwillReason()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Goodwill Reason is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getGoodwillCost()) || line.getGoodwillCost().compareTo(new BigDecimal(0)) < 1)\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Goodwill Amount is required\");\t\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getGoodwillPercent()) || line.getGoodwillPercent().compareTo(new BigDecimal(0)) < 1)\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Goodwill Percent is required\");\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!mrq.isGoodwillIndicator() && line.isCostAvoidanceIndicator()){\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceCode()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Reason is required\");\n\t\t\t\t\tif(MALUtilities.isEmpty(line.getCostAvoidanceAmount()))\n\t\t\t\t\t\tmessages.add(\"Line \" + line.getIndex() + \": Cost Avoidance Amount is required\");\t\t\t\t\t\n\t\t\t\t}\n*/\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(messages.size() > 0)\n\t\t\tthrow new MalBusinessException(\"service.validation\", messages.toArray(new String[messages.size()]));\t\t\n\t\t\n\t}", "public void validateRpd13s17()\n {\n // This guideline cannot be automatically tested.\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyfiftyAcctsviewValidatation() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether proper error message is diplayed when accounts added more than 50 on clicking the confirm button\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvManageView\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ManageViews()\n\t\t.FiftyAcctsViewnameErrorValidation(userProfile); \t \t\t\t\t\t\t \t \t\t\t \t \t \t\t\t\t\t\t \t \t\t\n\t}", "public void validateRpd11s7()\n {\n // This guideline cannot be automatically tested.\n }", "@Override\n\tpublic Boolean isValidApplication(ApplicationBean applicationBean) {\n\t\tPattern namePattern=Pattern.compile(\"^[A-Za-z\\\\s]{3,}$\");\n\t\tMatcher nameMatcher=namePattern.matcher(applicationBean.getName());\n\t\tPattern dobPattern=Pattern.compile(\"^[0-3]?[0-9].[0-3]?[0-9].(?:[0-9]{2})?[0-9]{2}$\");\n\t\tMatcher dobMatcher=dobPattern.matcher(applicationBean.getDateOfBirth());\n\t\tPattern goalPattern=Pattern.compile(\"^[A-Za-z\\\\s]{1,}$\");\n\t\tMatcher goalMatcher=goalPattern.matcher(applicationBean.getGoals());\n\t\tPattern marksPattern=Pattern.compile(\"^[1-9][0-9]?$|^100$\");\n\t\tMatcher marksMatcher=marksPattern.matcher(applicationBean.getMarksObtained());\n\t\tPattern scheduleIdPattern=Pattern.compile(\"^[0-9]{1,2}$\");\n\t\tMatcher scheduleIdMatcher=scheduleIdPattern.matcher(applicationBean.getScheduledProgramID());\n\t\tPattern emailPattern=Pattern.compile(\"^[A-Za-z0-9+_.-]+@(.+)$\");\n\t\tMatcher emailMatcher=emailPattern.matcher(applicationBean.getEmailID());\n\t\t\n\t\t\n\t\tif(!(nameMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\nApplicant Name Should Be In Alphabets and minimum 1 characters long.\");\n\t\t\treturn false;\n\t\t}\n\t\tif(!(dobMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\nDate of birth should be in DD/MM/YYYY format.\");\n\t\t\treturn false;\n\t\t}\n\t\tif(!(goalMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\n Goal should be alphabetical and having minimum one letter\");\n\t\t\treturn false;\n\t\t}\n\t\tif(!(marksMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\nMarks should be less than 100\");\n\t\t\treturn false;\n\t\t}\n\t\tif(!(scheduleIdMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\nSchedule Id should be of one or two digit\");\n\t\t\treturn false;\n\t\t}\n\t\tif(!(emailMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\nEnter valid email address\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "private boolean validate() {\n\n EditText fnameET = findViewById(R.id.fnameET);\n EditText lnameET = findViewById(R.id.lnameET);\n EditText perNoET = findViewById(R.id.perNoET);\n EditText lecEmailET = findViewById(R.id.lecEmailET);\n EditText adminCodeET = findViewById(R.id.adminCodeET);\n EditText passwET = findViewById(R.id.passwET);\n EditText cpasswET = findViewById(R.id.cpasswET);\n\n String fname = fnameET.getText().toString().trim();\n String lname = lnameET.getText().toString().trim();\n String personNo = perNoET.getText().toString().trim();\n String lectEmail = lecEmailET.getText().toString().trim();\n String adminCode = adminCodeET.getText().toString().trim();\n String password = passwET.getText().toString().trim();\n String cpassword = cpasswET.getText().toString().trim();\n\n //boolean flag;\n\n if(fname.isEmpty()) {\n fnameET.setError(\"Field can't be empty!\");\n fnameET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(lname.isEmpty()) {\n lnameET.setError(\"Field can't be empty!\");\n lnameET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(personNo.isEmpty()) {\n perNoET.setError(\"Field can't be empty!\");\n perNoET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(lectEmail.isEmpty()) {\n lecEmailET.setError(\"Field can't be empty!\");\n lecEmailET.requestFocus();\n return false;\n } else if (!Patterns.EMAIL_ADDRESS.matcher(lectEmail).matches()) {\n lecEmailET.setError(\"check that your email is entered correctly!\");\n lecEmailET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(adminCode.isEmpty()) {\n adminCodeET.setError(\"Field can't be empty!\");\n adminCodeET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(password.isEmpty()) {\n passwET.setError(\"Field can't be empty!\");\n passwET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(cpassword.isEmpty()) {\n cpasswET.setError(\"Field can't be empty!\");\n cpasswET.requestFocus();\n return false;\n } else if (!cpassword.equals(password)) {\n cpasswET.setError(\"password doesn't match the above entered password!\");\n cpasswET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n return true;\n }", "public void validateRpd22s6()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd8s22()\n {\n // Duplicate of 8s14\n }", "private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n requiredFieldDescriptions.put(FIELD_ENTREZ_GENE_ID, \"must be an integer number\");\r\n requiredMafExpressions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_MATCHED_NORM_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_TUMOR_SAMPLE_BARCODE, QcLiveBarcodeAndUUIDValidatorImpl.ALIQUOT_BARCODE_PATTERN);\r\n requiredFieldDescriptions.put(FIELD_TUMOR_SAMPLE_BARCODE, \"must be a full aliquot barcode\");\r\n requiredMafExpressions.put(FIELD_VALIDATION_STATUS, Pattern.compile(\"Valid|Wildtype|Unknown|\\\\S?\"));\r\n requiredFieldDescriptions.put(FIELD_VALIDATION_STATUS, \"must be Valid, Wildtype, Unknown, or blank\");\r\n requiredMafExpressions.put(FIELD_CHROMOSOME, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_CHROMOSOME, \"must be one of: X, Y, M, 1-22, or full name of unassigned fragment\");\r\n setupMafSpecificChecks();\r\n }", "private boolean Validate() {\n EditText titleText = findViewById(R.id.register_movie_title_txt);\n EditText yearText = findViewById(R.id.register_movie_year_txt);\n EditText ratingText = findViewById(R.id.register_movie_rating_txt);\n\n\n boolean is_filled_required_fields = false;\n is_filled_required_fields = titleText.getText().toString().length() > 0\n && yearText.getText().toString().length() > 0\n && ratingText.getText().toString().length() > 0;\n\n if (!is_filled_required_fields) {\n Snackbar mySnackbar = Snackbar.make(findViewById(R.id.activity_register_base_layout), \"Please fill required fields\", BaseTransientBottomBar.LENGTH_SHORT);\n mySnackbar.show();\n }\n return is_filled_required_fields;\n }", "public void validateRpd1s2()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd3s14()\n {\n // This guideline cannot be automatically tested.\n }", "ValidationResponse validate();", "public String validate() {\n\t\tString msg=\"\";\n\t\t// for name..\n\t\tif(name==null||name.equals(\"\"))\n\t\t{\n\t\t\tmsg=\"Task name should not be blank or null\";\n\t\t}\n\t\tif(name.split(\" \").length>1)\n\t\t{\n\t\t\tmsg=\"multiple words are not allowed\";\n\t\t}\n\t\telse\n\t\t{\n\t\t for(int i=0;i<name.length();i++)\n\t\t {\n\t\t\t char c=name.charAt(i);\n\t\t\t\tif(!(Character.isDigit(c)||Character.isLetter(c)))\n\t\t\t\t{\n\t\t\t\t\tmsg=\"special characters are not allowed\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t }\n\t\t}\n\t\t\t\n\t\t\n\t\t\t// for Description...\n\t\t\tif(desc==null||desc.equals(\"\"))\n\t\t\t{\n\t\t\t\tmsg=\"Task descrshould not be blank or null\";\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t // for tag...\n\t\t\t \n\t\t\t if(tag==null||tag.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tmsg=\"Task tags not be blank or null\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t // for date { imp here}\n\t\t\t if(tarik!=null)\n\t\t\t {\n\t\t\t SimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t sdf.setLenient(false); // very imp here..\n\t\t\t try {\n\t\t\t\tDate d=sdf.parse(tarik);\n\t\t\t} catch (ParseException e) {\n\t\t\t\t\n\t\t\t//\tmsg=\"date should be correct foramat\";\n\t\t\t\tmsg=e.getMessage();\n\t\t\t}\n\t\t\t }\n\t\t\t// for prority..\n\t\t\t if(prio<1&&prio>10)\n\t\t\t {\n\t\t\t\t msg=\"prority range is 1 to 10 oly pa\";\n\t\t\t }\n\t\t\t\t\n\t\t\t\tif(msg.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\treturn Constant.SUCCESS;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\treturn msg;\n\t}", "private void validateUpdateCustomer(CustomersInputDTO inputData, String formatDate) {\n List<Map<String, Object>> listValidate = new ArrayList<>();\n if (inputData == null) {\n throw new CustomRestException(ConstantsCustomers.MSG_PARAMETER_VALUE_INVALID,\n CommonUtils.putError(\"inputData\", Constants.RIQUIRED_CODE));\n }\n Long customerId = inputData.getCustomerId();\n if (inputData.getCustomerId() == null) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.CUSTOMER_ID, Constants.RIQUIRED_CODE));\n }\n // 1.2 Validate parent relation\n if (inputData.getParentId() != null && inputData.getParentId().longValue() > 0l) {\n if (!isSameParentId(customerId, inputData.getParentId())) {\n Long countRelParentId = customersRepository.countCustomerExistedWithParentId(inputData.getParentId(),\n customerId);\n if (ConstantsCustomers.NUMBER_CHECK_PARENT_ID.equals(countRelParentId)) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.CUSTOMER_PARENT,\n ConstantsCustomers.CUSTOMER_PARENT_INVAIL));\n }\n } else {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.CUSTOMER_PARENT,\n ConstantsCustomers.CUSTOMER_PARENT_INVAIL));\n }\n }\n // build map parameters\n CommonValidateJsonBuilder jsonBuilder = new CommonValidateJsonBuilder();\n String validateJson = jsonBuilder.build(FieldBelongEnum.CUSTOMER.getCode(), (Map<String, Object>) null,\n buildParamsValidateCustomersInput(inputData, jsonBuilder), formatDate);\n String token = SecurityUtils.getTokenValue().orElse(null);\n String tenantName = jwtTokenUtil.getTenantIdFromToken();\n listValidate.addAll(CustomersCommonUtil.validateCommon(validateJson, restOperationUtils, token, tenantName));\n if (!listValidate.isEmpty()) {\n throw new CustomRestException(ConstantsCustomers.VALIDATE_MSG_FAILED, listValidate);\n }\n }", "public void validateRpd11s3()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd22s9()\n {\n // This guideline cannot be automatically tested.\n }", "public void validate_the_Email_Address_1_of_Security_in_Customer_Tab(String EmailAddress1)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll(\"M_Header\", \"Security\").replaceAll(\"M_Category\", \"Email Address 1\").replaceAll(\"M_InnerText\", EmailAddress1), \"Email Address 1 - \"+EmailAddress1, false);\n\t}", "public void validateRpd13s8()\n {\n // This guideline cannot be automatically tested.\n }", "private boolean checkValidations() {\n if (TextUtils.isEmpty(etFirstName.getText().toString().trim())) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.empty_name_war));\n return false;\n } else if (etPhoneNo.getText().length() > 0 && etPhoneNo.getText().toString().trim().length() < 7) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.valid_mo_no_war));\n return false;\n }\n /*else if (TextUtils.isEmpty(etAdress.getText().toString().trim())) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.empty_address_war));\n return false;\n } else if (countryId==null || countryId.equals(\"\")) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.country_war));\n return false;\n } else if (stateId==null || stateId.equals(\"\")) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.state_war));\n return false;\n }*/ /*else if (cityId==null || cityId.equals(\"\")) {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), getString(R.string.city_war));\n return false;\n }*/\n else\n return true;\n }", "private void validateFunctionData(FunctionData functionData) throws EQException\n\t{\n\t\tFunctionValidate functionValidate = new FunctionValidate(fhd, screenSetPrint, functionData);\n\t\tfunctionValidate.setHaltOnError(false);\n\t\tfunctionValidate.setDefaultValues(false);\n\t\tfunctionValidate.setApplicationValidate(false);\n\t\tfunctionValidate.validate();\n\t}", "public Iterator<String> validate() {\r\n\t\tValidityReport vr = ONT_MODEL.validate();\r\n\t\t\r\n\t\tCollection<String> reports = new ArrayList<String>();\r\n\t\t\r\n\t\tfor(Iterator riter = vr.getReports(); riter.hasNext();)\r\n\t\t{\r\n\t\t\tValidityReport.Report r = (ValidityReport.Report)riter.next();\r\n\t\t\tString msg =\"\";\r\n\t\t\tif(r.isError())\r\n\t\t\t\tmsg += \"[ERROR]\";\r\n\t\t\telse\r\n\t\t\t\tmsg += \"[WARNING]\";\r\n\t\t\tmsg+=\"[\"+r.getType()+\"]\";\r\n\t\t\tmsg+=r.getDescription();\r\n\t\t\treports.add(msg);\r\n\t\t}\r\n\t\t\r\n\t\treturn reports.iterator();\r\n\t}", "@Override\n\tpublic void validate() {\n\t\t if(pname==null||pname.toString().equals(\"\")){\n\t\t\t addActionError(\"父项节点名称必填!\");\n\t\t }\n\t\t if(cname==null||cname.toString().equals(\"\")){\n\t\t\t addActionError(\"子项节点名称必填!\");\n\t\t }\n\t\t if(caction==null||caction.toString().equals(\"\")){\n\t\t\t addActionError(\"子项节点动作必填!\");\n\t\t }\n\t\t \n\t\t List l=new ArrayList();\n\t\t\tl=userService.QueryByTabId(\"Resfun\", \"resfunid\", resfunid);\n\t\t\t//判断是否修改\n\t\t\tif(l.size()!=0){\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<l.size();i++){\n\t\t\t\t\tResfun rf=new Resfun();\n\t\t\t\t\trf=(Resfun)l.get(i);\n\t\t\t\t\tif(rf.getCaction().equals(caction.trim())&&rf.getCname().equals(cname)&&rf.getPname().equals(pname)){\n\t\t\t\t\t\tSystem.out.println(\"mei gai\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tList n=new ArrayList();\n\t\t\t\t\t\tn=userService.QueryByPcac(\"Resfun\", \"pname\", pname, \"cname\", cname, \"caction\", caction);\n\t\t\t\t\t\tif(n.size()!=0){\n\t\t\t\t\t\t\taddActionError(\"该记录已经存在!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t \n\t\t \n\t\t \n\t\t \n\t}", "private int doValidateCheck()\n {\n if (Math.min(txtArtifactID.getText().trim().length(),\n txtGroupID.getText().trim().length()) == 0)\n {\n return 1;\n }\n if (txtPackage.getText().trim().length() > 0)\n {\n boolean matches = txtPackage.getText().matches(\"[a-zA-Z0-9\\\\.]*\"); //NOI18N\n if (!matches) {\n return 2;\n } else {\n if (txtPackage.getText().startsWith(\".\") || txtPackage.getText().endsWith(\".\"))\n {\n return 2;\n }\n }\n }\n return 0;\n }", "@Override\r\n\tprotected void validate() {\n\t}", "UserPayment validate(String cardHolderName,String cardType,String securityCode,String paymentType);", "@Override\n public boolean validate() throws ValidationException\n {\n boolean isValid = super.validate();\n return checkAAField() && isValid;\n }", "public void validateRpd22s4()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd22s7()\n {\n // This guideline cannot be automatically tested.\n }", "private void checkInvalidInformation(EditPlanDirectToManaged editPlanPage) throws Exception {\n //\n Reporter.log(\"Verifying Error Messages on Edit Plan Page\", true);\n editPlanPage.invalidEditPlanUpdate();\n softAssert.assertTrue(editPlanPage.verifyEditPlanErrorMessage());\n\n //Re-Enter correct details\n editPlanPage.updateAnnualHouseHoldincome(Constants.DEFAULT_ANNUAL_HOUSEHOLD_INCOME);\n editPlanPage.updateRetirementAge(Constants.DEFAULT_RETIREMENT_AGE + \"\");\n }", "public void validateRpd13s13()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd18s1()\n {\n // This guideline cannot be automatically tested.\n }", "void checkValid();", "public void validateRpd22s5()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd15s5()\n {\n // This guideline cannot be automatically tested.\n }", "public boolean validate() {\n\n String plate = _licensePlate.getText().toString();\n\n if(plate.isEmpty() || plate.length() < 8)\n return false;\n\n else if(plate.charAt(2) == '-' || plate.charAt(5) == '-') {\n\n if (Character.isUpperCase(plate.charAt(0)) && Character.isUpperCase(plate.charAt(1))) { // first case\n if (Character.isDigit(plate.charAt(3)) && Character.isDigit(plate.charAt(4))\n && Character.isDigit(plate.charAt(6)) && Character.isDigit(plate.charAt(7)))\n return true;\n }\n\n else if(Character.isUpperCase(plate.charAt(3)) && Character.isUpperCase(plate.charAt(4))) { // second case\n if (Character.isDigit(plate.charAt(0)) && Character.isDigit(plate.charAt(1))\n && Character.isDigit(plate.charAt(6)) && Character.isDigit(plate.charAt(7)))\n return true;\n }\n\n else if(Character.isUpperCase(plate.charAt(6)) && Character.isUpperCase(plate.charAt(7))) { // third case\n if (Character.isDigit(plate.charAt(0)) && Character.isDigit(plate.charAt(1))\n && Character.isDigit(plate.charAt(3)) && Character.isDigit(plate.charAt(4)))\n return true;\n }\n\n else\n return false;\n\n }\n\n return false;\n }", "protected void validate() {\n // no op\n }", "void validate() {\n int quality = mQuality;\n int matchType = mMatchType;\n if (mZoneId == null) {\n if (quality != QUALITY_NA || matchType != MATCH_TYPE_NA) {\n throw new RuntimeException(\"Invalid quality or match type for null zone ID.\"\n + \" quality=\" + quality + \", matchType=\" + matchType);\n }\n } else {\n boolean qualityValid = (quality == QUALITY_SINGLE_ZONE\n || quality == QUALITY_MULTIPLE_ZONES_WITH_SAME_OFFSET\n || quality == QUALITY_MULTIPLE_ZONES_WITH_DIFFERENT_OFFSETS);\n boolean matchTypeValid = (matchType == MATCH_TYPE_NETWORK_COUNTRY_ONLY\n || matchType == MATCH_TYPE_NETWORK_COUNTRY_AND_OFFSET\n || matchType == MATCH_TYPE_EMULATOR_ZONE_ID\n || matchType == MATCH_TYPE_TEST_NETWORK_OFFSET_ONLY);\n if (!qualityValid || !matchTypeValid) {\n throw new RuntimeException(\"Invalid quality or match type with zone ID.\"\n + \" quality=\" + quality + \", matchType=\" + matchType);\n }\n }\n }", "private void validateCreateCustomer(CustomersInputDTO inputData, String formatDate) {\n if (inputData == null) {\n throw new CustomRestException(ConstantsCustomers.MSG_PARAMETER_VALUE_INVALID,\n CommonUtils.putError(\"inputData\", Constants.RIQUIRED_CODE));\n }\n List<Map<String, Object>> listValidate = new ArrayList<>();\n if (inputData.getCustomerName() == null || inputData.getCustomerName().isBlank()) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.PARAM_CUSTOMER_NAME, Constants.RIQUIRED_CODE));\n }\n if (inputData.getBusinessMainId() == null) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.PARAM_BUSINESS_MAIN_ID, Constants.RIQUIRED_CODE));\n }\n if (inputData.getBusinessSubId() == null) {\n listValidate.add(CommonUtils.putError(ConstantsCustomers.PARAM_BUSINESS_SUB_ID, Constants.RIQUIRED_CODE));\n }\n\n // build map parameters\n CommonValidateJsonBuilder jsonBuilder = new CommonValidateJsonBuilder();\n String validateJson = jsonBuilder.build(FieldBelongEnum.CUSTOMER.getCode(), (Map<String, Object>) null,\n buildParamsValidateCustomersInput(inputData, jsonBuilder), formatDate);\n String token = SecurityUtils.getTokenValue().orElse(null);\n String tenantName = jwtTokenUtil.getTenantIdFromToken();\n listValidate.addAll(CustomersCommonUtil.validateCommon(validateJson, restOperationUtils, token, tenantName));\n if (!listValidate.isEmpty()) {\n throw new CustomRestException(ConstantsCustomers.VALIDATE_MSG_FAILED, listValidate);\n }\n }" ]
[ "0.65451163", "0.62808037", "0.62322867", "0.62322867", "0.6206186", "0.6188334", "0.61882603", "0.61800325", "0.6106852", "0.61038387", "0.6071245", "0.6002692", "0.59790486", "0.5948582", "0.59281373", "0.58985764", "0.58891815", "0.5864459", "0.58460236", "0.5841364", "0.58284014", "0.5796382", "0.57944846", "0.57807535", "0.5775125", "0.5774414", "0.5774414", "0.5766159", "0.57559156", "0.57545125", "0.5752768", "0.5743231", "0.57405293", "0.5721777", "0.5715339", "0.570543", "0.5697083", "0.56921047", "0.5690924", "0.56770575", "0.56766635", "0.5671832", "0.56710595", "0.566459", "0.5658847", "0.5644537", "0.5640528", "0.56404173", "0.56319684", "0.56302464", "0.5627701", "0.5617459", "0.5615325", "0.5608419", "0.56055266", "0.5597843", "0.5595443", "0.55918336", "0.55909514", "0.5581219", "0.557981", "0.5576325", "0.5575167", "0.55692047", "0.556278", "0.55619776", "0.555851", "0.5536844", "0.5533307", "0.55307615", "0.55273116", "0.5524518", "0.55234736", "0.5520091", "0.5518917", "0.55188435", "0.5517974", "0.5517217", "0.5511013", "0.5510617", "0.5508639", "0.55008143", "0.5497377", "0.54944927", "0.5488076", "0.5485179", "0.5484046", "0.5481542", "0.54777396", "0.54712844", "0.5470989", "0.54634404", "0.54507977", "0.54487956", "0.5446911", "0.54460436", "0.543861", "0.543229", "0.54304415", "0.5429143" ]
0.6392555
1
Validation Functions Description : To validate the Email Address 1 of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:EmailAddress1
public void validate_the_Email_Address_1_of_Security_in_Customer_Tab(String EmailAddress1)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Email Address 1").replaceAll("M_InnerText", EmailAddress1), "Email Address 1 - "+EmailAddress1, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void validateEmail(){\n\n //Creating Boolean Value And checking More Accurate Email Validator Added\n\n Boolean email = Pattern.matches(\"^[A-Za-z]+([.+-]?[a-z A-z0-9]+)?@[a-zA-z0-9]{1,6}\\\\.[a-zA-Z]{2,6},?([.][a-zA-z+,]{2,6})?$\",getEmail());\n System.out.println(emailResult(email));\n }", "void validate(String email);", "@Test\n\t\tvoid givenEmail_CheckForValidationForEmail_RetrunTrue() {\n\t\t\tboolean result = ValidateUserDetails.validateEmails(\"[email protected]\");\n\t\t\tAssertions.assertTrue(result);\n\t\t}", "public void validate_the_Email_Address_2_of_Security_in_Customer_Tab(String EmailAddress2)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll(\"M_Header\", \"Security\").replaceAll(\"M_Category\", \"Email Address 2\").replaceAll(\"M_InnerText\", EmailAddress2), \"Email Address 2 - \"+EmailAddress2, false);\n\t}", "@Test\r\n\tpublic void TC_07_verify_Invalid_Email_Address_format() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\t\r\n\t\t// Step 2: Enter valid/mandatory registration details with invalid email address format\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", firstName);\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", InvalidEmail);\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\t\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t\r\n\t\t// Step 4: Verify user should NOT be able to proceed further with registration as proper validation message regarding invalid email address\r\n\t\t//format is displayed\r\n\t\t\r\n\t\terrMsg = Page_Registration.getMandatoryFieldErrMsg();\r\n\t\tAssert.assertEquals(errMsg, \"The email address is invalid.\");\r\n\r\n\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void ValidateAdduserEmailidField() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the Email address Field validations and its appropriate error message\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDataspl\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreation()\n\t\t.validateEmailidField(userProfile);\t\t\t\t \t \t\t\t\t\t\t\n\t}", "public void validateMailAlerts() {\n System.out.println(\"Validating Mail Alerts\");\n boolean mailPasstoCheck = false, mailPassccCheck = false, mailFailtoCheck = false, mailFailccCheck = false;\n\n if (!mailpassto.getText().isEmpty()) {\n\n String[] emailAdd = mailpassto.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailPasstoCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n\n } else {\n execptionData.append((++exceptionCount) + \". To Email address for passed test cases should not be empty.\\n\");\n\n }\n if (!mailpasscc.getText().isEmpty()) {\n String[] emailAdd = mailpasscc.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailPassccCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n\n } else {\n execptionData.append((++exceptionCount) + \". CC Email address for passed test cases should not be empty.\\n\");\n\n }\n if (!mailfailto.getText().isEmpty()) {\n String[] emailAdd = mailfailto.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailFailtoCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n\n } else {\n execptionData.append((++exceptionCount) + \". To Email address for failed test cases should not be empty.\\n\");\n\n }\n if (!mailfailcc.getText().isEmpty()) {\n String[] emailAdd = mailfailcc.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailFailccCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n } else {\n execptionData.append((++exceptionCount) + \".CC Email address for failed test cases should not be empty.\\n\");\n\n }\n\n if (mailPasstoCheck == true && mailPassccCheck == true && mailFailccCheck == true && mailFailtoCheck == true) {\n /*try {\n Properties connectionProperties = new Properties();\n String socketFactory_class = \"javax.net.ssl.SSLSocketFactory\"; //SSL Factory Class\n String mail_smtp_auth = \"true\";\n connectionProperties.put(\"mail.smtp.port\", port);\n connectionProperties.put(\"mail.smtp.socketFactory.port\", socketProperty);\n connectionProperties.put(\"mail.smtp.host\", hostSmtp.getText());\n connectionProperties.put(\"mail.smtp.socketFactory.class\", socketFactory_class);\n connectionProperties.put(\"mail.smtp.auth\", mail_smtp_auth);\n connectionProperties.put(\"mail.smtp.socketFactory.fallback\", \"false\");\n connectionProperties.put(\"mail.smtp.starttls.enable\", \"true\");\n Mail mail = new Mail(\"\");\n mail.createSession(fromMail.getText(), password.getText(), connectionProperties);\n mail.sendEmail(fromMail.getText(), mailpassto.getText(), mailpasscc.getText(), \"Test Mail from FACT\", \"Hi, This is the Test Mail for the FACT Tool\", \"\");\n mail.sendEmail(fromMail.getText(), mailfailto.getText(), mailfailcc.getText(), \"Test Mail from FACT\", \"Hi, This is the Test Mail for the FACT Tool\", \"\");*/\n mailAlertsCheck = true;\n /* } catch (IOException ex) {\n Logger.getLogger(ConfigFile.class.getName()).log(Level.SEVERE, null, ex);\n mailAlertsCheck = false;\n new ExceptionUI(ex);\n } catch (MessagingException ex) {\n Logger.getLogger(ConfigFile.class.getName()).log(Level.SEVERE, null, ex);\n mailAlertsCheck = false;\n new ExceptionUI(ex);\n }*/\n } else {\n mailAlertsCheck = false;\n mailPasstoCheck = false;\n mailPassccCheck = false;\n mailFailtoCheck = false;\n mailFailccCheck = false;\n }\n\n }", "static void emailValidation(String email) throws Exception {\n Pattern pattern_email = Pattern.compile(\"^[a-z0-9._-]+@[a-z0-9._-]{2,}\\\\.[a-z]{2,4}$\");\n if (email != null) {\n if (!pattern_email.matcher(email).find()) {\n throw new Exception(\"The value is not a valid email address\");\n }\n } else {\n throw new Exception(\"The email is required\");\n }\n }", "@Test\n\t\tvoid givenEmail_CheckForValidationForEmail_RetrunFalse() {\n\t\t\tboolean result =ValidateUserDetails.validateEmails(\"abc.xyz@bl\");\n\t\t\tAssertions.assertFalse(result);\n\t\t}", "public static void main(String[] args) {\n\n\t\tString emailID = \"[email protected]\";\n\t\tboolean isValidEmailID = true;\n\n\t\t//get index(position) value of '@' and '.'\n\t\tint at_index = emailID.indexOf('@');\n\t\tint dot_index = emailID.indexOf('.');\n\t\t\t\t\n\t\t// Check all rules one by one, if any one of the rule is not satisfied then it returns false immediately,\n\t\t// it returns true only after all the rules are satisfied\n\t\tisValidEmailID = (at_index < 0 || dot_index < 0) ? false\n\t\t\t\t: (at_index != emailID.lastIndexOf('@') || dot_index != emailID.lastIndexOf('.')) ? false\n\t\t\t\t\t\t: (emailID.substring(at_index + 1, dot_index).length() != 4) ? false\n\t\t\t\t\t\t\t\t: (emailID.substring(0, at_index).length() < 3) ? false\n\t\t\t\t\t\t\t\t\t\t: (emailID.toLowerCase().endsWith(\".com\") == false) ? false : true;\n\t\t\n\t\tSystem.out.println(\"Email ID : \" + emailID);\n\t\t\n\t\t\t\t\t\t\n\t\tif (isValidEmailID) {\n\t\t\tSystem.out.println(\"Email Validation Result : True (ie given maild is in vaild format)\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Email Validation Result : False (ie given maild is not in vaild format)\");\n\t\t}\n\n\t}", "public static void main(String[] args){\n\tValidateUser first =(String Fname) -> {\n\t\tif(Pattern.matches(\"[A-Z]{1}[a-z]{2,}\",Fname))\n\t\t\tSystem.out.println(\"First Name Validate\");\n\t\t\telse \n\t\t\tSystem.out.println(\"Invalid Name, Try again\");\n\t}; \n\t//Lambda expression for Validate User Last Name\n\tValidateUser last =(String Lname) -> {\n\t\tif(Pattern.matches(\"[A-Z]{1}[a-z]{2,}\",Lname))\n\t\t\tSystem.out.println(\"Last Name Validate\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Last Name, Try again\");\n\t};\n\t//Lambda expression for Validate User Email\n\tValidateUser Email =(String email) -> {\n\t\tif(Pattern.matches(\"^[\\\\w-\\\\+]+(\\\\.[\\\\w]+)*@[\\\\w-]+(\\\\.[\\\\w]+)*(\\\\.[a-z]{2,})$\",email))\n\t\t\tSystem.out.println(\"email Validate\");\n\t\telse\n\t\t\tSystem.out.println(\"Invalid Email, Try again\");\n\t};\n\t//Lambda expression for Validate User Phone Number\n\tValidateUser Num =(String Number) -> {\n\t\tif(Pattern.matches(\"^[0-9]{2}[\\\\s][0-9]{10}\",Number))\n\t\t\tSystem.out.println(\"Phone Number Validate\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Number, Try Again\");\n\t};\n\t//Lambda expression for Validate User Password\n\tValidateUser Password =(String pass) -> {\n\t\tif(Pattern.matches(\"(?=.*[$#@!%^&*])(?=.*[0-9])(?=.*[A-Z]).{8,20}$\",pass))\n\t\t\tSystem.out.println(\"Password Validate\");\n\t\t\telse\n\t\t\tSystem.out.println(\"Invalid Password Try Again\");\n\t};\n\t\n\tfirst.CheckUser(\"Raghav\");\n\tlast.CheckUser(\"Shettay\");\n\tEmail.CheckUser(\"[email protected]\");\n\tNum.CheckUser(\"91 8998564522\");\n\tPassword.CheckUser(\"Abcd@321\");\n\t\n\t\n\t\n\t//Checking all Email's Sample Separately\n\tArrayList<String> emails = new ArrayList<String>();\n\t//Valid Email's\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\t\n\t//Invalid Email's\n\temails.add(\"[email protected]\");\n\temails.add(\"abc123@%*.com\");\n\t\n\tString regex=\"^[\\\\w-\\\\+]+(\\\\.[\\\\w]+)*@[\\\\w-]+(\\\\.[\\\\w]+)*(\\\\.[a-z]{2,})$\";\n\t\n\tPattern pattern = Pattern.compile(regex);\n\t\n\tfor(String mail : emails) {\n\t\tMatcher matcher = pattern.matcher(mail);\n\t System.out.println(mail +\" : \"+ matcher.matches());\n\t}\n \n}", "private void validationEmail(String email) throws FormValidationException {\n\t\tif (email != null) {\n\t\t\tif (!email.matches(\"([^.@]+)(\\\\.[^.@]+)*@([^.@]+\\\\.)+([^.@]+)\")) {\n\t\t\t\tSystem.out.println(\"Merci de saisir une adresse mail valide.\");\n\n\t\t\t\tthrow new FormValidationException(\n\t\t\t\t\t\t\"Merci de saisir une adresse mail valide.\");\n\t\t\t\t// } else if ( groupDao.trouver( email ) != null ) {\n\t\t\t\t// System.out.println(\"Cette adresse email est déjà utilisée, merci d'en choisir une autre.\");\n\t\t\t\t// throw new FormValidationException(\n\t\t\t\t// \"Cette adresse email est déjà utilisée, merci d'en choisir une autre.\"\n\t\t\t\t// );\n\t\t\t}\n\t\t}\n\t}", "private void checkValidation() {\n // Get email id and password\n MainActivity.EmailAddress = emailid.getText().toString();\n finalPassword = password.getText().toString();\n\n // Check patter for email id\n Pattern p = Pattern.compile(Utils.regEx);\n\n Matcher m = p.matcher(MainActivity.EmailAddress);\n\n // Check for both field is empty or not\n if (MainActivity.EmailAddress.equals(\"\") || MainActivity.EmailAddress.length() == 0\n || finalPassword.equals(\"\") || finalPassword.length() == 0) {\n loginLayout.startAnimation(shakeAnimation);\n new CustomToast().Show_Toast(getActivity(), view,\n \"Enter both credentials.\");\n\n }\n // Check if email id is valid or not\n else if (!m.find())\n new CustomToast().Show_Toast(getActivity(), view,\n \"Your Email Id is Invalid.\");\n // Else do login and do your stuff\n else\n tryLoginUser();\n\n }", "private void validateEmail() {\n myEmailValidator.processResult(\n myEmailValidator.apply(myBinding.editResetEmail.getText().toString().trim()),\n this::verifyAuthWithServer,\n result -> myBinding.editResetEmail.setError(\"Please enter a valid Email address.\"));\n }", "@Test\n //@Disabled\n public void testValidateEmail() {\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertFalse(RegExprMain.validateEmail(\"[email protected]\"));\n assertFalse(RegExprMain.validateEmail(\"luna@gmail\"));\n assertFalse(RegExprMain.validateEmail(\"[email protected]\"));\n assertFalse(RegExprMain.validateEmail(\"lubo.xaviluna@gmai_l.com\"));\n assertTrue(RegExprMain.validateEmail(\"luna#[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n \n \n\n }", "private void validateEmail() {\n mEmailValidator.processResult(\n mEmailValidator.apply(binding.registerEmail.getText().toString().trim()),\n this::validatePasswordsMatch,\n result -> binding.registerEmail.setError(\"Please enter a valid Email address.\"));\n }", "@Test\r\n\tpublic void TC_08_verify_Existing_Email_Address() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\t\r\n\t\t// Step 2: Enter valid/mandatory registration details with valid email address already taken\r\n\t\t\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", firstName);\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", email);\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\t\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t\r\n\t\t// Step 4: Verify user should NOT be able to proceed further with registration as proper validation message regarding already registered\r\n\t\t//email address is displayed\r\n\t\terrMsg = Page_Registration.getMandatoryFieldErrMsg();\r\n\t\tAssert.assertEquals(errMsg, \"Username already taken.\");\r\n\r\n\t}", "public void validate(){\r\n\t\ttry{\r\n\t\t\t//First name, last name, date of birth and email are compulsory.\r\n\t\tif(FirstName==null||LastName==null||Dob==null||Email==null) \r\n\t\t\tthrow new Exception(\"One of the field is Empty :\\n(First name / last name / dob / email )\");\r\n\t\tif(TelephoneNumber!=0||MobileNumber!=0)\r\n\t\t\tthrow new Exception(\"Enter Contact Number\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\t/*finally{\r\n\t\t\tSystem.out.println(\"Program Executed\");\r\n\t\t}*/\r\n\t}", "public boolean Validate() {\n String[] testArr = {titleTxf.getText(), fNameTxf.getText(), sNameTxf.getText(),\n initialTxf.getText(), hNumTxf.getText(), cNumTxf.getText(), emailTxf.getText(), idNumTxf.getText(),\n (String) maritalCbx.getSelectedItem(), \n resTxf1.getText() + \"\" + resTxf2.getText(), zipResTxf.getText(),postTxf1.getText() + \"\" + postTxf2.getText(),\n zipPostTxf.getText() };\n\n // verify user has entered data into required fields\n String inputTest = \"\";\n\n for (int i = 0; i < testArr.length; i++) {\n if (testArr[i].equals(inputTest)) {\n\n JOptionPane.showMessageDialog(rootPane, \"please fill in all required fields\", \"ERROR\", ERROR_MESSAGE);\n \n return false;\n \n\n }\n \n \n }\n //verify Home number\n if(hNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Home number\", \"ERROR\", ERROR_MESSAGE);\n errHNum.setText(\"!\");\n \n return false;\n }\n else{\n errHNum.setText(\"\");\n }\n //verify CellNo\n if(cNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Cellphone number\", \"ERROR\", ERROR_MESSAGE);\n errCNum.setText(\"!\");\n \n return false;\n \n }\n else{\n errCNum.setText(\"\");\n }\n //verify email\n String email =emailTxf.getText(); \n if(!email.contains(\"@\")|| !email.contains(\".\")){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild email address\", \"ERROR\", ERROR_MESSAGE);\n errEmail.setText(\"!\");\n return false;\n }\n else{\n errEmail.setText(\"\");\n }\n \n //verify ID No. (Local)\n String ID = idNumTxf.getText();\n if(ID.length()!=13){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild ID number\", \"ERROR\", ERROR_MESSAGE);\n errID.setText(\"!\");\n return false;\n }\n else{\n errID.setText(\"\");\n }\n \n if(zipResTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipRes.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipRes.setText(\"\");\n }\n if(zipPostTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipPost.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipPost.setText(\"\");\n }\n \n \n return true;\n\n }", "@Test\r\n public void testEmailAnomalies() {\r\n Assert.assertEquals(emailValidator.isValid(\"[email protected]\", constraintValidatorContext), false);\r\n Assert.assertEquals(emailValidator.isValid(\"aa@testcom\", constraintValidatorContext), false);\r\n\r\n }", "boolean validateMailAddress(final String mailAddress);", "@Override\n public void validaEmailInteractor(CharSequence charSequence) {\n verificaEmail(charToString(charSequence));\n }", "boolean validateEmail(String email) {\n\t\treturn true;\n\n\t}", "@RequestMapping(value = \"/signup/validateEmail\", method = RequestMethod.POST)\n @ResponseBody\n public SPResponse validateEmail(@RequestParam String email) {\n SPResponse spResponse = new SPResponse();\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"The email to validate :\" + email);\n }\n // validate the email\n User user = userRepository.findByEmail(email); // signupForm.getEmail()\n if (user != null) {\n spResponse.addError(\"Duplicate_Email\",\n MessagesHelper.getMessage(\"exception.duplicateEmail.signup\"));\n } else {\n spResponse.isSuccess();\n }\n return spResponse;\n }", "@Test\n public void testIsValidEmailAddress() {\n System.out.println(\"isValidEmailAddress\");\n String email = \"hg5\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidEmailAddress(email);\n assertEquals(expResult, result);\n }", "private boolean isInputValid() {\r\n \r\n String errorMessage = \"\";\r\n \r\n // Email regex provided by emailregex.com using the RFC5322 standard\r\n String emailPatternString = \"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21-\\\\x5a\\\\x53-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])+)\\\\])\";\r\n \r\n // Phone number regex provided by Ravi Thapliyal on Stack Overflow:\r\n // http://stackoverflow.com/questions/16699007/regular-expression-to-match-standard-10-digit-phone-number\r\n String phoneNumString = \"^(\\\\+\\\\d{1,2}\\\\s)?\\\\(?\\\\d{3}\\\\)?[\\\\s.-]?\\\\d{3}[\\\\s.-]?\\\\d{4}$\";\r\n \r\n Pattern emailPattern = Pattern.compile(emailPatternString, Pattern.CASE_INSENSITIVE);\r\n Matcher emailMatcher;\r\n \r\n Pattern phoneNumPattern = Pattern.compile(phoneNumString);\r\n Matcher phoneNumMatcher;\r\n \r\n // Validation for no length or over database size limit\r\n if ((custFirstNameTextField.getText() == null || custFirstNameTextField.getText().length() == 0) || (custFirstNameTextField.getText().length() > 25)) {\r\n errorMessage += \"First name has to be between 1 and 25 characters.\\n\";\r\n }\r\n \r\n if ((custLastNameTextField.getText() == null || custLastNameTextField.getText().length() == 0) || (custLastNameTextField.getText().length() > 25)) {\r\n errorMessage += \"Last name has to be between 1 and 25 characters.\\n\";\r\n }\r\n \r\n if ((custAddressTextField.getText() == null || custAddressTextField.getText().length() == 0) || (custAddressTextField.getText().length() > 75)) {\r\n errorMessage += \"Address has to be between 1 and 75 characters.\\n\";\r\n }\r\n \r\n if ((custCityTextField.getText() == null || custCityTextField.getText().length() == 0) || (custCityTextField.getText().length() > 50)) {\r\n errorMessage += \"City has to be between 1 and 50 characters.\\n\";\r\n }\r\n \r\n if ((custProvinceTextField.getText() == null || custProvinceTextField.getText().length() == 0) || (custProvinceTextField.getText().length() > 2)) {\r\n errorMessage += \"Province has to be a two-letter abbreviation.\\n\";\r\n }\r\n \r\n if ((custPostalCodeTextField.getText() == null || custPostalCodeTextField.getText().length() == 0) || (custPostalCodeTextField.getText().length() > 7)) {\r\n errorMessage += \"Postal Code has to be between 1 and 7 characters.\\n\";\r\n }\r\n \r\n if ((custCountryTextField.getText() == null || custCountryTextField.getText().length() == 0) || (custCountryTextField.getText().length() > 25)) {\r\n errorMessage += \"Country has to be between 1 and 25 characters.\\n\";\r\n }\r\n \r\n if ((custHomePhoneTextField.getText() == null || custHomePhoneTextField.getText().length() == 0) || (custHomePhoneTextField.getText().length() > 20)) {\r\n errorMessage += \"Phone number has to be between 1 and 20 characters long.\\n\";\r\n } else {\r\n phoneNumMatcher = phoneNumPattern.matcher(custHomePhoneTextField.getText());\r\n if (!phoneNumMatcher.matches()) {\r\n errorMessage += \"Phone number not in the correct format: (111) 111-1111.\\n\";\r\n }\r\n }\r\n \r\n if ((custBusinessPhoneTextField.getText() == null || custBusinessPhoneTextField.getText().length() == 0) || (custBusinessPhoneTextField.getText().length() > 20)) {\r\n errorMessage += \"Phone number has to be between 1 and 20 characters long.\\n\";\r\n } else {\r\n phoneNumMatcher = phoneNumPattern.matcher(custBusinessPhoneTextField.getText());\r\n if (!phoneNumMatcher.matches()) {\r\n errorMessage += \"Phone number not in the correct format: (111) 111-1111.\\n\";\r\n }\r\n }\r\n \r\n if ((custEmailTextField.getText() == null || custEmailTextField.getText().length() == 0) || (custEmailTextField.getText().length() > 50)) {\r\n errorMessage += \"Email has to be between 1 and 50 characters.\\n\";\r\n } else {\r\n emailMatcher = emailPattern.matcher(custEmailTextField.getText());\r\n if (!emailMatcher.matches()) {\r\n errorMessage += \"Email format is not correct. Should be in the format [email protected].\\n\"; \r\n } \r\n }\r\n \r\n if (errorMessage.length() > 0) {\r\n Alert alert = new Alert(AlertType.ERROR, errorMessage, ButtonType.OK);\r\n alert.setTitle(\"Input Error\");\r\n alert.setHeaderText(\"Please correct invalid fields\");\r\n alert.showAndWait();\r\n \r\n return false;\r\n }\r\n \r\n return true;\r\n }", "@Test(priority=1)\n\tpublic void testEmailValidity() {\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"123@abc\");\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\tAssert.assertTrue(TestHelper.isStringPresent(errors, \"Please enter a valid email address in the format [email protected].\"));\n\t}", "private boolean isEmailValid(String email) {\n return true;\r\n }", "private void validationEmail(String email) throws Exception {\r\n\t\tif (email != null && email.trim().length() != 0) {\r\n\t\t\tif (!email.matches(\"([^.@]+)(\\\\.[^.@]+)*@([^.@]+\\\\.)+([^.@]+)\")) {\r\n\t\t\t\tthrow new Exception(\"Merci de saisir une adresse mail valide.\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new Exception(\"Merci de saisir une adresse mail.\");\r\n\t\t}\r\n\t}", "boolean isValidEmail(String email){\n boolean ValidEmail = !email.isEmpty() && Patterns.EMAIL_ADDRESS.matcher(email).matches();\n if(!ValidEmail){\n userEmail.setError(\"please fill this field correctly\");\n return false;\n }\n return true;\n }", "private boolean validate() {\n\n EditText fnameET = findViewById(R.id.fnameET);\n EditText lnameET = findViewById(R.id.lnameET);\n EditText perNoET = findViewById(R.id.perNoET);\n EditText lecEmailET = findViewById(R.id.lecEmailET);\n EditText adminCodeET = findViewById(R.id.adminCodeET);\n EditText passwET = findViewById(R.id.passwET);\n EditText cpasswET = findViewById(R.id.cpasswET);\n\n String fname = fnameET.getText().toString().trim();\n String lname = lnameET.getText().toString().trim();\n String personNo = perNoET.getText().toString().trim();\n String lectEmail = lecEmailET.getText().toString().trim();\n String adminCode = adminCodeET.getText().toString().trim();\n String password = passwET.getText().toString().trim();\n String cpassword = cpasswET.getText().toString().trim();\n\n //boolean flag;\n\n if(fname.isEmpty()) {\n fnameET.setError(\"Field can't be empty!\");\n fnameET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(lname.isEmpty()) {\n lnameET.setError(\"Field can't be empty!\");\n lnameET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(personNo.isEmpty()) {\n perNoET.setError(\"Field can't be empty!\");\n perNoET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(lectEmail.isEmpty()) {\n lecEmailET.setError(\"Field can't be empty!\");\n lecEmailET.requestFocus();\n return false;\n } else if (!Patterns.EMAIL_ADDRESS.matcher(lectEmail).matches()) {\n lecEmailET.setError(\"check that your email is entered correctly!\");\n lecEmailET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(adminCode.isEmpty()) {\n adminCodeET.setError(\"Field can't be empty!\");\n adminCodeET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(password.isEmpty()) {\n passwET.setError(\"Field can't be empty!\");\n passwET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(cpassword.isEmpty()) {\n cpasswET.setError(\"Field can't be empty!\");\n cpasswET.requestFocus();\n return false;\n } else if (!cpassword.equals(password)) {\n cpasswET.setError(\"password doesn't match the above entered password!\");\n cpasswET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n return true;\n }", "@When(\"A user enters a valid email address$\")\n public void check_valid_email(DataTable email) throws Throwable {\n List<List<String>> email_addresses = email.raw();\n for (List<String> element : email_addresses) {\n for (String ea : element) {\n home.submit_email(ea);\n }\n }\n }", "public String checkEmail() {\n String email = \"\"; // Create email\n boolean isOK = true; // Condition loop\n\n while (isOK) {\n email = checkEmpty(\"Email\"); // Call method to check input of email\n // Pattern for email\n String emailRegex = \"^[a-zA-Z0-9_+&*-]+(?:\\\\.\" + \"[a-zA-Z0-9_+&*-]+)*@\"\n + \"(?:[a-zA-Z0-9-]+\\\\.)+[a-z\" + \"A-Z]{2,7}$\";\n boolean isContinue = true; // Condition loop\n\n while (isContinue) {\n // If pattern not match, the print out error\n if (!Pattern.matches(emailRegex, email)) {\n System.out.println(\"Your email invalid!\");\n System.out.print(\"Try another email: \");\n email = checkEmpty(\"Email\");\n } else {\n isContinue = false;\n }\n }\n\n boolean isExist = false; // Check exist email\n for (Account acc : accounts) {\n if (email.equals(acc.getEmail())) {\n // Check email if exist print out error\n System.out.println(\"This email has already existed!\");\n System.out.print(\"Try another email: \");\n isExist = true;\n }\n }\n\n // If email not exist then return email\n if (!isExist) {\n return email;\n }\n }\n return email; // Return email\n }", "static boolean isValid(String email) {\r\n\t\t String regex = \"^[\\\\w-_\\\\.+]*[\\\\w-_\\\\.]\\\\@([\\\\w]+\\\\.)+[\\\\w]+[\\\\w]$\";\r\n\t\t return email.matches(regex);\r\n\t}", "private boolean isEmailValid(String email) {\n if (email.length() == 8){\n return true;\n }\n\t//user names first two characters must be letters\n Boolean condition1 = false;\n Boolean condition2 = false;\n\n int ascii = (int) email.charAt(0);\n if ((ascii >= 65 && ascii <= 90) || ascii >= 97 && ascii <= 122){\n condition1 = true;\n }\n ascii = (int) email.charAt(1);\n if ((ascii >= 65 && ascii <= 90) || ascii >= 97 && ascii <= 122){\n condition2 = true;\n }\n if (condition1 == true && condition2 == true){\n return true;\n }\n\n\t//user names last six characters must be numbers\n for (int i = email.length()-6; i < email.length(); i++){\n ascii = (int) email.charAt(i);\n if (!(ascii >= 48 && ascii <= 57)){\n return false;\n }\n }\n\n return true;\n }", "private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }", "private void emailValidation( String email ) throws Exception {\r\n if ( email != null && !email.matches( \"([^.@]+)(\\\\.[^.@]+)*@([^.@]+\\\\.)+([^.@]+)\" ) ) {\r\n throw new Exception( \"Merci de saisir une adresse courriel valide.\" );\r\n }\r\n }", "@Override\n\tpublic boolean emailisValid(String email) \n\t{\n\t\treturn false;\n\t}", "@Test\n\tpublic void testValidate() {\n\t\tSystem.out.println(\"starting testValidate()\");\n\t\tPersonalData personalData = new PersonalData(\"Kelvin\", \"Huynh\", \"4081234567\", \"[email protected]\");\n\t\tassertTrue (\"address validates\", personalData.validatePersonalData());\n\t System.out.println(\"testValidate PASSED\");\n\t}", "@Test\r\n\tpublic void TC_05_verify_email_Mandatory_Field() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\t\r\n\t\t// Step 2: Enter valid/mandatory registration details except email address\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", firstName);\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", \"\");\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t// Step 4: Verify user should NOT be able to proceed further with registration as proper validation message regarding email address\r\n\t\t// is displayed\r\n\t\terrMsg = Page_Registration.getMandatoryFieldErrMsg();\r\n\t\tAssert.assertEquals(errMsg, \"Please enter a value for Email\");\r\n\r\n\t}", "@Test\n public void testBasicValid() {\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"admin@mailserver1\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"user%[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n }", "public void validate_the_Address_Line_1_of_Installation_Address_in_Customer_Tab(String AddressLine1)throws Exception {\n\t\tReport.fnReportPageBreak(\"Instalation Address\", driver);\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_InstallationAddress.replaceAll(\"M_Header\", \"Installation Address\").replaceAll(\"M_Category\", \"Address Line 1\").replaceAll(\"M_InnerText\", AddressLine1), \"Address Line 1 of Installation Address - \"+AddressLine1, false);\n\t}", "@Test\n\t\tvoid givenEmail_CheckForValidationForMobile_RetrunTrue() {\n\t\t\tboolean result = ValidateUserDetails.validateMobile(\"98 9808229348\");\n\t\t\tAssertions.assertTrue(result);\n\t\t}", "public void validate_the_Address_Line_1_of_Correspondence_Address_in_Customer_Tab(String AddressLine1)throws Exception {\n\t\tReport.fnReportPageBreak(\"Correspondence Address\", driver);\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Correspondence Address\").replaceAll(\"M_Category\", \"Address Line 1\").replaceAll(\"M_InnerText\", AddressLine1), \"Address Line 1 of Correspondence Address - \"+AddressLine1, false);\n\t\t\n\t}", "private boolean isValidEmail(final String theEmail) {\n return theEmail.contains(\"@\");\n }", "public void validateCreateCustomerAndTask() {\n\t\tAttSelectNewCustomerOptionFromListBox.click();\n\t\tAttCustomerNameTextBox.sendKeys(\"TestCust\");\n\t\tAttProjectNameTextBox.sendKeys(\"TestProject\");\n\t\tAttTaskNameTextBox.sendKeys(\"Tast1WCNP\");\n\t\tAttBudgetTimeTextBox.sendKeys(\"3:00\");\n\t\tAttEnterDateInDateField.sendKeys(Keys.ENTER,\"Jan 27, 2019\");\n\t\tAttSelectBillableBillingType.click();\n\t\tAttSelectCheckBoxMarkToBeAdd.click();\n\t\tAttCreateTaskBtn.click();\n\t}", "private boolean isEmailValid(String email) {\n return true;\n }", "private boolean isEmailValid(String email) {\n return true;\n }", "private boolean isEmailValid(String email) {\n return true;\n }", "private boolean isEmailValid(String email) {\n return true;\n }", "public void validateEmail(String email) throws SubscriptionValidationException {\n final Pattern VALID_EMAIL_ADDRESS_REGEX = Pattern.compile(\"^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\\\.[A-Z]{2,6}$\",\n Pattern.CASE_INSENSITIVE);\n Matcher matcher = VALID_EMAIL_ADDRESS_REGEX.matcher(email);\n if (!(matcher.matches())) {\n throw new SubscriptionValidationException(\"Wrong email address: \" + email);\n }\n }", "public void validate() throws CruiseControlException {\n ValidationHelper.assertIsSet(getMailHost(), \"mailhost\", this.getClass());\n ValidationHelper.assertIsSet(getReturnAddress(), \"returnaddress\", this.getClass());\n ValidationHelper.assertFalse(getUsername() != null && getPassword() == null,\n \"'password' is required if 'username' is set for email.\");\n ValidationHelper.assertFalse(getPassword() != null && getUsername() == null,\n \"'username' is required if 'password' is set for email.\");\n \n for (int i = 0; i < alertAddresses.length; i++) {\n try {\n alertAddresses[i].fileFilter = new GlobFilenameFilter(alertAddresses[i].fileRegExpr);\n } catch (MalformedCachePatternException mcpe) {\n ValidationHelper.fail(\"invalid regexp '\" + alertAddresses[i].fileRegExpr + \"'\", mcpe);\n }\n }\n }", "public int getValidUserEmail(Validation v) {\r\n\r\n\t\t\r\n\t\tint a=0;\r\n\t\tString query=\"select * from user_registration where user_name='\"+v.getUsername() +\"' and email='\"+v.getEmail()+\"'\";\r\n\t\t\r\n\t\tRowMapper<Validation> rowMapper=new RowMapper<Validation>() {\r\n\r\n\t\t\tpublic Validation mapRow(ResultSet rs, int row) throws SQLException {\r\n\t\t\t\t Validation v=new Validation();\r\n\t\t\t\t v.setUsername(rs.getString(\"user_name\"));\r\n\t\t\t\t v.setPassword(rs.getString(\"email\"));\r\n\t\t\treturn v;\r\n\t\t\t}\r\n\t\t};\r\n\t\tList<Validation> list=jdbctemplate.query(query, rowMapper);\r\n\t\t a=list.size()>0?1:0; \r\n\t\treturn a;\r\n\t}", "boolean isEmailRequired();", "private boolean validateFields(){ \n ImplLogger.enterMethod(); \n StringBuffer validationMessage = new StringBuffer();\n boolean isValidationPassed = true;\n if(!ImplValidationUtils.isAlphaSpace(pharmaNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_NAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n pharmaNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n } \n if(!ImplValidationUtils.isAlphabetOnly(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplCommonUtil.isUserNameExist(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME_EXIST);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(contactTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_CONTACT);\n validationMessage.append(ImplConst.NEXT_LINE);\n contactTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(zipCodeTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_ZIPCODE);\n validationMessage.append(ImplConst.NEXT_LINE);\n zipCodeTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(passwordField.getText())){\n validationMessage.append(ImplConst.VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n passwordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n confirmPasswordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if (!ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText()) && !confirmPasswordField.getText().equals(passwordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n isValidationPassed = false; \n }\n if(!isValidationPassed){\n JOptionPane.showMessageDialog(null,validationMessage);\n } \n ImplLogger.exitMethod();\n return isValidationPassed;\n }", "public boolean isValidNewEmail(TextInputLayout tiEmail, EditText etEmail) {\n boolean result = isValidEmail(tiEmail, etEmail);\n\n if (result) {\n String email = etEmail.getText().toString().trim();\n UserRepository userRepository = new UserRepository(c.getApplicationContext());\n if (userRepository.getUserByEmail(email) != null) {\n tiEmail.setError(c.getString(R.string.emailExist));\n result = false;\n } else {\n tiEmail.setError(null);\n result = true;\n }\n }\n\n return result;\n }", "private boolean isValidEmail(TextInputLayout tiEmail, EditText etEmail) {\n String email = etEmail.getText().toString().trim();\n boolean result = false;\n\n if (email.length() == 0)\n tiEmail.setError(c.getString(R.string.required));\n else {\n Pattern emailPattern = Patterns.EMAIL_ADDRESS;\n if (!emailPattern.matcher(email).matches())\n tiEmail.setError(c.getString(R.string.invalid));\n else {\n tiEmail.setError(null);\n result = true;\n }\n }\n\n return result;\n }", "@Test\n public void Email_WhenValid_ShouldReturnTrue(){\n RegexTest valid = new RegexTest();\n boolean result = valid.Email(\"[email protected]\");\n Assert.assertEquals(true,result);\n }", "private boolean isEmailValid(String email) {\n return email.equals(\"[email protected]\");\n }", "@Test\n\tpublic void testValidateUsernameEmail() {\n\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\n\t\tassertFalse(ValidationUtil.validate(\"test4\", Validate.username_valid));\n\t\tassertFalse(ValidationUtil.validate(\"@com\", Validate.username_valid));\n\t\tassertFalse(ValidationUtil.validate(\"com@\", Validate.username_valid));\n\t}", "private void checkValidEmail(String email) throws ValidationException {\n String emailRegex = \"^[\\\\w-_\\\\.+]*[\\\\w-_\\\\.]\\\\@([\\\\w]+\\\\.)+[\\\\w]+[\\\\w]$\";\n if (!email.matches(emailRegex)) {\n throw new ValidationException(\"Incorrect email format\");\n }\n }", "@Test\n public void testCantRegisterInvalidEmail() {\n enterValuesAndClick(\"\", \"invalidemail\", \"123456\", \"123456\");\n checkErrors(nameRequiredError, emailInvalidError, pwdNoError, pwdRepeatNoError);\n }", "public static void main(String args[]) {\n\t\t\n\t\t//validating the first name of the user\n\t\tUserValidationInterface validateFirstName = (firstName) -> {\n\t\t\tString regex = \"^[A-Z][a-z]{2,}\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(firstName);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"First Name of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"First Name of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidateFirstName.validate(\"Rosy\");\n\n\t\t//validating the last name of the user\n\t\tUserValidationInterface validateLastName = (lastName) -> {\n\t\t\tString regex = \"^[A-Z][a-z]{2,}\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(lastName);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"Last Name of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Last Name of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidateLastName.validate(\"Rupali\");\n\n\t\t//validating the email Id of the user\n\t\tUserValidationInterface validateEmailId = (emailId) -> {\n\t\t\tString regex = \"^[a-z0-9.+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,6}$\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(emailId);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"Email Id of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Email Id of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidateEmailId.validate(\"[email protected]\");\n\n\t\t//validating the mobile number of the user\n\t\tUserValidationInterface validatePhoneNumber = (mobileNumber) -> {\n\t\t\tString regex = \"[0-9]{2}\\\\s{1}[0-9]{10}\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(mobileNumber);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"Mobile number of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Mobile number of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidatePhoneNumber.validate(\"91 9423632176\");\n\n\t\t//validating the password of the user\n\t\tUserValidationInterface validatePassword = (password) -> {\n\t\t\tString regex = \"^(?=.*[A-Z])(?=.*[0-9])(?=.*[^a-zA-Z0-9]).{8,}$\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(password);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"password of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"password of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidatePassword.validate(\"oneFine$123\");\n\n\t}", "@Test\n\tpublic void validEmailIdIsTested() throws InValidEmailException {\n\t\tString emailId = \"[email protected]\";\n\t\tboolean isValidMail = EmailValidatorUtil.isValidEmailId(emailId, \"InValid EmailId Format\");\n\t\tassertTrue(isValidMail);\n\t}", "public void validate_the_Address_Line_2_of_Installation_Address_in_Customer_Tab(String AddressLine2)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Installation Address\").replaceAll(\"M_Category\", \"Address Line 2\").replaceAll(\"M_InnerText\", AddressLine2), \"Address Line 2 of Installation Address - \"+AddressLine2, false);\n\t}", "@Test\n\tpublic void inValidEmailIdIsTested() {\n\t\ttry {\n\t\t\tString emailId = \"divyagmail.com\";\n\t\t\tboolean isValidMail = EmailValidatorUtil.isValidEmailId(emailId, \"InValid EmailID Format\");\n\t\t\tassertFalse(isValidMail);\n\t\t} catch (Exception e) {\n\t\t\tassertEquals(\"InValid EmailID Format\", e.getMessage());\n\n\t\t}\n\t}", "public int getValidSpEmailUname(Validation v) {\r\n\t\tint a=0;\r\nString query=\"select * from sp_final where user_name='\"+v.getUsername() +\"' and email='\"+v.getEmail()+\"'\";\r\n\t\t\r\n\t\tRowMapper<Validation> rowMapper=new RowMapper<Validation>() {\r\n\r\n\t\t\tpublic Validation mapRow(ResultSet rs, int row) throws SQLException {\r\n\t\t\t\t Validation v=new Validation();\r\n\t\t\t\t v.setUsername(rs.getString(\"user_name\"));\r\n\t\t\t\t v.setEmail(rs.getString(\"email\"));\r\n\t\t\treturn v;\r\n\t\t\t}\r\n\t\t};\r\n\t\tList<Validation> list=jdbctemplate.query(query, rowMapper);\r\n\t\t a=list.size()>0?1:0; \r\n\t\treturn a;\r\n\t}", "public EmailCheckResult check(String emailValue) {\n int atSignPosition = emailValue.indexOf('@');\n if (atSignPosition == -1) return EmailCheckResult.NOT_EMAIL;\n\n\n String domainValue = emailValue.substring(++atSignPosition);\n ArrayList<String> mxList;\n\n // check if the value has domain\n try {\n mxList = getMX(domainValue);\n } catch (NamingException ex) {\n return EmailCheckResult.NO_DOMAIN;\n }\n if (mxList.size() == 0) return EmailCheckResult.NO_DOMAIN;\n else return checkMxHosts(emailValue, mxList);\n }", "private boolean isEmailValid(String email) {\n return email.matches(\"^[a-zA-Z]{5,12}$\");\r\n }", "private boolean isValidInput(String Name, String Email, String Password, String ConfirmationPassword) {\n\n String regex = \"^(.+)@(.+)$\";\n\n Pattern pattern = Pattern.compile(regex);\n\n Matcher matcher = pattern.matcher(Email);\n\n if (Name == null || Name.equals(\"\") || Name.equals(\" \") ||\n !matcher.matches() ||\n Password == null || Password.equals(\"\") ||\n ConfirmationPassword == null || !ConfirmationPassword.equals(Password)) {\n return false;\n }\n return true;\n }", "public void validate_the_Address_Line_1_of_Billing_Address_in_Customer_Tab(String AddressLine1)throws Exception {\n\t\tReport.fnReportPageBreak(\"Billing Address\", driver);\n\t\tSystem.out.println(AddressLine1);\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_BillingAddress.replaceAll(\"M_Header\", \"Billing Address\").replaceAll(\"M_Category\", \"Address Line 1\").replaceAll(\"M_InnerText\", AddressLine1), \"Address Line 1 of Billing Address - \"+AddressLine1, false);\n\t}", "public static void main(String[] args) {\n\t\t\n\t ArrayList<String> emails = new ArrayList<String>();\n\t \n\t // valid email addresses\n\t emails.add(\"[email protected]\");\n\t emails.add(\"[email protected]\");\n\t emails.add(\"[email protected]\");\n\t emails.add(\"[email protected]\");\n\t emails.add(\"[email protected]\");\n\t \n\t \n\t //invalid email addresses\n\t emails.add(\"@gmail.com\");\n\t emails.add(\"shagun&ag.com\");\n\t emails.add(\"raghu#@example.us.org\");\n\n\t //initialize the Pattern object\n\t Pattern pattern = Pattern.compile(regex);\n\n\t //searching for occurrences of regex\n\t for (String value : emails) {\n\t Matcher matcher = pattern.matcher(value);\n\t System.out.println(\"Email \" + value + \" is \" + (matcher.matches() ? \"valid\" : \"invalid\"));\n\t System.out.println(\"-----------------------------------------------------\");\n\t \n//\t \tboolean result = Pattern.compile(regex).matcher(value).matches();\n//\t \tSystem.out.println(result);\n\t }\n\n\t}", "@Test(priority=76)\t\n\tpublic void campaign_user_with_filter_for_invalid_user_email() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_filter_for_invalid_user_email\", \"To validate whether user is able to get campaign and its users through campaign/user api with filter for invalid user_email\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_filter_for_invalid_user_email\");\n\t\tString[] user_emails = test_data.get(4).split(\",\");\n\t\tfor(String user_email:user_emails){\n\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"user_email%3d\"+user_email));\n\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with filter for invalid user_email\");\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t // Convert response to JSON object\t\n\t\t\t JSONParser parser = new JSONParser();\n\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t String result_data = json.get(\"result\").toString();\n\t\t\t Assert.assertEquals(result_data, \"error\", \"API returns success when invalid user_email is passed for filter\");\n\t\t\t test.log(LogStatus.PASS, \"API returns error when invalid user_email is passed for filter\");\n\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t Assert.assertEquals(err_data, \"no records found\", \"Proper validation is not displayed when invalid(\"+user_email+\") user_email is passed in filter. Defect Reported: CT-17153\");\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic int emailcheck(String email) {\n\t\treturn dao.idcheck(email);\r\n\t}", "public void validate_the_Address_Line_2_of_Billing_Address_in_Customer_Tab(String AddressLine2)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Billing Address\").replaceAll(\"M_Category\", \"Address Line 2\").replaceAll(\"M_InnerText\", AddressLine2), \"Address Line 2 of Billing Address - \"+AddressLine2, false);\n\t}", "public boolean validateEmail() {\n\t\tString emailString = emailValidity.getText();\n\t\tString errorMsg = \"Email in use.\";\n\t\tboolean result = emailString.contains(errorMsg);\n\t\tif (result) {\n\t\t\tstoreVerificationResults(true, \"Email in use\");\n\t\t\tresult = true;\n\t\t} else {\n\t\t\tstoreVerificationResults(false, \"User able to reuse email id\");\n\t\t}\n\t\treturn result;\n\t}", "public static boolean checkEmail (String email) throws IllegalArgumentException{\n check = Pattern.compile(\"^[a-zA-Z0-9]+(?:\\\\+*-*.[a-zA-Z0-9]+)*@[a-zA-Z0-9]+(?:\\\\.[a-zA-Z0-9]{2,}+)*$\").matcher(email).matches();\n if (check) {\n return true;\n } else {\n throw new IllegalArgumentException(\"Enter a valid Email Address\");\n }\n }", "public void validate_the_Address_Line_2_of_Correspondence_Address_in_Customer_Tab(String AddressLine2)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Correspondence Address\").replaceAll(\"M_Category\", \"Address Line 2\").replaceAll(\"M_InnerText\", AddressLine2), \"Address Line 2 of Correspondence Address - \"+AddressLine2, false);\n\t}", "public static void validate() {\r\n\t\tfrmMfhEmailer.validate();\r\n\t}", "@Override\n\tpublic boolean verifyEmailAddress(EmailAddress address)\n\t{\n\t\treturn false;\n\t}", "public void emailNotTaken(FacesContext context, UIComponent validate, Object value){\n\t\tcheckHibernateAnnotations(context, validate, value);\t\t\n\t\tString email = (String)value;\n\t\tif (isEmailRegistered(email)){\n \t\t\tFacesMessage msg = new FacesMessage(\"ice email already taken\");\n \t\t\tcontext.addMessage(validate.getClientId(context), msg);\n \t\t\temailValid=false;\n\t\t}else emailValid=true;\n\t}", "@Transactional(readOnly = true)\n public void validateEmailAddress(String email) {\n if (!EMAIL_PATTERN.matcher(email).matches()) {\n throw ApiException.of(ErrorCode.EMAIL_INVALID, email);\n }\n if (domainBlacklistRepository.existsByDomain(email.substring(email.lastIndexOf('@') + 1))) {\n throw ApiException.of(ErrorCode.EMAIL_BLACKLISTED, email);\n }\n }", "public void validate() {}", "@Override\n\tpublic Boolean isValidApplication(ApplicationBean applicationBean) {\n\t\tPattern namePattern=Pattern.compile(\"^[A-Za-z\\\\s]{3,}$\");\n\t\tMatcher nameMatcher=namePattern.matcher(applicationBean.getName());\n\t\tPattern dobPattern=Pattern.compile(\"^[0-3]?[0-9].[0-3]?[0-9].(?:[0-9]{2})?[0-9]{2}$\");\n\t\tMatcher dobMatcher=dobPattern.matcher(applicationBean.getDateOfBirth());\n\t\tPattern goalPattern=Pattern.compile(\"^[A-Za-z\\\\s]{1,}$\");\n\t\tMatcher goalMatcher=goalPattern.matcher(applicationBean.getGoals());\n\t\tPattern marksPattern=Pattern.compile(\"^[1-9][0-9]?$|^100$\");\n\t\tMatcher marksMatcher=marksPattern.matcher(applicationBean.getMarksObtained());\n\t\tPattern scheduleIdPattern=Pattern.compile(\"^[0-9]{1,2}$\");\n\t\tMatcher scheduleIdMatcher=scheduleIdPattern.matcher(applicationBean.getScheduledProgramID());\n\t\tPattern emailPattern=Pattern.compile(\"^[A-Za-z0-9+_.-]+@(.+)$\");\n\t\tMatcher emailMatcher=emailPattern.matcher(applicationBean.getEmailID());\n\t\t\n\t\t\n\t\tif(!(nameMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\nApplicant Name Should Be In Alphabets and minimum 1 characters long.\");\n\t\t\treturn false;\n\t\t}\n\t\tif(!(dobMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\nDate of birth should be in DD/MM/YYYY format.\");\n\t\t\treturn false;\n\t\t}\n\t\tif(!(goalMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\n Goal should be alphabetical and having minimum one letter\");\n\t\t\treturn false;\n\t\t}\n\t\tif(!(marksMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\nMarks should be less than 100\");\n\t\t\treturn false;\n\t\t}\n\t\tif(!(scheduleIdMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\nSchedule Id should be of one or two digit\");\n\t\t\treturn false;\n\t\t}\n\t\tif(!(emailMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\nEnter valid email address\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "@Test\n public void testGetEmail() {\n System.out.println(\"getEmail Test (Passing value)\");\n String expResult = \"[email protected]\";\n String result = user.getEmail();\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertEquals(expResult, result);\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "public static void validation() {\n\t\tif ((!textFieldName.getText().isEmpty()) && (!textField_FirstName.getText().isEmpty())\n\t\t\t\t&& (!textField_Town.getText().isEmpty()) && (!textField_Town.getText().isEmpty())) {\n\n\t\t\tif ((isValidEmailAddress(textField_Email.getText()) == true)) {\n\t\t\t\ttextField_Email.setBackground(Color.white);\n\t\t\t\tif ((force(textField_Mtp.getText()) > 82)) {\n\t\t\t\t\ttextField_Mtp.setBackground(Color.white);\n\t\t\t\t\tactionGiveServeur();\n\n\t\t\t\t} else {\n\t\t\t\t\tshowMessageDialog(null, \"Votre mot de passe est trop faible\");\n\t\t\t\t\ttextField_Mtp.setText(\"Mot de passe trop simple : changer le \");\n\t\t\t\t\ttextField_Mtp.setBackground(Color.RED);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttextField_Email.setText(\"Email invalide\");\n\t\t\t\ttextField_Email.setBackground(Color.RED);\n\t\t\t\tshowMessageDialog(null, \"Email est invalide\");\n\t\t\t}\n\t\t} else {\n\n\t\t\tshowMessageDialog(null, \"Certain champs sont vide !\");\n\t\t}\n\t}", "boolean emailExistant(String email, int id) throws BusinessException;", "private boolean isValidEmail(EditText edtEmail) {\n FIELD_STATUS status = validateEmail(edtEmail.getText().toString());\n\n switch (status) {\n case EMPTY:\n edtEmail.setError(getString(R.string.required_field));\n return false;\n case INVALID:\n edtEmail.setError(getString(R.string.email_invalid));\n return false;\n case VALID:\n return true;\n default:\n return false;\n }\n }", "private boolean checkemail(String s) {\n\t\tboolean flag = false;\r\n\t\tString[] m = s.split(\"@\");\r\n\t\tif (m.length < 2) {\r\n\t\t\tflag = true;\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "private static boolean isValid(String email){\n String emailRegex = \"^[a-zA-Z0-9_+&*-]+(?:\\\\.\"+\n \"[a-zA-Z0-9_+&*-]+)*@\" +\n \"(?:[a-zA-Z0-9-]+\\\\.)+[a-z\" +\n \"A-Z]{2,7}$\";\n\n Pattern pat = Pattern.compile(emailRegex);\n if (email == null)\n return false;\n return pat.matcher(email).matches();\n\n }", "public void validateInput(String fName, String lName, String zipCode, String employID){\n boolean firstname = firstNameTwoCharactersLong(fName);\n //boolean firstFilled = firstNameFilled\n boolean firstFilled = firstNameFilled(fName);\n //boolean lastname = lastNameTwoCharactersLong\n boolean lastname = lastNameTwoCharactersLong(lName);\n //boolean lastFilled = lastNameFilled\n boolean lastFilled = lastNameFilled(lName);\n //boolean the rest\n boolean employeeID = employeeIDValid(employID);\n boolean zCode = zipCodeValid(zipCode);\n\n //if all of them are valid=true then error prints \"there are no errors found\n if (firstname && firstFilled && lastname && lastFilled && employeeID && zCode){\n errorMessage = \"There were no errors found\";\n }\n //Display error message\n System.out.println(errorMessage);\n\n }", "public void validateRegistration(RegistrationModel register) {\n\t\tif (registerDao.checkAccountNoIfExist(register.getAccount_no(), register.getJai())) {\n\t\t\t// Checks if account if not Existing and not Verified \n\t\t\tif (!registerDao.checkCustomerLinkIfExist(register.getAccount_no())) {\n\t\t\t\t\tgenerateCustomerRecord(register);\n\t\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t// Account already registered.\n\t\t\t\tVerificationModel verify = new VerificationModel();\n\t\t\t\tverify.setAccount_no(register.getAccount_no());\n\t\t\t\t\n\t\t\t\tTimestamp todayTimeStamp = new Timestamp(System.currentTimeMillis());\n\t\t\t\tTimestamp regTimeStamp = verifyDao.retireveReg_date(verify); \n\t\t\t\tlong diffHours = (regTimeStamp.getTime()-todayTimeStamp.getTime()) / (60 * 60 * 1000);\n\t\t\t\t\n\t\t\t\tif (diffHours>24) {\n\t\t\t\t\tgenerateCustomerRecord(register);\n\t\t\t\t} else {\n\t\t\t\t\t// Account already registered. Please verify your registration\n\t\t\t\t\tsetRegistrationError(\"R02\"); \n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// Customer not allowed to access online service of OBS!\n\t\t\tsetRegistrationError(\"R01\"); \n\t\t}\n\t}", "private void validateData() {\n }", "private boolean isEmailValid(String email) {\n if(Patterns.EMAIL_ADDRESS.matcher(email).matches()){\n\n return true;\n }else {\n return false;\n }\n// return email.contains(\"@\");\n }", "public void checkData(){\n if (isEmpty(etEmailLogin)){\n etEmailLogin.setError(\"Enter Email\");\n }\n\n //to check if the email is valid\n else if (!isEmail(etEmailLogin)){\n Toast.makeText(this, \"Please Enter Email Address\", Toast.LENGTH_SHORT).show();\n }\n\n //to check if the password is entered\n else if (isEmpty(etPasswordLogin)){\n etPasswordLogin.setError(\"Enter Password\");\n }\n }", "private boolean checkEmailString(String email) {\n boolean validEmail = true;\n try {\n InternetAddress emailAddr = new InternetAddress(email);\n emailAddr.validate();\n } catch (AddressException ex) {\n validEmail = false;\n }\n return validEmail;\n }" ]
[ "0.7614055", "0.70194167", "0.699815", "0.6805919", "0.67979485", "0.6763793", "0.6634965", "0.6633394", "0.66286147", "0.6607353", "0.658656", "0.64885485", "0.64833623", "0.64122766", "0.64097697", "0.6386938", "0.63619065", "0.6332783", "0.6323229", "0.6317393", "0.6269487", "0.6249962", "0.62449074", "0.62159956", "0.6202741", "0.61971354", "0.61944467", "0.61872536", "0.6164131", "0.61544836", "0.6147283", "0.6145414", "0.6135523", "0.6134367", "0.61195415", "0.6119307", "0.6112163", "0.6107609", "0.6099119", "0.6085552", "0.60187376", "0.6003139", "0.59979796", "0.5993949", "0.59892106", "0.5962162", "0.596045", "0.596045", "0.596045", "0.596045", "0.59555346", "0.59462583", "0.5938554", "0.5901061", "0.5900877", "0.5882126", "0.5874081", "0.5870127", "0.58652526", "0.58524835", "0.5852342", "0.58451307", "0.58426315", "0.58293664", "0.5825822", "0.5818584", "0.58116865", "0.5805991", "0.58050466", "0.57970434", "0.5785542", "0.5785039", "0.5784721", "0.57802755", "0.5780158", "0.5779746", "0.57776827", "0.5769999", "0.57576036", "0.573586", "0.57305866", "0.57202226", "0.57148397", "0.5705845", "0.570295", "0.5696203", "0.5696203", "0.5696203", "0.5696203", "0.5695077", "0.569301", "0.5687635", "0.56821674", "0.56745297", "0.5673888", "0.56718194", "0.56711084", "0.56686574", "0.5662365", "0.56596816" ]
0.7222335
1
Validation Functions Description : To validate the Email Address 2 of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:EmailAddress2
public void validate_the_Email_Address_2_of_Security_in_Customer_Tab(String EmailAddress2)throws Exception { VerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Email Address 2").replaceAll("M_InnerText", EmailAddress2), "Email Address 2 - "+EmailAddress2, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void validateEmail(){\n\n //Creating Boolean Value And checking More Accurate Email Validator Added\n\n Boolean email = Pattern.matches(\"^[A-Za-z]+([.+-]?[a-z A-z0-9]+)?@[a-zA-z0-9]{1,6}\\\\.[a-zA-Z]{2,6},?([.][a-zA-z+,]{2,6})?$\",getEmail());\n System.out.println(emailResult(email));\n }", "public void validate_the_Email_Address_1_of_Security_in_Customer_Tab(String EmailAddress1)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll(\"M_Header\", \"Security\").replaceAll(\"M_Category\", \"Email Address 1\").replaceAll(\"M_InnerText\", EmailAddress1), \"Email Address 1 - \"+EmailAddress1, false);\n\t}", "@Test\n\t\tvoid givenEmail_CheckForValidationForEmail_RetrunTrue() {\n\t\t\tboolean result = ValidateUserDetails.validateEmails(\"[email protected]\");\n\t\t\tAssertions.assertTrue(result);\n\t\t}", "void validate(String email);", "@Test\r\n\tpublic void TC_07_verify_Invalid_Email_Address_format() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\t\r\n\t\t// Step 2: Enter valid/mandatory registration details with invalid email address format\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", firstName);\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", InvalidEmail);\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\t\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t\r\n\t\t// Step 4: Verify user should NOT be able to proceed further with registration as proper validation message regarding invalid email address\r\n\t\t//format is displayed\r\n\t\t\r\n\t\terrMsg = Page_Registration.getMandatoryFieldErrMsg();\r\n\t\tAssert.assertEquals(errMsg, \"The email address is invalid.\");\r\n\r\n\t}", "@Test\n\t\tvoid givenEmail_CheckForValidationForEmail_RetrunFalse() {\n\t\t\tboolean result =ValidateUserDetails.validateEmails(\"abc.xyz@bl\");\n\t\t\tAssertions.assertFalse(result);\n\t\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void ValidateAdduserEmailidField() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the Email address Field validations and its appropriate error message\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDataspl\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreation()\n\t\t.validateEmailidField(userProfile);\t\t\t\t \t \t\t\t\t\t\t\n\t}", "public void validateMailAlerts() {\n System.out.println(\"Validating Mail Alerts\");\n boolean mailPasstoCheck = false, mailPassccCheck = false, mailFailtoCheck = false, mailFailccCheck = false;\n\n if (!mailpassto.getText().isEmpty()) {\n\n String[] emailAdd = mailpassto.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailPasstoCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n\n } else {\n execptionData.append((++exceptionCount) + \". To Email address for passed test cases should not be empty.\\n\");\n\n }\n if (!mailpasscc.getText().isEmpty()) {\n String[] emailAdd = mailpasscc.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailPassccCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n\n } else {\n execptionData.append((++exceptionCount) + \". CC Email address for passed test cases should not be empty.\\n\");\n\n }\n if (!mailfailto.getText().isEmpty()) {\n String[] emailAdd = mailfailto.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailFailtoCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n\n } else {\n execptionData.append((++exceptionCount) + \". To Email address for failed test cases should not be empty.\\n\");\n\n }\n if (!mailfailcc.getText().isEmpty()) {\n String[] emailAdd = mailfailcc.getText().split(\",\");\n\n for (String email : emailAdd) {\n if (VALID_EMAIL_ADDRESS_REGEX.matcher(email).find()) {\n mailFailccCheck = true;\n } else {\n execptionData.append((++exceptionCount) + \". Invalid Email address: \" + email + \".\\n\");\n }\n }\n } else {\n execptionData.append((++exceptionCount) + \".CC Email address for failed test cases should not be empty.\\n\");\n\n }\n\n if (mailPasstoCheck == true && mailPassccCheck == true && mailFailccCheck == true && mailFailtoCheck == true) {\n /*try {\n Properties connectionProperties = new Properties();\n String socketFactory_class = \"javax.net.ssl.SSLSocketFactory\"; //SSL Factory Class\n String mail_smtp_auth = \"true\";\n connectionProperties.put(\"mail.smtp.port\", port);\n connectionProperties.put(\"mail.smtp.socketFactory.port\", socketProperty);\n connectionProperties.put(\"mail.smtp.host\", hostSmtp.getText());\n connectionProperties.put(\"mail.smtp.socketFactory.class\", socketFactory_class);\n connectionProperties.put(\"mail.smtp.auth\", mail_smtp_auth);\n connectionProperties.put(\"mail.smtp.socketFactory.fallback\", \"false\");\n connectionProperties.put(\"mail.smtp.starttls.enable\", \"true\");\n Mail mail = new Mail(\"\");\n mail.createSession(fromMail.getText(), password.getText(), connectionProperties);\n mail.sendEmail(fromMail.getText(), mailpassto.getText(), mailpasscc.getText(), \"Test Mail from FACT\", \"Hi, This is the Test Mail for the FACT Tool\", \"\");\n mail.sendEmail(fromMail.getText(), mailfailto.getText(), mailfailcc.getText(), \"Test Mail from FACT\", \"Hi, This is the Test Mail for the FACT Tool\", \"\");*/\n mailAlertsCheck = true;\n /* } catch (IOException ex) {\n Logger.getLogger(ConfigFile.class.getName()).log(Level.SEVERE, null, ex);\n mailAlertsCheck = false;\n new ExceptionUI(ex);\n } catch (MessagingException ex) {\n Logger.getLogger(ConfigFile.class.getName()).log(Level.SEVERE, null, ex);\n mailAlertsCheck = false;\n new ExceptionUI(ex);\n }*/\n } else {\n mailAlertsCheck = false;\n mailPasstoCheck = false;\n mailPassccCheck = false;\n mailFailtoCheck = false;\n mailFailccCheck = false;\n }\n\n }", "public static void main(String[] args){\n\tValidateUser first =(String Fname) -> {\n\t\tif(Pattern.matches(\"[A-Z]{1}[a-z]{2,}\",Fname))\n\t\t\tSystem.out.println(\"First Name Validate\");\n\t\t\telse \n\t\t\tSystem.out.println(\"Invalid Name, Try again\");\n\t}; \n\t//Lambda expression for Validate User Last Name\n\tValidateUser last =(String Lname) -> {\n\t\tif(Pattern.matches(\"[A-Z]{1}[a-z]{2,}\",Lname))\n\t\t\tSystem.out.println(\"Last Name Validate\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Last Name, Try again\");\n\t};\n\t//Lambda expression for Validate User Email\n\tValidateUser Email =(String email) -> {\n\t\tif(Pattern.matches(\"^[\\\\w-\\\\+]+(\\\\.[\\\\w]+)*@[\\\\w-]+(\\\\.[\\\\w]+)*(\\\\.[a-z]{2,})$\",email))\n\t\t\tSystem.out.println(\"email Validate\");\n\t\telse\n\t\t\tSystem.out.println(\"Invalid Email, Try again\");\n\t};\n\t//Lambda expression for Validate User Phone Number\n\tValidateUser Num =(String Number) -> {\n\t\tif(Pattern.matches(\"^[0-9]{2}[\\\\s][0-9]{10}\",Number))\n\t\t\tSystem.out.println(\"Phone Number Validate\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Number, Try Again\");\n\t};\n\t//Lambda expression for Validate User Password\n\tValidateUser Password =(String pass) -> {\n\t\tif(Pattern.matches(\"(?=.*[$#@!%^&*])(?=.*[0-9])(?=.*[A-Z]).{8,20}$\",pass))\n\t\t\tSystem.out.println(\"Password Validate\");\n\t\t\telse\n\t\t\tSystem.out.println(\"Invalid Password Try Again\");\n\t};\n\t\n\tfirst.CheckUser(\"Raghav\");\n\tlast.CheckUser(\"Shettay\");\n\tEmail.CheckUser(\"[email protected]\");\n\tNum.CheckUser(\"91 8998564522\");\n\tPassword.CheckUser(\"Abcd@321\");\n\t\n\t\n\t\n\t//Checking all Email's Sample Separately\n\tArrayList<String> emails = new ArrayList<String>();\n\t//Valid Email's\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\t\n\t//Invalid Email's\n\temails.add(\"[email protected]\");\n\temails.add(\"abc123@%*.com\");\n\t\n\tString regex=\"^[\\\\w-\\\\+]+(\\\\.[\\\\w]+)*@[\\\\w-]+(\\\\.[\\\\w]+)*(\\\\.[a-z]{2,})$\";\n\t\n\tPattern pattern = Pattern.compile(regex);\n\t\n\tfor(String mail : emails) {\n\t\tMatcher matcher = pattern.matcher(mail);\n\t System.out.println(mail +\" : \"+ matcher.matches());\n\t}\n \n}", "private void validateEmail() {\n myEmailValidator.processResult(\n myEmailValidator.apply(myBinding.editResetEmail.getText().toString().trim()),\n this::verifyAuthWithServer,\n result -> myBinding.editResetEmail.setError(\"Please enter a valid Email address.\"));\n }", "private void checkValidation() {\n // Get email id and password\n MainActivity.EmailAddress = emailid.getText().toString();\n finalPassword = password.getText().toString();\n\n // Check patter for email id\n Pattern p = Pattern.compile(Utils.regEx);\n\n Matcher m = p.matcher(MainActivity.EmailAddress);\n\n // Check for both field is empty or not\n if (MainActivity.EmailAddress.equals(\"\") || MainActivity.EmailAddress.length() == 0\n || finalPassword.equals(\"\") || finalPassword.length() == 0) {\n loginLayout.startAnimation(shakeAnimation);\n new CustomToast().Show_Toast(getActivity(), view,\n \"Enter both credentials.\");\n\n }\n // Check if email id is valid or not\n else if (!m.find())\n new CustomToast().Show_Toast(getActivity(), view,\n \"Your Email Id is Invalid.\");\n // Else do login and do your stuff\n else\n tryLoginUser();\n\n }", "public static void main(String[] args) {\n\n\t\tString emailID = \"[email protected]\";\n\t\tboolean isValidEmailID = true;\n\n\t\t//get index(position) value of '@' and '.'\n\t\tint at_index = emailID.indexOf('@');\n\t\tint dot_index = emailID.indexOf('.');\n\t\t\t\t\n\t\t// Check all rules one by one, if any one of the rule is not satisfied then it returns false immediately,\n\t\t// it returns true only after all the rules are satisfied\n\t\tisValidEmailID = (at_index < 0 || dot_index < 0) ? false\n\t\t\t\t: (at_index != emailID.lastIndexOf('@') || dot_index != emailID.lastIndexOf('.')) ? false\n\t\t\t\t\t\t: (emailID.substring(at_index + 1, dot_index).length() != 4) ? false\n\t\t\t\t\t\t\t\t: (emailID.substring(0, at_index).length() < 3) ? false\n\t\t\t\t\t\t\t\t\t\t: (emailID.toLowerCase().endsWith(\".com\") == false) ? false : true;\n\t\t\n\t\tSystem.out.println(\"Email ID : \" + emailID);\n\t\t\n\t\t\t\t\t\t\n\t\tif (isValidEmailID) {\n\t\t\tSystem.out.println(\"Email Validation Result : True (ie given maild is in vaild format)\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Email Validation Result : False (ie given maild is not in vaild format)\");\n\t\t}\n\n\t}", "static void emailValidation(String email) throws Exception {\n Pattern pattern_email = Pattern.compile(\"^[a-z0-9._-]+@[a-z0-9._-]{2,}\\\\.[a-z]{2,4}$\");\n if (email != null) {\n if (!pattern_email.matcher(email).find()) {\n throw new Exception(\"The value is not a valid email address\");\n }\n } else {\n throw new Exception(\"The email is required\");\n }\n }", "private void validateEmail() {\n mEmailValidator.processResult(\n mEmailValidator.apply(binding.registerEmail.getText().toString().trim()),\n this::validatePasswordsMatch,\n result -> binding.registerEmail.setError(\"Please enter a valid Email address.\"));\n }", "private void validationEmail(String email) throws FormValidationException {\n\t\tif (email != null) {\n\t\t\tif (!email.matches(\"([^.@]+)(\\\\.[^.@]+)*@([^.@]+\\\\.)+([^.@]+)\")) {\n\t\t\t\tSystem.out.println(\"Merci de saisir une adresse mail valide.\");\n\n\t\t\t\tthrow new FormValidationException(\n\t\t\t\t\t\t\"Merci de saisir une adresse mail valide.\");\n\t\t\t\t// } else if ( groupDao.trouver( email ) != null ) {\n\t\t\t\t// System.out.println(\"Cette adresse email est déjà utilisée, merci d'en choisir une autre.\");\n\t\t\t\t// throw new FormValidationException(\n\t\t\t\t// \"Cette adresse email est déjà utilisée, merci d'en choisir une autre.\"\n\t\t\t\t// );\n\t\t\t}\n\t\t}\n\t}", "@Test\n //@Disabled\n public void testValidateEmail() {\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertFalse(RegExprMain.validateEmail(\"[email protected]\"));\n assertFalse(RegExprMain.validateEmail(\"luna@gmail\"));\n assertFalse(RegExprMain.validateEmail(\"[email protected]\"));\n assertFalse(RegExprMain.validateEmail(\"lubo.xaviluna@gmai_l.com\"));\n assertTrue(RegExprMain.validateEmail(\"luna#[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n \n \n\n }", "@Test\r\n public void testEmailAnomalies() {\r\n Assert.assertEquals(emailValidator.isValid(\"[email protected]\", constraintValidatorContext), false);\r\n Assert.assertEquals(emailValidator.isValid(\"aa@testcom\", constraintValidatorContext), false);\r\n\r\n }", "@Test\r\n\tpublic void TC_08_verify_Existing_Email_Address() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\t\r\n\t\t// Step 2: Enter valid/mandatory registration details with valid email address already taken\r\n\t\t\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", firstName);\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", email);\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\t\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t\r\n\t\t// Step 4: Verify user should NOT be able to proceed further with registration as proper validation message regarding already registered\r\n\t\t//email address is displayed\r\n\t\terrMsg = Page_Registration.getMandatoryFieldErrMsg();\r\n\t\tAssert.assertEquals(errMsg, \"Username already taken.\");\r\n\r\n\t}", "private boolean isInputValid() {\r\n \r\n String errorMessage = \"\";\r\n \r\n // Email regex provided by emailregex.com using the RFC5322 standard\r\n String emailPatternString = \"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21-\\\\x5a\\\\x53-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])+)\\\\])\";\r\n \r\n // Phone number regex provided by Ravi Thapliyal on Stack Overflow:\r\n // http://stackoverflow.com/questions/16699007/regular-expression-to-match-standard-10-digit-phone-number\r\n String phoneNumString = \"^(\\\\+\\\\d{1,2}\\\\s)?\\\\(?\\\\d{3}\\\\)?[\\\\s.-]?\\\\d{3}[\\\\s.-]?\\\\d{4}$\";\r\n \r\n Pattern emailPattern = Pattern.compile(emailPatternString, Pattern.CASE_INSENSITIVE);\r\n Matcher emailMatcher;\r\n \r\n Pattern phoneNumPattern = Pattern.compile(phoneNumString);\r\n Matcher phoneNumMatcher;\r\n \r\n // Validation for no length or over database size limit\r\n if ((custFirstNameTextField.getText() == null || custFirstNameTextField.getText().length() == 0) || (custFirstNameTextField.getText().length() > 25)) {\r\n errorMessage += \"First name has to be between 1 and 25 characters.\\n\";\r\n }\r\n \r\n if ((custLastNameTextField.getText() == null || custLastNameTextField.getText().length() == 0) || (custLastNameTextField.getText().length() > 25)) {\r\n errorMessage += \"Last name has to be between 1 and 25 characters.\\n\";\r\n }\r\n \r\n if ((custAddressTextField.getText() == null || custAddressTextField.getText().length() == 0) || (custAddressTextField.getText().length() > 75)) {\r\n errorMessage += \"Address has to be between 1 and 75 characters.\\n\";\r\n }\r\n \r\n if ((custCityTextField.getText() == null || custCityTextField.getText().length() == 0) || (custCityTextField.getText().length() > 50)) {\r\n errorMessage += \"City has to be between 1 and 50 characters.\\n\";\r\n }\r\n \r\n if ((custProvinceTextField.getText() == null || custProvinceTextField.getText().length() == 0) || (custProvinceTextField.getText().length() > 2)) {\r\n errorMessage += \"Province has to be a two-letter abbreviation.\\n\";\r\n }\r\n \r\n if ((custPostalCodeTextField.getText() == null || custPostalCodeTextField.getText().length() == 0) || (custPostalCodeTextField.getText().length() > 7)) {\r\n errorMessage += \"Postal Code has to be between 1 and 7 characters.\\n\";\r\n }\r\n \r\n if ((custCountryTextField.getText() == null || custCountryTextField.getText().length() == 0) || (custCountryTextField.getText().length() > 25)) {\r\n errorMessage += \"Country has to be between 1 and 25 characters.\\n\";\r\n }\r\n \r\n if ((custHomePhoneTextField.getText() == null || custHomePhoneTextField.getText().length() == 0) || (custHomePhoneTextField.getText().length() > 20)) {\r\n errorMessage += \"Phone number has to be between 1 and 20 characters long.\\n\";\r\n } else {\r\n phoneNumMatcher = phoneNumPattern.matcher(custHomePhoneTextField.getText());\r\n if (!phoneNumMatcher.matches()) {\r\n errorMessage += \"Phone number not in the correct format: (111) 111-1111.\\n\";\r\n }\r\n }\r\n \r\n if ((custBusinessPhoneTextField.getText() == null || custBusinessPhoneTextField.getText().length() == 0) || (custBusinessPhoneTextField.getText().length() > 20)) {\r\n errorMessage += \"Phone number has to be between 1 and 20 characters long.\\n\";\r\n } else {\r\n phoneNumMatcher = phoneNumPattern.matcher(custBusinessPhoneTextField.getText());\r\n if (!phoneNumMatcher.matches()) {\r\n errorMessage += \"Phone number not in the correct format: (111) 111-1111.\\n\";\r\n }\r\n }\r\n \r\n if ((custEmailTextField.getText() == null || custEmailTextField.getText().length() == 0) || (custEmailTextField.getText().length() > 50)) {\r\n errorMessage += \"Email has to be between 1 and 50 characters.\\n\";\r\n } else {\r\n emailMatcher = emailPattern.matcher(custEmailTextField.getText());\r\n if (!emailMatcher.matches()) {\r\n errorMessage += \"Email format is not correct. Should be in the format [email protected].\\n\"; \r\n } \r\n }\r\n \r\n if (errorMessage.length() > 0) {\r\n Alert alert = new Alert(AlertType.ERROR, errorMessage, ButtonType.OK);\r\n alert.setTitle(\"Input Error\");\r\n alert.setHeaderText(\"Please correct invalid fields\");\r\n alert.showAndWait();\r\n \r\n return false;\r\n }\r\n \r\n return true;\r\n }", "public boolean Validate() {\n String[] testArr = {titleTxf.getText(), fNameTxf.getText(), sNameTxf.getText(),\n initialTxf.getText(), hNumTxf.getText(), cNumTxf.getText(), emailTxf.getText(), idNumTxf.getText(),\n (String) maritalCbx.getSelectedItem(), \n resTxf1.getText() + \"\" + resTxf2.getText(), zipResTxf.getText(),postTxf1.getText() + \"\" + postTxf2.getText(),\n zipPostTxf.getText() };\n\n // verify user has entered data into required fields\n String inputTest = \"\";\n\n for (int i = 0; i < testArr.length; i++) {\n if (testArr[i].equals(inputTest)) {\n\n JOptionPane.showMessageDialog(rootPane, \"please fill in all required fields\", \"ERROR\", ERROR_MESSAGE);\n \n return false;\n \n\n }\n \n \n }\n //verify Home number\n if(hNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Home number\", \"ERROR\", ERROR_MESSAGE);\n errHNum.setText(\"!\");\n \n return false;\n }\n else{\n errHNum.setText(\"\");\n }\n //verify CellNo\n if(cNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Cellphone number\", \"ERROR\", ERROR_MESSAGE);\n errCNum.setText(\"!\");\n \n return false;\n \n }\n else{\n errCNum.setText(\"\");\n }\n //verify email\n String email =emailTxf.getText(); \n if(!email.contains(\"@\")|| !email.contains(\".\")){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild email address\", \"ERROR\", ERROR_MESSAGE);\n errEmail.setText(\"!\");\n return false;\n }\n else{\n errEmail.setText(\"\");\n }\n \n //verify ID No. (Local)\n String ID = idNumTxf.getText();\n if(ID.length()!=13){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild ID number\", \"ERROR\", ERROR_MESSAGE);\n errID.setText(\"!\");\n return false;\n }\n else{\n errID.setText(\"\");\n }\n \n if(zipResTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipRes.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipRes.setText(\"\");\n }\n if(zipPostTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipPost.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipPost.setText(\"\");\n }\n \n \n return true;\n\n }", "boolean validateEmail(String email) {\n\t\treturn true;\n\n\t}", "@Test(priority=1)\n\tpublic void testEmailValidity() {\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"123@abc\");\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\tAssert.assertTrue(TestHelper.isStringPresent(errors, \"Please enter a valid email address in the format [email protected].\"));\n\t}", "@RequestMapping(value = \"/signup/validateEmail\", method = RequestMethod.POST)\n @ResponseBody\n public SPResponse validateEmail(@RequestParam String email) {\n SPResponse spResponse = new SPResponse();\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"The email to validate :\" + email);\n }\n // validate the email\n User user = userRepository.findByEmail(email); // signupForm.getEmail()\n if (user != null) {\n spResponse.addError(\"Duplicate_Email\",\n MessagesHelper.getMessage(\"exception.duplicateEmail.signup\"));\n } else {\n spResponse.isSuccess();\n }\n return spResponse;\n }", "public void validate(){\r\n\t\ttry{\r\n\t\t\t//First name, last name, date of birth and email are compulsory.\r\n\t\tif(FirstName==null||LastName==null||Dob==null||Email==null) \r\n\t\t\tthrow new Exception(\"One of the field is Empty :\\n(First name / last name / dob / email )\");\r\n\t\tif(TelephoneNumber!=0||MobileNumber!=0)\r\n\t\t\tthrow new Exception(\"Enter Contact Number\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\t/*finally{\r\n\t\t\tSystem.out.println(\"Program Executed\");\r\n\t\t}*/\r\n\t}", "@Override\n public void validaEmailInteractor(CharSequence charSequence) {\n verificaEmail(charToString(charSequence));\n }", "public String checkEmail() {\n String email = \"\"; // Create email\n boolean isOK = true; // Condition loop\n\n while (isOK) {\n email = checkEmpty(\"Email\"); // Call method to check input of email\n // Pattern for email\n String emailRegex = \"^[a-zA-Z0-9_+&*-]+(?:\\\\.\" + \"[a-zA-Z0-9_+&*-]+)*@\"\n + \"(?:[a-zA-Z0-9-]+\\\\.)+[a-z\" + \"A-Z]{2,7}$\";\n boolean isContinue = true; // Condition loop\n\n while (isContinue) {\n // If pattern not match, the print out error\n if (!Pattern.matches(emailRegex, email)) {\n System.out.println(\"Your email invalid!\");\n System.out.print(\"Try another email: \");\n email = checkEmpty(\"Email\");\n } else {\n isContinue = false;\n }\n }\n\n boolean isExist = false; // Check exist email\n for (Account acc : accounts) {\n if (email.equals(acc.getEmail())) {\n // Check email if exist print out error\n System.out.println(\"This email has already existed!\");\n System.out.print(\"Try another email: \");\n isExist = true;\n }\n }\n\n // If email not exist then return email\n if (!isExist) {\n return email;\n }\n }\n return email; // Return email\n }", "public void validate_the_Address_Line_2_of_Installation_Address_in_Customer_Tab(String AddressLine2)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Installation Address\").replaceAll(\"M_Category\", \"Address Line 2\").replaceAll(\"M_InnerText\", AddressLine2), \"Address Line 2 of Installation Address - \"+AddressLine2, false);\n\t}", "public void validate_the_Address_Line_2_of_Billing_Address_in_Customer_Tab(String AddressLine2)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Billing Address\").replaceAll(\"M_Category\", \"Address Line 2\").replaceAll(\"M_InnerText\", AddressLine2), \"Address Line 2 of Billing Address - \"+AddressLine2, false);\n\t}", "public void validate_the_Address_Line_2_of_Correspondence_Address_in_Customer_Tab(String AddressLine2)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Correspondence Address\").replaceAll(\"M_Category\", \"Address Line 2\").replaceAll(\"M_InnerText\", AddressLine2), \"Address Line 2 of Correspondence Address - \"+AddressLine2, false);\n\t}", "boolean validateMailAddress(final String mailAddress);", "private boolean isEmailValid(String email) {\n if (email.length() == 8){\n return true;\n }\n\t//user names first two characters must be letters\n Boolean condition1 = false;\n Boolean condition2 = false;\n\n int ascii = (int) email.charAt(0);\n if ((ascii >= 65 && ascii <= 90) || ascii >= 97 && ascii <= 122){\n condition1 = true;\n }\n ascii = (int) email.charAt(1);\n if ((ascii >= 65 && ascii <= 90) || ascii >= 97 && ascii <= 122){\n condition2 = true;\n }\n if (condition1 == true && condition2 == true){\n return true;\n }\n\n\t//user names last six characters must be numbers\n for (int i = email.length()-6; i < email.length(); i++){\n ascii = (int) email.charAt(i);\n if (!(ascii >= 48 && ascii <= 57)){\n return false;\n }\n }\n\n return true;\n }", "private boolean validate() {\n\n EditText fnameET = findViewById(R.id.fnameET);\n EditText lnameET = findViewById(R.id.lnameET);\n EditText perNoET = findViewById(R.id.perNoET);\n EditText lecEmailET = findViewById(R.id.lecEmailET);\n EditText adminCodeET = findViewById(R.id.adminCodeET);\n EditText passwET = findViewById(R.id.passwET);\n EditText cpasswET = findViewById(R.id.cpasswET);\n\n String fname = fnameET.getText().toString().trim();\n String lname = lnameET.getText().toString().trim();\n String personNo = perNoET.getText().toString().trim();\n String lectEmail = lecEmailET.getText().toString().trim();\n String adminCode = adminCodeET.getText().toString().trim();\n String password = passwET.getText().toString().trim();\n String cpassword = cpasswET.getText().toString().trim();\n\n //boolean flag;\n\n if(fname.isEmpty()) {\n fnameET.setError(\"Field can't be empty!\");\n fnameET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(lname.isEmpty()) {\n lnameET.setError(\"Field can't be empty!\");\n lnameET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(personNo.isEmpty()) {\n perNoET.setError(\"Field can't be empty!\");\n perNoET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(lectEmail.isEmpty()) {\n lecEmailET.setError(\"Field can't be empty!\");\n lecEmailET.requestFocus();\n return false;\n } else if (!Patterns.EMAIL_ADDRESS.matcher(lectEmail).matches()) {\n lecEmailET.setError(\"check that your email is entered correctly!\");\n lecEmailET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(adminCode.isEmpty()) {\n adminCodeET.setError(\"Field can't be empty!\");\n adminCodeET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(password.isEmpty()) {\n passwET.setError(\"Field can't be empty!\");\n passwET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(cpassword.isEmpty()) {\n cpasswET.setError(\"Field can't be empty!\");\n cpasswET.requestFocus();\n return false;\n } else if (!cpassword.equals(password)) {\n cpasswET.setError(\"password doesn't match the above entered password!\");\n cpasswET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n return true;\n }", "private boolean isEmailValid(String email) {\n return true;\r\n }", "private void validationEmail(String email) throws Exception {\r\n\t\tif (email != null && email.trim().length() != 0) {\r\n\t\t\tif (!email.matches(\"([^.@]+)(\\\\.[^.@]+)*@([^.@]+\\\\.)+([^.@]+)\")) {\r\n\t\t\t\tthrow new Exception(\"Merci de saisir une adresse mail valide.\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new Exception(\"Merci de saisir une adresse mail.\");\r\n\t\t}\r\n\t}", "boolean isValidEmail(String email){\n boolean ValidEmail = !email.isEmpty() && Patterns.EMAIL_ADDRESS.matcher(email).matches();\n if(!ValidEmail){\n userEmail.setError(\"please fill this field correctly\");\n return false;\n }\n return true;\n }", "@Test\n public void testIsValidEmailAddress() {\n System.out.println(\"isValidEmailAddress\");\n String email = \"hg5\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidEmailAddress(email);\n assertEquals(expResult, result);\n }", "private void emailValidation( String email ) throws Exception {\r\n if ( email != null && !email.matches( \"([^.@]+)(\\\\.[^.@]+)*@([^.@]+\\\\.)+([^.@]+)\" ) ) {\r\n throw new Exception( \"Merci de saisir une adresse courriel valide.\" );\r\n }\r\n }", "static boolean isValid(String email) {\r\n\t\t String regex = \"^[\\\\w-_\\\\.+]*[\\\\w-_\\\\.]\\\\@([\\\\w]+\\\\.)+[\\\\w]+[\\\\w]$\";\r\n\t\t return email.matches(regex);\r\n\t}", "private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }", "@Override\n\tpublic boolean emailisValid(String email) \n\t{\n\t\treturn false;\n\t}", "@When(\"A user enters a valid email address$\")\n public void check_valid_email(DataTable email) throws Throwable {\n List<List<String>> email_addresses = email.raw();\n for (List<String> element : email_addresses) {\n for (String ea : element) {\n home.submit_email(ea);\n }\n }\n }", "@Test\n\tpublic void testValidate() {\n\t\tSystem.out.println(\"starting testValidate()\");\n\t\tPersonalData personalData = new PersonalData(\"Kelvin\", \"Huynh\", \"4081234567\", \"[email protected]\");\n\t\tassertTrue (\"address validates\", personalData.validatePersonalData());\n\t System.out.println(\"testValidate PASSED\");\n\t}", "public boolean isValidNewEmail(TextInputLayout tiEmail, EditText etEmail) {\n boolean result = isValidEmail(tiEmail, etEmail);\n\n if (result) {\n String email = etEmail.getText().toString().trim();\n UserRepository userRepository = new UserRepository(c.getApplicationContext());\n if (userRepository.getUserByEmail(email) != null) {\n tiEmail.setError(c.getString(R.string.emailExist));\n result = false;\n } else {\n tiEmail.setError(null);\n result = true;\n }\n }\n\n return result;\n }", "private boolean isValidEmail(final String theEmail) {\n return theEmail.contains(\"@\");\n }", "@Test\n\t\tvoid givenEmail_CheckForValidationForMobile_RetrunTrue() {\n\t\t\tboolean result = ValidateUserDetails.validateMobile(\"98 9808229348\");\n\t\t\tAssertions.assertTrue(result);\n\t\t}", "private boolean isValidEmail(TextInputLayout tiEmail, EditText etEmail) {\n String email = etEmail.getText().toString().trim();\n boolean result = false;\n\n if (email.length() == 0)\n tiEmail.setError(c.getString(R.string.required));\n else {\n Pattern emailPattern = Patterns.EMAIL_ADDRESS;\n if (!emailPattern.matcher(email).matches())\n tiEmail.setError(c.getString(R.string.invalid));\n else {\n tiEmail.setError(null);\n result = true;\n }\n }\n\n return result;\n }", "public void validateEmail(String email) throws SubscriptionValidationException {\n final Pattern VALID_EMAIL_ADDRESS_REGEX = Pattern.compile(\"^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\\\.[A-Z]{2,6}$\",\n Pattern.CASE_INSENSITIVE);\n Matcher matcher = VALID_EMAIL_ADDRESS_REGEX.matcher(email);\n if (!(matcher.matches())) {\n throw new SubscriptionValidationException(\"Wrong email address: \" + email);\n }\n }", "@Test\r\n\tpublic void TC_05_verify_email_Mandatory_Field() {\r\n\r\n\t\thomePgObj = new Page_Home(driver);\r\n\t\tregPgObj = homePgObj.click_RegistrationLink();\r\n\t\t\r\n\t\t// Step 1: Verify the registration page is displayed\r\n\t\t\r\n\t\tflag = regPgObj.registrationPgDisplay();\r\n\t\tAssert.assertTrue(flag, \"Registration page is displayed\");\r\n\t\t\r\n\t\t// Step 2: Enter valid/mandatory registration details except email address\r\n\t\tregPgObj.enterRegistrationDetails(\"firstName\", firstName);\r\n\t\tregPgObj.enterRegistrationDetails(\"lastName\", lastName);\r\n\t\tregPgObj.enterRegistrationDetails(\"email\", \"\");\r\n\t\tregPgObj.enterRegistrationDetails(\"password\", password);\r\n\t\tregPgObj.enterRegistrationDetails(\"confirmPassword\", confirmPassword);\r\n\t\t\r\n\t\t// Step 3: Click on Sign in button\r\n\t\tregPgObj.clickSignInButton();\r\n\t\t// Step 4: Verify user should NOT be able to proceed further with registration as proper validation message regarding email address\r\n\t\t// is displayed\r\n\t\terrMsg = Page_Registration.getMandatoryFieldErrMsg();\r\n\t\tAssert.assertEquals(errMsg, \"Please enter a value for Email\");\r\n\r\n\t}", "@Test\n public void testBasicValid() {\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"admin@mailserver1\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n assertTrue(EmailValidator.isValid(\"user%[email protected]\"));\n assertTrue(EmailValidator.isValid(\"[email protected]\"));\n }", "public void validateCreateCustomerAndTask() {\n\t\tAttSelectNewCustomerOptionFromListBox.click();\n\t\tAttCustomerNameTextBox.sendKeys(\"TestCust\");\n\t\tAttProjectNameTextBox.sendKeys(\"TestProject\");\n\t\tAttTaskNameTextBox.sendKeys(\"Tast1WCNP\");\n\t\tAttBudgetTimeTextBox.sendKeys(\"3:00\");\n\t\tAttEnterDateInDateField.sendKeys(Keys.ENTER,\"Jan 27, 2019\");\n\t\tAttSelectBillableBillingType.click();\n\t\tAttSelectCheckBoxMarkToBeAdd.click();\n\t\tAttCreateTaskBtn.click();\n\t}", "private boolean isEmailValid(String email) {\n return true;\n }", "private boolean isEmailValid(String email) {\n return true;\n }", "private boolean isEmailValid(String email) {\n return true;\n }", "private boolean isEmailValid(String email) {\n return true;\n }", "boolean isEmailRequired();", "public boolean validateEmail() {\n\t\tString emailString = emailValidity.getText();\n\t\tString errorMsg = \"Email in use.\";\n\t\tboolean result = emailString.contains(errorMsg);\n\t\tif (result) {\n\t\t\tstoreVerificationResults(true, \"Email in use\");\n\t\t\tresult = true;\n\t\t} else {\n\t\t\tstoreVerificationResults(false, \"User able to reuse email id\");\n\t\t}\n\t\treturn result;\n\t}", "public int getValidUserEmail(Validation v) {\r\n\r\n\t\t\r\n\t\tint a=0;\r\n\t\tString query=\"select * from user_registration where user_name='\"+v.getUsername() +\"' and email='\"+v.getEmail()+\"'\";\r\n\t\t\r\n\t\tRowMapper<Validation> rowMapper=new RowMapper<Validation>() {\r\n\r\n\t\t\tpublic Validation mapRow(ResultSet rs, int row) throws SQLException {\r\n\t\t\t\t Validation v=new Validation();\r\n\t\t\t\t v.setUsername(rs.getString(\"user_name\"));\r\n\t\t\t\t v.setPassword(rs.getString(\"email\"));\r\n\t\t\treturn v;\r\n\t\t\t}\r\n\t\t};\r\n\t\tList<Validation> list=jdbctemplate.query(query, rowMapper);\r\n\t\t a=list.size()>0?1:0; \r\n\t\treturn a;\r\n\t}", "private void checkValidEmail(String email) throws ValidationException {\n String emailRegex = \"^[\\\\w-_\\\\.+]*[\\\\w-_\\\\.]\\\\@([\\\\w]+\\\\.)+[\\\\w]+[\\\\w]$\";\n if (!email.matches(emailRegex)) {\n throw new ValidationException(\"Incorrect email format\");\n }\n }", "@Test\n public void testCantRegisterInvalidEmail() {\n enterValuesAndClick(\"\", \"invalidemail\", \"123456\", \"123456\");\n checkErrors(nameRequiredError, emailInvalidError, pwdNoError, pwdRepeatNoError);\n }", "private boolean validateFields(){ \n ImplLogger.enterMethod(); \n StringBuffer validationMessage = new StringBuffer();\n boolean isValidationPassed = true;\n if(!ImplValidationUtils.isAlphaSpace(pharmaNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_NAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n pharmaNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n } \n if(!ImplValidationUtils.isAlphabetOnly(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplCommonUtil.isUserNameExist(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME_EXIST);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(contactTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_CONTACT);\n validationMessage.append(ImplConst.NEXT_LINE);\n contactTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(zipCodeTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_ZIPCODE);\n validationMessage.append(ImplConst.NEXT_LINE);\n zipCodeTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(passwordField.getText())){\n validationMessage.append(ImplConst.VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n passwordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n confirmPasswordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if (!ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText()) && !confirmPasswordField.getText().equals(passwordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n isValidationPassed = false; \n }\n if(!isValidationPassed){\n JOptionPane.showMessageDialog(null,validationMessage);\n } \n ImplLogger.exitMethod();\n return isValidationPassed;\n }", "public static void main(String args[]) {\n\t\t\n\t\t//validating the first name of the user\n\t\tUserValidationInterface validateFirstName = (firstName) -> {\n\t\t\tString regex = \"^[A-Z][a-z]{2,}\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(firstName);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"First Name of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"First Name of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidateFirstName.validate(\"Rosy\");\n\n\t\t//validating the last name of the user\n\t\tUserValidationInterface validateLastName = (lastName) -> {\n\t\t\tString regex = \"^[A-Z][a-z]{2,}\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(lastName);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"Last Name of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Last Name of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidateLastName.validate(\"Rupali\");\n\n\t\t//validating the email Id of the user\n\t\tUserValidationInterface validateEmailId = (emailId) -> {\n\t\t\tString regex = \"^[a-z0-9.+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,6}$\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(emailId);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"Email Id of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Email Id of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidateEmailId.validate(\"[email protected]\");\n\n\t\t//validating the mobile number of the user\n\t\tUserValidationInterface validatePhoneNumber = (mobileNumber) -> {\n\t\t\tString regex = \"[0-9]{2}\\\\s{1}[0-9]{10}\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(mobileNumber);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"Mobile number of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Mobile number of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidatePhoneNumber.validate(\"91 9423632176\");\n\n\t\t//validating the password of the user\n\t\tUserValidationInterface validatePassword = (password) -> {\n\t\t\tString regex = \"^(?=.*[A-Z])(?=.*[0-9])(?=.*[^a-zA-Z0-9]).{8,}$\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(password);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"password of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"password of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidatePassword.validate(\"oneFine$123\");\n\n\t}", "public void validate() throws CruiseControlException {\n ValidationHelper.assertIsSet(getMailHost(), \"mailhost\", this.getClass());\n ValidationHelper.assertIsSet(getReturnAddress(), \"returnaddress\", this.getClass());\n ValidationHelper.assertFalse(getUsername() != null && getPassword() == null,\n \"'password' is required if 'username' is set for email.\");\n ValidationHelper.assertFalse(getPassword() != null && getUsername() == null,\n \"'username' is required if 'password' is set for email.\");\n \n for (int i = 0; i < alertAddresses.length; i++) {\n try {\n alertAddresses[i].fileFilter = new GlobFilenameFilter(alertAddresses[i].fileRegExpr);\n } catch (MalformedCachePatternException mcpe) {\n ValidationHelper.fail(\"invalid regexp '\" + alertAddresses[i].fileRegExpr + \"'\", mcpe);\n }\n }\n }", "@Test\n\tpublic void testValidateUsernameEmail() {\n\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\n\t\tassertFalse(ValidationUtil.validate(\"test4\", Validate.username_valid));\n\t\tassertFalse(ValidationUtil.validate(\"@com\", Validate.username_valid));\n\t\tassertFalse(ValidationUtil.validate(\"com@\", Validate.username_valid));\n\t}", "private boolean checkemail(String s) {\n\t\tboolean flag = false;\r\n\t\tString[] m = s.split(\"@\");\r\n\t\tif (m.length < 2) {\r\n\t\t\tflag = true;\r\n\t\t}\r\n\t\treturn flag;\r\n\t}", "public void emailNotTaken(FacesContext context, UIComponent validate, Object value){\n\t\tcheckHibernateAnnotations(context, validate, value);\t\t\n\t\tString email = (String)value;\n\t\tif (isEmailRegistered(email)){\n \t\t\tFacesMessage msg = new FacesMessage(\"ice email already taken\");\n \t\t\tcontext.addMessage(validate.getClientId(context), msg);\n \t\t\temailValid=false;\n\t\t}else emailValid=true;\n\t}", "public static void validate() {\r\n\t\tfrmMfhEmailer.validate();\r\n\t}", "@Test(priority=76)\t\n\tpublic void campaign_user_with_filter_for_invalid_user_email() throws URISyntaxException, ClientProtocolException, IOException, ParseException{\n\t\ttest = extent.startTest(\"campaign_user_with_filter_for_invalid_user_email\", \"To validate whether user is able to get campaign and its users through campaign/user api with filter for invalid user_email\");\n\t\ttest.assignCategory(\"CFA GET /campaign/user API\");\n\t\ttest_data = HelperClass.readTestData(class_name, \"campaign_user_with_filter_for_invalid_user_email\");\n\t\tString[] user_emails = test_data.get(4).split(\",\");\n\t\tfor(String user_email:user_emails){\n\t\t\tList<NameValuePair> list = new ArrayList<NameValuePair>();\n\t\t\tlist.add(new BasicNameValuePair(\"filter\", \"user_email%3d\"+user_email));\n\t\t\tCloseableHttpResponse response = HelperClass.make_get_request(\"/v2/campaign/user\", access_token, list);\n\t\t\tAssert.assertTrue(!(response.getStatusLine().getStatusCode() == 500 || response.getStatusLine().getStatusCode() == 401), \"Invalid status code is displayed. \"+ \"Returned Status: \"+response.getStatusLine().getStatusCode()+\" \"+response.getStatusLine().getReasonPhrase());\n\t\t\ttest.log(LogStatus.INFO, \"Execute campaign/user api method with filter for invalid user_email\");\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = rd.readLine()) != null) {\n\t\t\t // Convert response to JSON object\t\n\t\t\t JSONParser parser = new JSONParser();\n\t\t\t JSONObject json = (JSONObject) parser.parse(line);\n\t\t\t String result_data = json.get(\"result\").toString();\n\t\t\t Assert.assertEquals(result_data, \"error\", \"API returns success when invalid user_email is passed for filter\");\n\t\t\t test.log(LogStatus.PASS, \"API returns error when invalid user_email is passed for filter\");\n\t\t\t String err_data = json.get(\"err\").toString();\n\t\t\t Assert.assertEquals(err_data, \"no records found\", \"Proper validation is not displayed when invalid(\"+user_email+\") user_email is passed in filter. Defect Reported: CT-17153\");\n\t\t\t}\n\t\t}\n\t}", "private boolean isEmailValid(String email) {\n return email.equals(\"[email protected]\");\n }", "private boolean isValidEmail(EditText edtEmail) {\n FIELD_STATUS status = validateEmail(edtEmail.getText().toString());\n\n switch (status) {\n case EMPTY:\n edtEmail.setError(getString(R.string.required_field));\n return false;\n case INVALID:\n edtEmail.setError(getString(R.string.email_invalid));\n return false;\n case VALID:\n return true;\n default:\n return false;\n }\n }", "private void checkEmail(UserResource target, Errors errors) {\n final String proc = PACKAGE_NAME + \".checkEmail.\";\n final String userId = target.getId();\n final String email = target.getEmail();\n int found = 0;\n boolean doValidation = false;\n\n logger.debug(\"Entering: \" + proc + \"10\");\n\n final boolean isUpdating = apiUpdating(userId);\n logger.debug(proc + \"20\");\n\n if (isUpdating) {\n final UserEntry user = userRepository.findOne(userId);\n logger.debug(proc + \"30\");\n\n if (!user.getEmail()\n .equals(email)) {\n logger.debug(proc + \"40\");\n\n found = userRepository.updateEmail(email, userId);\n if (found > 0) {\n errors.rejectValue(\"email\", \"user.email.duplicate\");\n }\n else {\n doValidation = true;\n }\n }\n }\n else {\n logger.debug(proc + \"50\");\n\n found = userRepository.uniqueEmail(email);\n if (found > 0) {\n errors.rejectValue(\"email\", \"user.email.duplicate\");\n }\n else {\n doValidation = true;\n }\n }\n\n if (doValidation) {\n logger.debug(proc + \"60\");\n\n final laxstats.web.validators.Validator emailValidator = EmailValidator.getInstance();\n if (!emailValidator.isValid(email)) {\n errors.rejectValue(\"email\", \"user.email.invalidEmail\");\n }\n }\n logger.debug(\"Leaving: \" + proc + \"70\");\n }", "@Test\n\tpublic void inValidEmailIdIsTested() {\n\t\ttry {\n\t\t\tString emailId = \"divyagmail.com\";\n\t\t\tboolean isValidMail = EmailValidatorUtil.isValidEmailId(emailId, \"InValid EmailID Format\");\n\t\t\tassertFalse(isValidMail);\n\t\t} catch (Exception e) {\n\t\t\tassertEquals(\"InValid EmailID Format\", e.getMessage());\n\n\t\t}\n\t}", "public void validate_the_Address_Line_1_of_Correspondence_Address_in_Customer_Tab(String AddressLine1)throws Exception {\n\t\tReport.fnReportPageBreak(\"Correspondence Address\", driver);\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_CorrespondenceAddress.replaceAll(\"M_Header\", \"Correspondence Address\").replaceAll(\"M_Category\", \"Address Line 1\").replaceAll(\"M_InnerText\", AddressLine1), \"Address Line 1 of Correspondence Address - \"+AddressLine1, false);\n\t\t\n\t}", "@Test\n public void Email_WhenValid_ShouldReturnTrue(){\n RegexTest valid = new RegexTest();\n boolean result = valid.Email(\"[email protected]\");\n Assert.assertEquals(true,result);\n }", "public void validate_the_Address_Line_1_of_Installation_Address_in_Customer_Tab(String AddressLine1)throws Exception {\n\t\tReport.fnReportPageBreak(\"Instalation Address\", driver);\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_InstallationAddress.replaceAll(\"M_Header\", \"Installation Address\").replaceAll(\"M_Category\", \"Address Line 1\").replaceAll(\"M_InnerText\", AddressLine1), \"Address Line 1 of Installation Address - \"+AddressLine1, false);\n\t}", "@Test\n\tpublic void validEmailIdIsTested() throws InValidEmailException {\n\t\tString emailId = \"[email protected]\";\n\t\tboolean isValidMail = EmailValidatorUtil.isValidEmailId(emailId, \"InValid EmailId Format\");\n\t\tassertTrue(isValidMail);\n\t}", "@Override\n\tpublic boolean verifyEmailAddress(EmailAddress address)\n\t{\n\t\treturn false;\n\t}", "private boolean isEmailValid(String email) {\n return email.matches(\"^[a-zA-Z]{5,12}$\");\r\n }", "public static void main(String[] args) {\n\t\t\n\t ArrayList<String> emails = new ArrayList<String>();\n\t \n\t // valid email addresses\n\t emails.add(\"[email protected]\");\n\t emails.add(\"[email protected]\");\n\t emails.add(\"[email protected]\");\n\t emails.add(\"[email protected]\");\n\t emails.add(\"[email protected]\");\n\t \n\t \n\t //invalid email addresses\n\t emails.add(\"@gmail.com\");\n\t emails.add(\"shagun&ag.com\");\n\t emails.add(\"raghu#@example.us.org\");\n\n\t //initialize the Pattern object\n\t Pattern pattern = Pattern.compile(regex);\n\n\t //searching for occurrences of regex\n\t for (String value : emails) {\n\t Matcher matcher = pattern.matcher(value);\n\t System.out.println(\"Email \" + value + \" is \" + (matcher.matches() ? \"valid\" : \"invalid\"));\n\t System.out.println(\"-----------------------------------------------------\");\n\t \n//\t \tboolean result = Pattern.compile(regex).matcher(value).matches();\n//\t \tSystem.out.println(result);\n\t }\n\n\t}", "private boolean getValidation() {\n strLoginMail = inputLoginMail.getText().toString().trim();\n strLoginPass = inputLoginPass.getText().toString().trim();\n\n if (strLoginMail.isEmpty()) { // Check Email Address\n inputLoginMail.setError(getString(dk.eatmore.demo.R.string.email_blank));\n inputLoginMail.requestFocus();\n return false;\n } else if (!isValidEmail(strLoginMail)) {\n inputLoginMail.setError(getString(dk.eatmore.demo.R.string.invalid_email));\n inputLoginMail.requestFocus();\n return false;\n } else if (strLoginPass.isEmpty()) { // Check Password\n inputLoginPass.setError(getString(dk.eatmore.demo.R.string.password_empty));\n inputLoginPass.requestFocus();\n return false;\n }\n\n return true;\n }", "public static void validation() {\n\t\tif ((!textFieldName.getText().isEmpty()) && (!textField_FirstName.getText().isEmpty())\n\t\t\t\t&& (!textField_Town.getText().isEmpty()) && (!textField_Town.getText().isEmpty())) {\n\n\t\t\tif ((isValidEmailAddress(textField_Email.getText()) == true)) {\n\t\t\t\ttextField_Email.setBackground(Color.white);\n\t\t\t\tif ((force(textField_Mtp.getText()) > 82)) {\n\t\t\t\t\ttextField_Mtp.setBackground(Color.white);\n\t\t\t\t\tactionGiveServeur();\n\n\t\t\t\t} else {\n\t\t\t\t\tshowMessageDialog(null, \"Votre mot de passe est trop faible\");\n\t\t\t\t\ttextField_Mtp.setText(\"Mot de passe trop simple : changer le \");\n\t\t\t\t\ttextField_Mtp.setBackground(Color.RED);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttextField_Email.setText(\"Email invalide\");\n\t\t\t\ttextField_Email.setBackground(Color.RED);\n\t\t\t\tshowMessageDialog(null, \"Email est invalide\");\n\t\t\t}\n\t\t} else {\n\n\t\t\tshowMessageDialog(null, \"Certain champs sont vide !\");\n\t\t}\n\t}", "public void validateRegistration(RegistrationModel register) {\n\t\tif (registerDao.checkAccountNoIfExist(register.getAccount_no(), register.getJai())) {\n\t\t\t// Checks if account if not Existing and not Verified \n\t\t\tif (!registerDao.checkCustomerLinkIfExist(register.getAccount_no())) {\n\t\t\t\t\tgenerateCustomerRecord(register);\n\t\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t// Account already registered.\n\t\t\t\tVerificationModel verify = new VerificationModel();\n\t\t\t\tverify.setAccount_no(register.getAccount_no());\n\t\t\t\t\n\t\t\t\tTimestamp todayTimeStamp = new Timestamp(System.currentTimeMillis());\n\t\t\t\tTimestamp regTimeStamp = verifyDao.retireveReg_date(verify); \n\t\t\t\tlong diffHours = (regTimeStamp.getTime()-todayTimeStamp.getTime()) / (60 * 60 * 1000);\n\t\t\t\t\n\t\t\t\tif (diffHours>24) {\n\t\t\t\t\tgenerateCustomerRecord(register);\n\t\t\t\t} else {\n\t\t\t\t\t// Account already registered. Please verify your registration\n\t\t\t\t\tsetRegistrationError(\"R02\"); \n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// Customer not allowed to access online service of OBS!\n\t\t\tsetRegistrationError(\"R01\"); \n\t\t}\n\t}", "@Transactional(readOnly = true)\n public void validateEmailAddress(String email) {\n if (!EMAIL_PATTERN.matcher(email).matches()) {\n throw ApiException.of(ErrorCode.EMAIL_INVALID, email);\n }\n if (domainBlacklistRepository.existsByDomain(email.substring(email.lastIndexOf('@') + 1))) {\n throw ApiException.of(ErrorCode.EMAIL_BLACKLISTED, email);\n }\n }", "public static boolean checkEmail (String email) throws IllegalArgumentException{\n check = Pattern.compile(\"^[a-zA-Z0-9]+(?:\\\\+*-*.[a-zA-Z0-9]+)*@[a-zA-Z0-9]+(?:\\\\.[a-zA-Z0-9]{2,}+)*$\").matcher(email).matches();\n if (check) {\n return true;\n } else {\n throw new IllegalArgumentException(\"Enter a valid Email Address\");\n }\n }", "@Override\n\tpublic Boolean isValidApplication(ApplicationBean applicationBean) {\n\t\tPattern namePattern=Pattern.compile(\"^[A-Za-z\\\\s]{3,}$\");\n\t\tMatcher nameMatcher=namePattern.matcher(applicationBean.getName());\n\t\tPattern dobPattern=Pattern.compile(\"^[0-3]?[0-9].[0-3]?[0-9].(?:[0-9]{2})?[0-9]{2}$\");\n\t\tMatcher dobMatcher=dobPattern.matcher(applicationBean.getDateOfBirth());\n\t\tPattern goalPattern=Pattern.compile(\"^[A-Za-z\\\\s]{1,}$\");\n\t\tMatcher goalMatcher=goalPattern.matcher(applicationBean.getGoals());\n\t\tPattern marksPattern=Pattern.compile(\"^[1-9][0-9]?$|^100$\");\n\t\tMatcher marksMatcher=marksPattern.matcher(applicationBean.getMarksObtained());\n\t\tPattern scheduleIdPattern=Pattern.compile(\"^[0-9]{1,2}$\");\n\t\tMatcher scheduleIdMatcher=scheduleIdPattern.matcher(applicationBean.getScheduledProgramID());\n\t\tPattern emailPattern=Pattern.compile(\"^[A-Za-z0-9+_.-]+@(.+)$\");\n\t\tMatcher emailMatcher=emailPattern.matcher(applicationBean.getEmailID());\n\t\t\n\t\t\n\t\tif(!(nameMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\nApplicant Name Should Be In Alphabets and minimum 1 characters long.\");\n\t\t\treturn false;\n\t\t}\n\t\tif(!(dobMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\nDate of birth should be in DD/MM/YYYY format.\");\n\t\t\treturn false;\n\t\t}\n\t\tif(!(goalMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\n Goal should be alphabetical and having minimum one letter\");\n\t\t\treturn false;\n\t\t}\n\t\tif(!(marksMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\nMarks should be less than 100\");\n\t\t\treturn false;\n\t\t}\n\t\tif(!(scheduleIdMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\nSchedule Id should be of one or two digit\");\n\t\t\treturn false;\n\t\t}\n\t\tif(!(emailMatcher.matches()))\n\t\t{\n\t\t\tSystem.out.println(\"\\nEnter valid email address\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "private boolean isValidInput(String Name, String Email, String Password, String ConfirmationPassword) {\n\n String regex = \"^(.+)@(.+)$\";\n\n Pattern pattern = Pattern.compile(regex);\n\n Matcher matcher = pattern.matcher(Email);\n\n if (Name == null || Name.equals(\"\") || Name.equals(\" \") ||\n !matcher.matches() ||\n Password == null || Password.equals(\"\") ||\n ConfirmationPassword == null || !ConfirmationPassword.equals(Password)) {\n return false;\n }\n return true;\n }", "private boolean isInfoValidate(){\n if(mEmailAddress.getText() == null || mEmailAddress.getText().toString().equals(\"\")){\n errorText = getString(R.string.register_warning_input_email_address);\n return false;\n }\n\n if(!mEmailAddress.getText().toString().contains(\"@\")){\n errorText = getString(R.string.register_warning_valid_email_address);\n return false;\n }\n\n// if(mRegionSpinner.getSelectedItemPosition() == Constant.NON_SELECT){\n// errorText = getString(R.string.register_warning_select_region);\n// return false;\n// }\n\n// if( (mRegionSpinner.getSelectedItemPosition() == Constant.HONG_KONG)\n// &&\n// (mEmailAddress.getText().toString().length() != Constant.HONGKONG_PHONE_LENGTH) ){\n//\n// errorText = getString(R.string.register_warning_valid_phone_num);\n// return false;\n// }\n//\n// if( (mRegionSpinner.getSelectedItemPosition() == Constant.CHINA)\n// &&\n// (mEmailAddress.getText().toString().length() != Constant.CHINA_PHONE_LENGTH) ){\n//\n// errorText = getString(R.string.register_warning_valid_phone_num);\n// return false;\n// }\n\n if(mPassword.getText() == null || mPassword.getText().toString().equals(\"\")){\n errorText = getString(R.string.register_warning_input_password);\n return false;\n }\n\n if(mRetypePassword.getText() == null || mRetypePassword.getText().toString().equals(\"\")){\n errorText = getString(R.string.register_warning_retype_password);\n return false;\n }\n\n if(!mPassword.getText().toString().equals(mRetypePassword.getText().toString())){\n errorText = getString(R.string.register_warning_not_the_same);\n return false;\n }\n\n if(!Utility.judgeContainsStr( mPassword.getText().toString())){\n errorText = getString(R.string.register_warning_contains_character);\n return false;\n }\n\n// if(!mPolicyCheckBox.isChecked()){\n// errorText = getString(R.string.register_warning_check_agreement);\n// return false;\n// }\n\n return true;\n }", "private void validateFields() {\n\t\t// TODO validate ID\n\t\tboolean valid = (mEdtAddress.getText().length() > 2)\n\t\t\t\t&& (mEdtPassword.getText().length() > 0);\n\t\tmBtnNext.setEnabled(valid);\n\t}", "public EmailCheckResult check(String emailValue) {\n int atSignPosition = emailValue.indexOf('@');\n if (atSignPosition == -1) return EmailCheckResult.NOT_EMAIL;\n\n\n String domainValue = emailValue.substring(++atSignPosition);\n ArrayList<String> mxList;\n\n // check if the value has domain\n try {\n mxList = getMX(domainValue);\n } catch (NamingException ex) {\n return EmailCheckResult.NO_DOMAIN;\n }\n if (mxList.size() == 0) return EmailCheckResult.NO_DOMAIN;\n else return checkMxHosts(emailValue, mxList);\n }", "public int getValidSpEmailUname(Validation v) {\r\n\t\tint a=0;\r\nString query=\"select * from sp_final where user_name='\"+v.getUsername() +\"' and email='\"+v.getEmail()+\"'\";\r\n\t\t\r\n\t\tRowMapper<Validation> rowMapper=new RowMapper<Validation>() {\r\n\r\n\t\t\tpublic Validation mapRow(ResultSet rs, int row) throws SQLException {\r\n\t\t\t\t Validation v=new Validation();\r\n\t\t\t\t v.setUsername(rs.getString(\"user_name\"));\r\n\t\t\t\t v.setEmail(rs.getString(\"email\"));\r\n\t\t\treturn v;\r\n\t\t\t}\r\n\t\t};\r\n\t\tList<Validation> list=jdbctemplate.query(query, rowMapper);\r\n\t\t a=list.size()>0?1:0; \r\n\t\treturn a;\r\n\t}", "public void validateEditedUserValues(String mName, String lName, String mDOB, String mEmail)\n\t{\n\t\tString actlName = lastName.getText().toString();\n\t\tString actDOB = startDate.getText().toString();\n\t\tString actEmail = email.getText().toString();\n\t\t//System.out.println(actfName.equals(mName));\n\t\tSystem.out.println(actlName.equals(lName));\n\t\tSystem.out.println(actDOB.equals(mDOB));\n\t\tSystem.out.println(actEmail.equals(mEmail));\n\t\t//Assert.assertEquals(actfName, mName);\n\t\t//Assert.assertEquals(actlName, lName);\n\t\t//Assert.assertEquals(actDOB, mDOB);\n\t\t//Assert.assertEquals(actEmail, mEmail);\n\t\tbackBtn.click();\n\t\t\n\t}", "private boolean CheckEmail() {\n\t\tString email = Email_textBox.getText();\n\n\t\t// if field is empty\n\t\tif (email.equals(\"\")) {\n\t\t\tif (!Email_textBox.getStyleClass().contains(\"error\"))\n\t\t\t\tEmail_textBox.getStyleClass().add(\"error\");\n\t\t\tEmailNote.setText(\"* Enter Email\");\n\t\t\treturn false;\n\t\t}\n\n\t\tString emailFormat = \"^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\\\.[a-zA-Z0-9-]+)+$\";\n\n\t\t// if field is not in wanted format\n\t\tif (!email.matches(emailFormat)) {\n\t\t\tif (!Email_textBox.getStyleClass().contains(\"error\"))\n\t\t\t\tEmail_textBox.getStyleClass().add(\"error\");\n\t\t\tEmailNote.setText(\"* Wrong Format\");\n\t\t\treturn false;\n\t\t}\n\n\t\tEmail_textBox.getStyleClass().remove(\"error\");\n\t\tEmailNote.setText(\"*\");\n\t\treturn true;\n\t}", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "@Test\n public void testGetEmail() {\n System.out.println(\"getEmail Test (Passing value)\");\n String expResult = \"[email protected]\";\n String result = user.getEmail();\n // Check for and print any violations of validation annotations\n Set<ConstraintViolation<User>> violations = validator.validate(user);\n String message =\n violations.iterator().hasNext() ? violations.iterator().next().getMessage() : \"\";\n if (!violations.isEmpty()) {\n System.out.println(\"Violation caught: \" + message);\n }\n // Test method\n assertEquals(expResult, result);\n }", "private boolean checkEmailString(String email) {\n boolean validEmail = true;\n try {\n InternetAddress emailAddr = new InternetAddress(email);\n emailAddr.validate();\n } catch (AddressException ex) {\n validEmail = false;\n }\n return validEmail;\n }", "public void onClick(View v1){\n EditText first_name_validate = (EditText)findViewById(R.id.first_name);\n String name = first_name_validate.getText().toString();\n\n //Setting String to validate the e-mail ID entry\n EditText emailValidate = (EditText)findViewById(R.id.email_id);\n String email = emailValidate.getText().toString().trim();\n String emailPattern = \"[a-zA-Z0-9._-]+@[a-z]+\\\\.+[a-z]+\";//String to check the e-mail pattern\n\n //Setting String to validate the phone number entry\n EditText phone_num_validate = (EditText)findViewById(R.id.phone_number);\n String phone_num = phone_num_validate.getText().toString();\n\n\n if (name.length()==0 || email.length()==0 || phone_num.length()==0)//Checking if any one of the compulsory fields is not filled\n Toast.makeText(getApplicationContext(),\"Fill the compulsory fields\", Toast.LENGTH_SHORT).show();\n\n else if (!(email.matches(emailPattern)))//Checking the e-mail pattern\n Toast.makeText(getApplicationContext(),\"Incorrect Email Format\", Toast.LENGTH_SHORT).show();\n\n else if(phone_num.length()!=10)//Checking the phone number length\n Toast.makeText(getApplicationContext(),\"Incorrect Phone Number\", Toast.LENGTH_SHORT).show();\n\n\n else//If everything is as required then message is displayed showing \"Registered for (Name of the Event)\"\n {\n Toast.makeText(getApplicationContext(), \"Registered for \"+data[pos][8], Toast.LENGTH_SHORT).show();\n finish();\n }\n }", "private void validateEmailField() {\n userEmail = emailEditText.getText().toString();\n if (!isEmailValid()) {\n emailEditText.setTextColor(getResources().getColor(R.color.colorWrongText));\n loginButton.setEnabled(false);\n } else {\n emailEditText.setTextColor(getResources().getColor(R.color.colorRightText));\n loginButton.setEnabled(true);\n }\n }", "private boolean isEmailValid(String email) {\n if(Patterns.EMAIL_ADDRESS.matcher(email).matches()){\n\n return true;\n }else {\n return false;\n }\n// return email.contains(\"@\");\n }" ]
[ "0.7642448", "0.69914347", "0.6961519", "0.69066405", "0.67666245", "0.6705159", "0.6666472", "0.66442823", "0.65798104", "0.65631896", "0.65489244", "0.6542482", "0.65373164", "0.6519465", "0.6493211", "0.64029956", "0.6358558", "0.6256248", "0.6249244", "0.6226585", "0.61947197", "0.6192899", "0.6185843", "0.6183043", "0.6167346", "0.6156784", "0.6145279", "0.6138819", "0.61376023", "0.6127173", "0.6118822", "0.61184525", "0.61137855", "0.6112739", "0.6100675", "0.6090173", "0.60482484", "0.6044182", "0.60404027", "0.60371715", "0.60013497", "0.5999229", "0.5977907", "0.5973008", "0.5953782", "0.5919638", "0.59164727", "0.59155744", "0.59114546", "0.5896058", "0.58934385", "0.58934385", "0.58934385", "0.58934385", "0.5865856", "0.5861124", "0.5850021", "0.5834818", "0.5834056", "0.58257985", "0.5812508", "0.58113074", "0.57993", "0.57968247", "0.57803667", "0.5777298", "0.5777017", "0.5773996", "0.57716936", "0.5769557", "0.5766141", "0.5758076", "0.57431877", "0.57365847", "0.5735188", "0.57324225", "0.5725945", "0.5709577", "0.57009596", "0.5699135", "0.5695144", "0.5693993", "0.56927705", "0.5683098", "0.56772053", "0.56546074", "0.564561", "0.56427044", "0.5635551", "0.5628239", "0.5627416", "0.5627066", "0.5627066", "0.5627066", "0.5627066", "0.5625301", "0.56212544", "0.56195056", "0.5607404", "0.5602246" ]
0.7173072
1
Validation Functions Description : To validate the Online Username of Security in Customer Tab Coded by :Raja Created Data:05 Oct 2016 Last Modified Date:05 Oct 2016 Modified By:Raja Parameter:OnlineUsername
public void validate_the_Online_Username_of_Security_in_Customer_Tab(String OnlineUsername)throws Exception { VerifyElementPresentAndClick(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll("M_Header", "Security").replaceAll("M_Category", "Online Username").replaceAll("M_InnerText", OnlineUsername), "Online Username - "+OnlineUsername); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testvalidateUserName0001()\n\t{\n\t\tLoginCheck loginCheckTest = new LoginCheck();\n\t\t\n\t\tassertFalse(loginCheckTest.validateUserName(\"usrnm\"));\n\t}", "public boolean testUser(){\n VallidateUserName validator = new VallidateUserName();\n return validator.isValidUser(UserName);\n }", "public void testvalidateUserName0003()\n\t{\n\t\tLoginCheck loginCheckTest = new LoginCheck();\n\t\t\n\t\tassertFalse(loginCheckTest.validateUserName(\"username test greater than\"));\n\t}", "private boolean validateFields(){ \n ImplLogger.enterMethod(); \n StringBuffer validationMessage = new StringBuffer();\n boolean isValidationPassed = true;\n if(!ImplValidationUtils.isAlphaSpace(pharmaNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_NAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n pharmaNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n } \n if(!ImplValidationUtils.isAlphabetOnly(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplCommonUtil.isUserNameExist(userNameTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_USERNAME_EXIST);\n validationMessage.append(ImplConst.NEXT_LINE);\n userNameTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(contactTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_CONTACT);\n validationMessage.append(ImplConst.NEXT_LINE);\n contactTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(!ImplValidationUtils.isInteger(zipCodeTextField.getText())){\n validationMessage.append(ImplConst.VALIDATE_ZIPCODE);\n validationMessage.append(ImplConst.NEXT_LINE);\n zipCodeTextField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(passwordField.getText())){\n validationMessage.append(ImplConst.VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n passwordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if(ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n confirmPasswordField.setBackground(Color.red);\n isValidationPassed = false;\n }\n if (!ImplValidationUtils.isStringEmptyOrNull(confirmPasswordField.getText()) && !confirmPasswordField.getText().equals(passwordField.getText())){\n validationMessage.append(ImplConst.CONFIRM_VALIDATE_PASSWORD);\n validationMessage.append(ImplConst.NEXT_LINE);\n isValidationPassed = false; \n }\n if(!isValidationPassed){\n JOptionPane.showMessageDialog(null,validationMessage);\n } \n ImplLogger.exitMethod();\n return isValidationPassed;\n }", "@Override\n\tpublic Boolean chkUserNameForApply(String usernameStr) {\n\t\tList<ApplyUsers> usersList = new ArrayList<ApplyUsers>();\n\t\tString sql=\"select applyid from apply_users where applyname='\" + usernameStr + \"'\";\n\t\tusersList = JdbcUtils.query(ApplyUsers.class, sql);\n\t\tif(usersList.size()>0){\n\t\t return false;\n\t\t}else{\n\t\t return true;\n\t\t}\n\t}", "@When(\"^user should enter the valid username in the loginpage$\")\n\tpublic void user_should_enter_the_valid_username_in_the_loginpage() throws Throwable {\n\t inputValuestoElement(pa.getAp().getUsernamedisplay(), \"Srini1010\");\n\t}", "public void testvalidateUserName0002()\n\t{\n\t\tLoginCheck loginCheckTest = new LoginCheck();\n\t\t\n\t\tassertTrue( loginCheckTest.validateUserName(\"username test\"));\n\t}", "public String validateDisplayUserName(String object, String data) {\n\t\tlogger.debug(\"check the display user name\");\n\t\tString username[] = null;\n\t\tString DisplayName = \"\";\n\t\tString build=\"\";\n\t\ttry {\n\t\t\tWebElement element = wait.until(explicitWaitForElement(By.xpath(OR.getProperty(object))));\n\t\t\tDisplayName = element.getText();\n\t\t\tlogger.debug(\"DisplayName--\" + DisplayName);\n\n\t\t\tusername = DisplayName.split(Constants.Object_SPLIT);\n\t\t\tif (!data.equals(username[1].trim())) {\n\t\t\t\tlogger.debug(\"login username \" + data + \" and display username\" + username[1] + \" is not matched\");\n\t\t\t\tAssert.assertFalse(true, \"login username \" + data + \" and display username\" + username[1] + \" is not matched\");\n\t\t\t}\n\n\t\t\tString version=(wait.until(explicitWaitForElement(By.xpath(OR.getProperty(\"build_version\")))).getText()).split(\":\")[1].trim(); // Modified By Karan on 28/07/2015\n\t\t\t\t\t\t\t\t\t\n\t\t\tif(version.contains(\"v\"))\n\t\t\t{\n\t\t\t\tbuild=version.split(\"v\")[1].trim();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbuild=version;\n\t\t\t}\n\t\t\t\n\t\t\tlogger.debug(\"build value = \" + build);\t\n\t\t}\n\t\t\n\t\tcatch(ArrayIndexOutOfBoundsException aex)\n\t\t{\n\t\t\tbuild=\"N.A.\";\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ aex.getCause() + Constants.DATA_SPLIT + build;\n\t\t}\n\t\t\n\t\tcatch(TimeoutException ex)\n\t\t{\n\t\t\tbuild=\"N.A.\";\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause() + Constants.DATA_SPLIT + build;\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\n\t\t\tlogger.debug(\"DisplayName--\" + DisplayName);\n\t\t\treturn Constants.KEYWORD_FAIL + \"login username\" + data + \" and display username\" + username[1] + \" is not matched.\" + e.getMessage();\n\t\t}\n\t\treturn Constants.KEYWORD_PASS + Constants.DATA_SPLIT + build;\n\t}", "private boolean validateUsername() {\n // Get doctor's username\n EditText doctorUsername = (EditText) rootView.findViewById(R.id.doctorField);\n String doctorUsernameString = doctorUsername.getText().toString();\n // Query on server using that username\n try {\n String query = String.format(\"select `username` from `user` inner join `doctor` on user.id=doctor.userid where username='%s'\", doctorUsernameString); // query to check username existence\n Document document = Jsoup.connect(Constants.SERVER + query).get();\n String queryJson = document.body().html();\n if (queryJson.equals(\"0\")) { // Username not existed\n return false;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // Get patient's username\n EditText patientUsername = (EditText) rootView.findViewById(R.id.patientField);\n String patientUsernameString = patientUsername.getText().toString();\n // Query on server using that username\n try {\n String query = String.format(\"select `username` from `user` inner join `patient` on user.id=patient.userid where username='%s'\", patientUsernameString); // query to check username existence\n Document document = Jsoup.connect(Constants.SERVER + query).get();\n String queryJson = document.body().html();\n if (queryJson.equals(\"0\")) { // Username not existed\n return false;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return true;\n }", "private void validationUsername( String username ) throws Exception {\n\n if ( username.length() < 4 ) {\n throw new Exception( \"Longueur du nom d'utilisateur invalide.\" );\n }\n if ( username == null ) {\n throw new Exception( \"Merci de saisir un nom d'utilisateur valide.\" );\n }\n }", "private void validationUsername( String name ) throws Exception {\n\t\t\t if ( name != null && name.trim().length() < 3 ) {\n\t\t\t throw new Exception( \"Le nom d'utilisateur doit contenir au moins 3 caractères.\" );\n\t\t\t }\n\t\t\t}", "@Test\n\tpublic void testValidateUsernameEmail() {\n\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\t\tassertTrue(ValidationUtil.validate(\"[email protected]\", Validate.username_valid));\n\n\t\tassertFalse(ValidationUtil.validate(\"test4\", Validate.username_valid));\n\t\tassertFalse(ValidationUtil.validate(\"@com\", Validate.username_valid));\n\t\tassertFalse(ValidationUtil.validate(\"com@\", Validate.username_valid));\n\t}", "@Override\n\tpublic void validate() {\n\t\tif(name==null||name.trim().equals(\"\")){\n\t\t\taddActionError(\"用户必须填写!\");\n\t\t}\n\t\t\n\t\tList l=new ArrayList();\n\t\tl=userService.QueryByTabId(\"Xxuser\", \"id\", id);\n\t\t//判断是否修改\n\t\tif(l.size()!=0){\n\t\t\t\n\t\t\tfor(int i=0;i<l.size();i++){\n\t\t\t\tXxuser xxuser=new Xxuser();\n\t\t\t\txxuser=(Xxuser)l.get(i);\n\t\t\t\tif(xxuser.getName().equals(name.trim())){\n\t\t\t\t\tSystem.out.println(\"mei gai\");\n\t\t\t\t}else{\n\t\t\t\t\tList n=new ArrayList();\n\t\t\t\t\tn=userService.QueryByTab(\"Xxuser\", \"name\", name);\n\t\t\t\t\tif(n.size()!=0){\n\t\t\t\t\t\taddActionError(\"该用户已经存在!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\n\t\t\t\n\t\t}\n\t}", "public void checkUsernameExist() {\n\n try {\n BLUser bluser = new BLUser();\n User user = new User();\n\n ResultSet rs = bluser.selectUserIdFromUsername(txt_username.getText());\n\n user.setUsername(txt_username.getText());\n bluser.setUser(user);\n\n if (bluser.checkUsernameExist()) {\n \n populateDataOnTable();\n }// end if\n else {\n JOptionPane.showMessageDialog(rootPane, \"Invalid username!\");\n }// end else \n\n }// end try\n catch (Exception ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage(), \"Exception\", JOptionPane.INFORMATION_MESSAGE);\n }//end catch\n }", "public String validateUser(String un) {\n\t\tUser checkForUser = userDao.findByUsername(un);\n\t\tif (checkForUser != null) {\t\t\t\t\t//user exists\n\t\t\treturn \"That username already exists\";\n\t\t}\n\t\telse {\n\t\t\t//validate username\n\t\t\tif(!User.isValidUsername(un)) {\n\t\t\t\treturn \"Username must be between 5 and 11 characters and contain 1 alpha\";\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Test\n\t\tpublic void givenFirstLetterSmall_CheckForValidation_ReturnFalse() {\n\t\t\tboolean result = ValidateUserDetails.validateFirstName(\"priya\");\n\t\t\tAssertions.assertFalse(result);\n\t\t}", "public void validateUserName(FacesContext context, UIComponent validate, Object value){\n\t\tcheckHibernateAnnotations(context, validate, value);\t\t\t\t\n\t\tString username=(String)value;\n\t\tif (!isUsernameAvailable(username)) {\n\t\t\tFacesMessage msg = new FacesMessage(\"ice username already taken\");\n\t\t\tcontext.addMessage(validate.getClientId(context), msg);\n\t\t\tusernameValid=false;\n\t\t}else usernameValid=true;\n\t}", "private boolean checkUserInformation(String name,String userName,String email,String password)\n {\n\n if(userName.isEmpty())\n {\n eUserName.setError(\"empty field\");\n return false;\n }\n\n if(name.isEmpty())\n {\n eName.setError(\"empty field\");\n return false;\n }\n\n if(email.isEmpty())\n {\n eEmail.setError(\"empty field\");\n return false;\n }\n if(password.isEmpty())\n {\n ePassword.setError(\"empty field\");\n return false;\n }\n\n\n if(password.length()<6)\n {\n ePassword.setError(\"Invalid password\");\n ePassword.requestFocus();\n return false;\n }\n if(password.length()>16)\n {\n ePassword.setError(\"Invalid password\");\n ePassword.requestFocus();\n return false;\n }\n\n if(eAddress.getText().toString().isEmpty())\n {\n eAddress.setError(\"Invalid address\");\n eAddress.requestFocus();\n return false;\n }\n\n if(eFavourite.getText().toString().isEmpty())\n {\n eFavourite.setError(\"empty field\");\n eFavourite.requestFocus();\n return false;\n }\n\n if(!email.contains(\"@\"))\n {\n eEmail.setError(\"Invalid email\");\n eEmail.requestFocus();\n return false;\n }\n\n if(name.length()<3)\n {\n eName.setError(\"Invalid name\");\n eName.requestFocus();\n return false;\n }\n\n for(char c : name.toCharArray()){\n if(Character.isDigit(c)){\n eName.setError(\"Invalid Name\");\n eName.requestFocus();\n return false;\n }\n }\n\n if(userName.length()<5)\n {\n eUserName.setError(\"User name must be in 6 to 12 character\");\n eUserName.requestFocus();\n return false;\n }\n\n if(eAddress.getText().toString().length()<10||eAddress.getText().toString().length()>30)\n {\n eAddress.setError(\"Must be in 10-30 characters\");\n eAddress.requestFocus();\n return false;\n }\n return true;\n }", "public boolean checkUsername(String user) {\n\n }", "@Override\n\tpublic int validateUsername(User u) {\n\t\treturn 0;\n\t}", "private Boolean isValidUsername(String username){\n return (username != null) && (username.length() >= 5 && username.length() <= 16);\n }", "public static Boolean checkUsername(String username){\n\t\t//String username = txtUsername.getText();\n\t\t//System.out.println(username);\n\t\treturn (username.equals(\"Admin\"));\n\t}", "private static Boolean testUsername(String username){\n\t\t//Setting Up Regex -> All Numbers and Letters maximum 14 signs\n\t\tString pattern =\"[A-z1-9]{2,14}\";\n\t\tPattern p = Pattern.compile(pattern);\n\t\tMatcher m = p.matcher(username);\n\t\t\t\n\t\tif(m.matches() && !username.isEmpty()){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static void main(String[] args){\n\tValidateUser first =(String Fname) -> {\n\t\tif(Pattern.matches(\"[A-Z]{1}[a-z]{2,}\",Fname))\n\t\t\tSystem.out.println(\"First Name Validate\");\n\t\t\telse \n\t\t\tSystem.out.println(\"Invalid Name, Try again\");\n\t}; \n\t//Lambda expression for Validate User Last Name\n\tValidateUser last =(String Lname) -> {\n\t\tif(Pattern.matches(\"[A-Z]{1}[a-z]{2,}\",Lname))\n\t\t\tSystem.out.println(\"Last Name Validate\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Last Name, Try again\");\n\t};\n\t//Lambda expression for Validate User Email\n\tValidateUser Email =(String email) -> {\n\t\tif(Pattern.matches(\"^[\\\\w-\\\\+]+(\\\\.[\\\\w]+)*@[\\\\w-]+(\\\\.[\\\\w]+)*(\\\\.[a-z]{2,})$\",email))\n\t\t\tSystem.out.println(\"email Validate\");\n\t\telse\n\t\t\tSystem.out.println(\"Invalid Email, Try again\");\n\t};\n\t//Lambda expression for Validate User Phone Number\n\tValidateUser Num =(String Number) -> {\n\t\tif(Pattern.matches(\"^[0-9]{2}[\\\\s][0-9]{10}\",Number))\n\t\t\tSystem.out.println(\"Phone Number Validate\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Invalid Number, Try Again\");\n\t};\n\t//Lambda expression for Validate User Password\n\tValidateUser Password =(String pass) -> {\n\t\tif(Pattern.matches(\"(?=.*[$#@!%^&*])(?=.*[0-9])(?=.*[A-Z]).{8,20}$\",pass))\n\t\t\tSystem.out.println(\"Password Validate\");\n\t\t\telse\n\t\t\tSystem.out.println(\"Invalid Password Try Again\");\n\t};\n\t\n\tfirst.CheckUser(\"Raghav\");\n\tlast.CheckUser(\"Shettay\");\n\tEmail.CheckUser(\"[email protected]\");\n\tNum.CheckUser(\"91 8998564522\");\n\tPassword.CheckUser(\"Abcd@321\");\n\t\n\t\n\t\n\t//Checking all Email's Sample Separately\n\tArrayList<String> emails = new ArrayList<String>();\n\t//Valid Email's\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\temails.add(\"[email protected]\");\n\t\n\t//Invalid Email's\n\temails.add(\"[email protected]\");\n\temails.add(\"abc123@%*.com\");\n\t\n\tString regex=\"^[\\\\w-\\\\+]+(\\\\.[\\\\w]+)*@[\\\\w-]+(\\\\.[\\\\w]+)*(\\\\.[a-z]{2,})$\";\n\t\n\tPattern pattern = Pattern.compile(regex);\n\t\n\tfor(String mail : emails) {\n\t\tMatcher matcher = pattern.matcher(mail);\n\t System.out.println(mail +\" : \"+ matcher.matches());\n\t}\n \n}", "private boolean isUserNameValid(String username) {\n if (username == null) {\n return false;\n } else {\n return !username.trim().isEmpty();\n }\n }", "public void validate_the_Nominated_user_of_Security_in_Customer_Tab(String Nominateduser)throws Exception {\n\t\tVerifyElementPresent(Desktop_XPATH_Verify_Customer_Page_Security.replaceAll(\"M_Header\", \"Security\").replaceAll(\"M_Category\", \"Nominated user\").replaceAll(\"M_InnerText\", Nominateduser), \"Nominated user - \"+Nominateduser, false);\n\t}", "@Test(priority = 2)\r\n\tpublic void invalidUserTest()\r\n\t{\r\n\t\tAdminDashboardPage adminPage=new AdminDashboardPage(driver);\r\n\t\tadminPage.clickUsersTab();\r\n\t\t\r\n\t\tUsersListViewPage ulPage=new UsersListViewPage(driver);\r\n\t\tulPage.clickNewUser();\r\n\r\n\t\tCreateNewUserPage crUserPage=new CreateNewUserPage(driver);\r\n\t\tcrUserPage.enterUserDetails(\"Kathy\",\"pass\",\"[email protected]\");\r\n\t\tcrUserPage.clickCreateUser();\r\n\t\t\r\n\t\t\r\n\t\tString expectedError=\"has already been taken\";\t\t\r\n\t\t\r\n\t\tString actualNameError=crUserPage.getUserNameErrorMessage().trim();\r\n\t\tAssert.assertEquals(actualNameError, expectedError);\t\r\n\t\t\r\n\t\t\r\n\t\tString actualEmailError= crUserPage.getEmailErrorMessage().trim();\r\n\t\tAssert.assertEquals(actualEmailError, expectedError);\r\n\t\t\r\n\t}", "private boolean validateInput() {\n String username = editUsername.getText().toString().trim();\n String email = editEmail.getText().toString().trim();\n String password = editPassword.getText().toString().trim();\n String repeatPassword = editRepeatPassword.getText().toString().trim();\n if (!password.equals(repeatPassword)) {\n ShowMessageUtil.tosatSlow(\"Enter passwords differ\", EmailRegisterActivity.this);\n return false;\n } else if (username.equals(\"\") || email.equals(\"\") || password.equals(\"\")) {\n ShowMessageUtil.tosatSlow(\"every item can not be empty!\", EmailRegisterActivity.this);\n return false;\n }\n if (username.length()>10){\n ShowMessageUtil.tosatSlow(\"the character length of the username can't be over than 10\", EmailRegisterActivity.this);\n return false;\n }\n return true;\n }", "public void validateUserListTable() throws Exception {\n\t\tlog.info(\"Started ----- Validate for UserListTable -----\");\n\t\tAddUser.getText();\n\t\tFirstNameText.getText();\n\t\tLastNameText.getText();\n\t\tUserNameText.getText();\n\t\tCustomerText.getText();\n\t\tRoleText.getText();\n\t\tEmailText.getText();\n\t\tCellPhoneText.getText();\n\t\tLockedText.getText();\n\n\t\tString actualadduser = AddUser.getText();\n\t\tString expectedadduser = \"Add User\";\n\t\tString actualfirstname = FirstNameText.getText();\n\t\tString expectedfirstname = \"First Name\";\n\t\tString actuallastname = LastNameText.getText();\n\t\tString expectedlastname = \"Last Name\";\n\t\tString actualusername = UserNameText.getText();\n\t\tString expectedusername = \"User Name\";\n\t\tString actualcustomer = CustomerText.getText();\n\t\tString expectedcustomer = \"Customer\";\n\t\tString actualroletext = RoleText.getText();\n\t\tString expectedroletext = \"Role\";\n\t\tString actualemail = EmailText.getText();\n\t\tString expectedemail = \"E-mail\";\n\t\tString actualcellphone = CellPhoneText.getText();\n\t\tString expectedcellphone = \"Cell Phone\";\n\t\tString actuallocked = LockedText.getText();\n\t\tString expectedlocked = \"Locked\";\n\n\t\tAssert.assertEquals(actualadduser, expectedadduser);\n\t\tAssert.assertEquals(actualfirstname, expectedfirstname);\n\t\tAssert.assertEquals(actuallastname, expectedlastname);\n\t\tAssert.assertEquals(actualusername, expectedusername);\n\t\tAssert.assertEquals(actualcustomer, expectedcustomer);\n\t\tAssert.assertEquals(actualroletext, expectedroletext);\n\t\tAssert.assertEquals(actualemail, expectedemail);\n\t\tAssert.assertEquals(actualcellphone, expectedcellphone);\n\t\tAssert.assertEquals(actuallocked, expectedlocked);\n\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal:\" + actualadduser);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualfirstname);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actuallastname);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualusername);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualcustomer);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualroletext);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualemail);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actualcellphone);\n\t\tSystem.out.println(\"Both Actual and Expected texts are equal :\" + actuallocked);\n\t\tlog.info(\"Ended ----- Validate for UserListTable -----\");\n\t}", "private void checkValidation() {\n // Get email id and password\n MainActivity.EmailAddress = emailid.getText().toString();\n finalPassword = password.getText().toString();\n\n // Check patter for email id\n Pattern p = Pattern.compile(Utils.regEx);\n\n Matcher m = p.matcher(MainActivity.EmailAddress);\n\n // Check for both field is empty or not\n if (MainActivity.EmailAddress.equals(\"\") || MainActivity.EmailAddress.length() == 0\n || finalPassword.equals(\"\") || finalPassword.length() == 0) {\n loginLayout.startAnimation(shakeAnimation);\n new CustomToast().Show_Toast(getActivity(), view,\n \"Enter both credentials.\");\n\n }\n // Check if email id is valid or not\n else if (!m.find())\n new CustomToast().Show_Toast(getActivity(), view,\n \"Your Email Id is Invalid.\");\n // Else do login and do your stuff\n else\n tryLoginUser();\n\n }", "public CredentialValidationResult validate(UsernamePasswordCredential unpc){\r\n \r\n \r\n return null;\r\n}", "private String checkUserDetail(UserModel userModel) {\n\t\tString name = userModel.getName();\n\t\tString mobileNumber = userModel.getMobileNumber();\n\t\tString email = userModel.getEmail();\n\t\tString pincode = userModel.getPincode();\n\t\tString area = userModel.getAreaName();\n\t\tString state = userModel.getStateName();\n\t\tString res = \"okkk\";\n\t\tif (mobileNumber.length() != 10) {\n\t\t\tres = \"Enter ten digit mobile number\";\n\t\t} else if (!checkMobileDigit(mobileNumber)) {\n\t\t\tres = \"enter only digit\";\n\t\t} else if (!checkNameChar(name)) {\n\t\t\tres = \"name shuld be only in alphabet\";\n\t\t} else if (!checkEmail(email)) {\n\t\t\tres = \"enter a valid email\";\n\t\t} else if (pincode.length() != 6) {\n\t\t\tres = \"enter valid pincode and enter only six digit\";\n\t\t} else if (!checkPincode(pincode)) {\n\t\t\tres = \"enter only digit\";\n\t\t} else if (area.equals(null)) {\n\t\t\tres = \"choose area\";\n\t\t} else if (state.equals(null)) {\n\t\t\tres = \"choose state\";\n\t\t}\n\t\treturn res;\n\t}", "public static void main(String args[]) {\n\t\t\n\t\t//validating the first name of the user\n\t\tUserValidationInterface validateFirstName = (firstName) -> {\n\t\t\tString regex = \"^[A-Z][a-z]{2,}\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(firstName);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"First Name of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"First Name of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidateFirstName.validate(\"Rosy\");\n\n\t\t//validating the last name of the user\n\t\tUserValidationInterface validateLastName = (lastName) -> {\n\t\t\tString regex = \"^[A-Z][a-z]{2,}\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(lastName);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"Last Name of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Last Name of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidateLastName.validate(\"Rupali\");\n\n\t\t//validating the email Id of the user\n\t\tUserValidationInterface validateEmailId = (emailId) -> {\n\t\t\tString regex = \"^[a-z0-9.+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,6}$\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(emailId);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"Email Id of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Email Id of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidateEmailId.validate(\"[email protected]\");\n\n\t\t//validating the mobile number of the user\n\t\tUserValidationInterface validatePhoneNumber = (mobileNumber) -> {\n\t\t\tString regex = \"[0-9]{2}\\\\s{1}[0-9]{10}\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(mobileNumber);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"Mobile number of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Mobile number of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidatePhoneNumber.validate(\"91 9423632176\");\n\n\t\t//validating the password of the user\n\t\tUserValidationInterface validatePassword = (password) -> {\n\t\t\tString regex = \"^(?=.*[A-Z])(?=.*[0-9])(?=.*[^a-zA-Z0-9]).{8,}$\";\n\t\t\tPattern p = Pattern.compile(regex);\n\t\t\tMatcher m = p.matcher(password);\n\t\t\tboolean b = m.matches();\n\t\t\tif (b) {\n\t\t\t\tSystem.out.println(\"password of the user is valid.\");\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"password of the user is invalid.\");\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t\tvalidatePassword.validate(\"oneFine$123\");\n\n\t}", "@Test\n\t\tpublic void givenTwoLetters_CheckForValidation_ReturnFalse() {\n\t\t\tboolean result = ValidateUserDetails.validateFirstName(\"Pr\");\n\t\t\tAssertions.assertFalse(result);\n\t\t}", "public void setUserName(String UserName){\r\n\t\tString UsrName = getValue(UserName);\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\r\n\r\n\t\tDate date = new Date();\r\n\r\n\t\tString ldDate=(String) dateFormat.format(date);\r\n\r\n\t\t//String USR = getValue(Username);\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+UsrName);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Username should be entered in Login\");\r\n\t\ttry{\r\n\t\t\tif((countrygroup_username).contains(countries.get(countrycount))){\r\n\t\t\t\tsendKeys(locator_split(\"txtRegistrationUniqueUsername\"), UsrName+ldDate);\t\r\n\t\t\t\tSystem.out.println(\"User Name is entered\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Username is entered in username field\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Username is not applicable to \" + country);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Username is not entered in Login field with WebElement \"+elementProperties.getProperty(\"txtUserName\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtRegistrationUniqueUsername\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "@Test\n void returnsTrueIfOnlyLetters() {\n Assertions.assertTrue(new UserValidator().isValidUsername(null));\n }", "private boolean isUsernameOrEmailValid(String usernameOrEmail)\n {\n return usernameOrEmail.length() > MagazzinoService.getUsernameOrEmailMinLength(this);\n }", "private boolean validateInput(){\n Window owner=root.getScene().getWindow();\n inputFileds.addAll(txtfn,txtln,txtsurname,txtDOB,txtResidence,txtMobile,txtID,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().isEmpty()){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n inputFileds.removeAll(txtDOB,txtMobile,username);\n for (TextField textField : inputFileds) {\n if(textField.getText().length()>30){\n //set css stroke\n Dialog.showMessageDialog(owner,\"Sorry the text you entered can not be greater that 30 characters\",\"Text too Long\",DialogIcon.WARNING);\n textField.requestFocus();\n return false;\n }\n }\n if(username.getText().length()>20 || username.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Username has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid input\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n if(pass.getText().isEmpty()){\n Dialog.showMessageDialog(owner,\"Missing Details\",\"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n if(pass.getText().length()>20 || pass.getText().length()<4){\n Dialog.showMessageDialog(owner, \"Sorry your Password has to be More than 3 Characters and can not Exceed 20 Charchaters\", \"Invalid Input\",DialogIcon.WARNING);\n pass.requestFocus();\n return false;\n }\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n SimpleDateFormat yearFormat = new SimpleDateFormat(\"yyyy\");\n try {\n date = dateFormat.parse(txtDOB.getText());\n Calendar cal=Calendar.getInstance();\n int year=Integer.parseInt(yearFormat.format(date));\n if (year <= 1900 || year>cal.get(Calendar.YEAR)) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n String initialEntry=txtDOB.getText();\n String parsedValue=dateFormat.format(date);\n if(!initialEntry.equals(parsedValue)){\n Dialog.showMessageDialog(owner, \"Note your Date of Birth has been corrected\", \"Date Corrected\",DialogIcon.INFORMATION);\n }\n txtDOB.setText(dateFormat.format(date));\n } catch (ParseException ex) {\n Dialog.showMessageDialog(owner,\"Invalid Date of Birth\", \"Invalid Input\",DialogIcon.WARNING);\n txtDOB.requestFocus();\n return false;\n }\n try {\n int mobile=Integer.parseInt(txtMobile.getText());\n } catch (NumberFormatException e) {\n Dialog.showMessageDialog(owner, \"Invalid Mobile Number\", \"Invalid data\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n if(txtMobile.getText().length() != 10){\n Dialog.showMessageDialog(owner, \"Sorry your Mobile Number is invalid\", \"Invalid input\",DialogIcon.WARNING);\n txtMobile.requestFocus();\n return false;\n }\n String sql=\"select Username,Password from users where Username=?\";\n try(PreparedStatement prstmt=con.prepareStatement(sql)) {\n prstmt.setString(1, username.getText());\n ResultSet rs=prstmt.executeQuery();\n if(rs.next()){\n Dialog.showMessageDialog(owner, \"Sorry Username already exists\\n Please change to different Username\", \"Username Exists\",DialogIcon.WARNING);\n username.requestFocus();\n return false;\n }\n rs.close();\n } catch (SQLException e) {\n System.err.println(e);\n }\n return true;\n }", "public static String checkUsername(String in) {\n\t\tif (in.isEmpty())\r\n\t\t\treturn \"Username is empty\";\r\n\t\telse {\r\n\t\t\tPattern passPat = Pattern.compile(\"\\\\w*\");\r\n\t\t\tMatcher matchpass = passPat.matcher(in);\r\n\t\t\tif (!matchpass.matches()) {\r\n\t\t\t\treturn \"The username must only contain character and numeric\";\r\n\t\t\t} else\r\n\t\t\t\treturn null;\r\n\t\t}\r\n\t}", "protected boolean isValid() {\n if (!bean.getValidation().equals(TURRING_TEST)) {\n Notification.show(msgs.getMessage(ERROR_VALIDATION), Notification.Type.ERROR_MESSAGE);\n return false;\n }\n if (!bean.getPassword().equals(bean.getPasswordRepeat())) {\n Notification.show(msgs.getMessage(ERROR_PASSWORDS_DOESNT_MATCH), Notification.Type.ERROR_MESSAGE);\n password.setValue(\"\");\n passwordRepeat.setValue(\"\");\n return false;\n }\n if (usersService.getUserByUsername(bean.getUsername()) != null) {\n Notification.show(msgs.getMessage(ERROR_USERNAME_USED), Notification.Type.ERROR_MESSAGE);\n return false;\n }\n Pattern p = Pattern.compile(\"[^a-z0-9]\", Pattern.CASE_INSENSITIVE);\n Matcher m = p.matcher(bean.getUsername());\n boolean b = m.find();\n if(b){\n Notification.show(msgs.getMessage(\"username\")+\" \" + msgs.getMessage(\"error.special-char\")+\"\\n\", msgs.getMessage(\"error.special-char.correct\"), Notification.Type.ERROR_MESSAGE);\n return false;\n }\n return true;\n }", "private boolean userInfoCheck(){\n boolean isValid = true;\n EditText et_user_name = findViewById(R.id.et_client_fName);\n EditText et_user_location = findViewById(R.id.et_client_sName);\n if(et_user_name.getText().toString().trim().isEmpty()){\n et_user_name.setError(\"Name Cannot Be Empty\");\n isValid = false;\n }\n if (et_user_location.getText().toString().trim().isEmpty()){\n et_user_location.setError(\"Location Cannot Be Empty\");\n isValid = false;\n }\n return isValid;\n }", "public String checkUsername() {\n String username = \"\"; // Create username\n boolean isOK = true; // Condition loop\n\n while (isOK) {\n username = checkEmpty(\"Account\"); // Call method to check input of username\n boolean isExist = false; // Check exist username\n for (Account acc : accounts) {\n // If username is exist, print out error\n if (username.equals(acc.getUsername())) {\n System.out.println(\"This account has already existed\");\n System.out.print(\"Try another account: \");\n isExist = true;\n }\n }\n // If username not exist then return username\n if (!isExist) {\n return username;\n }\n }\n return username; // Return username\n }", "private boolean validate(){\n\n String MobilePattern = \"[0-9]{10}\";\n String name = String.valueOf(userName.getText());\n String number = String.valueOf(userNumber.getText());\n\n\n if(name.length() > 25){\n Toast.makeText(getApplicationContext(), \"pls enter less the 25 characher in user name\",\n Toast.LENGTH_SHORT).show();\n return true;\n }\n\n\n\n else if(name.length() == 0 || number.length() == 0 ){\n Toast.makeText(getApplicationContext(), \"pls fill the empty fields\",\n Toast.LENGTH_SHORT).show();\n return false;\n }\n\n\n\n else if(number.matches(MobilePattern))\n {\n\n return true;\n }\n else if(!number.matches(MobilePattern))\n {\n Toast.makeText(getApplicationContext(), \"Please enter valid 10\" +\n \"digit phone number\", Toast.LENGTH_SHORT).show();\n\n\n return false;\n }\n\n return false;\n\n }", "boolean validateAccount(String Account) {\n\t\treturn true;\n\n\t}", "private boolean isFormValid(AdminAddEditUserDTO dto)\r\n\t{\n\t\tSOWError error;\r\n\t\tList<IError> errors = new ArrayList<IError>();\t\t\r\n\t\t\r\n\t\t// First Name\r\n\t\tif(com.newco.marketplace.web.utils.SLStringUtils.isNullOrEmpty(dto.getFirstName()))\r\n\t\t{\r\n\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_First_Name\"),\r\n\t\t\t\t\tgetTheResourceBundle().getString(\"Admin_First_Name_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\terrors.add(error);\r\n\t\t}\r\n\t\t// Last Name\r\n\t\tif(com.newco.marketplace.web.utils.SLStringUtils.isNullOrEmpty(dto.getLastName()))\r\n\t\t{\r\n\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_Last_Name\"),\r\n\t\t\t\t\tgetTheResourceBundle().getString(\"Admin_Last_Name_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\terrors.add(error);\r\n\t\t}\r\n\t\t\r\n\t\t// User Name\r\n\t\tif(com.newco.marketplace.web.utils.SLStringUtils.isNullOrEmpty(dto.getUsername()))\r\n\t\t{\r\n\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_User_Name\"),\r\n\t\t\t\t\tgetTheResourceBundle().getString(\"Admin_User_Name_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\terrors.add(error);\r\n\t\t}\r\n\t\telse\r\n\t\t{\t\r\n\t\t\t//User Name Length Check\r\n\t\t\tif((dto.getUsername().length() < 8) || (dto.getUsername().length() >30)){\r\n\t\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_User_Name\"),getTheResourceBundle().getString(\"Admin_User_Name_Length_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\t\terrors.add(error);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString jobRole = getParameter(\"jobRole\");\r\n\t\tif(\"-1\".equals(jobRole))\r\n\t\t{\r\n\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_Job_Role\"),\r\n\t\t\t\t\tgetTheResourceBundle().getString(\"Admin_Job_Role_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\terrors.add(error);\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Handle Primary Email\r\n\t\tif(com.newco.marketplace.web.utils.SLStringUtils.isNullOrEmpty(dto.getEmail()))\r\n\t\t{\r\n\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_Email\"),\r\n\t\t\t\t\tgetTheResourceBundle().getString(\"Admin_Email_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\terrors.add(error);\t\t\t\t\t\t\t\t\t\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif(com.newco.marketplace.web.utils.SLStringUtils.isEmailValid(dto.getEmail()) == false)\r\n\t\t\t{\r\n\t\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_PrimaryEmail\"),\r\n\t\t\t\t\t\tgetTheResourceBundle().getString(\"Admin_Email_Pattern_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\t\terrors.add(error);\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if(dto.getEmail().equals(dto.getEmailConfirm()) == false)\r\n\t\t\t{\r\n\t\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_PrimaryEmail\"),\r\n\t\t\t\t\t\tgetTheResourceBundle().getString(\"Admin_Email_Confirm_Validation_Msg\"), OrderConstants.FM_ERROR);\r\n\t\t\t\terrors.add(error);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Check for existing username, only in Add mode\r\n\t\tString mode = (String)getSession().getAttribute(\"addEditUserMode\");\r\n\t\tif(mode != null)\r\n\t\t{\r\n\t\t\tif(mode.equals(\"add\"))\r\n\t\t\t{\r\n\t\t\t\tif(manageUsersDelegate.getAdminUser(dto.getUsername()) != null || manageUsersDelegate.getBuyerUser(dto.getUsername()) != null)\r\n\t\t\t\t{\r\n\t\t\t\t\terror = new SOWError(getTheResourceBundle().getString(\"Admin_User_Name\"), getTheResourceBundle().getString(\"Admin_Existing_User_Validation_Msg1\")+\" \" + dto.getUsername() +\" \" +getTheResourceBundle().getString(\"Admin_Existing_User_Validation_Msg2\"), OrderConstants.FM_ERROR);\r\n\t\t\t\t\terrors.add(error);\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\r\n\t\t// If we have errors, put them in request.\r\n\t\tif(errors.size() > 0)\r\n\t\t{\r\n\t\t\tsetAttribute(\"errors\", errors);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tgetSession().removeAttribute(\"addEditUserMode\");\r\n\t\t\tgetSession().removeAttribute(\"originalUsername\");\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "@Override\n public void displayInvalidUser() {\n Toast.makeText(this, \"Username cannot be blank or contain $\", Toast.LENGTH_LONG).show();\n }", "public static boolean isUsernameValid(String username) {\n if (username.length() > 50) { \n return false;\n } else { \n char c;\n int count = 1; \n for (int i = 0; i < username.length(); i++) {\n c = username.charAt(i);\n if (!Character.isLetterOrDigit(c)) { \n return false;\n }\n // If the character is a space\n else if (c == ' '){ \n return false;\n }\n else if (Character.isDigit(c)) {\n count++;\n if (count > 6) { \n return false;\n } \n }\n }\n }\n return true;\n }", "private boolean validate(String username, String password) {\n\t\tif(username.equals(\"Venkat\") && password.equals(\"kumar\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean checkUsername() {\n if(getUsername.getText().compareTo(\"\") != 0) { return true; }\n else {\n errorMessage.setText(\"Please enter a username.\");\n return false;\n }\n }", "@Test\n\t\tpublic static void givenFirstName_WhenProper_ShouldReturnTrue() {\n\t\t\tboolean result= ValidateUserDetails.validateFirstName(\"Priyanka\");\n\t\t\tAssertions.assertTrue(result);\n\n\t\t}", "public boolean nameValidation(String username){\n return !(username.isEmpty() || !username.matches(\"[a-zA-Z0-9_-]+\"));\n }", "public ResultSet namevalidate(String uname) throws Exception{\n\t\trs=DbConnect.getStatement().executeQuery(\"select * from LOGIN where USERNAME='\"+uname+\"'\");\r\n\t\treturn rs;\r\n\t}", "private String validarEntradas()\n { \n return Utilitarios.validarEntradas(campoNomeAC, campoEnderecoAC, campoBairroAC, campoCidadeAC, campoUfAC, campoCepAC, campoTelefoneAC, campoEmailAC);\n }", "public void validateUserName(String name) {\n\t\ttry {\n\t\t\tAssert.assertTrue(userName.getText().equalsIgnoreCase(\"Hi \"+name),\"Username is correctly displayed\");\n\t\t\tLog.addMessage(\"Username correctly displayed\");\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Validation of User Login is failed\");\n\t\t\tLog.addMessage(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to validate User Login\");\n\t\t}\n\t}", "protected void validateFirstName(){\n Boolean firstName = Pattern.matches(\"[A-Z][a-z]{2,}\",getFirstName());\n System.out.println(nameResult(firstName));\n }", "@Test\n public void testValidateUsername() {\n System.out.println(\"validateUsername\");\n String username = \"[email protected]\";\n LoginRegister instance = new LoginRegister();\n boolean expResult = true;\n boolean result = instance.validateUsername(username);\n assertEquals(expResult, result);\n }", "private boolean isValidUsername(EditText edtDisplayName) {\n boolean isValid = edtDisplayName.getText().length() != 0;\n\n if (!isValid) {\n edtDisplayName.setError(getString(R.string.required_field));\n }\n\n return isValid;\n }", "@Test(priority = 1)\r\n\tpublic void validUserTest() {\t\t\t\r\n\r\n\t\tAdminDashboardPage adminPage=new AdminDashboardPage(driver);\r\n\t\tadminPage.clickUsersTab();\t\r\n\t\t\r\n\t\tUsersListViewPage ulPage=new UsersListViewPage(driver);\r\n\t\tulPage.clickNewUser();\r\n\t\t\r\n\t\tCreateNewUserPage crUserPage=new CreateNewUserPage(driver);\r\n\t\tcrUserPage.enterUserDetails(\"Kathy\",\"pass\",\"[email protected]\");\r\n\t\tcrUserPage.clickCreateUser();\t\t\r\n\t\t\r\n\t\tadminPage.clickUsersTab();\r\n\t\tString actUserCreated=ulPage.verifyCreatedUser();\r\n\t\tAssert.assertEquals(actUserCreated,\"Kathy\");\r\n\t\t\r\n\t}", "public int getValidSpEmailUname(Validation v) {\r\n\t\tint a=0;\r\nString query=\"select * from sp_final where user_name='\"+v.getUsername() +\"' and email='\"+v.getEmail()+\"'\";\r\n\t\t\r\n\t\tRowMapper<Validation> rowMapper=new RowMapper<Validation>() {\r\n\r\n\t\t\tpublic Validation mapRow(ResultSet rs, int row) throws SQLException {\r\n\t\t\t\t Validation v=new Validation();\r\n\t\t\t\t v.setUsername(rs.getString(\"user_name\"));\r\n\t\t\t\t v.setEmail(rs.getString(\"email\"));\r\n\t\t\treturn v;\r\n\t\t\t}\r\n\t\t};\r\n\t\tList<Validation> list=jdbctemplate.query(query, rowMapper);\r\n\t\t a=list.size()>0?1:0; \r\n\t\treturn a;\r\n\t}", "@Override\n\tpublic void validateUserName(String name) throws UserException {\n\t\t\n\t}", "public abstract boolean checkUser(String username);", "private boolean validInput() throws SQLException {\n if (userNameField.getText().length() == 0) {\n displayMessage(messagePane, \"Name cannot be empty\", true);\n return false;\n }\n else if (userNameField.getText().length() == 1) {\n displayMessage(messagePane, \"Name cannot be empty\", true);\n return false;\n }\n else if (!isAllLetters(userNameField.getText())) {\n displayMessage(messagePane, \"Names must be all letters\", true);\n return false;\n }\n else if (!(userNameField.getText().contains(\" \")) || userNameField.getText().charAt(0) == ' ') {\n displayMessage(messagePane, \"Name must consist of two words\", true);\n return false;\n }\n else if (!(emailField.getText().contains(\"@\"))) {\n displayMessage(messagePane, \"Invalid email\", true);\n return false;\n }\n else if (DatabaseManager.isEmailTaken(user.getDatabaseConnection(), emailField.getText()) && !(emailField.getText().equals(user.getUser().getEmail()))){\n displayMessage(messagePane, \"Email is used before\", true);\n return false;\n }\n else {\n displayMessage(messagePane,\"Changes are saved\", false);\n return true;\n }\n }", "private boolean checkChangeUsernameValidity(String newUsername)\n {\n return (!newUsername.equals(\"\") && !newUsername.equals(controllerComponents.getAccount().getUsername()));\n }", "private void validateUser(user theUserOfThisAccount2) {\n\t\tboolean ok=false;\n\n\t\t\t\n\t\tif(passwordOfRegisteration.equals(passwordConfirm)&&!passwordOfRegisteration.equals(\"\")&&passwordOfRegisteration!=null){\n\t\t\tok=true;\n\t\t}\n\t\t\n\t\t\n\t\tif(ok){\n\t\t\t\n\t\t\t\ttheUserOfThisAccount2.setPassword(new Md5PasswordEncoder().encodePassword(passwordOfRegisteration,theUserOfThisAccount2.getUserName()));\n\t\t\t\tuserDataFacede.adduser(theUserOfThisAccount2);\n\t\t\t\tPrimeFaces.current().executeScript(\"new PNotify({\\r\\n\" + \n\t\t\t\t\t\t\"\t\t\ttitle: 'Success',\\r\\n\" + \n\t\t\t\t\t\t\"\t\t\ttext: 'Your data has been changed.',\\r\\n\" + \n\t\t\t\t\t\t\"\t\t\ttype: 'success'\\r\\n\" + \n\t\t\t\t\t\t\"\t\t});\");\n\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tpleaseCheck();\n\t\t\t\n\t\t}\n\t}", "public String valiationOfUsernameField()\n\t{\n\t\twaitForVisibility(validationUsername);\n\t\treturn validationUsername.getText();\n\t}", "public void verifyLogin(String s1)\n\t{\n\t\tUtilityClass.fn_Click(\"usermanagement_plusicon_bt\");\n\t\t\n\t\t//log.info(\"providing mobile number in username input field\");\n\t\t//UtilityClass.fn_Input(\"Loginpage_usernm_Input\", s1);\n\t\t//System.out.println(\"in verifylogin\");\n\t\t\n\t}", "private boolean validate() {\n\n EditText fnameET = findViewById(R.id.fnameET);\n EditText lnameET = findViewById(R.id.lnameET);\n EditText perNoET = findViewById(R.id.perNoET);\n EditText lecEmailET = findViewById(R.id.lecEmailET);\n EditText adminCodeET = findViewById(R.id.adminCodeET);\n EditText passwET = findViewById(R.id.passwET);\n EditText cpasswET = findViewById(R.id.cpasswET);\n\n String fname = fnameET.getText().toString().trim();\n String lname = lnameET.getText().toString().trim();\n String personNo = perNoET.getText().toString().trim();\n String lectEmail = lecEmailET.getText().toString().trim();\n String adminCode = adminCodeET.getText().toString().trim();\n String password = passwET.getText().toString().trim();\n String cpassword = cpasswET.getText().toString().trim();\n\n //boolean flag;\n\n if(fname.isEmpty()) {\n fnameET.setError(\"Field can't be empty!\");\n fnameET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(lname.isEmpty()) {\n lnameET.setError(\"Field can't be empty!\");\n lnameET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(personNo.isEmpty()) {\n perNoET.setError(\"Field can't be empty!\");\n perNoET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(lectEmail.isEmpty()) {\n lecEmailET.setError(\"Field can't be empty!\");\n lecEmailET.requestFocus();\n return false;\n } else if (!Patterns.EMAIL_ADDRESS.matcher(lectEmail).matches()) {\n lecEmailET.setError(\"check that your email is entered correctly!\");\n lecEmailET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(adminCode.isEmpty()) {\n adminCodeET.setError(\"Field can't be empty!\");\n adminCodeET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(password.isEmpty()) {\n passwET.setError(\"Field can't be empty!\");\n passwET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n if(cpassword.isEmpty()) {\n cpasswET.setError(\"Field can't be empty!\");\n cpasswET.requestFocus();\n return false;\n } else if (!cpassword.equals(password)) {\n cpasswET.setError(\"password doesn't match the above entered password!\");\n cpasswET.requestFocus();\n return false;\n } /*else {\n flag = false;\n }*/\n\n return true;\n }", "public void validate(Object obj, Errors err) {\n\t\tUserLogin userLogin=(UserLogin)obj;\r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(err, \"fName\", \"fName.emptyOrSpace\");\r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(err, \"lName\", \"lName.emptyOrSpace\");\r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(err, \"mailId\", \"mailId.emptyOrSpace\");\r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(err, \"pass\", \"password.emptyOrSpace\");\r\n\t\tValidationUtils.rejectIfEmptyOrWhitespace(err, \"mob\", \"mob.emptyOrSpace\");\r\n\t\t\r\n\t\t//Business rule related Validation \r\n\t\tif(userLogin.getfName()!=null && userLogin.getfName().trim().length()>0) {\r\n\t\t\tif(userLogin.getfName().trim().length()>20)\r\n\t\t\t\terr.rejectValue(\"fName\", \"fName.length.exceeds\");\r\n\t\t}\r\n\t\t\r\n\t\tif(userLogin.getlName()!=null && userLogin.getlName().trim().length()>0) {\r\n\t\t\tif(userLogin.getlName().trim().length()>10)\r\n\t\t\t\terr.rejectValue(\"lName\", \"lName.length.exceeds\");\r\n\t\t}\r\n\t\t\r\n\t\tif(userLogin.getMob()!=null && userLogin.getMob().trim().length()>0) {\r\n\t\t\tif(userLogin.getMob().trim().length()!=10)\r\n\t\t\t\terr.rejectValue(\"mob\", \"mob.length.exceeds\");\r\n\t\t}\r\n\t\t\r\n\t\tif(userLogin.getMailId()!=null && userLogin.getMailId().trim().length()>0) {\r\n\t\t\tif(userLogin.getMailId().trim().length()>=20 ) {\r\n\t\t\t\terr.rejectValue(\"mailId\", \"mailId.length.exceeds\");\r\n\t\t\t}else if(!userLogin.getMailId().contains(\"@\")) {\r\n\t\t\t\terr.rejectValue(\"mailId\", \"mailId.format.first.rule\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(userLogin.getPass()!=null && userLogin.getPass().trim().length()>0) {\r\n\t\t\tif(userLogin.getPass().trim().length()>=10 ) {\r\n\t\t\t\terr.rejectValue(\"pass\", \"pass.length.exceeds\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t//DB validations\r\n\t\tif(!registerService.validateUser(userLogin)) {\r\n\t\t\terr.rejectValue(\"mailId\", \"mailId.alreadyRegistered\");\r\n\t\t}\r\n\t\t\r\n\t}", "public void validateoLPNStatus(String strLPNStatus){ \t\t\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"oLPNsTab\"), \"oLPNsTab\");\n\t\tif(libManhattanCommonFunctions.verifyElementPresent(\"//span[@id='dataForm:dataLstTbl:_colhdr_id1']\", \"XPATH\")){\n\t\t\ttry{\n\t\t\t\tString actualLPNStatus = libManhattanCommonFunctions.getElementByProperty(\"//span[@id='dataForm:dataLstTbl:_colhdr_id1']\", \"XPATH\").getText();\n\n\t\t\t\tif(actualLPNStatus.trim().equals(strLPNStatus))\n\t\t\t\t{\n\t\t\t\t\treport.updateTestLog(\"oLPN Status verification\", \"Actual oLPn status : \"+actualLPNStatus+ \" is verified\", Status.PASS);\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\treport.updateTestLog(\"oLPN Status verification\", \"Expected oLPN status :\"+strLPNStatus+\" || Actual oLPN status : \"+actualLPNStatus, Status.FAIL);\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\treport.updateTestLog(\"Element\", \"Element Not Found\", Status.FAIL);\n\t\t\t}\n\t\t}else{\n\t\t\treport.updateTestLog(\"oLPN Status\", \"oLPN is not created\", Status.FAIL);\n\t\t}\n\n\t}", "private boolean isUserNameValid(String username) {\r\n if (username == null) {\r\n return false;\r\n }\r\n if (username.contains(\"@\")) {\r\n return Patterns.EMAIL_ADDRESS.matcher(username).matches();\r\n } else {\r\n return !username.trim().isEmpty();\r\n }\r\n }", "public boolean validateuser(){\n if(fname.getText().toString().isEmpty()){\n fname.setError(\"Enter your first name\");\n fname.requestFocus();\n return false;\n }\n if(lname.getText().toString().isEmpty()){\n lname.setError(\"Enter your last name\");\n lname.requestFocus();\n return false;\n }\n if(username.getText().toString().isEmpty()){\n username.setError(\"Enter your last name\");\n username.requestFocus();\n return false;\n }\n if(password.getText().toString().isEmpty()||password.getText().toString().length()<6){\n password.setError(\"Enter your password with digit more than 6\");\n password.requestFocus();\n return false;\n }\n return true;\n }", "@Test\n\t\tvoid givenLasrName_CheckForValidationForLName_ReturnTrue() {\n\t\t\tboolean result = ValidateUserDetails.validateLastName(\"More\");\n\t\t\tAssertions.assertTrue(result);\n\t\t}", "private boolean isInfoValidate(){\n if(mEmailAddress.getText() == null || mEmailAddress.getText().toString().equals(\"\")){\n errorText = getString(R.string.register_warning_input_email_address);\n return false;\n }\n\n if(!mEmailAddress.getText().toString().contains(\"@\")){\n errorText = getString(R.string.register_warning_valid_email_address);\n return false;\n }\n\n// if(mRegionSpinner.getSelectedItemPosition() == Constant.NON_SELECT){\n// errorText = getString(R.string.register_warning_select_region);\n// return false;\n// }\n\n// if( (mRegionSpinner.getSelectedItemPosition() == Constant.HONG_KONG)\n// &&\n// (mEmailAddress.getText().toString().length() != Constant.HONGKONG_PHONE_LENGTH) ){\n//\n// errorText = getString(R.string.register_warning_valid_phone_num);\n// return false;\n// }\n//\n// if( (mRegionSpinner.getSelectedItemPosition() == Constant.CHINA)\n// &&\n// (mEmailAddress.getText().toString().length() != Constant.CHINA_PHONE_LENGTH) ){\n//\n// errorText = getString(R.string.register_warning_valid_phone_num);\n// return false;\n// }\n\n if(mPassword.getText() == null || mPassword.getText().toString().equals(\"\")){\n errorText = getString(R.string.register_warning_input_password);\n return false;\n }\n\n if(mRetypePassword.getText() == null || mRetypePassword.getText().toString().equals(\"\")){\n errorText = getString(R.string.register_warning_retype_password);\n return false;\n }\n\n if(!mPassword.getText().toString().equals(mRetypePassword.getText().toString())){\n errorText = getString(R.string.register_warning_not_the_same);\n return false;\n }\n\n if(!Utility.judgeContainsStr( mPassword.getText().toString())){\n errorText = getString(R.string.register_warning_contains_character);\n return false;\n }\n\n// if(!mPolicyCheckBox.isChecked()){\n// errorText = getString(R.string.register_warning_check_agreement);\n// return false;\n// }\n\n return true;\n }", "private boolean checkUsername(String newUsername, Label label)\n {\n label.setText(\"\");\n\n if(newUsername.length() == 0){\n label.setText(\"Please choose a username \");\n return false;\n }\n for(Account account : getListOfAccounts()){\n if(newUsername.equals(account.getUsername())){\n label.setText(\"This field is already taken by another account. Please choose another username\");\n return false;\n }\n }\n return true;\n }", "private boolean isUserNameValid(String username) {\n if (username == null) {\n return false;\n }\n if (username.contains(\"@\")) {\n return Patterns.EMAIL_ADDRESS.matcher(username).matches();\n } else {\n return !username.trim().isEmpty();\n }\n }", "void checkUserName() {\n usernameChecked = false;\n signInUpController.checkUserName(userNameText.getText().toString(), new OnTaskListeners.Bool() {\n @Override\n public void onSuccess(Boolean result) {\n usernameChecked = true;\n if (result)\n uniqueUsername = false;\n else\n uniqueUsername = true;\n\n\n }\n });\n }", "private boolean validateData() {\n boolean validData = true;\n\n String email = mUserEmail.getText().toString().trim();\n String name = mUserName.getText().toString().trim();\n String password = mUserPassword.getText().toString();\n\n // If the Name text field is empty or Name is less then 3 characters,\n // give user a error message\n if (TextUtils.isEmpty(name) || name.length() < 3) {\n mUserNameWrapper.setError(getString(R.string.text_layout_invalid_name));\n validData = false;\n } else {\n mUserNameWrapper.setErrorEnabled(false);\n }\n\n // If the email text field is empty or email address is not per EMAIL_ADDRESS pattern,\n // give user a error message\n if (TextUtils.isEmpty(email) || !android.util.Patterns.EMAIL_ADDRESS.matcher(email).matches()) {\n mUserEmailWrapper.setError(getString(R.string.text_layout_invalid_email));\n validData = false;\n } else {\n mUserEmailWrapper.setErrorEnabled(false);\n }\n\n // If the password text field is emory or password is not between 5 and 8 digits,\n // give user a error message\n if (TextUtils.isEmpty(password) || password.length() < 5 || password.length() > 8) {\n mUserPasswordWrapper.setError(getString(R.string.text_layout_invalid_password));\n validData = false;\n } else {\n mUserEmailWrapper.setErrorEnabled(false);\n }\n return validData;\n }", "protected void validateEmail(){\n\n //Creating Boolean Value And checking More Accurate Email Validator Added\n\n Boolean email = Pattern.matches(\"^[A-Za-z]+([.+-]?[a-z A-z0-9]+)?@[a-zA-z0-9]{1,6}\\\\.[a-zA-Z]{2,6},?([.][a-zA-z+,]{2,6})?$\",getEmail());\n System.out.println(emailResult(email));\n }", "@Test\r\n\tpublic void testUserNameEmpty() {\r\n\t\tAccountTransferRequest accountTransferRequest = new AccountTransferRequest();\r\n\t\taccountTransferRequest.setUsername(\"\");\r\n\t\taccountTransferRequest.setPassword(VALID_PASSWORD);\r\n\t\taccountTransferRequest.setSenderAccount(VALID_SENDER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setReceiverAccount(VALID_RECEIVER_ACCOUNT_NUMBER);\r\n\t\taccountTransferRequest.setTransferAmount(400.0);\t\t\r\n\t\ttry {\r\n\t\t\ttransferValidationUnit.validate(accountTransferRequest);\r\n\t\t\tAssert.fail(\"Exception_Expected\");\r\n\t\t} catch (ValidationException exception) {\r\n\t\t\tAssert.assertNotNull(exception);\r\n\t\t\tAssert.assertEquals(\"UserName_Cannot_Be_Null_Or_Empty\", exception.getMessage());\r\n\r\n\t\t}\r\n\t}", "public String isValidAgentLogin(String userName, String password);", "public boolean Validate() {\n String[] testArr = {titleTxf.getText(), fNameTxf.getText(), sNameTxf.getText(),\n initialTxf.getText(), hNumTxf.getText(), cNumTxf.getText(), emailTxf.getText(), idNumTxf.getText(),\n (String) maritalCbx.getSelectedItem(), \n resTxf1.getText() + \"\" + resTxf2.getText(), zipResTxf.getText(),postTxf1.getText() + \"\" + postTxf2.getText(),\n zipPostTxf.getText() };\n\n // verify user has entered data into required fields\n String inputTest = \"\";\n\n for (int i = 0; i < testArr.length; i++) {\n if (testArr[i].equals(inputTest)) {\n\n JOptionPane.showMessageDialog(rootPane, \"please fill in all required fields\", \"ERROR\", ERROR_MESSAGE);\n \n return false;\n \n\n }\n \n \n }\n //verify Home number\n if(hNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Home number\", \"ERROR\", ERROR_MESSAGE);\n errHNum.setText(\"!\");\n \n return false;\n }\n else{\n errHNum.setText(\"\");\n }\n //verify CellNo\n if(cNumTxf.getText().length()!=10){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild Cellphone number\", \"ERROR\", ERROR_MESSAGE);\n errCNum.setText(\"!\");\n \n return false;\n \n }\n else{\n errCNum.setText(\"\");\n }\n //verify email\n String email =emailTxf.getText(); \n if(!email.contains(\"@\")|| !email.contains(\".\")){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild email address\", \"ERROR\", ERROR_MESSAGE);\n errEmail.setText(\"!\");\n return false;\n }\n else{\n errEmail.setText(\"\");\n }\n \n //verify ID No. (Local)\n String ID = idNumTxf.getText();\n if(ID.length()!=13){\n \n JOptionPane.showMessageDialog(rootPane, \"Invaild ID number\", \"ERROR\", ERROR_MESSAGE);\n errID.setText(\"!\");\n return false;\n }\n else{\n errID.setText(\"\");\n }\n \n if(zipResTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipRes.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipRes.setText(\"\");\n }\n if(zipPostTxf.getText().length()!=4){\n JOptionPane.showMessageDialog(rootPane, \"Invaild Zip Code\", \"ERROR\", ERROR_MESSAGE);\n errZipPost.setText(\"!\");\n return false;\n \n }\n else{\n \n errZipPost.setText(\"\");\n }\n \n \n return true;\n\n }", "@Test\n\tpublic void testUserValidationIfThere() {\n\t\tUserFunctions userCollections = new UserFunctions();\n\t\t\n\t\tassertNotEquals(-1, userCollections.validatePotentialUser(\"jonasanJosuta\", \"zaPasshon\"));\n\t}", "@Test\n public void testValidateUsername() {\n System.out.println(\"validateUsername\");\n School instance = new School();\n instance.setUsers(users);\n\n assertFalse(instance.validateUsername(\"admin\"));\n assertFalse(instance.validateUsername(\"admin2\"));\n assertFalse(instance.validateUsername(\"mod1\"));\n System.out.println(\"PASS with duplicate username\");\n\n assertTrue(instance.validateUsername(\"qwerty\"));\n System.out.println(\"PASS with unique username\");\n\n System.out.println(\"PASS ALL\");\n }", "protected void validate() throws Exception{\t\n\t\tsuper.validate();\n\t\tvalidateProperty(PROPERTY_KEY_USERNAME);\n\t}", "@Test(groups ={Slingshot,Regression})\n\tpublic void ValidateAdduserEmailidField() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify the Email address Field validations and its appropriate error message\"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMVTestDataspl\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ClickAddNewUserLink()\n\t\t.AddUserRadioButton()\n\t\t.StandardUserCreation()\n\t\t.validateEmailidField(userProfile);\t\t\t\t \t \t\t\t\t\t\t\n\t}", "@JavascriptInterface \n public void ValidSignin(String str,String psw)\n {\n \tString username = str;\n \tString password = psw;\n \t{\n \t\tif ( (username.equals(\"User\")) && (password.equals(\"User\"))){\n \t\tIntent i = new Intent(OasterBBActivity.this,InsuranceService.class);\n startActivity(i);\n \t}else{\n \t\tToast.makeText(getApplicationContext(), \"Username Salah\", Toast.LENGTH_LONG).show();\n \t\t\n \t}\n \t}\n }", "@Test\n\t\tvoid givenTwoSmalls_CheckForValidationForLName_RetrunFalse() {\n\t\t\tboolean result = ValidateUserDetails.validateLastName(\"more\");\n\t\t\tAssertions.assertFalse(result);\n\t\t}", "void onBoardUser(@Valid String x,HttpServletRequest request)throws Exception;", "private boolean getValidation() {\n strLoginMail = inputLoginMail.getText().toString().trim();\n strLoginPass = inputLoginPass.getText().toString().trim();\n\n if (strLoginMail.isEmpty()) { // Check Email Address\n inputLoginMail.setError(getString(dk.eatmore.demo.R.string.email_blank));\n inputLoginMail.requestFocus();\n return false;\n } else if (!isValidEmail(strLoginMail)) {\n inputLoginMail.setError(getString(dk.eatmore.demo.R.string.invalid_email));\n inputLoginMail.requestFocus();\n return false;\n } else if (strLoginPass.isEmpty()) { // Check Password\n inputLoginPass.setError(getString(dk.eatmore.demo.R.string.password_empty));\n inputLoginPass.requestFocus();\n return false;\n }\n\n return true;\n }", "@Test\n //@Disabled\n public void testValidateEmail() {\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n assertFalse(RegExprMain.validateEmail(\"[email protected]\"));\n assertFalse(RegExprMain.validateEmail(\"luna@gmail\"));\n assertFalse(RegExprMain.validateEmail(\"[email protected]\"));\n assertFalse(RegExprMain.validateEmail(\"lubo.xaviluna@gmai_l.com\"));\n assertTrue(RegExprMain.validateEmail(\"luna#[email protected]\"));\n assertTrue(RegExprMain.validateEmail(\"[email protected]\"));\n \n \n\n }", "public static boolean registerAndValidateUser(String xpath, List<Param> params) throws NoSuchFieldException, SecurityException, Exception {\n\t\tboolean flag = false;\n\t\ttry {\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(0).getValue()), params.get(18).getValue());if(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(1).getValue()), params.get(19).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(2).getValue()), params.get(20).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(3).getValue()), params.get(21).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(4).getValue()), params.get(22).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(5).getValue()), params.get(23).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(6).getValue()), params.get(24).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(7).getValue()), params.get(25).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.selectValueInDropDownByCss(getefareORElement(params.get(8).getValue()), params.get(26).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(9).getValue()), params.get(27).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.selectValueInDropDownByCss(getefareORElement(params.get(10).getValue()), params.get(28).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(11).getValue()), params.get(29).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(12).getValue()), params.get(30).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(13).getValue()), params.get(31).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.clickCheckBoxByCss(getefareORElement(params.get(14).getValue()), params.get(32).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.selectValueInDropDownByCss(getefareORElement(params.get(15).getValue()), params.get(33).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.enterValueInTextBoxBycsspath(getefareORElement(params.get(16).getValue()), params.get(34).getValue());\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tflag=SeleniumCoreFunctions.clickBycssSelector(getefareORElement(params.get(17).getValue()));\n\t\t\tif(flag==false)\n\t\t\t\treturn flag;\n\t\t\tThread.sleep(50000);\n\t\t\tString link = GmailUtility.getVerificationLinkFromGmail(params.get(35).getValue(), params.get(36).getValue());\n\t\t\tdriver.get(link);\n\n\t\t\tflag = true;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Exception was raised in registerAndValidateUser method and the exception is :\"+e);\n\t\t\tflag=false;\n\t\t}\n\t\treturn flag;\n\t}", "@DDDataProvider(datafile = \"/Users/chandaverma/git/14Dec/DollerDays_14Dec/testdata/DDtestdataTeam1.xlsx\", sheetName = \"MyProfile\", testcaseID = \"TC1\", runmode = \"Yes\")\n\t@Test(priority = 0 ,dataProvider = \"dd-dataprovider\", dataProviderClass = TestUtil.class)\n\n\t public void MyProfileLoginInfoEmailAddressValidation(Hashtable<String, String> datatable) throws InterruptedException, UnsupportedEncodingException, GeneralSecurityException\n\t {\n\t\t \n\t\t LoginPage loginPage = new LoginPage(driver);\n\t\t\tExtentTestManager.getTest().log(Status.PASS, \" Login with Valid credentials in application \");\n\t\t\tloginPage.login(datatable.get(\"UserName\"), Base64.decrypt(datatable.get(\"Password\")));\n\t\t\tThread.sleep(1000);\n\t\t\tThread.sleep(1000);\n\t\t\t\n\t\t\t\n\t\t\t MyProfilePage myprofile = new MyProfilePage(driver);\n\t\t\t \n\t\t\t myprofile.click_User_Dropdown_Toggle();\n\t\t\t ExtentTestManager.getTest().log(Status.PASS, \" Clicked on Sigin Toggle after logging in application .\");\n\t\t\t Thread.sleep(1000);\n\t\t\t \n\t\t\t\n\t\t\t myprofile.click_user_Dropdown_Toggle_Accounts();\n\t\t\t ExtentTestManager.getTest().log(Status.PASS, \" Clicked on Accounts link.\");\n\t\t\t Thread.sleep(3000);\n\t\t\t\n\t\t\t myprofile.getCookiePopup().click();\n\t\t\t ExtentTestManager.getTest().log(Status.PASS, \" Clicked Okay on CookiePopup\");\n\t\t\t Thread.sleep(1000);\n\t\t\t\t\n\t\t\t myprofile.click_MyProfileLink();\n\t\t\t ExtentTestManager.getTest().log(Status.PASS, \" Clicked on MyProfile Link. \");\n\t\t\t Thread.sleep(3000);\n\t\t\t \n\t\t\t js = (JavascriptExecutor) driver;\n\t\t\t\tString ActualUserName = myprofile.LogininfoEmail_Username.getText();\n\t\t\t\tjs.executeScript(\"window.scrollBy(0,0)\");\n\t\t\t\tThread.sleep(1000);\n\t\t\t\n\t\t\t\tString ExpectedUserName = datatable.get(\"UserName\");\n\t\t\t\ttry {\n\t\t\t\t\tAssert.assertEquals(ActualUserName, ExpectedUserName);\n\t\t\t\t\tExtentTestManager.getTest().log(Status.PASS,\n\t\t\t\t\t\t\t\"Test1 : The displayed email address is matching with the actual UserName/Emailaddress..As Expected\");\n\t\t\t\t } catch (AssertionError e)\n\t\t\t\t\n\t\t\t\t {\n\t\t\t\t\tExtentTestManager.getTest().log(Status.FAIL,\n\t\t\t\t\t\t\t\"Test 1 :The displayed email address is not matching with the actual Username/Emailaddress..Not as Expected\");\n\t\t\t\t }\n\t\t\t\tmyprofile.click_User_Dropdown_Toggle();\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tmyprofile.click_user_Dropdown_Toggle_Signout();\n\t\t\t\tExtentTestManager.getTest().log(Status.INFO, \"LoggedOut Succesfully \");\n\t }", "private boolean isInputValid() {\r\n \r\n String errorMessage = \"\";\r\n \r\n // Email regex provided by emailregex.com using the RFC5322 standard\r\n String emailPatternString = \"(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21-\\\\x5a\\\\x53-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])+)\\\\])\";\r\n \r\n // Phone number regex provided by Ravi Thapliyal on Stack Overflow:\r\n // http://stackoverflow.com/questions/16699007/regular-expression-to-match-standard-10-digit-phone-number\r\n String phoneNumString = \"^(\\\\+\\\\d{1,2}\\\\s)?\\\\(?\\\\d{3}\\\\)?[\\\\s.-]?\\\\d{3}[\\\\s.-]?\\\\d{4}$\";\r\n \r\n Pattern emailPattern = Pattern.compile(emailPatternString, Pattern.CASE_INSENSITIVE);\r\n Matcher emailMatcher;\r\n \r\n Pattern phoneNumPattern = Pattern.compile(phoneNumString);\r\n Matcher phoneNumMatcher;\r\n \r\n // Validation for no length or over database size limit\r\n if ((custFirstNameTextField.getText() == null || custFirstNameTextField.getText().length() == 0) || (custFirstNameTextField.getText().length() > 25)) {\r\n errorMessage += \"First name has to be between 1 and 25 characters.\\n\";\r\n }\r\n \r\n if ((custLastNameTextField.getText() == null || custLastNameTextField.getText().length() == 0) || (custLastNameTextField.getText().length() > 25)) {\r\n errorMessage += \"Last name has to be between 1 and 25 characters.\\n\";\r\n }\r\n \r\n if ((custAddressTextField.getText() == null || custAddressTextField.getText().length() == 0) || (custAddressTextField.getText().length() > 75)) {\r\n errorMessage += \"Address has to be between 1 and 75 characters.\\n\";\r\n }\r\n \r\n if ((custCityTextField.getText() == null || custCityTextField.getText().length() == 0) || (custCityTextField.getText().length() > 50)) {\r\n errorMessage += \"City has to be between 1 and 50 characters.\\n\";\r\n }\r\n \r\n if ((custProvinceTextField.getText() == null || custProvinceTextField.getText().length() == 0) || (custProvinceTextField.getText().length() > 2)) {\r\n errorMessage += \"Province has to be a two-letter abbreviation.\\n\";\r\n }\r\n \r\n if ((custPostalCodeTextField.getText() == null || custPostalCodeTextField.getText().length() == 0) || (custPostalCodeTextField.getText().length() > 7)) {\r\n errorMessage += \"Postal Code has to be between 1 and 7 characters.\\n\";\r\n }\r\n \r\n if ((custCountryTextField.getText() == null || custCountryTextField.getText().length() == 0) || (custCountryTextField.getText().length() > 25)) {\r\n errorMessage += \"Country has to be between 1 and 25 characters.\\n\";\r\n }\r\n \r\n if ((custHomePhoneTextField.getText() == null || custHomePhoneTextField.getText().length() == 0) || (custHomePhoneTextField.getText().length() > 20)) {\r\n errorMessage += \"Phone number has to be between 1 and 20 characters long.\\n\";\r\n } else {\r\n phoneNumMatcher = phoneNumPattern.matcher(custHomePhoneTextField.getText());\r\n if (!phoneNumMatcher.matches()) {\r\n errorMessage += \"Phone number not in the correct format: (111) 111-1111.\\n\";\r\n }\r\n }\r\n \r\n if ((custBusinessPhoneTextField.getText() == null || custBusinessPhoneTextField.getText().length() == 0) || (custBusinessPhoneTextField.getText().length() > 20)) {\r\n errorMessage += \"Phone number has to be between 1 and 20 characters long.\\n\";\r\n } else {\r\n phoneNumMatcher = phoneNumPattern.matcher(custBusinessPhoneTextField.getText());\r\n if (!phoneNumMatcher.matches()) {\r\n errorMessage += \"Phone number not in the correct format: (111) 111-1111.\\n\";\r\n }\r\n }\r\n \r\n if ((custEmailTextField.getText() == null || custEmailTextField.getText().length() == 0) || (custEmailTextField.getText().length() > 50)) {\r\n errorMessage += \"Email has to be between 1 and 50 characters.\\n\";\r\n } else {\r\n emailMatcher = emailPattern.matcher(custEmailTextField.getText());\r\n if (!emailMatcher.matches()) {\r\n errorMessage += \"Email format is not correct. Should be in the format [email protected].\\n\"; \r\n } \r\n }\r\n \r\n if (errorMessage.length() > 0) {\r\n Alert alert = new Alert(AlertType.ERROR, errorMessage, ButtonType.OK);\r\n alert.setTitle(\"Input Error\");\r\n alert.setHeaderText(\"Please correct invalid fields\");\r\n alert.showAndWait();\r\n \r\n return false;\r\n }\r\n \r\n return true;\r\n }", "public Map<Boolean, Set<String>> checkUsername(String username) throws UserNameException;", "public void validateLogin(String inUName, String inPassword) {\r\n\t\tResultSet loginRs = null;\r\n\t\t/**\r\n\t\t*\tSince connecting to database (DbConnection()) and retrieving data (fetchSelectAllUsers())\r\n\t\t* throw SQLException and throwing an exception from multiple levels again and again is not\r\n\t\t*\ta good way, so its is needed to catch the exception here.\r\n\t\t*/\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection to the database\r\n\t\t\t*/\r\n\t\t\tDbConnection validateConn = new DbConnection();\r\n\t\t\t/**\r\n\t\t\t*\tRetrieve all data from users table and save it in ResultSet loginRs\r\n\t\t\t*/\r\n\t\t\tloginRs = validateConn.fetchSelectAllUsers();\r\n\r\n\t\t\twhile (loginRs.next()) {\r\n\t\t\t\tif (inUName.equals(loginRs.getString(1)) && inPassword.equals(loginRs.getString(2))) {\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t*\tIf we found a matching record, toggle boolean found to true and load all the data into\r\n\t\t\t\t\t*\tthe object which has called the method.\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tuName = loginRs.getString(1);\r\n\t\t\t\t\tpassword = loginRs.getString(2);\r\n\t\t\t\t\tfullName = loginRs.getString(3);\r\n\t\t\t\t\tphone = loginRs.getString(4);\r\n\t\t\t\t\temail = loginRs.getString(5);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"**************Error Connecting to the Database**************\");\r\n\t\t\tSqlExcep.printStackTrace();\r\n\t\t} catch (ClassNotFoundException cnfExecp) {\r\n\t\t\tcnfExecp.printStackTrace();\r\n\t\t} finally {\r\n\t\t\t/*try {\r\n\t\t\t\t//DbConnection.closeDbConnection();\r\n\t\t\t\tif (loginRs != null) {\r\n\t\t\t\t\tloginRs.close();\r\n\t\t\t\t}\r\n\t\t\t} catch(SQLException SqlExcep) {\r\n\t\t\t\tSqlExcep.printStackTrace();\r\n\t\t\t}*/\r\n\t\t}\r\n\t}", "public void validateEditedUserValues(String mName, String lName, String mDOB, String mEmail)\n\t{\n\t\tString actlName = lastName.getText().toString();\n\t\tString actDOB = startDate.getText().toString();\n\t\tString actEmail = email.getText().toString();\n\t\t//System.out.println(actfName.equals(mName));\n\t\tSystem.out.println(actlName.equals(lName));\n\t\tSystem.out.println(actDOB.equals(mDOB));\n\t\tSystem.out.println(actEmail.equals(mEmail));\n\t\t//Assert.assertEquals(actfName, mName);\n\t\t//Assert.assertEquals(actlName, lName);\n\t\t//Assert.assertEquals(actDOB, mDOB);\n\t\t//Assert.assertEquals(actEmail, mEmail);\n\t\tbackBtn.click();\n\t\t\n\t}", "public boolean userNameExist(String username);", "public static boolean availabilityCheck(String userName,String userEmail)\n\t{\n\t\ttry\n\t\t{\n\t\t\tString queryToExecute = \"select username , email from users \"\n\t\t\t\t\t+ \" where username=\\\"\"+userName+\"\\\" ;\";//need more advanced verifying system , gotta complete this stuff as soon as I'll come back\n\t\t\t\n\t\t\tquery = statement.executeQuery(queryToExecute);\n\t\t\t\n\t\t\tString userNameToCheck =\"\";\n\t\t\tString userEmailToCheck =\"\";\n\t\t\t\n\t\t\twhile(query.next())\n\t\t\t{\n\t\t\t\t\n\t\t\t\tuserNameToCheck = query.getString(\"username\");\n\t\t\t\tuserEmailToCheck = query.getString(\"email\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(\"DB side :\"+userNameToCheck);\n\t\t\t\n\t\t\tString queryToExecute2 = \"select email from users where email=\\\"\"+userEmail+\"\\\" ;\";\n\t\t\t\n\t\t\tquery = statement.executeQuery(queryToExecute2);\n\t\t\t\n\t\t\tString emailVerifying =\"\";\n\t\t\t\n\t\t\twhile(query.next())\n\t\t\t{\n\t\t\t\temailVerifying = query.getString(\"email\");\n\t\t\t}\n\t\t\t\n\t\t\tif(userNameToCheck.trim().length() == 0 || userEmailToCheck.trim().length() ==0)\n\t\t\t{\n\t\t\t\tif(emailVerifying.trim().length() == 0)\n\t\t\t\t{\n\t\t\t\t return true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t return\tfalse;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch(SQLException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public void setRegistrationUsername(String Username){\r\n\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\r\n\r\n\t\tDate date = new Date();\r\n\r\n\t\tString ldDate=(String) dateFormat.format(date);\r\n\r\n\t\tString USR = getValue(Username);\r\n\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+USR);\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Registration Username is entered\");\r\n\t\ttry{\r\n\r\n\t\t\twaitforElementVisible(locator_split(\"txtRegistrationUsername\"));\r\n\t\t\tsendKeys(locator_split(\"txtRegistrationUsername\"), USR+ldDate+\"@Quill.com\"); \r\n\t\t\tSystem.out.println(\"Username is entered\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:-User name is entered\");\r\n\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Confirm password is not entered\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtRegistrationUsername\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}", "private boolean isEmailValid(String email) {\n if (email.length() == 8){\n return true;\n }\n\t//user names first two characters must be letters\n Boolean condition1 = false;\n Boolean condition2 = false;\n\n int ascii = (int) email.charAt(0);\n if ((ascii >= 65 && ascii <= 90) || ascii >= 97 && ascii <= 122){\n condition1 = true;\n }\n ascii = (int) email.charAt(1);\n if ((ascii >= 65 && ascii <= 90) || ascii >= 97 && ascii <= 122){\n condition2 = true;\n }\n if (condition1 == true && condition2 == true){\n return true;\n }\n\n\t//user names last six characters must be numbers\n for (int i = email.length()-6; i < email.length(); i++){\n ascii = (int) email.charAt(i);\n if (!(ascii >= 48 && ascii <= 57)){\n return false;\n }\n }\n\n return true;\n }" ]
[ "0.6484331", "0.6420249", "0.63629335", "0.62378347", "0.6218098", "0.62177783", "0.6209015", "0.6198244", "0.6176502", "0.6143522", "0.6141928", "0.6124973", "0.61107904", "0.60692215", "0.60607123", "0.60438895", "0.6043035", "0.6042648", "0.6029545", "0.60198545", "0.59976786", "0.5968257", "0.5925662", "0.59129685", "0.5906501", "0.5904489", "0.59029174", "0.588765", "0.58827126", "0.5880024", "0.58580697", "0.5849812", "0.58389163", "0.5837755", "0.5825292", "0.5819121", "0.57976216", "0.5788907", "0.5783688", "0.57809526", "0.5777543", "0.57697594", "0.57645464", "0.5755663", "0.57537806", "0.57472163", "0.5735473", "0.5732691", "0.57315564", "0.57240826", "0.5710733", "0.57099044", "0.5705084", "0.57007337", "0.5699934", "0.5688933", "0.5686388", "0.5681321", "0.56805", "0.56757116", "0.5673139", "0.5671874", "0.5666011", "0.5662491", "0.56598", "0.5659666", "0.56452566", "0.5644895", "0.56436163", "0.5635336", "0.56288546", "0.5622576", "0.5617954", "0.56166303", "0.5615145", "0.561328", "0.5611317", "0.560979", "0.5608264", "0.56064135", "0.5603228", "0.55940706", "0.55802315", "0.557422", "0.55725396", "0.5569423", "0.5563232", "0.5550632", "0.55465484", "0.5544326", "0.5544188", "0.55361384", "0.55274284", "0.55229187", "0.5518293", "0.5513136", "0.5512023", "0.5509467", "0.5508022", "0.5505119" ]
0.72864944
0
Gets the user id.
public int getUserId() { return userId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "long getUserId();", "long getUserId();", "Long getUserId();", "String getUserId();", "String getUserId();", "public long getUserId();", "public long getUserId();", "public long getUserId();", "public long getUserId();", "public String getUserId() {\n if (this.isTokenValide()) {\n JWT jwt = new JWT(getToken());\n Claim claim = jwt.getClaim(\"user_id\");\n return claim.asString();\n } else {\n return \"\";\n }\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public Long getUserID() {\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n return getByUsername(authentication.getName()).getId();\n }", "public Long getUserId() {\n return this.user.getId();\n }", "@Override\n\tpublic long getUserId() {\n\t\treturn _userSync.getUserId();\n\t}", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "public int getUserID() {\n return userID_;\n }", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "public Integer getIdUser() {\r\n\t\treturn idUser;\r\n\t}", "public Integer getUser_id() {\n\t\treturn user_id;\n\t}", "public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}", "public Integer getUserid() {\n\t\treturn this.userid;\n\t}", "public int getUserId() {\n return instance.getUserId();\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "public int getUserID() {\n return userID;\n }", "protected long getUserID() {\n return userID;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public String getUserID(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_USER_ID, null);\n }", "public java.lang.String getUserid() {\n return userid;\n }", "public java.lang.String getUserid() {\n return userid;\n }", "@Override\n\tpublic Long getUserId() {\n\t\treturn user.getKey().getId();\n\t}", "@Override\n\tpublic long getUserId();", "@Override\n\tpublic long getUserId();", "public String getUserId() {\r\n\t\treturn this.userid.getText();\r\n\t}", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "int getUserID();", "public Integer getUserID() {\n return userID;\n }", "public java.lang.String getUserid() {\n return userid;\n }" ]
[ "0.8233876", "0.8096648", "0.8096648", "0.8096648", "0.808114", "0.808114", "0.8017144", "0.8015706", "0.8015706", "0.7924564", "0.7924564", "0.7924564", "0.7924564", "0.7905659", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0.7903459", "0.79030097", "0.79030097", "0.7887843", "0.787771", "0.7870619", "0.7865378", "0.7865378", "0.78643715", "0.78643715", "0.78643715", "0.78643715", "0.78643715", "0.78643715", "0.78643715", "0.78643715", "0.78643715", "0.78643715", "0.78643715", "0.78643715", "0.78643715", "0.78643715", "0.78643715", "0.786325", "0.786325", "0.786325", "0.78378713", "0.783464", "0.78188026", "0.7796435", "0.779096", "0.7778446", "0.7778446", "0.7778446", "0.77782995", "0.7777538", "0.7777538", "0.7777538", "0.7777538", "0.7777538", "0.7777538", "0.7777538", "0.7777538", "0.7777538", "0.7777538", "0.7777538", "0.7777538", "0.7777144", "0.77716136", "0.77712935", "0.7770225", "0.7768776", "0.7768776", "0.7768141", "0.7759576", "0.7759576", "0.7759576", "0.7759576", "0.7759576", "0.7759576", "0.7759576", "0.7759576", "0.7759576", "0.7759576", "0.7759576", "0.7759576", "0.7759576", "0.7759576", "0.7759576", "0.7759576", "0.7759576", "0.77569944", "0.7753921" ]
0.0
-1
Sets the user id.
public void setUserId(int userId) { this.userId = userId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdUser(int value) {\n this.idUser = value;\n }", "public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}", "public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}", "public void setId_user(int id_user) {\n this.id_user = id_user;\n }", "public void setId_user(int id_user) {\r\n this.id_user = id_user;\r\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "public void setIduser(int aIduser) {\n iduser = aIduser;\n }", "private void setUserId(int value) {\n \n userId_ = value;\n }", "@Override\n\tvoid setId(final UserId userId);", "private void setUserId(long value) {\n \n userId_ = value;\n }", "public void setUserid(Integer userid) {\r\n\t\tthis.userid = userid;\r\n\t}", "public void setUserId(int value) {\n this.userId = value;\n }", "public void setUserid(Long userid) {\r\n this.userid = userid;\r\n }", "void setUser(User user, int id) {\n this.user = user;\n this.id = id;\n }", "private void setUserId(long value) {\n\n userId_ = value;\n }", "public void setUserid(java.lang.String userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);", "@Override\n\tpublic void setUserId(long userId) {\n\t\t_userSync.setUserId(userId);\n\t}", "@Override\n\tpublic void setUserId(long userId);", "@Override\n\tpublic void setUserId(long userId);", "void setUserId(int newId) {\r\n\t\t\tuserId = newId;\r\n\t\t}", "void setUserId(Long userId);", "public void setUserId(long value) {\r\n this.userId = value;\r\n }", "public void setUserId(long value) {\n this.userId = value;\n }", "public void setUserId(String value) {\r\n setAttributeInternal(USERID, value);\r\n }", "public void setUserId(String id) {\n\t\t_userLoginId = id;\n\t}", "public void setUserID(int value) {\n this.userID = value;\n }", "@Override\n\tpublic void setUserId(long userId) {\n\t\t_userTracker.setUserId(userId);\n\t}", "public synchronized static void setUserId(String userId){\n setUserId(context,userId);\n }", "public de.hpi.msd.salsa.serde.avro.Edge.Builder setUserId(long value) {\n validate(fields()[0], value);\n this.userId = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "@Override\n\tpublic void setUserId(long userId) {\n\t\tmodel.setUserId(userId);\n\t}", "@Override\n\tpublic void setUserId(long userId) {\n\t\tmodel.setUserId(userId);\n\t}", "@Override\n\tpublic void setUserId(long userId) {\n\t\tmodel.setUserId(userId);\n\t}", "public Builder setUserId(long value) {\n \n userId_ = value;\n onChanged();\n return this;\n }", "@Override\n public void setUserId(long userId) {\n _partido.setUserId(userId);\n }", "@Override\n\tpublic void setUserId(long userId) {\n\t\t_changesetEntry.setUserId(userId);\n\t}", "private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }", "public org.mddarr.rides.event.dto.AvroRide.Builder setUserid(java.lang.String value) {\n validate(fields()[1], value);\n this.userid = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "@Override\n\tpublic void setUserId(long userId) {\n\t\t_esfTournament.setUserId(userId);\n\t}", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000004;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public Builder setUserID(int value) {\n bitField0_ |= 0x00000001;\n userID_ = value;\n onChanged();\n return this;\n }", "public void setUserId(int userId) {\n this.userId = userId;\n }", "public void setUserId(int userId) {\n this.userId = userId;\n }", "public void setUserId(int userId) {\n this.userId = userId;\n }", "public void setUserid(String userid) {\n this.userid = userid == null ? null : userid.trim();\n }", "public void setUserid(String userid) {\n this.userid = userid == null ? null : userid.trim();\n }", "@Override\n\tpublic void setUserId(String userId) {\n\t\tsuper.setUserId(userId);\n\t}", "@Override\n\tpublic void setUserId(long userId) {\n\t\t_scienceApp.setUserId(userId);\n\t}", "public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }", "public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }", "@Override\n public void setId(UserDetailsPk id) {\n this.id = id;\n }", "public void setUserId(int userId) {\n this.mUserId = userId;\n }", "public void setUserId(int userId)\r\n\t{\r\n\t\tthis.userId = userId;\r\n\t}", "public static void setUserId(int zUserId) {\n userId = zUserId;\n }", "@Override\n\tpublic void setUserId(long userId) {\n\t\t_employee.setUserId(userId);\n\t}", "public void setUserId(){\n AdGyde.setClientUserId(\"ADG1045984\");\n Toast.makeText(this, \"UserId = ADG1045984\", Toast.LENGTH_SHORT).show();\n }", "public void setId(User user) {\n this.id = new GoogleInfoKey(user);\n }", "@Override\n public void setUserId(long userId) {\n _usersCatastropheOrgs.setUserId(userId);\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }" ]
[ "0.8424531", "0.8338321", "0.83239496", "0.8144418", "0.81207603", "0.8083222", "0.7980484", "0.7801382", "0.7704092", "0.7645542", "0.76327235", "0.7625344", "0.7555822", "0.75469667", "0.7541217", "0.7525742", "0.75121963", "0.75121963", "0.75121963", "0.75121963", "0.75121963", "0.75121963", "0.75121963", "0.75121963", "0.75121963", "0.75121963", "0.75121963", "0.75121963", "0.7501926", "0.7501926", "0.7501926", "0.7501926", "0.7490734", "0.74551684", "0.74551684", "0.7419362", "0.73955816", "0.73947275", "0.73807573", "0.72851545", "0.7283587", "0.7268561", "0.7262591", "0.7186145", "0.71838814", "0.71499765", "0.71499765", "0.71499765", "0.712127", "0.7103352", "0.7101177", "0.71005285", "0.7099431", "0.7086366", "0.7085826", "0.7085826", "0.7085826", "0.7085826", "0.705764", "0.705764", "0.705764", "0.705764", "0.705764", "0.705764", "0.70566463", "0.70566463", "0.70566463", "0.70566463", "0.70566463", "0.70566463", "0.70566463", "0.70392513", "0.70392513", "0.70392513", "0.7033083", "0.7033083", "0.70156884", "0.70135736", "0.7004735", "0.7004735", "0.69975555", "0.6962234", "0.6962093", "0.69593537", "0.6947284", "0.694708", "0.69459", "0.69426084", "0.69177204", "0.69177204", "0.69177204", "0.69177204", "0.69177204", "0.69177204", "0.69177204", "0.69177204", "0.69177204", "0.69177204", "0.69177204", "0.69177204", "0.69177204" ]
0.0
-1
Gets the job id.
public int getJobId() { return jobId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JobID getJobID() {\n \n \t\treturn this.environment.getJobID();\n \t}", "public Long getJobID() {\n return jobID;\n }", "@Override\n\tpublic long getJobId() {\n\t\treturn model.getJobId();\n\t}", "public String getJobID() {\n\t\t\treturn JobID;\n\t\t}", "public java.lang.String getJobId() {\n java.lang.Object ref = jobId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n jobId_ = s;\n }\n return s;\n }\n }", "public java.lang.String getJobId() {\n java.lang.Object ref = jobId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n jobId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@DISPID(1)\r\n\t// = 0x1. The runtime will prefer the VTID if present\r\n\t@VTID(7)\r\n\tint jobID();", "long getJobIDTarget();", "public JobId job() { return Objects.requireNonNull(job, \"production revisions have no associated job\"); }", "java.lang.String getJobId();", "public String getJobId();", "public String getJobId() {\n\t\treturn this.jobId;\n\t}", "private synchronized int generateJobID() {\n\t\t/* generate JobID */\n\t\tint jobID = lastJobID;\n\t\tlastJobID += 1;\n\t\treturn jobID;\n\t}", "public String getJobId() {\n return this.jobId;\n }", "public String getJobId() {\n return this.jobId;\n }", "public String getJobId() {\n return this.jobId;\n }", "public String getJobId() {\n return jobId;\n }", "public int getJobId() ;", "protected abstract String getJobSubmitId();", "public BigDecimal getJOB_ID() {\r\n return JOB_ID;\r\n }", "public int getJobNum()\n\t{\n\t\treturn jobNum;\n\t}", "public long getJobIDTarget() {\n return jobIDTarget_;\n }", "long getJobIDSource();", "public long getJobIDTarget() {\n return jobIDTarget_;\n }", "public String getJob() {\r\n\t\t\treturn job;\r\n\t\t}", "public String getJob() {\n return job;\n }", "java.lang.String getWorkerId();", "public String getJobReqID() {\n\t\treturn jobReqID;\n\t}", "public java.lang.String getJobNumber() {\r\n return jobNumber;\r\n }", "com.google.protobuf.ByteString\n getJobIdBytes();", "@Override\n public String getTypeID() {\n return job_id;\n }", "public long getJobIDSource() {\n return jobIDSource_;\n }", "public long getJobIDSource() {\n return jobIDSource_;\n }", "public com.google.protobuf.ByteString\n getJobIdBytes() {\n java.lang.Object ref = jobId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n jobId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public byte[] getNextJobID() {\n // Get next job id from GCS.\n synchronized (GlobalStateAccessor.class) {\n validateGlobalStateAccessorPointer();\n return this.nativeGetNextJobID(globalStateAccessorNativePointer);\n }\n }", "public static JobID generate() {\n return new JobID();\n }", "public com.google.protobuf.ByteString\n getJobIdBytes() {\n java.lang.Object ref = jobId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n jobId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String jobRunResourceId() {\n return this.jobRunResourceId;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The identifier of the job\")\n\n public String getJob() {\n return job;\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-06 12:50:58.282 -0400\", hash_original_method = \"2053F7A68C82ABE32C2AF1BAEC4B5064\", hash_generated_method = \"ADA06475869C2F7BC91A27631CA3BF7E\")\n \npublic PrintJobId getId() {\n return mCachedInfo.getId();\n }", "@Digits(integer=9,fraction=0)\n\t@Override\n\tpublic String getJob() {\n\t\treturn super.getJob();\n\t}", "public String getJobName() {\n return this.mJob;\n }", "public int getHC_JobDataChange_ID();", "@Override\n\tpublic String getJobName() {\n\t\treturn model.getJobName();\n\t}", "public String getJobName() {\n return this.jobName;\n }", "public String getJobName() {\n return jobName;\n }", "public String getJobName() {\n return jobName;\n }", "public Job getJob();", "public int getHC_EmployeeJob_ID();", "public String getJobName() {\n return this.JobName;\n }", "public String getJobURI() {\n\t\treturn jobURI;\n\t}", "@Override\n public AsyncJob getJob() {\n final AsyncJob job = s_jobMgr.getAsyncJob(_job.getId());\n return job;\n }", "com.google.protobuf.ByteString getWorkerIdBytes();", "@DISPID(5)\r\n\t// = 0x5. The runtime will prefer the VTID if present\r\n\t@VTID(11)\r\n\tint lastInstanceJobID();", "@DISPID(39)\r\n\t// = 0x27. The runtime will prefer the VTID if present\r\n\t@VTID(38)\r\n\tint lastInstanceJobID();", "public long getId() {\n\t\treturn Long.parseLong(_id);\n\t}", "public long threadId();", "private synchronized int generateExecutableID(int jobID) {\n\t\treturn generateExecutableID(jobID, 0);\n\t}", "public static Long extractJobID(CDXEntry entry) {\n\t\tif(entry == null) {\n\t\t\treturn null;\n\t\t}\n\t\tString filename = entry.getFilename();\n\t\tif(filename == null || filename.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tif(!filename.contains(\"-\")) {\n\t\t\tlogger.warn(\"CDXEntry with odd filename: \" + filename);\n\t\t\treturn null;\n\t\t}\n\t\treturn Long.parseLong(filename.split(\"[-]\")[0]);\n\t}", "public String getJobInfo() {\n return jobInfo;\n }", "protected synchronized int generateSubJobID(int jobID) throws GrpcException {\n\t\tInteger intSubJobID = (Integer)(mapNConnectBack.get(new Integer(jobID)));\n\t\tif (intSubJobID == null) {\n\t\t\tthrow new NgInitializeGrpcHandleException (\"specified Ninf-G Executable does not exist.\");\n\t\t}\n\t\tint subJobID = intSubJobID.intValue();\n\t\tmapNConnectBack.put(new Integer(jobID), new Integer(subJobID + 1));\n\n\t\tInteger intNJobs = (Integer)(mapNJobs.get(new Integer(jobID)));\n\t\tint nJobs = intNJobs.intValue();\n\t\tif (subJobID >= nJobs) {\n\t\t\tthrow new NgInitializeGrpcHandleException (\"invalid subjob ID request.\");\n\t\t}\n\t\treturn subJobID;\n\t}", "public Long getId() {\n return pid;\n }", "private static String createNewJobid(V2JobDefinition jobDefinition, NamedJobs namedJobs) throws InvalidNamedJobException {\n final NamedJobs.JobIdForSubmit jobIdForSubmit = namedJobs.getJobIdForSubmit(jobDefinition.getName(), jobDefinition);\n return jobIdForSubmit.getJobId();\n }", "public long getId() {\n\t\treturn getTo(true).getId();\n\t}", "public String getId() {\n if (id == null)\n return \"\"; //$NON-NLS-1$\n return id;\n }", "public int getJobType() {\n return jobType;\n }", "public Long getId() {\n return this.id.get();\n }", "@Override\n\tpublic int[] getJob() throws RemoteException {\n\t\treturn (Server.jobs.size() > 0)? Server.jobs.remove(0) : null;\n\t}", "public static String getIDFromW3CEndPointReference(\n W3CEndpointReference endpointReference) {\n if (endpointReference == null) {\n return null;\n }\n\n int j0 = endpointReference.toString().indexOf(\"<job \") + 5;\n j0 = endpointReference.toString().indexOf(\">\", j0) + 1;\n\n int j1 = endpointReference.toString().indexOf(\"</job>\");\n return endpointReference.toString().substring(j0, j1);\n }", "public long getId() {\n\t\t\treturn id;\n\t\t}", "public String getJobNoStr(){\n \n // return zero\n if (this.getJobNumber()==0){\n return \"00000000\";\n }\n // for job numbers less than 6 digits pad\n else if (this.getJobNumber() < 100000){\n return \"000\" + Integer.toString(this.getJobNumber()); \n }\n // assume 7 digit job number\n else {\n return \"00\" + Integer.toString(this.getJobNumber()); \n }\n\n }", "public JobVertexID getJobVertexID() {\n\t\treturn jobVertexID;\n\t}", "public java.lang.Long getId();", "@Override\r\n\tpublic T getJob() {\n\t\treturn super.getJob();\r\n\t}", "public final long getId() {\r\n return id;\r\n }", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId() {\n\t\treturn id;\n\t}", "public long getId()\n\t{\n\t\treturn id;\n\t}", "@ApiModelProperty(required = true, value = \"JobId of associated job\")\n public String getJobId() {\n return jobId;\n }", "public long getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\r\n\t\treturn id;\r\n\t}" ]
[ "0.828947", "0.7947347", "0.78448504", "0.7814408", "0.7638478", "0.76348317", "0.7526758", "0.74556756", "0.7426238", "0.7382669", "0.7348353", "0.72542775", "0.7207674", "0.7165531", "0.7165531", "0.7165531", "0.7165007", "0.7140329", "0.7119057", "0.7117943", "0.71098185", "0.71083385", "0.7099871", "0.7097601", "0.7063208", "0.7027985", "0.6915843", "0.68841004", "0.6856596", "0.6845239", "0.6767473", "0.66834676", "0.6681598", "0.6668751", "0.6651558", "0.6622033", "0.66154146", "0.65800506", "0.6577671", "0.6573442", "0.6511449", "0.6477209", "0.6444378", "0.62900245", "0.6279188", "0.6278218", "0.6278218", "0.62644047", "0.6256522", "0.6230648", "0.6217123", "0.6198728", "0.61705464", "0.61543214", "0.6151058", "0.6130927", "0.6107333", "0.61027503", "0.6097645", "0.6092587", "0.6049385", "0.60411924", "0.6040482", "0.6035719", "0.6034199", "0.60146403", "0.60099727", "0.59864384", "0.598531", "0.5984926", "0.5981678", "0.5975719", "0.5971327", "0.5969367", "0.5964985", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5958429", "0.5950597", "0.5947405", "0.5944397", "0.5944397" ]
0.7351506
10
Sets the job id.
public void setJobId(int jobId) { this.jobId = jobId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JobBuilder id(int id) {\r\n job.setId(id);\r\n return this;\r\n }", "public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setId(java.lang.String value) {\n validate(fields()[0], value);\n this.id = value;\n fieldSetFlags()[0] = true;\n return this; \n }", "public void setJobId( int jobId ) ;", "public void setJob(Job jobNum){\n job = jobNum;\n }", "public Job(int id) {\n this.id = id;\n }", "public Builder setJobId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n jobId_ = value;\n onChanged();\n return this;\n }", "public void setId(int id) {\r\n this.id = id;\r\n job = acceptFreelancerBean.getJob(id); \r\n if (job!= null){\r\n fid=job.getFid();\r\n }\r\n }", "public JobLog setId(long id) {\n this.id = id;\n return this;\n }", "@Override\n\tpublic void setJobId(long jobId) {\n\t\tmodel.setJobId(jobId);\n\t}", "public void setId(Long pid) {\n this.pid = pid;\n }", "public void setId(long id){\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "protected void setId(long id) {\n if (this.id == -1)\n this.id = id;\n }", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);", "public void setJobID(int jobId) {\n\t\tthis.jobsId.add(jobId);\n\t}", "public void setId(long id) {\r\n this.id = id;\r\n }", "protected void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}", "public Builder setJobIDTarget(long value) {\n bitField0_ |= 0x00000010;\n jobIDTarget_ = value;\n onChanged();\n return this;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public void setId(long id) {\n this.id = id;\n }", "public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setServiceId(long value) {\n validate(fields()[2], value);\n this.serviceId = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(final long id) {\n this.id = id;\n }", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(long id);", "public void setId(long id);", "public void setId(long id);", "public void setId(long id);", "public void setId(long id) {\n\tthis.id = id;\n }", "public void setId(long _id)\r\n {\r\n this._id = _id;\r\n this.hashCode = Integer.MIN_VALUE;\r\n }", "@Override\n\tpublic void setJob(String job) {\n\t\tsuper.setJob(job);\n\t}", "@Override\n public void setId(final long id) {\n super.setId(id);\n }", "@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}", "@Override\n\tpublic void setId(long id) {\n\t\tthis.id = id;\n\t}", "public void setId(int id) {\n this.id = String.valueOf(this.hashCode());\n }", "public void setId(Long id) {\n this.id.set(id);\n }", "public void setID(long id);", "void setId(Long id);", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public void setID(long value) {\n this.id = value;\n }", "public void setId(Long id){\n\t\tthis.id = id;\n\t}", "public void setId(Long id){\n\t\tthis.id = id;\n\t}", "public void setId(Long id){\n\t\tthis.id = id;\n\t}", "public void setId(java.lang.Long id) {\n this.id = id;\n }", "public void setId (Long id) {\r\n\t\tthis.id = id;\r\n\t\tthis.hashCode = Integer.MIN_VALUE;\r\n\t}", "public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Long value) {\r\n this.id = value;\r\n }", "public void setId(java.lang.Long newId);", "@Override\r\n\tpublic void setId(final K id) {\n\t\tsuper.setId(id);\r\n\t}", "public void setId(Long id) {\n this.id = id;\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id) {\r\n this.id = id;\r\n }", "public void setId(Long id)\r\n {\r\n this.id = id;\r\n }", "public void setId(Long value) {\n this.id = value;\n }", "public final void setId(long id) {\n mId = id;\n }", "public void setJob(String job) {\n this.job = job;\n }" ]
[ "0.7404343", "0.7103717", "0.69893175", "0.69298744", "0.6861032", "0.65832126", "0.6563532", "0.65538067", "0.65256226", "0.6461063", "0.6455667", "0.6453711", "0.6453711", "0.64493966", "0.6446546", "0.6446546", "0.64452314", "0.64438194", "0.6442912", "0.6431334", "0.6431167", "0.64283675", "0.64283675", "0.64283675", "0.64283675", "0.64283675", "0.64283675", "0.64283675", "0.64190507", "0.64190507", "0.64190507", "0.64151", "0.6400242", "0.6400242", "0.6400242", "0.6400242", "0.6400242", "0.6382463", "0.63791156", "0.63791156", "0.6373489", "0.6353773", "0.6353773", "0.6353773", "0.6353773", "0.6341769", "0.6341769", "0.6341769", "0.6341769", "0.6326523", "0.6326444", "0.6319502", "0.628729", "0.6286455", "0.6286455", "0.6272544", "0.62658244", "0.6264291", "0.6250792", "0.62451553", "0.62451553", "0.623441", "0.623441", "0.6228053", "0.6225307", "0.6225307", "0.6225307", "0.6220812", "0.6216069", "0.62071764", "0.62071764", "0.62071764", "0.62071764", "0.62071764", "0.6207145", "0.6201355", "0.6200807", "0.6194743", "0.61924213", "0.61924213", "0.61924213", "0.61924213", "0.61924213", "0.61924213", "0.61924213", "0.61924213", "0.61924213", "0.61924213", "0.61924213", "0.61924213", "0.61924213", "0.61924213", "0.61924213", "0.61924213", "0.61924213", "0.61924213", "0.6192114", "0.618947", "0.6187503", "0.6184552" ]
0.64031476
32
Gets the creates the date.
public Date getCreateDate() { return createDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Date getCreateDate();", "Date getCreateDate();", "public Date getCreateDate();", "public Date getCreateDate();", "public Date getCreateDate();", "public Date getCreate_date() {\n return create_date;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\r\n return createDate;\r\n }", "public Date getCreateDate() {\r\n return createDate;\r\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n return createDate;\n }", "public String getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() {\n\t\treturn createDate;\n\t}", "Date getCreatedDate();", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "public String getCreateDate() {\n return createDate;\n }", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _scienceApp.getCreateDate();\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn _paper.getCreateDate();\n\t}", "@Override\n\tpublic Date getCreateDate();", "@Override\n\tpublic Date getCreateDate();", "public String getCreateDate() {\r\n\t\treturn createDate;\r\n\t}", "public String getCreateDate() {\n return createDate;\n }", "public String getCreateDate() {\n return createDate;\n }", "public Date getCreateDate() { return this.createDate; }", "Date getDateCreated();", "public Date getCreateDt() {\n return createDt;\n }", "@Override\n public java.util.Date getCreateDate() {\n return _partido.getCreateDate();\n }", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn _second.getCreateDate();\n\t}", "public java.util.Calendar getCreateDate() {\n return createDate;\n }", "public java.util.Date getCreateDate() {\n return this.createDate;\n }", "public Date getCreateDt() {\n\t\treturn this.createDt;\n\t}", "public Date getCreateOn() {\n\t\treturn this.createOn;\r\n\t}", "public Date getCreateDatetime() {\r\n\t\treturn createDatetime;\r\n\t}", "public Date getdCreateDate() {\r\n return dCreateDate;\r\n }", "public Date getdCreateDate() {\r\n return dCreateDate;\r\n }", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn _changesetEntry.getCreateDate();\n\t}", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDateCreated();", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "Date getCreationDate();", "public Date getCreateAt() {\n return createAt;\n }", "public Date getCreateAt() {\n return createAt;\n }", "public Date getCreatedDate();", "public Date getDateCreated() {\r\n\t\t\r\n\t\t\tDate date= new Date(System.currentTimeMillis());\r\n\t\treturn date;\r\n\t}", "public Date getCreateBy() {\n return createBy;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Calendar getDate()\n {\n return this.dateOfCreation;\n }", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _dictData.getCreateDate();\n\t}", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _esfTournament.getCreateDate();\n\t}", "@Override\r\n\tpublic Date getCreated_date() {\n\t\treturn super.getCreated_date();\r\n\t}", "public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }", "public Timestamp getCreateDate() {\n return createDate;\n }", "public Date getTimeCreate() {\n return timeCreate;\n }", "public Date getCreationDate() {\n\n \n return creationDate;\n\n }", "public Date getCreatedOn()\n {\n return _model.getCreatedOn();\n }", "public Date getCreateddate() {\n return createddate;\n }", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _employee.getCreateDate();\n\t}", "public java.util.Calendar getDCreateDate() {\n return dCreateDate;\n }", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _candidate.getCreateDate();\n\t}", "public Date getDateCreated(){\n\t\treturn dateCreated;\n\t}", "public Date getCreated() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreationDate();", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreatetime() {\r\n return createtime;\r\n }", "public Date getCreatetime() {\r\n return createtime;\r\n }", "public Date getCreatetime() {\r\n return createtime;\r\n }", "public Date getCreate_time() {\n return create_time;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public Date getDateCreated()\n {\n return dateCreated;\n }" ]
[ "0.77725047", "0.77725047", "0.7567058", "0.7567058", "0.7567058", "0.74717075", "0.7463533", "0.74629784", "0.74629784", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7427148", "0.7420844", "0.7412433", "0.7405512", "0.7395597", "0.7395597", "0.7395597", "0.7381348", "0.7371058", "0.7359738", "0.7354323", "0.7354323", "0.7337205", "0.73290783", "0.73290783", "0.73150873", "0.7299642", "0.72915167", "0.72882664", "0.7283281", "0.7260941", "0.7239215", "0.7235313", "0.7212316", "0.7207995", "0.7190919", "0.7190919", "0.71800065", "0.71675175", "0.71675175", "0.71675175", "0.7163576", "0.713636", "0.713636", "0.71250635", "0.71240187", "0.71240187", "0.7123023", "0.7121158", "0.70974296", "0.7095274", "0.7095274", "0.7095274", "0.7095274", "0.7091357", "0.70822775", "0.7051323", "0.70467085", "0.70363694", "0.70297194", "0.70121604", "0.69654393", "0.69637626", "0.6959176", "0.69588655", "0.69467926", "0.6938669", "0.69358414", "0.6933606", "0.6930187", "0.6930187", "0.6917037", "0.69138837", "0.69138837", "0.69129807", "0.69129807", "0.69129807", "0.6907159", "0.6907159", "0.69063383" ]
0.74321604
9
Sets the creates the date.
public void setCreateDate(Date createDate) { this.createDate = createDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setCreateDate(Date date);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate);", "public void setCreateDate(Date createDate) { this.createDate = createDate; }", "@Override\n\tpublic void setCreateDate(Date createDate);", "@Override\n\tpublic void setCreateDate(Date createDate);", "@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_paper.setCreateDate(createDate);\n\t}", "public void setCreateDate(Date createDate)\r\n/* */ {\r\n/* 165 */ this.createDate = createDate;\r\n/* */ }", "public void setCreateDate(String value) {\n this.createDate = value;\n }", "public void setDateCreate(Date dateCreate) {\n this.dateCreate = dateCreate;\n }", "void setCreateDate(final Date creationDate);", "void setCreatedDate(Date createdDate);", "@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_changesetEntry.setCreateDate(createDate);\n\t}", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "@Override\n\tprotected void setDate() {\n\n\t}", "public void setDateCreated(Date dateCreated);", "void setCreationDate(Date val)\n throws RemoteException;", "public void setCreateDate(Date createDate) {\r\n this.createDate = createDate;\r\n }", "public void setCreateDate(Date createDate) {\r\n this.createDate = createDate;\r\n }", "public void setDate() {\n this.date = new Date();\n }", "@Override\n public void setCreateDate(java.util.Date createDate) {\n _partido.setCreateDate(createDate);\n }", "@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_scienceApp.setCreateDate(createDate);\n\t}", "public void setCreateDate( Date createDate ) {\n this.createDate = createDate;\n }", "public void setCreateDate( Date createDate ) {\n this.createDate = createDate;\n }", "public void SetDate(Date date);", "@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_esfTournament.setCreateDate(createDate);\n\t}", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreateDate(Date createDate) {\n this.createDate = createDate;\n }", "public void setCreatedDate(Date createdDate);", "public void setdCreateDate(Date dCreateDate) {\r\n this.dCreateDate = dCreateDate;\r\n }", "public void setdCreateDate(Date dCreateDate) {\r\n this.dCreateDate = dCreateDate;\r\n }", "public void setCreationDate(Date creationDate);", "@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\tmodel.setCreateDate(createDate);\n\t}", "@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\tmodel.setCreateDate(createDate);\n\t}", "@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\tmodel.setCreateDate(createDate);\n\t}", "void setDateCreated(final Date dateCreated);", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public Builder setCreateDate(String value) {\n validate(fields()[2], value);\n this.createDate = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }", "public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "public void setCreationDate(Date creationDate) {\n }", "public void setCreateDate(java.util.Date newVal) {\n if ((newVal != null && this.createDate != null && (newVal.compareTo(this.createDate) == 0)) || \n (newVal == null && this.createDate == null && createDate_is_initialized)) {\n return; \n } \n try {\n this.createDate = (java.util.Date)newVal.clone();\n } catch (Exception e) {\n // do nothing\n }\n\n createDate_is_modified = true; \n createDate_is_initialized = true; \n }", "public void setCreate_date(Date create_date) {\n this.create_date = create_date;\n }", "public void setCreationDate(Date value)\n {\n setAttributeInternal(CREATIONDATE, value);\n }", "@Override\n\tpublic void setCreateDate(Date createDate) {\n\t\t_second.setCreateDate(createDate);\n\t}", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreDate(Date creDate) {\n this.creDate = creDate;\n }", "public void setCreateDt(Date createDt) {\n this.createDt = createDt;\n }", "public void setDate(Date date) {\r\n this.date = date;\r\n }", "public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}", "public void setCREATED_DATE(Date CREATED_DATE) {\r\n this.CREATED_DATE = CREATED_DATE;\r\n }", "void setDate(Date data);", "public void setCreacion(Date creacion) {\r\n this.creacion = creacion;\r\n }", "public void setCreatedDate(Date value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_employee.setCreateDate(createDate);\n\t}", "public void setCreateDate(final Date createDate) {\r\n\t\tthis.createDate = createDate;\r\n\t}", "@Override\n\tpublic void setCreateDate(java.util.Date createDate) {\n\t\t_dictData.setCreateDate(createDate);\n\t}", "public void setCreationDate(Calendar creationDate) {\n/* 248 */ getCOSObject().setDate(COSName.CREATION_DATE, creationDate);\n/* */ }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setCreateDate(Date createDate) {\n\t\tthis.createDate = createDate;\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "private void setDate() {\n\t\tthis.date = Integer.parseInt(this.year + String.format(\"%02d\", this.calenderWeek));\n\n\t}", "public void setCreationDate(Date value) {\n setAttributeInternal(CREATIONDATE, value);\n }" ]
[ "0.8598939", "0.8065697", "0.8065697", "0.8065697", "0.79819036", "0.79237217", "0.79237217", "0.7835316", "0.78233737", "0.7788152", "0.77609915", "0.7755187", "0.7711099", "0.771104", "0.7674224", "0.7622459", "0.7603311", "0.7555816", "0.755479", "0.755479", "0.75468713", "0.7502739", "0.74960506", "0.749267", "0.749267", "0.7474401", "0.7467546", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7456616", "0.7449212", "0.74403816", "0.74403816", "0.7438563", "0.7428397", "0.7428397", "0.7428397", "0.74089664", "0.7408449", "0.7408449", "0.73953074", "0.7388313", "0.7387493", "0.7365718", "0.7365718", "0.73573136", "0.73460764", "0.73425645", "0.7340843", "0.7314442", "0.73004854", "0.73004854", "0.73004854", "0.73004854", "0.73004293", "0.72678924", "0.72595805", "0.72556555", "0.72491246", "0.7244315", "0.72362083", "0.72296673", "0.72227955", "0.7209542", "0.7204526", "0.71997184", "0.7189491", "0.7189491", "0.7189491", "0.7189491", "0.7189491", "0.7189491", "0.7189491", "0.7189491", "0.7189491", "0.718843", "0.71828973", "0.71828973", "0.71828973", "0.715744", "0.7140895" ]
0.7329167
68
Gets the applied date.
public Date getAppliedDate() { return appliedDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.Date getCurrentApplyDate() {\n return currentApplyDate;\n }", "public java.util.Date getForcedApplyDate() {\n return forcedApplyDate;\n }", "public java.util.Date getAutoAppliedAfterDate() {\n return autoAppliedAfterDate;\n }", "public Date getApplyTime() {\n return applyTime;\n }", "public DTM getProductServiceEffectiveDate() { \r\n\t\tDTM retVal = this.getTypedField(10, 0);\r\n\t\treturn retVal;\r\n }", "public void setAppliedDate(Date appliedDate) {\r\n\t\tthis.appliedDate = appliedDate;\r\n\t}", "org.hl7.fhir.DateTime getAppliesDateTime();", "public Date getEffectiveDate() {\n return effectiveDate;\n }", "public Date getEffectiveDate() {\n return effectiveDate;\n }", "public Date getEffectiveDate() {\n return effectiveDate;\n }", "public Date getEffectiveDate() {\r\n return effectiveDate;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEffectiveDate();", "public String getApplyDays() {\n return applyDays;\n }", "@Override\n\tpublic java.util.Date getStatusDate() {\n\t\treturn _scienceApp.getStatusDate();\n\t}", "public Date getdate() {\n\t\treturn new Date(date.getTime());\n\t}", "public Date getBudgetDate() {\n return (Date) getAttributeInternal(BUDGETDATE);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getRenewalEffectiveDate();", "@Override\n\tpublic java.util.Date getRequestedDate() {\n\t\treturn _dmGtStatus.getRequestedDate();\n\t}", "public java.util.Date getAdjustedDate() {\n\t}", "public String getCurrentDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public LocalDate getDate () {\n\t\treturn DateUtils.toLocalDate(this.start);\n\t}", "public Date getUseDate() {\n return DateUtils.clone(this.useDate);\n }", "public static String getCurrentDate() {\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate dateobj = new Date();\n\t\treturn df.format(dateobj);\n\t}", "public java.util.Date getRequestedDate() {\n\t\treturn _dmHistoryMaritime.getRequestedDate();\n\t}", "Date getEDate();", "protected String getDateString() {\n String result = null;\n if (!suppressDate) {\n result = currentDateStr;\n }\n return result;\n }", "public String getDate() {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\treturn sdf.format(txtDate.getDate());\n\t}", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:date\")\n public Calendar getDate() {\n return getProperty(DATE);\n }", "public String Get_date() \n {\n \n return date;\n }", "public Date getDate() {\n return this.currentDate;\n }", "public java.util.Date getDateEffectiveFrom() {\n\t\treturn dateEffectiveFrom;\n\t}", "@Override\n\tpublic Date getCompleteDate() {\n\t\treturn model.getCompleteDate();\n\t}", "public java.util.Date getApprovalDate () {\n\t\treturn approvalDate;\n\t}", "java.lang.String getToDate();", "public int getCurrentDate() {\n\n\t\t cal = Calendar.getInstance();\n\t\treturn cal.get(Calendar.DAY_OF_MONTH);\n\t}", "@Override\n public int getDate() {\n return this.deadline.getDay();\n }", "long getDate() { return (act != null ? act.getDate() : 0); }", "public Date getFinalActiveDate() {\n if (_finalActiveDate == null) {\n _finalActiveDate = DEFAULT_FINAL_ACTIVE_DATE;\n }\n return _finalActiveDate;\n }", "public Date getDateSelected() {\n Date dateSelected = availDay.getDate();\n return dateSelected;\n }", "public Date getBuyDate() {\n return DateUtils.copy(buyDate);\n }", "public static String getCurrentDate()\n\t{\n\t\treturn getDate(new Date());\n\t}", "public LocalDate getDate() {\n\t\treturn this.date;\n\t}", "public Date getDeliveryDate() {\n return (Date)getAttributeInternal(DELIVERYDATE);\n }", "public Timestamp getDateAcct() {\n\t\treturn (Timestamp) get_Value(\"DateAcct\");\n\t}", "@Override\n\tpublic java.util.Date getCreateDate() {\n\t\treturn _scienceApp.getCreateDate();\n\t}", "public String getReturningDate() {\r\n return returningDate;\r\n }", "public String getDate()\n {\n SimpleDateFormat newDateFormat = new SimpleDateFormat(\"EE d MMM yyyy\");\n String MySDate = newDateFormat.format(this.dueDate);\n return MySDate;\n }", "public Number getBudgetAsToDate() {\n return (Number) getAttributeInternal(BUDGETASTODATE);\n }", "public java.lang.String getPolicyEffectiveDate() {\n return policyEffectiveDate;\n }", "public LocalDate getOrderDate() {\n return new LocalDate(this.orderDate.getMonth(), this.orderDate.getDay(), this.orderDate.getYear());\n\n }", "public Date getCurrentDate() {\n\t\treturn new Date();\n\t}", "public Date getDate() {\n\t\treturn date_;\n\t}", "public Date getEFF_DATE() {\r\n return EFF_DATE;\r\n }", "@Override\n\tpublic java.util.Date getRequestedDate() {\n\t\treturn _dmGTShipPosition.getRequestedDate();\n\t}", "public Date getCurrentDate()\r\n {\r\n return (m_currentDate);\r\n }", "Date getForDate();", "public Date getDate() {\r\n\t\treturn this.date;\r\n\t}", "public String currentDate() {\n DateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\n String date = df.format(Calendar.getInstance().getTime());\n return date;\n }", "public Date getDate()\n\t{\n\t\treturn date;\n\t}", "@Override\n public Date getEffectiveDateForPerDiem(java.sql.Timestamp expenseDate) {\n if (getTripBegin() == null) {\n return new java.sql.Date(getDocumentHeader().getWorkflowDocument().getDateCreated().getMillis());\n }\n return new java.sql.Date(getTripBegin().getTime());\n }", "public String getDate()\n\t\t{\n\t\t\treturn date;\n\t\t}", "public Date getDeliveryStartDate() {\n return (Date)getAttributeInternal(DELIVERYSTARTDATE);\n }", "public Date getDate() {\r\n\t\treturn date;\r\n\t}", "public Date getDate() {\r\n\t\treturn date;\r\n\t}", "public Date date()\n\t{\n\t\treturn this.date;\n\t}", "public final Date dateValue() {\n if (calValue != null)\n return calValue.getTime();\n else\n return null;\n }", "java.lang.String getFoundingDate();", "public Date getDate() {\n\t\treturn date;\n\t}", "public Date getDate() {\n\t\treturn date;\n\t}", "java.lang.String getOrderDate();", "public static String getDate() {\n return getDate(DateUtils.BASE_DATE_FORMAT);\n }", "private Date getCurrentDate() {\n return Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant());\n }", "public Date getDeliveryDate() {\n return (Date) getAttributeInternal(DELIVERYDATE);\n }", "public DTM getPsl10_ProductServiceEffectiveDate() { \r\n\t\tDTM retVal = this.getTypedField(10, 0);\r\n\t\treturn retVal;\r\n }", "public String getDate() {\r\n\t\treturn this.date;\r\n\t}", "public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}", "public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}", "public String getDate() {\r\n\t\treturn date;\r\n\t}", "String getStartDate();", "public Date getIssuanceDate() {\n return (Date) getAttributeInternal(ISSUANCEDATE);\n }", "public Date date() {\r\n\t\treturn date;\r\n\t}", "public Date getDate() {\r\n return date;\r\n }", "public Date getDate() {\r\n return date;\r\n }", "public Date getDate() {\r\n return date;\r\n }", "public Calendar getDate() {\n\t\treturn date;\n\t}", "@Override\n public final Date getDocumentDate() {\n return this.manufacture.getItsDate();\n }", "public String getDate() {\n\t\treturn this.date;\n\t}", "public Calendar getDate() {\r\n\t\treturn date;\r\n\t}", "public Date getDate() {\n\t\treturn _date;\n\t}", "public static Date getCurrentDate() {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tjava.util.Date currentDate = calendar.getTime();\r\n\t\tDate date = new Date(currentDate.getTime());\r\n\t\treturn date;\r\n\t}", "public static String getDate() {\n return getDate(System.currentTimeMillis());\n }", "public java.util.Date getEntryDate () {\n\t\treturn entryDate;\n\t}", "public java.lang.String getDate() {\n return date;\n }", "public String getDate() {\n\t\treturn date;\n\t}", "public String getDate() {\n\t\treturn date;\n\t}", "public String getDate() {\r\n return date;\r\n }", "public Date getWtDate() {\r\n\t\treturn wtDate;\r\n\t}", "public String getdate() {\n\t\treturn date;\n\t}", "public Date getEffectivedateFrom() {\n return (Date) getAttributeInternal(EFFECTIVEDATEFROM);\n }", "public Date getDate() {\n return this.date;\n }" ]
[ "0.7593411", "0.74215305", "0.6821792", "0.6685383", "0.66080457", "0.65429157", "0.65265596", "0.64321446", "0.64321446", "0.64321446", "0.6418638", "0.6412506", "0.64064103", "0.6402724", "0.6392408", "0.63657814", "0.63462245", "0.6333298", "0.6323615", "0.6293093", "0.62826914", "0.6253631", "0.6246389", "0.62364596", "0.6228884", "0.6202418", "0.62013996", "0.6186429", "0.6185869", "0.6181402", "0.61754715", "0.6173291", "0.61704904", "0.6162202", "0.61585116", "0.6145944", "0.6145899", "0.6143732", "0.613897", "0.6136075", "0.6127724", "0.61117774", "0.6106283", "0.610387", "0.61007184", "0.6099053", "0.6095649", "0.60947776", "0.60920364", "0.6088645", "0.6087712", "0.6081186", "0.60778314", "0.60764384", "0.60741645", "0.60731465", "0.6069788", "0.6063032", "0.60627145", "0.60568565", "0.6051933", "0.60484225", "0.604658", "0.604658", "0.60456806", "0.6034447", "0.60319287", "0.60254836", "0.60254836", "0.6023218", "0.60206115", "0.60205466", "0.6012297", "0.600973", "0.60091126", "0.6007943", "0.6007943", "0.6002276", "0.6000552", "0.5998193", "0.59977704", "0.59934235", "0.59934235", "0.59934235", "0.5988099", "0.59865063", "0.5982178", "0.5980117", "0.59777564", "0.59750676", "0.59702617", "0.59690326", "0.5968352", "0.59677285", "0.59677285", "0.59654725", "0.59642696", "0.5962978", "0.59595644", "0.5958762" ]
0.8086956
0
Sets the applied date.
public void setAppliedDate(Date appliedDate) { this.appliedDate = appliedDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCurrentApplyDate(java.util.Date currentApplyDate) {\n this.currentApplyDate = currentApplyDate;\n }", "public void SetDate(Date date);", "public void setEffectiveDate(java.util.Date value);", "void setDate(Date data);", "@Override\n\tprotected void setDate() {\n\n\t}", "private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "private void setDate() {\n\t\tthis.date = Integer.parseInt(this.year + String.format(\"%02d\", this.calenderWeek));\n\n\t}", "public void setDate() {\n this.date = new Date();\n }", "public void setDate(Date date) {\r\n this.date = date;\r\n }", "public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}", "public void setForcedApplyDate(java.util.Date forcedApplyDate) {\n this.forcedApplyDate = forcedApplyDate;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n\t\tthis._date = date;\n\t}", "public void setDate(final Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n\t\t\n\t\tdate_ = date;\n\t}", "public void setDate(Date date) {\n\t\tthis.date = date;\n\t}", "public void setDate(Date date) {\n\t\tthis.date = date;\n\t}", "public void setDate(Date date) {\n\t\tthis.date = date;\n\t}", "public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}", "public void setDate(Date date) {\n mDate = date;\n }", "public void setCurrentDate(String d) {\n currentDate = d;\n }", "public void setRenewalEffectiveDate(java.util.Date value);", "public void setDate(int dt) {\n date = dt;\n }", "public void setDate(Date newDate) {\n this.currentDate = newDate;\n }", "public void setDate(Date date) {\n setDate(date, null);\n }", "public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n Logger.d(TAG, \"The date is null\");\n }\n }", "public Date getAppliedDate() {\r\n\t\treturn appliedDate;\r\n\t}", "public void setServiceDate(java.util.Date value);", "public void setDate(Calendar date) {\n\tthis.date = date;\n }", "public void setRequestDate(Date requestDate);", "public void setRequestedDate(Date date) {\n requestedDate.setText(formatDate(date));\n }", "public void setDate(Calendar date) {\r\n\t\tthis.date = date;\r\n\t}", "void setDate(java.lang.String date);", "public void setDate(Calendar date)\n {\n this.date = date;\n }", "private void setDate() {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n datetxt2.setText(sdf.format(date));\n }", "public void setDate(DateTime \n date) {\n this.date = date;\n }", "void setCreateDate(Date date);", "public static void setDate() {\r\n\t\tDate.set(DateFormat.getDateTimeInstance(DateFormat.SHORT,\r\n\t\t\t\tDateFormat.LONG, Locale.getDefault()).format(\r\n\t\t\t\tnew java.util.Date()));\r\n\t}", "public void setInstallDate() {\n if (PrefUtils.getInstallDate(mContext) == 0) {\n //getting the current time in milliseconds, and creating a Date object from it:\n Date date = new Date(System.currentTimeMillis()); //or simply new Date();\n long millis = date.getTime();\n PrefUtils.setInstallDate(millis, mContext);\n }\n }", "public void setDate(java.util.Date param){\n \n this.localDate=param;\n \n\n }", "private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }", "public final void setDate(LocalDate date) {\n dateProperty().set(date);\n }", "public void setDate(int date){\n this.date = date;\n }", "public void setEditDate(Date editDate)\r\n/* */ {\r\n/* 193 */ this.editDate = editDate;\r\n/* */ }", "public void setDate(String date) {\r\n this.date = date;\r\n }", "public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n this.mDate = null;\n }\n }", "public void setStartDate(Date s);", "public void setBudgetDate(Date value) {\n setAttributeInternal(BUDGETDATE, value);\n }", "public void setDate(java.util.Calendar date) {\n this.date = date;\n }", "public void setDate(java.util.Calendar date) {\n this.date = date;\n }", "public void setDate(String date){\n this.date = date;\n }", "public void setEnterDate(Date value) {\r\n setAttributeInternal(ENTERDATE, value);\r\n }", "public void setDate(long date) {\r\n\t\tthis.date = new Date(date);\r\n\t}", "public void setDate(String d) {\n\t\tdate = d;\n\t\tif (super.getPubDate() != null)\n\t\t\tsuper.setPubDate(d);\n\t\tdate = d;\n\t}", "public void setDate(String date) {\n this.date = date;\n }", "public void setDate(String date) {\n this.date = date;\n }", "public void setDate(String date) {\n this.date = date;\n }", "public void setDate(String date) {\n this.date = date;\n }", "public void setDate(String date) {\n this.date = date;\n }", "public void setDate(String date){\n this.date = date;\n }", "public void setCurrentDate(Date currentDate)\r\n {\r\n m_currentDate = currentDate;\r\n }", "@Override\n\tpublic void setStatusDate(java.util.Date statusDate) {\n\t\t_scienceApp.setStatusDate(statusDate);\n\t}", "public void setDate(long date) {\n\t\tthis.date = date;\n\t}", "public void setDate() {\n DatePickerDialog dateDialog = new DatePickerDialog(this, myDateListener,\n calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));\n //set the date limits so user cannot pick a date outside of game scope\n dateDialog.getDatePicker().setMinDate(System.currentTimeMillis() + MILLIS_IN_DAY);\n dateDialog.getDatePicker().setMaxDate(System.currentTimeMillis() + (MILLIS_IN_DAY * MAX_END_DAY_COUNT));\n dateDialog.show();\n }", "public void setDateOfExamination(java.util.Date param){\n \n this.localDateOfExamination=param;\n \n\n }", "public void setDate(DateInfo dates) {\r\n\t\tsuper.setDate(dates);\r\n\t\t//maturityDate = new DateInfo(dates);\r\n\t}", "public void setDate(Calendar currentDate) {\r\n this.currentDate = currentDate;\r\n }", "public void setWtDate(Date wtDate) {\r\n\t\tthis.wtDate = wtDate;\r\n\r\n\t}", "public void setDueDate(Date d){dueDate = d;}", "public void setIssuanceDate(Date value) {\n setAttributeInternal(ISSUANCEDATE, value);\n }", "public void setDateAcct (Timestamp DateAcct);", "public void setDateAcct (Timestamp DateAcct);", "public void setDATE_SETTLED(Date DATE_SETTLED) {\r\n this.DATE_SETTLED = DATE_SETTLED;\r\n }", "public void setDate(java.util.Calendar value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}", "public void setDate(String parName, Date parVal) throws HibException;", "public void setEffectiveDate(Date effectiveDate) {\r\n this.effectiveDate = effectiveDate;\r\n }", "@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\t}", "public void setEffDate(Date value) {\r\n this.effDate = value;\r\n }", "public void setCurrentDate(String currentDate) {\n this.currentDate = currentDate;\n }", "public void setDate(String date) {\n\t\tthis.date = date;\n\t}", "public void setDate(String date) {\n\t\tthis.date = date;\n\t}", "public void setCtDate(Date ctDate) {\n this.ctDate = ctDate;\n }", "private void setDate() {\n java.util.Date d1 = new java.util.Date();\n SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MM-dd\");\n String formateDate = df.format(d1);\n lblDate.setText(formateDate); \n }", "public void setDateTime(Date date)\n\t{\n\t\tint nHour, nMin;\n\n\t\tCalendar cal = Calendar.getInstance(); //Get calender\n\t\tcal.setTime(date); //Set given date\n\t\tnHour = cal.get(Calendar.HOUR_OF_DAY);\n\t\tnMin = cal.get(Calendar.MINUTE);\n\n\t\tsetDateTime(nHour, nMin, date);\n\t}", "public java.util.Date getForcedApplyDate() {\n return forcedApplyDate;\n }", "private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\texpense.setDate(c.getTime());\n\n\t\t// display the current date\n\t\tupdateDateDisplay();\n\t}", "public void setDate(long date)\r\n/* 199: */ {\r\n/* 200:299 */ setDate(\"Date\", date);\r\n/* 201: */ }", "public void setDateAcct(Timestamp DateAcct) {\n\t\tif (DateAcct == null)\n\t\t\tthrow new IllegalArgumentException(\"DateAcct is mandatory.\");\n\t\tset_Value(\"DateAcct\", DateAcct);\n\t}", "public void setDate(View view) {\n new DatePickerDialog(\n AddEvent.this, dateSet,\n myCalendar.get(Calendar.YEAR),\n myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)\n ).show();\n }" ]
[ "0.7152506", "0.7130001", "0.7028265", "0.6978809", "0.6944967", "0.69398737", "0.69066405", "0.69066405", "0.69066405", "0.68991864", "0.68824697", "0.6875279", "0.6863125", "0.68612814", "0.6813285", "0.6813285", "0.6813285", "0.6813285", "0.6813285", "0.6813285", "0.6813285", "0.6813285", "0.6813285", "0.6792571", "0.6788677", "0.67736644", "0.67703056", "0.67703056", "0.67703056", "0.6765715", "0.6756249", "0.6751453", "0.6656938", "0.66260093", "0.661742", "0.6614421", "0.6575739", "0.65691227", "0.65637493", "0.6551381", "0.65508395", "0.6544069", "0.65404874", "0.6521974", "0.6509408", "0.6482567", "0.64758456", "0.6468606", "0.64662194", "0.6460749", "0.6449351", "0.644896", "0.64276576", "0.6422426", "0.6378177", "0.6368185", "0.6365572", "0.6352784", "0.6347232", "0.63413775", "0.63413775", "0.63390696", "0.631786", "0.63075304", "0.63042915", "0.6303343", "0.6303343", "0.6303343", "0.6303343", "0.6303343", "0.6295334", "0.629146", "0.6279611", "0.6265491", "0.6263437", "0.6262899", "0.6262613", "0.62621546", "0.6257157", "0.6256201", "0.6253943", "0.6249764", "0.6249764", "0.624859", "0.6242578", "0.6242338", "0.623599", "0.6232967", "0.62324303", "0.6225008", "0.62213874", "0.62213874", "0.62178266", "0.6216508", "0.6209194", "0.62068915", "0.6205232", "0.62008774", "0.6200392", "0.6180028" ]
0.76917005
0
Gets the checks if is applied.
public byte getIsApplied() { return isApplied; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getMyChecksExtists(){\n return my_checks_exists;\n }", "private void loadAlwaysChecks() {\n alwaysChecks.addEnabled(new FlyAllCheck(), new WorldPermissionCheck(true), new RegionPermissionCheck(true));\n // CrazyEnchants Check\n if (pluginLoading(\"CrazyEnchantments\") && pm.getPlugin(\"CrazyEnchantments\").getDescription().getVersion().startsWith(\"1.8\")) {\n alwaysChecks.addEnabled(new CrazyEnchantmentsCheck());\n }\n // AdvancedEnchantments Check\n if (pluginLoading(\"AdvancedEnchantments\")) {\n alwaysChecks.addEnabled(new AdvancedEnchantmentsCheck(pl));\n }\n // SaberFactions Check\n if (pluginLoading(\"Factions\") && pm.getPlugin(\"Factions\").getDescription().getAuthors().contains(\"Driftay\")) {\n alwaysChecks.addEnabled(new SaberFactionsCheck());\n }\n // FabledSkyblock Check\n if (pluginLoading(\"FabledSkyBlock\")) {\n alwaysChecks.addEnabled(new FabledSkyblockCheck());\n }\n\n /* DISABLE */\n // World/Region Checks\n alwaysChecks.addDisabled(new WorldPermissionCheck(false), new RegionPermissionCheck(false));\n // Combat Checks\n loadCombatChecks();\n // Nearby Checks\n if (pl.getConfManager().isNearbyCheck()) {\n alwaysChecks.addDisabled(pl.getConfManager().isNearbyCheckEnemies() ? new NearbyEnemyCheck(pl) : new NearbyCheck(pl));\n }\n // Height Limit Check\n if (pl.getConfManager().getHeightLimit() != -1) {\n alwaysChecks.addDisabled(new HeightLimitCheck());\n }\n }", "public abstract List<Requirement> getFailedChecks();", "public boolean isInCheck() {\n\t\treturn false;\n\t}", "public int[][] getChecks(){return checks;}", "private void loadBypassAndTrailChecks() {\n bypassChecks.add(new BypassPermissionCheck());\n // Spectator Check\n SpectatorModeCheck spectatorModeCheck = new SpectatorModeCheck();\n bypassChecks.add(spectatorModeCheck);\n noTrailChecks.add(spectatorModeCheck);\n // Vanish Checks\n HashSet<Check> vanishChecks = new HashSet<>();\n\n if (pluginLoading(\"PremiumVanish\") || pluginLoading(\"SuperVanish\")) {\n vanishChecks.add(new PremiumSuperVanishCheck());\n } else if (pluginLoading(\"Essentials\")) {\n vanishChecks.add(new EssentialsVanishCheck());\n }\n\n if (!vanishChecks.isEmpty() && pl.getConfManager().isVanishBypass()) {\n bypassChecks.addAll(vanishChecks);\n noTrailChecks.addAll(vanishChecks);\n }\n // Invisibility potion Check\n noTrailChecks.add(new InvisibilityPotionCheck());\n /* DISABLE EMPTY */\n }", "@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}", "public ArrayList<String> getNullChecks() {\n\t\treturn nullChecks;\n\t}", "public CheckInOut getCheck() {\n\t\treturn check;\n\t}", "public int[] checker() {\n\t\tif (!(trimCkBox.isSelected()) && !(refCkBox.isSelected()) ) { //&& !(alignCkBox.isSelected())) {\n\t\t\treturn null;\n\t\t}\n\t\t//System.out.println(\"CHECKER\");\n\t\tint[] temp = {0, 0, 0};\n\t\tif (trimCkBox.isSelected()) {\n\t\t\ttemp[0] = 1;\n\t\t}\n\t\tif (refCkBox.isSelected()) {\n\t\t\ttemp[1] = 1;\n\t\t}\n\t\t/*if (alignCkBox.isSelected()) {\n\t\t\tif (temp[0] == 0 && temp[1] == 0){\n\t\t\t\ttemp[2] = -1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttemp[2] = 1;\n\t\t\t}\n\t\t}*/\n\t\t\n\t\treturn temp;\n\t}", "protected List<RuntimeCheck> getOriginalChecks(Exp e) {\n List<RuntimeCheck> ret = originalChecks.get(e);\n if (ret != null) {\n ret = new ArrayList<RuntimeCheck>(ret);\n }\n return ret;\n }", "public List<HealthCheck> getServiceChecks(String service);", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.LoadIntegrityCheck[] getIntegrityChecks();", "public Boolean getIsCheck()\r\n\t{\r\n\t\treturn isCheck;\r\n\t}", "private void initChecks(){\r\n\t \r\n\t //functions\r\n\t if(ckFun == null)\r\n\t ckFun\t= new JAbstractCheckAll(this) {\r\n\t\t\t/**\r\n\t\t * \r\n\t\t */\r\n\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void OnUnCheck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(\"Entered in ckFun OnUnCheck\");\r\n\t\t\t\tchecAll(getFunTbl().getModel().getData(), false);\r\n\t\t\t\tgetFunTbl().updateUI();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void OnCkeck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(\"Entered in ckFun OnCheck\");\r\n\t\t\t\tchecAll(getFunTbl().getModel().getData(), true);\r\n\t\t\t\tgetFunTbl().updateUI();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t //packages\r\n\t if(ckPack == null)\r\n\t ckPack = new JAbstractCheckAll(this) {\r\n\t\t\t/**\r\n\t\t * \r\n\t\t */\r\n\t\t\t\r\n\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void OnUnCheck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tchecAll(getPackTbl().getModel().getData(), false);\r\n\t\t\t\tgetPackTbl().updateUI();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void OnCkeck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tchecAll(getPackTbl().getModel().getData(), true);\r\n\t\t\t\tgetPackTbl().updateUI();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t//procedures\r\n\t\tif(ckProc == null)\r\n\t\tckProc = new JAbstractCheckAll(this) {\r\n\t\t\t/**\r\n\t\t * \r\n\t\t */\r\n\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void OnUnCheck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tchecAll(getProcTbl().getModel().getData(), false);\r\n\t\t\t\tgetProcTbl().updateUI();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void OnCkeck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tchecAll(getProcTbl().getModel().getData(), true);\r\n\t\t\t\tgetProcTbl().updateUI();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t//schemas\r\n\t\tif(ckSchema == null) \r\n\t\t\tckSchema = new JAbstractCheckAll(this) {\r\n\t\t\t/**\r\n\t\t * \r\n\t\t */\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void OnUnCheck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tchecAll(getSchTbl().getModel().getData(), false);\r\n\t\t\t\tgetSchTbl().updateUI();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void OnCkeck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tchecAll(getSchTbl().getModel().getData(), true);\r\n\t\t\t\tgetSchTbl().updateUI();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t//set check texts\r\n\t\tckFun.setText(\"Select All\");\r\n\t\tckPack.setText(\"Select All\");\r\n\t\tckSchema.setText(\"Select All\");\r\n\t\tckProc.setText(\"Select All\");\r\n\t}", "boolean getCheckState();", "public Vector<Integer> getCheckList(){\n\t\treturn this._eventCheckList;\n\t}", "public String getCheckMethod() {\r\n return checkMethod;\r\n }", "public int getCheckCount() {\r\n return checkResults.size();\r\n }", "boolean isSetComplianceCheckResult();", "public List<DecisionCoverage> getRuleCoverages() {\r\n\t\tif ((executionTrace != null) && (ruleCoverages == null)) {\r\n\t\t\tcomputeRuleCountTuples();\r\n\t\t}\r\n\t\treturn ruleCoverages;\r\n\t}", "public void doChecking() {\n \tdoCheckingDump();\n \tdoCheckingMatl();\n }", "public void check(){\n check1();\n check2();\n check3();\n check4();\n check5();\n check6();\n\t}", "public Checker getChecker() {\n return checker;\n }", "private void setChecks() {\n try {\n // Get status of theFile\n FTPReply statReply = client.sendCustomCommand(\"STAT \" + theFile);\n String[] messages = statReply.getMessages();\n\n // Get permissions from messages\n char[] perms = new char[9];\n messages[1].getChars(2,11,perms,0);\n\n // Set owner permission check boxes\n if (perms[0] == 'r') ownerRead.setSelected(true);\n if (perms[1] == 'w') ownerWrite.setSelected(true);\n if (perms[2] == 'x') ownerExe.setSelected(true);\n\n // Set group permission check boxes\n if (perms[3] == 'r') groupRead.setSelected(true);\n if (perms[4] == 'w') groupWrite.setSelected(true);\n if (perms[5] == 'x') groupExe.setSelected(true);\n\n // Set all permission check boxes\n if (perms[6] == 'r') allRead.setSelected(true);\n if (perms[7] == 'w') allWrite.setSelected(true);\n if (perms[8] == 'x') allExe.setSelected(true);\n\n } catch (IOException e) {\n e.printStackTrace();\n } catch (FTPIllegalReplyException e) {\n e.printStackTrace();\n }\n }", "boolean hasUses();", "public Collection fullValidationCheck ()\n\t{\n\t\tArrayList list = new ArrayList();\n\t\tIterator iterator = getFullValidationList().iterator();\n\n\t\twhile (iterator.hasNext())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t((ValidationComponent)iterator.next()).validate();\n\t\t\t}\n\t\t\tcatch (ModelValidationException e)\n\t\t\t{\n\t\t\t\tlist.add(e);\n\t\t\t}\n\t\t}\n\n\t\treturn Collections.unmodifiableCollection(list);\n\t}", "public AttrCheck getAttrchk()\n {\n return this.attrchk;\n }", "public static boolean isCheckingExtractions() {\r\n return checkingExtractions;\r\n }", "protected List getAllowableCheckinModes() throws DfException\r\n {\n IDfSessionManager smgr = this.getSessionManager();\r\n /*-dbg-*/Lg.dbg(\"getting app config\");\r\n String docbase = this.getSession().getDocbaseName();\r\n /*-dbg-*/Lg.dbg(\"get doctype/appname\");\r\n String doctype = this.getTypeName();\r\n /*-dbg-*/Lg.dbg(\"doc type: %s\",doctype);\r\n String appname = this.getString(\"m_application\");\r\n /*-dbg-*/Lg.dbg(\"app name: %s\",appname);\r\n MdtConfigService cs = MdtConfigService.getConfigService(smgr, docbase);\r\n /*-dbg-*/Lg.dbg(\"get lcname\");\r\n String lcname = this.getPolicyName();\r\n /*-dbg-*/Lg.dbg(\" --lc: %s\",lcname);\r\n /*-dbg-*/Lg.dbg(\"get state\");\r\n String statename = this.getCurrentStateName();\r\n /*-dbg-*/Lg.dbg(\" --state: %s\",statename);\r\n \r\n /*-dbg-*/Lg.dbg(\"get app's configuration from ConfigService\");\r\n Map config = (Map)cs.getAppConfig(appname);\r\n try { \r\n /*-dbg-*/Lg.dbg(\"get lc defs\");\r\n Map lifecycles = (Map)config.get(\"Lifecycles\");\r\n /*-dbg-*/Lg.dbg(\"get lc for docment\");\r\n Map lcycle = (Map)lifecycles.get(lcname);\r\n /*-dbg-*/Lg.dbg(\"get state defs\");\r\n Map states = (Map)lcycle.get(\"States\");\r\n /*-dbg-*/Lg.dbg(\"get state\");\r\n Map statedef = (Map)states.get(statename);\r\n /*-dbg-*/Lg.dbg(\"get checkin config for state\");\r\n Map checkininfo = (Map)statedef.get(\"Checkin\");\r\n /*-dbg-*/Lg.dbg(\"get state list\");\r\n List allowablemodes = (List)checkininfo.get(\"AllowableModes\");\r\n return allowablemodes;\r\n } catch (NullPointerException npe) {\r\n /*-dbg-*/Lg.dbg(\"state %s for lifecycle %s not configured for checkin controls, returning null\",statename,lcname); \r\n return null;\r\n } \r\n }", "protected void getEnsures() {\n System.out.println(\"\\nEnsures: \");\n /******************************************/\n String currToken = myIterator.next();\n while(!(currToken = myIterator.next()).equals(\"ensures\"));\n myEnsures = new Expression(myIterator, mye);\n /******************************************/\n System.out.println(\"\\n\");\n }", "public static int getRulesPassed(){\r\n\t\treturn rulesPassed;\r\n\t}", "public List<HealthCheck> getNodeChecks(String node);", "public Iterator getCheckIterator() {\r\n return checkResults.iterator();\r\n }", "boolean check() {\n return check(Env.empty);\n }", "public Checks(kotlin.reflect.jvm.internal.impl.name.Name r8, kotlin.reflect.jvm.internal.impl.util.Check[] r9, kotlin.jvm.functions.Function1<? super kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor, java.lang.String> r10) {\n /*\n r7 = this;\n java.lang.String r0 = \"name\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)\n java.lang.String r0 = \"checks\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r9, r0)\n java.lang.String r0 = \"additionalChecks\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r0)\n int r0 = r9.length\n kotlin.reflect.jvm.internal.impl.util.Check[] r6 = new kotlin.reflect.jvm.internal.impl.util.Check[r0]\n int r0 = r9.length\n r1 = 0\n java.lang.System.arraycopy(r9, r1, r6, r1, r0)\n r3 = 0\n r4 = 0\n r1 = r7\n r2 = r8\n r5 = r10\n r1.<init>((kotlin.reflect.jvm.internal.impl.name.Name) r2, (kotlin.text.Regex) r3, (java.util.Collection<kotlin.reflect.jvm.internal.impl.name.Name>) r4, (kotlin.jvm.functions.Function1<? super kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor, java.lang.String>) r5, (kotlin.reflect.jvm.internal.impl.util.Check[]) r6)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.util.Checks.<init>(kotlin.reflect.jvm.internal.impl.name.Name, kotlin.reflect.jvm.internal.impl.util.Check[], kotlin.jvm.functions.Function1):void\");\n }", "public List<DataChecker> getDataCheckers() {\n\t\treturn dataCheckers;\n\t}", "@Override\n\tpublic List<Sysmanager> findChecksys(Sysmanager sys) {\n\t\treturn sm.checksys(sys);\n\t}", "@Override\n protected Result check()\n {\n return this.gitLabModeInfos.isEmpty() ? Result.unhealthy(\"No GitLab modes available\") : Result.healthy();\n }", "Conditions getConditions();", "String getRules();", "public int[] getConditions() { return conditional; }", "public List<ConditionalRequirement> getConditions() {\r\n return conditions;\r\n }", "public String getCheckStatus() {\r\n return checkStatus;\r\n }", "@RequestMapping(value = \"urlchecks\", method = RequestMethod.GET)\n @ResponseBody\n @ResponseStatus(HttpStatus.OK)\n public List<UrlCheck> getUrlChecks()\n {\n System.out.println(\"urlchecks\");\n return urlChecker.getUrlChecks();\n }", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "List<WF3RulesBean> getWF3RulesBeans();", "private void setMultipleChecks() {\r\n\r\n checkNemenyi.setEnabled(true);\r\n checkShaffer.setEnabled(true);\r\n checkBergman.setEnabled(true);\r\n\r\n checkIman.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n }", "public Checks(java.util.Collection<kotlin.reflect.jvm.internal.impl.name.Name> r8, kotlin.reflect.jvm.internal.impl.util.Check[] r9, kotlin.jvm.functions.Function1<? super kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor, java.lang.String> r10) {\n /*\n r7 = this;\n java.lang.String r0 = \"nameList\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)\n java.lang.String r0 = \"checks\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r9, r0)\n java.lang.String r0 = \"additionalChecks\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r0)\n int r0 = r9.length\n kotlin.reflect.jvm.internal.impl.util.Check[] r6 = new kotlin.reflect.jvm.internal.impl.util.Check[r0]\n int r0 = r9.length\n r1 = 0\n java.lang.System.arraycopy(r9, r1, r6, r1, r0)\n r2 = 0\n r3 = 0\n r1 = r7\n r4 = r8\n r5 = r10\n r1.<init>((kotlin.reflect.jvm.internal.impl.name.Name) r2, (kotlin.text.Regex) r3, (java.util.Collection<kotlin.reflect.jvm.internal.impl.name.Name>) r4, (kotlin.jvm.functions.Function1<? super kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor, java.lang.String>) r5, (kotlin.reflect.jvm.internal.impl.util.Check[]) r6)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.util.Checks.<init>(java.util.Collection, kotlin.reflect.jvm.internal.impl.util.Check[], kotlin.jvm.functions.Function1):void\");\n }", "public Collection hasAuxClasss(Collection auxClasssToCheck);", "private boolean hasRequirements() {\n \t\tif (checkHasRequirements) {\n \t\t\thasRequirements = pullRequired(requiredInput, false);\n \t\t\tcheckHasRequirements = false;\n \t\t}\n \t\treturn hasRequirements;\n \t}", "@com.guidewire.pl.persistence.codegen.annotation.OverridesAccessor\n @gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getTotalNumChecks() {\n return ((com.guidewire.pl.domain.database.DBConsistCheckRunPublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pl.domain.database.DBConsistCheckRunPublicMethods\")).getTotalNumChecks();\n }", "@com.guidewire.pl.persistence.codegen.annotation.OverridesAccessor\n @gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getTotalNumChecks() {\n return ((com.guidewire.pl.domain.database.DBConsistCheckRunPublicMethods)__getDelegateManager().getImplementation(\"com.guidewire.pl.domain.database.DBConsistCheckRunPublicMethods\")).getTotalNumChecks();\n }", "public List<Establishment> establishmentCanTrade() {\n List<Establishment> can_take = new ArrayList<> ();\n for(int i = 0; i < Establishments.size(); i++) {\n Establishment check = Establishments.get(i);\n if(check.getName().equals(\"Wheat Field\") || check.getName().equals(\"Bakery\")) {\n if (check.getAvailable() > 1) {\n can_take.add(check);\n }\n } else if(!check.getColor().equals(Card.Color.PURPLE)) {\n can_take.add(check);\n }\n }\n return can_take;\n }", "public boolean has_unprocessed_rules();", "public String getCheckStatus() {\n\t\treturn checkStatus;\n\t}", "public String getCheckStatus() {\n\t\treturn checkStatus;\n\t}", "public void verifyAllCheckBoxIsCheckOrUnCheck(boolean isCheck) {\n try {\n boolean result = true;\n boolean checkEmptyToDoListRow = checkListIsEmpty(eleToDoRowList);\n boolean checkEmptyToDoCompleteListRow = checkListIsEmpty(eleToDoCompleteRowList);\n if (!checkEmptyToDoListRow) {\n result = checkAllCheckBoxIsCheckOrUnCheck(eleToDoCheckboxRow, isCheck);\n }\n if (!checkEmptyToDoCompleteListRow) {\n if (result)\n checkAllCheckBoxIsCheckOrUnCheck(eleToDoCompleteCheckboxRow, isCheck);\n }\n Assert.assertTrue(result, \"All checkbox do not check/uncheck\");\n if (isCheck) {\n NXGReports.addStep(\"All check box are check in ToDo page\", LogAs.PASSED, null);\n } else {\n NXGReports.addStep(\"All check box are uncheck in ToDo page\", LogAs.PASSED, null);\n }\n\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n if (isCheck) {\n NXGReports.addStep(\"TestScript Failed: All check box are not check in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n } else {\n NXGReports.addStep(\"TestScript Failed: All check box are not uncheck in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }\n }", "@Override\n public Set<PredicateType> getPredicateTypes(String check) {\n return null;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.ComplianceCheckResult getComplianceCheckResult();", "public boolean hasAllAuxClasss(Collection auxClasssToCheck);", "boolean hasConditionList();", "private void setOneAllChecks() {\r\n\r\n checkIman.setEnabled(true);\r\n checkBonferroni.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n checkHochberg.setEnabled(true);\r\n checkHommel.setEnabled(true);\r\n checkHolland.setEnabled(true);\r\n checkRom.setEnabled(true);\r\n checkFinner.setEnabled(true);\r\n checkLi.setEnabled(true);\r\n\r\n }", "public String getRules() { \n\t\treturn getRulesElement().getValue();\n\t}", "public boolean check()\n\t{\n\t\tif (kinect.isTracking())\n\t\t{\n\t\t\tboolean result = true;\n\t\t\tfor (int i = 0; i < rules.size(); ++i)\n\t\t\t{\n\t\t\t\tBodyPoseRule rule = rules.get(i);\n\t\t\t\tresult = result && rule.check();\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\treturn false;\n\t}", "public static List getProjectsUsingConfig(ICheckConfiguration checkConfig)\n throws CheckstylePluginException\n {\n \n List result = new ArrayList();\n \n IWorkspace workspace = ResourcesPlugin.getWorkspace();\n IProject[] projects = workspace.getRoot().getProjects();\n for (int i = 0; (i < projects.length); i++)\n {\n if (ProjectConfigurationFactory.getConfiguration(projects[i])\n .isConfigInUse(checkConfig))\n {\n result.add(projects[i]);\n }\n }\n \n return result;\n }", "@Override\r\n\tpublic int getRowCount() {\n\t\treturn checks.size();\r\n\t}", "public String getCheckFlag() {\n return checkFlag;\n }", "public java.lang.String getCheckOpinion () {\n\t\treturn checkOpinion;\n\t}", "private void checkEnabled() {\n }", "private boolean checkValid() {\n\t\tif(openRadio.isSelected()) {\n\t\t\t//Open loop mode.\n\t\t\treturn checkInfusionRate() && checkPumpSelected() && checkMonitorSelected();\n\t\t} else {\n\t\t\t//Closed loop mode.\n\t\t\t//Check patient selected\n\t\t\t//Check QCore selected\n\t\t\t//Check BP monitor selected\n\t\t\t//Check target BP range\n\t\t\t//Check infusion rate.\n\t\t\treturn checkTargetBPRange() && checkInfusionRate() && checkPumpSelected() && checkMonitorSelected();\n\t\t}\n\t}", "public boolean checkRules() {\n for (Rule rule: rules) {\n if (! rule.checkRegel(board)) { //problem with a rule\n return false;\n }\n }\n return true;\n }", "private ValidationResult allCriteriaSatisfied(FormCheckerElement elem) {\n\t\tfor (Criterion criterion : elem.getCriteria()) {\n\t\t\tValidationResult vr = criterion.validate(elem);\n\t\t\tif (!vr.isValid()) {\n\t\t\t\treturn vr;\n\t\t\t}\n\t\t}\n\n\t\treturn ValidationResult.ok();\n\t}", "boolean getIsChecked();", "public String getCheckFlag() {\r\n return checkFlag;\r\n }", "public static void set_checks2(){\n\t\t\n\t\t//Check if difficulty\n\t\n\t\t\t//Check if user is batting\n\t\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\t\tif(PlayArena2.usershot2==PlayArena2.compshot2){\n\t\t\t\t\t\n\t\t\t\t\tcheck_if_factor2=true;}\n\t\t\t\telse if(PlayArena2.usershot2==6 && (PlayArena2.compshot2==2 || PlayArena2.compshot2==3))\n\t\t\t\t\tcheck_if_factor2=true;\n\t\t\t\telse if(PlayArena2.usershot2==4 && (PlayArena2.compshot2==2 ))\n\t\t\t\t\tcheck_if_factor2=true;\n\t\t\t\telse\n\t\t\t\t\tcheck_if_factor2=false;\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(PlayArena2.usershot2==PlayArena2.compshot2){\n\t\t\t\t\t\n\t\t\t\t\tcheck_if_factor2=true;}\n\t\t\t\telse\n\t\t\t\tcheck_if_factor2=false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t//Wicket?\nif(check_if_factor2){\n\t\t\t\t\n\t\t\t\tcheck_if_wicket2=true;\n\t\t\t\tint temp_wickets=0;\n\t\t\t\t\n\t\t\t\tif(wicket_2==2){\n\t\t\t\t\t\t temp_wickets=3;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Check Striker while wicket fell\n\t\t\tif(temp_wickets!=3)\n\t\t\t{\n\t\t\t\tif(Striker.equals(bat1))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\t\t\t\t\tStriker=PlayBrain1.myteam[++list_pointer];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\tStriker=PlayBrain1.oppteam[++list_pointer];\n\t\t\t\t\t\t\t}\n\t\t\t\t\tbat1=Striker;\n\t\t\t\t\t\n\t\t\t\t//\tSystem.out.println(Striker);\n\t\t\t\t\t//System.out.println(NonStriker);\n\t\t\t\t\t//System.out.println(wicket_1);\n\t\t\t\t}\n\t\t\t\t//Else of Striker\n\t\t\t\telse{\n\t\t\t\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\t\t\t\tStriker=PlayBrain1.myteam[++list_pointer];\n\t\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tStriker=PlayBrain1.oppteam[++list_pointer];\n\t\t\t\t\t\t}\n\t\t\t\tbat2=Striker;\n\t\t\t\t//System.out.println(Striker);\n\t\t\t\t//System.out.println(NonStriker);\n\t\t\t\t}\n\t\t\t\tif(over_ball_2!=5)\t\n\t\t\t\tcheck_if_strike_change2=false;\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"over strike change\");\n\t\t\t\t\tcheck_if_strike_change2=true;}\n\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t//System.out.println(\"no wicket zone\");\n\t\t\t\tcheck_if_wicket2=false;\n\t\t\t\t\n\t\t\t\t//Strike Change?\n\t\t\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\t\t\tif(PlayArena2.usershot2%2!=0 && over_ball_2!=5){\n\t\t\t\t\t\tcheck_if_strike_change2=true;\n\t\t\t\t\t\t}\n\t\t\t\t\telse if(PlayArena2.usershot2%2==0 && over_ball_2==5){\n\t\t\t\t\t\tcheck_if_strike_change2=true;\n\t\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tcheck_if_strike_change2=false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(PlayArena2.compshot2%2!=0 && over_ball_2!=5){\n\t\t\t\t\t\tcheck_if_strike_change2=true;\n\t\t\t\t\t}\n\t\t\t\t\telse if(PlayArena2.compshot2%2==0 && over_ball_2==5){\n\t\t\t\t\t\tcheck_if_strike_change2=true;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tcheck_if_strike_change2=false;\n\t\t\t\t}\n\t\t\t}\n\n\t}", "void check()\n {\n final ScopeSymbolValidator validator = new ScopeSymbolValidator();\n for (ServiceMethod method : methods)\n validator.validate(method.getName(), method);\n }", "private boolean isValid(){\n\n Set<ResourceSingle> checkSet = new HashSet<>();\n return shelves.stream()\n .map(Shelf::getCurrentType)\n .filter(Objects::nonNull)\n .allMatch(checkSet::add);\n }", "protected void evaluateConditions()\n {\n ensureConditionContinuity() ;\n checkComponentList() ;\n\n for ( int liCondCtr = 1 ; liCondCtr <= 5 ; liCondCtr++ )\n {\n checkCondition( liCondCtr ) ;\n } /* end for */\n\n }", "public static int getTotalCheck(boolean archive,boolean checked){\n\t\tint checks=0;\n\t\tfor (int i=0 ; i<ItemListController.getItemListInstance().size();i++){\n\t\t\t\tif (ItemListController.getItemListInstance().get(i).getArchived()==archive &&\n\t\t\t\t\t\t\tItemListController.getItemListInstance().get(i).getCheckmark()==checked){\n\t\t\t\t\t\t\tchecks++;\n\t\t\t\t}\n\t\t}\n\t\treturn checks;\n\t}", "private void armarListaCheck() {\n listaCheck = new ArrayList();\n listaCheck.add(chkBici);\n listaCheck.add(chkMoto);\n listaCheck.add(chkAuto);\n }", "private ArrayList<String> getCheckboxes() {\n ArrayList<CheckBox> checkBoxes = new ArrayList<>();\n String[] names = {\"PNEU\",\"OIL\",\"BATTERY\",\"AC\",\"WIPER\",\"COMPLETE\",\"GEOMETRY\"}; //LINK NA DB ?\n checkBoxes.addAll(Arrays.asList(pneuCB, oilCB, batCB, acCB, wipCB, comCB, geoCB));\n ArrayList<String> result = new ArrayList<>();\n for (int i = 0; i < checkBoxes.size(); i++) {\n if(checkBoxes.get(i).isSelected()){\n result.add(names[i]);\n }\n }\n return result;\n }", "public boolean getGeneratedCheck(){\n return generatedCheck;\n }", "private boolean CheckAllRequiredFields() {\n\t\tboolean res = true;\n\t\tres &= CheckParkSelection();\n\t\tres &= CheckDateSelection();\n\t\tres &= CheckVisitorHour();\n\t\tres &= CheckEmail();\n\t\tres &= CheckPhoneNumber();\n\t\treturn res;\n\t}", "public String getToolcheckstatus() {\r\n return toolcheckstatus;\r\n }", "private boolean checkForAction(){\n IndividualAction thisAction = checkTriggers();\n if(thisAction.getTriggers() == null){\n return false;\n }\n if(!checkSubjects(thisAction.getSubjects())){\n return false;\n }\n doConsumed(thisAction.getConsumed());\n doProduce(thisAction.getProduced());\n results.add(thisAction.getNarration());\n\n return true;\n }", "public List<ProfileTaskChecker> getProfileTaskCheckers() {\n return profileTaskCheckers;\n }", "private boolean[] getCheckBoxes() {\n\t\tHBox n4 = (HBox) uicontrols.getChildren().get(4);\n\t\tCheckBox b1 = (CheckBox) n4.getChildren().get(0);\n\t\tCheckBox b2 = (CheckBox) n4.getChildren().get(1);\n\t\tCheckBox b3 = (CheckBox) n4.getChildren().get(2);\n\t\tCheckBox b4 = (CheckBox) n4.getChildren().get(3);\n\t\tboolean[] boxes = { b1.isSelected(),b2.isSelected(),b3.isSelected(),b4.isSelected()};\n\t\treturn boxes;\n\t}", "private Rule honorRules(InstanceWaypoint context){\n \t\t\n \t\tStyle style = getStyle(context);\n \t\tRule[] rules = SLD.rules(style);\n \t\t\n \t\t//do rules exist?\n \t\t\n \t\tif(rules == null || rules.length == 0){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\t\n \t\t//sort the elserules at the end\n \t\tif(rules.length > 1){\n \t\t\trules = sortRules(rules);\n \t\t}\n \t\t\n \t\t//if rule exists\n \t\tInstanceReference ir = context.getValue();\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\tInstance inst = is.getInstance(ir);\n \t\t\t\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].getFilter() != null){\t\t\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(rules[i].getFilter().evaluate(inst)){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t//if a rule exist without a filter and without being an else-filter,\n \t\t\t//the found rule applies to all types\n \t\t\telse{\n \t\t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//if there is no appropriate rule, check if there is an else-rule\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\treturn rules[i];\n \t\t\t}\n \t\t}\n \t\t\n \t \n \t\t//return null if no rule was found\n \t\treturn null;\n \t\n \t}", "boolean hasWarnings();", "private Set<Condition> getConditions(List<RuleInstance> rules)\n{\n Set<Condition> conds = new HashSet<Condition>();\n\n getTimeConditions(rules,conds);\n getSensorConditions(rules,conds);\n getCalendarConditions(rules,conds);\n\n return null;\n}", "int getComparisons();", "public ArrayList<BattleEffect> getEffectsToApply() {\n return effectsToApply;\n }", "public void checkThreshold() {\n List<Metric> metrics = getMetrics();\n boolean isFail = false;\n for (Iterator<Metric> mit = metrics.iterator(); mit.hasNext();) {\n Metric m = (Metric) mit.next();\n logMetric(m);\n if (m.getResult() == MetricResult.METRIC_FAIL\n || m.getResult() == MetricResult.METRIC_NOTRUN) {\n isFail = true;\n }\n // Update the threshold when the metrics is success. or the metrics\n // is no need to check\n if (m.getResult() == MetricResult.METRIC_SUCCESS\n || m.getResult() == MetricResult.METRIC_NOCHECK\n || m.getResult() == MetricResult.METRIC_NULL) {\n try {\n updateThreshold(m.getName(), m.getNewValue());\n } catch (Exception e) {\n // TODO: should we throw other exception when failed to\n // update threshold?\n isFail = true;\n }\n }\n }\n if (isFailOnError() && isFail) {\n throw new BuildException(\"Metics check failed\");\n }\n }", "public ArrayList<JCheckBox> getCheckBox() {\n\t\treturn check;\n\t}", "public void checkOrUnCheckAllCheckBox(boolean isCheck) {\n boolean result = true;\n boolean checkEmptyToDoListRow = checkListIsEmpty(eleToDoRowList);\n boolean checkEmptyToDoCompleteListRow = checkListIsEmpty(eleToDoCompleteRowList);\n // verify \"CheckAll\" check box is checked when all check box are check\n //// check all check box in ToDo page\n if (!checkEmptyToDoListRow) {\n result = checkAllCheckBox(eleToDoCheckboxRow, isCheck);\n if (result == false) {\n if (isCheck) {\n NXGReports.addStep(\"TestScript Failed: can not check on all check box has not complete status in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n } else {\n NXGReports.addStep(\"TestScript Failed: can not uncheck on all check box has not complete status in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n return;\n }\n }\n\n if (!checkEmptyToDoCompleteListRow) {\n result = checkAllCheckBox(eleToDoCompleteCheckboxRow, isCheck);\n if (result == false) {\n if (isCheck) {\n NXGReports.addStep(\"TestScript Failed: can not check on all check box has complete status in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n } else {\n NXGReports.addStep(\"TestScript Failed: can not uncheck on all check box has complete status in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n return;\n }\n }\n if (result) {\n NXGReports.addStep(\"Check all check box in ToDo page\", LogAs.PASSED, null);\n } else {\n NXGReports.addStep(\"Uncheck all check box in ToDo page\", LogAs.PASSED, null);\n }\n }", "ChecklistFactory getChecklistFactory();", "@Override\r\n\tArrayList<String> checkData() {\n\t\tArrayList<String> cf = new ArrayList<String>();\r\n\t\tboolean errorSuperficie = false;\r\n\t\t\r\n\t\t\r\n\t\tfor (Entry<String, String[]> entry : request.getParameterMap().entrySet()) {\r\n\r\n\t\t\tif(entry.getKey().indexOf(\"PR\") != -1){\r\n\t\t\t\t\r\n\t\t\t\tif(!isPositive0Included(request.getParameter(entry.getKey()))){\r\n\t\t\t\t\terrorSuperficie = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif(errorSuperficie){\r\n\t\t\tcf.add(\"Las superficies tienen que ser positivas.\");\r\n\t\t}\r\n\r\n\t\t\r\n\t\treturn cf;\r\n\t}", "public boolean isiHaveCheck() {\n return iHaveCheck;\n }", "private String needs() {\r\n\t\tint[] needs=tile.getLifeNeedsMet();\r\n\t\tString out=\"Needs Met: \"+needs[0]+\" || Needs Not Met: \"+needs[1];\r\n\t\treturn out;\r\n\t}" ]
[ "0.6670621", "0.6083705", "0.58562005", "0.5701546", "0.56810045", "0.5548014", "0.5539023", "0.55353886", "0.5526278", "0.542206", "0.5331017", "0.53227496", "0.52899", "0.52594376", "0.5210343", "0.51944864", "0.5171095", "0.5137055", "0.5128407", "0.51121646", "0.51102066", "0.5095896", "0.5091189", "0.5088099", "0.5065536", "0.506172", "0.5053617", "0.50475365", "0.50450814", "0.50381565", "0.501926", "0.49983633", "0.4987907", "0.49698782", "0.4968496", "0.4961185", "0.49341685", "0.49051744", "0.49027815", "0.48946607", "0.48720303", "0.48707795", "0.48599392", "0.48528203", "0.4847031", "0.4835457", "0.4835457", "0.4821182", "0.4818978", "0.48020375", "0.47986406", "0.4788138", "0.4777607", "0.47678444", "0.47661102", "0.47512653", "0.47453293", "0.47453293", "0.4730075", "0.47280052", "0.47212532", "0.4720635", "0.4720545", "0.4720342", "0.47164202", "0.4715499", "0.47121057", "0.4694278", "0.4690463", "0.4686549", "0.46791935", "0.46781385", "0.46765882", "0.46757433", "0.46727756", "0.46719795", "0.46646708", "0.4651709", "0.4651027", "0.46441084", "0.46087247", "0.4605633", "0.46001", "0.4597372", "0.45918974", "0.4590755", "0.45891088", "0.45836732", "0.45803425", "0.4573256", "0.457164", "0.45699322", "0.45628005", "0.45554003", "0.45475352", "0.45462024", "0.45452785", "0.454086", "0.4540592", "0.45390856", "0.45364276" ]
0.0
-1
Sets the checks if is applied.
public void setIsApplied(byte isApplied) { this.isApplied = isApplied; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setMultipleChecks() {\r\n\r\n checkNemenyi.setEnabled(true);\r\n checkShaffer.setEnabled(true);\r\n checkBergman.setEnabled(true);\r\n\r\n checkIman.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n }", "private void setOneAllChecks() {\r\n\r\n checkIman.setEnabled(true);\r\n checkBonferroni.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n checkHochberg.setEnabled(true);\r\n checkHommel.setEnabled(true);\r\n checkHolland.setEnabled(true);\r\n checkRom.setEnabled(true);\r\n checkFinner.setEnabled(true);\r\n checkLi.setEnabled(true);\r\n\r\n }", "private void loadAlwaysChecks() {\n alwaysChecks.addEnabled(new FlyAllCheck(), new WorldPermissionCheck(true), new RegionPermissionCheck(true));\n // CrazyEnchants Check\n if (pluginLoading(\"CrazyEnchantments\") && pm.getPlugin(\"CrazyEnchantments\").getDescription().getVersion().startsWith(\"1.8\")) {\n alwaysChecks.addEnabled(new CrazyEnchantmentsCheck());\n }\n // AdvancedEnchantments Check\n if (pluginLoading(\"AdvancedEnchantments\")) {\n alwaysChecks.addEnabled(new AdvancedEnchantmentsCheck(pl));\n }\n // SaberFactions Check\n if (pluginLoading(\"Factions\") && pm.getPlugin(\"Factions\").getDescription().getAuthors().contains(\"Driftay\")) {\n alwaysChecks.addEnabled(new SaberFactionsCheck());\n }\n // FabledSkyblock Check\n if (pluginLoading(\"FabledSkyBlock\")) {\n alwaysChecks.addEnabled(new FabledSkyblockCheck());\n }\n\n /* DISABLE */\n // World/Region Checks\n alwaysChecks.addDisabled(new WorldPermissionCheck(false), new RegionPermissionCheck(false));\n // Combat Checks\n loadCombatChecks();\n // Nearby Checks\n if (pl.getConfManager().isNearbyCheck()) {\n alwaysChecks.addDisabled(pl.getConfManager().isNearbyCheckEnemies() ? new NearbyEnemyCheck(pl) : new NearbyCheck(pl));\n }\n // Height Limit Check\n if (pl.getConfManager().getHeightLimit() != -1) {\n alwaysChecks.addDisabled(new HeightLimitCheck());\n }\n }", "@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}", "private void setChecks() {\n try {\n // Get status of theFile\n FTPReply statReply = client.sendCustomCommand(\"STAT \" + theFile);\n String[] messages = statReply.getMessages();\n\n // Get permissions from messages\n char[] perms = new char[9];\n messages[1].getChars(2,11,perms,0);\n\n // Set owner permission check boxes\n if (perms[0] == 'r') ownerRead.setSelected(true);\n if (perms[1] == 'w') ownerWrite.setSelected(true);\n if (perms[2] == 'x') ownerExe.setSelected(true);\n\n // Set group permission check boxes\n if (perms[3] == 'r') groupRead.setSelected(true);\n if (perms[4] == 'w') groupWrite.setSelected(true);\n if (perms[5] == 'x') groupExe.setSelected(true);\n\n // Set all permission check boxes\n if (perms[6] == 'r') allRead.setSelected(true);\n if (perms[7] == 'w') allWrite.setSelected(true);\n if (perms[8] == 'x') allExe.setSelected(true);\n\n } catch (IOException e) {\n e.printStackTrace();\n } catch (FTPIllegalReplyException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void preCheck(CheckCommand checkCommand) throws Exception {\n\r\n\t}", "private void loadBypassAndTrailChecks() {\n bypassChecks.add(new BypassPermissionCheck());\n // Spectator Check\n SpectatorModeCheck spectatorModeCheck = new SpectatorModeCheck();\n bypassChecks.add(spectatorModeCheck);\n noTrailChecks.add(spectatorModeCheck);\n // Vanish Checks\n HashSet<Check> vanishChecks = new HashSet<>();\n\n if (pluginLoading(\"PremiumVanish\") || pluginLoading(\"SuperVanish\")) {\n vanishChecks.add(new PremiumSuperVanishCheck());\n } else if (pluginLoading(\"Essentials\")) {\n vanishChecks.add(new EssentialsVanishCheck());\n }\n\n if (!vanishChecks.isEmpty() && pl.getConfManager().isVanishBypass()) {\n bypassChecks.addAll(vanishChecks);\n noTrailChecks.addAll(vanishChecks);\n }\n // Invisibility potion Check\n noTrailChecks.add(new InvisibilityPotionCheck());\n /* DISABLE EMPTY */\n }", "public void doChecking() {\n \tdoCheckingDump();\n \tdoCheckingMatl();\n }", "private void initChecks(){\r\n\t \r\n\t //functions\r\n\t if(ckFun == null)\r\n\t ckFun\t= new JAbstractCheckAll(this) {\r\n\t\t\t/**\r\n\t\t * \r\n\t\t */\r\n\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void OnUnCheck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(\"Entered in ckFun OnUnCheck\");\r\n\t\t\t\tchecAll(getFunTbl().getModel().getData(), false);\r\n\t\t\t\tgetFunTbl().updateUI();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void OnCkeck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tSystem.out.println(\"Entered in ckFun OnCheck\");\r\n\t\t\t\tchecAll(getFunTbl().getModel().getData(), true);\r\n\t\t\t\tgetFunTbl().updateUI();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t //packages\r\n\t if(ckPack == null)\r\n\t ckPack = new JAbstractCheckAll(this) {\r\n\t\t\t/**\r\n\t\t * \r\n\t\t */\r\n\t\t\t\r\n\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void OnUnCheck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tchecAll(getPackTbl().getModel().getData(), false);\r\n\t\t\t\tgetPackTbl().updateUI();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void OnCkeck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tchecAll(getPackTbl().getModel().getData(), true);\r\n\t\t\t\tgetPackTbl().updateUI();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t//procedures\r\n\t\tif(ckProc == null)\r\n\t\tckProc = new JAbstractCheckAll(this) {\r\n\t\t\t/**\r\n\t\t * \r\n\t\t */\r\n\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void OnUnCheck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tchecAll(getProcTbl().getModel().getData(), false);\r\n\t\t\t\tgetProcTbl().updateUI();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void OnCkeck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tchecAll(getProcTbl().getModel().getData(), true);\r\n\t\t\t\tgetProcTbl().updateUI();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t//schemas\r\n\t\tif(ckSchema == null) \r\n\t\t\tckSchema = new JAbstractCheckAll(this) {\r\n\t\t\t/**\r\n\t\t * \r\n\t\t */\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void OnUnCheck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tchecAll(getSchTbl().getModel().getData(), false);\r\n\t\t\t\tgetSchTbl().updateUI();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void OnCkeck(Object o) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tchecAll(getSchTbl().getModel().getData(), true);\r\n\t\t\t\tgetSchTbl().updateUI();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t//set check texts\r\n\t\tckFun.setText(\"Select All\");\r\n\t\tckPack.setText(\"Select All\");\r\n\t\tckSchema.setText(\"Select All\");\r\n\t\tckProc.setText(\"Select All\");\r\n\t}", "public static void set_checks2(){\n\t\t\n\t\t//Check if difficulty\n\t\n\t\t\t//Check if user is batting\n\t\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\t\tif(PlayArena2.usershot2==PlayArena2.compshot2){\n\t\t\t\t\t\n\t\t\t\t\tcheck_if_factor2=true;}\n\t\t\t\telse if(PlayArena2.usershot2==6 && (PlayArena2.compshot2==2 || PlayArena2.compshot2==3))\n\t\t\t\t\tcheck_if_factor2=true;\n\t\t\t\telse if(PlayArena2.usershot2==4 && (PlayArena2.compshot2==2 ))\n\t\t\t\t\tcheck_if_factor2=true;\n\t\t\t\telse\n\t\t\t\t\tcheck_if_factor2=false;\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(PlayArena2.usershot2==PlayArena2.compshot2){\n\t\t\t\t\t\n\t\t\t\t\tcheck_if_factor2=true;}\n\t\t\t\telse\n\t\t\t\tcheck_if_factor2=false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t//Wicket?\nif(check_if_factor2){\n\t\t\t\t\n\t\t\t\tcheck_if_wicket2=true;\n\t\t\t\tint temp_wickets=0;\n\t\t\t\t\n\t\t\t\tif(wicket_2==2){\n\t\t\t\t\t\t temp_wickets=3;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Check Striker while wicket fell\n\t\t\tif(temp_wickets!=3)\n\t\t\t{\n\t\t\t\tif(Striker.equals(bat1))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\t\t\t\t\tStriker=PlayBrain1.myteam[++list_pointer];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\tStriker=PlayBrain1.oppteam[++list_pointer];\n\t\t\t\t\t\t\t}\n\t\t\t\t\tbat1=Striker;\n\t\t\t\t\t\n\t\t\t\t//\tSystem.out.println(Striker);\n\t\t\t\t\t//System.out.println(NonStriker);\n\t\t\t\t\t//System.out.println(wicket_1);\n\t\t\t\t}\n\t\t\t\t//Else of Striker\n\t\t\t\telse{\n\t\t\t\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\t\t\t\tStriker=PlayBrain1.myteam[++list_pointer];\n\t\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tStriker=PlayBrain1.oppteam[++list_pointer];\n\t\t\t\t\t\t}\n\t\t\t\tbat2=Striker;\n\t\t\t\t//System.out.println(Striker);\n\t\t\t\t//System.out.println(NonStriker);\n\t\t\t\t}\n\t\t\t\tif(over_ball_2!=5)\t\n\t\t\t\tcheck_if_strike_change2=false;\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"over strike change\");\n\t\t\t\t\tcheck_if_strike_change2=true;}\n\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t//System.out.println(\"no wicket zone\");\n\t\t\t\tcheck_if_wicket2=false;\n\t\t\t\t\n\t\t\t\t//Strike Change?\n\t\t\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\t\t\tif(PlayArena2.usershot2%2!=0 && over_ball_2!=5){\n\t\t\t\t\t\tcheck_if_strike_change2=true;\n\t\t\t\t\t\t}\n\t\t\t\t\telse if(PlayArena2.usershot2%2==0 && over_ball_2==5){\n\t\t\t\t\t\tcheck_if_strike_change2=true;\n\t\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tcheck_if_strike_change2=false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(PlayArena2.compshot2%2!=0 && over_ball_2!=5){\n\t\t\t\t\t\tcheck_if_strike_change2=true;\n\t\t\t\t\t}\n\t\t\t\t\telse if(PlayArena2.compshot2%2==0 && over_ball_2==5){\n\t\t\t\t\t\tcheck_if_strike_change2=true;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tcheck_if_strike_change2=false;\n\t\t\t\t}\n\t\t\t}\n\n\t}", "public abstract void setCheck(Boolean check);", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "private void unsetMultipleChecks() {\r\n\r\n checkNemenyi.setEnabled(false);\r\n checkShaffer.setEnabled(false);\r\n checkBergman.setEnabled(false);\r\n\r\n }", "private void checkChanges() {\n CertificationStyleWrapper wrapper = (CertificationStyleWrapper) cbCertificationStyle.getSelectedItem();\n if (wrapper != null && settings.getCertificationStyle() != wrapper.style) {\n settings.setCertificationStyle(wrapper.style);\n }\n\n // set NFO filenames\n settings.clearNfoFilenames();\n if (chckbxTvShowNfo1.isSelected()) {\n settings.addNfoFilename(TvShowNfoNaming.TV_SHOW);\n }\n\n settings.clearEpisodeNfoFilenames();\n if (chckbxEpisodeNfo1.isSelected()) {\n settings.addEpisodeNfoFilename(TvShowEpisodeNfoNaming.FILENAME);\n }\n }", "protected void setCheckedBoxes() {\n checkBoxIfInPreference(findViewById(R.id.concordiaShuttle));\n checkBoxIfInPreference(findViewById(R.id.elevators));\n checkBoxIfInPreference(findViewById(R.id.escalators));\n checkBoxIfInPreference(findViewById(R.id.stairs));\n checkBoxIfInPreference(findViewById(R.id.accessibilityInfo));\n checkBoxIfInPreference(findViewById(R.id.stepFreeTrips));\n }", "private void unsetOneAllChecks() {\r\n\r\n checkIman.setEnabled(false);\r\n checkBonferroni.setEnabled(false);\r\n checkHolm.setEnabled(false);\r\n checkHochberg.setEnabled(false);\r\n checkHommel.setEnabled(false);\r\n checkHolland.setEnabled(false);\r\n checkRom.setEnabled(false);\r\n checkFinner.setEnabled(false);\r\n checkLi.setEnabled(false);\r\n\r\n }", "@Override\r\n protected void initializeRules(List<AbstractValidationCheck> rules) {\n\r\n }", "public void check(){\n check1();\n check2();\n check3();\n check4();\n check5();\n check6();\n\t}", "private void enableCheckChange() {\n this.tree.addListener(Events.CheckChange, new GPCheckListener(visitorDisplay));\n }", "@PostConstruct\n protected void checkInitialization() {\n ValidationUtility.checkNotNullNorEmpty(profileTaskCheckers, \"profileTaskCheckers\",\n ProfileActionConfigurationException.class);\n ValidationUtility.checkNotNullElements(profileTaskCheckers, \"profileTaskCheckers\",\n ProfileActionConfigurationException.class);\n }", "private void automaticModeChecks(){\n // turn on lights if underground\n if (this.isUnderground()){ this.selectedTrain.setLights(1);}\n // set heat\n if (this.selectedTrain.getTemp() <= 40.0){this.selectedTrain.setThermostat(60.0);}\n else if (this.selectedTrain.getTemp() >= 80){ this.selectedTrain.setThermostat(50.0);}\n }", "void setManualCheck (boolean value);", "public void setCheckBoxes() {\n\t\tdeliveredCheckBox.setSelected(order.isDelivered());\n\t\tif (deliveredCheckBox.isSelected() || (!order.isPrepared())) {\n\t\t\tdeliveredCheckBox.setDisable(true);\n\t\t}\n\t}", "private void checks(){\n if (check(true)){\n changeBottomPane(\"White is in check! :(\");\n }\n else if (check(false)){\n changeBottomPane(\"Black is in check!!!!!!!!!!!\");\n }\n else{\n changeBottomPane(\"\");\n }\n }", "protected void checkConfiguration() {\n \tsuper.checkConfiguration();\n \t\n if (this.customizations == null) {\n this.customizations = new ArrayList<String>();\n }\n if (this.options == null) {\n this.options = new HashMap<String, String>();\n }\n if (this.sourceDirectories == null) {\n \tthis.sourceDirectories = new ArrayList<String>();\n \tthis.sourceDirectories.add(DEFAULT_SOURCE_DIRECTORY);\n }\n }", "@Override\n\tpublic void check() throws Exception {\n\t}", "private void applyOrSaveRules() {\n final boolean enabled = Api.isEnabled(this);\n final Context ctx = getApplicationContext();\n\n Api.generateRules(ctx, Api.getApps(ctx, null), true);\n\n if (!enabled) {\n Api.setEnabled(ctx, false, true);\n setDirty(false);\n return;\n }\n Api.updateNotification(Api.isEnabled(getApplicationContext()), getApplicationContext());\n new RunApply().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }", "protected void doAdditionalChecking(Contributor contr) {\n }", "public void doRequiredCheck() {\n\t\tthis.checkValue(listener);\n\t}", "public void setup(){\n\t\tgui.getCenter().setText(\"No book info is yet available. Submit some!\");\n\t\tconstrain(gui.getGroups());\n\t\t\n\t\tgui.getMasterCheck().selectedProperty().addListener(new ChangeListener<Boolean>() {\n\t\t @Override\n\t\t public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {\n\t\t for (InputGroup group: gui.getGroups()){\n\t\t \tgroup.getCheck().setSelected(newValue);\n\t\t }\n\t\t }\n\t\t});\n\t}", "private void checkEnabled() {\n }", "public void setIsCheck(Boolean isCheck)\r\n\t{\r\n\t\tthis.isCheck = isCheck;\r\n\t}", "private void setValidators() {\n getUtils().addNoNumbers(getOriginTxt(), getValidatorTxt());\n getUtils().addNoNumbers(getDestinationTxt(), getValidatorTxt());\n getUtils().addNoNumbers(getCollectionPlaceTxt(), getValidatorTxt());\n getUtils().addNoNumbers(getDeliveryPlaceTxt(), getValidatorTxt());\n getUtils().eurosListener(getTravelValueTxt(), getValidatorTxt());\n getUtils().eurosListener(getMoneyforDriverTxt(), getValidatorTxt());\n getUtils().eurosListener(getCustomsTxt(), getValidatorTxt());\n getUtils().eurosListener(getOtherExpensesTxt(), getValidatorTxt());\n getUtils().eurosListener(getShippingExpensesTxt(), getValidatorTxt());\n //No listenerValidator for distance because, finally it is a string\n// getUtils().distanceListener(getDistanceTxt(), getValidatorTxt());\n getUtils().dateValidator(getDateTxt(), getValidatorTxt());\n getUtils().timeListener(getArriveHourTxt(), getValidatorTxt());\n getUtils().timeListener(getExitHourTxt(), getValidatorTxt());\n getUtils().timeListener(getProvidedHourTxt(), getValidatorTxt());\n\n }", "public boolean getMyChecksExtists(){\n return my_checks_exists;\n }", "public static void enableChecking(boolean enable) {\n checking = enable;\n }", "public void setCheckMethod(String checkMethod) {\r\n this.checkMethod = checkMethod == null ? null : checkMethod.trim();\r\n }", "private void updateViewModelValidatorSupports()\n {\n if (myValidator == null)\n {\n return;\n }\n Conditional cond = myOperator.get();\n if (cond == Conditional.IN_LIST || cond == Conditional.NOT_IN_LIST || cond == Conditional.LIKE_LIST\n || cond == Conditional.NOT_LIKE_LIST)\n {\n myCriterionValue.setValidatorSupport(new TextModelListValidatorSupport(myCriterionValue, myValidator));\n myCriterionMaxValue.setValidatorSupport(new TextModelListValidatorSupport(myCriterionMaxValue, myValidator));\n }\n else\n {\n myCriterionValue.setValidatorSupport(new ObservableValueValidatorSupport<>(myCriterionValue, myValidator));\n myCriterionMaxValue.setValidatorSupport(new ObservableValueValidatorSupport<>(myCriterionMaxValue, myValidator));\n }\n }", "private void addHandlersToCheckBox() {\n\t\tmyMeasuresCheckBox.addValueChangeHandler(new ValueChangeHandler<Boolean>() {\n\t\t\t@Override\n\t\t\tpublic void onValueChange(ValueChangeEvent<Boolean> event) {\n\t\t\t\tif (event.getValue()) {\n\t\t\t\t\tallMeasuresCheckBox.setValue(false);\n\t\t\t\t\tsetSelectedFilter(MY);\n\t\t\t\t} else {\n\t\t\t\t\tallMeasuresCheckBox.setValue(true);\n\t\t\t\t\tsetSelectedFilter(ALL);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tallMeasuresCheckBox.addValueChangeHandler(new ValueChangeHandler<Boolean>() {\n\t\t\t@Override\n\t\t\tpublic void onValueChange(ValueChangeEvent<Boolean> event) {\n\t\t\t\tif (event.getValue()) {\n\t\t\t\t\tmyMeasuresCheckBox.setValue(false);\n\t\t\t\t\tsetSelectedFilter(ALL);\n\t\t\t\t} else {\n\t\t\t\t\tmyMeasuresCheckBox.setValue(true);\n\t\t\t\t\tsetSelectedFilter(MY);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tmyLibrariesCheckBox.addValueChangeHandler(new ValueChangeHandler<Boolean>() {\n\t\t\t@Override\n\t\t\tpublic void onValueChange(ValueChangeEvent<Boolean> event) {\n\t\t\t\tif (event.getValue()) {\n\t\t\t\t\tallLibrariesCheckBox.setValue(false);\n\t\t\t\t\tsetSelectedFilter(MY);\n\t\t\t\t} else {\n\t\t\t\t\tallLibrariesCheckBox.setValue(true);\n\t\t\t\t\tsetSelectedFilter(ALL);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tallLibrariesCheckBox.addValueChangeHandler(new ValueChangeHandler<Boolean>() {\n\t\t\t@Override\n\t\t\tpublic void onValueChange(ValueChangeEvent<Boolean> event) {\n\t\t\t\tif (event.getValue()) {\n\t\t\t\t\tmyLibrariesCheckBox.setValue(false);\n\t\t\t\t\tsetSelectedFilter(ALL);\n\t\t\t\t} else {\n\t\t\t\t\tmyLibrariesCheckBox.setValue(true);\n\t\t\t\t\tsetSelectedFilter(MY);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void armarListaCheck() {\n listaCheck = new ArrayList();\n listaCheck.add(chkBici);\n listaCheck.add(chkMoto);\n listaCheck.add(chkAuto);\n }", "@Override\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "void check()\n {\n final ScopeSymbolValidator validator = new ScopeSymbolValidator();\n for (ServiceMethod method : methods)\n validator.validate(method.getName(), method);\n }", "public void setCheck(CheckInOut check) {\n\t\tthis.check = check;\n\t}", "@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "@Override\n\t@NotDbField\n\tpublic void check() throws ApiRuleException {\n\t\t\n\t}", "public void checkThreshold() {\n List<Metric> metrics = getMetrics();\n boolean isFail = false;\n for (Iterator<Metric> mit = metrics.iterator(); mit.hasNext();) {\n Metric m = (Metric) mit.next();\n logMetric(m);\n if (m.getResult() == MetricResult.METRIC_FAIL\n || m.getResult() == MetricResult.METRIC_NOTRUN) {\n isFail = true;\n }\n // Update the threshold when the metrics is success. or the metrics\n // is no need to check\n if (m.getResult() == MetricResult.METRIC_SUCCESS\n || m.getResult() == MetricResult.METRIC_NOCHECK\n || m.getResult() == MetricResult.METRIC_NULL) {\n try {\n updateThreshold(m.getName(), m.getNewValue());\n } catch (Exception e) {\n // TODO: should we throw other exception when failed to\n // update threshold?\n isFail = true;\n }\n }\n }\n if (isFailOnError() && isFail) {\n throw new BuildException(\"Metics check failed\");\n }\n }", "public void setRangeOfCheck(String[] rangeOfCheck) {\n this.rangeOfCheck = rangeOfCheck;\n }", "public void check() throws XMLBuildException {\r\n\r\n\t}", "public void check() throws XMLBuildException {\r\n\r\n\t}", "public void setiHaveCheck(boolean iHaveCheck) {\n this.iHaveCheck = iHaveCheck;\n }", "@Override\n\tprotected void setControlListeners() {\n\t\tcheckBox.selectedProperty().addListener(new ChangeListener<Boolean>() {\n\t\t\t@Override\n\t\t\tpublic void changed(\n\t\t\t\t\tObservableValue<? extends Boolean> observable,\n\t\t\t\t\tBoolean oldValue, Boolean newValue) {\n\t\t\t\tif (!settingsPane.isExperimentRunning()) {\n\t\t\t\t\tparameter.set(newValue);\n\t\t\t\t\tsettingsPane.revalidateParameters();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void enableCheckBoxes(){\n fallSemCheckBox.setDisable(false);\n springSemCheckBox.setDisable(false);\n summerSemCheckBox.setDisable(false);\n allQtrCheckBox.setDisable(false);\n allMbaCheckBox.setDisable(false);\n allHalfCheckBox.setDisable(false);\n allCampusCheckBox.setDisable(false);\n allHolidayCheckBox.setDisable(false);\n fallSemCheckBox.setDisable(false);\n// allTraTrbCheckBox.setDisable(false);\n selectAllCheckBox.setDisable(false);\n //Set selection for select all check box to true\n selectAllCheckBox.setSelected(true);\n }", "public void verifyAllCheckBoxIsCheckOrUnCheck(boolean isCheck) {\n try {\n boolean result = true;\n boolean checkEmptyToDoListRow = checkListIsEmpty(eleToDoRowList);\n boolean checkEmptyToDoCompleteListRow = checkListIsEmpty(eleToDoCompleteRowList);\n if (!checkEmptyToDoListRow) {\n result = checkAllCheckBoxIsCheckOrUnCheck(eleToDoCheckboxRow, isCheck);\n }\n if (!checkEmptyToDoCompleteListRow) {\n if (result)\n checkAllCheckBoxIsCheckOrUnCheck(eleToDoCompleteCheckboxRow, isCheck);\n }\n Assert.assertTrue(result, \"All checkbox do not check/uncheck\");\n if (isCheck) {\n NXGReports.addStep(\"All check box are check in ToDo page\", LogAs.PASSED, null);\n } else {\n NXGReports.addStep(\"All check box are uncheck in ToDo page\", LogAs.PASSED, null);\n }\n\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n if (isCheck) {\n NXGReports.addStep(\"TestScript Failed: All check box are not check in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n } else {\n NXGReports.addStep(\"TestScript Failed: All check box are not uncheck in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }\n }", "@Override\n public void onCheckStocksRaised() {\n if (coffeeStock <= 0) {\n coffeeButton.setEnabled(false);\n }\n if (espressoStock <= 0) {\n espressoButton.setEnabled(false);\n }\n if (teaStock <= 0) {\n teaButton.setEnabled(false);\n }\n if (soupStock <= 0) {\n soupButton.setEnabled(false);\n }\n if (icedTeaStock <= 0) {\n icedTeaButton.setEnabled(false);\n }\n if (syrupStock <= 0) {\n optionSugar.setEnabled(false);\n }\n if (vanillaStock <= 0) {\n optionIceCream.setEnabled(false);\n }\n if (milkStock <= 0) {\n optionMilk.setEnabled(false);\n }\n if (breadStock <= 0) {\n optionBread.setEnabled(false);\n }\n if (sugarStock <= 4) {\n sugarSlider.setMaximum(sugarStock);\n }\n }", "public boolean isInCheck() {\n\t\treturn false;\n\t}", "final void initializeCheckBoxes() {\r\n\r\n logger.entering(this.getClass().getName(), \"initializeCheckBoxes\");\r\n\r\n this.chkMsdtSelection = new HashMap < MicroSensorDataType, JCheckBox >();\r\n\r\n for (MicroSensorDataType msdt : this.msdtFilterMap.keySet()) {\r\n if (this.msdtFilterMap.get(msdt) == Boolean.TRUE) {\r\n\t\t\t\tthis.chkMsdtSelection.put(msdt, new JCheckBox(msdt.getName(),\r\n false));\r\n } else {\r\n this.chkMsdtSelection.put(msdt, new JCheckBox(msdt.getName(),\r\n true));\r\n }\r\n\r\n }\r\n\r\n logger.exiting(this.getClass().getName(), \"initializeCheckBoxes\");\r\n }", "private void updateChecks(Uri uri) {\n List<OPLocalRingtoneAdapter.RingtoneData> list = this.mSystemRings;\n if (!(list == null || this.mOPLocalRingtoneAdapter == null)) {\n for (OPLocalRingtoneAdapter.RingtoneData ringtoneData : list) {\n ringtoneData.isCheck = ringtoneData.mUri.equals(uri);\n }\n this.mOPLocalRingtoneAdapter.notifyDataSetChanged();\n }\n }", "public void doCheckingMatl() {\n \tcheckIntPosMatl = true;\n \tcheckFloatPosMatl = true;\n \tif(!reactionsText.getText().equals(\"\")) {\n \t\tcheckIntPosMatl = checkIntPosMatl && checkPosIntValues(reactionsText);\n \t}\n \tif(!specificText.getText().equals(\"\")) {\n \t\tcheckFloatPosMatl = checkFloatPosMatl && checkPosFloatValues(specificText);\n \t}\n\t\tif(!reactionText.getText().equals(\"\")) {\n\t\t\tcheckFloatPosMatl = checkFloatPosMatl && checkPosFloatValues(reactionText);\t\t\n \t}\n\t\tif(!referenceText.getText().equals(\"\")) {\n\t\t\tcheckFloatPosMatl = checkFloatPosMatl && checkPosFloatValues(referenceText);\n\t\t}\n\t\tif(!densityText.getText().equals(\"\")) {\n\t\t\tcheckFloatPosMatl = checkFloatPosMatl && checkPosFloatValues(densityText);\n\t\t}\n\t\tif(!conductivityText.getText().equals(\"\")) {\n\t\t\tcheckFloatPosMatl = checkFloatPosMatl && checkPosFloatValues(conductivityText);\n\t\t}\n }", "final void refreshCheckBoxes() {\r\n\r\n logger.entering(this.getClass().getName(), \"refreshCheckBoxes\");\r\n\r\n for (MicroSensorDataType msdt : this.msdtFilterMap.keySet()) {\r\n if (this.msdtFilterMap.get(msdt) == Boolean.TRUE) {\r\n this.chkMsdtSelection.get(msdt).setSelected(false);\r\n } else {\r\n this.chkMsdtSelection.get(msdt).setSelected(true);\r\n }\r\n\r\n }\r\n\r\n logger.exiting(this.getClass().getName(), \"refreshCheckBoxes\");\r\n }", "public Checks(kotlin.reflect.jvm.internal.impl.name.Name r8, kotlin.reflect.jvm.internal.impl.util.Check[] r9, kotlin.jvm.functions.Function1<? super kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor, java.lang.String> r10) {\n /*\n r7 = this;\n java.lang.String r0 = \"name\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)\n java.lang.String r0 = \"checks\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r9, r0)\n java.lang.String r0 = \"additionalChecks\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r0)\n int r0 = r9.length\n kotlin.reflect.jvm.internal.impl.util.Check[] r6 = new kotlin.reflect.jvm.internal.impl.util.Check[r0]\n int r0 = r9.length\n r1 = 0\n java.lang.System.arraycopy(r9, r1, r6, r1, r0)\n r3 = 0\n r4 = 0\n r1 = r7\n r2 = r8\n r5 = r10\n r1.<init>((kotlin.reflect.jvm.internal.impl.name.Name) r2, (kotlin.text.Regex) r3, (java.util.Collection<kotlin.reflect.jvm.internal.impl.name.Name>) r4, (kotlin.jvm.functions.Function1<? super kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor, java.lang.String>) r5, (kotlin.reflect.jvm.internal.impl.util.Check[]) r6)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.util.Checks.<init>(kotlin.reflect.jvm.internal.impl.name.Name, kotlin.reflect.jvm.internal.impl.util.Check[], kotlin.jvm.functions.Function1):void\");\n }", "private static void processValidation(boolean passed, String property, CHECK check) {\n if (!passed) {\n LOG.error(\"'{}' failed in {} validation\", property, check);\n HealthCheck.setFailed();\n } else {\n LOG.info(\"'{}' passed\", property);\n }\n }", "@Override\n public boolean applies() {\n return true;\n }", "@Override\n\tpublic void checkMaintenanceStatus() {\n\t}", "private void actOnRules() {\r\n\r\n\t\tfor(String key: myRuleBook.keySet())\r\n\t\t{\r\n\r\n\t\t\tRule rule = myRuleBook.get(key);\r\n\t\t\tSpriteGroup[] obedients = myRuleMap.get(rule);\r\n\r\n\t\t\tif(rule.isSatisfied(obedients))\r\n\t\t\t{\r\n\t\t\t\trule.enforce(obedients);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void checkConfiguration() {\n }", "public void setCheckable(boolean checkable) {\n\t\tmCheckable = checkable;\n\t}", "public Syschecks() {\n this(\"SYSCHECKS\", null);\n }", "public void checkOrUnCheckAllCheckBox(boolean isCheck) {\n boolean result = true;\n boolean checkEmptyToDoListRow = checkListIsEmpty(eleToDoRowList);\n boolean checkEmptyToDoCompleteListRow = checkListIsEmpty(eleToDoCompleteRowList);\n // verify \"CheckAll\" check box is checked when all check box are check\n //// check all check box in ToDo page\n if (!checkEmptyToDoListRow) {\n result = checkAllCheckBox(eleToDoCheckboxRow, isCheck);\n if (result == false) {\n if (isCheck) {\n NXGReports.addStep(\"TestScript Failed: can not check on all check box has not complete status in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n } else {\n NXGReports.addStep(\"TestScript Failed: can not uncheck on all check box has not complete status in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n return;\n }\n }\n\n if (!checkEmptyToDoCompleteListRow) {\n result = checkAllCheckBox(eleToDoCompleteCheckboxRow, isCheck);\n if (result == false) {\n if (isCheck) {\n NXGReports.addStep(\"TestScript Failed: can not check on all check box has complete status in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n } else {\n NXGReports.addStep(\"TestScript Failed: can not uncheck on all check box has complete status in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n return;\n }\n }\n if (result) {\n NXGReports.addStep(\"Check all check box in ToDo page\", LogAs.PASSED, null);\n } else {\n NXGReports.addStep(\"Uncheck all check box in ToDo page\", LogAs.PASSED, null);\n }\n }", "protected void evaluateConditions()\n {\n ensureConditionContinuity() ;\n checkComponentList() ;\n\n for ( int liCondCtr = 1 ; liCondCtr <= 5 ; liCondCtr++ )\n {\n checkCondition( liCondCtr ) ;\n } /* end for */\n\n }", "private void initializeBoard(){\r\n checks =new int[][]{{0,2,0,2,0,2,0,2},\r\n {2,0,2,0,2,0,2,0},\r\n {0,2,0,2,0,2,0,2},\r\n {0,0,0,0,0,0,0,0},\r\n {0,0,0,0,0,0,0,0},\r\n {1,0,1,0,1,0,1,0},\r\n {0,1,0,1,0,1,0,1},\r\n {1,0,1,0,1,0,1,0}};\r\n }", "public void setIntegrityChecks(entity.LoadIntegrityCheck[] value);", "public void checkActions() {\n\t\tfor (BaseAction ba : this.actions) {\n\t\t\tba.checkAction();\n\t\t}\n\t}", "public void setGeneratedCheck(){\n generatedCheck = !generatedCheck;\n }", "private void checkCollection(SnmpCollection collection) {\n if (collection.getSystems() == null)\n collection.setSystems(new Systems());\n if (collection.getGroups() == null)\n collection.setGroups(new Groups());\n }", "void setHook(Hook hook) throws CheckerException;", "private void applyRules () throws DataNormalizationException {\n\t\tapplyRules(null);\n\t}", "void setInputVerification() {\r\n\t\tlistenerForOnlyDigitsInput(tfphone);\r\n\t\tlistenerForOnlyDigitsInput(tfIDNumber);\r\n\t\tlistenerForOnlyDigitsInput(tfCreditCard1);\r\n\t\tlistenerForOnlyDigitsInput(tfCreditCard2);\r\n\t\tlistenerForOnlyDigitsInput(tfCreditCard3);\r\n\t\tlistenerForOnlyDigitsInput(tfCreditCard4);\r\n\t}", "public Checks(java.util.Collection<kotlin.reflect.jvm.internal.impl.name.Name> r8, kotlin.reflect.jvm.internal.impl.util.Check[] r9, kotlin.jvm.functions.Function1<? super kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor, java.lang.String> r10) {\n /*\n r7 = this;\n java.lang.String r0 = \"nameList\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)\n java.lang.String r0 = \"checks\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r9, r0)\n java.lang.String r0 = \"additionalChecks\"\n kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r0)\n int r0 = r9.length\n kotlin.reflect.jvm.internal.impl.util.Check[] r6 = new kotlin.reflect.jvm.internal.impl.util.Check[r0]\n int r0 = r9.length\n r1 = 0\n java.lang.System.arraycopy(r9, r1, r6, r1, r0)\n r2 = 0\n r3 = 0\n r1 = r7\n r4 = r8\n r5 = r10\n r1.<init>((kotlin.reflect.jvm.internal.impl.name.Name) r2, (kotlin.text.Regex) r3, (java.util.Collection<kotlin.reflect.jvm.internal.impl.name.Name>) r4, (kotlin.jvm.functions.Function1<? super kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor, java.lang.String>) r5, (kotlin.reflect.jvm.internal.impl.util.Check[]) r6)\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.util.Checks.<init>(java.util.Collection, kotlin.reflect.jvm.internal.impl.util.Check[], kotlin.jvm.functions.Function1):void\");\n }", "public void changeChecker()\n {\n\tif (pennies < 0 || nickels < 0 || dimes < 0 || quarters < 0)\n\t throw new IllegalArgumentException();\t// no negative amounts\n }", "private void checkCheckboxes(Order orderToLoad) {\n Map<String, CheckBox> checkBoxes = new TreeMap<>(){{\n put(\"PNEU\",pneuCB);\n put(\"OIL\",oilCB);\n put(\"BATTERY\",batCB);\n put(\"AC\",acCB);\n put(\"WIPER\",wipCB);\n put(\"COMPLETE\",comCB);\n put(\"GEOMETRY\",geoCB);\n }};\n for (String problem : orderToLoad.getProblems()) {\n if (checkBoxes.containsKey(problem)){\n checkBoxes.get(problem).setSelected(true);\n }\n }\n }", "private void setCheckBoxChecked() {\n grupoRespuestasUnoMagnitudes.check(radioChecked[0]);\n grupoRespuestasDosMagnitudes.check(radioChecked[1]);\n grupoRespuestasTresMagnitudes.check(radioChecked[2]);\n grupoRespuestasCuatroMagnitudes.check(radioChecked[3]);\n grupoRespuestasCincoMagnitudes.check(radioChecked[4]);\n grupoRespuestasSeisMagnitudes.check(radioChecked[5]);\n grupoRespuestasSieteMagnitudes.check(radioChecked[6]);\n grupoRespuestasOchoMagnitudes.check(radioChecked[7]);\n grupoRespuestasNueveMagnitudes.check(radioChecked[8]);\n grupoRespuestasDiezMagnitudes.check(radioChecked[9]);\n }", "public void checkOrUnCheckCheckAllCheckBox(boolean isCheck) {\n try {\n waitForVisibleElement(eleCheckAllCheckBox, \"'CheckAll' check box\");\n hoverElement(eleCheckAllCheckBox, \"Hover 'CheckAll' check box\");\n if (isCheck) {\n if (!eleCheckAllCheckBox.isSelected()) {\n clickElement(eleCheckAllCheckBox, \"Check on 'CheckAll' checkbox\");\n } else {\n clickElement(eleCheckAllCheckBox, \"Un check on 'CheckAll' checkbox\");\n clickElement(eleCheckAllCheckBox, \"Check on 'CheckAll' checkbox\");\n }\n NXGReports.addStep(\"Check on 'CheckAll' check box in ToDo page complete\", LogAs.PASSED, null);\n } else {\n if (eleCheckAllCheckBox.isSelected()) {\n clickElement(eleCheckAllCheckBox, \"Un Check on 'CheckAll' checkbox\");\n } else {\n clickElement(eleCheckAllCheckBox, \"Un check on 'CheckAll' checkbox\");\n clickElement(eleCheckAllCheckBox, \"Check on 'CheckAll' checkbox\");\n }\n NXGReports.addStep(\"UnCheck on 'CheckAll' check box in ToDo page complete\", LogAs.PASSED, null);\n }\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"TestScript Failed: Can not check/uncheck 'CheckAll' check box in ToDo page\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }", "private void setupValidations() {\n for (Map.Entry<EditText, Validator> e : mValidators.entrySet()) {\n // On every keystroke, validate input and make text colour black or red\n e.getKey().addTextChangedListener(new MyTextWatcher() {\n @Override\n public void afterTextChanged(Editable s) {\n if (e.getValue().test(e.getKey().getText().toString()))\n e.getKey().setTextColor(mInputTextColorNormal);\n else\n e.getKey().setTextColor(mInputTextColorInvalid);\n }\n });\n // When the field loses focus, set an error icon if the input is invalid\n e.getKey().setOnFocusChangeListener((v, hasFocus) -> {\n if (hasFocus) return;\n if (!e.getValue().test(e.getKey().getText().toString()))\n e.getKey().setError(e.getValue().getWarnMsg(), e.getValue().getWarnIcon());\n });\n }\n }", "public NotChecker(Checker chk1)\n {\n checker1 = chk1;\n }", "public /* synthetic */ Checks(Collection collection, Check[] checkArr, Function1 function1, int i, DefaultConstructorMarker defaultConstructorMarker) {\n this((Collection<Name>) collection, checkArr, (Function1<? super FunctionDescriptor, String>) (i & 4) != 0 ? C33784.INSTANCE : function1);\n }", "@FXML\n public void updateExcludeCupboardStores(){\n if (cupboardCheckBox.isSelected()){\n settings.setExcludeCupboard(true);\n } else {\n settings.setExcludeCupboard(false);\n }\n }", "void applyChanges() {\n trainFunction.setAlias(txtAlias.getText());\n trainFunction.getConfiguration().setAddress(txtAddress.getValue());\n\n trainFunction.getConfiguration().setBit(selectBit.getSelected().orElse(null));\n }", "protected void setSudokuChecker(SudokuChecker checker) {\n this.checker = checker;\n }", "public void checkNodes() {\n // Don't do anything when you check the nodes. This nodes is built by\n // when the setTarget method is called.\n }", "public void check() {\r\n logger.info(\"ADIT monitor - Checking database and application.\");\r\n\r\n checkApplication();\r\n\r\n checkDBConnection();\r\n checkDBRead(this.getMonitorConfiguration().getTestDocumentId());\r\n }", "public /* synthetic */ Checks(Name name2, Check[] checkArr, Function1 function1, int i, DefaultConstructorMarker defaultConstructorMarker) {\n this(name2, checkArr, (Function1<? super FunctionDescriptor, String>) (i & 4) != 0 ? C33762.INSTANCE : function1);\n }", "@Override\n\tpublic void check(String arguments, Map<String, String> defValue, Set<String> errors) {\n\n\t}", "@Override\n \t\tpublic void checkRoles(RoleChecker arg0) throws SecurityException {\n \t\t}", "public void checkConditions(){\n\t\t// check game over conditions\n\t\tif(!status.isGameOver() && status.isGameStarted()){\n\t\t\tif(status.getShipsLeft() == 0){\n\t\t\n\t\t\t\tsoundMan.StopMusic3();\n\t\t\t\tsoundMan.StopMusic4();\n\t\t\t\tsoundMan.StopMusic5();\n\t\t\t\tsoundMan.StopMusic6();\n\t\t\t\tsoundMan.BackgroundMusic2();\n\t\t\t\tgameOver();\n\t\t\t\tsoundMan.StopMusic();\n\t\t\t}\n\t\t}\n\t\tif(!status.isGameOver() && status.isBossDestroyed()&& status.isGameStarted()){\n\t\t\tif(status.isBossDestroyed()){\n\t\t\t\tsoundMan.StopMusic5();\n\t\t\t\tsoundMan.BackgroundMusic4();\n\t\t\t\tgameWinner();\n\n\t\t\t}\n\n\t\t}\n\t}", "@Override\n public void setCheckers(boolean color, ArrayList<Checker> checkersInUse, int checkerNum) {\n if(color == true) { //player x\n color = true;\n for(int i = 1; i <= 3; i++) { //iterates through three rows\n if(i%2 != 0) {\n for(int j = 1; j<= 7; j+=2) {\n checkersInUse.add(new KingChecker( j, i,true, checkerNum +1));\n checkerNum ++;\n }\n }else {\n for(int j = 2; j<= 8; j+=2) {\n checkersInUse.add(new KingChecker( j, i, true, checkerNum +1));\n checkerNum ++;\n }\n }\n }\n }else{\n color = false;\n for(int i = 6; i <= 8; i++) {\n if(i%2 != 0) {\n for(int j = 1; j<=7; j+=2) {\n checkersInUse.add(new Checker(j, i, false, checkerNum +1));\n checkerNum ++;\n }\n }else {\n for(int j = 2; j<=8; j+=2) {\n checkersInUse.add(new Checker(j, i, false, checkerNum +1));\n checkerNum ++;\n }\n }\n }\n\n }\n }", "public void selectCheckBoxes(){\n fallSemCheckBox.setSelected(true);\n springSemCheckBox.setSelected(true);\n summerSemCheckBox.setSelected(true);\n allQtrCheckBox.setSelected(true);\n allMbaCheckBox.setSelected(true);\n allHalfCheckBox.setSelected(true);\n allCampusCheckBox.setSelected(true);\n allHolidayCheckBox.setSelected(true);\n fallSemCheckBox.setSelected(true);\n// allTraTrbCheckBox.setSelected(true);\n }", "protected final void checkGC() {\n if (appliedState.relativeClip != currentState.relativeClip) {\n appliedState.relativeClip = currentState.relativeClip;\n currentState.relativeClip.setOn(gc, translateX, translateY);\n }\n\n if (appliedState.graphicHints != currentState.graphicHints) {\n reconcileHints(gc, appliedState.graphicHints,\n currentState.graphicHints);\n appliedState.graphicHints = currentState.graphicHints;\n }\n }", "@Override\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tloadRules2();\r\n\t}", "public static void validateConfiguration() throws HealthCheckException {\n for (Map.Entry<String, CheckState> entry : HealthCheck.checks.entrySet()) {\n LOG.info(\"Checking '{}'...\", entry.getKey());\n switch (entry.getValue().check) {\n case STRING:\n processValidation(validateString(entry), entry.getKey(), entry.getValue().check);\n break;\n case INTEGER:\n processValidation(validateInteger(entry), entry.getKey(), entry.getValue().check);\n break;\n case BOOL:\n processValidation(validateBoolean(entry), entry.getKey(), entry.getValue().check);\n break;\n case FILE_EXISTS:\n processValidation(validateFileExists(entry), entry.getKey(), entry.getValue().check);\n break;\n default:\n LOG.error(\"Unknown CHECK type for '{}'\", entry.getKey());\n throw new HealthCheckException(\"Unable to validate config key \" + entry.getKey());\n }\n\n }\n if (HealthCheck.failed) {\n throw new HealthCheckException(\"Healthcheck has detected a misconfiguration for Styx, please fix the preceding issues\");\n } else {\n LOG.info(\"Configuration validation passed\");\n }\n }", "public void setupWidgets(){\n // Checkboxes\n CheckBox checkBonus = (CheckBox) getActivity().findViewById(R.id.eCheck_StackYellow);\n CheckBox checkYellowTop = (CheckBox) getActivity().findViewById(R.id.eCheck_StackTop);\n CheckBox checkYellowBottom = (CheckBox) getActivity().findViewById(R.id.eCheck_StackBottom);\n CheckBox checkHP = (CheckBox) getActivity().findViewById(R.id.eCheck_AbleCollect);\n CheckBox checkStacker = (CheckBox) getActivity().findViewById(R.id.eCheck_Stacker);\n CheckBox checkHerder = (CheckBox) getActivity().findViewById(R.id.eCheck_Herder);\n CheckBox checkBinSpecialist = (CheckBox) getActivity().findViewById(R.id.eCheck_BinSpecialist);\n CheckBox checkNoodleSpecialist = (CheckBox) getActivity().findViewById(R.id.eCheck_NoodleSpecialist);\n CheckBox checkInbound = (CheckBox) getActivity().findViewById(R.id.eCheck_Inbound);\n CheckBox checkOther = (CheckBox) getActivity().findViewById(R.id.eCheck_Other);\n }" ]
[ "0.70411915", "0.6950264", "0.65789485", "0.6295645", "0.6132407", "0.5860665", "0.5845246", "0.5779514", "0.5744828", "0.57069856", "0.56882936", "0.56793076", "0.56793076", "0.5657131", "0.564688", "0.5565398", "0.55611974", "0.5555925", "0.5473267", "0.5416285", "0.5394567", "0.5334698", "0.5323825", "0.52926487", "0.52795833", "0.5265796", "0.52393055", "0.5233434", "0.5232688", "0.5223449", "0.52089524", "0.5207734", "0.51928777", "0.5181434", "0.5165048", "0.5140232", "0.5109373", "0.5098202", "0.50964063", "0.5088216", "0.5085065", "0.50810236", "0.5076946", "0.50532615", "0.50532615", "0.50532615", "0.5027005", "0.5004951", "0.5003052", "0.5003052", "0.5001393", "0.4998439", "0.49940166", "0.49904183", "0.49796265", "0.4973577", "0.49582547", "0.49573547", "0.49492604", "0.49461806", "0.49453893", "0.49453494", "0.49352068", "0.49298275", "0.4923895", "0.491839", "0.49099162", "0.49060768", "0.4874522", "0.4865954", "0.4865335", "0.4852275", "0.485133", "0.48455638", "0.48328787", "0.48313943", "0.4830074", "0.4818002", "0.47867718", "0.4782587", "0.47787407", "0.47696242", "0.47682673", "0.47583586", "0.4743892", "0.47405896", "0.47355396", "0.4731528", "0.47225803", "0.47197336", "0.47042456", "0.46958232", "0.4692552", "0.4690616", "0.46871537", "0.4687003", "0.46835056", "0.4679556", "0.46725684", "0.46724194", "0.4670882" ]
0.0
-1
Convert digest to a string
public static String hexaToString(byte[] digest ){ StringBuffer hexString = new StringBuffer(); for (int i = 0; i < digest.length; i++) { if ((0xff & digest[i]) < 0x10) { hexString.append("0" + Integer.toHexString((0xFF & digest[i]))); } else { hexString.append(Integer.toHexString(0xFF & digest[i])); } } return hexString.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String toHex(byte[] digest) {\n\t\tchar[] result = new char[digest.length * 2];\n\t\tint pos = 0;\n\t\tfor (int i = 0; i < digest.length; i++) {\n\t\t\tresult[pos++] = hexChar((digest[i] & 0xf0) >> 4);\n\t\t\tresult[pos++] = hexChar(digest[i] & 0x0f);\n\t\t}\n\t\treturn new String(result);\n\t}", "public String getFormattedText(byte[] digest) {\n\t\t\t int len = digest.length;\r\n\t\t\t //System.out.println(len);\r\n\t\t\t \r\n\t\t\t //System.out.println(digest[0]>>4);\r\n\t\t\t \r\n\t\t\t StringBuilder buf = new StringBuilder(len * 2);\r\n\t\t\t // 把密文转换成十六进制的字符串形式\r\n\t\t\t for (int j = 0; j < len; j++) { \r\n\t\t\t\t buf.append(HEX_DIGITS[(digest[j] >> 4) & 0x0f]);\r\n\t\t\t\t buf.append(HEX_DIGITS[digest[j] & 0x0f]);\r\n\t\t\t\t //System.out.println(buf);\r\n\t\t\t }\r\n\t\t\treturn buf.toString();\r\n\t\t}", "private static String pasarAHexadecimal(byte[] digest){\n String hash = \"\";\n for(byte aux : digest) {\n int b = aux & 0xff;\n if (Integer.toHexString(b).length() == 1) hash += \"0\";\n hash += Integer.toHexString(b);\n }\n return hash;\n }", "byte[] digest();", "String getMessageDigestAlgorithm();", "private String getDigest(JSONObject json) {\n return json == null || json.toString() == null ? null : DigestUtils.sha256Hex(json.toString());\n }", "String getDigestAlgorithm();", "byte[] getDigest();", "public String getDigest() {\n return digest;\n }", "private static String getHash(byte[] dataBuffer, MessageDigest dgst) throws Exception{\n\t\tdgst.update(dataBuffer);\n\t\t\n\t\tbyte[] dgstByte = dgst.digest();\n\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int i=0; i<dgstByte.length; i++){\n\t\t\tsb.append(Integer.toString((dgstByte[i] & 0xff) + 0x100, 16).substring(1));\n\t\t}\n\t\t\n\t\tSystem.out.println(\"dgstByteString HEXString is: \" + sb.toString());\t\t\n\t\treturn sb.toString();\n\t\t\n\t\t/*\n\t\t * Uncomment below lines to return the message digest with base64 encoded string\n\t\t * */\n\t\t\n\t\t// System.out.println(\"dgstByteString B64 of HEX is: \" + Base64.encode(sb.toString().getBytes()));\n\t\t// return Base64.encode(sb.toString().getBytes());\n\t}", "private static String compactDigestName(String md) {\n switch (md) {\n case \"SHA-1\":\n return \"SHA1\";\n case \"SHA-224\":\n return \"SHA224\";\n case \"SHA-256\":\n return \"SHA256\";\n case \"SHA-384\":\n return \"SHA384\";\n case \"SHA-512\":\n return \"SHA512\";\n case \"SHA-512/224\":\n return \"SHA512/224\";\n case \"SHA-512/256\":\n return \"SHA512/256\";\n // RSA-PSS with SHA-3 does not yet have standard algorithm names, hence the naming is unclear.\n // For other algorithms names such as \"SHA3-224\", \"SHA3-256\", \"SHA3-384\" and \"SHA3-512\" are\n // not modified. E.g. SHA3-256withRSA is a valid algorithm name.\n default:\n return md;\n }\n }", "public String getSHA(String input) {\n byte[] messageDigest = md.digest(input.getBytes());\n String padding = \"00000000000000000000000000000000\";\n String returnValue;\n\n // Convert byte array into signum representation\n BigInteger no = new BigInteger(1, messageDigest);\n\n // Convert message digest into hex value\n String hashtext = no.toString(16);\n\n // pad with zeros of not long enough\n if (hashtext.length() < 32) {\n returnValue = padding.substring(0, 32-hashtext.length()) + hashtext;\n } else {\n returnValue = hashtext;\n }\n\n return returnValue;\n }", "public String digest(String body) throws SatispayException {\n\t\tMessageDigest digest;\n\t\ttry {\n\t\t\tdigest = MessageDigest.getInstance(\"SHA-256\");\n\t\t\tbyte[] encodedhash = digest.digest(\n\t\t\t\t\tbody.getBytes(StandardCharsets.UTF_8));\n\t\t\treturn Base64.getEncoder().encodeToString(encodedhash);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new SatispayException(\"Wrong algorithm\", e.getCause());\n\t\t}\n\t}", "public static String hashToString (byte[] hash)\n {\n if (hash == null) {\n return \"\";\n }\n char[] chars = new char[hash.length * 2];\n for (int ii = 0; ii < hash.length; ii++) {\n int val = hash[ii];\n if (val < 0) {\n val += 256;\n }\n chars[2 * ii] = HEX.charAt(val/16);\n chars[2 * ii + 1] = HEX.charAt(val%16);\n }\n return new String(chars);\n }", "private String getDigest(JSONArray json) {\n return json == null || json.toString() == null ? null : DigestUtils.sha256Hex(json.toString());\n }", "protected byte[] binaryToHex(byte[] digest) throws UnsupportedEncodingException {\n StringBuffer digestString = new StringBuffer();\n for (int i = 0; i < digest.length; i++) {\n if ((digest[i] & 0x000000ff) < 0x10) {\n digestString.append(\"0\" + Integer.toHexString(digest[i] & 0x000000ff));\n } else {\n digestString.append(Integer.toHexString(digest[i] & 0x000000ff));\n }\n }\n return digestString.toString().getBytes(encoding);\n }", "public String getDigest() {\n return this.Digest;\n }", "public String getHash(final String password) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n final MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n byte[] md5hash;\n digest.update(password.getBytes(\"utf-8\"), 0, password.length());\n md5hash = digest.digest();\n return convertToHex(md5hash);\n }", "private String hashKey(String key) throws NoSuchAlgorithmException {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hashInBytes = md.digest(key.getBytes(StandardCharsets.UTF_8));\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < hashInBytes.length; i++) {\n sb.append(Integer.toString((hashInBytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n String s = sb.toString();\n return s;\n }", "private static String HashIt(String token) {\n\t\tStringBuffer hexString = new StringBuffer();\n\t\ttry {\n\t\t\tMessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\n\t\t\tbyte[] hash = digest.digest(token.getBytes(StandardCharsets.UTF_8));\n\t\t\t\n\t\t\t// Convert to hex\n\t\t for (int i = 0; i < hash.length; i++) {\n\t\t\t String hex = Integer.toHexString(0xff & hash[i]);\n\t\t\t if(hex.length() == 1) {\n\t\t\t \thexString.append('0');\n\t\t\t }\n\t\t\t hexString.append(hex);\n\t\t }\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tSystem.err.println(e.getStackTrace());\n\t\t\thexString.setLength(0);\n\t\t}\n\t return hexString.toString();\t\t\n\t}", "public String getHash(String str) throws Exception{\n\t\t\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n \n byte byteData[] = md.digest();\n \n //convert the byte to hex format method 1\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < byteData.length; i++) {\n sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));\n }\n \n String hex = sb.toString();\n System.out.println(hex);\n return hex; \n}", "public String getCodeHashString(String text) throws NoSuchAlgorithmException, UnsupportedEncodingException{\n \tbyte[] digest = getHash(text+masterSalt, HASH_ALG);\n\t\treturn Base64.getEncoder().encodeToString(digest); \n\t}", "public static String hashToString(byte[] hashBytes) {\n String returnVal = \"\";\n for (int i = 0; i < hashBytes.length; i++) {\n returnVal += Integer.toString((hashBytes[i] & 0xff) + 0x100, 16).substring(1);\n }\n return returnVal.toLowerCase();\n }", "private static String sha256(String str) throws Exception {\n\t\tMessageDigest d = MessageDigest.getInstance(\"SHA-256\");\n\t\treturn new String(DatatypeConverter.printBase64Binary(d.digest(str.getBytes())));\n\t}", "private String handleWantDigestHeader(final Binary binary, final String wantDigest)\n throws UnsupportedAlgorithmException {\n final Collection<String> preferredDigests = parseWantDigestHeader(wantDigest);\n if (preferredDigests.isEmpty()) {\n throw new UnsupportedAlgorithmException(\n \"Unsupported digest algorithm provided in 'Want-Digest' header: \" + wantDigest);\n }\n\n final Collection<URI> checksumResults = fixityService.getFixity(binary, preferredDigests);\n return checksumResults.stream().map(uri -> uri.toString().replaceFirst(\"urn:\", \"\")\n .replaceFirst(\":\", \"=\").replaceFirst(\"sha1=\", \"sha=\")).collect(Collectors.joining(\",\"));\n }", "public String toString()\r\n/* 438: */ {\r\n/* 439:522 */ return \"Luffa-\" + (getDigestLength() << 3);\r\n/* 440: */ }", "public static String hash(String st) {\r\n MessageDigest messageDigest = null;\r\n byte[] digest = new byte[0];\r\n\r\n try {\r\n messageDigest = MessageDigest.getInstance(\"SHA-256\");\r\n messageDigest.reset();\r\n messageDigest.update(st.getBytes());\r\n digest = messageDigest.digest();\r\n } catch (NoSuchAlgorithmException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n BigInteger bigInt = new BigInteger(1, digest);\r\n StringBuilder hex = new StringBuilder(bigInt.toString(16));\r\n\r\n while (hex.length() < 32) {\r\n hex.insert(0, \"0\");\r\n }\r\n\r\n return hex.toString();\r\n }", "@Override\n public String toString() {\n return encodedHash.get();\n }", "public static String encryptMD2ToString(final byte[] data) {\n return bytes2HexString(encryptMD2(data));\n }", "public static String crypt(String str) {\n if (str == null || str.length() == 0) {\n throw new IllegalArgumentException(\"String to encript cannot be null or zero length\");\n }\n StringBuffer hexString = new StringBuffer();\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(str.getBytes());\n byte[] hash = md.digest();\n for (int i = 0; i < hash.length; i++) {\n if ((0xff & hash[i]) < 0x10) {\n hexString.append(\"0\" + Integer.toHexString((0xFF & hash[i])));\n } else {\n hexString.append(Integer.toHexString(0xFF & hash[i]));\n }\n }\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n return hexString.toString();\n }", "private String getHash(String text) {\n\t\ttry {\n\t\t\tString salt = new StringBuffer(this.email).reverse().toString();\n\t\t\ttext += salt;\n\t\t\tMessageDigest m = MessageDigest.getInstance(\"MD5\");\n\t\t\tm.reset();\n\t\t\tm.update(text.getBytes());\n\t\t\tbyte[] digest = m.digest();\n\t\t\tBigInteger bigInt = new BigInteger(1, digest);\n\t\t\tString hashedText = bigInt.toString(16);\n\t\t\twhile (hashedText.length() < 32) {\n\t\t\t\thashedText = \"0\" + hashedText;\n\t\t\t}\n\t\t\treturn hashedText;\n\t\t} catch (Exception e) {\n\t\t\te.getStackTrace();\n\t\t\treturn text;\n\t\t}\n\t}", "private static String CalHash(byte[] passSalt) throws NoSuchAlgorithmException, UnsupportedEncodingException {\n //get the instance value corresponding to Algorithm selected\n MessageDigest key = MessageDigest.getInstance(\"SHA-256\");\n //Reference:https://stackoverflow.com/questions/415953/how-can-i-generate-an-md5-hash\n //update the digest using specified array of bytes\n key.update(passSalt);\n String PassSaltHash = javax.xml.bind.DatatypeConverter.printHexBinary(key.digest());\n return PassSaltHash;\n }", "java.lang.String getEncoded();", "static String hexSha256Msg(String text) {\n String str=null;\n byte[] data = text.getBytes();\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n md.update(data);\n byte[] bytes = md.digest();\n str = byteToHex(bytes);\n }catch (NoSuchAlgorithmException e){\n e.printStackTrace();\n }\n System.out.println(str);\n return str ;\n }", "public static String encriptar(String input){\n try {\n\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n byte[] messageDigest = md.digest(input.getBytes());\n\n BigInteger no = new BigInteger(1, messageDigest);\n\n String hashtext = no.toString(16);\n while (hashtext.length() < 32) {\n hashtext = \"0\" + hashtext;\n }\n return hashtext;\n }\n\n catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n }", "public static String getImageWithDigest(ServiceSpec serviceSpec, String digest) throws HyscaleException {\n if (serviceSpec == null) {\n return null;\n }\n Image image = serviceSpec.get(HyscaleSpecFields.image, Image.class);\n if (image == null) {\n return null;\n }\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(getImageWithoutTag(image));\n if (StringUtils.isNotBlank(digest)) {\n stringBuilder.append(ToolConstants.AT_SIGN).append(digest);\n }\n return stringBuilder.toString();\n }", "private static String toHex(byte[] hash) {\n StringBuilder hashedInput = new StringBuilder(\"\");\n for (int i = 0; i < hash.length; i++) {\n String hex = Integer.toHexString(0xff & hash[i]);\n if (hex.length() == 1) {\n hashedInput.append('0');\n }\n hashedInput.append(hex);\n }\n return hashedInput.toString();\n }", "static String hash(String motDePasse) {\n\t\tString encoded = null;\n\t\ttry {\n\t MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n\t byte[] hashInBytes = md.digest(motDePasse.getBytes(StandardCharsets.UTF_8));\n\n\t\t\t// bytes to hex\n\t StringBuilder sb = new StringBuilder();\n\t for (byte b : hashInBytes) {\n\t sb.append(String.format(\"%02x\", b));\n\t }\n\t encoded = sb.toString();\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn encoded;\n\n\t\t\n\t}", "public String getDigestAlgOID()\n {\n return digestAlgorithm.getAlgorithm().getId();\n }", "public static String generateSHA1toString(String str) {\n try {\n byte[] datos = generateSHA1(str.getBytes());\n return byteArrayToHexString(datos);\n } catch (Exception e) {\n Logger.e(\"Error generating SHA1. \" + e.getMessage());\n return \"\";\n }\n }", "public static String md5(String pass)\n {\n try{\n MessageDigest md=MessageDigest.getInstance(\"MD5\");\n byte[] messageDigest=md.digest(pass.getBytes());\n BigInteger num=new BigInteger(1,messageDigest);\n String hashText=num.toString(16);\n while(hashText.length()<32)\n {\n hashText=\"0\"+hashText;\n } \n return hashText; \n }\n catch(Exception e)\n { \n throw new RuntimeException(e);\n } \n }", "public static String encrypt(String strClearText,byte[] digest) throws Exception {\n \n \tString strData=\"\";\n byte [] encrypted = null;\n\n try {\n \t\n SecretKeySpec skeyspec=new SecretKeySpec(digest,\"AES\");\n Cipher cipher=Cipher.getInstance(\"AES\");\n cipher.init(Cipher.ENCRYPT_MODE, skeyspec);\n encrypted=cipher.doFinal(strClearText.getBytes());\n strData=new String(encrypted, \"ISO-8859-1\");\n \n\n } \n catch (Exception ex) {\n \t\n ex.printStackTrace();\n throw new Exception(ex);\n \n }\n \n return strData;\n }", "private static String getSHA(String key) throws SystemException, TException {\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n BigInteger number = new BigInteger(1, md.digest(key.getBytes(StandardCharsets.UTF_8)));\n StringBuilder hexString = new StringBuilder(number.toString(16));\n while (hexString.length() < 32) {\n hexString.insert(0, '0');\n }\n return hexString.toString();\n } catch (NoSuchAlgorithmException x) {\n throw (new SystemException()).setMessage(\"Error: Error in getting SHA-256\");\n } finally {\n return \"\";\n }\n }", "private static String byteToHexString(final byte hash) {\n\t\tint n = hash;\n\t\tif (n < 0) {\n\t\t\tn = 256 + n;\n\t\t}\n\t\tint d1 = n / 16;\n\t\tint d2 = n % 16;\n\t\treturn FileHashingUtils.hexDigits[d1] + FileHashingUtils.hexDigits[d2];\n\t}", "public static String encode2StringWithSHA(String origin) {\n return encode2String(origin, MD5Utils.SHA);\n }", "public static String hashPass(String value) throws NoSuchAlgorithmException\n\t{\n\t\t//There are many algos are available for hashing i)MD5(message digest) ii)SHA(Secured hash algo)\n\t\tMessageDigest md=MessageDigest.getInstance(\"MD5\");\n\t md.update(value.getBytes());\n\t \n\t byte[] hashedpass=md.digest();\n\t StringBuilder hashpass=new StringBuilder();\n\t for(byte b:hashedpass)\n\t {\n\t \t//Convert to hexadecimal format\n\t hashpass.append(String.format(\"%02x\",b));\n\t }\n\t return hashpass.toString();\n\t}", "public static String getHash(String password) {\n String hashedPassword = null;\n try {\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n byte[] digest = md.digest(password.getBytes());\n hashedPassword = org.apache.commons.codec.binary.Base64.encodeBase64String(digest);\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n\n return hashedPassword;\n }", "void digest(T x);", "public POGOProtos.Rpc.AssetDigestEntryProto getDigest() {\n if (digestBuilder_ == null) {\n return digest_ == null ? POGOProtos.Rpc.AssetDigestEntryProto.getDefaultInstance() : digest_;\n } else {\n return digestBuilder_.getMessage();\n }\n }", "public static String getMessageDigest(EMMessage message, Context context) {\n String digest = \"\";\n switch (message.getType()) {\n case LOCATION:\n if (message.direct() == EMMessage.Direct.RECEIVE) {\n digest = getString(context, R.string.location_recv);\n digest = String.format(digest, message.getFrom());\n return digest;\n } else {\n digest = getString(context, R.string.location_prefix);\n }\n break;\n case IMAGE:\n digest = getString(context, R.string.picture);\n break;\n case VOICE:\n digest = getString(context, R.string.voice_prefix);\n break;\n case VIDEO:\n digest = getString(context, R.string.video);\n break;\n case TXT:\n EMTextMessageBody txtBody = (EMTextMessageBody) message.getBody();\n if (message.getBooleanAttribute(ChatConstant.MESSAGE_ATTR_IS_VOICE_CALL, false)) {\n digest = getString(context, R.string.voice_call) + txtBody.getMessage();\n } else if (message.getBooleanAttribute(ChatConstant.MESSAGE_ATTR_IS_VIDEO_CALL, false)) {\n digest = getString(context, R.string.video_call) + txtBody.getMessage();\n } else if (message.getBooleanAttribute(ChatConstant.MESSAGE_ATTR_IS_BIG_EXPRESSION, false)) {\n if (!TextUtils.isEmpty(txtBody.getMessage())) {\n digest = txtBody.getMessage();\n } else {\n digest = getString(context, R.string.dynamic_expression);\n }\n } else {\n digest = txtBody.getMessage();\n }\n break;\n case FILE:\n digest = getString(context, file);\n break;\n default:\n LogUtil.e(TAG, \"error, unknow type\");\n return \"\";\n }\n\n return digest;\n }", "public String hashStringToSha256(String string) {\n\n byte[] hash = sha256encriptor().digest(string.getBytes(StandardCharsets.UTF_8));\n\n BigInteger number = new BigInteger(1, hash);\n\n // Convert message digest into hex value\n StringBuilder hexString = new StringBuilder(number.toString(16));\n\n // Pad with leading zeros\n while (hexString.length() < 32)\n {\n hexString.insert(0, '0');\n }\n\n return hexString.toString();\n }", "static String PlaintextToHashedPassword(String password) throws InvalidKeySpecException, NoSuchAlgorithmException {\n String hashedPassword = null;\n try {\n // Create MessageDigest instance for MD5\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n\n //Add password bytes to digest\n md.update(password.getBytes());\n\n //Get the hash's bytes\n byte[] bytes = md.digest();\n\n //This bytes[] has bytes in decimal format;\n //Convert it to hexadecimal format\n StringBuilder sb = new StringBuilder();\n for(int i=0; i< bytes.length ;i++)\n {\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\n }\n //Get complete hashed password in hex format\n hashedPassword = sb.toString();\n }\n catch (NoSuchAlgorithmException e)\n {\n e.printStackTrace();\n }\n\n return hashedPassword;\n }", "public static String getSHAValue(final String clear) {\n\t\ttry {\n\t\t\tMessageDigest digest = MessageDigest.getInstance(ALGORITHM);\n\t\t\tdigest.update(clear.getBytes());\n\t\t\tFormatter formatter = new Formatter();\n\t\t\tfor (byte b : digest.digest()) {\n\t\t\t\tformatter.format(\"%02x\", b);\n\t\t\t}\n\t\t\tString crypt = formatter.toString();\n\t\t\tformatter.close();\n\t\t\treturn crypt;\n\t\t} catch (NoSuchAlgorithmException ex) {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Der verwendete Algorithmus ist nicht verfuegbar: \"\n\t\t\t\t\t\t\t+ ALGORITHM\n\t\t\t\t\t\t\t+ \". Achtung die Passwoerter werden im Klartext versendet!\");\n\t\t}\n\t\treturn clear;\n\n\t}", "private String getSignature(String challenge) {\n\t\tMessageDigest digest;\n\t\tbyte[] md5sum = null;\n\t\ttry {\n\t\t\tdigest = java.security.MessageDigest.getInstance(\"MD5\");\n\t\t\tdigest.update(challenge.getBytes());\n\t\t\tdigest.update(REMOTE_KEY.getBytes());\n\t\t\tmd5sum = digest.digest();\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tStringBuffer hexString = new StringBuffer();\n\t\tfor (int k = 0; k < md5sum.length; ++k) {\n\t\t\tString s = Integer.toHexString((int) md5sum[k] & 0xFF);\n\t\t\tif (s.length() == 1)\n\t\t\t\thexString.append('0');\n\t\t\thexString.append(s);\n\t\t}\n\t\treturn hexString.toString();\n\t}", "public static String getEncodedPassword(String clearTextPassword) throws NoSuchAlgorithmException {\n\t\tMessageDigest md = MessageDigest.getInstance(\"MD5\");\n\t\tmd.update(clearTextPassword.getBytes());\n\t\t// byte[] theDigest = md.digest();\n\t\t// return new BASE64Encoder().encode(theDigest);\n\t\treturn clearTextPassword;\n\t}", "public static String sha1(String s) {\n MessageDigest digest = createDigest(\"SHA-1\");\n byte[] result = digest.digest(s.getBytes(Charset.forName(\"UTF-8\")));\n return toBase64(result);\n }", "private static String md5(String str) {\n\n if (str == null) {\n return null;\n }\n\n MessageDigest messageDigest = null;\n\n try {\n messageDigest = MessageDigest.getInstance(HttpConf.signType);\n messageDigest.reset();\n messageDigest.update(str.getBytes(HttpConf.charset));\n } catch (NoSuchAlgorithmException e) {\n\n return str;\n } catch (UnsupportedEncodingException e) {\n return str;\n }\n\n byte[] byteArray = messageDigest.digest();\n\n StringBuffer md5StrBuff = new StringBuffer();\n\n for (int i = 0; i < byteArray.length; i++) {\n if (Integer.toHexString(0xFF & byteArray[i]).length() == 1) {\n md5StrBuff.append(\"0\").append(Integer.toHexString(0xFF & byteArray[i]));\n } else {\n md5StrBuff.append(Integer.toHexString(0xFF & byteArray[i]));\n }\n }\n\n return md5StrBuff.toString();\n }", "public static String encryptSHA1ToString(final byte[] data) {\n return bytes2HexString(encryptSHA1(data));\n }", "public String toExternalString() {\n\t\treturn new String(signature, US_ASCII);\n\t}", "protected String getMd5Hash(String token) {\n\n MessageDigest m;\n\t\ttry {\n\t\t\tm = MessageDigest.getInstance(\"MD5\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n m.update(token.getBytes());\n \n byte[] digest = m.digest();\n BigInteger bigInt = new BigInteger(1,digest);\n String hashtext = bigInt.toString(16);\n \n // Now we need to zero pad it if you actually want the full 32 chars.\n while(hashtext.length() < 32 ){\n hashtext = \"0\"+hashtext;\n }\n \n return hashtext;\n\t}", "public static String encryptMD5(String st) {\n MessageDigest messageDigest;\n byte[] digest = new byte[0];\n try {\n messageDigest = MessageDigest.getInstance(DefaultValueConstants.DEFAULT_ENCRYPTING_ALGORITHM);\n messageDigest.reset();\n messageDigest.update(st.getBytes());\n digest = messageDigest.digest();\n } catch (NoSuchAlgorithmException e) {\n log.error(e);\n }\n BigInteger bigInt = new BigInteger(1, digest);\n String md5Hex = bigInt.toString(16);\n while (md5Hex.length() < 32) {\n md5Hex = \"0\" + md5Hex;\n }\n return md5Hex;\n }", "private static String pssParameterSpecToString(PSSParameterSpec spec) {\n StringBuilder res = new StringBuilder();\n res.append(\"digestAlgorithm:\")\n .append(spec.getDigestAlgorithm())\n .append(\"\\nmgfAlgorithm:\")\n .append(spec.getMGFAlgorithm())\n .append(\"\\nsaltLength:\")\n .append(spec.getSaltLength())\n .append(\"\\ntrailerField:\")\n .append(spec.getTrailerField());\n if (spec.getMGFAlgorithm().equals(\"MGF1\")) {\n MGF1ParameterSpec mgf1Params = (MGF1ParameterSpec) spec.getMGFParameters();\n res.append(\"\\nmgf1 digestAlgorithm:\").append(mgf1Params.getDigestAlgorithm());\n }\n return res.toString();\n }", "private String toMD5(String password)\n {\n try {\n MessageDigest m = MessageDigest.getInstance(\"MD5\");\n \n m.update(password.getBytes(),0,password.length());\n \n return new BigInteger(1, m.digest()).toString(16);\n } catch (NoSuchAlgorithmException ex) {\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\n }\n return \"\";\n }", "public static String computeSHA(byte[] filebytes) throws NoSuchAlgorithmException {\r\n\t\tMessageDigest messageDigest = MessageDigest.getInstance(\"SHA-1\");\r\n\t\tbyte[] hash = messageDigest.digest(filebytes);\r\n\t\t\r\n\t\tFormatter formatter = new Formatter();\r\n\t\t\r\n\t\tfor (byte b : hash) {\r\n\t\t\tformatter.format(\"%02x\", b);\r\n\t\t}\r\n\t\t\r\n\t\treturn formatter.toString();\r\n\t}", "public String getHashString()\n\t{\n\t\treturn md5.getHashString();\n\t}", "private static String convertToHex(byte[] data) throws IOException {\n //create new instance of string buffer\n StringBuffer stringBuffer = new StringBuffer();\n String hex = \"\";\n\n //encode byte data with base64\n hex = Base64.getEncoder().encodeToString(data);\n stringBuffer.append(hex);\n\n //return string\n return stringBuffer.toString();\n }", "public static String hash(String in) {\r\n\t\treturn DigestUtils.md5Hex(in.getBytes());\r\n\t}", "public static String hashPassword(String password) {\n String passwordHash = null;\n try {\n // Calculate hash on the given password.\n MessageDigest sha256 = MessageDigest.getInstance(\"SHA-256\");\n byte[] hash = sha256.digest(password.getBytes());\n\n // Transform the bytes (8 bit signed) into a hexadecimal format.\n StringBuilder hashString = new StringBuilder();\n for (int i = 0; i < hash.length; i++) {\n /*\n Format parameters: %[flags][width][conversion]\n Flag '0' - The result will be zero padded.\n Width '2' - The width is 2 as 1 byte is represented by two hex characters.\n Conversion 'x' - Result is formatted as hexadecimal integer, uppercase.\n */\n hashString.append(String.format(\"%02x\", hash[i]));\n }\n passwordHash = hashString.toString();\n Log.d(TAG, \"Password hashed to \" + passwordHash);\n } catch (NoSuchAlgorithmException e) {\n Log.d(TAG, \"Couldn't hash password. The expected digest algorithm is not available.\");\n }\n return passwordHash;\n }", "public static String getHashed_pw(String password) {\r\n\t\tbyte[] plainText = password.getBytes();\r\n MessageDigest md = null;\r\n try {\r\n md = MessageDigest.getInstance(\"MD5\");\r\n } \r\n catch (Exception e) {\r\n System.err.println(e.toString());\r\n }\r\n \tmd.reset();\r\n\t\tmd.update(plainText);\r\n\t\tbyte[] encodedPassword = md.digest();\r\n\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor (int i = 0; i < encodedPassword.length; i++) {\r\n\t\t\tif ((encodedPassword[i] & 0xff) < 0x10) {\r\n\t\t\t\tsb.append(\"0\");\r\n\t\t\t}\r\n\t\t\tsb.append(Long.toString(encodedPassword[i] & 0xff, 16));\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "@Override\r\n\tpublic String hashFunction(String saltedPass) throws NoSuchAlgorithmException\r\n\t{\r\n\t\tMessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\r\n\t\tbyte[] byteHash = digest.digest(saltedPass.getBytes(StandardCharsets.UTF_8));\r\n\t\thash = DatatypeConverter.printBase64Binary(byteHash);\r\n\t\treturn hash;\r\n\t}", "static String sha256(String in) throws NoSuchAlgorithmException {\r\n MessageDigest encrypt = MessageDigest.getInstance(\"SHA-256\");\r\n byte[] encrypt0 = encrypt.digest(in.getBytes());\r\n StringBuffer a;\r\n String r0;\r\n a = new StringBuffer();\r\n int bytelength = encrypt0.length;\r\n int i = 0;\r\n while (i < bytelength) {\r\n a.append(Integer.toString((encrypt0[i] & 0xff) + 0x100, 16).substring(1));\r\n i++;\r\n }\r\n r0 = a.toString();\r\n return r0;\r\n }", "private static String getFormattedText(byte[] bytes) {\n\t\tint len = bytes.length;\n\t\tStringBuilder buf = new StringBuilder(len * 2);\n\t\t// 把密文转换成十六进制的字符串形式\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tbuf.append(HEX_DIGITS[(bytes[j] >> 4) & 0x0f]);\n\t\t\tbuf.append(HEX_DIGITS[bytes[j] & 0x0f]);\n\t\t}\n\t\treturn buf.toString();\n\t}", "private static String getFormattedText(byte[] bytes) {\n\t\tint len = bytes.length;\n\t\tStringBuilder buf = new StringBuilder(len * 2);\n\t\t// 把密文转换成十六进制的字符串形式\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tbuf.append(HEX_DIGITS[(bytes[j] >> 4) & 0x0f]);\n\t\t\tbuf.append(HEX_DIGITS[bytes[j] & 0x0f]);\n\t\t}\n\t\treturn buf.toString();\n\t}", "@Override\n public String getSaltedHash() {\n Object ref = saltedHash_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n saltedHash_ = s;\n return s;\n }\n }", "public static final String hashing(String password) throws NoSuchAlgorithmException, NoSuchProviderException {\n String hpassword = password;\n MessageDigest mDigest = MessageDigest.getInstance(\"SHA1\");\n byte[] result = mDigest.digest(hpassword.getBytes());\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < result.length; i++) {\n sb.append(Integer.toString((result[i] & 0xff) + 0x100, 16).substring(1));\n }\n return sb.toString();\n }", "public interface DigestFunction\n{\n\n byte[] digest(String clearToken);\n}", "protected String digestPassword(String pwd, String passwordDigestAlgoritm, String encoding) throws IllegalArgumentException, NoSuchAlgorithmException, UnsupportedEncodingException {\n StringBuffer password = new StringBuffer();\n password.append(\"{\").append(passwordDigestAlgoritm).append(\"}\");\n password.append(Text.digest(passwordDigestAlgoritm, pwd.getBytes(encoding)));\n return password.toString();\n }", "private static String getFormattedText(byte[] bytes) {\n\t\tint len = bytes.length;\n\t\tStringBuilder buf = new StringBuilder(len * 2);\n\t\t// 把密文转换成十六进制的字符串形式\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tbuf.append(HEX_DIGITS[(bytes[j] >> 4) & 0x0f]);\n\t\t\tbuf.append(HEX_DIGITS[bytes[j] & 0x0f]);\n\t\t}\n\t\treturn buf.toString().toUpperCase();\n\t}", "public String getHash() {\n byte[] bArr = new byte[21];\n bArr[0] = (byte) getCTxDestinationType().getValue();\n System.arraycopy(this.mData, 0, bArr, 1, 20);\n return StringToolkit.bytesToString(bArr);\n }", "public static String computeOnce(String str) {\n str = (str == null) ? \"\" : str;\n MessageDigest md5 = null;\n try {\n md5 = MessageDigest.getInstance(\"MD5\");\n } catch (Exception e) {\n throw new ExternalException();\n }\n // convert input String to a char[]\n // convert that char[] to byte[]\n // get the md5 digest as byte[]\n // bit-wise AND that byte[] with 0xff\n // prepend \"0\" to the output StringBuffer to make sure that we don't end\n // up with\n // something like \"e21ff\" instead of \"e201ff\"\n\n char[] charArray = str.toCharArray();\n\n byte[] byteArray = new byte[charArray.length];\n\n for (int i = 0; i < charArray.length; i++)\n byteArray[i] = (byte) charArray[i];\n\n byte[] md5Bytes = md5.digest(byteArray);\n\n StringBuffer hexValue = new StringBuffer();\n\n for (int i = 0; i < md5Bytes.length; i++) {\n int val = (md5Bytes[i]) & 0xff;\n if (val < 16)\n hexValue.append(\"0\");\n hexValue.append(Integer.toHexString(val));\n }\n\n return hexValue.toString();\n }", "POGOProtos.Rpc.AssetDigestEntryProto getDigest();", "public static String getSalt(String str) throws UnsupportedEncodingException{\n\t\treturn new String(Base64.encodeBase64(str.getBytes(\"UTF-8\"))).replaceAll(\"\\r\\n\", \"\").trim();\n\t}", "java.lang.String getHashData();", "public interface DigestService {\n\t\n\tpublic String getMessageDigest(String message);\n\n}", "public final String mo5959aC(String str) {\n try {\n MessageDigest instance = MessageDigest.getInstance(\"SHA-256\");\n instance.update(str.getBytes());\n byte[] digest = instance.digest();\n StringBuffer stringBuffer = new StringBuffer();\n for (byte b : digest) {\n String hexString = Integer.toHexString(b & 255);\n if (hexString.length() == 1) {\n stringBuffer.append('0');\n }\n stringBuffer.append(hexString);\n }\n return stringBuffer.toString();\n } catch (Throwable unused) {\n return null;\n }\n }", "public byte[] makeDigest(String user, String pwd) throws NoSuchAlgorithmException {\n MessageDigest md = MessageDigest.getInstance(\"SHA\");\n md.update(user.getBytes());\n md.update(pwd.getBytes());\n return md.digest();\n }", "public void setDigest(String Digest) {\n this.Digest = Digest;\n }", "public static String str2MD5(String strs) {\n StringBuffer sb = new StringBuffer();\n try {\n MessageDigest digest = MessageDigest.getInstance(\"MD5\");\n byte[] bs = digest.digest(strs.getBytes());\n /*\n * after encryption is -128 to 127 ,is not safe\n * use it to binary operation,get new encryption result\n *\n * 0000 0011 0000 0100 0010 0000 0110 0001\n * &0000 0000 0000 0000 0000 0000 1111 1111\n * ---------------------------------------------\n * 0000 0000 0000 0000 0000 0000 0110 0001\n *\n * change to 16 bit\n */\n for (byte b : bs) {\n int x = b & 255;\n String s = Integer.toHexString(x);\n if (x < 16) {\n sb.append(\"0\");\n }\n sb.append(s);\n }\n\n } catch (Exception e) {\n System.out.println(\"encryption lose\");\n }\n return sb.toString();\n }", "public String toString() {\n return Util.bytesToHex(getByteArray());\n }", "public static String encodeString(String source) {\n\n MessageDigest digest = null;\n try {\n digest = MessageDigest.getInstance(\"SHA-256\");\n } catch (NoSuchAlgorithmException e) {\n throw new RuntimeException(\"Couldn't instantiate SHA-256 algorithm\", e);\n }\n\n byte[] encodedHash = digest.digest(\n source.getBytes(StandardCharsets.UTF_8));\n\n return bytesToHex(encodedHash);\n }", "public static String getHashString(String inputString) {\n MessageDigest md;\n byte[] hash;\n try {\n md = MessageDigest.getInstance(\"MD5\");\n } catch (java.security.NoSuchAlgorithmException e) {\n throw new RuntimeException(e);\n }\n try {\n hash = md.digest(inputString.getBytes(\"UTF-8\"));\n } catch (java.io.UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n StringBuilder sb = new StringBuilder();\n for(byte b : hash){\n sb.append(String.format(\"%02x\", b & 0xff));\n }\n return sb.toString();\n }", "private String computeDigest(boolean paramBoolean, String paramString1, char[] paramArrayOfchar, String paramString2, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7) throws NoSuchAlgorithmException {\n/* 470 */ String str1, str3, str5, str2 = this.params.getAlgorithm();\n/* 471 */ boolean bool = str2.equalsIgnoreCase(\"MD5-sess\");\n/* */ \n/* 473 */ MessageDigest messageDigest = MessageDigest.getInstance(bool ? \"MD5\" : str2);\n/* */ \n/* 475 */ if (bool) {\n/* 476 */ if ((str1 = this.params.getCachedHA1()) == null) {\n/* 477 */ str3 = paramString1 + \":\" + paramString2 + \":\";\n/* 478 */ String str7 = encode(str3, paramArrayOfchar, messageDigest);\n/* 479 */ String str6 = str7 + \":\" + paramString5 + \":\" + paramString6;\n/* 480 */ str1 = encode(str6, (char[])null, messageDigest);\n/* 481 */ this.params.setCachedHA1(str1);\n/* */ } \n/* */ } else {\n/* 484 */ String str = paramString1 + \":\" + paramString2 + \":\";\n/* 485 */ str1 = encode(str, paramArrayOfchar, messageDigest);\n/* */ } \n/* */ \n/* */ \n/* 489 */ if (paramBoolean) {\n/* 490 */ str3 = paramString3 + \":\" + paramString4;\n/* */ } else {\n/* 492 */ str3 = \":\" + paramString4;\n/* */ } \n/* 494 */ String str4 = encode(str3, (char[])null, messageDigest);\n/* */ \n/* */ \n/* 497 */ if (this.params.authQop()) {\n/* 498 */ str5 = str1 + \":\" + paramString5 + \":\" + paramString7 + \":\" + paramString6 + \":auth:\" + str4;\n/* */ }\n/* */ else {\n/* */ \n/* 502 */ str5 = str1 + \":\" + paramString5 + \":\" + str4;\n/* */ } \n/* */ \n/* */ \n/* 506 */ return encode(str5, (char[])null, messageDigest);\n/* */ }", "public String getMessageDigestAlgorithm() {\r\n\t\treturn this.messageDigestAlgorithm;\r\n\t}", "@SuppressWarnings(\"unused\")\n private static String getKeyString(Key key)\n {\n return Base64.encode(key.getEncoded());\n }", "public static String encryptMD5ToString(final byte[] data) {\n return bytes2HexString(encryptMD5(data));\n }", "public static String byteToHex(final byte[] hash) {\n if (Objects.isNull(hash)) {\n return null;\n }\n\n Formatter formatter = new Formatter();\n for (byte b : hash) {\n formatter.format(\"%02x\", b);\n }\n String result = formatter.toString();\n formatter.close();\n return result;\n }", "public static String hash(String password){\r\n\t\t try {\r\n\t MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\r\n\t md.update(password.getBytes(\"UTF-8\")); \r\n\t byte[] digest = md.digest();\r\n\t \r\n\t BigInteger bigInt = new BigInteger(1, digest);\r\n\t StringBuffer sb = new StringBuffer();\r\n\t for (int i = 0; i < digest.length; i++) {\r\n\t String hex = Integer.toHexString(0xff & digest[i]);\r\n\t if (hex.length() == 1) sb.append('0');\r\n\t sb.append(hex);\r\n\t }\r\n\t System.out.println(sb.toString());\r\n\t return sb.toString();\r\n\t \r\n\t } catch (Exception ex) {\r\n\t System.out.println(ex.getMessage());\r\n\t \r\n\t }\r\n\t\t return null;\r\n\t}", "void setDigestAlgorithm(String digestAlgorithm);", "public String getHash(String password) {\n return DigestUtils.sha256Hex(password);\n }", "static String md5test(String text,String returnType) {\n String result=null;\n if (returnType.equals(\"str\")){\n result = DigestUtils.md5Hex(text);\n System.out.println(result); // 5d41402abc4b2a76b9719d911017c592\n }else if(returnType.equals(\"byteArray\")){\n byte[] res = DigestUtils.md5(text);\n System.out.println(byteToHex(res));// 5d41402abc4b2a76b9719d911017c592\n }\n //new String((byte[]) res)\n return result;\n}" ]
[ "0.7387616", "0.7244603", "0.7013799", "0.6491666", "0.6445094", "0.6304273", "0.62285197", "0.6197127", "0.61900073", "0.6157211", "0.6105304", "0.6079689", "0.6049014", "0.60340893", "0.6026807", "0.5961171", "0.5959042", "0.5944704", "0.5850548", "0.5849156", "0.5840418", "0.5779297", "0.57696104", "0.5744303", "0.57372767", "0.57107496", "0.57010484", "0.5673986", "0.56498045", "0.56331", "0.56228405", "0.5617075", "0.56052756", "0.5597593", "0.55734503", "0.5571328", "0.55600864", "0.5557517", "0.55567515", "0.5556018", "0.5548821", "0.55462515", "0.55363333", "0.55348134", "0.5534641", "0.5508298", "0.5498416", "0.54891366", "0.5487541", "0.5482388", "0.5471453", "0.5470448", "0.54665947", "0.5466013", "0.54607207", "0.5456364", "0.5453612", "0.5443092", "0.543487", "0.54153484", "0.54143924", "0.5411111", "0.54056764", "0.5404224", "0.53995293", "0.5396445", "0.53916276", "0.5372881", "0.5372545", "0.5369056", "0.5365513", "0.53628945", "0.53628945", "0.5362641", "0.5357065", "0.5349947", "0.5345852", "0.534036", "0.5335635", "0.53128195", "0.53094685", "0.5308958", "0.5306847", "0.5304512", "0.53008693", "0.529226", "0.52849156", "0.52832717", "0.5280671", "0.52775186", "0.5274901", "0.5274271", "0.52736187", "0.5273069", "0.52724534", "0.52650285", "0.5259404", "0.52587557", "0.5257591", "0.5257168" ]
0.6790146
3
Tests that the default constructor uses the main thread
public void testDefaultsToMainThread() throws Exception { Executor executor = new LooperExecutor(); final CountDownLatch latch = new CountDownLatch(1); executor.execute(new Runnable() { @Override public void run() { assertEquals("running on ui thread", Looper.getMainLooper(), Looper.myLooper()); latch.countDown(); } }); latch.await(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AbstractConcurrentTestCase() {\n mainThread = Thread.currentThread();\n }", "@Test\n public void construtorTest() {\n ThreadObserveSample person = new ThreadObserveSample(\"test\");\n }", "private ThreadUtil() {\n \n }", "private ThreadUtil() {\n }", "public MainThread()\n {\n super();\n setPriority(1);\n setId(0x55); \n }", "public void init() {\n Thread run = new Thread(new Run());\n run.start();\n }", "public TestInvoker()\n {\n super(new TestClient(), new ThreadPoolExecutorImpl(3));\n }", "NetThread(){}", "private static native Object setupMainThread0(Object thread);", "private ThreadUtil() {\n throw new UnsupportedOperationException(\"This class is non-instantiable\"); //$NON-NLS-1$\n }", "public void initialize() {\n service = Executors.newCachedThreadPool();\n }", "public UCharacterThreadTest()\n {\n }", "@Test(expected = NullPointerException.class)\n public void testConstructorNPE2() throws NullPointerException {\n Executors.newCachedThreadPool();\n new BoundedCompletionService<Void>(null);\n shouldThrow();\n }", "public static void initCommunicationClientThread(){\r\n new CommunicationClientThread();\r\n }", "public ThreadLocal() {}", "ThreadStart createThreadStart();", "public JanelaThread() {\n initComponents();\n }", "public static boolean init() {\n threadLocal.set(new Telemetry());\n return true;\n }", "@Test\n public void testInitialize() {\n System.out.println(\"initialize\");\n ExecutorService mwp = MY_WORKER_POOL;\n MyStatus status = mystatus;\n Class<?> package4Prefs = SettingTest.class;\n Setting.initialize(mwp, status, package4Prefs);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "ThreadCounterRunner() {}", "public void createThread() {\n }", "protected PayerThread() {\n\t\t\tEvent.ASSERTION.issue(sets == null, \"builders is null\");\n\t\t\tEvent.ASSERTION.issue(workloadConfiguration == null, \"configuration is null\");\n\n\t\t\tsetDaemon(true);\n\t\t}", "void init() {\n try {\n // Start the send and receive threads and exit\n //scheduler.scheduleThread(new Thread(new UDPTransportThread(this, UDPTransportThread.RUN_SEND_THREAD)));\n //scheduler.scheduleThread(new Thread(new UDPTransportThread(this, UDPTransportThread.RUN_RCV_THREAD)));\n //scheduler.scheduleThread(new Thread(new UDPTransportThread(this, UDPTransportThread.RUN_GC_THREAD)));\n } catch (IllegalThreadStateException e) {\n Debug.exit(\"Fatal Error: \" + e.toString());\n }\n }", "public ImageThread() {\n\t}", "PooledThread()\n {\n setDaemon(true);\n\n start();\n }", "public void setUp() {\n threadName = Thread.currentThread().getName();\n }", "static void test3() {\n\n System.out.println( \"Begin test3. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n System.out.println( \"TODO: write another, more involved test here.\" );\n System.out.println( \"\\n=============================== End test3.\" );\n }", "@Override\n\tpublic Task constructInstance(Robot robot) {\n\t\treturn null;\n\t}", "public JMSReplicationThread() {\r\n super(\"JMS Replication Thread\");\r\n setDaemon(true);\r\n setPriority(Thread.NORM_PRIORITY);\r\n }", "@PostConstruct\r\n\tprivate void init() {\n\t threadPool = Executors.newCachedThreadPool();\r\n\t}", "public ProducerThread() {\n }", "public synchronized void startup() {\n\n if (mThread == null) {\n mThread = new CounterThread();\n new Thread(mThread).start();\n }\n Log.d(TAG, \"startup\");\n }", "public void initialize() {\n\n\t\t// Initialize taskList\n\t\tthis.taskList = new LinkedList<Task>();\n\n\t\t// create a new thread for total size of pool\n\t\tfor (int i = 0; i < this.poolSize; ++i) {\n\t\t\tthreadPool.add(new WorkerThread(this));\n\t\t}\n\n\t\t// Start each thread in thread pool\n\t\tfor (WorkerThread t : threadPool) {\n\t\t\tnew Thread(t).start();\n\t\t}\n\n\t}", "public void initialize() throws InterruptedException, UnknownHostException;", "public SleepTest()\n {\n getLogger().debug(whoAmI() + \"\\tConstruct\");\n }", "public TestJSR88Concurrency() {\n }", "private Thread startTestThread(Runnable runnable) {\n Thread t = new Thread(runnable);\n t.setDaemon(true);\n return t;\n }", "public WorkerMonitor() {\n }", "public ThreadTest(String testName) {\n\n super(testName);\n\n logger = LogManager.getLogger(testName);//T1.class.getName()\n\n }", "public void init() {\n\t\tThread appThread = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tSwingUtilities.invokeAndWait(doHelloWorld);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Finished on \" + Thread.currentThread());\n\t\t\t}\n\t\t};\n\t\tappThread.start();\n\t}", "@Override\n public void init() {\n System.out.println(\"init: \" + Thread.currentThread().getName());\n }", "public void testDefaultThreadFactory() throws Exception {\n final ThreadGroup egroup = Thread.currentThread().getThreadGroup();\n final CountDownLatch done = new CountDownLatch(1);\n Runnable r = new CheckedRunnable() {\n public void realRun() {\n try {\n Thread current = Thread.currentThread();\n assertTrue(!current.isDaemon());\n assertTrue(current.getPriority() <= Thread.NORM_PRIORITY);\n ThreadGroup g = current.getThreadGroup();\n SecurityManager s = System.getSecurityManager();\n if (s != null)\n assertTrue(g == s.getThreadGroup());\n else\n assertTrue(g == egroup);\n String name = current.getName();\n assertTrue(name.endsWith(\"thread-1\"));\n } catch (SecurityException ok) {\n // Also pass if not allowed to change setting\n }\n done.countDown();\n }};\n ExecutorService e = Executors.newSingleThreadExecutor(Executors.defaultThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(r);\n await(done);\n }\n }", "@Override\r\n\tpublic Thread newThread(Runnable arg0) {\n\t\treturn null;\r\n\t}", "@Test\n public void constructStartAndStop() {\n kit.setBlockingStartup(false);\n kit.startAsync();\n kit.awaitRunning();\n kit.stopAsync();\n kit.awaitTerminated();\n }", "private QcTestRunner()\n\t{\n\t\t// To prevent external instantiation of this class\n\t}", "private void startNormalThread() {\n customThread = new CustomThread();\n customThread.start();\n }", "public static void initialize()\n {\n // Initiate election\n Runnable sender = new BullyAlgorithm(\"Sender\",\"election\");\n new Thread(sender).start();\n }", "private void initThread() {\r\n\t\tthreadPreviewDataToImageData = new ThreadPreviewDataToImageData();\r\n\t\t// threadPreviewDataToFakePictureImageData = new\r\n\t\t// ThreadPreviewDataToFakePictureImageData();\r\n\t\t// threadPreviewYUVDecode = new ThreadPreviewYUVDecode();\r\n\r\n\t\tthreadPreviewDataToImageData.start();\r\n\t\t/*\r\n\t\t * if (CameraConfigure.isUseFakeImageData) { //\r\n\t\t * threadPreviewDataToFakePictureImageData.start(); } else {\r\n\t\t * //threadPreviewYUVDecode.start(); }\r\n\t\t */\r\n\r\n\t\t/** preview callback to ThreadPreviewDataToImageData */\r\n\t\tif (null == BlockingQueuePreviewData.getBlockingQueuePreviewData()) {\r\n\t\t\tnew BlockingQueuePreviewData();\r\n\t\t}\r\n\t\t/** ThreadPreviewDataToImageData to ThreadQRcodeDecode */\r\n\t\tif (null == BlockingQueueGrayByteData.getBlockingQueueGrayByteData()) {\r\n\t\t\tnew BlockingQueueGrayByteData();\r\n\t\t}\r\n\t\t/** ThreadPreviewDataToImageData to ThreadBarcodeDecode */\r\n\t\tif (null == BlockingQueueGrayByteDataArray\r\n\t\t\t\t.getBlockingQueueGrayByteDataArray()) {\r\n\t\t\tnew BlockingQueueGrayByteDataArray();\r\n\t\t}\r\n\t\t/** ThreadPreviewDataToImageData to ThreadBCardScanning */\r\n\t\tif (null == BlockingQueueGrayByteDataPreviewData\r\n\t\t\t\t.getBlockingQueueGrayByteDataPreviewData()) {\r\n\t\t\tnew BlockingQueueGrayByteDataPreviewData();\r\n\t\t}\r\n\t\t/*\r\n\t\t * if (null == BlockingQueueByteArray.getBlockingQueueByteArray()) { new\r\n\t\t * BlockingQueueByteArray(); }\r\n\t\t */\r\n\r\n\t\t/*\r\n\t\t * if (null == BlockingQueueFakePictureImageData\r\n\t\t * .getBlockingQueueFakePictureImageData()) { new\r\n\t\t * BlockingQueueFakePictureImageData(); }\r\n\t\t */\r\n\t}", "private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "public Task() { }", "public void testConstructor() {\n AtomicLong ai = new AtomicLong(1);\n assertEquals(1, ai.get());\n }", "public static Object javafx$run$(Sequence<String> __ARGS__) {\n assertEquals(\"Test was not started on main thread\", \n \"main\", Thread.currentThread().getName());\n return null;\n }", "public Core(Runnable initialize){\n\t\tthis(initialize, () -> {});\n\t}", "public void setUp() {\n instance = new Task();\n }", "protected Tool() {\n\n\t\t// A hacky way of automatically registering it AFTER the parent constructor, assuming all went okay\n\t\tnew Thread(() -> {\n\n\t\t\ttry {\n\t\t\t\tThread.sleep(3);\n\t\t\t} catch (final InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tfinal Tool instance = Tool.this;\n\n\t\t\tif (!isRegistered(instance))\n\t\t\t\tregister(instance);\n\t\t}).start();\n\t}", "@Before\n public void init(){\n mSignal = new CountDownLatch(1);\n }", "public void testNewSingleThreadExecutor3() {\n try {\n ExecutorService e = Executors.newSingleThreadExecutor(null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "private void testValueFactoryRequiresMainThreadHeldByOtherSync(boolean passJtfToLazyCtor) throws Exception {\n\t\tSynchronizationContext ctxt = SingleThreadedSynchronizationContext.create();\n\t\tSynchronizationContext.setSynchronizationContext(ctxt);\n\t\tJoinableFutureContext context = new JoinableFutureContext();\n\t\tJoinableFutureFactory asyncPump = context.getFactory();\n\t\tThread originalThread = Thread.currentThread();\n\n\t\tAsyncManualResetEvent evt = new AsyncManualResetEvent();\n\t\tAsyncLazy<Object> lazy = new AsyncLazy<>(\n\t\t\t() -> {\n\t\t\t\t// It is important that no await appear before this JFF.run call, since\n\t\t\t\t// we're testing that the value factory is not invoked while the AsyncLazy\n\t\t\t\t// holds a private lock that would deadlock when called from another thread.\n\t\t\t\tasyncPump.run(() -> Async.awaitAsync(asyncPump.switchToMainThreadAsync(getTimeoutToken())));\n\t\t\t\treturn Async.awaitAsync(\n\t\t\t\t\tAsync.yieldAsync(),\n\t\t\t\t\t() -> CompletableFuture.completedFuture(new Object()));\n\t\t\t},\n\t\t\t// mix it up to exercise all the code paths in the ctor.\n\t\t\tpassJtfToLazyCtor ? asyncPump : null);\n\n\t\tCompletableFuture<?> backgroundRequest = Futures.supplyAsync(() -> Async.awaitAsync(lazy.getValueAsync()));\n\n\t\t// Give the background thread time to call GetValueAsync(), but it doesn't yield (when the test was written).\n\t\tThread.sleep(ASYNC_DELAY.toMillis());\n\t\tCompletableFuture<?> foregroundRequest = lazy.getValueAsync();\n\n\t\tFrame frame = SingleThreadedSynchronizationContext.newFrame();\n\t\tCompletableFuture<?> combinedTask = CompletableFuture.allOf(foregroundRequest, backgroundRequest);\n\t\tTplExtensions.withTimeout(combinedTask, UNEXPECTED_TIMEOUT).thenRun(() -> frame.setContinue(false));\n\t\tSingleThreadedSynchronizationContext.pushFrame(ctxt, frame);\n\n\t\t// Ensure that the test didn't simply timeout, and that the individual tasks did not throw.\n\t\tAssert.assertTrue(foregroundRequest.isDone());\n\t\tAssert.assertTrue(backgroundRequest.isDone());\n\t\tAssert.assertSame(foregroundRequest.join(), backgroundRequest.join());\n\t}", "@Test\n public void testStart() throws InterruptedException {\n Thread thread = new Thread(new Runnable() {\n\n @Override\n public void run() {\n new JFXPanel(); // Initializes the JavaFx Platform\n Platform.runLater(new Runnable() {\n\n @Override\n public void run() {\n try {\n new GOL_Main().start(new Stage()); // Create and\n // initialize app\n } catch (Exception ex) {\n Logger.getLogger(GOL_MainTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n });\n }\n });\n thread.start();// Initialize the thread\n Thread.sleep(10);\n System.out.println(\"start\");\n Stage stage = null;\n GOL_Main instance = new GOL_Main(); \n }", "protected TestBench() {}", "private Main() {\n\n super();\n }", "public void testCreateThreadPool_0args()\n {\n System.out.println( \"createThreadPool\" );\n ThreadPoolExecutor result = ParallelUtil.createThreadPool();\n ThreadPoolExecutor expected = ParallelUtil.createThreadPool(\n ParallelUtil.OPTIMAL_THREADS );\n assertEquals( expected.getMaximumPoolSize(), result.getMaximumPoolSize() );\n }", "public TestCaseSocket() {\n\t}", "private JobScheduler() {\n // empty\n }", "private Main ()\n {\n super ();\n }", "private UniqueElementSingleThreadWorker()\n {\n _state = ActivityState.INITIALIZING;\n _taskQueue = new UniqueTagQueue<String, Runnable>();\n \n _taskThread = new Thread(\"UniqueElementSingleThreadWorker-\" + COUNTER.incrementAndGet())\n {\n @Override\n public void run()\n {\n while(true)\n {\n try\n {\n Runnable task = _taskQueue.blockingPop();\n if(task == SHUTDOWN_TASK)\n {\n break;\n }\n task.run();\n }\n catch(InterruptedException ex) { }\n //Catch run time exceptions that the runnable might throw so that the thread does not die\n catch(RuntimeException ex)\n {\n ErrorReporter.reportUncaughtException(ex);\n }\n }\n \n _state = ActivityState.SHUT_DOWN;\n }\n };\n }", "public ThreadPool()\r\n {\r\n // 20 seconds of inactivity and a worker gives up\r\n suicideTime = 20000;\r\n // half a second for the oldest job in the queue before\r\n // spawning a worker to handle it\r\n spawnTime = 500;\r\n jobs = null;\r\n activeThreads = 0;\r\n askedToStop = false;\r\n }", "public Task() {\r\n }", "private TetrisMain() {\r\n //ensure uninstantiability\r\n }", "private Main() {}", "public void start() {\n // EFFECTS: starts a new thread from this instance.\n (new Thread(instance)).start();\n }", "@Override\r\n public Thread newThread(Runnable r) {\n Thread t = new Thread(r, \"example-runner\");\r\n t.setDaemon(true);\r\n return t;\r\n }", "@PostConstruct\r\n public void init() {\r\n \t//registerNotificationCallback(null); //to register taskexecution engine as default\r\n ThreadFactory namedThreadFactory = new ThreadFactoryBuilder().setNameFormat(\"MARM-thread-%d\").build();\r\n \texecutor = Executors.newFixedThreadPool(10, namedThreadFactory);\r\n\r\n ThreadFactory brokerThreadFactory = new ThreadFactoryBuilder().setNameFormat(\"Broker-thread-%d\").build();\r\n brokerExecutor = Executors.newFixedThreadPool(10, brokerThreadFactory);\r\n\r\n ThreadFactory logThreadFactory = new ThreadFactoryBuilder().setNameFormat(\"LOG-thread-%d\").setPriority(Thread.MIN_PRIORITY).build();\r\n logExecutor = Executors.newFixedThreadPool(10, logThreadFactory);\r\n broker.registerInputListener(this);\r\n broker.registerControlListener(this);\r\n }", "public TicketBoothClient()\n {\n Thread myThread = new Thread(this);\n myThread.start();\n }", "public void testForNThreads();", "public Main() {}", "public void initialize()\n throws Exception\n {\n final DNAThreadPoolMonitor monitor = new DNAThreadPoolMonitor();\n ContainerUtil.enableLogging( monitor, m_logger );\n setMonitor( monitor );\n setup();\n }", "@Override\n public void init() throws Exception {\n // On Mac OS X Chromium engine must be initialized in non-UI thread.\n if (Environment.isMac()) {\n BrowserCore.initialize();\n }\n }", "public Task() {\n }", "public void start() {\n thread = new Thread(this);\n thread.setPriority(Thread.MIN_PRIORITY);\n thread.start();\n }", "private TetrisMain() {\r\n //prevents instantiation\r\n }", "public Task() {\n\t}", "public void testConstructor2() {\n AtomicLong ai = new AtomicLong();\n assertEquals(0, ai.get());\n }", "@Override\n\t\tpublic ThreadSynchroniser createThreadSynchroniser() {\n\t\t\tthrow new IllegalStateException(\"Mock \" + ThreadSynchroniser.class.getSimpleName() + \" for \"\n\t\t\t\t\t+ SupplierTypeBuilder.class.getSimpleName() + \" can not be used\");\n\t\t}", "@Override\n public synchronized void start() {\n init();\n }", "public void testNewCachedThreadPool3() {\n try {\n ExecutorService e = Executors.newCachedThreadPool(null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "public Worker(){\n\n }", "public Main() {\n\t\tsuper();\n\t}", "private CameraExecutors() {\n }", "public void start() {\n\t\tif(t == null) {\n\t\t\tt = new Thread(this);\n\t\t\tt.start();\n\t\t}\n\t}", "public LocalClient() {\n\t\tsuper(\"SERVER\", Arrays.asList(new String[] {\"*\"}), null, null);\n\t\tinputThread = new Thread(this);\n\t\tinputThread.start();\n\t}", "protected TaskChain() {\n\t}", "private static void init(WorkQueue<IMethod> q) {\n q.add(MultiThreadAnalysisUtil.getFakeRoot());\n }", "@Test\n void constructorTest() {\n super.checkConstruction();\n }", "protected void initialize() {\n \tthis.running= false;\n }", "private RRCPConnectionListener() {\n mainThread = new Thread(this);\n }", "@Override\n\tpublic synchronized void init() {\n\t}", "public Main() {\r\n\t}", "private GDMThreadFactory(){}" ]
[ "0.7824828", "0.7111063", "0.7108115", "0.6969245", "0.68882966", "0.6643634", "0.6599732", "0.64192617", "0.6388743", "0.63704705", "0.6369849", "0.63182557", "0.61973494", "0.61730003", "0.6170615", "0.61587644", "0.61391085", "0.6132745", "0.6128945", "0.6114561", "0.6103433", "0.603865", "0.6018416", "0.60111195", "0.6007541", "0.59901476", "0.5980097", "0.59720194", "0.59607935", "0.5950054", "0.593678", "0.5934286", "0.5924413", "0.592202", "0.59095854", "0.5907653", "0.5906108", "0.58795667", "0.58758765", "0.5868546", "0.58631754", "0.5853944", "0.5842663", "0.5836756", "0.58354443", "0.5833103", "0.58325595", "0.5828781", "0.58285564", "0.5821432", "0.5809228", "0.5783879", "0.57821923", "0.57614213", "0.5761296", "0.57609206", "0.57573855", "0.57426715", "0.5736267", "0.5730971", "0.57291216", "0.57271874", "0.57263553", "0.5721164", "0.5715291", "0.5710578", "0.5709235", "0.5706563", "0.570583", "0.57045025", "0.5701557", "0.5684639", "0.5675337", "0.56743324", "0.56722826", "0.56709665", "0.56664413", "0.5664334", "0.56626683", "0.56592625", "0.56588423", "0.5654173", "0.564836", "0.5642926", "0.5641223", "0.5639299", "0.5627806", "0.5625689", "0.5620858", "0.56204885", "0.5614263", "0.5610666", "0.56104755", "0.56036943", "0.560321", "0.5598805", "0.5596315", "0.5594568", "0.5585155", "0.55832005" ]
0.66857255
5
Tests that the executor uses the supplied thread
public void testRunsOnCorrectLooper() throws Exception { final HandlerThread newThread = new HandlerThread("looper executor test thread"); newThread.start(); final Looper newLooper = newThread.getLooper(); Executor executor = new LooperExecutor(newLooper); final CountDownLatch latch = new CountDownLatch(1); executor.execute(new Runnable() { @Override public void run() { assertEquals("running on with expected looper", newLooper, Looper.myLooper()); assertEquals("running on expected thread", newThread, Thread.currentThread()); latch.countDown(); } }); latch.await(); newLooper.quit(); newThread.join(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testDefaultsToMainThread() throws Exception {\n\n Executor executor = new LooperExecutor();\n final CountDownLatch latch = new CountDownLatch(1);\n executor.execute(new Runnable() {\n @Override\n public void run() {\n assertEquals(\"running on ui thread\", Looper.getMainLooper(), Looper.myLooper());\n latch.countDown();\n }\n });\n latch.await();\n }", "@Test\n @SneakyThrows\n void test() {\n ExecutorService executor = Executors.newSingleThreadExecutor();\n\n Runnable runnable = () -> {\n System.out.println(\"this is a new thread !!\");\n System.out.println(\"===============\");\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n };\n\n for (int i = 0; i < 3; i++) {\n executor.submit(runnable);\n }\n Thread.sleep(10 * 1000);\n\n executor.shutdown();\n\n }", "public void testForNThreads();", "@Test\n @DisplayName(\"Plain Runnable\")\n void testRunnable() {\n Runnable task = this::printThreadName;\n\n task.run();\n\n Thread thread = new Thread(task);\n thread.start();\n\n System.out.println(\"Done!\");\n }", "private synchronized void execute(TestRunnerThread testRunnerThread) {\n boolean hasSpace = false;\n while(!hasSpace) {\n threadLock.lock();\n try {\n hasSpace = currentThreads.size()<capacity;\n }\n finally {\n threadLock.unlock();\n }\n }\n \n //Adding thread to list and executing it\n threadLock.lock();\n try {\n currentThreads.add(testRunnerThread);\n testRunnerThread.setThreadPoolListener(this);\n Thread thread = new Thread(testRunnerThread);\n //System.out.println(\"Starting thread for \"+testRunnerThread.getTestRunner().getTestName());\n thread.start();\n }\n finally {\n threadLock.unlock();\n }\n }", "private static boolean ignore(Thread thread) {\n String threadName = thread.getName();\n if (IGNORED_THREADS_REGEX.matcher(threadName).matches())\n return true;\n\n if (thread.getName().startsWith(\"Thread-\")) {\n // Special check for ByteMan, because nobody calls TransformListener.terminate()\n if (thread.getClass().getName().equals(\"org.jboss.byteman.agent.TransformListener\"))\n return true;\n\n // Special check for Arquillian, because it uses an unnamed thread to read from the container console\n StackTraceElement[] s = thread.getStackTrace();\n for (StackTraceElement ste : s) {\n if (ste.getClassName().equals(ARQUILLIAN_CONSOLE_CONSUMER)) {\n return true;\n }\n }\n }\n return false;\n }", "public AbstractConcurrentTestCase() {\n mainThread = Thread.currentThread();\n }", "static boolean isGradlePollThread(RecordedThread thread) {\n return (thread != null && thread.getJavaName().startsWith(\"/127.0.0.1\"));\n }", "public void testNewSingleThreadExecutor3() {\n try {\n ExecutorService e = Executors.newSingleThreadExecutor(null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "public interface ThreadExecutor extends Executor {\n}", "@Test\n @DisplayName(\"SingleThread Executor + shutdown\")\n void firstExecutorService() {\n ExecutorService executor = Executors.newSingleThreadExecutor();\n executor.submit(this::printThreadName);\n\n shutdownExecutor(executor);\n assertThrows(RejectedExecutionException.class, () -> executor.submit(this::printThreadName));\n }", "public abstract void putThread(Waiter waiter, Thread thread);", "@Test\n public void testRun() {\n System.out.println(\"run\");\n File_Chooser fc = new File_Chooser();\n new Thread(fc).start();\n }", "public void setThread(Thread t);", "public abstract boolean dispatch(final CallRunner callTask) throws InterruptedException;", "@Test\n public void testServerApp() throws InterruptedException {\n\n }", "@Test\n\tpublic void sameThreadPoolDueToAffinity() throws Exception {\n\t\tString previousCore = null;\n\t\tfor (int i = 0; i < 100; i++) {\n\n\t\t\t// GET entry\n\t\t\tMockHttpResponse response = this.server.send(MockHttpServer.mockRequest(\"/\"));\n\t\t\tString html = response.getEntity(null);\n\t\t\tassertEquals(200, response.getStatus().getStatusCode(), \"Should be successful: \" + html);\n\n\t\t\t// Parse out the core\n\t\t\tPattern pattern = Pattern.compile(\".*CORE-(\\\\d+)-.*\", Pattern.DOTALL);\n\t\t\tMatcher matcher = pattern.matcher(html);\n\t\t\tassertTrue(matcher.matches(), \"Should be able to obtain thread affinity core\");\n\t\t\tString core = matcher.group(1);\n\n\t\t\t// Ensure same as previous core (ignoring first call)\n\t\t\tif (previousCore != null) {\n\t\t\t\tassertEquals(previousCore, core, \"Should be locked to same core\");\n\t\t\t}\n\n\t\t\t// Set up for next call\n\t\t\tpreviousCore = core;\n\t\t}\n\t}", "public void testNewSingleThreadExecutor2() {\n final ExecutorService e = Executors.newSingleThreadExecutor(new SimpleThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }", "@Test\n\tpublic void testThread() throws Exception {\n\t\tlong t = System.currentTimeMillis();\n\t\tManagerThread[] testThreads = new ManagerThread[THREADS];\n\n\t\tfor (int i = 0; i < THREADS; i++) {\n\t\t\ttestThreads[i] = new ManagerThread();\n\t\t}\n\t\tfor (int i = 0; i < THREADS; i++) {\n\t\t\ttestThreads[i].run();\n\t\t}\n\t\tfor (int i = 0; i < THREADS; i++) {\n\t\t\ttestThreads[i].join();\n\t\t}\n\t\tt = System.currentTimeMillis() - t;\n\t\tSystem.out.println(\"Run get() for \" + TIMES + \" times, taking \" + t\n\t\t\t\t+ \"ms.\");\n\t}", "public void testCastNewSingleThreadExecutor() {\n final ExecutorService e = Executors.newSingleThreadExecutor();\n try (PoolCleaner cleaner = cleaner(e)) {\n try {\n ThreadPoolExecutor tpe = (ThreadPoolExecutor)e;\n shouldThrow();\n } catch (ClassCastException success) {}\n }\n }", "public void testNewSingleThreadExecutor1() {\n final ExecutorService e = Executors.newSingleThreadExecutor();\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }", "public void testGetNumThreads_ThreadPoolExecutor()\n {\n System.out.println( \"getNumThreads\" );\n int numThreads = 10;\n PA pa = new PA();\n assertEquals( 0, ParallelUtil.getNumThreads( pa.getThreadPool() ) );\n \n pa.threadPool = ParallelUtil.createThreadPool( 10 ); \n \n int result = ParallelUtil.getNumThreads( pa.getThreadPool() );\n assertEquals( numThreads, result );\n }", "public void waitForAccess(KThread thread) \n\t\t{\n\t\t\tLib.assertTrue(Machine.interrupt().disabled());\n ThreadState waiterState = getThreadState(thread);\n waiterState.waitForAccess(this); //Call waitForAccess of ThreadState class\n waitQueue.add(thread); //Add this thread to this waitQueue \n if(owner != null)\n\t\t\t{\n\t\t\t getThreadState(owner).donatePriority(waiterState.getPriority()-getThreadState(owner).getPriority()); //See if the incoming thread has to donate priority to the owner\n\t\t\t}\n\t\t}", "@Test\n @ConditionalIgnoreRule.ConditionalIgnore(condition = RunningOnGithubAction.class)\n public void testSuccess() throws Exception {\n int concurrency = 10;\n ExecutorService executorService = Executors.newFixedThreadPool(10);\n List<Future<?>> futures = new ArrayList<>();\n // create 10 threads, each open a connection and submit a query\n // after sleeping 15 seconds\n for (int idx = 0; idx < concurrency; idx++) {\n logger.fine(\"open a new connection and submit query \" + idx);\n final int queryIdx = idx;\n futures.add(\n executorService.submit(\n () -> {\n try {\n submitQuery(true, queryIdx);\n } catch (SQLException | InterruptedException e) {\n throw new IllegalStateException(\"task interrupted\", e);\n }\n }));\n }\n executorService.shutdown();\n for (int idx = 0; idx < concurrency; idx++) futures.get(idx).get();\n }", "public void testPrivilegedThreadFactory() throws Exception {\n final CountDownLatch done = new CountDownLatch(1);\n Runnable r = new CheckedRunnable() {\n public void realRun() throws Exception {\n final ThreadGroup egroup = Thread.currentThread().getThreadGroup();\n final ClassLoader thisccl = Thread.currentThread().getContextClassLoader();\n // android-note: Removed unsupported access controller check.\n // final AccessControlContext thisacc = AccessController.getContext();\n Runnable r = new CheckedRunnable() {\n public void realRun() {\n Thread current = Thread.currentThread();\n assertTrue(!current.isDaemon());\n assertTrue(current.getPriority() <= Thread.NORM_PRIORITY);\n ThreadGroup g = current.getThreadGroup();\n SecurityManager s = System.getSecurityManager();\n if (s != null)\n assertTrue(g == s.getThreadGroup());\n else\n assertTrue(g == egroup);\n String name = current.getName();\n assertTrue(name.endsWith(\"thread-1\"));\n assertSame(thisccl, current.getContextClassLoader());\n //assertEquals(thisacc, AccessController.getContext());\n done.countDown();\n }};\n ExecutorService e = Executors.newSingleThreadExecutor(Executors.privilegedThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(r);\n await(done);\n }\n }};\n\n runWithPermissions(r,\n new RuntimePermission(\"getClassLoader\"),\n new RuntimePermission(\"setContextClassLoader\"),\n new RuntimePermission(\"modifyThread\"));\n }", "@Test\n public void testIfThreadsAreBlockedIfThereIsNothinginQueue() throws InterruptedException {\n \t\n \tqueue.addUserRequest(createUserRequest(1, 10, ElevatorDirection.UP));\n \tqueue.addUserRequest(createUserRequest(1, 8, ElevatorDirection.UP));\n \t\n final Thread t = startTestThread( new TestRunnable() {\n\t\t\t@Override\n\t\t\tprotected void runTestThread() throws Throwable {\n\t\t\t\tfor (int i = 0; i < 2; ++i) {\n\t\t\t\t\tAssert.assertNotNull(queue.pickRequest(1, ElevatorDirection.UP));\n\t\t\t\t\tlogger.debug(\"Picked Element Fron Queue\");\n }\n\t\t\t\tThread.currentThread().interrupt();\n try {\n \tqueue.pickRequest(1, ElevatorDirection.UP);\n Assert.assertFalse(true);\n } catch (InterruptedException success) {\n \tlogger.debug(\"Thread Interrupted\");\n }\n Assert.assertFalse(Thread.interrupted());\n\t\t\t}\n\t\t});\n t.start();\n \n }", "public abstract boolean execute(String[] args) throws InterruptedException;", "@Test\n\tpublic static void testNonThreadLocal() {\n\t\tExecutorService service = Executors.newCachedThreadPool();\n\n\t\tRunnable task = new Runnable() {\n\t\t\tNonThreadLocal<AtomicInteger> tlocal = new NonThreadLocal<AtomicInteger>() {\n\t\t\t\t@Override\n\t\t\t\tpublic AtomicInteger initialValue() {\n\t\t\t\t\treturn new AtomicInteger(1);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" start with value: \" + tlocal.get());\n\t\t\t\ttry {\n\t\t\t\t\tTimeUnit.SECONDS.sleep(1);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tint res;\n//\t\t\t\tsynchronized (\"ABC\") {\n\t\t\t\t\tres = tlocal.get().addAndGet(1);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tTimeUnit.SECONDS.sleep(1);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\ttlocal.set(new AtomicInteger(res));\n//\t\t\t\t}\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" ends with value: \" + res);\n\t\t\t}\n\t\t};\n\t\tfor (int i = 0; i < 5; i++)\n\t\t\tservice.submit(task);\n\t\tservice.shutdown();\n\n\t}", "public abstract T executor(@Nullable Executor executor);", "@Test\n public void checkEachUserGoesToSingleThread() throws InterruptedException {\n MockEndpoint mockEndpoint = getMockEndpoint(\"mock:MultithreadConsumerTest\");\n mockEndpoint.expectedMessageCount(10);\n mockEndpoint.assertIsSatisfied();\n LogManager.getLogger().info(userToThread.size());\n LogManager.getLogger().info(userToThread.values());\n Assert.assertEquals(\"previous and current thread must be equal\", badThread.get(), 0);\n Assert.assertTrue(\"there must be more than 1 thread in $userToThread unless this test is not useful\", new HashSet(userToThread.values()).size() > 1);\n }", "@Test\n @DisplayName(\"Future with result\")\n void testFutureWithResult() throws ExecutionException, InterruptedException {\n final ExecutorService executor = Executors.newSingleThreadExecutor();\n final Future<String> future = executor.submit(this::getThreadName);\n\n // check if the future has already been finished. this isn't the case since the above callable sleeps for one second before returning the integer\n assertFalse(future.isDone());\n // calling the method get() blocks the current thread and waits until the callable completes before returning the actual result\n final String result = future.get();\n // now the future is finally done\n assertTrue(future.isDone());\n\n assertThat(result).matches(Pattern.compile(\"Thread \\\"pool-\\\\d-thread-\\\\d\\\"\"));\n }", "public boolean postThread(IThread thread) throws IllegalWriteException, BBException;", "@Test\n void test3() {\n ThreadPoolExecutor executor = new ThreadPoolExecutor(1,1,10L, TimeUnit.SECONDS,new LinkedBlockingDeque<>(2),new ThreadPoolExecutor.DiscardPolicy());\n for (int i = 0; i < 10; i++) {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n System.out.println(Thread.currentThread().getName()+\"输出\");\n }\n });\n }\n }", "public void testOfferInExecutor() {\n final SynchronousQueue q = new SynchronousQueue();\n ExecutorService executor = Executors.newFixedThreadPool(2);\n final Integer one = new Integer(1);\n\n executor.execute(new Runnable() {\n public void run() {\n threadAssertFalse(q.offer(one));\n try {\n threadAssertTrue(q.offer(one, MEDIUM_DELAY_MS, TimeUnit.MILLISECONDS));\n threadAssertEquals(0, q.remainingCapacity());\n }\n catch (InterruptedException e) {\n threadUnexpectedException();\n }\n }\n });\n\n executor.execute(new Runnable() {\n public void run() {\n try {\n Thread.sleep(SMALL_DELAY_MS);\n threadAssertEquals(one, q.take());\n }\n catch (InterruptedException e) {\n threadUnexpectedException();\n }\n }\n });\n\n joinPool(executor);\n\n }", "@Test\n public void orgApacheFelixEventadminAsyncToSyncThreadRatioTest() {\n // TODO: test orgApacheFelixEventadminAsyncToSyncThreadRatio\n }", "private Thread startTestThread(Runnable runnable) {\n Thread t = new Thread(runnable);\n t.setDaemon(true);\n return t;\n }", "@Test\n public void testMultiValidateAuthorityRequestsInDifferentThreads() throws IOException, InterruptedException, ExecutionException {\n final HttpURLConnection mockedConnection = Mockito.mock(HttpURLConnection.class);\n HttpUrlConnectionFactory.setMockedHttpUrlConnection(mockedConnection);\n Util.prepareMockedUrlConnection(mockedConnection);\n\n Mockito.when(mockedConnection.getInputStream()).thenReturn(Util.createInputStream(getDiscoveryResponse()));\n Mockito.when(mockedConnection.getResponseCode()).thenReturn(HttpURLConnection.HTTP_OK);\n\n final ExecutorService executorService = Executors.newFixedThreadPool(2);\n Callable<Void> task = new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n final FileMockContext context = new FileMockContext(androidx.test.platform.app.InstrumentationRegistry.getInstrumentation().getContext());\n final Discovery discovery = new Discovery(context);\n discovery.validateAuthority(new URL(\"https://login.windows.net/common\"));\n\n return null;\n }\n };\n\n final List<Callable<Void>> tasks = Collections.nCopies(2, task);\n final List<Future<Void>> results = executorService.invokeAll(tasks);\n for (final Future<Void> result : results) {\n result.get();\n }\n\n Mockito.verify(mockedConnection, Mockito.times(1)).getInputStream();\n }", "public void testNewSingleThreadScheduledExecutor() throws Exception {\n final ScheduledExecutorService p = Executors.newSingleThreadScheduledExecutor();\n try (PoolCleaner cleaner = cleaner(p)) {\n final CountDownLatch proceed = new CountDownLatch(1);\n final Runnable task = new CheckedRunnable() {\n public void realRun() {\n await(proceed);\n }};\n long startTime = System.nanoTime();\n Future f = p.schedule(Executors.callable(task, Boolean.TRUE),\n timeoutMillis(), MILLISECONDS);\n assertFalse(f.isDone());\n proceed.countDown();\n assertSame(Boolean.TRUE, f.get(LONG_DELAY_MS, MILLISECONDS));\n assertSame(Boolean.TRUE, f.get());\n assertTrue(f.isDone());\n assertFalse(f.isCancelled());\n assertTrue(millisElapsedSince(startTime) >= timeoutMillis());\n }\n }", "public interface TestForNThreads {\n\n\t/**\n\t * This will test if a scenario returns the same function when tested against N threads\n\t */\n\tpublic void testForNThreads();\n\n}", "void setThreadedAsyncMode(boolean useExecutor);", "@Test\n public void testProcess() throws InterruptedException {\n //\n SelectTileController stc = new SelectTileController(model, app);\n Point p = coordinateToPoint(new Coordinate(1, 1));\n stc.process(p);\n sleep(100);\n assertEquals(new Coordinate(1, 1), app.getPuzzlePanel().pointToCoordinate(p));\n assertEquals(2, this.model.getPuzzle().getTiles()[4].getTileValue());\n }", "boolean hasThreadId();", "public Thread getThread();", "public void testDefaultThreadFactory() throws Exception {\n final ThreadGroup egroup = Thread.currentThread().getThreadGroup();\n final CountDownLatch done = new CountDownLatch(1);\n Runnable r = new CheckedRunnable() {\n public void realRun() {\n try {\n Thread current = Thread.currentThread();\n assertTrue(!current.isDaemon());\n assertTrue(current.getPriority() <= Thread.NORM_PRIORITY);\n ThreadGroup g = current.getThreadGroup();\n SecurityManager s = System.getSecurityManager();\n if (s != null)\n assertTrue(g == s.getThreadGroup());\n else\n assertTrue(g == egroup);\n String name = current.getName();\n assertTrue(name.endsWith(\"thread-1\"));\n } catch (SecurityException ok) {\n // Also pass if not allowed to change setting\n }\n done.countDown();\n }};\n ExecutorService e = Executors.newSingleThreadExecutor(Executors.defaultThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(r);\n await(done);\n }\n }", "public void testPollInExecutor() {\n final SynchronousQueue q = new SynchronousQueue();\n ExecutorService executor = Executors.newFixedThreadPool(2);\n executor.execute(new Runnable() {\n public void run() {\n threadAssertNull(q.poll());\n try {\n threadAssertTrue(null != q.poll(MEDIUM_DELAY_MS, TimeUnit.MILLISECONDS));\n threadAssertTrue(q.isEmpty());\n }\n catch (InterruptedException e) {\n threadUnexpectedException();\n }\n }\n });\n\n executor.execute(new Runnable() {\n public void run() {\n try {\n Thread.sleep(SMALL_DELAY_MS);\n q.put(new Integer(1));\n }\n catch (InterruptedException e) {\n threadUnexpectedException();\n }\n }\n });\n\n joinPool(executor);\n }", "@Override\n // Thread creation\n // Run method from the Runnable class.\n public void run() {\n p.println(\"Current thread = \" + Thread.currentThread().getName());\n // Shows when a task is being executed concurrently with another thread,\n // then puts the thread to bed (I like saying that)\n try {\n p.println(\"Doing a task during : \" + name);\n Thread.currentThread().sleep(time);\n }\n // Exception for when a thread is interrupted.\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void testNewFixedThreadPool4() {\n try {\n ExecutorService e = Executors.newFixedThreadPool(0);\n shouldThrow();\n } catch (IllegalArgumentException success) {}\n }", "public void run (){\n String currThrdId = new String (\"\");\n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n currThrdId = new Long(Thread.currentThread().getId()).toString(); \n tArray.add(currThrdId);\n ConcurrentTest.cb.await(); \n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n }\n \n if (ConcurrentTest.cb.isBroken()){\n ConcurrentTest.log.add(\"Failed to wait all starting threads!\");\n ConcurrentTest.failed = true;\n }\n \n // The task for thread: try to find its name for 100 exchange operations\n int counter = rm.nextInt(300)+100;\n try {\n Thread.sleep(rm.nextInt(100)+1);\n } catch (InterruptedException e1) {\n ConcurrentTest.failed = true;\n }\n String thrdId = tArray.remove(0); \n while (counter > 0){\n if (thrdId == currThrdId){\n break;\n }\n try {\n thrdId = exch.exchange(thrdId, rm.nextInt(100)+1, TimeUnit.MILLISECONDS);\n } catch (InterruptedException e) {\n ConcurrentTest.failed = true;\n } catch (TimeoutException e) {\n // Expected\n }\n counter--;\n }\n //System.out.println(counter);\n\n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n ConcurrentTest.cb.await();\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 1!\");\n ConcurrentTest.failed = true;\n }\n\n // Stage 2: test PriorityBlockingQueue \n //devide threads to sending and receiving\n // to thread: Who are you - sender or receiver?\n counter = rm.nextInt(100);\n int threadChoice = rm.nextInt(2);\n if (threadChoice == 0){\n while (counter > 0){\n //emit into queue\n String toQue = \"Que_\" + new Long(Thread.currentThread().getId()).toString() + \"_\" + rm.nextInt(100);\n if (counter == 50){\n // process one exception\n toQue = null;\n }\n try{\n bQue.put(toQue);\n }catch(NullPointerException e){\n // Expected\n }\n counter--;\n //System.out.println(\"Emmited \" + counter);\n }\n } else{\n while (counter > 0){\n //read from queue\n try {\n bQue.poll(rm.nextInt(100)+1, TimeUnit.MILLISECONDS);\n } catch (InterruptedException e) {\n ConcurrentTest.failed = true;\n }\n counter--;\n //System.out.println(\"Read \" + counter);\n }\n }\n \n try {\n stats.getAndAdd(ConcurrentTest.cb.getNumberWaiting());\n ConcurrentTest.cb.await();\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 2!\");\n ConcurrentTest.failed = true;\n } catch (BrokenBarrierException e) {\n ConcurrentTest.log.add(\"Failed to wait all starting threads, stage 2!\");\n ConcurrentTest.failed = true;\n }\n\n // Stage 3: test Semaphore \n // limit Semathor with 1/3 of number of threads\n // replaced doing something with rundomized time thread sleep\n // sm is located in ConcurrentTest bacause we need to initialize it\n // with 1/3 number of threads\n counter = 1000;\n while (counter > 0){\n try {\n stats.getAndAdd(ConcurrentTest.sm.availablePermits());\n ConcurrentTest.sm.acquire();\n //System.out.println(\"in\");\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Some thread is interrupted, stage 3!\");\n ConcurrentTest.failed = true;\n }\n \n try {\n Thread.currentThread().sleep(rm.nextInt(5)+1);\n } catch (InterruptedException e) {\n ConcurrentTest.log.add(\"Some thread is interrupted, stage 3!\");\n //ConcurrentTest.failed = true;\n }\n \n stats.getAndAdd(ConcurrentTest.sm.getQueueLength());\n ConcurrentTest.sm.release();\n //System.out.println(\"out\");\n counter--; \n }\n\n // final actions\n if (ConcurrentTest.cb.isBroken()){\n ConcurrentTest.log.add(\"Failed to wait all starting threads, final!\");\n ConcurrentTest.failed = true;\n }\n \n ConcurrentTest.cb.reset();\n }", "public void run(){\n //logic to execute in a thread \n }", "public void actionPerformed(ActionEvent e)\n {\n // check thread is really finished\n if (testThread != null)\n logger.log(Level.INFO, \"testThread.isAlive()==\" + testThread.isAlive());\n else\n logger.log(Level.INFO, \"testThread==null\");\n\n // create Thread from Runnable (WorkTask)\n testThread = new Thread(new WorkerTask(null));\n // make sure thread will be killed if app is unexpectedly killed\n testThread.setDaemon(true);\n testThread.start();\n }", "@Test\n\tpublic static void testThreadLocal() {\n\t\tExecutorService service = Executors.newCachedThreadPool();\n\n\t\tRunnable task = new Runnable() {\n\t\t\tThreadLocal<AtomicInteger> tlocal = new ThreadLocal<AtomicInteger>() {\n\t\t\t\t@Override\n\t\t\t\tpublic AtomicInteger initialValue() {\n\t\t\t\t\treturn new AtomicInteger(1);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" start with value: \" + tlocal.get());\n\t\t\t\ttry {\n\t\t\t\t\tTimeUnit.SECONDS.sleep(1);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttlocal.set(new AtomicInteger(tlocal.get().addAndGet(1)));\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" ends with value: \" + tlocal.get());\n\t\t\t}\n\t\t};\n\t\tfor (int i = 0; i < 5; i++)\n\t\t\tservice.submit(task);\n\t\tservice.shutdown();\n\t}", "RakudoObject instance_of(ThreadContext tc, RakudoObject what);", "public void execute() throws InterruptedException;", "public void testNewFixedThreadPool3() {\n try {\n ExecutorService e = Executors.newFixedThreadPool(2, null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "public void setUp() {\n threadName = Thread.currentThread().getName();\n }", "@Override\n protected void invokeTestRunnable(final Runnable runnable) throws Exception {\n System.out.println(\"Invoke: \" + runnable);\n runnable.run();\n }", "@Override\n public void run() {\n threadLocalTest.setName(Thread.currentThread().getName());\n System.out.println(Thread.currentThread().getName() + \":\" + threadLocalTest.getName());\n }", "public void testCallable2() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable(), one);\n assertSame(one, c.call());\n }", "@Test\r\n\tpublic void test()\r\n\t{\n\t\t\r\n\t\tThreadPoolManager.addPool(\"1,UD,12,12,30000,200000\");\r\n//\t\tThreadPoolManager.addPool(\"2,UD,12,12,30000,200000\");\r\n\r\n// ThreadPoolManager.init(params);\r\n// ThreadPoolManager.getPool(\"1\");\r\n\t\t\r\n//\t\tThread t = new Thread(this.testCreaterun());\r\n//\t\tBaseTask\r\n\t\tBaseTask b = this.testCreaterun();\r\n\t\tThreadPoolManager.submit(\"1\", b);\r\n\t\t\r\n\t\tSystemUtil.sleep(2000);\r\n\t\tThreadPoolManager.shutdownNow(\"1\");\r\n\t\t\r\n\t\tSystemUtil.sleep(2000);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystemUtil.sleepForever();\r\n\t}", "public void run() {\n\t\ttry {\n\t\t\tif (!connect()){\n\t\t\t\tSystem.err.println(\"Mongo Thread: \"+threadnumber+\" NOT connected\");\n\t\t\t\tPerformance.console.append(\"Mongo Thread: \"+threadnumber+\" NOT connected\\n\");\n\t\t\t\tPerformance.error=true;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Mongo Thread: \"+threadnumber+\" connected\");\n\t\t\n\t\t\t}\t\t\t\n\t\n\t\t\t//wait for others to connect and generate optional data for testcases.\n\t\t\tif (Performance.EXTERNAL_CONNECTION)\n\t\t\t\tPerformance.threadconnectionbarrierextern.waitForOthers();\n\t\t\telse\n\t\t\t\tPerformance.threadconnectionbarrier.waitForOthers();\t\t\n\t\t\t\t\n\t\t\tPerformance.threadstartbarrierM.waitForOthers(this);\n\t\t\t\n\t\t\tif (!Thread.interrupted()){\n\t\t\t\ttest(testcase);\n\t\t\t\t//wait for other threads to finish\t\n\t\t\t\tif (Performance.EXTERNAL_CONNECTION)\n\t\t\t\t\tPerformance.threadbarrierextern.waitForOthers(this);\n\t\t\t\telse\n\t\t\t\t\tPerformance.threadbarrier.waitForOthers(this);\t\t\n\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}", "@Test\n\tpublic void testExecuteOk() {\n\t\tfinal Subscription subscription0 = createSubscriptionForDBMock(1 , \"eventType1\", \"subscriberName1\");\n\t\tfinal EventPublishRequestDTO request = getEventPublishRequestDTOForTest();\n\t\tfinal PublishEventTask publishEventTask = new PublishEventTask(subscription0, request, httpService);\n\t\t\n\t\tdoNothing().when(threadPool).execute(any());\n\t\t\n\t\ttestingObject.execute();\n\t\t\n\t\tverify(threadPool, times(numberOfSubscribers)).execute(any());\n\t\tfinal Subscription subscriptionInTask = (Subscription) ReflectionTestUtils.getField(publishEventTask, \"subscription\");\n\t\tassertNotNull(subscriptionInTask);\n\t\tverify(threadPool, times(1)).shutdownNow();\n\t}", "@Test\n public void testPoll1() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Assert.assertNull(ecs.poll());\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Thread.sleep(SHORT_DELAY_MS);\n for (;;) {\n Future<String> f = ecs.poll();\n if (f != null) {\n Assert.assertTrue(f.isDone());\n break;\n }\n }\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "@Test\n public void testThread() {\n\n Thread thread1 = new Thread(() -> {\n //i++;\n for (int j = 0; j < 2000000; j++) {\n (this.i)++;\n }\n });\n\n Thread thread2 = new Thread(() -> {\n //System.out.println(\"i = \" + i);\n for (int j = 0; j < 2000000; j++) {\n System.out.println(\"i = \" + this.i);\n }\n });\n\n thread1.start();\n thread2.start();\n /*for (int j = 0; j < 20; j++) {\n thread1.start();\n thread2.start();\n }*/\n\n\n /* ValueTask valueTask = new ValueTask();\n PrintTask printTask = new PrintTask();*/\n\n /*for (int i = 0; i < 20; i++) {\n Worker1 worker1 = new Worker1(valueTask);\n Worker2 worker2 = new Worker2(printTask);\n\n worker1.start();\n worker2.start();\n }*/\n\n }", "@Test\r\n public void testIncrementCorrectly() throws InterruptedException {\r\n final int expectedCount=1000;\r\n final AtomicInteger intCounter = new AtomicInteger();\r\n for (int i = 0; i < expectedCount; i++) {\r\n final int threadNumber=i;\r\n final Runnable r = () -> {\r\n Random random = new Random();\r\n try {\r\n Thread.sleep(random.nextInt(25));\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(CountingThreadProblemTest.class.getName()).log(Level.SEVERE, \"Unable to sleep\", ex);\r\n }\r\n intCounter.incrementAndGet();\r\n System.out.println(\"Correct counter thread \" + threadNumber + \" has \" + intCounter.get());\r\n };\r\n executor.submit(r);\r\n }\r\n \r\n System.out.println(\"A little delay for the threads...\");\r\n Thread.sleep(10000);\r\n\r\n assertEquals(expectedCount, intCounter.get());\r\n }", "@Test(expected = NullPointerException.class)\n public void testSubmitNPE2() throws Exception {\n CompletionService<Boolean> ecs = new BoundedCompletionService<Boolean>(\n new ExecutorCompletionService<Boolean>(e));\n Runnable r = null;\n ecs.submit(r, Boolean.TRUE);\n shouldThrow();\n }", "private void YeWuMethod(String name) {\n\n for (int j = 0; j < 10; j++) {\n\n\n// Runnable task = new RunnableTask();\n// Runnable ttlRunnable = TtlRunnable.get(task);\n\n// executor.execute(ttlRunnable);\n\n executor.execute(() -> {\n System.out.println(\"==========\"+name+\"===\"+threadLocal.get());\n });\n }\n\n// for (int i = 0; i < 10; i++) {\n// new Thread(() -> {\n// System.out.println(name+\"===\"+threadLocal.get());\n// }, \"input thread name\").start();\n// }\n\n\n\n\n }", "public void testNewCachedThreadPool3() {\n try {\n ExecutorService e = Executors.newCachedThreadPool(null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "public FuncCallExecutor(ThreadRuntime rt) {\r\n\t\tthis.rt = rt;\r\n\t}", "public abstract boolean isMainThread();", "public void take(Thread usedBy)\n\t{\n\t\tthis.usedBy = usedBy;\n\t\t// System.out.println(usedBy.getName() + \": Taking \" + toString());\n\t}", "public void setThread(LoadThread thread) {\r\n this.thread = thread;\r\n }", "@Override\n\tpublic void run() {\n\t\tSystem.err.println(\"Test:\"+Thread.currentThread());\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private void checkCrossThreads() {\t\r\n\t\t\tisJumppingBetweenThreads = (currentThread != Thread.currentThread());\r\n\t\t}", "ThreadCounterRunner() {}", "public void testIncrementIncorrectly() throws InterruptedException {\r\n final int expectedCount=1000;\r\n for (int i = 0; i < expectedCount; i++) {\r\n final int threadNumber=i;\r\n final Runnable r = () -> {\r\n Random random = new Random();\r\n try {\r\n Thread.sleep(random.nextInt(25));\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(CountingThreadProblemTest.class.getName()).log(Level.SEVERE, \"Unable to sleep\", ex);\r\n }\r\n counter++;\r\n System.out.println(\"Incorrect counter thread \" + threadNumber + \" has \" + counter);\r\n };\r\n executor.submit(r);\r\n }\r\n \r\n System.out.println(\"A little delay for the threads...\");\r\n Thread.sleep(10000);\r\n\r\n assertEquals(expectedCount, counter);\r\n }", "@Test\n\tpublic void testForPrintNumbersUsingThreadClass() {\n\t\tList<Integer> list =new ArrayList<Integer>(Arrays.asList(3,15,90,56,34));\n\t\tPrintNumberListUsingThread.consumer1.accept(list);\n\t}", "private static void test() {\n\t\tVector<Object> list = new Vector<Object>();\n\t\tint threadNum = 1000;\n\t\tCountDownLatch countDownLatch = new CountDownLatch(threadNum);\n\t\t\n\t\t//启动threadNum个子线程\n\t\tfor(int i=0;i<threadNum;i++){\n\t\t\tThread thread = new Thread(new MyThread(list,countDownLatch));\n\t\t\tthread.start();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\t//主线程等待所有子线程执行完成,再向下执行\n\t\t\tcountDownLatch.await();;\n\t\t}catch(InterruptedException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(list.size());\n\t}", "@Test\r\n public void testThreaded() throws Exception {\r\n\r\n final ClientValue<Integer> value = new ClientValue<>();\r\n\r\n List<SetCheckValue> runs = new ArrayList<>();\r\n\r\n for (int i = 0; i < 500; i++) {\r\n runs.add(new SetCheckValue(value, i, false));\r\n }\r\n runAll(runs);\r\n checkForSuccess(runs);\r\n for (int i = 0; i < 500; i++) {\r\n runs.add(new SetCheckValue(value, i, true));\r\n }\r\n\r\n runAll(runs);\r\n checkForSuccess(runs);\r\n }", "public void startThread() {\n\t\tif (this.serverConnectorUsed <= Byte.MAX_VALUE) {\n\t\t\tthis.serverConnectorUsed++;\n\t\t\tLOG.info(\"Running new thread. Now pool is \"+Integer.toString(MAX_THREADS-this.serverConnectorUsed)+\" / \"+Integer.toString(MAX_THREADS));\n\t\t}\n\t}", "public void createThread() {\n }", "@Test\n public void testFutureWithDone() throws Exception {\n Callable<String> task = new Callable<String>() {\n public String call() throws Exception {\n // do something that takes some time\n LOG.info(\"Starting to process task\");\n Thread.sleep(5000);\n LOG.info(\"Task is now done\");\n return \"Camel rocks\";\n }\n };\n\n // this is the thread pool we will use\n ExecutorService executor = Executors.newCachedThreadPool();\n\n // now submit the task to the thread pool\n // and get the Future handle back so we can later get the result\n LOG.info(\"Submitting task to ExecutorService\");\n Future<String> future = executor.submit(task);\n LOG.info(\"Task submitted and we got a Future handle\");\n\n // test when we are done\n boolean done = false;\n while (!done) {\n done = future.isDone();\n LOG.info(\"Is the task done? \" + done);\n if (!done) {\n Thread.sleep(2000);\n }\n }\n\n // and get the answer\n String answer = future.get();\n LOG.info(\"The answer is: \" + answer);\n }", "@Test\n public void testFutureWithoutDone() throws Exception {\n Callable<String> task = new Callable<String>() {\n public String call() throws Exception {\n // do something that takes some time\n LOG.info(\"Starting to process task\");\n Thread.sleep(5000);\n LOG.info(\"Task is now done\");\n return \"Camel rocks\";\n }\n };\n\n // this is the thread pool we will use\n ExecutorService executor = Executors.newCachedThreadPool();\n\n // now submit the task to the thread pool\n // and get the Future handle back so we can later get the result\n LOG.info(\"Submitting task to ExecutorService\");\n Future<String> future = executor.submit(task);\n LOG.info(\"Task submitted and we got a Future handle\");\n\n // instead of testing when we are done we can just get\n // the result and it will automatic wait until the task is done\n String answer = future.get();\n LOG.info(\"The answer is: \" + answer);\n }", "public void setSelectorThread(SelectorThread selectorThread){\n this.selectorThread = selectorThread;\n }", "void addThreadFilter(ThreadReference thread);", "@Test\n public void construtorTest() {\n ThreadObserveSample person = new ThreadObserveSample(\"test\");\n }", "@Test\n\tpublic void testCaseTwo() {\n\t\tSystem.out.println(\"Test Case two in \" + getClass().getSimpleName()\n\t\t\t\t+ \" with Thread Id:- \" + Thread.currentThread().getId());\n\t}", "@Test(timeout = 10000)\n\tpublic void simpleTest() throws IOException, ExampleSubmissionException, InterruptedException {\n\n\t\tIterable<Example> examples = getExamples(\"One\", \"Two\", \"Three\");\n\n\t\tInputStream predictionInputStream = getPredictionInputStream(\"1\", \"2\", \"3\");\n\n\t\tSocket socket = mock(Socket.class);\n\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\t\twhen(socket.getOutputStream()).thenReturn(outputStream);\n\t\twhen(socket.getInputStream()).thenReturn(predictionInputStream);\n\n\t\tTCPIPSocketFactory socketFactory = mock(TCPIPSocketFactory.class);\n\t\twhen(socketFactory.getSocket()).thenReturn(socket);\n\n\t\tAsyncFailFastTCPIPExampleProcessor toTest = new AsyncFailFastTCPIPExampleProcessor(socketFactory, Executors.newCachedThreadPool(), examples);\n\n\t\texpectedNumberOfSkippedExamples = 0;\n\t\texpectedNumberOfSubmittedExamples = 3;\n\t\texpectedStateOnExampleSubmissionComplete = ExampleSubmissionState.Complete;\n\t\texpectedStateOnPredictionFetchComplete = PredictionFetchState.Complete;\n\n\t\tIterable<Prediction> predictions = toTest.submitExamples(this).getPredictionsIterable();\n\n\t\tint x = 0;\n\n\t\tfor (Prediction p : predictions) {\n\n\t\t\tswitch (x++) {\n\n\t\t\t\tcase 0:\n\t\t\t\t\tAssert.assertEquals(\"1\", p.getVWStringRepresentation());\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 1:\n\t\t\t\t\tAssert.assertEquals(\"2\", p.getVWStringRepresentation());\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 2:\n\t\t\t\t\tAssert.assertEquals(\"3\", p.getVWStringRepresentation());\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tAssert.fail(\"Too many predictions!\");\n\t\t\t}\n\t\t}\n\n\t\tAssert.assertEquals(3, x);\n\n\t\tboolean succeeded = countDownLatch.await(9, TimeUnit.SECONDS); //wait till the example thread is done as well.\n\n\t\tAssert.assertTrue(\"Waited for longer than 9 seconds!!\", succeeded);\n\n\t\t//check that all examples got there\n\t\tBufferedReader bReader = new BufferedReader(new StringReader(new String(outputStream.toByteArray())));\n\n\t\tx = 0;\n\t\tString line = null;\n\t\twhile ((line = bReader.readLine()) != null) {\n\n\t\t\tswitch (x++) {\n\n\t\t\t\tcase 0:\n\t\t\t\t\tAssert.assertEquals(\"One\", line);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 1:\n\t\t\t\t\tAssert.assertEquals(\"Two\", line);\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 2:\n\t\t\t\t\tAssert.assertEquals(\"Three\", line);\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tAssert.fail(\"Too many examples!\");\n\t\t\t}\n\n\t\t}\n\n\t\tAssert.assertEquals(3, x);\n\n\t\tverify(socketFactory, times(1)).getSocket();\n\t\tverify(socket, times(1)).getInputStream();\n\t\tverify(socket, times(1)).getOutputStream();\n\t\tverify(socket, times(1)).shutdownOutput();\n\t\tverify(socket, times(1)).close();\n\n\t\t//no exceptions should have been thrown\n\t\tAssert.assertFalse(exampleReadExceptionThrown);\n\t\tAssert.assertFalse(exampleFormatExceptionThrown);\n\t\tAssert.assertFalse(exampleSubmissionExceptionThrown);\n\t\tAssert.assertFalse(predictionFetchExceptionThrown);\n\n\t\t//the completion call backs should have been fired\n\t\tAssert.assertTrue(exampleSubmissionCompleteCalled);\n\t\tAssert.assertTrue(predictionFetchCompleteCalled);\n\n\t}", "@org.junit.Test\n public void testRun() {\nSystem.out.println(\"run\");\n final TwitterFeedTask instance = new TwitterFeedTask();\n \n instance.run();\n }", "public interface TestOnSeparateThreadCallback {\n\n void finish(TestRunner.Stats stats);\n\n}", "@Test\n public void testPoll2() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Assert.assertNull(ecs.poll());\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Future<String> f = ecs.poll(SHORT_DELAY_MS, TimeUnit.MILLISECONDS);\n if (f != null) Assert.assertTrue(f.isDone());\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "private static void demoRunnable() {\n new Thread(() -> System.out.println(Thread.currentThread().getName()), \"thread-λ\").start();\n new Thread(ToLambdaP5::printThread, \"thread-method-ref\").start();\n }", "public void testGetTaskActorE(){\n }", "@Test\n public void readLockShareTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n int threadNum = 10;\n final CountDownLatch countDownLatch = new CountDownLatch(threadNum);\n final ConcurrentHashMap concurrentHashMap = new ConcurrentHashMap();\n for (int i = 0; i < threadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n boolean result = testUse.ifGetReadLockIn2Milliseconds();\n Assert.assertTrue(result);\n if (result) {\n concurrentHashMap.put(Thread.currentThread().getName(), \"value\");\n }\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n Assert.assertEquals(threadNum, concurrentHashMap.size());\n }", "public static void main(String[] args) throws InterruptedException{\n\t\ttestThreadLocal();\n\t\t\n\t}", "public void intializeThread(String algorithm)\n {\n thread = new Thread(this); // creating a new thread\n thread.start(); // starting a thread\n this.comboAlgorithm = algorithm;\n this.setThreadState(); // calling the thread state method\n }", "public interface IHttpThreadExecutor {\n public void addTask(Runnable runnable);\n}", "@Test\n public void launchesEventhandlerThreadpoolPriorityTest() {\n // TODO: test launchesEventhandlerThreadpoolPriority\n }", "@Test\n public void testTake() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Future<String> f = ecs.take();\n Assert.assertTrue(f.isDone());\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "void runInThread(Runnable runnable) {\n try {\n Thread thread = new Thread(runnable::run);\n thread.start();\n } catch (Exception ex) {\n log.info(ex.getMessage());\n }\n\n }", "private static native Object setupMainThread0(Object thread);" ]
[ "0.6329623", "0.6198241", "0.6167527", "0.610818", "0.6023319", "0.59038264", "0.5843259", "0.5791283", "0.573987", "0.5691991", "0.56259745", "0.5570248", "0.55337375", "0.5505549", "0.5494817", "0.54878736", "0.5486735", "0.54783016", "0.5457432", "0.54541254", "0.5448761", "0.5439998", "0.5429517", "0.54252225", "0.53894943", "0.5384798", "0.53700453", "0.5348376", "0.5342772", "0.5342684", "0.53410697", "0.53386825", "0.53209066", "0.5317743", "0.5313698", "0.53057444", "0.52858025", "0.5280161", "0.527949", "0.52736056", "0.5271951", "0.52498484", "0.5244486", "0.5238895", "0.5238715", "0.52205855", "0.521164", "0.5201094", "0.51892996", "0.51677096", "0.5164157", "0.5163863", "0.51623666", "0.51574016", "0.5144788", "0.5143665", "0.5132888", "0.5130875", "0.51080674", "0.5104239", "0.50972825", "0.5083973", "0.5081908", "0.50775725", "0.5072605", "0.50717044", "0.50698525", "0.5067177", "0.50669944", "0.50632036", "0.5052972", "0.5051234", "0.50495994", "0.50487226", "0.5043212", "0.5036673", "0.50302947", "0.502872", "0.5019837", "0.50192297", "0.501089", "0.4997805", "0.49949613", "0.49929786", "0.49898955", "0.49807566", "0.4978928", "0.49776065", "0.49701172", "0.49696895", "0.49685103", "0.49677134", "0.49632096", "0.49578285", "0.49499255", "0.4949706", "0.4949054", "0.49480033", "0.49472293", "0.49444875" ]
0.57017934
9
getRelativeTimeAgo("Mon Apr 01 21:16:23 +0000 2014");
public String getRelativeTimeAgo() { String twitterFormat = "EEE MMM dd HH:mm:ss ZZZZZ yyyy"; SimpleDateFormat sf = new SimpleDateFormat(twitterFormat, Locale.ENGLISH); sf.setLenient(true); String relativeDate = ""; try { long dateMillis = sf.parse(created_at).getTime(); relativeDate = DateUtils.getRelativeTimeSpanString(dateMillis, System.currentTimeMillis(), DateUtils.SECOND_IN_MILLIS).toString(); } catch (ParseException e) { e.printStackTrace(); } return relativeDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String timeToAgo(Long timestamp){\n\n\n Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n Log.d(TAG, \"timeToAgo:TimeZone :\"+TimeZone.getTimeZone(\"GMT\"));\n long time = cal.getTimeInMillis();\n Log.d(TAG, \"timeToAgo: time with cal : \"+time);\n long curTime = System.currentTimeMillis() / 1000 + 32400;\n Log.d(TAG, \"timeToAgo: curTime : \" + curTime);\n long diffTime = (curTime - timestamp); //1000으로 나눠주는 이유는 millisecond가 아닌 second만 신경을 써줄 것이므로\n Log.d(TAG, \"timeToAgo: diffTime \" + diffTime);\n long hour =diffTime/3600;\n Log.d(TAG, \"timeToAgo: hour \"+ hour);\n Log.d(TAG, \"timeToAgo: timestamp : \"+timestamp);\n diffTime =diffTime%3600;\n long min = diffTime/60;\n long sec = diffTime%60;\n\n String ret = \"\";\n\n\n if(hour > 24){\n ret = new SimpleDateFormat(\"MM/dd\").format(new Date(timestamp));\n\n if (hour>8760){\n ret = new SimpleDateFormat(\"MM/dd/yyyy\").format(new Date(timestamp));\n }\n }\n else if(hour > 0){\n ret = hour+\" hours ago\";\n }\n else if(min > 0){\n ret = min+\" mins ago\";\n }\n else if(sec > 0){\n ret = \"just now!\";\n }\n else{\n ret = new SimpleDateFormat(\"MM/dd\").format(new Date(timestamp));\n }\n\n return ret;\n }", "public String getRelativeTimeAgo(String rawJsonDate) {\n String twitterFormat = \"EEE MMM dd HH:mm:ss ZZZZZ yyyy\";\n SimpleDateFormat sf = new SimpleDateFormat(twitterFormat, Locale.ENGLISH);\n sf.setLenient(true);\n\n String relativeDate = \"\";\n try {\n long dateMillis = sf.parse(rawJsonDate).getTime();\n relativeDate = DateUtils.getRelativeTimeSpanString(dateMillis,\n System.currentTimeMillis(), DateUtils.SECOND_IN_MILLIS, DateUtils.FORMAT_ABBREV_RELATIVE).toString();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return relativeDate;\n }", "public static String getRelativeTimeAgo(String rawJsonDate) {\n String twitterFormat = \"EEE MMM dd HH:mm:ss ZZZZZ yyyy\";\n SimpleDateFormat sf = new SimpleDateFormat(twitterFormat, Locale.ENGLISH);\n sf.setLenient(true);\n\n String relativeDate = \"\";\n try {\n long dateMillis = sf.parse(rawJsonDate).getTime();\n relativeDate = DateUtils.getRelativeTimeSpanString(dateMillis,\n System.currentTimeMillis(), DateUtils.SECOND_IN_MILLIS, DateUtils.FORMAT_ABBREV_ALL).toString();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return relativeDate;\n }", "public String getRelativeTimeAgo(Date parseDate) {\n\n String relativeDate;\n long dateMillis = parseDate.getTime();\n relativeDate = DateUtils.getRelativeTimeSpanString(dateMillis, System.currentTimeMillis(), DateUtils.SECOND_IN_MILLIS).toString();\n\n return relativeDate;\n }", "public static long getRelativeTimeAgo(String rawJsonDate) {\n String twitterFormat = \"EEE MMM dd HH:mm:ss ZZZZZ yyyy\";\n SimpleDateFormat sf = new SimpleDateFormat(twitterFormat, Locale.ENGLISH);\n sf.setLenient(true);\n\n long dateMillis = 0;\n try {\n dateMillis = sf.parse(rawJsonDate).getTime();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return dateMillis;\n }", "long getSince();", "public static String timeCalc(String createdAt){\n String relativeDate = Utility.relativeTime(createdAt);\n String d = Utility.formatDate(createdAt);\n return d;\n\n }", "public static String getElapsedTimeFromNow(Date date) {\n long duration = new Date().getTime() - date.getTime();\n\n long diffInMinutes = TimeUnit.MILLISECONDS.toMinutes(duration);\n long diffInHours = TimeUnit.MILLISECONDS.toHours(duration);\n long diffInDays = TimeUnit.MILLISECONDS.toDays(duration);\n long diffInMonths = diffInDays / 30;\n long diffInYears = diffInMonths / 365;\n\n if (diffInYears > 0) {\n if (diffInYears == 1) return Long.toString(diffInYears) + \" year ago\";\n return Long.toString(diffInYears) + \" years ago\";\n }\n\n else if (diffInMonths > 0) {\n if (diffInMonths == 1) return Long.toString(diffInMonths) + \" month ago\";\n return Long.toString(diffInMonths) + \" months ago\";\n }\n\n else if (diffInDays > 0) {\n if (diffInDays == 1) return Long.toString(diffInDays) + \" day ago\";\n return Long.toString(diffInDays) + \" days ago\";\n }\n\n else if (diffInHours > 0) {\n if (diffInHours == 1) return Long.toString(diffInHours) + \" hour ago\";\n return Long.toString(diffInHours) + \" hours ago\";\n }\n\n else if (diffInMinutes > 0) {\n if (diffInMinutes == 1) return Long.toString(diffInMinutes) + \" minute ago\";\n return Long.toString(diffInMinutes) + \" minutes ago\";\n }\n\n else return \"Just now\";\n }", "String getCreated_at();", "Date getLastTime();", "@Test public void Ago()\t\t\t\t\t\t\t\t\t\t{tst_date_(\"1 month ago\"\t\t\t, \"2012-01-27\");}", "public String getCreatedAtString() {\n String createdAt = \"\";\n\n // get the time in millis for the created at\n long createdDate = getCreatedAt().getTime();\n\n // get the time in millis for now\n long currentDate = new Date().getTime();\n\n int secondsBetween = (int) TimeUtils.getTimeSpan(createdDate, currentDate, TimeConstants.SEC);\n\n // get the number of minutes in between\n int minutesBetween = (int) TimeUtils.getTimeSpan(createdDate, currentDate, TimeConstants.MIN);\n\n // get the number of hours in between\n int hoursBetween = (int) TimeUtils.getTimeSpan(createdDate, currentDate, TimeConstants.HOUR);\n\n // if less than 1 minute ago return \"minutes ago\n if (secondsBetween < 60) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.SECOND_IN_MILLIS).toString();\n }\n\n // if less than 1 hour ago return \"minutes ago\n if (minutesBetween >= 1 && minutesBetween < 60) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.MINUTE_IN_MILLIS).toString();\n }\n\n // if less than 24 hours ago or greater than 1 return \"hours ago\"\n if (hoursBetween >= 1 && hoursBetween < 24) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.HOUR_IN_MILLIS).toString();\n }\n\n // if more than 24 hours ago return \"days ago\"\n if (hoursBetween >= 24) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.DAY_IN_MILLIS).toString();\n }\n\n return createdAt;\n }", "private static String adjDate(String date) {\n TimeZone tz = TimeZone.getDefault();\n long dt = Long.valueOf(date) - tz.getRawOffset();\n return Long.toString(dt);\n }", "public String far(Date date){\n Date d2 = new Date();\n// 两个日期相减\n long cha = d2.getTime() - date.getTime();\n// 拆分天数,小时,分钟\n long day = cha / (24 * 60 * 60 * 1000);\n long hour = (cha / (60 * 60 * 1000) - day * 24);\n long min = ((cha / (60 * 1000)) - day * 24 * 60 - hour * 60);\n String time = \"出错\";\n int a = 0;\n //显示天\n if (day > 0) {\n a = (int) day;\n time = a + \"天前\";\n } else if (day == 0) {\n// 显示小时\n if (hour > 0) {\n a = (int) hour;\n time = a + \"小时前\";\n }\n //显示分钟\n else if (hour == 0) {\n if (min > 0) {\n a = (int) min;\n time = a + \"分钟前\";\n }\n if(min==0){\n time = \"1分钟前\";\n }\n }\n }\n return time;\n }", "public static String getLastUpdateString(Date time) {\r\n if (time == null) {\r\n return \"\";\r\n }\r\n return getAmountOfTime(time) + \" ago\";\r\n }", "private String getTimingt(Long pastvalue) {\n DateTime zulu = DateTime.now(DateTimeZone.UTC);\n // DateTimeFormatter formatter = DateTimeFormat.forPattern(\"HH:mm:ss am\");\n Date date = new Date(pastvalue);\n// formattter\n SimpleDateFormat formatter= new SimpleDateFormat(\"hh:mm a\");\n formatter.setTimeZone(TimeZone.getDefault());\n// Pass date object\n return formatter.format(date );\n /*\n long mint = TimeUnit.MILLISECONDS.toMinutes(zulu.toInstant().getMillis() - pastvalue);\n\n if (mint < 60) {\n if (mint > 1)\n return \"Hace \" + mint + \" minutos\";\n else\n return \"Hace \" + mint + \" minuto\";\n } else {\n long horas = TimeUnit.MILLISECONDS.toHours(zulu.toDate().getTime() - pastvalue);\n\n if (horas < 24) {\n if (horas > 1)\n return \"Hace \" + horas + \" horas\";\n else\n return \"Hace \" + horas + \" hora\";\n } else {\n long dias = TimeUnit.MILLISECONDS.toDays(zulu.toDate().getTime() - pastvalue);\n\n if (dias > 1) {\n return \"Hace \" + dias + \" dias\";\n } else\n return \"Hace \" + dias + \" dia\";\n }\n\n\n }*/\n }", "long getAgeRelativeToReferencePoint(Calendar referenceTime, Calendar testTime);", "private String getTimestampDifference(){\r\n Log.d(TAG, \"getTimestampDifference: getting timestamp difference.\");\r\n\r\n String difference = \"\";\r\n Calendar c = Calendar.getInstance();\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\", Locale.UK);\r\n sdf.setTimeZone(TimeZone.getTimeZone(\"Asia/Dubai\"));//google 'android list of timezones'\r\n Date today = c.getTime();\r\n sdf.format(today);\r\n Date timestamp;\r\n\r\n final String photoTimestamp = mJobPhoto.getDate_created();\r\n try{\r\n timestamp = sdf.parse(photoTimestamp);\r\n difference = String.valueOf(Math.round(((today.getTime() - timestamp.getTime()) / 1000 / 60 / 60 / 24 )));\r\n }catch (ParseException e){\r\n Log.e(TAG, \"getTimestampDifference: ParseException: \" + e.getMessage() );\r\n difference = \"0\";\r\n }\r\n return difference;\r\n }", "public static String timeAgo(Context c, long dateStar, long dateEnd) {\n\n Period p = new Period(dateStar, dateEnd);\n //Log.d(tag, \" periodDefault ---> \" + PeriodFormat.getDefault().print(p));\n\n if (p.getYears() != 0) {\n if (p.getYears() == 1) {\n return p.getYears() + \" \" + c.getString(R.string.date_year)\n + \" \" + c.getString(R.string.date_suffix_ago);\n } else {\n return p.getYears() + \" \" + c.getString(R.string.date_years)\n + \" \" + c.getString(R.string.date_suffix_ago);\n }\n }\n\n if (p.getMonths() != 0) {\n if (p.getMonths() == 1) {\n return p.getMonths() + \" \" + c.getString(R.string.date_month)\n + \" \" + c.getString(R.string.date_suffix_ago);\n } else {\n return p.getMonths() + \" \" + c.getString(R.string.date_months)\n + \" \" + c.getString(R.string.date_suffix_ago);\n }\n }\n\n if (p.getWeeks() != 0) {\n if (p.getWeeks() == 1) {\n return p.getWeeks() + \" \" + c.getString(R.string.date_week)\n + \" \" + c.getString(R.string.date_suffix_ago);\n } else {\n return p.getWeeks() + \" \" + c.getString(R.string.date_week)\n + \" \" + c.getString(R.string.date_suffix_ago);\n }\n }\n\n if (p.getDays() != 0) {\n if (p.getDays() == 1) {\n return p.getDays() + \" \" + c.getString(R.string.date_day)\n + \" \" + c.getString(R.string.date_suffix_ago);\n } else {\n return p.getDays() + \" \" + c.getString(R.string.date_days)\n + \" \" + c.getString(R.string.date_suffix_ago);\n }\n }\n\n if (p.getHours() != 0) {\n if (p.getHours() == 1) {\n return p.getHours() + \" \" + c.getString(R.string.date_hour)\n + \" \" + c.getString(R.string.date_suffix_ago);\n } else {\n return p.getHours() + \" \" + c.getString(R.string.date_hours)\n + \" \" + c.getString(R.string.date_suffix_ago);\n }\n }\n\n if (p.getMinutes() != 0) {\n if (p.getMinutes() == 1) {\n return p.getMinutes() + \" \" + c.getString(R.string.date_minute)\n + \" \" + c.getString(R.string.date_suffix_ago);\n } else {\n return p.getMinutes() + \" \" + c.getString(R.string.date_minutes)\n + \" \" + c.getString(R.string.date_suffix_ago);\n }\n }\n\n if (p.getMinutes() != 0) {\n if (p.getSeconds() <= 1) {\n return c.getString(R.string.date_just_now);\n } else {\n return p.getSeconds() + \" \" + c.getString(R.string.date_seconds)\n + \" \" + c.getString(R.string.date_suffix_ago);\n }\n }\n\n Calendar calendar = Calendar.getInstance();\n Calendar.getInstance().setTimeInMillis(dateStar);\n return Commons.dateToString(calendar.getTime(), c);\n }", "public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}", "Date getPriorDate();", "public String getMyDatePosted() {\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", Locale.US);\n try {\n Date date = format.parse(myDatePosted);\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n cal.add(Calendar.HOUR, -7);\n Date temp = cal.getTime();\n format.applyPattern(\"MMM dd, yyyy hh:mm a\");\n return format.format(temp);\n } catch (ParseException e) {\n return myDatePosted;\n }\n }", "private CharSequence getTimeDifference(String formattedDate) {\n long currentTime = System.currentTimeMillis();\n long publicationTime = getDateInMillis(formattedDate);\n return DateUtils.getRelativeTimeSpanString(publicationTime, currentTime,\n DateUtils.SECOND_IN_MILLIS);\n }", "OffsetDateTime timeCreated();", "public abstract Date getPreviousFireTime();", "public static String getAmountOfTime(Date time) {\r\n if (time == null) {\r\n return \"\";\r\n }\r\n\r\n String agoString;\r\n Date now = new Date();\r\n long diffMilli = now.getTime() - time.getTime();\r\n\r\n long diffSecs = diffMilli / NUM_MILLI;\r\n if (diffSecs == 1) {\r\n agoString = diffSecs + \" second\";\r\n } else if (diffSecs < NUM_SECS) {\r\n agoString = diffSecs + \" seconds\";\r\n } else {\r\n long diffMins = diffSecs / NUM_SECS;\r\n if (diffMins == 1) {\r\n agoString = diffMins + \" minute\";\r\n } else if (diffMins < NUM_MINS) {\r\n agoString = diffMins + \" minutes\";\r\n } else {\r\n long diffHours = diffMins / NUM_MINS;\r\n if (diffHours == 1) {\r\n agoString = diffHours + \" hour\";\r\n } else if (diffHours < NUM_HOURS) {\r\n agoString = diffHours + \" hours\";\r\n } else {\r\n long diffDays = diffHours / NUM_HOURS;\r\n if (diffDays == 1) {\r\n agoString = diffDays + \" day\";\r\n } else if (diffDays < NUM_DAYS) {\r\n agoString = diffDays + \" days\";\r\n } else {\r\n long diffWeeks = diffDays / NUM_DAYS;\r\n if (diffWeeks == 1) {\r\n agoString = diffWeeks + \" week\";\r\n } else {\r\n agoString = diffWeeks + \" weeks\";\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n return agoString;\r\n }", "String timeCreated();", "String timeModified();", "double getRelativeTime() {\n return relativeTime;\n }", "private String getTimestampDifference(Comment comment){\n Log.d(TAG, \"getTimestampDifference: getting timestamp difference.\");\n\n String difference = \"\";\n Calendar c = Calendar.getInstance();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\", Locale.CANADA);\n sdf.setTimeZone(TimeZone.getTimeZone(\"Canada/Pacific\"));//google 'android list of timezones'\n Date today = c.getTime();\n sdf.format(today);\n Date timestamp;\n final String photoTimestamp = comment.getDate_created();\n try{\n timestamp = sdf.parse(photoTimestamp);\n difference = String.valueOf(Math.round(((today.getTime() - timestamp.getTime()) / 1000 / 60 / 60 / 24 )));\n }catch (ParseException e){\n Log.e(TAG, \"getTimestampDifference: ParseException: \" + e.getMessage() );\n difference = \"0\";\n }\n return difference;\n }", "java.lang.String getFoundingDate();", "public Date getFromDate()\r\n/* 18: */ {\r\n/* 19:27 */ return this.fromDate;\r\n/* 20: */ }", "long getCreateTime();", "long getCreateTime();", "public static String formatDateRelative(Date date) {\n return DateUtils.getRelativeTimeSpanString(date.getTime(), System.currentTimeMillis(), DateUtils.SECOND_IN_MILLIS, 0).toString();\n }", "int getCreateTime();", "Date getDateCreated();", "long getCreatedTime();", "long getRetrievedTime();", "private static String getPrettyTimeDiffInMinutes(Calendar c1, Calendar c2) {\n\t\tif (c1.getTimeZone() == null || c2.getTimeZone() == null \n\t\t\t\t|| c1.getTimeZone().getRawOffset() != c2.getTimeZone().getRawOffset()) {\n\t\t\treturn \"N.A.\";\n\t\t}\n\t\telse {\n\t\t\t//Log.d(TAG, \"c2: \" + c2 + \", c1: \" + c1);\n\t\t\tlong diff = c2.getTimeInMillis() - c1.getTimeInMillis();\n\t\t\t\n\t\t\tif (diff / Utils.DAY_SCALE != 0) {\n\t\t\t\treturn \"many days ago\";\n\t\t\t}\n\t\t\telse if (diff / Utils.HOUR_SCALE != 0) {\n\t\t\t\treturn \"many hours ago\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn (diff / Utils.MINUTE_SCALE) + \" min(s) ago\";\n\t\t\t}\n\t\t}\n\t}", "String getPreviousCloseDate();", "private static String getPolltime(String date) {\n\t\tif (date.equals(\"\")) {\r\n\t\t\treturn \"pollTime > date_sub(now(),interval 1 WEEK)\";\r\n\t\t} else if (date.startsWith(\"20\") && date.length() == 10) {\r\n\t\t\treturn \"date(pollTime)='\" + date + \"'\";\r\n\t\t}\r\n\t\treturn \"\";\r\n\r\n\t}", "OffsetDateTime creationTime();", "long getVisitStarttime();", "long getVisitStarttime();", "java.lang.String getFromDate();", "public static String getPastTime(int n) {\n Date date = new Date(System.currentTimeMillis());\n SimpleDateFormat df = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n String dt = df.format(date);\n date = new Date(System.currentTimeMillis() - n * 60 * 60 * 1000);\n dt = df.format(date);\n return dt;\n }", "public int getTT()\n {\n return toTime;\n }", "public static void main(String[] args) throws ParseException {\n\t\n\t\t String temp = \"2016-06-20 22:49:02.967\";\n\t\t Date date = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").parse(temp);\n\t\t System.out.println(date.after(new Date()));\n\t}", "public static String humanReadableDate(Clock clock, LocalDateTime dateTime) {\n final int MINUTE = 60;\n final int TWOMINUTES = 2 * 60;\n final int HOUR = 60 * 60;\n final int TWOHOURS = 2 *60 *60;\n final int DAY = 24 * 60 * 60;\n final int TWODAYS = 2 * 24 * 60 * 60;\n\n final long timeElapsed = dateTime.until(LocalDateTime.now(clock), ChronoUnit.SECONDS);\n\n if (timeElapsed >= TWODAYS) {\n return timeElapsed / DAY + \" days ago\";\n }\n if (timeElapsed >= DAY) {\n return \"1 day ago\";\n }\n if (timeElapsed >= TWOHOURS) {\n return timeElapsed / HOUR + \" hours ago\";\n }\n if (timeElapsed >= HOUR) {\n return \"1 hour ago\";\n }\n if (timeElapsed >= TWOMINUTES) {\n return timeElapsed / MINUTE + \" minutes ago\";\n }\n if (timeElapsed >= MINUTE) {\n return \"1 minute ago\";\n }\n if (timeElapsed >= 2) {\n return timeElapsed + \" seconds ago\";\n }\n if (timeElapsed > 0) {\n return \"1 second ago\";\n }\n return \"just now\";\n }", "long getCurrentTimeMs();", "public static Date setToWeekAgo(Date date) {\n\t\t\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(date);\n\t\tcal.add(Calendar.DATE, -7);\n\t\treturn cal.getTime();\n\t}", "public int getExtraTimeGiven()\r\n {\r\n return extraTimeGiven;\r\n }", "public Date getCreateTime()\n/* */ {\n/* 177 */ return this.createTime;\n/* */ }", "public static String getTimeDiff(long time) {\n long diff ;\n // Date dnow = cal.getTime();\n String str ;\n diff = System.currentTimeMillis() - time;\n \n if (diff > 2592000000L) {// 30 * 24 * 60 * 60 * 1000=2592000000 毫秒\n str = \"1个月前\";\n }\n else if (diff > 1814400000) {// 21 * 24 * 60 * 60 * 1000=1814400000 毫秒\n str = \"3周前\";\n }\n else if (diff > 1209600000) {// 14 * 24 * 60 * 60 * 1000=1209600000 毫秒\n str = \"2周前\";\n }\n else if (diff > 604800000) {// 7 * 24 * 60 * 60 * 1000=604800000 毫秒\n str = \"1周前\";\n }\n else if (diff > 86400000) { // 24 * 60 * 60 * 1000=86400000 毫秒\n // System.out.println(\"X天前\");\n str = (int) Math.floor(diff / 86400000f) + \"天前\";\n }\n else if (diff > 18000000) {// 5 * 60 * 60 * 1000=18000000 毫秒\n // System.out.println(\"X小时前\");\n str = (int) Math.floor(diff / 18000000f) + \"小时前\";\n }\n else if (diff > 60000) {// 1 * 60 * 1000=60000 毫秒\n // System.out.println(\"X分钟前\");\n str = (int) Math.floor(diff / 60000) + \"分钟前\";\n }\n else {\n str = (int) Math.floor(diff / 1000) + \"秒前\";\n }\n return str;\n }", "Instant getCreated();", "T getEventTime();", "java.lang.String getArrivalTime();", "java.lang.String getArrivalTime();", "Date NearestPrevEvent(Date d);", "public Date getMessageDate();", "private static String timeFor(Date date)\n\t{\n\t\tDateFormat df = new InternetDateFormat();\n\t\tString theTime = df.format(date);\n\t\treturn theTime;\n\t}", "OffsetDateTime lastModifiedTime();", "public long getDate()\r\n/* 204: */ {\r\n/* 205:309 */ return getFirstDate(\"Date\");\r\n/* 206: */ }", "long getTimeStamp();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "long getTime();", "public static String whenFromNow(long whenMillis, long nowMillis) {\n if (whenMillis == nowMillis) {\n return \"now\";\n }\n StringBuilder sb = new StringBuilder();\n String lastWord = (whenMillis > nowMillis) ? \"later\" : \"ago\";\n long diff = Math.abs(whenMillis - nowMillis);\n sb.append(toHumanReadableTime(diff)).append(' ').append(lastWord);\n return sb.toString();\n }", "Date snapshotTime();", "Date getEventFiredAt();", "long getPublishTime();", "public abstract Date getFireTimeAfter(Date afterTime);", "long getDate();", "public static String getDate()\r\n {\r\n Date now = new Date();\r\n DateFormat df = new SimpleDateFormat (\"yyyy-MM-dd'T'hh-mm-ss\");\r\n String currentTime = df.format(now);\r\n return currentTime; \r\n \r\n }", "long getTimestamp();", "public String getLeavingDate();", "public Date getSentAt() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n Date d = null;\n try {\n d = sdf.parse(creationDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return d;\n }", "java.lang.String getTime();", "private static String getTimeStamp()\r\n\t{\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd_HH.mm.ss\");\r\n\t\tDate date = new Date();\r\n\t\treturn dateFormat.format(date);\r\n\t}", "int getTime();", "int getTime();", "long getDateTime();", "long getInhabitedTime();", "OffsetDateTime createdDateTime();", "com.google.protobuf.Int64Value getDeliveryDateBefore();", "public java.lang.String getTimeStamp(){\r\n return localTimeStamp;\r\n }", "com.google.type.Date getAcquireDate();", "Long getUserCreated();", "int getAgeYearsRelativeToReferencePoint(Calendar anchorTime, Calendar testTime);", "String getSourceUsageURLModificiationTime();" ]
[ "0.709705", "0.70759714", "0.70660406", "0.6969545", "0.66484404", "0.6290158", "0.61730886", "0.59771997", "0.5974261", "0.5890958", "0.58659256", "0.5863089", "0.5847458", "0.583133", "0.5827957", "0.58075374", "0.5807465", "0.5789574", "0.57724696", "0.57526404", "0.57272", "0.57157177", "0.57138604", "0.5689198", "0.5660307", "0.56463087", "0.56320345", "0.55890816", "0.55886626", "0.55837715", "0.5532866", "0.55308723", "0.5503838", "0.5503838", "0.5500879", "0.548982", "0.54613507", "0.54152685", "0.5413726", "0.5398824", "0.5381207", "0.53740686", "0.5369529", "0.53306824", "0.53306824", "0.53145474", "0.5309285", "0.5302729", "0.5287435", "0.5280544", "0.5277419", "0.5277324", "0.52649564", "0.52583677", "0.52462333", "0.5242805", "0.5241388", "0.52395546", "0.52395546", "0.5237419", "0.5234358", "0.52295136", "0.52262145", "0.5215042", "0.520663", "0.52036446", "0.52036446", "0.52036446", "0.52036446", "0.52036446", "0.52036446", "0.52036446", "0.52036446", "0.52036446", "0.52036446", "0.52036446", "0.52036446", "0.5198337", "0.5191291", "0.51872796", "0.51762164", "0.51758754", "0.5170945", "0.5167039", "0.5155007", "0.51490617", "0.51451313", "0.5144683", "0.5136167", "0.5135294", "0.5135294", "0.51341903", "0.51327044", "0.51308846", "0.5123459", "0.5119729", "0.5111991", "0.510859", "0.5091104", "0.50830823" ]
0.81090057
0
The main function of the assignment
public static void main(String[] args) { EvolutionaryAlgorithm alg= new EvolutionaryAlgorithm(2,10,0.03); // alg.runAlgorithm(); // run the system }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tassignmentOperations();\n\t\t \n\t}", "private void assignment() {\n\n\t\t\t}", "public static void main(String[] args) {\n System.out.println(\"*****************************Assignment 1 ********************************\");\n Assignment1 assignment1 = new Assignment1();\n assignment1.dataTypesMethod();\n int variable5 = Assignment1.variableAssignmentMethod(6);\n System.out.println(\"Value of int variable5 in mainMethod is: \" + variable5);\n Assignment1.characterAssignment();\n\n // Assignment2 dated Oct 7 2020\n System.out.println(\"*****************************Assignment 2 Part 1********************************\");\n Assignment2 assignment2 = new Assignment2();\n assignment2.arithmeticOperators(5, 7);\n assignment2.incrementOperators(3);\n System.out.println(\"*****************************Assignment 2 Part 2********************************\");\n assignment2.table(2);\n\n // Assignment dated Oct 9 2020\n System.out.println(\"*****************************Assignment 3********************************\");\n Assignment3 assignment3 = new Assignment3();\n assignment3.arithmeticLogicalOperators(3, 4, 6);\n assignment3.bitwiseOperators();\n\n }", "public static void main(String[] args) {\n FullAssignment11.run();\n FullAssignment12.run();\n }", "public void getAssignment() {\n \n }", "public static void main(String[] args) {\n\t Pen p = new PenAdapter(); \n\t AssignmentWork aw= new AssignmentWork();\n\t //aw.setP(pp); // Interface --> Write Implm --> Size,height, --> Friend Object of Friend Interface but he does'nt ha sit \n\t aw.setP(p);\n\t // It still gives error : it accepts Pen Object not Pilot Pen Object\n\t aw.writeAssignment(\"I am bit tired to write an Assignment\");\n\t // java.lang.NullPointerException\n\t // Problem : Pen writes the data\n\t // We are calling writeAssignment --> calling p --> Not Assigned any Memory to P\n\t \n\t}", "public static void main(String[] args) {\n\t\ttest1 obj = new test1();\r\n\t\t//obj.assign(10,10);\r\n\t\tobj.display();\r\n\t}", "public static void main()\n\t{\n\t}", "public static void main(String[] args) {\n\t\t\tGameStore4(1); // Lab 5 Part 4\n\n\t}", "public static void main(String[] argv) {\n String[] strArray = new String[1];\n strArray[0] = \"nitin\";\n // Note, the array doesn't contain any String object yet.\n String2 obj = new String2();\n obj.assignString(strArray);\n\n System.out.println(strArray[0]);\n check(); //Improper as it has return type it should assign to some variable. but allowed by compiler\n System.out.println(check());\n }", "public static void main(String[] args) {\n\n ArrayClone();\n //ArrayToString();\n //ArrayReverse();\n\n //ForToForeach();\n //SaveOurRAM();\n\n //Homework_Example_1();\n //Homework_Example_2();\n }", "public static void main(String[] args) {\n Last_coding_exercises.task17();\n\n\n }", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tString str;\n\t\tSystem.out.print(\"Enter the string : \");\n\t\tstr = scan.next();\n\t\tint len = str.length();\n\t\tAssignment obj = new Assignment();\n\t\tobj.recursiveCall(str, 0, len);\n\n\t\tfor (int i = 0; i <= lst.size() - 1; i++) {\n\t\t\tSystem.out.println(lst.get(i));\n\t\t}\n\t}", "public static void main(String[] args) {\n\n // Start a new instance of this class, which parses and adds jugglefest.txt to your Lists\n JuggleFestCircuitAssignments assignment = null;\n try {\n assignment = new JuggleFestCircuitAssignments();\n System.err.println(\"Added \" + assignment.jugglers.size() + \" jugglers and \" + assignment.circuits.size() + \" circuits. There will be \" + assignment.MAX_JUGGLERS_PER_CIRCUIT + \" jugglers per circuit.\");\n } catch(FileNotFoundException fnfe) {\n System.err.println(\"Could not find file\");\n }\n\n // For each juggler, add them to the best circuit they can be part of\n for (int i = 0; i < assignment.jugglers.size(); i++) {\n assignment.addJugglerToCircuit(i, assignment.jugglers.get(i).getDesiredCircuits().get(0));\n }\n\n System.err.println(\"\\n\\n ------------------ \\n\\n\");\n for (int i = 0; i < assignment.circuits.size(); i++) {\n System.out.print(\"Circuit \" + i + \" contains: \");\n for (Integer juggler : assignment.circuits.get(i).getJugglersInCircuit()) {\n System.out.print(juggler + \", \");\n }\n System.out.println();\n }\n }", "public static void main() {\n \n }", "public void solution() {\n\t\t\n\t}", "private void assignIntoGrade() {\n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "public static void main(String[] args) {\n\n int meanOfLife = 42;\n int randomInt = 2048;\n //le swap ne change rien car il change que dans la méthode et pas dans le main\n swap(meanOfLife, randomInt);\n String s1 = \"After swapping call, MEAN OF LIFE is equal to \"+ meanOfLife;\n System.out.println(s1);\n\n Student std = new Student(\"Noel\", 10);\n String s_part = \"Student \" + std.getName() + \" has the grade \";\n\n setGrade(std); //l'objet crée n'existe que dans sa méthode et n'impacte pas l'objet crée dans main\n String s2 = s_part + std.getGrade(); //on obtient 10 car les 40 n'existe que dans setGrade\n System.out.println(s2);\n\n setGrade2(std); //on modifie réellement la valeur de std car on a pas crée un nouvel objet\n String s3 = s_part + std.getGrade(); //on obtient 0 car on a modifié la valeur de std\n System.out.println(s3);\n\n }", "public static void main(String[] args) {\n\ttry{\n\t\tAssignment2 a2 = new Assignment2();\n\t\tif(a2.connectDB(\"jdbc:postgresql://localhost:5432/csc343h-huayufei\",\"huayufei\",\"\")){\n\t\t\tSystem.out.println(\"connected\");\n\t\t}\n\n\t\tif (a2.assignGrader(5000,\"t1\")) \n\t\t\tSystem.out.println(\"TRUE\");\n\t\telse \n\t\t\tSystem.out.println(\"FALSE\");\n\n\t\tif(a2.recordMember(4000,2001,\"s8\"))\n\t\t\tSystem.out.println(\"TURE\");\n\t\telse\n\t\t\tSystem.out.println(\"FALSE\");\n\n\t}catch(SQLException se){\n\t\tSystem.err.println(\"SQL Exception.\" +\n \"<Message>: \" + se.getMessage());\t\t\n\t}\t\n\t\n //System.out.println(\"Boo!\");\n }", "public static void main(String[] args) {\n homework ();\n }", "@Test\n\tpublic void testAddAssignment() {\n\t}", "public static void main(){\n\t}", "Assignment createAssignment();", "Assignment createAssignment();", "public static void main(String[] args)\r\t{", "abstract void assignOne();", "Programming(){\n\t}", "protected FitnessAssignmentProcess() {\r\n super();\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tTask86 obj=new Task86();\n\t\tSystem.out.println(obj.add(20, 10));\n\t\tSystem.out.println(obj.mult(2, 15));\t\n\t\tobj.sub(30, 10);\n\t}", "public void main() {\n System.out.println(x); // x is automatic variable (effective final variables)\n }", "public abstract void createAssignment(int p);", "public Assignement1aMain() {\n\t\t\n\t\t// create components\n\t\tComponent time = create(JavaTimer.class);\n\t\tComponent network = create(MinaNetwork.class);\n\t\tComponent con = create(JavaConsole.class);\n\t\tComponent pp2p = create(DelayLink.class);\n\t\tComponent pfd = create(PFD.class);\n\t\tComponent app = create(Application1a.class);\n\n\t\t// handle possible faults in the components\n\t\tsubscribe(handleFault, time.control());\n\t\tsubscribe(handleFault, network.control());\n\t\tsubscribe(handleFault, con.control());\n\t\tsubscribe(handleFault, pp2p.control());\n\t\tsubscribe(handleFault, pfd.control());\n\t\tsubscribe(handleFault, app.control());\n\n\t\t// initialize the components\n\t\tlong gama=1000;\n\t\tlong delta=4000;\n\t\t\n\t\tAddress self = topology.getSelfAddress();\n\t\tSet<Address> neighborSet = topology.getNeighbors(self);\n\n\t\ttrigger(new MinaNetworkInit(self, 5), network.control());\n\t\ttrigger(new DelayLinkInit(topology), pp2p.control());\n\t\ttrigger(new Application1aInit(commandScript, neighborSet, self, gama, delta), app.control());\n\t\ttrigger(new PfdInit(topology, gama, delta), pfd.control());\n\n\t\t// connect the components\n\t\tconnect(app.required(Console.class),\n\t\t\t\tcon.provided(Console.class));\n\t\tconnect(app.required(PerfectFailureDetector.class),\n\t\t\t\tpfd.provided(PerfectFailureDetector.class));\n\t\tconnect(pfd.required(PerfectPointToPointLink.class),\n\t\t\t\tpp2p.provided(PerfectPointToPointLink.class));\n\t\tconnect(app.required(Timer.class), time.provided(Timer.class));\n\t\t\n\t\tconnect(pfd.required(Timer.class), time.provided(Timer.class));\n\t\tconnect(pp2p.required(Timer.class), time.provided(Timer.class));\n\t\tconnect(pp2p.required(Network.class), network.provided(Network.class));\n\t}", "public static void main(String[] args) {\n\t\tLearnReturnVar obj = new LearnReturnVar();\r\n\t\tint result= obj.add();\r\n\t\tSystem.out.println(\"the addition value is\" +result);\r\n obj.sub(50,10);\r\n\t\r\n\t}", "public static void main (String[] args) //self testing main method\r\n {\n Employee emp = new Employee (\"John\", \"Smith\", \"P0444444\");\r\n System.out.println(emp.toString());\r\n System.out.println(emp.getFirstName());\r\n System.out.println(emp.getLastName());\r\n System.out.println(emp.getID());\r\n // change employee information\r\n emp.setFirstName(\"Joanne\");\r\n emp.setLastName(\"Johnson\");\r\n emp.setID(\"P0123456\");\r\n // display again\r\n System.out.println(emp.toString());\r\n }", "public static void main(String[] args) throws IOException {\n// new Homework01();\n new Homework02();\n }", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "assign_op getAssign_op();", "public static void main(String[] args) {\n\t\tint a;\n\t\tSystem.out.println(a = 5);\n\t\tSystem.out.println(a);\n\t\tint b = a = 6;\n\t\tSystem.out.println(b);\n\t\tint c=b=a=7;\n\t\t\n\t\ta = 1;\n\t\ta += 2;\n\t\tSystem.out.println(a);\n\t\tint n = 45678;\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\n\t}", "abstract void assign(int i);", "public static void main(String[] args) {\n\n\t\tString name = \"John\";\n\n\t\tString lastName = (\"Smith\");\n\n\t\tchar grade = 'A';\n\t\t// char grade= 'A' : Do not make it this way to change value of variable\n\n\t\tSystem.out.println(grade); //Should print with Grade 'A' \n\t\t\n\t\t// Use the way bellow to change value of variable\n\t\tgrade = 'B';\n\n\t\tSystem.out.println(grade); // Should print with grade 'B' now because of \"Stack Order\"\n\n\t\t// Example below\n\n\t\tString city = \"Fairfax\";\n\n\t\t// Print value\n\t\tSystem.out.println(city);\n\n\t\tcity = \"New York\";\n\n\t\t// Print updated value\n\t\tSystem.out.println(city); // Should Show the new city that was updated\n\t\t\n\t\t// Example\n\t\t\n\t\tSystem.out.println(name);\n\t\t\n\t\tname= \"Jason\";\n\t\t\t\t\n\t\tSystem.out.println(name);\n\t\t\n\t\t//name was change from John to Jason successfully \n\t\t\n\t\t\n\n\t}", "public static void main(String[] args)\r\n {\n \r\n \r\n }", "public static void main(String[] args) {\n SeqRepeat sr = new SeqRepeat();\n sr.ClearRepeats();\n \n // Check 2nd task (Parameters in DistribRepeat class)\n DistribRepeat dr = new DistribRepeat();\n dr.ClearRepeats();\n \n \n // Check 3rd task (Parameters in Tree class)\n Tree tree = new Tree();\n tree.print();\n tree.printHeight();\n tree.draw();\n }", "public static void main(String[] args) {\r\n \r\n }", "public static void main(String[] args) {\r\n \r\n }", "public static void main(String[] args) {\n Course AbstractAdvancedJavaSuperClass = new AdvancedJavaCourse(\"AdvancedJava\", \"-003\");\r\n Course AbstractJavaSuperClass = new IntroJavaCourse(\"IntroJava\", \"-002\");\r\n Course AbstractProgramClass = new IntroToProgrammingCourse(\"Intro\", \"-001\");\r\n\r\n AbstractAdvancedJavaSuperClass.setCredits(4);\r\n AbstractJavaSuperClass.setCredits(4.0);\r\n AbstractProgramClass.setCredits(4.0);\r\n \r\n //this is a test\r\n \r\n AbstractAdvancedJavaSuperClass.setPrerequisites(AbstractJavaSuperClass.getCourseNumber());\r\n AbstractJavaSuperClass.setPrerequisites(AbstractProgramClass.getCourseNumber());\r\n \r\n System.out.println(AbstractProgramClass.getCapitalizedCourseName()\r\n + \" \" + AbstractProgramClass.getCourseNumber() );\r\n \r\n System.out.println(AbstractJavaSuperClass.getCourseName()\r\n + \" \" + AbstractJavaSuperClass.getCourseNumber() \r\n + \" \" + AbstractJavaSuperClass.getPrerequisites());\r\n \r\n System.out.println(AbstractAdvancedJavaSuperClass.getCourseName()\r\n + \" \" + AbstractAdvancedJavaSuperClass.getCourseNumber() \r\n + AbstractAdvancedJavaSuperClass.getPrerequisites() );\r\n}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tTest1 t = new Test1();\n\t\tTest1 t1 = new Test1();\n\t\t\n\t\t\n\t\tint a3 = t.plus(100, 200);\n\t\tint a4 = t.plus(100, 400);\n\t\t\n//\t\tSystem.out.println(a3 +\" \"+ a4);\n\t\t\n\t\tt.a = 100;\n\t\tint a5 = t.a;\n\t\t\n\t\tSystem.out.println(a5);\n\t\t\n\t\tt1.a= 300;\n\n\t\tt.a = 300;\n\t\t \n\t\ta5 = t.a;\n\t\t\n\t\tSystem.out.println(t.a +\" \"+ t1.a);\n\t\t\n\t}", "public static void main(String [] args)\r\n\t{\n\t\t\r\n\t\tArrayList<String> arl = new ArrayList<String>();\r\n\t\t\t//addAryList(arl);\r\n\t\tprintArryList(arl);\r\n\t\t//n = sc.nextInt();\r\n\t LinkedList<String> lst = new LinkedList<String>();\r\n\t\tprintLList(lst);\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tset();\n\t}", "public static void main(String[] args) {\n \r\n\t}", "public static void main(String[] args) {\n Course introProgramming = new IntroToProgrammingCourse(\"Intro to Programming\", \"330\", 2);\n Course introJava = new IntroJavaCourse(\"Intro to Java Programming\", \"331\", 3, \"Intro to Programming\");\n AdvancedJavaCourse advancedJava = new AdvancedJavaCourse(\"Advanced Java Programming\", \"332\", 4, \"Intro to Java Programming\");\n System.out.println(introProgramming.printCourse());\n System.out.println(introJava.printCourse());\n System.out.println(advancedJava.printCourse());\n }", "public static void main(String[] args) {\n\n Student alex = new Student(\"Alex\", \"Kane\", 21);\n alex.setCourse(\"Math\");\n System.out.println(alex);\n\n Student mary = new Student(\"Mary\", \"Jane\", 19);\n mary.setCourse(\"Art\");\n System.out.println(mary);\n\n /* Initialize a few teachers. Set values for wage and total hours worked. Print their first name,\n last name, age and salary that each of them earns.\n */\n Teacher john = new Teacher(\"John\", \"Tob\", 45);\n john.setDepartment(\"Computer science\");\n john.setWage(20);\n john.setTotalHoursWorked(120);\n System.out.println(john);\n\n Teacher lizy = new Teacher(\"Lizy\", \"Simpson\", 45);\n lizy.setDepartment(\"Philosophy\");\n lizy.setWage(34);\n lizy.setTotalHoursWorked(12);\n System.out.println(lizy);\n\n }", "@Test\n public void testAssignment() {\n try {\n Lexer lexer = new Lexer(new StringReader(\"n = 0;\"));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n AssignNode assignment = (AssignNode) node.get(0);\n assertTrue(assignment.getClass() == AssignNode.class);\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tDepartment cs1 = new Department(\"CS01\", \"Computer Science\"); //here cs1 is a reference; new Department(\"CS01\", \"Computer Science\") is an instance\n\t\tDepartment cs2 = null;\n\t\tDepartment cs3 = cs1;\n\t\t\n\t\tAddress dept1Addrs = new Address(\"5800 Windward Pkwy\", \"#5800\", \"Alpharetta\"); //consider this as deep copy\n\t\t\n\t\t//Address dept2Addrs = new Address(dept1Addrs.getAddress1(), dept1Addrs.getAddress2(), dept1Addrs.getCity());\n\t\t\n\n\t\t\n\t\ttry {\n\t\t\tcs1.setDeptAddress(dept1Addrs);\t\n\t\t\t\n\t\t\t//cs2 = new Department(cs1.getDeptId(), cs1.getDeptName());\n\t\t\t//cs2.setDeptAddress(dept2Addrs);\n\t\t\t\n\t\t\t\n\t\t\t cs2 = cs1.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdept1Addrs.setCity(\"Atlanta\");\n\t\t\n\t\t//dept1Addrs = new Address(\"Rodeo Drive\", \"Hollywood\", \"Los Angeles\"); \n\t\t\n\t\t//cs1.setDeptAddress(dept1Addrs);\n\t\t\n\t\tcs1.setDeptName(\"ECE\");\n\t\t\n\t\tSystem.out.println(\"CS1: \" + cs1);\n\t\tSystem.out.println(\"CS2: \" + cs2);\n\t\t\n\t\t//System.out.println(cs1==cs2);\n\t\t//System.out.println(cs1==cs3);\n\t}", "public static void main(String[] args) \n\t{\n\t\tExample e1 = Example.getExample();\n\t\tExample e2 = Example.getExample();\n\n\t\t//System.out.println(e1 = e2); // o/p:--- Example@15db9742\n\t//\tSystem.out.println(e1 = = e2);\t// CE: illegal start of expression\n\n\t\tSystem.out.println(e1 == e2);\t//o/p :--- true\n\n\t\n\t}", "public static void main(String[] args) \r\n\t{\r\n\t\t\r\n\t\tFinal_Variable obj=new Final_Variable();\r\n\t\tSystem.out.println(\"Before change a value is --> \"+obj.a);\r\n\t\tobj.a=400;\r\n\t\tSystem.out.println(\"After change a value is --> \"+obj.a);\r\n\t\r\n\r\n\t}", "public void main(){\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tString name = \"hello\";\r\n\t\tRunnable r1 = () -> System.out.println(name);\r\n\t\t\r\n\t\t//String name2 = \"\";\r\n\t\t String name2 = name.toUpperCase();\r\n\t\tRunnable r2 = () -> System.out.println(name2);\r\n\t\tr1.run();\t\r\n\t\t\r\n\t\t//avergeOfPlayer();\r\n\t\t\r\n\t\t//topNumberinArray();\r\n\t\t\r\n\t\ttestSpiltIterator();\r\n\t\t\r\n\t}", "public static void main() {\n }", "public static void main(String[] args){ \n // What It Does: Demo that the assignment is complete and correct\n // How It Works: Call to BinaryTree.main() demo method\n BinaryTree.main(args);\n }", "public static void main(String[] args) {\n\t\tlearningFunction a = new learningFunction();\n\t\t\n\t\t// variable declaretion \n\t\t\n\t\tlearningFunction b; \n\t\tint x; \n\t\t\n\t\t// initialization \n\t\t\n\t\tb=new learningFunction();\n\t\t\n\t\tcar c = new car();\n\t\t\n\t\tint l; \n\t\t\n\t\tl= a.add(10, 14);\n\t\t\n\t\ta.printName(\"dfg\");\n\t\t\n\t\tboolean z = a.iflarger(100.23, 20.23);\n\t\t//System.out.println(z);\n\t\t\n\t\tz = a.iflarger(23.34, 30.12);\n\t\t\n\t\tdouble temp = a.convertFartoCel(50.98);\n\t\t\n\t\tSystem.out.println(temp);\n\t\t\n\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n int x = 2;\n int y = x ;\n\n\n }", "public static void main(String[] args) {\n\t\tScanner k = new Scanner(System.in);\r\n\t\t\r\n\t\t//instantiate Course grades class\r\n\t\tCourseGrades c1 = new CourseGrades();\r\n\t\t\r\n\t\t//instantiate all classes for the test values\r\n\t\tGradedActivity g1 = new GradedActivity();\r\n\t\tPassFailExam p1 = new PassFailExam(50, 12, 75.0);\r\n\t\tEssay e1 = new Essay();\r\n\t\tFinalExam f1 = new FinalExam(50, 13);\r\n\t\t\r\n\t\t//setting the values that are set by using setters\r\n\t\te1.setScore(84);\r\n\t\tg1.setScore(88);\r\n\t\t\r\n\t\tc1.setLab(g1);\r\n\t\tc1.setPassFailExam(p1);\r\n\t\tc1.setEssay(e1);\r\n\t\tc1.setFinalExam(f1);\r\n\t\t\r\n\t\t//display output be calling the toString\r\n\t\tSystem.out.println(c1);\r\n\r\n\t}", "public static void main(String[] args) {\n \n \n \n\t}", "public static void main(String[] args) {\n Integer[] r1 = pickTwo(1, 2, 3);\n r1[0] = 5;\n\n\n }", "public static void main(String[] args)\r\n\t{\n\t\r\n\t\tson s=new son();\r\n\t\ts.mul();\r\n\t\ts.add();\r\n\t\ts.A();\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args)\n {\n\t\n }", "public static void main (String[]args) {\n\t\t\n\t\tString firstName = \"Anara\";\n\t\t\n\t\tSystem.out.println ( \"My name is \" + firstName);\n\t\t\n\t\t//city variable and assign city where you are from\n\t\t\n\t\t//Print : I was born in city\n\t\t\n\t\tString city = \"Semey\";\n\t\tSystem.out.println ( \"I was born in \" + city);\n\t\t\n\t\t//Create a variable: job and assign SDET to it\n\t\t// Create var company and assign any company\n\t\t//Print I work as SDET in that company\n\t\t\n\t\tString job = \"SDET\";\n\t\tString company = \"Capital One\";\n\t\tSystem.out.println ( \"I work as \" + job + \" in \"+company);\n\t\t\n\t\t//create int variable zipcode and assign zipcode of your home\n\t\t// Print I live in <220031> zipcode\t\n\t\t\n\t\tint zipcode = 220031;\n\t\t\n\t\tSystem.out.println ( \"I live in \"+ zipcode + \" zipcode\");\n\t\t\n\t\t\n\t\tint num1 = 10;\n\t\tint num2 = 20;\n\t\t\n\t\tSystem.out.println ( num1+num2);\n\t\tSystem.out.println ( num1+\" \"+num2);\n\t\t\n\t\t\t}", "public static void main(String[] args){\n\t\t\n\t\t\n \t}", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main (String[] args) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\taddVar(1,20);\n\t\t\n\t\t\n\t\t/*\n\t\t * 매소드를 사용하는 방법에 대한 도움말을 제공하므로 해서 입력하는 사람이 \n\t\t * 데이터를 입력하는 실수를 최소한으로 할수 있는 좋은 코드 작성법\n\t\t */\n\n\t}", "public static void main(String[] args){\n int [] francesMarks = {90 , 57 , 50 , 90 , 50 , 90 , -1 , 50 , 12 , 90 , 50 , 40 , 100 , 100};\n Student frances = new Student(\"1234\", francesMarks);\n frances.setAssignmentMark(5, 90);\n System.out.println(frances);\n \n }", "public static void main (String[] args) {\r\n\t\t \r\n\t\t}", "public static void main(String[] args) {\n\t\t\n\t\tCar a=new Car();\n\t\tCar b=new Car();\n\t\tCar c=new Car();\n\t\ta.mod=2015;\n\t\tb.mod=2013;\n\t\tc.mod=2012;\n\t\t\n\t\ta.wheel=\"maruti\";\n\t\tb.wheel=\"BMW\";\n\t\tc.wheel=\"Jeep\";\n\t\t\n System.out.println(a.wheel);\n System.out.println(b.wheel);\n System.out.println(c.wheel);\n System.out.println(a.mod);\n System.out.println(b.mod);\n System.out.println(c.mod);\n System.out.println(\"After assigning\");\n a=b;\n b=c;\n c=a;\n a.mod=10;\n System.out.println(\"Valu of a\" +a.mod);\n c.mod=30;\n System.out.println(\"Valu of a\" +a.mod);\n\n \n}", "public static void main(String[] args) {\n\t\tPassParameters obj = new PassParameters();\r\n\t\tobj.add(100, 150);\r\n\t\tobj.sub(20.5, 50.6);\r\n\t\t\r\n\r\n\t}", "public static void main (String args[]) {\n\t\t\n }", "public static void main(String[] args) {\n practice_1_5 p =new practice_1_5();\n // p.quickfindArr();\n // p.quickunionArr();\n p.weightedquickunionArr();\n\t}", "public static void main(String[] args) \n {\n\t \n\t \n\t \n}", "public static void main(String[] args) {\n \n \n \n \n }", "public static void main(String[] args) {\n \n \n }", "public static void main(String[] args) {\n \n \n }", "public static void main(String[] args) {\n PAT1005 pat = new PAT1005();\r\n\r\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main (String [] args) \r\n {\n \tWorker bob = new Worker (\"Bob\", 10000);\r\n \t\r\n \t//Create a programmer object.\r\n \tProgrammer hlavaty = new Programmer (\"Cindy\", 50000, \"Java\");\r\n \t\t\r\n \t//Create a manager object.\r\n \tManager omar = new Manager (\"Omar\", 55000);\r\n \t\r\n \tbob.work();\r\n \thlavaty.work();\r\n \tomar.work();\r\n \t\r\n \tSystem.out.println (hlavaty.getLang());\r\n \t\r\n \tbob.raiseSalary (1000);\r\n \t\r\n \tSystem.out.println (bob.toString());\r\n \t\r\n \tSystem.out.println (hlavaty.progLang);\r\n \t\r\n \thlavaty.raiseSalary (20000);\r\n \t\r\n \tomar.raiseSalary (10);\r\n \t\r\n \tSystem.out.println (hlavaty.toString());\r\n \t\r\n \tSystem.out.println (omar.toString());\r\n }", "public static void main(String[] args) {\n\t\t\n\t/* MyFirstÇlass my1 = new MyFirstClass(); //my -> reference variable \n\t\tMyFirstÇlass my2 = new MyFirstClass();\n\t\tMyFirstÇlass my3 = new MyFirstClass();\n\t\tMyFirstÇlass my4 = new MyFirstClass();\n\t*/\n\t\n\t\tSystem.out.println(my1.myint);\n\t\tmy1.info();\n\t\tint assign=my1.mySum();\n\t\t\n\t\tSystem.out.println(my1.mySum());\n\t\t\n\t\n\t}", "public static void main(String[] args) {\n\n SuccessorGenerator successorGenerator = new TicTacToeGenerator();\n GameState initialState = (new NewGameState(\"\")).getInitialState();\n GameState finalState = null;\n\n createTree(successorGenerator, initialState);\n fillEvaluations(initialState, Player.PLAYER_MAX);\n finalState = playGame(initialState, GameStyle.RANDOM_VS_RANDOM);\n\n System.out.println(\"\\nO jogo terminou no seguinte estado:\\n\");\n System.out.println(finalState.toFormattedString());\n System.out.println(\"\\nResultado: \"+Double.toString(finalState.getEvaluation()));\n }", "public static void main(String args[]) {\r\n }", "@Test\n\tpublic void testAssignment(){\n\t\tVariable x = new Variable(\"x\");\n\t\tOperator plus = new Operator(\"+\");\n\t\tExpression one = f.createNumNode(1);\n\t\tExpression two = f.createNumNode(2);\n\t\tExpression exp = f.createInfixNode(plus, one, two);\n\t\tStatement assign = f.createAssignNode(x,exp);\n\t\tassertEquals(assign.textRepresentation(), \"x = 1 + 2;\");\n\t\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\tassign.accept(v);\n\t\tassertEquals(\"assignment test1 fail\", v.numCount, 2);\n\t\tassertEquals(\"assignment test2 fail\", v.infixCount, 1);\n\t\tassertEquals(\"assignment test3 fail\", v.assignCount, 1);\n\t}", "public static void main(String[] args) {\n Dimensions dimensions = new Dimensions(20, 20, 5);\r\n Case theCase = new Case(\"220B\", \"Dell\", \"240\", dimensions);\r\n\r\n Monitor theMonitor = new Monitor(\"27inch Beast\", \"Acer\", 27, new Resolution(2540, 1440));\r\n\r\n Motherboard theMotherboard = new Motherboard(\"BJ-200\", \"Asus\", 4, 6, \"v2.44\");\r\n\r\n PC thePC = new PC(theCase, theMonitor, theMotherboard);\r\n thePC.powerUp();\r\n\r\n Table theTable = new Table(\"Dark Wood\", 1, 2, 1, 6);\r\n Couch theCouch = new Couch(\"Beige\", \"Fethers\", 4);\r\n LivingRoom livingRoom = new LivingRoom(4, 10, theTable, theCouch);\r\n\r\n livingRoom.getTable().serveTable();\r\n livingRoom.confyGuests();\r\n }", "public static void main(String[] args)\r\n {\r\n \r\n \r\n \r\n }", "public static void main(String[] args) {\n\t\t\n\t\tVariablePractice4 vp = new VariablePractice4();\n\t\tvp.inputString();\n\t\t\n\t}", "public static void main(String[] args) {\n// new Problem_10().print();\n Problem_10.print();\n }", "private void assign(int act, int programCounter, int parm1, int parm2) {\r\n\t\t\taction = act;\r\n\t\t\tpc = programCounter;\r\n\t\t\ttry {\r\n\t\t\t\t// Client does not have direct access to program statement, and\r\n\t\t\t\t// rather than making all\r\n\t\t\t\t// of them go through the methods below to obtain it, we will do\r\n\t\t\t\t// it here.\r\n\t\t\t\t// Want the program statement but do not want observers\r\n\t\t\t\t// notified.\r\n\t\t\t\tps = Globals.memory.getStatementNoNotify(programCounter);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// The only situation causing this so far: user modifies memory\r\n\t\t\t\t// or register\r\n\t\t\t\t// contents through direct manipulation on the GUI, after\r\n\t\t\t\t// assembling the program but\r\n\t\t\t\t// before starting to run it (or after backstepping all the way\r\n\t\t\t\t// to the start).\r\n\t\t\t\t// The action will not be associated with any instruction, but\r\n\t\t\t\t// will be carried out\r\n\t\t\t\t// when popped.\r\n\t\t\t\tps = null;\r\n\t\t\t\tpc = NOT_PC_VALUE; // Backstep method above will see this as\r\n\t\t\t\t\t\t\t\t\t// flag to not set PC\r\n\t\t\t}\r\n\t\t\tparam1 = parm1;\r\n\t\t\tparam2 = parm2;\r\n\t\t\tinDelaySlot = Simulator.inDelaySlot(); // ADDED 25 June 2007\r\n\t\t\t/*\r\n\t\t\t * System.out.println(\"backstep PUSH: action \"+action+\" pc \"+mars.\r\n\t\t\t * util.Binary.intToHexString(pc)+ \" source \"+((ps==null)?\r\n\t\t\t * \"none\":ps.getSource())+ \" parm1 \"+param1+\" parm2 \"+param2);\r\n\t\t\t */\r\n\t\t}", "public static void main(String[] args) {\n\t\t\n\t\tAbstractMotorBike am=new AbstractMotorBike();\n\t\tam.Engine();\n\t\tam.Break();\n\t\tam.vendor();\n\t\tam.Engine();\n\t\tSystem.out.println(\"value of the variable in abstract class : \" + am.a);\n am.a=20;\n System.out.println(\"value of the variable in Main method : \" + am.a);\n\t}" ]
[ "0.7502336", "0.7439252", "0.68295056", "0.66625905", "0.6437392", "0.6203292", "0.61825943", "0.6165241", "0.6110006", "0.6086569", "0.60856074", "0.6072373", "0.6042401", "0.603142", "0.6022496", "0.59897065", "0.59579164", "0.5945937", "0.59423935", "0.5890649", "0.5882263", "0.5881805", "0.5878559", "0.58730423", "0.58730423", "0.58703554", "0.5856429", "0.58510643", "0.5828395", "0.582703", "0.5806626", "0.5802925", "0.5796781", "0.57963943", "0.57888365", "0.5787136", "0.57690763", "0.5768145", "0.5760075", "0.5759803", "0.57520103", "0.5748421", "0.57376844", "0.57362074", "0.57362074", "0.57315284", "0.5731068", "0.5725747", "0.5722885", "0.5703792", "0.57037014", "0.5695792", "0.568713", "0.5683064", "0.56793094", "0.56791365", "0.5676207", "0.5675377", "0.567197", "0.56708735", "0.566847", "0.566619", "0.56642306", "0.566074", "0.5660038", "0.56566095", "0.5656455", "0.5649372", "0.5645492", "0.5639956", "0.5639956", "0.5639956", "0.5639956", "0.5639956", "0.5639956", "0.5636062", "0.56308854", "0.5626334", "0.5623837", "0.56188774", "0.5617686", "0.5615605", "0.5615223", "0.56143284", "0.56139755", "0.5613253", "0.5613253", "0.5611178", "0.560547", "0.560547", "0.5603515", "0.5603444", "0.56013334", "0.55989254", "0.5598705", "0.5595068", "0.5594927", "0.5594728", "0.5594467", "0.5591668", "0.55913967" ]
0.0
-1
Method that checks if a string is a numeric character
public boolean isNum() { try { int d = Integer.parseInt(numeric); } catch(NumberFormatException nfe) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isNumeric(String s) {\n return java.util.regex.Pattern.matches(\"\\\\d+\", s);\n }", "private boolean isNumeric(String s)\n {\n for (int i = 0; i < s.length(); ++i)\n {\n if (!Character.isDigit(s.charAt(i)))\n {\n return false;\n }\n }\n return true;\n }", "private static boolean isNumeric(String str){\n return NumberUtils.isNumber(str);\n }", "private boolean stringIsNumeric(String str) {\n\t\tfor(char c : str.toCharArray()) {\n\t\t\tif(!Character.isDigit(c)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public boolean isNumeric(String str){\r\n\t Pattern pattern = Pattern.compile(\"[0-9]*\");\r\n\t return pattern.matcher(str).matches(); \r\n\t}", "public boolean isNum(String cad){\n try{\n Integer.parseInt(cad);\n return true;\n }catch(NumberFormatException nfe){\n System.out.println(\"Solo se aceptan valores numericos\");\n return false;\n }\n }", "private boolean isNumber(String str) {\r\n int ASCII_0 = 48;\r\n int ASCII_9 = 57;\r\n if (str.equals(\"\")) {\r\n return false;\r\n }\r\n for (int i = 0; i < str.length(); i++) {\r\n int chr = str.charAt(i);\r\n if (chr < ASCII_0 || chr > ASCII_9) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public boolean isNumeric(String str){\n try {\n int i = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "public static boolean isNumeric(String string) { \r\n\t\ttry { \r\n\t\t\tint testNumber = Integer.parseInt(string); \r\n\t\t} catch(NumberFormatException e) { \r\n\t\t\treturn false; \r\n\t\t} \r\n\t\t\r\n\t\treturn true; \r\n\t}", "public static boolean isNumeric(char num) {\n\t\treturn isNumeric(String.valueOf(num));\n\t}", "boolean isNumeric(char pChar)\n{\n\n //check each possible number\n if (pChar == '0') {return true;}\n if (pChar == '1') {return true;}\n if (pChar == '2') {return true;}\n if (pChar == '3') {return true;}\n if (pChar == '4') {return true;}\n if (pChar == '5') {return true;}\n if (pChar == '6') {return true;}\n if (pChar == '7') {return true;}\n if (pChar == '8') {return true;}\n if (pChar == '9') {return true;}\n\n return false; //not numeric\n\n}", "private static boolean isNumeric(String str){\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "public static boolean isAsciiNumeric(char ch) {\n/* 517 */ return (ch >= '0' && ch <= '9');\n/* */ }", "public boolean isNum(String x) {\n\t\tfor (int i = 0; i < x.length(); i++) {\n\t\t\tchar c = x.charAt(i);\n\t\t\tif ((c == '-' || c == '+') && x.length() > 1)\n\t\t\t\tcontinue;\n\t\t\tif ((int) c > 47 && (int) c < 58)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private static boolean isNumeric(String cadena)\n\t {\n\t\t try \n\t\t {\n\t\t\t Integer.parseInt(cadena);\n\t\t\t return true;\n\t\t } catch (NumberFormatException nfe)\n\t\t {\n\t\t\t return false;\n\t\t }\n\t }", "private boolean isNotNumeric(String s) {\n return s.matches(\"(.*)\\\\D(.*)\");\n }", "public static boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n Integer d = Integer.parseInt(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "public static boolean isNumber(String s) \r\n{ \r\n for (int i = 0; i < s.length(); i++) \r\n if (Character.isDigit(s.charAt(i)) \r\n == false) \r\n return false; \r\n\r\n return true; \r\n}", "public static boolean isNumeric(String str)\n {\n return str.chars().allMatch( Character::isDigit );\n }", "public static boolean isNumeric(char c)\n\t{\n\t\tif (c >= '0' && c <= '9')\n\t\t\treturn true;\n\t\telse if (c == '.')\n\t\t\treturn true;\n\t\telse if (c == '-')\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public static boolean isNumeric(String str) {\n if (isBlank(str)) {\n return false;\n }\n\n char[] charArray = str.toCharArray();\n\n for (char c : charArray) {\n if (!Character.isDigit(c)) {\n return false;\n }\n }\n\n return true;\n }", "public static boolean isNumeric(String cadena){ \r\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException e){\t\r\n System.out.println(e.getMessage());\r\n return false;\r\n }\r\n }", "private static boolean isNumeric(String str)\t{\n\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); \n\t\t\t// match a number with optional '-' and decimal.\n\t}", "private static boolean isDigit(char p_char) {\n return p_char >= '0' && p_char <= '9';\n }", "public static boolean isnumber(char c) {\n\t\tif (c=='0'||c=='1'||c=='2'||c=='3'||c=='4'||c=='5'||c=='6'||c=='7'||c=='8'||c=='9') {\n\t\t\treturn true;// return true if that char is number\n\t\t}\n\t\telse { //else return false\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n double d = Double.parseDouble(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "public static boolean isNumeric(String strNum) {\r\n if (strNum == null) {\r\n return true;\r\n }\r\n try {\r\n Integer.parseInt(strNum);\r\n } catch (NumberFormatException nfe) {\r\n return true;\r\n }\r\n return false;\r\n }", "public static boolean isNumeric(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "public static boolean isNumeric(String str) {\n try {\n Integer d = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "public static boolean isNumeric(final String input) {\n\t\tif (input == null || input.isEmpty())\n\t\t\treturn false;\n\n\t\tfor (int i = 0; i < input.length(); i++)\n\t\t\tif (!Character.isDigit(input.charAt(i)))\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}", "public static boolean isNumeric(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "public static Boolean isNumeric(String text)\n {\n //This checks for negative numbers...\n if (text.startsWith(\"-\"))\n {\n text = text.substring(1, text.length());\n }\n\n for (char c : text.toCharArray())\n {\n if (!Character.isDigit(c))\n {\n return false;\n }\n }\n return true;\n }", "public boolean isNumeric(String cadena) {\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException nfe) {\r\n return false;\r\n }\r\n }", "public static boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n double d = Double.parseDouble(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "private static boolean isNumeric(String str) { \n\t\ttry { \n\t\t\tDouble.parseDouble(str); \n\t\t} \n\t\tcatch(NumberFormatException nfe) { \n\t\t\treturn false; \n\t\t} \n\t\treturn true; \n\t}", "public boolean isNumeric(String sNumericString) {\n try {\n for (char c : sNumericString.toCharArray()) {\n if (!Character.isDigit(c)) {\n return false;\n }\n }\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "public boolean isDigit(String s)\r\n\t\t{\n\t\t\tfor(char c : s.toCharArray())\r\n\t\t\t{\r\n\t\t\t if(!(Character.isDigit(c)))\r\n\t\t\t {\r\n\t\t\t return false;\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\t//return false;\r\n\t\t\treturn true;\r\n\t\t}", "public static boolean isNumeric(String aString) {\r\n if (aString == null) {\r\n return false;\r\n } else if (aString.isEmpty()) {\r\n return false;\r\n } else if (aString.indexOf(\".\") != aString.lastIndexOf(\".\")) {\r\n return false;\r\n } else {\r\n int counter = 0;\r\n for ( char c : aString.toCharArray()) {\r\n if ( Character.isDigit(c)) {\r\n counter++;\r\n }\r\n }\r\n return counter == aString.length();\r\n// if (counter == aString.length()) {\r\n// return true;\r\n// }\r\n// return false;\r\n }\r\n }", "public static boolean isNumeric(String input) {\n\t\ttry {\n\t\t\tInteger.parseInt(input);\n\t\t\treturn true;\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\t// string is not numeric\n\t\t\treturn false;\n\t\t}\n\t}", "private static boolean isNumeric(String str)\n\t{\n\t\ttry\n\t\t{\n\t\t\tdouble d = Double.parseDouble(str);\n\t\t}\n\t\tcatch (NumberFormatException nfe)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isNumeric(String str) {\n\t\ttry {\n\t\t\tInteger.parseInt(str.trim().substring(0, 1));\n\t\t\treturn true;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean isNumeric(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException ex) {\n return false;\n }\n }", "public static final boolean isNumeric(char c, int i) {\r\n return NUMERIC_FORMAT_CHARS.indexOf(c) >= 0 || (i <= 2 && NUMERIC_FORMAT_CHARS2.indexOf(c) >= 0);\r\n }", "private boolean isDigit(char x) {\n return x >= '0' && x <= '9';\n }", "public abstract boolean isNumeric();", "private boolean isNumber(char c){\n if(c >= 48 && c < 58)\n return true;\n else{\n return false;\n }\n }", "public boolean isNumeric(String str) {\n try {\n Double.parseDouble(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "public static boolean isNumericString(String value) {\n\t try {\n\t\t if (Double.parseDouble(value) > 0) {\n\t\t return true;\n\t\t }\n\t } catch (NumberFormatException nfe) {\n\t return false;\n\t }\n\t return false;\n\t}", "public boolean isNumber(String str)\r\n\t{\r\n\t\tfor(int i = 0; i < str.length(); i++)\r\n\t\t{\r\n\t\t\tif(!Character.isDigit(str.charAt(i)))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static boolean isNumber(final String s) {\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif (!Character.isDigit(s.charAt(i))) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}", "private static boolean isNumber(String value){\r\n\t\tfor (int i = 0; i < value.length(); i++){\r\n\t\t\tif (value.charAt(i) < '0' || value.charAt(i) > '9')\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static boolean isDigit(final String str) {\n if (str == null || str.length() == 0) {\n return false;\n }\n\n for (var i = 0; i < str.length(); i++) {\n if (!Character.isDigit(str.charAt(i)) && str.charAt(i) != '.') {\n return false;\n }\n }\n return true;\n }", "public static boolean isNumeric(String num) {\n\t\ttry {\n\t\t\tdouble d = Double.parseDouble(num);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "protected boolean isNumeric(final String id) {\n\t\tfinal NumberFormat formatter = NumberFormat.getInstance();\n\t\tfinal ParsePosition pos = new ParsePosition(0);\n\t\tformatter.parse(id, pos);\n\t\treturn id.length() == pos.getIndex();\n\t}", "public static boolean isDigit(char c)\n {\n return (c >= '0' && c <= '9');\n }", "public static boolean isNumeric(String field) {\r\n\t\tif (isEmpty(field))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\tfield = field.trim();\r\n\t\tif (field.trim().matches(\"[0-9\\\\-\\\\(\\\\)\\\\ ]*\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean valid_numbers(String nr)\n\t{\n\t\t// loop through the string, char by char\n\t\tfor(int i = 0; i < nr.length();i++)\n\t\t{\n\t\t\t// if the char is not a numeric value or negative\n\t\t\tif(Character.getNumericValue(nr.charAt(i)) < 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// if it did not return false in the loop, return true\n\t\treturn true;\n\t}", "private boolean isLegalNumChar(char c) {\n return c == '-'\n || c == '+'\n || (c >= '0' && c <= '9')\n || c == 'e'\n || c == 'E'\n || c == '.';\n }", "private boolean isDigit(char toCheck) {\n return toCheck >= '0' && toCheck <= '9';\n }", "public static boolean isNumber(String string) {\n if (string == null || string.isEmpty()) {\n return false;\n }\n int i = 0;\n if (string.charAt(0) == '-') {\n if (string.length() > 1) {\n i++;\n } else {\n return false;\n }\n }\n for (; i < string.length(); i++) {\n if (!Character.isDigit(string.charAt(i))) {\n return false;\n }\n }\n return true;\n}", "public boolean checkInt( String s ) {\n \tchar[] c = s.toCharArray();\n \tboolean d = true;\n\n \tfor ( int i = 0; i < c.length; i++ )\n \t // verifica se o char não é um dígito\n \t if ( !Character.isDigit( c[ i ] ) ) {\n \t d = false;\n \t break;\n \t }\n \treturn d;\n \t}", "public static boolean isNumber(char n) {\r\n\t\treturn (n >= '0' && n <= '9');\r\n\t}", "protected boolean isNumber(String s)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDouble.parseDouble(s);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException ex)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean isDigit(char ch) {\n if ( (ch >= '0') && (ch <= '9')) {\n return true;\n } // if\n else {\n return false;\n } // else\n }", "private boolean isNumerico(char unChar) {\r\n\t\tswitch (unChar) {\r\n\t\tcase '0':\r\n\t\t\treturn true;\r\n\t\tcase '1':\r\n\t\t\treturn true;\r\n\t\tcase '2':\r\n\t\t\treturn true;\r\n\t\tcase '3':\r\n\t\t\treturn true;\r\n\t\tcase '4':\r\n\t\t\treturn true;\r\n\t\tcase '5':\r\n\t\t\treturn true;\r\n\t\tcase '6':\r\n\t\t\treturn true;\r\n\t\tcase '7':\r\n\t\t\treturn true;\r\n\t\tcase '8':\r\n\t\t\treturn true;\r\n\t\tcase '9':\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private static boolean areNumbers(String s) {\n boolean isADigit = false;//only changed once everything has been checked\n //checks if places 0-2 are numbers and 3 is a \"-\"\n for(int i = 0; i < 3; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(3) == '-') {\n isADigit = true;\n }\n }\n //checks if places 4-5 are numbers and 6 is a \"-\"\n for(int i = 4; i < 6; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(6) == '-') {\n isADigit = true;\n }\n }\n //checks if places 7-10 are numbers\n for(int i = 7; i < 11; i++) {\n if(Character.isDigit(s.charAt(i))) {\n isADigit = true;\n }\n }\n return isADigit;\n }", "public static boolean isNumericRegex(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "@Test\n void checkIsFalseForStringWithNumbersAndOtherChars() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a3\"));\n assertFalse(IsNumeric.check(\"3l\"));\n assertFalse(IsNumeric.check(\"345L\"));\n assertFalse(IsNumeric.check(\"32b\"));\n assertFalse(IsNumeric.check(\"*3.2 \"));\n assertFalse(IsNumeric.check(\"/0.2\"));\n assertFalse(IsNumeric.check(\"0.28L\"));\n assertFalse(IsNumeric.check(\"0.28.\"));\n assertFalse(IsNumeric.check(\"3.2.4\"));\n assertFalse(IsNumeric.check(\"0x400\"));\n assertFalse(IsNumeric.check(\"0.24Dd\"));\n }", "private static final boolean isNumeric(final char formatChar, final int count) {\n\t\tint i = NUMERIC_FORMAT_CHARS.indexOf(formatChar);\n\t\treturn (i > 0 || (i == 0 && count < 3));\n\t}", "private boolean isNumber(String s) {\n\t\ttry {\n\t\t\tDouble.parseDouble(s);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static final boolean isDigit(char ch) {\n return ch >= '0' && ch <= '9';\n }", "public static boolean containsOnlyNumbers(String string) {\n\n\t\tboolean letterFound = false;\n\n\t\tfor (char ch : string.toCharArray()) {\n\t\t\tif (Character.isLetter(ch)) {\n\t\t\t\tletterFound = true;\n\t\t\t}\n\t\t\tif (letterFound) {\n\t\t\t\t//Si tenemos letras retornar false\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t//Si no se encuentran letras, retornar true\n\t\treturn true;\n\t}", "@Test\n void checkIsTrueForStringWithNumbers() {\n // Act, Assert\n assertTrue(IsNumeric.check(\"3\"));\n assertTrue(IsNumeric.check(\"0\"));\n assertTrue(IsNumeric.check(\"-0f\"));\n assertTrue(IsNumeric.check(\"3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F\"));\n assertTrue(IsNumeric.check(\"-3\"));\n assertTrue(IsNumeric.check(\"32f\"));\n assertTrue(IsNumeric.check(\"15D\"));\n assertTrue(IsNumeric.check(\"3.2\"));\n assertTrue(IsNumeric.check(\"0.2\"));\n assertTrue(IsNumeric.check(\"-0.28\"));\n assertTrue(IsNumeric.check(\"0.24D\"));\n assertTrue(IsNumeric.check(\"0.379d\"));\n }", "public static boolean isNumeric(String userInput) {\n return Pattern.matches(Constants.ID_VALIDATION, userInput);\n }", "private boolean isAlphaNumeric(char toCheck) {\n return isAlpha(toCheck) || isDigit(toCheck);\n }", "public static boolean isNumericInternational(String str)\n {\n try\n {\n double d = Double.parseDouble(str);\n }\n catch(NumberFormatException nfe)\n {\n return false;\n }\n return true;\n }", "public static boolean isNumber(String val){\n\t\t\n\t\tfor(int i=0;i<val.length();i++){\n\t\t\tif((val.charAt(i) >= '0' && val.charAt(i) <= '9') || (val.charAt(i) >= 'A' && val.charAt(i) <= 'F') || (val.charAt(i) >= 97 && val.charAt(i) <= 102)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Test\n void checkIsTrueForStringWithNumbersWithSpacesAtTheBeginningAndEnd() {\n // Act, Assert\n assertTrue(IsNumeric.check(\" 3\"));\n assertTrue(IsNumeric.check(\"32 \"));\n assertTrue(IsNumeric.check(\" 3.2 \"));\n assertTrue(IsNumeric.check(\" -0.2\"));\n assertTrue(IsNumeric.check(\" -0.2d\"));\n assertTrue(IsNumeric.check(\"0.24D \"));\n assertTrue(IsNumeric.check(\"0.28 \"));\n assertTrue(IsNumeric.check(\" 3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F \"));\n }", "public boolean isNumber(String str) {\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n\t}", "public static boolean isNumber(String input) {\n boolean hasDecimal = false;\n for (int i = 0; i < input.length(); i++) {\n char test = input.charAt(i);\n if (test == '-' && i == 0)\n continue; // Allow negative indicator.\n\n if (test == '.') {\n if (!hasDecimal) {\n hasDecimal = true;\n continue;\n } else {\n return false; // Multiple decimal = invalid number.\n }\n }\n\n if (!Character.isDigit(test))\n return false; // Character isn't a digit, so it can't be a number.\n }\n\n return true;\n }", "@Test\n public void isNumericNegetive() {\n Boolean bool = Utils.isNumeric(\"123a\");\n Assert.assertEquals(false, bool);\n }", "public static boolean isNumber(String text)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tInteger.parseInt(text);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException e)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private static boolean isNumber( char i ) {\n\t\tif ( Character.isDigit(i) ) return true; \n\t\tthrow new IllegalArgumentException(\"The weight of the route should be a number, now it's '\"+ i +\"'\");\n\t}", "@Test\n public void isNumeric() {\n assertTrue(Deadline.isNumeric(VALID_YEAR_2018));\n\n //contains other symbols -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SYMBOLS));\n\n //contains alphabets -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_ALPHABETS));\n\n //contains space -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SPACE));\n }", "public boolean isDigit(char ch) {\n\t\treturn Character.isDigit(ch);\n\t}", "private boolean isNumber( String test ) {\n\treturn test.matches(\"\\\\d+\");\n }", "private static boolean isNumeric(String str) {\n // The regular expression can match all numbers, including negative numbers\n Pattern pattern = Pattern.compile(\"-?[0-9]+(\\\\.[0-9]+)?\");\n String bigStr;\n try {\n bigStr = new BigDecimal(str).toString();\n } catch (Exception e) {\n return false;\n }\n // matcher是全匹配\n Matcher isNum = pattern.matcher(bigStr);\n return isNum.matches();\n }", "private boolean containsOnlyNumbers(String inputString)\r\n {\r\n inputString = inputString.trim();\r\n if (inputString.equals(null))\r\n return false;\r\n else\r\n for (int i = 0; i < inputString.length(); i++)\r\n if (!(inputString.charAt(i) >= '0' && inputString.charAt(i) <= '9'))\r\n return false;\r\n return true;\r\n }", "public static final boolean isNumber(String str) {\n\t\treturn isNumber(str,true);\n\t}", "public static boolean isNumber(String str){\n try {\n Integer.parseInt(str);\n } catch(NumberFormatException e) {\n return false;\n } catch(NullPointerException e) {\n return false;\n }\n return true;\n }", "public boolean isNumeric() {\n return this.isInteger() || this.isDecimal() || this.isDouble();\n }", "public static boolean isNumber(String text) {\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(text);\r\n\t\t} catch(NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private static boolean isAlphaNumeric(String s) {\n return s != null && s.matches(\"^[a-zA-Z0-9]*$\");\n }", "@Test\n void checkIsFalseForStringWithoutNumbers() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a\"));\n assertFalse(IsNumeric.check(\"ö\"));\n assertFalse(IsNumeric.check(\"\"));\n assertFalse(IsNumeric.check(\"´´´\"));\n assertFalse(IsNumeric.check(\"lgk\"));\n assertFalse(IsNumeric.check(\"lL y\"));\n assertFalse(IsNumeric.check(\" \"));\n assertFalse(IsNumeric.check(\"h* \"));\n assertFalse(IsNumeric.check(\"/+\"));\n assertFalse(IsNumeric.check(\"-\"));\n assertFalse(IsNumeric.check(\"+\"));\n assertFalse(IsNumeric.check(\"d\"));\n assertFalse(IsNumeric.check(\"ariel\"));\n assertFalse(IsNumeric.check(\"#€%/!\"));\n }", "public boolean isChar(String x) {\n\t\tfor (int i = 0; i < x.length(); i++) {\n\t\t\tchar c = x.charAt(i);\n\t\t\tif ((c == '-' || c == '+') && x.length() > 1)\n\t\t\t\tcontinue;\n\t\t\tif (((int) c > 64 && (int) c < 90) || ((int) c > 96 && (int) c < 123))\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isDigit(char c) {\r\n\r\n\t\tif ((c >= 48 && c <= 57)) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t}", "private static boolean isPrimitive(String value) {\n boolean status = true;\n value = value.trim();\n if (value.length() < 1) {\n return false;\n }\n for (int i = 0; i < value.length(); i++) {\n char c = value.charAt(i);\n if (!Character.isDigit(c)) {\n status = false;\n break;\n }\n }\n\n return status;\n }", "public static boolean isNumeric(String value) {\n // Procedimiento para monitorear e informar sobre la excepcion\n try {\n //Se realiza asignacion de dato numerico\n Float.parseFloat(value);\n return true;\n\n }\n //Mostrar mensaje de error\n catch(NumberFormatException e){\n JOptionPane.showMessageDialog(null,Constantes.TXT_Msg_Error,\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n\n return false;\n\n }\n\n }", "public boolean isNumber(String s)\r\n {\r\n if (s == null)\r\n {\r\n return false;\r\n }\r\n s = s.trim();\r\n ValidNumberStateMachine vnsm = new ValidNumberStateMachine(s);\r\n return vnsm.isValid();\r\n }", "public static boolean isNumber(String string) {\n\n\t\ttry {\n\t\t\tLong.parseLong(string);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\n\t}" ]
[ "0.7920341", "0.78430736", "0.7827761", "0.7800473", "0.779336", "0.7764758", "0.7753675", "0.7752626", "0.7699976", "0.76880217", "0.76728207", "0.7665167", "0.7662645", "0.7659837", "0.7657539", "0.7627016", "0.76140654", "0.76098216", "0.7598105", "0.7593033", "0.75882685", "0.7580702", "0.7580551", "0.75627995", "0.75476676", "0.7539125", "0.7527623", "0.75269115", "0.7525368", "0.75170636", "0.75076604", "0.75066924", "0.74908966", "0.7481211", "0.74805707", "0.7473249", "0.74709874", "0.7468364", "0.74572265", "0.74531305", "0.7425854", "0.7414617", "0.7389466", "0.7356385", "0.73474604", "0.73111814", "0.73070705", "0.72758496", "0.72405285", "0.7228503", "0.7226175", "0.7203692", "0.72015387", "0.71982956", "0.71264565", "0.7098298", "0.70878136", "0.7087693", "0.70837575", "0.70802075", "0.70520633", "0.7040237", "0.7038985", "0.70325446", "0.70152533", "0.6980146", "0.6957755", "0.6953415", "0.6936263", "0.6931467", "0.69171953", "0.69114834", "0.69108707", "0.68876135", "0.6884581", "0.68709606", "0.68644696", "0.6858896", "0.68353355", "0.6833619", "0.683227", "0.6831387", "0.68222034", "0.6812836", "0.6811408", "0.6801422", "0.67953104", "0.67784226", "0.67757225", "0.67586136", "0.675465", "0.675186", "0.67374283", "0.6734437", "0.67188424", "0.6712829", "0.6708762", "0.6696717", "0.6687295", "0.6661558" ]
0.7562788
24
Remplace le score actuel par un nouveau score.
public void setScore(String s, int i){ this.nom = (s.equals("") ? "Anonyme" : s); this.temps = i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void newScore()\n {\n score.clear();\n }", "public void effacerScore() {\r\n\t\tthis.meilleursScores = new MeilleursScores();\r\n\t\tthis.notifyObservateur();\r\n\t}", "public ScoreReduction (Score score)\r\n {\r\n this.score = score;\r\n\r\n for (TreeNode pn : score.getPages()) {\r\n Page page = (Page) pn;\r\n pages.put(page.getIndex(), page);\r\n }\r\n }", "public void deleteScore() {\n\t\tthis.score = 0;\n\t}", "void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }", "public void setScore(int newScore){\n\t\tthis.score = newScore;\n\t}", "void decreaseScore(){\n\t\tcurrentScore = currentScore - 10;\n\t\tcom.triviagame.Trivia_Game.finalScore = currentScore;\n\t}", "public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}", "public void setScore(int score) { this.score = score; }", "public void addToScore(int score)\n {\n this.score += score;\n }", "public void addScore()\n {\n score += 1;\n }", "public void addOneToScore() {\r\n score++;\r\n }", "public void addScore(int score);", "public void setScore (int newScore)\n {\n this.score = newScore;\n }", "public void resetScore() {\n\t\tthis.score = 0;\n\t}", "public void setScore(int score) {this.score = score;}", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score)\n {\n this.score = score;\n }", "public static void incrementScore() {\n\t\tscore++;\n\t}", "public void setScore(int score) {\r\n this.score = score;\r\n }", "public void setScore(int score) {\r\n this.score = score;\r\n }", "public synchronized void setScore(Integer score) {\n this.score += score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void addScore(Double score) {\n this.scoreList.add(score);\n // each time a new score is added, sort it\n Collections.sort(scoreList, Collections.reverseOrder());\n }", "public void addScore(int score) {\n currentScore += score;\n }", "public void setScore(Float score) {\n this.score = score;\n }", "public void setScore(double score) {\r\n this.score = score;\r\n }", "public void setScore(int score)\n\t{\n\t\tthis.score=score;\n\t}", "public void addScore(Pair<String, Integer> score) {\n if (!this.list.isPresent()) {\n this.readScores();\n }\n final List<Pair<String, Integer>> list = this.list.get();\n list.add(score);\n this.sortScores(list);\n this.cutScores(list);\n this.list = Optional.of(list);\n\n this.toSave = true;\n }", "private void updateScore() {\n\t\tscoreString.updateString(Integer.toString(score));\n\t}", "public void setScore(Double score) {\n this.score = score;\n }", "public void setScore(int score){\n\t\tthis.score = score;\n\t}", "void setScore(long score);", "public void setScore(Score score) {\n scoreProperty.set(score.packed());\n }", "public void setScore(float score) {\n this.score = score;\n }", "public void changeScore(String score) {\n typeScore(score);\n saveChanges();\n }", "@Override\n\tpublic int updateScore(int score) {\n\t\t\n\t\t// decrease the score by this amount:\n\t\tscore -= 50;\n\t\t\n\t\treturn score;\n\t}", "public void resetScore();", "public void setScore(int score) {\n\t\tthis.score = score;\n\t}", "public void setScore(Integer score) {\n this.score = score;\n }", "public void setScore(Integer score) {\r\n this.score = score;\r\n }", "public Scores(int score) {\r\n this.score = score;\r\n }", "public void setScore(int score) {\r\n\t\tif(score >=0) {\r\n\t\t\tthis.score = score;\r\n\t\t}\r\n\t\t\r\n\t}", "public void setScore(String score) {\n this.score = score;\n setChanged();\n notifyObservers();\n }", "public Calificacion updateScore(Calificacion score) {\n if (score.getId() != null) {\n Optional<Calificacion> oCalificacion = calificacionRepositorio.getCalificacionPorId(score.getId());\n // Comprobamos que nuestro objeto exista en la base de datos para poder actualizarlo\n if (!oCalificacion.isEmpty()) {\n // Comprobamos cada atributo para saber si es vacio, en caso de no serlo lo actualizamos\n if (score.getScore() != null) {\n oCalificacion.get().setScore(score.getScore());\n }\n if (score.getText() != null) {\n oCalificacion.get().setText(score.getText());\n }\n if (score.getReservation() != null) {\n oCalificacion.get().setReservation(score.getReservation());\n }\n // Actualizamos la informacion\n calificacionRepositorio.guardarCalificacion(oCalificacion.get());\n return oCalificacion.get();\n } else {\n return score;\n }\n } else {\n return score;\n }\n }", "public void addScore(String name, int score) {\n loadScoreFile();\n scores.add(new Score(name, score));\n updateScoreFile();\n }", "public void updateScore() {\n\t\tif (pellet.overlapsWith(avatar)) {\n\t\t\tavatar.addScore(1);\n\t\t\tpellet.removePellet(avatar.getLocation());\n\t\t\tSystem.out.println(\"collected pellet\");\n\t\t}\n\t}", "public void setScore (java.lang.Integer score) {\r\n\t\tthis.score = score;\r\n\t}", "@Override\n\tpublic void update() {\n\t\tif(isSaveScore()){\n\t\t\tsaveScore();\n\t\t\tmanager.reconstruct();\n\t\t}\n\t\tmanager.move();\n\t}", "@Override\n\tpublic void saveScore() {\n\t\t\n\t}", "public void calcScore(int score) {\r\n\t\tif (initFinish)\r\n\t\t\tthis.score += score * this.multy;\r\n\t\t// TODO delete\r\n//\t\tSystem.out.println(\"score: \" + this.score + \"multy: \" + this.multy);\r\n\t}", "@Override\n public void setScore(int score) throws IllegalStateException {\n objective.checkValid();\n this.score = score;\n objective.getScoreboard()\n .broadcast(new ScoreboardScoreMessage(entry, objective.getName(), score));\n }", "@Override\n public void passScore(int score) {\n this.score = score;\n scoreFragment.setData(score);\n }", "@Override\n\tpublic void saveScore() {\n\n\t}", "public void increaseScore(final int score) {\n setChanged();\n notifyObservers(new Pair<>(\"increaseScore\", score));\n }", "private void setScore(String score) {\r\n this.score = score;\r\n }", "public void resetScore(){\n Set<String> keys = CalcScore.keySet();\n for(String key: keys){\n CalcScore.replace(key,0.0);\n }\n\n\n\n }", "public void incrementScore(int scoreToAdd) {\n this.score += scoreToAdd;\n }", "public void setScore(int paScore) {\n this.score = paScore;\n }", "public void setScore(int pointsToAdd) {\n\n\t\t//Add the additional points to the existing score\n\t\tthis.score = this.score + pointsToAdd;\n\t}", "public void setScore(String score) {\n\t\tthis.score = score;\n\t}", "public synchronized void resetScore() {\n score = 0;\n char2Type = -1;\n setScore();\n }", "public void addScore(int s) {\n setScore(getScore() + s);\n }", "public Score() {\n this.date = new Date();\n this.name = null;\n this.score = 0;\n }", "public void setScore(float value) {\n this.score = value;\n }", "public void setScore (java.lang.Float score) {\n\t\tthis.score = score;\n\t}", "private void updateHighscore() {\n if(getScore() > highscore)\n highscore = getScore();\n }", "protected void addScoreToLeaderboard() {\n\n\t\tif (onlineLeaderboard) {\n\t\t jsonFunctions = new JSONFunctions();\n\t\t jsonFunctions.setUploadScore(score);\n\t\t \n\t\t Handler handler = new Handler() {\n\t\t\t @Override\n\t\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\t @SuppressWarnings(\"unchecked\")\n\t\t\t\t ArrayList<Score> s = (ArrayList<Score>) msg.obj;\n\t\t\t\t globalScores = helper.sortScores(s);\n\t\t\t }\n\t\t };\n\t\t \n\t\t jsonFunctions.setHandler(handler);\n\t\t jsonFunctions\n\t\t\t .execute(\"http://brockcoscbrickbreakerleaderboard.web44.net/\");\n\t\t}\n\t\tsaveHighScore();\n }", "protected double newCompundScore(double score, double score2) {\n return score + score2;\n }", "public void updateScore(int score){ bot.updateScore(score); }", "public void increaseScore(){\n this.inc.seekTo(0);\n this.inc.start();\n this.currentScore++;\n }", "public void addHighScore(String name, int score){\r\n // TODO: If the provided score is greater than the lowest high score,\r\n // TODO: then replace the lowest score with the new score and then\r\n // TODO: call the sortScores() method.\r\n \t\r\n \t\tscores[Settings.numScores-1]=score;\r\n \t\tnames[Settings.numScores-1]=name;\r\n \t\tsortScores();\r\n \t\t\r\n }", "public Score(){\n\t\tscore = 0;\n\t\tincrement = 0; //how many points for eating a kibble. Changed to zero here because adjustScoreIncrement's extra points begin at 1 anyway\n\t}", "public void decreaseScore(int p_96646_1_) {\n/* 51 */ if (this.theScoreObjective.getCriteria().isReadOnly())\n/* */ {\n/* 53 */ throw new IllegalStateException(\"Cannot modify read-only score\");\n/* */ }\n/* */ \n/* */ \n/* 57 */ setScorePoints(getScorePoints() - p_96646_1_);\n/* */ }", "public void score() {\n\t\tif (Integer.parseInt(px.getPosition()) != Integer.parseInt(getCurrentPositionX()))\n\t\t{\n\t\t\tpx.addObserver(Obsx);\n\t\t\tpx.setPosition(getCurrentPositionX());\n\t\t}\n\t\tif (Integer.parseInt(py.getPosition()) != Integer.parseInt(getCurrentPositionY()))\n\t\t{\n\t\t\tpy.addObserver(Obsy);\n\t\t\tpy.setPosition(getCurrentPositionY());\n\t\t}\n\t}", "public ArrayList<Double> updateScores(int score){\n this.students.sort(Comparator.comparingDouble(Student::getScore).reversed());\n ArrayList<Double> scores = new ArrayList<>();\n for (Student s:this.students) {\n if(!s.getPlayer().getComponent(PlayerComponent.class).isDead()) s.setScore(s.getScore() + score);\n if (s.getScore() > this.globalBest) this.globalBest = s.getScore();\n scores.add(s.getScore());\n }\n return scores;\n }", "public void reset()\n {\n currentScore = 0;\n }", "public void add_to_score(int num){\n score+=num;\n }", "public void addScore(int score, String name){\n for(int i = 0; i < topScores.size(); i++) {\n if(score >= topScores.get(i)){\n topScores.add(i, score);\n topScores.remove(topScores.size()-1);\n if(name.isEmpty()){\n topName.add(i, \"Anonymous\");\n topName.remove(topName.size()-1);\n }else {\n topName.add(i, name);\n topName.remove(topName.size() - 1);\n }\n return;\n }\n }\n }", "void setScoreValue(int scoreValue);", "public void decrementTotalScore(){\n totalScore -= 1;\n }", "public Builder clearScore() {\n \n score_ = 0L;\n onChanged();\n return this;\n }", "public Builder clearScore() {\n \n score_ = 0L;\n onChanged();\n return this;\n }", "public void setScore(Short score) {\n this.score = score;\n }", "public void resetScore() {\n this.myCurrentScoreInt = 0;\n this.myScoreLabel.setText(Integer.toString(this.myCurrentScoreInt));\n }", "public void updateScore(){\n scoreChange++;\n if(scoreChange % 2 == 0){\n if(score_val < 999999999)\n score_val += 1;\n if(score_val > 999999999)\n score_val = 999999999;\n score.setText(\"Score:\" + String.format(\"%09d\", score_val));\n if(scoreChange == 10000)\n scoreChange = 0;\n }\n }", "public void countScore(int score)\n {\n scoreCounter.add(score);\n }", "public void reset() {\n\t\tscore = 0;\n\t}", "public void saveInitialScoretoDatabase_PlantesFerryGame(int score) {\n\t\tsaveInitialScoretoDatabase(score, PlantesFerryID);\n\t}", "public void setNewScore(String player, int score) {\n\t\t\n\t}", "private void notateScore() {\r\n View.notate(score, this.getSize().width + 15, 0);\r\n }", "public ScoreManager() {\n\t\tscore = 0;\n\t}", "void addGameScoreToMainScore(){\n sharedPreferences= PreferenceManager.getDefaultSharedPreferences(this);\n editor=sharedPreferences.edit();\n int score=sharedPreferences.getInt(\"gameScore\",0);\n score=score+userCoins;\n editor.putInt(\"gameScore\",score);\n editor.commit();\n\n }", "public void addTestScore(int score){\n test_score.add(test_count,score);\n test_count++;\n }", "public void addReview(double score){\n totalReviews++;\n totalScore += score;\n }", "public void newGame() {\n\t\tplayer1Score = 0;\r\n\t\tplayer2Score = 0;\r\n\t\tif (score != null) {\r\n\t\t\tdrawScore();\r\n\t\t}\r\n\t\treset();\r\n\t}", "public void updateScore()\n {\n nextPipe = pipes.get(score);\n if(CHARACTER_X > nextPipe.getPipeCapX() + 35)\n {\n score++;\n }\n if(score > highScore)\n {\n highScore = score;\n }\n }", "public void setScore(java.lang.Integer value);" ]
[ "0.7796174", "0.75685734", "0.71432734", "0.7070254", "0.69770503", "0.69129676", "0.688983", "0.68383926", "0.6824029", "0.68204874", "0.677521", "0.6755942", "0.67399484", "0.67387736", "0.67295057", "0.6695155", "0.6678543", "0.66604835", "0.66568655", "0.66529596", "0.66529596", "0.6652437", "0.6646683", "0.6646683", "0.6646683", "0.6646683", "0.66317886", "0.66185874", "0.66148233", "0.66049814", "0.6603227", "0.66005987", "0.6600199", "0.6596718", "0.65901184", "0.65750045", "0.6559767", "0.65503335", "0.6534121", "0.6515453", "0.6515362", "0.6514073", "0.6510897", "0.6500005", "0.6491308", "0.6464478", "0.64067775", "0.64038837", "0.6394824", "0.6368473", "0.63668084", "0.6353724", "0.6337992", "0.63272107", "0.6324801", "0.6324254", "0.6320206", "0.6313378", "0.62991387", "0.628775", "0.626588", "0.6251424", "0.6248218", "0.6243948", "0.621842", "0.62146837", "0.6206922", "0.62055206", "0.62005955", "0.61705166", "0.6169184", "0.61386764", "0.61382824", "0.613825", "0.61338395", "0.61331683", "0.6129924", "0.6115282", "0.61104715", "0.61051154", "0.61021304", "0.6099247", "0.6098138", "0.60853076", "0.60583687", "0.60583687", "0.6051044", "0.6050799", "0.60439676", "0.6038544", "0.60349864", "0.6033667", "0.6027218", "0.6009444", "0.6001498", "0.5999091", "0.599488", "0.5990374", "0.5989829", "0.59833264", "0.59813374" ]
0.0
-1
method for building a galaxy from json.
private static ArrayList<Galaxy> createGalaxies() { ArrayList<Galaxy> galaxies = new ArrayList<>(); try { String bareJSON = new String(Files.readAllBytes(Paths.get("Galaxies.json"))); JSONArray jarray = new JSONArray(bareJSON); for(int i = 0; i<jarray.length(); i++) { JSONObject JSONgalaxy = jarray.getJSONObject(i); //System.out.println("Galaxyname = " + JSONgalaxy.getString("galaxy").charAt(0)); Galaxy galaxy = new Galaxy(JSONgalaxy.getString("galaxy").charAt(0)); galaxies.add(galaxy); JSONArray stars = JSONgalaxy.getJSONArray("stars"); for (int y = 0; y<stars.length(); y++) { int number = y+1; char colour = stars.getJSONObject(y).getString("colour").charAt(0); galaxy.addStar(new Star(colour, number, galaxy)); } setStarNeighbours(galaxy, stars); } setGalaxyNeighbours(galaxies, jarray); } catch (FileNotFoundException fnf) { System.out.println("File not found"); } catch (IOException ieo) { System.out.println("Could not read file."); } return galaxies; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createDefaultGalaxy(){\n milkyWay.setGalaxyColonies(37579321);\n milkyWay.setGalaxyPopulation(1967387132);\n milkyWay.setGalaxyFleets(237);\n milkyWay.setGalaxyStarships(34769);\n }", "protected abstract JSONObject build();", "public native Object parse( Object json, String texturePath );", "Gist deserializeGistFromJson(String json);", "List<Gist> deserializeGistsFromJson(String json);", "public static List<GalacticCharacter> extractGalacticCharactersFromJson(String jsonString) {\n List<GalacticCharacter> galacticCharacters = new ArrayList<>();\n\n try {\n JSONArray galacticCharacterArray = new JSONArray(jsonString);\n\n for (int i = 0; i < galacticCharacterArray.length(); i++){\n JSONObject currentGalacticCharacter = galacticCharacterArray.getJSONObject(i);\n\n int id = currentGalacticCharacter.getInt(\"id\");\n String name = currentGalacticCharacter.getString(\"name\");\n ArrayList<String> shipsType = new ArrayList<>();\n\n JSONArray shipsTypeJsonArray = currentGalacticCharacter.getJSONArray(\"shipsType\");\n\n for (int j = 0; j < shipsTypeJsonArray.length(); j++) {\n String singleShipType = shipsTypeJsonArray.getString(j);\n shipsType.add(singleShipType);\n }\n\n GalacticCharacter galacticCharacter = new GalacticCharacter(id, name, shipsType);\n galacticCharacters.add(galacticCharacter);\n }\n\n } catch (JSONException e) {\n System.out.println(\"Problem parsing the character JSON results\");\n }\n return galacticCharacters;\n }", "public InitialData(String jsonString)\n {\n //convert JSON to GSON\n JsonObject jsonObject = new JsonParser().parse(jsonString.trim()).getAsJsonObject();\n JsonObject packet = jsonObject.getAsJsonObject(\"packet\");\n \n //convert GSON to this object\n this.agentsName = packet.get(\"agentsName\").getAsString();\n this.placesName = packet.get(\"placesName\").getAsString();\n this.placesX = packet.get(\"placesX\").getAsInt();\n this.placesY = packet.get(\"placesY\").getAsInt();\n this.numberOfPlaces = packet.get(\"numberOfPlaces\").getAsInt();\n this.numberOfAgents = packet.get(\"numberOfAgents\").getAsInt();\n this.placesX = packet.get(\"placesX\").getAsInt();\n this.placeOverloadsSetDebugData = packet.get(\"placeOverloadsSetDebugData\").getAsBoolean();\n this.placeOverloadsGetDebugData = packet.get(\"placeOverloadsGetDebugData\").getAsBoolean();\n this.agentOverloadsSetDebugData = packet.get(\"agentOverloadsSetDebugData\").getAsBoolean();\n this.agentOverloadsGetDebugData = packet.get(\"agentOverloadsGetDebugData\").getAsBoolean();\n \n //get object type of overloaded debug data for agents and places, must extend Number\n String pDataType = packet.get(\"placeDataType\").getAsString();\n String aDataType = packet.get(\"agentDataType\").getAsString();\n \n if(pDataType.trim().isEmpty())\n {\n this.placeDataType = null;\n }\n else\n {\n try \n {\n placeDataType = (Class<? extends Number>) Class.forName(\"java.lang.\" + pDataType);\n } \n catch (ClassNotFoundException | ClassCastException ex) \n {\n System.out.println(\"No such class: \" + pDataType);\n this.placeDataType = null;\n }\n }\n \n if(aDataType.trim().isEmpty())\n {\n this.agentDataType = null;\n }\n else\n {\n try \n {\n agentDataType = (Class<? extends Number>) Class.forName(\"java.lang.\" + pDataType);\n } \n catch (ClassNotFoundException | ClassCastException ex) \n {\n System.out.println(\"No such class: \" + aDataType);\n this.agentDataType = null;\n }\n }\n \n }", "private void initialiseFromJson(){\n try {\n\t\t\t// The type adapter is only needed if you have a CharSequence in your model. If you're just using strings\n \t// you can just use Gson gson = new Gson();\n Gson gson = new GsonBuilder().registerTypeAdapter(CharSequence.class, new CharSequenceDeserializer()).create();\n Reader reader = new InputStreamReader(getAssets().open(VARIANTS_FILE));\n BaseVariants baseVariants = gson.fromJson(reader, BaseVariants.class);\n Neanderthal.initialise(this, baseVariants.variants, baseVariants.defaultVariant);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static Game createGameFromJSON(String json) {\n JSONObject gameJSONObject = new JSONObject(json);\n List<String> agents = parseAgents(gameJSONObject);\n String[][] actions = parseActions(gameJSONObject);\n int[][][] values = parseValues(gameJSONObject);\n\n return new Game(agents, actions, values);\n }", "public abstract void fromJson(JSONObject jsonObject);", "public static List<Ship> extractShipsFromJson(String jsonString) {\n List<Ship> ships = new ArrayList<>();\n\n try {\n JSONArray shipsArray = new JSONArray(jsonString);\n\n for (int i = 0; i < shipsArray.length(); i++){\n JSONObject currentShip = shipsArray.getJSONObject(i);\n\n\n int id = currentShip.getInt(\"id\");\n String name = currentShip.getString(\"name\");\n int speed = currentShip.getInt(\"speed\");\n String type = currentShip.getString(\"type\");\n int maxCargoWeight = currentShip.getInt(\"maxCargoWeight\");\n\n Ship ship = new Ship(id, name, speed, type, maxCargoWeight);\n ships.add(ship);\n }\n\n } catch (JSONException e) {\n System.out.println(\"Problem parsing the character JSON results\");\n }\n return ships;\n }", "private void getAllBuildings(JSONArray myjsonArray) {\r\n try {\r\n for(int j=0; j<myjsonArray.length(); j++) {\r\n JSONObject o = myjsonArray.getJSONObject(j);\r\n Build b = new Build(o.getString(\"description\"),Double.parseDouble(o.getString(\"latitude\")),\r\n Double.parseDouble( o.getString(\"longitude\")), o.getString(\"name\"));\r\n allBuildings_.add(b);\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic static<T> T createObjectFromJSON(final JSONObject json) throws JSONException {\n\t\tif(json.has(\"type\")) {\n\t\t\treturn (T) Helper.createItemFromJSON(json);\n\t\t} else if(json.has(\"triple_pattern\")) {\n\t\t\treturn (T) Helper.createTriplePatternFromJSON(json);\n\t\t} else if(json.has(\"histogram\")) {\n\t\t\treturn (T) Helper.createVarBucketFromJSON(json);\n\t\t} else {\n\t\t\tSystem.err.println(\"lupos.distributed.operator.format.Helper.createObjectFromJSON(...): Unknown type stored in JSON object, returning null!\");\n\t\t\treturn null;\n\t\t}\n\t}", "protected abstract Object buildJsonObject(R response);", "public final native JSONLoaderObject parse(JavaScriptObject json,String texturePath)/*-{\r\n\treturn this.parse(json,texturePath);\r\n\t}-*/;", "public void fromJSON(String json) throws JSONException;", "public Model(JSONObject selfAsJson) {\n try {\n int width = selfAsJson.getInt(\"width\") / PlayGameActivity.PIXELS_PER_PHYSICS_GRID;\n int height = selfAsJson.getInt(\"height\") / PlayGameActivity.PIXELS_PER_PHYSICS_GRID;\n this.physModel = new Physics2D(selfAsJson.getJSONObject(\"physics\"), width, height);\n this.graphModel = new Graphics2D(selfAsJson.getJSONObject(\"graphics\"));\n this.gameStateModel = new GameState(selfAsJson.getJSONObject(\"gamestate\"));\n }catch(JSONException e) {\n e.printStackTrace();\n }\n\n }", "public Dungeon load() {\n int width = json.getInt(\"width\");\n int height = json.getInt(\"height\");\n\n Dungeon dungeon = new Dungeon(width, height);\n\n JSONArray jsonEntities = json.getJSONArray(\"entities\");\n Map<String, List<Entity>> entitiesMap = loadEntities(dungeon, jsonEntities);\n\n // Only try and greate a goal condition if it is specified in json.\n if (json.has(\"goal-condition\")) {\n JSONObject goals = json.getJSONObject(\"goal-condition\");\n Goal mainGoal = loadGoals(entitiesMap, dungeon, goals);\n dungeon.setMainGoal(mainGoal);\n }\n\n return dungeon;\n }", "public JSONLoader() {}", "public void generateVehicles(JSONObject resp) throws JSONException {\n birds = new ArrayList<Vehicle>();\n JSONArray items = resp.getJSONArray(\"birds\");\n double lat = 0;\n double lng = 0;\n String id = \"\";\n int bat = 0;\n System.out.println(items.toString());\n System.out.println(\"parsing.....\");\n for(int i=0;i<items.length();++i){\n JSONObject current = (JSONObject) items.get(i);\n //Vehicle(String vendor,String id, int battery, double lat, double lng, double startPrice, double minutePrice)\n //birds.add(new Vehicle(\"bird\",items.get(i).getString(\"id\");\n if(current.getString(\"captive\").equals(\"false\")) {\n JSONObject loc = current.getJSONObject(\"location\");\n lat = loc.getDouble(\"latitude\");\n lng = loc.getDouble(\"longitude\");\n bat = Integer.parseInt(current.getString(\"battery_level\"));\n id = current.getString(\"id\");\n\n Vehicle veh = new Vehicle(\"bird\",id,bat,lat,lng,\"$1 to unlock $0.27 / 1 min\");\n veh.setType(\"scooter\");\n System.out.print(veh);\n\n birds.add(veh);\n }\n }\n/* for(int i=0;i<birds.size();++i){\n System.out.println(birds.get(i));\n }\n */\n\n }", "@Override\n public void parse(String json) {\n JSONObject object = new JSONObject(json);\n id = object.getInt(\"dataset id\");\n name = object.getString(\"dataset name\");\n maxNumOfLabels = object.getInt(\"maximum number of labels per instance\");\n\n JSONArray labelsJSON = object.getJSONArray(\"class labels\");\n labels = new ArrayList<>();\n for (int i = 0; i < labelsJSON.length(); i++) {\n labels.add(new Label(labelsJSON.getJSONObject(i).toString()));\n }\n\n JSONArray instancesJSON = object.getJSONArray(\"instances\");\n instances = new ArrayList<>();\n for (int i = 0; i < instancesJSON.length(); i++) {\n instances.add(new Instance(instancesJSON.getJSONObject(i).toString()));\n }\n }", "public Info(String json) {\n super(json);\n }", "public MinecraftJson() {\n }", "private static void constructGson() {\n\t\tGsonBuilder builder = new GsonBuilder();\n\t\tbuilder.registerTypeAdapter(Bitmap.class, new BitmapJsonConverter());\n\t\tgson = builder.create();\n\t}", "private static void parseGymObject(JSONObject gym, List<Gym> gyms) {\n\t\tJSONObject gymObject = (JSONObject) gym.get(\"gym\");\r\n\r\n\t\tlong id = Long.parseLong((String) gymObject.get(\"id\"));\r\n\t\tString name = (String) gymObject.get(\"name\");\r\n\t\tString url = (String) gymObject.get(\"url\");\r\n\t\tString email = (String) gymObject.get(\"email\");\r\n\t\tString zeiten = (String) gymObject.get(\"zeiten\");\r\n\t\tString adresse = (String) gymObject.get(\"adresse\");\r\n\t\tString bewertung = (String) gymObject.get(\"bewertung\");\r\n\t\tString preis = (String) gymObject.get(\"preis\");\r\n\t\tlong scrapeZeiten = Long.parseLong((String) gymObject.get(\"scrapeZeiten\"));\r\n\t\tlong scrapePreis = Long.parseLong((String) gymObject.get(\"scrapePreis\"));\r\n\t\tlong scrapeAdresse = Long.parseLong((String) gymObject.get(\"scrapeAdresse\"));\r\n\t\tlong scrapeEmail = Long.parseLong((String) gymObject.get(\"scrapeEmail\"));\r\n\t\tTimestamp timestamp = Timestamp.valueOf((String) gymObject.get(\"timestamp\"));\r\n\t\tString status = (String) gymObject.get(\"status\");\r\n\r\n\t\t// add new Gym\r\n\t\tgyms.add(new Gym(id, name, url, email, zeiten, preis, adresse, bewertung, scrapeZeiten, scrapePreis,\r\n\t\t\t\tscrapeAdresse, scrapeEmail, timestamp, status));\r\n\t\t\r\n\r\n\t}", "private Earthquake parseJSON(JSONObject o){\n String country, place, id;\r\n double magnitude, lat, lng, depth;\r\n long time_long, updated_long;\r\n id = o.optString(\"id\");\r\n JSONObject prop = o.getJSONObject(\"properties\");\r\n place = prop.optString(\"place\");\r\n country = place.substring(place.lastIndexOf(\",\"), (place.length()-1)); \r\n magnitude = prop.optDouble(\"mag\");\r\n time_long=o.optLong(\"time\");\r\n updated_long=o.optLong(\"updated\");\r\n \r\n \r\n JSONObject geometry = o.getJSONObject(\"geometry\");\r\n JSONArray coor = geometry.getJSONArray(\"coordinates\");\r\n lng=coor.optDouble(0);\r\n lat=coor.optDouble(0);\r\n depth=coor.optDouble(0);\r\n \r\n //storing the earthquake data to the ontology\r\n return new Earthquake(id, place, magnitude, lng, lat, depth);\r\n }", "public JSONModel(final String json) throws JSONException {\n jo = new JSONObject(json);\n }", "public ModelWithTwoGalaxies(int width, int height,double G,double theta,double dt){\n super(width,height,G,theta,dt);\n\n\n\n Galaxy galaxy1 = new Galaxy(new Vector(width/4,height/3),new Vector(-100,0),height/4,5000,1000, Color.CYAN,-1);\n Galaxy galaxy2 = new Galaxy(new Vector(3*width/4,2*height/3),new Vector(100,0),height/4,5000,1000, Color.ORANGE,1);\n this.particles.addAll(galaxy1.getParticles());\n this.particles.addAll(galaxy2.getParticles());\n\n System.out.println(galaxy1.toString());\n System.out.println(galaxy2.toString());\n\n }", "public static LevelPack fromJson(String json) {\n\t\treturn Serializer.deserializeLevelPack(json);\n\t}", "public static List<Planet> extractPlanetFromJson(String jsonString) {\n List<Planet> planets = new ArrayList<>();\n\n try {\n JSONArray planetsArray = new JSONArray(jsonString);\n\n for (int i = 0; i < planetsArray.length(); i++){\n JSONObject currentPlanet = planetsArray.getJSONObject(i);\n\n\n int id = currentPlanet.getInt(\"id\");\n String name = currentPlanet.getString(\"name\");\n int distance = currentPlanet.getInt(\"distance\");\n\n Planet planet = new Planet(id, name, distance);\n planets.add(planet);\n }\n\n } catch (JSONException e) {\n System.out.println(\"Problem parsing the character JSON results\");\n }\n return planets;\n }", "public static Combat loadFromJSON (String name) {\n\n FileHandle file = Gdx.files.internal(\"core/assets/combats/\"+name+\".txt\");\n String jsonData = file.readString();\n\n //create ObjectMapper instance\n ObjectMapper objectMapper = new ObjectMapper();\n\n Combat emp = new Combat();\n\n try {\n\n emp = objectMapper.readValue(jsonData, Combat.class);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //Important step, link characters with the map\n /*\n for (Character c: emp.characters) {\n c.setCell(emp.map.getCell(c.getRow(),c.getColumn()));\n }\n */\n\n emp.initCharacterPositions();\n\n return emp;\n\n }", "public static Sandwich parseSandwichJson(String json) {\n\n try {\n JSONObject jsonObj = new JSONObject(json);\n JSONObject name = jsonObj.getJSONObject(\"name\");\n mainName = name.getString(\"mainName\");\n alsoKnownAs = new ArrayList<>(addToList(name.getJSONArray(\"alsoKnownAs\")));\n // https://stackoverflow.com/questions/13790726/the-difference-between-getstring-and-optstring-in-json/13790789#13790789\n placeOfOrigin = jsonObj.optString(\"placeOfOrigin\");\n description = jsonObj.optString(\"description\");\n image = jsonObj.optString(\"image\");\n ingredients = new ArrayList<>(addToList(jsonObj.getJSONArray(\"ingredients\")));\n\n } catch (JSONException e) {\n Log.e(TAG, e.getMessage());\n\n }\n return new Sandwich(mainName, alsoKnownAs, placeOfOrigin, description, image, ingredients);\n }", "@Override\n\tpublic Dog deserialize(JsonElement json, Type typeOfT,\n\t\t\tJsonDeserializationContext context) throws JsonParseException {\n\t\tJsonObject obj = json.getAsJsonObject();\n\t\tJsonPrimitive name = (JsonPrimitive) obj.get(\"name\");\n\t\tJsonPrimitive ferocity = (JsonPrimitive) obj.get(\"ferocity\");\n\t\treturn Dog.create(name.getAsString(), ferocity.getAsInt());\n\t}", "public ClientModel modelFromJSON(JSONObject newModelJSON) throws JsonSyntaxException {\n\n //Break up ClientModel pieces and build a new ClientModel object manually:\n//GET MAP\n JSONObject newMapJSON = newModelJSON.getJSONObject(\"map\");\n\n //GET RADIUS\n int newCMRadius = newMapJSON.getInt(\"radius\");\n\n//GET HEXES\n JSONArray newHexesJSONArr = newMapJSON.getJSONArray(\"hexes\");\n HashMap<HexLocation, Hex> newHexesMap = parseHexesFromJSON(newHexesJSONArr);\n //HashMap<Hexes> complete! Ready to add to Map obj.\n\n//GET PORTS\n JSONArray newPortsJSONArr = newMapJSON.getJSONArray(\"ports\");\n HashMap<HexLocation, Port> newPortsMap = parsePortsFromJSON(newPortsJSONArr);\n //HashMap<Ports> complete! Ready to add to Map obj.\n\n//GET ROADS\n JSONArray newRoadsJSONArr = newMapJSON.getJSONArray(\"roads\");\n HashMap<EdgeLocation, EdgeValue> newRoadsMap = parseRoadsFromJSON(newRoadsJSONArr);\n //HashMap<Roads> complete! Ready to add to Map obj.\n\n//GET SETTLEMENTS AND CITIES\n JSONArray newStlmtsJSONArr = newMapJSON.getJSONArray(\"settlements\");\n JSONArray newCitiesJSONArr = newMapJSON.getJSONArray(\"cities\");\n\n //THIS HASHMAP HOLDS BOTH CITIES *AND* SETTLEMENTS!! **********\n HashMap<VertexLocation, VertexObject> newCitiesStlmtsMap = parseCitiesAndStlmtsFromJSON(newStlmtsJSONArr, newCitiesJSONArr);\n\n //Settlements/Cities Hashmap<> complete! Ready to add to new Map obj.\n\n//GET ROBBER\n //it's just a HexLocation, but the Robber obj type needs a reference to the Map...?\n //maybe add this Robber obj to the Map after the rest of it has been built up\n JSONObject newRobberJSON = newMapJSON.getJSONObject(\"robber\");\n String newRobberJSONString = newRobberJSON.toString();\n //System.out.println(\"newRobberJSON= \" + newRobberJSON);\n int rX = newRobberJSON.getInt(\"x\");\n int rY = newRobberJSON.getInt(\"y\");\n HexLocation newRobberHexLoc = new HexLocation(rX, rY);\n //try building the actual Robber object after building the Map object,\n\n//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n//BUILD NEW MAP OBJECT\n Map newCMMap = new Map(newHexesMap, newPortsMap, newCitiesStlmtsMap, newRoadsMap, newRobberHexLoc);\n newCMMap.setRadius(newCMRadius);\n newCMMap.populatePortVertexLocations(); //these are static across the whole game\n Robber newRobber = new Robber(newCMMap);\n\n //Map object is complete! ready to add to new clientModel obj.\n//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n//GET RESOURCE BANK\n JSONObject newResourceListJSON = newModelJSON.getJSONObject(\"bank\");\n JSONObject newDevCardListJSON = newModelJSON.getJSONObject(\"deck\");\n ResourceBank newCMResourceBank = parseResourceBankFromJSON(newResourceListJSON, newDevCardListJSON);\n //ResourceBank is complete! Ready to add to new ClientModel obj.\n\n//GET PLAYERS ARRAY\n //the ClientModel obj wants these in a Player[].\n JSONArray newPlayersJSONArr = newModelJSON.getJSONArray(\"players\");\n Player[] newPlayersArray = parsePlayersArrFromJSON(newPlayersJSONArr);\n //Player[] is complete! Ready to add to new ClientModel obj.\n\n //GET MESSAGEMANAGER out of CHAT and LOG\n //GET CHAT\n JSONObject newCMChatJSONObj = newModelJSON.getJSONObject(\"chat\");\n MessageList newChatMsgList = parseMsgListFromJSON(newCMChatJSONObj);\n //GET LOG\n JSONObject newCMLogJSONObj = newModelJSON.getJSONObject(\"log\");\n MessageList newLogMsgList = parseMsgListFromJSON(newCMLogJSONObj);\n\n //Put the new Chat and Log MsgListObjs into a new MessageManager object:\n MessageManager newCMMsgMgr = new MessageManager();\n newCMMsgMgr.setChat(newChatMsgList);\n newCMMsgMgr.setLog(newLogMsgList);\n //MessageManager is complete! Ready to add to the new ClientModel obj.\n\n//GET TURNTRACKER\n JSONObject newTurnTrackerJSONObj = newModelJSON.getJSONObject(\"turnTracker\");\n String newTTrackerJSONString = newTurnTrackerJSONObj.toString();\n TurnTracker newCMTurnTracker = gsonConverter.fromJson(newTTrackerJSONString, TurnTracker.class);\n // System.out.println(\">newTTrackerObj= \" + newCMTurnTracker);\n //TurnTracker is complete! Ready to add to the new ClientModel obj.\n\n//GET TRADE OFFER\n TradeOffer newCMTradeOffer = new TradeOffer();\n if (newModelJSON.has(\"tradeOffer\")){\n JSONObject newTradeOfferJSONObj = newModelJSON.getJSONObject(\"tradeOffer\");\n String newTradeOfferJSONString = newTradeOfferJSONObj.toString();\n // System.out.println(\"newTradeOfferString= \" + newTradeOfferJSONString);\n newCMTradeOffer = gsonConverter.fromJson(newTradeOfferJSONString, TradeOffer.class);\n // System.out.println(\">newTradeOfferObj= \" + newCMTradeOffer);\n }\n\n //TradeOffer is complete! Ready to add to the new ClientModel obj.\n\n\n//GET ADDITIONAL INTS/OTHER CLIENTMODEL DATA\n int newCMVersion = newModelJSON.getInt(\"version\");\n int newCMWinner = newModelJSON.getInt(\"winner\");\n\n//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n//BUILD NEW CLIENTMODEL OBJECT\n newClientModel = new ClientModel(0);\n newClientModel.setVersion(newCMVersion);\n newClientModel.setWinner(newCMWinner);\n newClientModel.setResourceBank(newCMResourceBank);\n newClientModel.setMessageManager(newCMMsgMgr);\n newClientModel.setTurnTracker(newCMTurnTracker);\n newClientModel.setChat(newChatMsgList);\n newClientModel.setLog(newLogMsgList);\n newClientModel.setTradeOffer(newCMTradeOffer);\n newClientModel.setPlayers(newPlayersArray);\n newClientModel.setMap(newCMMap);\n\n System.out.println(\"===== MODEL TRANSLATION COMPLETE ====\");\n\n return newClientModel;\n }", "private ArrayList<Club> parseClubJSONInfo(String clubJSONInfo)\n\t{\n\t\tArrayList<Club> clubs = new ArrayList<Club>();\n\t\tClub c;\n\t\ttry\n\t\t{\n\t\t\tJSONObject jsonObject = new JSONObject(clubJSONInfo); //a big string of values\n\t\t\t\n\t\t\t//Club Data -- contains ALL clubs\n \t\tJSONArray clubsArray = jsonObject.getJSONArray(\"clubs\");\n \t\t\n \t\tif(clubsArray.length() > 0)\n \t\t{\n\t \t\t// Grab the first club\n \t\t\tfor(int y = 0; y < clubsArray.length(); y++) \n\t\t\t\t{\n \t\t\t\tJSONObject club = clubsArray.getJSONObject(y);\n\t\t\t\t\n\t\t\t\t\t// Take all the info from the club JSON file\n\t\t\t\t\t\n\t\t\t\t\t//get the geopoint from the lat and lon\n\t\t\t\t\tdouble latitude = Double.parseDouble(club.getString(\"lat\"));\n\t\t\t double lonitude = Double.parseDouble(club.getString(\"lon\"));\n\t\t\t LatLng marker = new LatLng(latitude, lonitude);\n\t\t\t\t\tGeoPoint geo = new GeoPoint((int) (latitude * 1E6), (int) (lonitude * 1E6));\n\t\t\t\t\t\n\t\t\t\t\tString name = club.getString(\"name\");\n\t\t\t\t\tString grounds = club.getString(\"grounds\");\n\t\t\t\t\tString description = club.getString(\"description\");\n\t\t\t\t\tString colours = club.getString(\"colours\");\n\t\t\t\t\tString website = club.getString(\"website\");\n\t\t\t\t\tString facebook = club.getString(\"facebook\");\n\t\t\t\t\tString twitter = club.getString(\"twitter\");\n\t\t\t\t\tString email = club.getString(\"email\");\n\t\t\t\t\tString phone = club.getString(\"phone\");\n\t\t\t\t\t\n\t\t\t\t\t//now fill out the description\n\t\t\t\t\tString info = \"\"; \n\t\t\t\t\tif(grounds.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t//Log.i(\"log_tag\", \"Grounds = \\\"\" + grounds + \"\\\"\");\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += grounds.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\n\" + grounds.toString();\n\t\t\t\t\t}\n\t\t\t\t\tif(description.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += description.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\n\" + description.toString();\n\t\t\t\t\t}\n\t\t\t\t\tif(colours.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += \"Colours: \" + colours.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\nColours: \" + colours.toString();\n\t\t\t\t\t}\n\t\t\t\t\tif(website.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += \"Web: \" + website.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\nWeb: \" + website.toString();\n\t\t\t\t\t}\n\t\t\t\t\tif(facebook.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += \"Facebook: \" + facebook.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\nFacebook: \" + facebook.toString();\n\t\t\t\t\t}\n\t\t\t\t\tif(twitter.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += \"Twitter: \" + twitter.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\nTwitter: \" + twitter.toString();\n\t\t\t\t\t}\n\t\t\t\t\tif(email.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += \"Email: \" + email.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\nEmail: \" + email.toString();\n\t\t\t\t\t}\n\t\t\t\t\tif(phone.length() != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(info == \"\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tinfo += \"Phone: \" + phone.toString();\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tinfo += \"\\nPhone: \" + phone.toString();\n\t\t\t\t\t}\n\t\t\t\t\t//Log.i(\"log_tag\", \"Info = \\\"\" + info + \"\\\"\");\n\t\t\t\t\tc = new Club(name.toString(), info, geo, marker);\n\t\t\t\t\tclubs.add(c);\n\t \t\t}\n \t\t\t\n \t\t\tCollections.sort(clubs);\n \t\t}\n\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tLog.e(\"log_tag\", \"Error creating JSON Objects:\" + e.toString());\n\t\t}\n\t\t\n\t\treturn clubs;\n\t}", "public JSONModel(final JSONObject json) {\n if (json == null) {\n throw new IllegalArgumentException(\"JSONObject argument is null\");\n }\n jo = json;\n }", "public static <T> T fromJson(String json, Class<T> type)\n {\n return g.fromJson(json, type);\n }", "@SuppressWarnings(\"unchecked\")\n\t\tpublic GNDDocument(String content) throws JsonParseException,\n\t\t\t\tJsonMappingException, IOException, ParseException\n\t\t{\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\tMap<String, Object> root = mapper.readValue(content, Map.class);\n\t\t\tLinkedHashMap<String, Object> meta = (LinkedHashMap<String, Object>) root\n\t\t\t\t\t.get(\"metadata\");\n\t\t\t_name = (String) meta.get(\"name\");\n\t\t\t_platform = (String) meta.get(\"platform\");\n\t\t\t_platformType = (String) meta.get(\"platform_type\");\n\t\t\t_sensor = (String) meta.get(\"sensor\");\n\t\t\t_sensorType = (String) meta.get(\"sensor_type\");\n\t\t\t_trial = (String) meta.get(\"trial\");\n\n\t\t\t// ok, and populate the tracks\n\t\t\tArrayList<String> dTypes = (ArrayList<String>) meta.get(\"data_type\");\n\t\t\tif (dTypes.contains(\"lat\") && dTypes.contains(\"lon\")\n\t\t\t\t\t&& dTypes.contains(\"time\"))\n\t\t\t{\n\t\t\t\t// ok, go for it.\n\t\t\t\tArrayList<Double> latArr = (ArrayList<Double>) root.get(\"lat\");\n\t\t\t\tArrayList<Double> lonArr = (ArrayList<Double>) root.get(\"lon\");\n\t\t\t\tArrayList<String> timeArr = (ArrayList<String>) root.get(\"time\");\n\t\t\t\tArrayList<Double> eleArr = null;\n\t\t\t\tArrayList<Double> crseArr = null;\n\t\t\t\tArrayList<Double> spdArr = null;\n\n\t\t\t\tif (dTypes.contains(\"elevation\"))\n\t\t\t\t\teleArr = (ArrayList<Double>) root.get(\"elevation\");\n\t\t\t\tif (dTypes.contains(\"course\"))\n\t\t\t\t\tcrseArr = (ArrayList<Double>) root.get(\"course\");\n\t\t\t\tif (dTypes.contains(\"speed\"))\n\t\t\t\t\tspdArr = (ArrayList<Double>) root.get(\"speed\");\n\n\t\t\t\t_track = new Track();\n\t\t\t\t_track.setName(_name);\n\n\t\t\t\tint ctr = 0;\n\t\t\t\tfor (Iterator<String> iterator = timeArr.iterator(); iterator.hasNext();)\n\t\t\t\t{\n\t\t\t\t\tString string = iterator.next();\n\t\t\t\t\tdouble lat = latArr.get(ctr);\n\t\t\t\t\tdouble lon = lonArr.get(ctr);\n\n\t\t\t\t\tdouble depth = 0, course = 0, speed = 0;\n\t\t\t\t\tif (eleArr != null)\n\t\t\t\t\t\tdepth = -eleArr.get(ctr);\n\n\t\t\t\t\tif (crseArr != null)\n\t\t\t\t\t\tcourse = crseArr.get(ctr);\n\t\t\t\t\tif (spdArr != null)\n\t\t\t\t\t\tspeed = spdArr.get(ctr);\n\n\t\t\t\t\tDate hd = timeFrom(string);\n\t\t\t\t\tHiResDate dt = new HiResDate(hd);\n\t\t\t\t\tWorldLocation theLoc = new WorldLocation(lat, lon, depth);\n\t\t\t\t\tFix thisF = new Fix(dt, theLoc, course, speed);\n\t\t\t\t\t_track.addFix(thisF);\n\n\t\t\t\t\tctr++;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}", "public static DayTraining newInstance(String json) {\n try {\n JSONObject root = new JSONObject(json);\n return new DayTraining.Builder()\n .setRunning( root.optInt(\"t1\"), root.optInt(\"t2\"), root.optInt(\"t3\"), root.optInt(\"t2_3\"), root.optInt(\"t1_3\"), root.optInt(\"ta\"), root.optInt(\"tt\"))\n .setBreathing(root.optInt(\"gx\"), root.optInt(\"gp\"),root.optInt(\"gd\"))\n .setTrainingInfo(root.optInt(\"id_athlete\"), root.optString(\"date\"), filterJsonTotalInput(root.optString(\"description\")), root.optInt(\"texniki\"), root.optInt(\"drastiriotita\"), root.optInt(\"time\"), root.optInt(\"number\"), root.optInt(\"id_race\"))\n .build();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return null;\n }", "private JSON() {\n\t}", "@Test\n public void fromJson() throws VirgilException, WebAuthnException {\n AuthenticatorMakeCredentialOptions options = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject attObj = authenticator.makeCredential(options);\n }", "public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }", "public Gateway(String json) throws IllegalArgumentException {\n this();\n genClient.initJsonObject(json);\n }", "public static Sandwich parseSandwichJson(String json) throws JSONException {\n final String NAME = \"name\";\n final String IMAGE = \"image\";\n final String MAINNAME = \"mainName\";\n final String ORIGIN = \"placeOfOrigin\";\n final String ALIASES = \"alsoKnownAs\";\n final String DESCRIPTION = \"description\";\n final String INGREDIENTS = \"ingredients\";\n\n /* Parsing JSON Object into separate variables */\n JSONObject sandwichJson = new JSONObject(json);\n JSONObject nameJson = sandwichJson.getJSONObject(NAME);\n String mainName = nameJson.getString(MAINNAME);\n JSONArray alsoKnownAs = nameJson.getJSONArray(ALIASES);\n List<String> alsoKnownAsList = jsonArraytoList(alsoKnownAs);\n String origin = sandwichJson.getString(ORIGIN);\n String description = sandwichJson.getString(DESCRIPTION);\n String image = sandwichJson.getString(IMAGE);\n JSONArray ingredients = sandwichJson.getJSONArray(INGREDIENTS);\n List<String> ingredientsList = jsonArraytoList(ingredients);\n\n return new Sandwich(mainName, alsoKnownAsList, origin, description, image, ingredientsList);\n }", "public JSONLoader( LoadingManager manager ) {}", "void fromJson(JsonStaxParser parser) throws SyntaxException, IOException;", "public void loadPipeline(org.iplant.pipeline.client.json.autobeans.Pipeline json) {\n main.remove(workspace);\n workspace = new PipelineWorkspace(buildPipeline(json));\n workspace.setHeight(\"100%\");\n workspace.setWidth(\"100%\");\n main.insert(workspace, 0);\n }", "private static void parseAndSave(String json, Context context) throws JSONException {\n dao = DAO.getInstance(context);\n ArrayList<MovieItem> movies = new ArrayList<>();\n //Decide if JSONObject Or JSONArray;\n JSONArray moviesArray = new JSONArray(json);\n for (int i = 0; i < moviesArray.length(); i++) {\n JSONObject movieObject = moviesArray.getJSONObject(i);\n String title = movieObject.getString(\"title\");\n String image = movieObject.getString(\"image\");\n int releaseYear = movieObject.getInt(\"releaseYear\");\n double rating = movieObject.getDouble(\"rating\");\n JSONArray genresArray = movieObject.getJSONArray(\"genre\");\n\n String genre1 = null;\n String genre2 = null;\n String genre3 = null;\n if (genresArray.length() == 1) {\n genre1 = genresArray.getString(0);\n }\n if (genresArray.length() == 2) {\n genre1 = genresArray.getString(0);\n genre2 = genresArray.getString(1);\n ;\n }\n if (genresArray.length() == 3) {\n genre1 = genresArray.getString(0);\n genre2 = genresArray.getString(1);\n genre3 = genresArray.getString(2);\n }\n\n dao.addMovieItem(title, releaseYear, rating, genre1, genre2, genre3, image);\n }\n }", "public void createFromJSONString(String jsonData) throws JSONException {\n JSONObject placeJSON = new JSONObject(jsonData);\n\n // set id of place object\n this.setId(placeJSON.getString(\"_id\"));\n // set title of place object\n this.setTitle(placeJSON.getString(\"title\"));\n // set lat of place object\n this.setLat(placeJSON.getString(\"lat\"));\n // set lon of place object\n this.setLon(placeJSON.getString(\"lon\"));\n }", "@Override\n protected void createCreature() {\n Sphere sphere = new Sphere(32,32, 0.4f);\n pacman = new Geometry(\"Pacman\", sphere);\n Material mat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Yellow);\n pacman.setMaterial(mat);\n this.attachChild(pacman); \n }", "protected CategoryModel createFromJSON(JSONObject json, boolean useServer) throws JSONException {\n\t\treturn CategoryModel.fromJSON(json, useServer);\n\t}", "public Animal(String name, String type, String color, String date, String email, String location,\n String latitude, String longitude, String phone, String token, String description,\n String thumbUrl, String key, String status) {\n this.name = name;\n this.type = type;\n this.color = color;\n this.date = date;\n this.email = email;\n this.location = location;\n this.latitude = latitude;\n this.longitude = longitude;\n this.phone = phone;\n this.token = token;\n this.description = description;\n this.thumbUrl = thumbUrl;\n this.key = key;\n this.status = status;\n }", "public static void transferLeatherArmorMeta(LeatherArmorMeta meta, JsonObject json, boolean meta2json)\r\n \t{\r\n \t\tif (meta2json)\r\n \t\t{\r\n \t\t\tColor color = meta.getColor();\r\n \t\t\t\r\n \t\t\tif (Bukkit.getItemFactory().getDefaultLeatherColor().equals(color)) return;\r\n \r\n \t\t\tjson.addProperty(LEATHER_ARMOR_COLOR, color.asRGB());\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tJsonElement element = json.get(LEATHER_ARMOR_COLOR);\r\n \t\t\tif (element == null) return;\r\n \t\t\tmeta.setColor(Color.fromRGB(element.getAsInt()));\r\n \t\t}\r\n \t}", "public void construct(Player player) throws IOException, URISyntaxException {\n builder.init();\n builder.buildTitle(player);\n builder.buildMapView(player);\n builder.buildMoves(player);\n builder.buildWinner(player);\n }", "protected void init(JSONObject json) throws EInvalidData {\n\t\ttry {\n\t\t\t_id = json.getString(\"id\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No id found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_name = json.getString(\"name\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No name found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_created_at = new Date(json.getLong(\"created_at\") * 1000);\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No created_at found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_status = json.getString(\"status\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No status found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_hash_type = json.getString(\"hash_type\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No hash_type found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_hash = json.getString(\"hash\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No hash found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_last_request = new Date(json.getLong(\"last_request\") * 1000);\n\t\t} catch (JSONException e) {\n\t\t\t_last_request = null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_last_success = new Date(json.getLong(\"last_success\") * 1000);\n\t\t} catch (JSONException e) {\n\t\t\t_last_success = null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_output_type = json.getString(\"output_type\");\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No output_type found\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t_output_params.clear();\n\t\t\t_output_params.parse(json.getJSONObject(\"output_params\"));\n\t\t} catch (JSONException e) {\n\t\t\tthrow new EInvalidData(\"No valid output_params found\");\n\t\t}\n\t}", "public static FroggerGame read(String name) throws IOException {\r\n FroggerGame frogger = new FroggerGame();\r\n\r\n Gson gson = new Gson();\r\n\r\n try (Reader reader = new FileReader(name)) {\r\n\r\n // this line is a modified line copied from https://mkyong.com/java/how-to-parse-json-with-gson/\r\n RuntimeTypeAdapterFactory<Sprite> adapter = RuntimeTypeAdapterFactory.of(Sprite.class, \"type\")\r\n .registerSubtype(Frog.class)\r\n .registerSubtype(Enemy.class)\r\n .registerSubtype(Car.class)\r\n .registerSubtype(Truck.class)\r\n .registerSubtype(Alligator.class)\r\n .registerSubtype(Item.class);\r\n gson = new GsonBuilder().registerTypeAdapterFactory(adapter).create();\r\n frogger = gson.fromJson(reader,FroggerGame.class);\r\n\r\n\r\n } catch (IOException e) {\r\n System.out.print(\"We could not find that save file \\n We will start you a new game \\n\");\r\n }\r\n\r\n return frogger;\r\n }", "public static Schematic schematicFromJson(String json) {\n if (gson == null) {\n initializeGson();\n }\n\n return gson.fromJson(json, new TypeToken<Schematic>(){}.getType());\n }", "public void fiddle(String jso) {\n\n Lexicon dict = gson.fromJson(jso,Lexicon.class);\n\n Log.i(TAG,\"POJO Success: language = \" + dict.getLanguage() );\n for (String s : dict.dictionary.keySet()) {\n Log.i(TAG,\"key = \" + s + \" value = \" + dict.dictionary.get(s));\n }\n\n String jsonString = gson.toJson(jso);\n Log.i(TAG,\"jsonString = \" + jsonString);\n\n DictionaryAdapter adapter = new DictionaryAdapter(dict.getDictionary());\n ListView lv = (ListView) findViewById(R.id.dictview);\n lv.setAdapter(adapter);\n }", "private Tamagotchi tamagotchiToJson(JSONObject jsonObject) {\n String name = jsonObject.getString(\"name\");\n Tamagotchi tr = new Tamagotchi(name);\n return tr;\n }", "@Override\n public PubSaveData buildPubSaveDataByJson(String json) {\n return null;\n }", "public Database(JsonObject data){\n this.obj = data;\n rest = (JsonArray) obj.get(\"restaurants\");\n /* TODO \nset the memebr variable declared above.*/\n }", "public static ArrayList<Nutritionix> parse(String json) throws JSONException {\n ArrayList<Nutritionix> nutritionixs = new ArrayList<>();\n\n //JSONArray children = new JSONObject(json).getJSONObject(\"data\").getJSONArray(\"children\");\n //JSONArray children = new JSONObject(json).getJSONObject(\"data\").getJSONArray(\"children\");\n JSONArray hits = new JSONObject(json).getJSONArray(\"hits\");\n\n\n for (int i = 0; i < hits.length(); i++) {\n JSONObject childObject = hits.getJSONObject(i);\n JSONObject childData = childObject.getJSONObject(\"fields\");\n\n //String url = childData.getString(\"item_name\");\n //String title = childData.getString(\"title\");\n String productname = childData.getString(\"item_name\");\n String calories = childData.getString(\"nf_calories\");\n String fats = childData.getString(\"nf_total_fat\");\n\n nutritionixs.add(new Nutritionix(productname,calories,fats));\n }\n return nutritionixs;\n }", "public void testJson() {\n\t\t\n\t\tSmallTalkEpisode episode = new SmallTalkEpisode();\n\t\tSmallTalkGespraech gespraech = new SmallTalkGespraech(0);\n\t\t\n\t\tSmallTalkJsonHelper testInstanz1 = new SmallTalkJsonHelper(\"We\", 2.34 , 0);\n\t\tSmallTalkJsonHelper testInstanz2 = new SmallTalkJsonHelper(\"Bez\", 5.24 , 0);\n\t\tSmallTalkJsonHelper testInstanz3 = new SmallTalkJsonHelper(\"Begr\", 22.34 , 1);\n\t\t\n\t\tJSONObject jsonObject = new JSONObject(testInstanz1);\n\t\tString myJson1 = jsonObject.toString();\n\t\tgespraech.addGespraech(myJson1);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz2);\n\t\tString myJson2 = jsonObject.toString();\n\t\tgespraech.addGespraech(myJson2);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz3);\n\t\tString myJson3 = jsonObject.toString();\n\t\tgespraech.addGespraech(myJson3);\n\t\t\n\t\tepisode.addGespraech(gespraech.createInnerJson());\n\t\t\n\t\tSmallTalkGespraech gespraech1 = new SmallTalkGespraech(1);\n\t\t\n\t\tSmallTalkJsonHelper testInstanz4 = new SmallTalkJsonHelper(\"We\", 2.34 , 0);\n\t\tSmallTalkJsonHelper testInstanz5 = new SmallTalkJsonHelper(\"Bez\", 5.24 , 0);\n\t\tSmallTalkJsonHelper testInstanz6 = new SmallTalkJsonHelper(\"Begr\", 22.34 , 1);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz1);\n\t\tString myJson4 = jsonObject.toString();\n\t\tgespraech1.addGespraech(myJson1);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz2);\n\t\tString myJson5 = jsonObject.toString();\n\t\tgespraech1.addGespraech(myJson2);\n\t\t\n\t\tjsonObject = new JSONObject(testInstanz3);\n\t\tString myJson6 = jsonObject.toString();\n\t\tgespraech1.addGespraech(myJson3);\n\t\t\n\t\tepisode.addGespraech(gespraech1.createInnerJson());\n\t\t\n\t\tSystem.out.println(episode.createInnerJson());\n\t\t\n\t\tFileSaver fileSaver = new FileSaver();\n\t\tfileSaver.stringAsJson(episode.createInnerJson(), \"FinalJson.json\");\n\t}", "private static FluidIngredient deserializeObject(JsonObject json) {\n if (json.entrySet().isEmpty()) {\n return EMPTY;\n }\n\n // fluid match\n if (json.has(\"name\")) {\n // don't set both, obviously an error\n if (json.has(\"tag\")) {\n throw new JsonSyntaxException(\"An ingredient entry is either a tag or an fluid, not both\");\n }\n\n // parse a fluid\n return FluidMatch.deserialize(json);\n }\n\n // tag match\n if (json.has(\"tag\")) {\n return TagMatch.deserialize(json);\n }\n\n throw new JsonSyntaxException(\"An ingredient entry needs either a tag or an fluid\");\n }", "public static void makeGeometry(AssetManager am) {\n geom = am.loadModel(\"Models/container/container.j3o\");\n mat = new Material(am, \"Common/MatDefs/Misc/Unshaded.j3md\");\n Texture Tex = am.loadTexture(\n \"Textures/Container/Template/texture.png\");\n\n\n Colors.add(am.loadTexture(\n \"Textures/Container/blue.png\"));\n Colors.add(am.loadTexture(\n \"Textures/Container/green.png\"));\n Colors.add(am.loadTexture(\n \"Textures/Container/purple.png\"));\n Colors.add(am.loadTexture(\n \"Textures/Container/red.png\"));\n companyTextures.put(\"UPS\", am.loadTexture(\n \"Textures/Container/UPS.png\"));\n companyTextures.put(\"CocaCola\", am.loadTexture(\n \"Textures/Container/cocacola.png\"));\n companyTextures.put(\"McDonalds\", am.loadTexture(\n \"Textures/Container/mac.png\"));\n\n companyTextures.put(\"Grolsch\", am.loadTexture(\n \"Textures/Container/grolsch.png\"));\n companyTextures.put(\"Heineken\", am.loadTexture(\n \"Textures/Container/heineken.png\"));\n companyTextures.put(\"Nestle\", am.loadTexture(\n \"Textures/Container/nestle.png\"));\n companyTextures.put(\"Shell\", am.loadTexture(\n \"Textures/Container/shell.png\"));\n companyTextures.put(\"DeutschePost\", am.loadTexture(\n \"Textures/Container/post.png\"));\n companyTextures.put(\"PostBank\", am.loadTexture(\n \"Textures/Container/postbank.png\"));\n companyTextures.put(\"Airfrance\", am.loadTexture(\n \"Textures/Container/airfrance.png\"));\n\n companyTextures.put(\"BallastNedam\", am.loadTexture(\n \"Textures/Container/ballastnedam.png\"));\n companyTextures.put(\"Manpower\", am.loadTexture(\n \"Textures/Container/manpower.png\"));\n\n companyTextures.put(\"Lufthansa\", am.loadTexture(\n \"Textures/Container/lufthansa.png\"));\n companyTextures.put(\"Bayer\", am.loadTexture(\n \"Textures/Container/bayer.png\"));\n\n\n companyTextures.put(\"Danone\", am.loadTexture(\n \"Textures/Container/danone.png\"));\n companyTextures.put(\"Ericsson\", am.loadTexture(\n \"Textures/Container/ericsson.png\"));\n\n companyTextures.put(\"Danone\", am.loadTexture(\n \"Textures/Container/danone.png\"));\n companyTextures.put(\"Ericsson\", am.loadTexture(\n \"Textures/Container/ericsson.png\"));\n\n\n companyTextures.put(\"OCE\", am.loadTexture(\n \"Textures/Container/oce.png\"));\n companyTextures.put(\"BeterBed\", am.loadTexture(\n \"Textures/Container/beterbed.png\"));\n\n companyTextures.put(\"TenCate\", am.loadTexture(\n \"Textures/Container/tencate.png\"));\n\n companyTextures.put(\"FederalExpress\", am.loadTexture(\n \"Textures/Container/fedex.png\"));\n companyTextures.put(\"IBM\", am.loadTexture(\n \"Textures/Container/IBM.png\"));\n companyTextures.put(\"KraftFoods\", am.loadTexture(\n \"Textures/Container/kraft.png\"));\n companyTextures.put(\"Hanjin\", am.loadTexture(\n \"Textures/Container/hanjin.png\"));\n companyTextures.put(\"CargoTrans\", am.loadTexture(\n \"Textures/Container/cargotrans.png\"));\n\n\n companyTextures.put(\"Metro\", am.loadTexture(\n \"Textures/Container/metro.png\"));\n companyTextures.put(\"Carrefour\", am.loadTexture(\n \"Textures/Container/carefour.png\"));\n companyTextures.put(\"Amstel\", am.loadTexture(\n \"Textures/Container/amstel.png\"));\n companyTextures.put(\"TransNL\", am.loadTexture(\n \"Textures/Container/transnl.png\"));\n companyTextures.put(\"Gilette\", am.loadTexture(\n \"Textures/Container/gillete.png\"));\n\n\n companyTextures.put(\"WalMart\", am.loadTexture(\n \"Textures/Container/walmart.png\"));\n companyTextures.put(\"Delhaize\", am.loadTexture(\n \"Textures/Container/delhaize.png\"));\n companyTextures.put(\"BASF\", am.loadTexture(\n \"Textures/Container/basf.png\"));\n companyTextures.put(\"SeaTrans\", am.loadTexture(\n \"Textures/Container/seatrans.png\"));\n companyTextures.put(\"DowChemical\", am.loadTexture(\n \"Textures/Container/dow.png\"));\n\n companyTextures.put(\"AXA\", am.loadTexture(\n \"Textures/Container/axe.png\"));\n companyTextures.put(\"LLyod\", am.loadTexture(\n \"Textures/Container/lloyd.png\"));\n \n companyTextures.put(\"GJMW\", am.loadTexture(\n \"Textures/Container/GJMW.png\"));\n companyTextures.put(\"WoodNorge\", am.loadTexture(\n \"Textures/Container/woodnorge.png\"));\n companyTextures.put(\"FlowersNL\", am.loadTexture(\n \"Textures/Container/flowersnl.png\"));\n \n companyTextures.put(\"FruitINT\", am.loadTexture(\n \"Textures/Container/fruitint.png\"));\n companyTextures.put(\"IntTrans\", am.loadTexture(\n \"Textures/Container/inttrans.png\"));\n companyTextures.put(\"MaasHolland\", am.loadTexture(\n \"Textures/Container/maasholland.png\"));\n\n mat.setTexture(\"ColorMap\", Tex);\n r = new Random();\n\n mat.setColor(\"Color\", ColorRGBA.White);\n\n geom.setMaterial(mat);\n }", "@Deprecated\n \tpublic void loadPipeline(JSONObject json) {\n \t\tmain.remove(workspace);\n \t\tworkspace = new PipelineWorkspace(getPipelineFromJson(json));\n \t\tworkspace.setHeight(\"100%\");\n \t\tworkspace.setWidth(\"100%\");\n \t\tmain.insert(workspace, 0);\n \t}", "public static Spot validateJSONData(JSONObject json) {\r\n\t\tint id, lot_id;\r\n\t\tdouble lat, lng;\r\n\t\tString status;\r\n\t\t\r\n\t\tLog.i(\"Spot JSON\", json.toString());\r\n\t\t\r\n\t\t// Begin the disgusting wall of try-catches\r\n\t\ttry {\r\n\t\t\tid = json.getInt(RestContract.SPOT_ID);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tid = -1;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tlot_id = json.getInt(RestContract.SPOT_LOT_ID);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tlot_id = -1;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tlat = json.getDouble(RestContract.SPOT_LATITUDE);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tlat = 0;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tlng = json.getDouble(RestContract.SPOT_LONGITUDE);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tlng = 0;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tstatus = json.getString(RestContract.SPOT_STATUS);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tstatus = \"\";\r\n\t\t}\r\n\t\t\r\n\t\treturn new Spot(id, lot_id, lat, lng, status);\r\n\t}", "private static Gson gson() {\n return JsonUtils.buildGson(gb -> gb.registerTypeAdapter(Json.class, (JsonSerializer<Json>) (json, type, jsonSerializationContext) ->\n jsonParser.parse(json.value())\n ));\n }", "<T> T fromJson(String json, Class<T> type);", "void generateJSON(JSONObject object, String name);", "public Building(String[] line){\n setId(Integer.parseInt(line[0]));\n setRank(Integer.parseInt(line[1]));\n setName(line[2]);\n setCity(line[3]);\n setCountry(line[4]);\n setHeight_m(Double.parseDouble(line[5]));\n setHeight_ft(Double.parseDouble(line[6]));\n setFloors(line[7]);\n setBuild(line[8]);\n setArchitect(line[9]);\n setArchitectual_style(line[10]);\n setCost(line[11]);\n setMaterial(line[12]);\n setLongitude(line[13]);\n setLatitude(line[14]);\n // setImage(line[15]);\n\n }", "@Override\n\t\tpublic TextureAtlas<String> load(JSONObject root) throws IOException {\n\t\t\tfinal JSONArray array = root.getJSONArray(\"atlas\");\n\n\t\t\t// Load texture atlas\n\t\t\treturn StreamSupport\n\t\t\t\t\t.stream(array.spliterator(), false)\n\t\t\t\t\t.map(JSONObject.class::cast)\n\t\t\t\t\t.map(Loader::entry)\n\t\t\t\t\t.collect(collectingAndThen(toMap(Entry::getKey, Entry::getValue), TextureAtlas::of));\n\t\t}", "public static void main(String[] args) {\n String jsonString = \"{\\\"name\\\":\\\"Pourush\\\"}\";\n JsonObject jsonObject = new JsonObject(jsonString);\n jsonObject.put(\"location\",\"Utsav\");\n System.out.println(jsonObject);\n Myitem myitem = new Myitem();\n myitem.name = \"falanadhimkana\";\n myitem.description = \"some description\";\n jsonObject.put(\"Myitem\",jsonObject.mapFrom(myitem));\n System.out.println(jsonObject);\n }", "public Player(JsonObject jsonPlayer) {\n this.nickname = jsonPlayer.get(\"nickname\").getAsString();\n this.nRedAmmo = jsonPlayer.get(\"nRedAmmo\").getAsInt();\n this.nBlueAmmo = jsonPlayer.get(\"nBlueAmmo\").getAsInt();\n this.nYellowAmmo = jsonPlayer.get(\"nYellowAmmo\").getAsInt();\n this.points = jsonPlayer.get(\"points\").getAsInt();\n\n this.weaponList = new ArrayList<>();\n JsonArray jsonWeaponList = jsonPlayer.get(\"weaponList\").getAsJsonArray();\n for (int i = 0; i < jsonWeaponList.size(); i++) {\n Weapon w = new Weapon(jsonWeaponList.get(i).getAsJsonObject());\n this.weaponList.add(w);\n }\n\n this.powerUpList = new ArrayList<>();\n JsonArray jsonPowerUpList = jsonPlayer.get(\"powerUpList\").getAsJsonArray();\n for (int i = 0; i < jsonPowerUpList.size(); i++) {\n PowerUp p = new PowerUp(jsonPowerUpList.get(i).getAsJsonObject());\n this.powerUpList.add(p);\n }\n\n this.damages = new ArrayList<>();\n JsonArray jsonDamages = jsonPlayer.get(\"damages\").getAsJsonArray();\n for (int i = 0; i < jsonDamages.size(); i++) {\n String s = jsonDamages.get(i).getAsString();\n this.damages.add(s);\n }\n\n this.marks = new ArrayList<>();\n JsonArray jsonMarks = jsonPlayer.get(\"marks\").getAsJsonArray();\n for (int i = 0; i < jsonMarks.size(); i++) {\n String s = jsonMarks.get(i).getAsString();\n this.marks.add(s);\n }\n\n this.nDeaths = jsonPlayer.get(\"nDeaths\").getAsInt();\n this.xPosition = jsonPlayer.get(\"xPosition\").getAsInt();\n this.yPosition = jsonPlayer.get(\"yPosition\").getAsInt();\n this.isDead = jsonPlayer.get(\"isDead\").getAsBoolean();\n this.nMoves = jsonPlayer.get(\"nMoves\").getAsInt();\n this.nMovesBeforeGrabbing = jsonPlayer.get(\"nMovesBeforeGrabbing\").getAsInt();\n this.nMovesBeforeShooting = jsonPlayer.get(\"nMovesBeforeShooting\").getAsInt();\n this.playerStatus = new PlayerStatus(jsonPlayer.get(\"playerStatus\").getAsJsonObject());\n }", "public static Race fromJson(JSONObject json) {\n Race race = new Race();\n try {\n // Basic race info\n race.title = json.getString(\"title\");\n race.date = json.getString(\"date\");\n race.time = json.getString(\"time\");\n race.setDateAndTime(race.date, race.time);\n race.blockquote = json.getString(\"blockquote\");\n race.description = json.getString(\"description\");\n race.raceImage = json.getString(\"chapterImage\");\n race.raceURL = json.getString(\"eventURL\");\n\n // Round information\n List<Round> rounds = new Round().fromJsonToRoundList(json.getJSONArray(\"raceStructure\"));\n race.rounds = (ArrayList<Round>) rounds;\n\n // Racer information\n Iterator<String> racerKeys = json.getJSONObject(\"racers\").keys();\n ArrayList<Racer> racers = new ArrayList<Racer>();\n while (racerKeys.hasNext()) {\n String username = racerKeys.next();\n JSONObject userJson = json.getJSONObject(\"racers\").getJSONObject(username);\n String racerURL = userJson.getString(\"racerPage\");\n String racerPhoto = userJson.getString(\"racerPhoto\");\n String droneName = userJson.getString(\"dronename\");\n String droneURL = userJson.getString(\"droneURL\");\n String frequency = userJson.getString(\"frequency\");\n racers.add(new Racer(username, racerURL, racerPhoto, droneName, droneURL, frequency));\n }\n race.racers = racers;\n\n // Admin information\n Iterator<String> adminIter = json.getJSONObject(\"admins\").keys();\n ArrayList<String> admins = new ArrayList<String>();\n while (adminIter.hasNext()) {\n admins.add(adminIter.next());\n }\n\n // Status data\n race.currentState = json.getJSONObject(\"currentState\").getString(\"currentState\");\n race.targetTime = Long.parseLong(json.getJSONObject(\"currentState\").getString(\"time\"));\n } catch (JSONException e) {\n e.printStackTrace();\n return null;\n }\n return race;\n }", "public final zzbbh<List<zzcbg>> mo31095a(JSONObject jSONObject, String str) {\n Object obj;\n char c;\n JSONArray optJSONArray = jSONObject.optJSONArray(str);\n if (optJSONArray == null) {\n return zzbar.m26376a(Collections.emptyList());\n }\n ArrayList arrayList = new ArrayList();\n int length = optJSONArray.length();\n for (int i = 0; i < length; i++) {\n JSONObject optJSONObject = optJSONArray.optJSONObject(i);\n if (optJSONObject != null) {\n String optString = optJSONObject.optString(\"name\");\n if (optString != null) {\n String optString2 = optJSONObject.optString(\"type\");\n if (\"string\".equals(optString2)) {\n c = 1;\n } else if (\"image\".equals(optString2)) {\n c = 2;\n } else {\n c = 0;\n }\n if (c == 1) {\n obj = zzbar.m26376a(new zzcbg(optString, optJSONObject.optString(\"string_value\")));\n } else if (c == 2) {\n obj = zzbar.m26380a(this.f26306b.mo31091a(optJSONObject, \"image_value\"), (zzbam<A, B>) new C9083Qh<A,B>(optString), this.f26305a);\n }\n arrayList.add(obj);\n }\n }\n obj = zzbar.m26376a(null);\n arrayList.add(obj);\n }\n return zzbar.m26380a(zzbar.m26382a((Iterable<? extends zzbbh<? extends V>>) arrayList), C9062Ph.f21584a, this.f26305a);\n }", "public static Personagem fromJson(JSONObject json){\n Personagem personagem = new Personagem(\n json.getString(\"nome\"),\n json.getString(\"raca\"),\n json.getString(\"profissao\"),\n json.getInt(\"mana\"),\n json.getInt(\"ataque\"),\n json.getInt(\"ataqueMagico\"),\n json.getInt(\"defesa\"),\n json.getInt(\"defesaMagica\"),\n json.getInt(\"velocidade\"),\n json.getInt(\"destreza\"),\n json.getInt(\"experiencia\"),\n json.getInt(\"nivel\")\n\n );\n return personagem;\n }", "public interface GPSMetier {\n JSONEntitie createJSON(String Id, double lat, double lon, boolean isServer);\n String jsonToString(JSONEntitie jsonEntitie);\n JSONEntitie stringToJSON(String jsonString, int codeResponse);\n\n}", "public void init() {\n\n mJokes = new ArrayList<>();\n\n StringBuilder sBuilder = new StringBuilder();\n\n try {\n\n InputStream in = getClass().getResourceAsStream(\"/jokes.json\");\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n String mLine = reader.readLine();\n while (mLine != null) {\n //process line\n sBuilder.append(mLine);\n mLine = reader.readLine();\n }\n\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n String jsonString = sBuilder.toString();\n\n if( jsonString != null ){\n\n JsonParser parser = new JsonParser();\n JsonObject jsonObject = parser.parse(jsonString).getAsJsonObject();\n\n JsonArray jokesArray = jsonObject.getAsJsonArray(\"jokes\");\n\n for (JsonElement element : jokesArray) {\n String joke = element.getAsJsonObject().get(\"joke\").getAsString();\n mJokes.add(joke);\n }\n }\n\n }", "private DatasetJsonConversion() {}", "public Patient (String JSONString) {\n try {\n JSONObject n = new JSONObject(JSONString);\n name = n.get(\"name\").toString();\n fathersName = n.get(\"fathersName\").toString();\n mothersName = n.get(\"mothersName\").toString();\n SimpleDateFormat parser = new SimpleDateFormat(\"dd/MM/yyyy\");\n birthDate = parser.parse(n.get(\"birthDate\").toString());\n sex = n.get(\"sex\").toString();\n pid = n.get(\"pid\").toString();\n doctype = Integer.valueOf(n.get(\"doctype\").toString());\n enrolledSchema = new Schema(n.get(\"enrolledProject\").toString());\n /*JSONArray arry = new JSONArray(n.get(\"enrolledProjects\").toString());\n for (int i = 0; i < arry.length(); i++){\n enrolledProjects.add(new Project(arry.getString(i)));\n }*/\n nationalID = n.get(\"nationalID\").toString();\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n catch (ParseException e){\n e.printStackTrace();\n }\n }", "public ClaseJson() {\n }", "public static Capabilities fromJson(String json) {\n Gson gson = new Gson();\n return gson.fromJson(json, Capabilities.class);\n }", "public Organization(String jsonString) throws JSONException\n\t{\n\t\tthis(new JSONObject(jsonString));\n\t}", "public JsonFactory() { this(null); }", "public JsonArray() {\n }", "public synchronized String addRestaurantJSON(String jsonInfo) throws JsonSyntaxException {\n Restaurant rest = gson.fromJson(jsonInfo, Restaurant.class);\n // Check if any required fields are null\n if (rest.getName() == null || rest.getPrice() > 5 || rest.getPrice() < 1 || rest.getFullAddress() == null || rest.getFullAddress().equals(\"\") || rest.getName().equals(\"\")) {\n throw new JsonSyntaxException(jsonInfo);\n }\n rest.generateNewRestaurantInfo(this);\n this.restaurantMap.put(rest.getID(), rest);\n return gson.toJson(rest);\n }", "@Override\r\n\tpublic JSONObject buildJson() {\n\t\tJSONObject json = new JSONObject();\r\n\t\ttry {\r\n\t\t\tsetInt(json,d_type,type);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogUtil.log.error(e.getMessage(),e);\r\n\t\t}\r\n\t\treturn json;\r\n\t}", "public boolean setFromJSON(JSONObject json, int pilotId) {\n\n try {\n id = json.has(\"id\") ? json.getInt(\"id\") : id;\n title = json.getString(\"name\");\n raceURL = json.getString(\"urlName\");\n raceImage = !json.isNull(\"mainImageFileName\") ? json.getString(\"mainImageFileName\") : raceImage;\n blockquote = json.getString(\"description\");\n description = json.getString(\"content\");\n chapterId = !json.isNull(\"chapterId\") ? json.getInt(\"chapterId\") : chapterId;\n dateAndTime = new SimpleDateFormat(\"yyyy-MM-dd hh:mm aa\", Locale.US).parse(json.getString(\"startDate\"));\n date = new SimpleDateFormat(\"MMMM dd, yyyy\", Locale.US).format(dateAndTime);\n time = new SimpleDateFormat(\"hh:mm aa\", Locale.US).format(dateAndTime);\n city = !json.isNull(\"city\") ? json.getString(\"city\") : city;\n state = !json.isNull(\"state\") ? json.getString(\"state\") : state;\n zip = !json.isNull(\"zip\") ? json.getString(\"zip\") : zip;\n country = !json.isNull(\"country\") ? json.getString(\"country\") : country;\n latitude = !json.isNull(\"latitude\") ? json.getDouble(\"latitude\") : -99999;\n longitude = !json.isNull(\"longitude\") ? json.getDouble(\"longitude\") : -99999;\n currentRound = !json.isNull(\"currentCycle\") ? json.getInt(\"currentCycle\") - 1 : currentRound;\n currentHeat = !json.isNull(\"currentHeat\") ? json.getInt(\"currentHeat\") - 1 : currentHeat;\n status = !json.isNull(\"status\") ? json.getString(\"status\") : status;\n // TODO targetTime;\n targetTime = !json.isNull(\"targetTime\") ? json.getLong(\"targetTime\") : targetTime;\n calculateCurrentState();\n\n // Racer information and joined status\n if (racers == null) {\n racers = new ArrayList<Racer>();\n }\n if (!json.isNull(\"entries\")) {\n racers.clear();\n joined = false;\n JSONArray entries = json.getJSONArray(\"entries\");\n for (int i = 0, size = entries.length(); i < size; i++) {\n Racer racer = new Racer(entries.getJSONObject(i));\n racers.add(racer);\n if (racer.getPilotId() == pilotId) {\n joined = true;\n }\n\n }\n }\n\n // Round information\n if (rounds == null) {\n rounds = new ArrayList<Round>();\n }\n if (!json.isNull(\"schedule\")) {\n rounds.clear();\n rounds.addAll(new Round().fromJSONToRoundList(json.getJSONObject(\"schedule\").getJSONArray(\"groups\"), racers));\n }\n\n return true;\n } catch (JSONException e) {\n e.printStackTrace();\n return false;\n } catch (ParseException e) {\n e.printStackTrace();\n return false;\n }\n }", "public void parseProductFromJson(String jsonData) { \r\n\t\t \r\n Type typeList = new TypeToken<ArrayList<Product>>(){}.getType(); \r\n Gson gson = new Gson(); \r\n ArrayList<Product> products = gson.fromJson(jsonData, typeList); \r\n for(Product product:products) { \r\n System.out.println(\"name---------->\" + product.getpName()); \r\n System.out.println(\"price---------->\" + product.getpPrice()); \r\n } \r\n }", "protected void initializeComponent() throws JSONException {\n }", "public String toJSon() {\n File jsonFile = new File(context.getFilesDir(), \"data.json\");\n String previousJson = null;\n if (jsonFile.exists()) {\n previousJson = readFromFile(jsonFile);\n } else {\n previousJson = \"{}\";\n }\n\n // create new \"complex\" object\n JSONObject mO = null;\n try {\n mO = new JSONObject(previousJson);\n\n JSONArray arr;\n if (!mO.has(getIntent().getStringExtra(\"date\"))) {\n arr = new JSONArray();\n }\n else{\n arr = mO.getJSONArray(getIntent().getStringExtra(\"date\"));\n }\n JSONObject jo = new JSONObject();\n jo.put(\"title\", titleField.getText().toString());\n jo.put(\"minute\", minute);\n jo.put(\"hour\", hour);\n jo.put(\"description\", descriptionField.getText().toString());\n jo.put(\"location\", locationField.getText().toString());\n\n arr.put(jo);\n\n mO.put(getIntent().getStringExtra(\"date\"), arr);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n // generate string from the object\n String jsonString = null;\n try {\n jsonString = mO.toString(4);\n return jsonString;\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return null;\n\n }", "public static void main(String[] argv) {\n Owner owner1 = new Owner(1, 111111, \"registered\", 14,\n \"https://www.gravatar.com/avatar/36cdb80d69e1f92ca429bdf69ccb05c6?s=128&d=identicon&r=PG&f=1\",\n \"Blake Lassiter\",\n \"http://stackoverflow.com/users/4805044/blake-lassiter\");\n\n Owner owner2 = new Owner(2, 222222, \"registered\", 14,\n \"https://www.gravatar.com/avatar/36cdb80d69e1f92ca429bdf69ccb05c6?s=128&d=identicon&r=PG&f=1\",\n \"Blake Lassiter\",\n \"http://stackoverflow.com/users/4805044/blake-lassiter\");\n\n Owner owner3 = new Owner(3, 333333, \"registered\", 14,\n \"https://www.gravatar.com/avatar/36cdb80d69e1f92ca429bdf69ccb05c6?s=128&d=identicon&r=PG&f=1\",\n \"Blake Lassiter\",\n \"http://stackoverflow.com/users/4805044/blake-lassiter\");\n\n String json = \"{\\n\" +\n \" \\\"items\\\": [\\n\" +\n \" {\\n\" +\n \" \\\"tags\\\": [\\n\" +\n \" \\\"android\\\",\\n\" +\n \" \\\"android-manifest\\\"\\n\" +\n \" ],\\n\" +\n \" \\\"owner\\\": {\\n\" +\n \" \\\"reputation\\\": 23,\\n\" +\n \" \\\"user_id\\\": 4805044,\\n\" +\n \" \\\"user_type\\\": \\\"registered\\\",\\n\" +\n \" \\\"accept_rate\\\": 14,\\n\" +\n \" \\\"profile_image\\\": \\\"https://www.gravatar.com/avatar/36cdb80d69e1f92ca429bdf69ccb05c6?s=128&d=identicon&r=PG&f=1\\\",\\n\" +\n \" \\\"display_name\\\": \\\"Blake Lassiter\\\",\\n\" +\n \" \\\"link\\\": \\\"http://stackoverflow.com/users/4805044/blake-lassiter\\\"\\n\" +\n \" },\\n\" +\n \" \\\"is_answered\\\": false,\\n\" +\n \" \\\"view_count\\\": 13,\\n\" +\n \" \\\"answer_count\\\": 0,\\n\" +\n \" \\\"score\\\": 0,\\n\" +\n \" \\\"last_activity_date\\\": 1462763611,\\n\" +\n \" \\\"creation_date\\\": 1462762986,\\n\" +\n \" \\\"last_edit_date\\\": 1462763611,\\n\" +\n \" \\\"question_id\\\": 37107214,\\n\" +\n \" \\\"link\\\": \\\"http://stackoverflow.com/questions/37107214/set-title-to-hidden-on-android-app\\\",\\n\" +\n \" \\\"title\\\": \\\"Set Title To Hidden on Android App\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"tags\\\": [\\n\" +\n \" \\\"android\\\",\\n\" +\n \" \\\"c++\\\",\\n\" +\n \" \\\"windows\\\",\\n\" +\n \" \\\"bluetooth\\\"\\n\" +\n \" ],\\n\" +\n \" \\\"owner\\\": {\\n\" +\n \" \\\"reputation\\\": 937,\\n\" +\n \" \\\"user_id\\\": 1183804,\\n\" +\n \" \\\"user_type\\\": \\\"registered\\\",\\n\" +\n \" \\\"accept_rate\\\": 83,\\n\" +\n \" \\\"profile_image\\\": \\\"https://i.stack.imgur.com/Z5Lyl.jpg?s=128&g=1\\\",\\n\" +\n \" \\\"display_name\\\": \\\"Chris\\\",\\n\" +\n \" \\\"link\\\": \\\"http://stackoverflow.com/users/1183804/chris\\\"\\n\" +\n \" },\\n\" +\n \" \\\"is_answered\\\": true,\\n\" +\n \" \\\"view_count\\\": 17,\\n\" +\n \" \\\"answer_count\\\": 1,\\n\" +\n \" \\\"score\\\": 3,\\n\" +\n \" \\\"last_activity_date\\\": 1462763542,\\n\" +\n \" \\\"creation_date\\\": 1462701554,\\n\" +\n \" \\\"last_edit_date\\\": 1462743555,\\n\" +\n \" \\\"question_id\\\": 37098557,\\n\" +\n \" \\\"link\\\": \\\"http://stackoverflow.com/questions/37098557/c-winsock-bluetooth-connection-at-command-error-received\\\",\\n\" +\n \" \\\"title\\\": \\\"C++ WinSock Bluetooth Connection - AT Command - Error Received\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"tags\\\": [\\n\" +\n \" \\\"java\\\",\\n\" +\n \" \\\"android\\\",\\n\" +\n \" \\\"user-interface\\\",\\n\" +\n \" \\\"fragment\\\",\\n\" +\n \" \\\"android-orientation\\\"\\n\" +\n \" ],\\n\" +\n \" \\\"owner\\\": {\\n\" +\n \" \\\"reputation\\\": 4,\\n\" +\n \" \\\"user_id\\\": 4835349,\\n\" +\n \" \\\"user_type\\\": \\\"registered\\\",\\n\" +\n \" \\\"profile_image\\\": \\\"https://lh4.googleusercontent.com/-ZFmtDec26j4/AAAAAAAAAAI/AAAAAAAAAC4/RGi5zw-SFao/photo.jpg?sz=128\\\",\\n\" +\n \" \\\"display_name\\\": \\\"jl1992\\\",\\n\" +\n \" \\\"link\\\": \\\"http://stackoverflow.com/users/4835349/jl1992\\\"\\n\" +\n \" },\\n\" +\n \" \\\"is_answered\\\": false,\\n\" +\n \" \\\"view_count\\\": 41,\\n\" +\n \" \\\"answer_count\\\": 2,\\n\" +\n \" \\\"score\\\": -1,\\n\" +\n \" \\\"last_activity_date\\\": 1462761445,\\n\" +\n \" \\\"creation_date\\\": 1462750768,\\n\" +\n \" \\\"question_id\\\": 37105990,\\n\" +\n \" \\\"link\\\": \\\"http://stackoverflow.com/questions/37105990/android-how-do-i-prevent-class-variables-being-cleared-on-orientation-change\\\",\\n\" +\n \" \\\"title\\\": \\\"Android: how do I prevent class variables being cleared on orientation change\\\"\\n\" +\n \" }\\n\" +\n \" ],\\n\" +\n \" \\\"has_more\\\": true,\\n\" +\n \" \\\"quota_max\\\": 300,\\n\" +\n \" \\\"quota_remaining\\\": 298\\n\" +\n \"}\";\n Gson gson = new GsonBuilder().create();\n\n String jsonArray = \"[\\n\" +\n \" {\\n\" +\n \" \\\"tags\\\": [\\n\" +\n \" \\\"android\\\",\\n\" +\n \" \\\"android-manifest\\\"\\n\" +\n \" ],\\n\" +\n \" \\\"owner\\\": {\\n\" +\n \" \\\"reputation\\\": 23,\\n\" +\n \" \\\"user_id\\\": 4805044,\\n\" +\n \" \\\"user_type\\\": \\\"registered\\\",\\n\" +\n \" \\\"accept_rate\\\": 14,\\n\" +\n \" \\\"profile_image\\\": \\\"https://www.gravatar.com/avatar/36cdb80d69e1f92ca429bdf69ccb05c6?s=128&d=identicon&r=PG&f=1\\\",\\n\" +\n \" \\\"display_name\\\": \\\"Blake Lassiter\\\",\\n\" +\n \" \\\"link\\\": \\\"http://stackoverflow.com/users/4805044/blake-lassiter\\\"\\n\" +\n \" },\\n\" +\n \" \\\"is_answered\\\": false,\\n\" +\n \" \\\"view_count\\\": 13,\\n\" +\n \" \\\"answer_count\\\": 0,\\n\" +\n \" \\\"score\\\": 0,\\n\" +\n \" \\\"last_activity_date\\\": 1462763611,\\n\" +\n \" \\\"creation_date\\\": 1462762986,\\n\" +\n \" \\\"last_edit_date\\\": 1462763611,\\n\" +\n \" \\\"question_id\\\": 37107214,\\n\" +\n \" \\\"link\\\": \\\"http://stackoverflow.com/questions/37107214/set-title-to-hidden-on-android-app\\\",\\n\" +\n \" \\\"title\\\": \\\"Set Title To Hidden on Android App\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"tags\\\": [\\n\" +\n \" \\\"android\\\",\\n\" +\n \" \\\"c++\\\",\\n\" +\n \" \\\"windows\\\",\\n\" +\n \" \\\"bluetooth\\\"\\n\" +\n \" ],\\n\" +\n \" \\\"owner\\\": {\\n\" +\n \" \\\"reputation\\\": 937,\\n\" +\n \" \\\"user_id\\\": 1183804,\\n\" +\n \" \\\"user_type\\\": \\\"registered\\\",\\n\" +\n \" \\\"accept_rate\\\": 83,\\n\" +\n \" \\\"profile_image\\\": \\\"https://i.stack.imgur.com/Z5Lyl.jpg?s=128&g=1\\\",\\n\" +\n \" \\\"display_name\\\": \\\"Chris\\\",\\n\" +\n \" \\\"link\\\": \\\"http://stackoverflow.com/users/1183804/chris\\\"\\n\" +\n \" },\\n\" +\n \" \\\"is_answered\\\": true,\\n\" +\n \" \\\"view_count\\\": 17,\\n\" +\n \" \\\"answer_count\\\": 1,\\n\" +\n \" \\\"score\\\": 3,\\n\" +\n \" \\\"last_activity_date\\\": 1462763542,\\n\" +\n \" \\\"creation_date\\\": 1462701554,\\n\" +\n \" \\\"last_edit_date\\\": 1462743555,\\n\" +\n \" \\\"question_id\\\": 37098557,\\n\" +\n \" \\\"link\\\": \\\"http://stackoverflow.com/questions/37098557/c-winsock-bluetooth-connection-at-command-error-received\\\",\\n\" +\n \" \\\"title\\\": \\\"C++ WinSock Bluetooth Connection - AT Command - Error Received\\\"\\n\" +\n \" },\\n\" +\n \" {\\n\" +\n \" \\\"tags\\\": [\\n\" +\n \" \\\"java\\\",\\n\" +\n \" \\\"android\\\",\\n\" +\n \" \\\"user-interface\\\",\\n\" +\n \" \\\"fragment\\\",\\n\" +\n \" \\\"android-orientation\\\"\\n\" +\n \" ],\\n\" +\n \" \\\"owner\\\": {\\n\" +\n \" \\\"reputation\\\": 4,\\n\" +\n \" \\\"user_id\\\": 4835349,\\n\" +\n \" \\\"user_type\\\": \\\"registered\\\",\\n\" +\n \" \\\"profile_image\\\": \\\"https://lh4.googleusercontent.com/-ZFmtDec26j4/AAAAAAAAAAI/AAAAAAAAAC4/RGi5zw-SFao/photo.jpg?sz=128\\\",\\n\" +\n \" \\\"display_name\\\": \\\"jl1992\\\",\\n\" +\n \" \\\"link\\\": \\\"http://stackoverflow.com/users/4835349/jl1992\\\"\\n\" +\n \" },\\n\" +\n \" \\\"is_answered\\\": false,\\n\" +\n \" \\\"view_count\\\": 41,\\n\" +\n \" \\\"answer_count\\\": 2,\\n\" +\n \" \\\"score\\\": -1,\\n\" +\n \" \\\"last_activity_date\\\": 1462761445,\\n\" +\n \" \\\"creation_date\\\": 1462750768,\\n\" +\n \" \\\"question_id\\\": 37105990,\\n\" +\n \" \\\"link\\\": \\\"http://stackoverflow.com/questions/37105990/android-how-do-i-prevent-class-variables-being-cleared-on-orientation-change\\\",\\n\" +\n \" \\\"title\\\": \\\"Android: how do I prevent class variables being cleared on orientation change\\\"\\n\" +\n \" }\\n\" +\n \" ]\";\n Type collectionType = new TypeToken<List<Item>>(){}.getType();\n List<Item> items = gson.fromJson(jsonArray, collectionType);\n System.out.println(items.size());\n for (int i = 0; i < items.size();i++) {\n System.out.println(items.get(i).questionId);\n }\n\n Item[] items2 = gson.fromJson(jsonArray, Item[].class);\n ArrayList<Item> items3 = new ArrayList<Item>(Arrays.asList(items2));\n for (int i = 0; i < items3.size();i++) {\n System.out.println(items3.get(i).questionId);\n }\n\n Result r = gson.fromJson(json, Result.class);\n for (int i = 0; i < r.items.size();i++) {\n System.out.println(r.items.get(i).questionId);\n }\n }", "private static JSONObject buildResourceObject(String type, Resource resource) throws JSONException, IllegalArgumentException {\n if (resource == null) {\n throw new IllegalArgumentException(\"Missing Resource\");\n }\n if (type == null) {\n throw new IllegalArgumentException(\"Missing resource type\");\n }\n if (resource.getId() == null) {\n throw new IllegalArgumentException(\"Missing resource id\");\n }\n\n JSONObject jsonResource = new JSONObject();\n jsonResource.put(KEY_ID, resource.getId());\n jsonResource.put(KEY_TYPE, type);\n jsonResource.put(KEY_ATTRIBUTES, new JSONObject());\n return jsonResource;\n }", "private static FluidMatch deserialize(JsonObject json) {\n String fluidName = GsonHelper.getAsString(json, \"name\");\n Fluid fluid = ForgeRegistries.FLUIDS.getValue(new ResourceLocation(fluidName));\n if (fluid == null || fluid == Fluids.EMPTY) {\n throw new JsonSyntaxException(\"Unknown fluid '\" + fluidName + \"'\");\n }\n int amount = GsonHelper.getAsInt(json, \"amount\");\n return new FluidMatch(fluid, amount);\n }", "public LabTest makeMethod(JsonObject jsonObject) {\n LabTest labTest = new LabTest();\n labTest.setNameOfTest(String.valueOf(jsonObject.get(\"nameOfTest\")).replace('\"', ' ').trim());\n labTest.setNameOfUser(String.valueOf(jsonObject.get(\"nameOfUser\")).replace('\"', ' ').trim());\n labTest.setUserClass(String.valueOf(jsonObject.get(\"userClass\")).replace('\"', ' ').trim());\n labTest.setNameOfMethod(String.valueOf(jsonObject.get(\"nameOfMethod\")).replace('\"', ' ').trim());\n labTest.setMatrix(String.valueOf(jsonObject.get(\"matrix\")).replace('\"', ' ').trim());\n labTest.setCapillary(String.valueOf(jsonObject.get(\"capillary\")).replace('\"', ' ').trim());\n labTest.setCapillaryTotalLength(String.valueOf(jsonObject.get(\"capillaryTotalLength\")).replace('\"', ' ').trim());\n labTest.setCapillaryEffectiveLength(String.valueOf(jsonObject.get(\"capillaryEffectiveLength\")).replace('\"', ' ').trim());\n labTest.setFrequency(String.valueOf(jsonObject.get(\"frequency\")).replace('\"', ' ').trim());\n labTest.setInjectionMethod(String.valueOf(jsonObject.get(\"injectionMethod\")).replace('\"', ' ').trim());\n labTest.setInjectionChoice(String.valueOf(jsonObject.get(\"injectionChoice\")).replace('\"', ' ').trim());\n labTest.setInjectionChoiceValue(String.valueOf(jsonObject.get(\"injectionChoiceValue\")).replace('\"', ' ').trim());\n labTest.setInjectionChoiceUnit(String.valueOf(jsonObject.get(\"injectionChoiceUnit\")).replace('\"', ' ').trim());\n labTest.setInjectionTime(String.valueOf(jsonObject.get(\"injectionTime\")).replace('\"', ' ').trim().split(\" \")[0]);\n labTest.setCurrent(\"-15 µA\"); // Actually this is not important.\n labTest.setHvValue(String.valueOf(jsonObject.get(\"hvValue\")).replace('\"', ' ').trim().split(\" \")[0]);\n\n ObservableList<Analyte> analytes = FXCollections.observableArrayList();\n JsonElement analyteJson = jsonObject.get(\"analytes\");\n JsonArray jsonArray = analyteJson.getAsJsonArray();\n for (int i = 0; i < jsonArray.size(); i++) {\n JsonObject subObject = jsonArray.get(i).getAsJsonObject();\n String analyteName = String.valueOf(subObject.get(\"analyte\").getAsJsonObject().get(\"value\")).replace('\"', ' ').trim();\n Integer analyteValue = Integer.valueOf(String.valueOf(subObject.get(\"concentration\").getAsJsonObject().get(\"value\")).replace('\"', ' ').trim());\n Analyte analyte = new Analyte(analyteName, String.valueOf(analyteValue));\n analytes.add(analyte);\n }\n labTest.setAnalytes(analytes);\n\n labTest.setAnalyteUnit(String.valueOf(jsonObject.get(\"analyteUnit\")).replace('\"', ' ').trim());\n\n ObservableList<Analyte> bges = FXCollections.observableArrayList();\n JsonElement bgeJson = jsonObject.get(\"bge\");\n JsonArray bgeArray = bgeJson.getAsJsonArray();\n for (int i = 0; i < bgeArray.size(); i++) {\n JsonObject subObject = bgeArray.get(i).getAsJsonObject();\n String bgeName = String.valueOf(subObject.get(\"analyte\").getAsJsonObject().get(\"value\")).replace('\"', ' ').trim();\n Integer bgeValue = Integer.valueOf(String.valueOf(subObject.get(\"concentration\").getAsJsonObject().get(\"value\")).replace('\"', ' ').trim());\n Analyte bge = new Analyte(bgeName, String.valueOf(bgeValue));\n bges.add(bge);\n }\n labTest.setBge(bges);\n\n labTest.setBgeUnit(String.valueOf(jsonObject.get(\"bgeUnit\")).replace('\"', ' ').trim());\n labTest.setDescription(String.valueOf(jsonObject.get(\"description\")).replace('\"', ' ').trim());\n labTest.setTestTime(String.valueOf(jsonObject.get(\"testTime\")).replace('\"', ' ').trim());\n JsonArray testArray = jsonObject.get(\"testData\").getAsJsonArray();\n ArrayList<String> testData = new ArrayList<String>();\n if (testArray.size() > 0) {\n for (int i = 0; i < testArray.size(); i++) {\n String string = String.valueOf(testArray.get(i));\n testData.add(string);\n }\n }\n labTest.setTestData(testData);\n return labTest;\n }", "@Override\r\n\tpublic Response buildResponse(JSONObject json) {\r\n\r\n\t\tResponseBuilder builder = Response.ok(json);\r\n\t\tbuilder.header(CROS, STAR);\r\n\t\treturn builder.build();\r\n\t}", "public JsonDataset(URL url) {\r\n\t\tsuper(url);\r\n\t\tlogger.trace(\"JsonDataset(URL) - start\");\r\n\t\tlogger.trace(\"JsonDataset(URL) - end\");\r\n\t}", "void mo28373a(JSONObject jSONObject);", "private Place extractFromJSON(JSONObject jo) {\n Place place = new Place();\n place.id = jo.optString(\"id\");\n place.name = jo.optString(\"name\");\n\n JSONObject locationObject = jo.optJSONObject(\"location\");\n if (locationObject != null) {\n place.lat = locationObject.optDouble(\"lat\");\n place.lng = locationObject.optDouble(\"lng\");\n place.distance = locationObject.optDouble(\"distance\");\n\n JSONArray addressArray = locationObject.optJSONArray(\"formattedAddress\");\n if (addressArray != null) {\n StringBuilder address = new StringBuilder();\n int arrLen = addressArray.length();\n for (int i = 0; i < arrLen; i++) {\n String value = addressArray.optString(i);\n if (i != 0) {\n address.append(\", \");\n } else {\n place.shortAddress = value;\n }\n address.append(value);\n\n }\n\n place.fullAddress = address.toString();\n }\n }\n\n JSONArray categoryArray = jo.optJSONArray(\"categories\");\n if (categoryArray != null) {\n if (categoryArray.length() > 0) {\n try {\n place.categoryName = categoryArray.optJSONObject(0).optString(\"name\");\n } catch (Exception ignore) {\n\n }\n }\n }\n\n return place;\n }" ]
[ "0.59461826", "0.5847575", "0.58230066", "0.56619817", "0.5476822", "0.5469774", "0.54504895", "0.54004353", "0.53947484", "0.53731525", "0.535509", "0.53076404", "0.5306257", "0.53029716", "0.5298567", "0.5282667", "0.5264242", "0.52641815", "0.5246649", "0.52371716", "0.5211171", "0.5208316", "0.51660585", "0.5160194", "0.515269", "0.5127938", "0.51183", "0.51181537", "0.511087", "0.51062673", "0.5102845", "0.50884694", "0.5076121", "0.50384605", "0.50376993", "0.50344414", "0.50249696", "0.50200415", "0.5019965", "0.50068384", "0.49977836", "0.49917108", "0.49911112", "0.4983046", "0.49783128", "0.49601084", "0.4958726", "0.4933302", "0.49137253", "0.49069896", "0.49005544", "0.48902196", "0.48821735", "0.488186", "0.48726717", "0.4833958", "0.48283443", "0.48283353", "0.48277357", "0.48246473", "0.4820312", "0.48178545", "0.48177466", "0.48045272", "0.4802763", "0.4802337", "0.47967044", "0.47893074", "0.47879168", "0.47846448", "0.47774112", "0.4770526", "0.47590533", "0.4753899", "0.47507617", "0.47481605", "0.47431728", "0.47409493", "0.47313607", "0.4728431", "0.47203973", "0.47153953", "0.4710297", "0.4707698", "0.47042972", "0.46959054", "0.4686987", "0.46844608", "0.46817657", "0.46737352", "0.4673699", "0.46670774", "0.46617806", "0.4659483", "0.4656749", "0.4655539", "0.46503964", "0.4649436", "0.4649238", "0.4641831" ]
0.70561147
0
sets the neighboring stars for a star.
private static void setStarNeighbours(Galaxy galaxy, JSONArray stars) { for (int y = 0; y<stars.length(); y++) { JSONArray neighbours = stars.getJSONObject(y).getJSONArray("neighbour-stars"); //add internal neighbours for(int i = 0; i<neighbours.length(); i++){ int star = (int) neighbours.get(i); galaxy.getStar(y+1).addNeighbour(galaxy.getStar(star)); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setStarArray(int i, stars.StarType star);", "private void resetStars()\r\n\t{\r\n\t\tfor(Star s : stars)\r\n\t\t{\r\n\t\t\ts.visited = false;\r\n\t\t}\r\n\t}", "void setStarList(stars.StarListDocument.StarList starList);", "public void setStars(float stars) {\n this.stars = stars;\n }", "public void setStarCount(Integer starCount) {\n this.starCount = starCount;\n }", "private void astarSetup(AStarNode end){\n\tfor(AStarNode node : getNodes()){\n node.setVisited(false);\n node.setFound(false);\n node.updateDist(Float.POSITIVE_INFINITY);\n\t}\n }", "void setStarArray(stars.StarType[] starArray);", "public void setRating(int rating) {\n if (rating > starCount) {\n rating = starCount;\n }\n int lastRating = this.rating;\n this.rating = rating;\n for (int i = 0; i < getChildCount(); i++) {\n ImageView iv = (ImageView) getChildAt(i);\n if (i < rating) {\n iv.setImageResource(checkedStarDrawable);\n } else {\n iv.setImageResource(normalStarDrawable);\n }\n }\n if (listener != null && lastRating != rating) {\n listener.onRatingChanged(rating, starCount);\n }\n }", "public void setNeighbors(){\t\t\t\t\n\t\tint row = position[0];\n\t\tint column = position[1];\t\t\n\t\tif(column+1 < RatMap.SIDELENGTH){\n\t\t\teastCell = RatMap.getMapCell(row,column+1);\t\t\t\n\t\t}else{\n\t\t\teastCell = null;\n\t\t}\t\n\t\tif(row+1 < RatMap.SIDELENGTH){\n\t\t\tnorthCell = RatMap.getMapCell(row+1,column);\n\t\t}else{\n\t\t\tnorthCell = null;\n\t\t}\t\n\t\tif(column-1 > -1){\n\t\t\twestCell = RatMap.getMapCell(row, column-1);\t\t\t\n\t\t}else{\n\t\t\twestCell = null;\n\t\t}\n\t\tif(row-1 > -1){\n\t\t\tsouthCell = RatMap.getMapCell(row-1, column);\n\t\t}else{\n\t\t\tsouthCell = null;\n\t\t}\n\t}", "private void setNeighbors() {\n\t\tfor (int i = 0; i < getNumRows(); i++) {\n\t\t\tfor (int j = 0; j < getNumCols(); j++) {\n\t\t\t\tCell c = getCurrentGrid()[i][j];\n\t\t\t\tsetNeighborsForCell(c);\n\t\t\t}\n\t\t}\n\t}", "private void adjustStarData()\n\t{\n\t\tfor(int i = 0; i < starList.size(); i++)\n\t\t{\n\t\t\tStar aStar = starList.get(i);\n\t\t\tdouble rightAsc = aStar.getRA();\n\t\t\tdouble hourAngle = theCalculator.findHourAngle(rightAsc, userLocalTime);\n\t\t\taStar.setHourAngle(hourAngle);\n\t\t\tstarList.set(i, aStar);\n\t\t}\n\t}", "public void setStarcount(Integer starcount) {\n this.starcount = starcount;\n }", "public void addStar(Star s) {\n star.add(s);\n }", "private void setNeighboringMines(){\n\t\t//cycle the board\n\t\tfor (int r = 0; r < board.length; r++)\n\t\t\tfor (int c = 0; c < board[r].length; c++){\n\t\t\t\tint neighborCount = 0;\n\t\t\t\tif(!board[r][c].isMine()) {\n\t\t\t\t\t//checks if there is mines touching\n\t\t\t\t\tneighborCount = neighboringMines(r, c);\n\t\t\t\t\tif (neighborCount > 0) {\n\t\t\t\t\t\tboard[r][c].setIsNeighboringMine(true);\n\t\t\t\t\t\tboard[r][c].setNumNeighboringMines\n\t\t\t\t\t\t\t\t(neighborCount);\n\t\t\t\t\t} else if (neighborCount == 0) {\n\t\t\t\t\t\tboard[r][c].setNumNeighboringMines(0);\n\t\t\t\t\t\tboard[r][c].setIsNeighboringMine(false);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void drawStars()\r\n\t{\r\n\t\tIterator<Star> iterator = stars.iterator();\r\n\t\twhile (iterator.hasNext())\r\n\t\t{\r\n\t\t\tStar s = iterator.next();\r\n\t\t\tstarCircles.add(drawStar(s.x, s.y));\r\n\t\t}\r\n\t}", "stars.StarType insertNewStar(int i);", "private void initStars()\r\n\t{\r\n\t\tRandom rng = new Random();\r\n\t\tfor (int i = 0; i < amountOfStars; i++)\r\n\t\t{\r\n\t\t\tint x = rng.nextInt(width);\r\n\t\t\tint y = rng.nextInt(height);\r\n\t\t\tstars.add(new Star(x, y));\r\n\t\t}\r\n\t}", "public void setNeighbor(Directions dir, Field neighbor){\n neighbors[dir.ordinal()] = neighbor;\n }", "public void setEdge(Student curr, Student neighbor, Integer price) {\n curr.setNeighborAndPrice(neighbor, price);\n }", "public void setRewardStar(Integer rewardStar) {\n this.rewardStar = rewardStar;\n }", "private void setScanStars(String filled, String notFilled, String filledGold)\t{\n\t\t\n\t\tint idFilled = getResources().getIdentifier(filled, \"drawable\", \"com.loyal3.loyal3\");\n\t\tint idNotFilled = getResources().getIdentifier(notFilled, \"drawable\", \"com.loyal3.loyal3\");\n\t//\tint idFilledGold = getResources().getIdentifier(filledGold, \"drawable\", \"com.loyal3.loyal3\");\n\t\t\n\t\t\n\tif(Integer.parseInt(scanCount) < Integer.parseInt(maxScans)) {\t\n\t\t\n\t\t//Top Row \n\t\tLinearLayout llStarsTopRow = (LinearLayout) findViewById(R.id.llStars1);\n\t\tLinearLayout llStarsBottomRow = (LinearLayout) findViewById(R.id.llStars2);\n\n\t\tfor(int i = 0; i < (Integer.parseInt(maxScans)-(Integer.parseInt(maxScans)/2));i++)\t{\n\n\t\t\tstarCounter = i;\n\t\t\tImageView iv = new ImageView(this);\n\n\n\t/*\t\tif(Integer.parseInt(scanCount) == Integer.parseInt(maxScans))\t{\n\t\t\t\tiv.setImageResource(idFilledGold);\n\t\t\t}\n\t\t\telse*/ if( i < Integer.parseInt(scanCount))\t{\n\t\t\t\tiv.setImageResource(idFilled);\n\t\t\t}\t\n\t\t\telse\t{\n\t\t\t\tiv.setImageResource(idNotFilled);\n\t\t\t}\n\n\t\t\tiv.setLayoutParams(new LinearLayout.LayoutParams((int)(width/(Integer.parseInt(maxScans)-(Integer.parseInt(maxScans)/2))),(int)(height*(0.08))));\n\t\t\tiv.setBackgroundColor(Color.TRANSPARENT);\n\n\t\t\tllStarsTopRow.addView(iv);\n\t\t}\n\n\t\t//Bottom Row\n\t\tfor(int i = starCounter+1; i < (Integer.parseInt(maxScans));i++)\t{\n\t\t\tImageView iv = new ImageView(this);\n\n\n\t\t/*\tif(Integer.parseInt(scanCount) == Integer.parseInt(maxScans))\t{\n\t\t\t\tiv.setImageResource(idFilledGold);\n\t\t\t}\n\t\t\telse*/ if( i < Integer.parseInt(scanCount))\t{\n\t\t\t\tiv.setImageResource(idFilled);\n\t\t\t}\t\n\t\t\telse\t{\n\t\t\t\tiv.setImageResource(idNotFilled);\n\t\t\t}\n\n\t\t\tiv.setLayoutParams(new LinearLayout.LayoutParams((int)(width/(Integer.parseInt(maxScans)/2)),(int)(height*(0.08))));\n\t\t\tiv.setBackgroundColor(Color.TRANSPARENT);\n\n\t\t\tllStarsBottomRow.addView(iv);\n\n\t\t}\n\t}\n\n\t\tLinearLayout llMainDisplay = (LinearLayout) findViewById(R.id.llMainDisplay);\n\n\t\tthis.setContentView(llMainDisplay);\t\n\t}", "private NFA star(NFA base) {\n // new simple nfa to be returned\n NFA starBase = new NFA();\n NFAState startS = new NFAState(String.valueOf(stateInc++));\n NFAState endS = new NFAState(String.valueOf(stateInc++));\n starBase.addStartState(startS.getName());\n starBase.addFinalState(endS.getName());\n //Add all states from root to starBase\n starBase.addNFAStates(base.getStates());\n //transitions need to be empty because of star operator\n starBase.addTransition(startS.getName(), 'e', endS.getName());\n starBase.addTransition(endS.getName(), 'e', base.getStartState().getName());\n //new starting state should connect to base\n starBase.addTransition(startS.getName(), 'e', base.getStartState().getName());\n starBase.addAbc(base.getABC());\n\n Iterator<State> itr = base.getFinalStates().iterator();\n while (itr.hasNext()) {\n State state = itr.next();\n starBase.addTransition(state.getName(), 'e', endS.getName());\n Iterator<State> itr2 = starBase.getFinalStates().iterator();\n while (itr2.hasNext()) {\n State state2 = itr2.next();\n if (state2.getName().equals(state.getName())) {\n ((NFAState) state2).setNonFinal();\n }\n }\n }\n return starBase;\n }", "private void init_star() {\n\t\tstar_11 = (ImageView) findViewById(R.life.service_star1);\r\n\t\tstar_12 = (ImageView) findViewById(R.life.service_star2);\r\n\t\tstar_13 = (ImageView) findViewById(R.life.service_star3);\r\n\t\tstar_14 = (ImageView) findViewById(R.life.service_star4);\r\n\t\tstar_15 = (ImageView) findViewById(R.life.service_star5);\r\n\t\tstar_21 = (ImageView) findViewById(R.life.environment_star1);\r\n\t\tstar_22 = (ImageView) findViewById(R.life.environment_star2);\r\n\t\tstar_23 = (ImageView) findViewById(R.life.environment_star3);\r\n\t\tstar_24 = (ImageView) findViewById(R.life.environment_star4);\r\n\t\tstar_25 = (ImageView) findViewById(R.life.environment_star5);\r\n\t\tstar_31 = (ImageView) findViewById(R.life.pricecost_star1);\r\n\t\tstar_32 = (ImageView) findViewById(R.life.pricecost_star2);\r\n\t\tstar_33 = (ImageView) findViewById(R.life.pricecost_star3);\r\n\t\tstar_34 = (ImageView) findViewById(R.life.pricecost_star4);\r\n\t\tstar_35 = (ImageView) findViewById(R.life.pricecost_star5);\r\n\t}", "public void setRateStar(int value, Dialog dialog) {\n\t\tImageView[] imgViewArr = new ImageView[] { (ImageView) dialog.findViewById(R.id.ratingview1),\n\t\t\t\t(ImageView) dialog.findViewById(R.id.ratingview2), (ImageView) dialog.findViewById(R.id.ratingview3) };\n\n\t\tfor (int i = 0; i < value; ++i) {\n\t\t\timgViewArr[i].setImageResource(R.drawable.star_found);\n\t\t}\n\n\t\tfor (int i = value; i < 3; ++i) {\n\t\t\timgViewArr[i].setImageResource(R.drawable.star_lost);\n\t\t}\n\n\t}", "public void changingNeighbor() {\n }", "public void set_neighbors(Cell[] neighbors)\n\t{\n\t\tthis.neighbors = neighbors;\n\t}", "public void star(float x, float y, float r, float R) {\n float angle = TWO_PI / 5;\n float halfAngle = angle/2.0f;\n beginShape();\n noStroke();\n for (float a = 0; a < TWO_PI; a += angle) {\n float sx = x + cos(a) * r;\n float sy = y + sin(a) * r;\n vertex(sx, sy);\n sx = x + cos(a+halfAngle) * R;\n sy = y + sin(a+halfAngle) * R;\n vertex(sx, sy);\n }\n endShape(CLOSE);\n}", "public void increaseStarsBy(final int amount) {\n stars += amount;\n }", "public void setNeighbors(Field[] neighbors) {\n this.neighbors = neighbors;\n }", "private void setNeighbors()\r\n {\r\n for (int x = 0; x < length+2; ++x)\r\n {\r\n for (int y = 0; y < width+2; ++y)\r\n {\r\n // North\r\n if (!this.board[x][y].northwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x][y-1]);\r\n }\r\n // South\r\n if (!this.board[x][y].southwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x][y+1]);\r\n }\r\n // East\r\n if (!this.board[x][y].eastwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x+1][y]);\r\n }\r\n // West\r\n if (!this.board[x][y].westwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x-1][y]);\r\n }\r\n }\r\n }\r\n }", "void increaseStarsBy(final int amount);", "private void initStars( final double costMatrix[][], final int[] starsByRow, final int[] starsByCol )\n\t{\n\n\t\tfinal int[] rowHasStarredZero = new int[ costMatrix.length ];\n\t\tfinal int[] colHasStarredZero = new int[ costMatrix[ 0 ].length ];\n\n\t\tfor ( int i = 0; i < costMatrix.length; i++ )\n\t\t{\n\t\t\tfor ( int j = 0; j < costMatrix[ i ].length; j++ )\n\t\t\t{\n\t\t\t\tif ( 0 == costMatrix[ i ][ j ] && 0 == rowHasStarredZero[ i ] && 0 == colHasStarredZero[ j ] )\n\t\t\t\t{\n\t\t\t\t\tstarsByRow[ i ] = j;\n\t\t\t\t\tstarsByCol[ j ] = i;\n\t\t\t\t\trowHasStarredZero[ i ] = 1;\n\t\t\t\t\tcolHasStarredZero[ j ] = 1;\n\t\t\t\t\tbreak; // move onto the next row\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setMark(int neighbour, boolean mark){\n\tedgMark[neighbour] = mark;\n }", "public AStar2D(AStar2D aStar) {\n super(aStar.instanceGridCopy());\n }", "public void setNeighbors(Cell n, Cell s, Cell w, Cell e) {\n setNeiNorth(n);\n setNeiSouth(s);\n setNeiWest(w);\n setNeiEast(e);\n }", "public void setStar5Count(Integer star5Count) {\n this.star5Count = star5Count;\n }", "private void asignNeighbours(String split [], String planetName){\n\t\tdouble length = Double.parseDouble(split[1]);\n\t\tboolean danger = Boolean.parseBoolean(split[2]);\n\t\t\n\t\tif(factoryMap.containsKey(planetName)&&factoryMap.containsKey(split[0])){\n\t\t\tfactoryMap.get(planetName).addNeghbour(new Path(length, factoryMap.get(split[0]), danger));\t\n\t\t}\n\t\tif(factoryMap.containsKey(planetName) && galaxy.containsKey(split[0])){\n\t\t\tfactoryMap.get(planetName).addNeghbour(new Path(length, galaxy.get(split[0]), danger));\t\n\t\t}\n\t\tif(galaxy.containsKey(planetName) && factoryMap.containsKey(split[0])){\n\t\t\tgalaxy.get(planetName).addNeghbour(new Path(length, factoryMap.get(split[0]), danger));\t\n\t\t}\n\t\tif(galaxy.containsKey(planetName) && galaxy.containsKey(split[0])){\n\t\t\tgalaxy.get(planetName).addNeghbour(new Path(length, galaxy.get(split[0]), danger));\n\t\t}\n\t}", "public final void mSTAR() throws RecognitionException {\n try {\n int _type = STAR;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2877:3: ( '*' )\n // C:\\\\Documents and Settings\\\\D043530\\\\runtime-workspace\\\\com.sap.ap.cts.editor\\\\generated\\\\generated\\\\Binding.g:2878:3: '*'\n {\n match('*'); if (state.failed) return ;\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "private static void setGalaxyNeighbours(ArrayList<Galaxy> galaxies, JSONArray jsongalaxies) {\n for(int i = 0; i<jsongalaxies.length(); i++) {\n JSONArray neighbours = jsongalaxies.getJSONObject(i).getJSONArray(\"neighbours\");\n // System.out.println(\"galaxy \" + galaxies.get(i).getName() + \" has neighbours: \");\n for(int y = 0; y<neighbours.length(); y++) {\n char galaxyname = neighbours.get(y).toString().charAt(0);\n //System.out.println(galaxyname);\n for(Galaxy galaxy : galaxies) {\n if(galaxy.getName() == galaxyname) {\n galaxies.get(i).addNeighbour(galaxy);\n }\n }\n }\n }\n }", "void removeStar(int i);", "public void addStar() {\n\n\t\t\n\t\tString html = \"<img id='award-big-button' src='/gwt-resources/images/awards/star_big.png' class='animated \" + getRandomAnimationIn() + \"'/>\";\n\t\t_starPanel.add(new HTML(html));\n\t\tnew Timer() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinal Element bigImage = DOM.getElementById(\"award-big-button\");\n\t\t\t\tif(bigImage != null) {\n\t\t\t\t\tbigImage.addClassName(\"animated slideOutUp\");\n\t\t\t\t\tnew Timer() {\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tbigImage.removeFromParent();\n\t\t\t\t\t\t}\n\t\t\t\t\t}.schedule(1500);\n\t\t\t\t}\n\t\t\t}\n\t\t}.schedule(2000);\n\t\t\n\t\tsetStars(_stars + 1, true);\n\t}", "public void setEdge(int i, int j, int wt){\r\n\t\tif(wt!=0){\r\n\t\t\tSystem.out.println(\"Cannot set weight to 0!\");\r\n\t\t}\r\n\t\telse{\r\n\t\t\tif(matrix[i][j]==0){\r\n\t\t\t\tnumEdge++;\r\n\t\t\t\tmatrix[i][j]=wt;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "private void setSaw(int i, int j) {\n\t\tsquares[i][j].setIcon(resizeIcon(circleEmpty, squares[i][j].getWidth(), squares[i][j].getHeight()));\n\t\trow = i;\n\t\tcol = j;\n\t\tplayerMoves.setStartPoint(i, j);\n\t\tplayerTurn = 2;\n\t\tplayerTurnLbl.setText(\"Player \" + playerTurn + \"'s Turn \\t\");\n\t}", "public abstract void setCells(int x, int y, int [][] pattern);", "stars.StarListDocument.StarList addNewStarList();", "public static void stars(int s){\n\n for(int i=0;i<s;i++){\n System.out.print(\"*\");\n }\n }", "public void initializeNeighbors() {\n\t\tfor (int r = 0; r < getRows(); r++) {\n\t\t\tfor (int c = 0; c < getCols(); c++) {\n\t\t\t\tList<Cell> nbs = new ArrayList<>();\n\t\t\t\tinitializeNF(shapeType, r, c);\n\t\t\t\tmyNF.findNeighbors();\n\t\t\t\tfor (int[] arr : myNF.getNeighborLocations()){\n\t\t\t\t\tif (contains(arr[0], arr[1])){\n\t\t\t\t\t\tnbs.add(get(arr[0], arr[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tget(r, c).setNeighbors(nbs);\n\t\t\t}\n\t\t}\n\t}", "private void drawStar(Graphics2D g2, Polygon starPolygon, final int x, final int y) {\r\n\r\n Polygon translatedPolygon = new Polygon();\r\n\r\n // Iterate over polygon and add x and y coordinates to shift it\r\n for (int i = 0; i < starPolygon.npoints; i++) {\r\n translatedPolygon.addPoint(starPolygon.xpoints[i] + x, starPolygon.ypoints[i] + y);\r\n }\r\n\r\n g2.fillPolygon(translatedPolygon);\r\n }", "private void setShips() {\n //This clears the board. To \"Invalidate\"\n for (int x = 0; x < maxN; x++) {\n for (int y = 0; y < maxN; y++) {\n ivCell[x][y].setBackgroundResource(gridID);\n }\n }\n\n for (Ship s : ships) {\n for (int i = 0; i < s.getShipSize(); i++) {\n if(player)ivCell[s.getBodyLocationPoints()[i].x][s.getBodyLocationPoints()[i].y].setBackgroundResource(s.getBodyResources()[i]);\n updateOccupiedCells(s.getBodyLocationPoints());\n }\n }\n\n }", "stars.StarType addNewStar();", "void setMaze(IMaze maze);", "public synchronized void setCurrentRssi(int rssi) {\n currentSignalStrength = rssi;\n }", "public A_star_search(Node start, Node end) {\r\n initial_node = start;\r\n end_node = end;\r\n cost = 0;\r\n }", "public Star ()\r\n {\r\n\t\tint row = 20; //set the row to 20\n\t\tint col = 80; //set the column to 80\n\t\tString [][] sky = new String [row][col]; //create a 2D array. 20 by 80\n\n\t\t//fill the grid\n\t\tfor (int k = 0; k<100; k++)\n\t\t{ //iterate 100 times, making 100 random array to be filled\n\t\t\tsky[(int)(Math.random()*20)][(int)(Math.random()*80)]= \"+\"; //Assigning + to random array index\n\t\t}\n\n\t\t//Go through every value\n for (int i =0; i < 20; i++)\n\t\t{\n for (int j = 0; j < 80; j++)\n\t\t\t{\n if(sky[i][j]==null) //if the array that is checked is null,\n\t\t\t\t{\n\t\t\t\t\tsky[i][j]=\" \"; // replace it with a space \" \"\n\t\t\t\t}\n }\n }\n\t\t\n\t\tfor (int i =0; i < 20; i++) {\n\t\t\tfor (int j = 0; j < 80; j++) {\n\t\t\t\tSystem.out.println(sky[i][j]);\n\t\t\t}\n\t\tSystem.out.println(\"\");\n\t\t}\r\n }", "private void updateUserRatingStars(Long currentKey) {\r\n\t\tSwagItemRating swagItemRatingForKey = loginInfo.getSwagItemRating(currentKey);\r\n\t\tInteger userRating = (swagItemRatingForKey==null) ? 0 : swagItemRatingForKey.getUserRating();\r\n\t\t\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tif (i<userRating) {\r\n\t\t\t\tstarImages.get(i).setSrc(\"/images/starOn.gif\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tstarImages.get(i).setSrc(\"/images/starOff.gif\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void setNeighbours(Cell[] neighbours) throws IllegalArgumentEvent {\r\n\t\tif(neighbours.length != 6){\r\n\t\t\tthrow new IllegalArgumentEvent(\"incorrect number of neighbours\");\r\n\t\t}\r\n\t\tthis.neighbours = neighbours;\r\n\t}", "private void mutate() {\n\t\tfor (int i = 0; i < population; ++i) {\n\t\t\tpopulationArray.set(i, populationArray.get(i).generateNeighbor());\n\t\t}\n\t}", "private void setMines(){\n Random random = new Random();\r\n int counter = mines;\r\n while(counter>0){\r\n int rx = random.nextInt(this.x); //without +1 because it can be 0\r\n int ry = random.nextInt(this.y);\r\n if( ! this.grid[rx][ry].isMine() ){\r\n this.grid[rx][ry].setMine();\r\n counter--; \r\n }\r\n }\r\n \r\n }", "public AStarNode(Node node)\n \t{\n \t\tthis.node = node;\n \t}", "public void addStar(double mass) throws Exception {\n star.add(new Star(mass));\n }", "private void setCell(int x, int y, int newValue) {\n hiddenGrid[x][y] = newValue;\n }", "void setAdjForFourthType() {\n matrixOfSquares[0][0].setCardinalSquare(null, matrixOfSquares[1][0] , null, matrixOfSquares[0][1]);\n matrixOfSquares[0][1].setCardinalSquare(null, matrixOfSquares[1][1] , matrixOfSquares[0][0], matrixOfSquares[0][2]);\n matrixOfSquares[0][2].setCardinalSquare(null,matrixOfSquares[1][2] , matrixOfSquares[0][1], null);\n matrixOfSquares[1][0].setCardinalSquare(matrixOfSquares[0][0], matrixOfSquares[2][0], null, null );\n matrixOfSquares[1][1].setCardinalSquare(matrixOfSquares[0][1], matrixOfSquares[2][1], null, matrixOfSquares[1][2] );\n matrixOfSquares[1][2].setCardinalSquare(matrixOfSquares[0][2] , null, matrixOfSquares[1][1], matrixOfSquares[1][3]);\n matrixOfSquares[1][3].setCardinalSquare(null, matrixOfSquares[2][3], matrixOfSquares[1][2], null);\n matrixOfSquares[2][0].setCardinalSquare(matrixOfSquares[1][0],null, null, matrixOfSquares[2][1] );\n matrixOfSquares[2][1].setCardinalSquare(matrixOfSquares[1][1], null, matrixOfSquares[2][0], matrixOfSquares[2][2] );\n matrixOfSquares[2][2].setCardinalSquare(null, null, matrixOfSquares[2][1], matrixOfSquares[2][3] );\n matrixOfSquares[2][3].setCardinalSquare(matrixOfSquares[1][3], null, matrixOfSquares[2][2], null);\n\n }", "public void setMark() {\n\t_source.setMark();\n\t_markedNode = _current;\n }", "public boolean isInStar(){\n\treturn (synState == SynCT.IN_THE_STAR);\n }", "@Override\n public void changedStarState(final INaviModule module, final boolean isStared) {\n }", "public boolean toggleStar(Context ctx) {\n Database db = new Database(ctx);\n boolean isStarred = this.isStarred();\n\n this.setStarred(!isStarred);\n\n /* persist the star value to the db */\n if (isStarred) {\n db.unstarContact(this);\n } else {\n db.starContact(this);\n }\n\n return !isStarred;\n }", "public void presetPattern(){\n // clear all the cells\n for (int i = 0; i < game.grid.length; i++){\n for (int j = 0; j<game.grid[0].length; j++){\n game.grid[i][j] = false;\n }\n }\n \n // change specific cells to live\n for (int i = 7; i < 12; i++) {\n for (int j = 7; j < 12; j++) {\n game.grid[i][j] = true;\n }\n }\n \n // remove middle cell\n game.grid[9][9] = false;\n \n repaint();\n }", "private void setShips(){\n\t\t\n\t\tint x,y;\n\t\tboolean orientacja;\n\t\tRandom generator = new Random();\n\t\t\n\t\tint ilosc = 1;\n\t\tint j = 0;\n\t\tfor(int i = 4; i > 0 ; i--){\n\t\t\twhile( j < ilosc ){\n\t\t\t\tx = generator.nextInt( 13 );\t\t\n\t\t\t\ty = generator.nextInt( 13 );\n\t\t\t\torientacja = generator.nextBoolean();\n\t\t\t\tif( isPossibleAddShip(x, y, i, orientacja) ) j++;\t\n\t\t\t}\n\t\tilosc++;\n\t\tj=0;\n\t\t}\n\t\t\n\t}", "public void reduceStarsBy(final int amount) {\n stars = Math.max(0, stars - amount);\n }", "public void sunSet()\n {\n sunset1.makeInvisible();\n sun.slowMoveHorizontal(-180);\n ground.makeVisible();\n sun.slowMoveVertical(200);\n ground.makeVisible();\n fruitDrop();\n }", "private static void AStar(){\n open.add(grid[startI][startJ]);\n\n Cell current;\n\n while(true){\n current = open.poll();\n if(current==null)break;\n closed[current.i][current.j]=true;\n\n if(current.equals(grid[endI][endJ])){\n return;\n }\n\n Cell t;\n if(current.i-1>=0){\n t = grid[current.i-1][current.j];\n checkAndUpdateCost(current, t, current.finalCost+V_H_COST);\n\n if(current.j-1>=0){\n t = grid[current.i-1][current.j-1];\n checkAndUpdateCost(current, t, current.finalCost+DIAGONAL_COST);\n }\n\n if(current.j+1<grid[0].length){\n t = grid[current.i-1][current.j+1];\n checkAndUpdateCost(current, t, current.finalCost+DIAGONAL_COST);\n }\n }\n\n if(current.j-1>=0){\n t = grid[current.i][current.j-1];\n checkAndUpdateCost(current, t, current.finalCost+V_H_COST);\n }\n\n if(current.j+1<grid[0].length){\n t = grid[current.i][current.j+1];\n checkAndUpdateCost(current, t, current.finalCost+V_H_COST);\n }\n\n if(current.i+1<grid.length){\n t = grid[current.i+1][current.j];\n checkAndUpdateCost(current, t, current.finalCost+V_H_COST);\n\n if(current.j-1>=0){\n t = grid[current.i+1][current.j-1];\n checkAndUpdateCost(current, t, current.finalCost+DIAGONAL_COST);\n }\n\n if(current.j+1<grid[0].length){\n t = grid[current.i+1][current.j+1];\n checkAndUpdateCost(current, t, current.finalCost+DIAGONAL_COST);\n }\n }\n }\n }", "public void setWeights() {\n for (Square[] square : squares) {\n for (Square square1 : square) {\n try {\n int i = Integer.parseInt(square1.getText());\n square1.setV(new Vertex(square1.getXcoor(), square1.getYcoor(), i));\n } catch (NumberFormatException e) {\n square1.setV(new Vertex(square1.getXcoor(), square1.getYcoor(), 1));\n }\n }\n }\n }", "public void setAttendStar(Integer attendStar) {\n this.attendStar = attendStar;\n }", "void setAdjForFirstType() {\n matrixOfSquares[0][0].setCardinalSquare(null, matrixOfSquares[1][0] , null, matrixOfSquares[0][1]);\n matrixOfSquares[0][1].setCardinalSquare(null, null , matrixOfSquares[0][0], matrixOfSquares[0][2]);\n matrixOfSquares[0][2].setCardinalSquare(null,matrixOfSquares[1][2] , matrixOfSquares[0][1], null);\n matrixOfSquares[1][0].setCardinalSquare(matrixOfSquares[0][0], null, null, matrixOfSquares[1][1] );\n matrixOfSquares[1][1].setCardinalSquare(null, matrixOfSquares[2][1], matrixOfSquares[1][0], matrixOfSquares[1][2] );\n matrixOfSquares[1][2].setCardinalSquare(matrixOfSquares[0][2] , null, matrixOfSquares[1][1], matrixOfSquares[1][3]);\n matrixOfSquares[1][3].setCardinalSquare(null, matrixOfSquares[2][3], matrixOfSquares[1][2], null);\n matrixOfSquares[2][1].setCardinalSquare( matrixOfSquares[1][1], null, null, matrixOfSquares[2][2] );\n matrixOfSquares[2][2].setCardinalSquare(null, null, matrixOfSquares[2][1], matrixOfSquares[2][3] );\n matrixOfSquares[2][3].setCardinalSquare(matrixOfSquares[1][3], null, matrixOfSquares[2][2], null);\n }", "public void DaneStartowe() {\n\t\tSystem.out.println(\"DaneStartowe\");\n\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(ZapisOdczyt.getPopulacjaStartowaNiewolnicy());\n\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(ZapisOdczyt.getPopulacjaStartowaNiewolnicy());\n\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(ZapisOdczyt.getPopulacjaStartowaRzemieslnicy());\n\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(ZapisOdczyt.getPopulacjaStartowaRzemieslnicy());\n\t\tPlansza.getArystokrataNaPlanszy().setZloto((int) (ZapisOdczyt.getPopulacjaStartowaArystokracja() + ZapisOdczyt.getArystokracjaWiekszaPopulacja()*ZapisOdczyt.getPopulacjaStartowaArystokracja()*0.01));\n\t\tPlansza.getArystokrataNaPlanszy().setTowary((int) (ZapisOdczyt.getPopulacjaStartowaArystokracja() + ZapisOdczyt.getArystokracjaWiekszaPopulacja()*ZapisOdczyt.getPopulacjaStartowaArystokracja()*0.01));\n\t}", "public Space(int x, int y, Color m, Color s, Color star)\n {\n xLeft = x;\n yTop = y;\n main = m;\n secondary = s;\n stars = star;\n }", "public void setMark( String newMark )\n\t\t{\n\t\t\tmark = newMark; // set mark of square\n\t\t\trepaint(); //repaint square\n\t\t}", "public Astar2(int[] s, int[] g) \n\t{\n\t\t//sets up the gameState for the foal node with the nessacery set functions\n\t\tgoal = g;\n\t\tstart = s;\n\t\tgoalS.setBoard(goal);\n\t\tgoalS.setStateID(2);\n\t\tgoalS.setG();\n\t\tgoalS.setH(goalS.findZero());\n\t\tgoalS.setF();\n\t\t//goalS.printGameState();\n\t\t\n\t\t//sets up the gameState for the foal node with the nessacery set functions\n\t\tstartS.setBoard(start);\n\t\tstartS.setStateID(1);\n\t\tstartS.setG();\n\t\tstartS.setH(goalS.findZero());\n\t\tstartS.setF();\n\t\tstartS.setParentStateID(-1);\n\t\tstartS.setPriority(0);\n\t\t//startS.printGameState();\n\t}", "public static void setRatings (double irating){\n\t\t\t//ratings = irating;\n\t\t\tr = irating;\n\t}", "public void setNetx(Neat neat) {\n\t\t\n\t}", "public abstract List<AStarNode> getNeighbours();", "public AStar(Node node){\n\t\topen = new ArrayList<Node>();\n\t\tclosed = new ArrayList<Node>();\n\t\t\n\t\tnode.g = 0;\n\t\tcalculateH(node);\n\t\tnode.f = node.g + node.h;\n\t\topen.add(node);\n\t}", "public void setStreets(int numx, int numy);", "public void set(int i, int j, int w) {\n if (i != j || !_isInteracting) {\n _weights[i][j] = w;\n if (_isInteracting) {\n _weights[j][i] = w;\n }\n } else {\n /* Self-interaction disallowed in hopfield networks*/\n _weights[i][j] = 0;\n }\n }", "void setAdjForSecondType() {\n matrixOfSquares[0][0].setCardinalSquare(null, matrixOfSquares[1][0] , null, matrixOfSquares[0][1]);\n matrixOfSquares[0][1].setCardinalSquare(null, null , matrixOfSquares[0][0], matrixOfSquares[0][2]);\n matrixOfSquares[0][2].setCardinalSquare(null,matrixOfSquares[1][2] , matrixOfSquares[0][1], matrixOfSquares[0][3]);\n matrixOfSquares[0][3].setCardinalSquare(null,matrixOfSquares[1][3] , matrixOfSquares[0][2], null);\n matrixOfSquares[1][0].setCardinalSquare(matrixOfSquares[0][0], null, null, matrixOfSquares[1][1] );\n matrixOfSquares[1][1].setCardinalSquare(null, matrixOfSquares[2][1], matrixOfSquares[1][0], null );\n matrixOfSquares[1][2].setCardinalSquare(matrixOfSquares[0][2] , matrixOfSquares[2][2], null, matrixOfSquares[1][3]);\n matrixOfSquares[1][3].setCardinalSquare(matrixOfSquares[0][3], matrixOfSquares[2][3], matrixOfSquares[1][2], null);\n matrixOfSquares[2][1].setCardinalSquare(matrixOfSquares[1][1],null, null, matrixOfSquares[2][2] );\n matrixOfSquares[2][2].setCardinalSquare(matrixOfSquares[1][2], null, matrixOfSquares[2][1], matrixOfSquares[2][3] );\n matrixOfSquares[2][3].setCardinalSquare(matrixOfSquares[1][3], null, matrixOfSquares[2][2], null);\n\n }", "private Path aStar(AStarNode start, AStarNode end) {\n\n\t/*pre-search setup*/\n astarSetup(end);\n AStarNode current = start;\n current.updateDist(0.0F);\n ArrayList<AStarNode> openSet = new ArrayList<>(getNodes().size());\n addNode(openSet, start);\n start.setFound(true);\n\n while (!openSet.isEmpty()) { // While there are nodes to evaluate\n if (current.equals(end)) // When reached the destination\n return createPath(start, end);\n openSet.remove(current); // Removes the node whose shortest distance from start position is determined\n current.setVisited(true); // marking the field that is added to closedSet\n \n for (AStarNode neighbor : current.getConnections()) { \n if (!neighbor.isVisited() && !neighbor.found()) { // if it is not seen before, add to open list\n addNode(openSet,neighbor);\n neighbor.setFound(true);\n neighbor.setPrevious(current);\n neighbor.setHeruistic(end);\n neighbor.updateDist(current.getDist() + current.getDistTo(neighbor));\n }\n else if(!neighbor.isVisited()){ //If seen before, update cost.\n double tempGScore = current.getDist() + current.getDistTo(neighbor);\n if (neighbor.getDist() > tempGScore) {\n neighbor.updateDist(tempGScore);\n neighbor.setPrevious(current);\n neighbor.setHeruistic(end);\n }\n }\n }\n current = getMinFScore(openSet); // setting next node as a node with minimum fScore.\n }\n\t\n\t/*If search ends without returning a path, there is no possible path.*/\n throw new PathFindingAlgorithm.AlgorithmFailureException();\n }", "private void set (int x, int y, int z, Block b) {\n\t\tmaze.set(x*size*size + y*size + z, b);\n\t}", "public void setPatternAtCell(int i, int j, boolean val)\n {\n pattern[i][j] = val;\n }", "private void setOriginNode() {\n double sumX = 0;\n double sumY = 0;\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n Point p = it.next();\n sumX += x(p);\n sumY += y(p);\n }\n _nodeOrigin[0] = sumX / _elements.size();\n _nodeOrigin[1] = sumY / _elements.size();\n }", "public void setFiveStarRating(java.math.BigDecimal fiveStarRating) {\n this.fiveStarRating = fiveStarRating;\n }", "public void initSourceCode()\r\n\t{\r\n\t\tsc.addCodeLine(\"// Main method. Iterates over all stars. Delegates group finding to addAdjacentStars.\", null, 0, null);\t//0\r\n\t\tsc.addCodeLine(\"public void friendsOfFriends(double linkingLength, Set<Star> stars)\", null, 0, null);\r\n\t\tsc.addCodeLine(\"{\", null, 0, null);\r\n\t\tsc.addCodeLine(\" int groupID = 0;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" for(Star current : stars)\", null, 0, null);\t// 5\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" if(!current.wasVisited())\", null, 0, null);\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" groupID++;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.setVisited(true);\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.group = groupID;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" addAdjacentStars(current, groupID, linkingLength, stars);\", null, 0, null);\t// 13\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\"};\", null, 0, null);\r\n\t\tsc.addCodeLine(\"\", null, 0, null);\r\n\t\tsc.addCodeLine(\"// Helper algorithm for FoF. Calls nearest neighbour search to get all adjacent stars.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"private void addAdjacentStars(Star s, int groupID, double linkingLength, Set<Star> stars)\", null, 0, null);\t\t// 19\r\n\t\tsc.addCodeLine(\"{\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Set<Star> adjacentStars = nearestNeighbourSearch(s, linkingLength, stars);\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" for(Star current : adjacentStars)\", null, 0, null);\t\t// 23\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" if(!current.wasVisited())\", null, 0, null);\r\n\t\tsc.addCodeLine(\" {\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.setVisited(true);\", null, 0, null);\r\n\t\tsc.addCodeLine(\" current.group = groupID;\", null, 0, null);\r\n\t\tsc.addCodeLine(\" \", null, 0, null);\r\n\t\tsc.addCodeLine(\" addAdjacentStars(current, groupID, linkingLength, stars);\", null, 0, null);\t// 30\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\" }\", null, 0, null);\r\n\t\tsc.addCodeLine(\"};\", null, 0, null);\r\n\t}", "void setStone(int x, int y, int color);", "public void setNX(int nx){\n newX=nx;\n }", "public void setRating(Rating rating) {\n double boundedRating = this.boundedRating(rating);\n this.normalisedRating = this.normaliseRating(boundedRating);\n this.ratingCount++;\n }", "public void setStar2Count(Integer star2Count) {\n this.star2Count = star2Count;\n }", "public final void mSTAR() throws RecognitionException {\n try {\n int _type = STAR;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:24:6: ( '*' )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:24:8: '*'\n {\n match('*'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void set(int sx,int sy, int ax, int ay)\n {\n shipX = sx;\n shipY = sy;\n astX = ax;\n astY = ay;\n }", "public void setSpaceAt(int x, int y, int val){\n grids[x][y].setValue(val);\n }", "public StarScore(int numberOfStars)\n {\n switch (numberOfStars)\n {\n case 1:\n image = new ImageIcon(\"src/view/images/1star.png\"); \n break;\n case 2:\n image = new ImageIcon(\"src/view/images/2stars.png\"); \n break;\n case 3:\n image = new ImageIcon(\"src/view/images/3stars.png\"); \n break;\n case 4:\n image = new ImageIcon(\"src/view/images/4stars.png\"); \n break; \n case 5:\n image = new ImageIcon(\"src/view/images/5stars.png\");\n break;\n default:\n image = new ImageIcon(\"src/view/images/1star.png\"); \n }\n }", "public void useStarObjectColor ( ) {\r\n\t\tcolor = null;\r\n\t}" ]
[ "0.6721577", "0.670421", "0.6346511", "0.6153161", "0.60655", "0.60640055", "0.6048692", "0.602014", "0.5907079", "0.5835531", "0.5830902", "0.5818525", "0.57980853", "0.5774662", "0.56984466", "0.5688131", "0.5578588", "0.5506014", "0.5457685", "0.54402715", "0.54199284", "0.5413271", "0.5403542", "0.53918165", "0.53033835", "0.5296885", "0.5277614", "0.52615684", "0.5258733", "0.52100295", "0.5206326", "0.51979446", "0.516674", "0.5164512", "0.51640666", "0.5154449", "0.51236236", "0.5110002", "0.51020116", "0.5100153", "0.50726473", "0.5071652", "0.5056199", "0.50527585", "0.50494", "0.50434226", "0.50285196", "0.50252366", "0.50218457", "0.50201356", "0.5010203", "0.49994257", "0.49787757", "0.49758127", "0.49726132", "0.49712372", "0.49418205", "0.49361858", "0.4930211", "0.49281025", "0.49275362", "0.49222836", "0.49170527", "0.49040425", "0.49025387", "0.48913294", "0.4883189", "0.48716295", "0.48637694", "0.48393568", "0.48331454", "0.4823796", "0.48206708", "0.48204833", "0.48168725", "0.4815322", "0.48147792", "0.48123968", "0.47824597", "0.4781641", "0.4774968", "0.4763975", "0.47610968", "0.47607592", "0.47590578", "0.4737463", "0.47330397", "0.47302034", "0.4729779", "0.4723877", "0.4718581", "0.47154084", "0.47124675", "0.4709996", "0.47071832", "0.47005385", "0.4696721", "0.46922198", "0.46891505", "0.46888405" ]
0.77649015
0
sets the neighboring galaxys for the galaxys
private static void setGalaxyNeighbours(ArrayList<Galaxy> galaxies, JSONArray jsongalaxies) { for(int i = 0; i<jsongalaxies.length(); i++) { JSONArray neighbours = jsongalaxies.getJSONObject(i).getJSONArray("neighbours"); // System.out.println("galaxy " + galaxies.get(i).getName() + " has neighbours: "); for(int y = 0; y<neighbours.length(); y++) { char galaxyname = neighbours.get(y).toString().charAt(0); //System.out.println(galaxyname); for(Galaxy galaxy : galaxies) { if(galaxy.getName() == galaxyname) { galaxies.get(i).addNeighbour(galaxy); } } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void setStarNeighbours(Galaxy galaxy, JSONArray stars) {\n for (int y = 0; y<stars.length(); y++) {\n JSONArray neighbours = stars.getJSONObject(y).getJSONArray(\"neighbour-stars\");\n //add internal neighbours\n for(int i = 0; i<neighbours.length(); i++){\n int star = (int) neighbours.get(i);\n galaxy.getStar(y+1).addNeighbour(galaxy.getStar(star));\n }\n }\n\n }", "private void setNeighbors() {\n\t\tfor (int i = 0; i < getNumRows(); i++) {\n\t\t\tfor (int j = 0; j < getNumCols(); j++) {\n\t\t\t\tCell c = getCurrentGrid()[i][j];\n\t\t\t\tsetNeighborsForCell(c);\n\t\t\t}\n\t\t}\n\t}", "private void asignNeighbours(String split [], String planetName){\n\t\tdouble length = Double.parseDouble(split[1]);\n\t\tboolean danger = Boolean.parseBoolean(split[2]);\n\t\t\n\t\tif(factoryMap.containsKey(planetName)&&factoryMap.containsKey(split[0])){\n\t\t\tfactoryMap.get(planetName).addNeghbour(new Path(length, factoryMap.get(split[0]), danger));\t\n\t\t}\n\t\tif(factoryMap.containsKey(planetName) && galaxy.containsKey(split[0])){\n\t\t\tfactoryMap.get(planetName).addNeghbour(new Path(length, galaxy.get(split[0]), danger));\t\n\t\t}\n\t\tif(galaxy.containsKey(planetName) && factoryMap.containsKey(split[0])){\n\t\t\tgalaxy.get(planetName).addNeghbour(new Path(length, factoryMap.get(split[0]), danger));\t\n\t\t}\n\t\tif(galaxy.containsKey(planetName) && galaxy.containsKey(split[0])){\n\t\t\tgalaxy.get(planetName).addNeghbour(new Path(length, galaxy.get(split[0]), danger));\n\t\t}\n\t}", "public void setNeighbors(){\t\t\t\t\n\t\tint row = position[0];\n\t\tint column = position[1];\t\t\n\t\tif(column+1 < RatMap.SIDELENGTH){\n\t\t\teastCell = RatMap.getMapCell(row,column+1);\t\t\t\n\t\t}else{\n\t\t\teastCell = null;\n\t\t}\t\n\t\tif(row+1 < RatMap.SIDELENGTH){\n\t\t\tnorthCell = RatMap.getMapCell(row+1,column);\n\t\t}else{\n\t\t\tnorthCell = null;\n\t\t}\t\n\t\tif(column-1 > -1){\n\t\t\twestCell = RatMap.getMapCell(row, column-1);\t\t\t\n\t\t}else{\n\t\t\twestCell = null;\n\t\t}\n\t\tif(row-1 > -1){\n\t\t\tsouthCell = RatMap.getMapCell(row-1, column);\n\t\t}else{\n\t\t\tsouthCell = null;\n\t\t}\n\t}", "private void updateGrid() {\n\t\tfor (Neighbor neighbor : upsetNeighbors) {\n\t\t\tClear vacated_cell = new Clear(neighbor.getCoordsX(), neighbor.getCoordsY());\n\t\t\tgrid.setGridIndex(vacated_cell, vacated_cell.getCoordsX(), vacated_cell.getCoordsY());\n\t\t\tCell new_location = availableSpaces.get((int) (Math.random() * (availableSpaces.size() - 1)));\n\t\t\tint new_x = new_location.getCoordsX();\n\t\t\tint new_y = new_location.getCoordsY();\n\t\t\tif (neighbor.getClass().equals(Group1.class))\n\t\t\t\tgrid.setGridIndex(new Group1(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\telse\n\t\t\t\tgrid.setGridIndex(new Group2(new_x, new_y, percentSimilar), new_x, new_y);\n\t\t\tavailableSpaces.remove(new_location);\n\t\t\tavailableSpaces.add(vacated_cell);\n\t\t}\n\t}", "private void setNeighbors()\r\n {\r\n for (int x = 0; x < length+2; ++x)\r\n {\r\n for (int y = 0; y < width+2; ++y)\r\n {\r\n // North\r\n if (!this.board[x][y].northwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x][y-1]);\r\n }\r\n // South\r\n if (!this.board[x][y].southwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x][y+1]);\r\n }\r\n // East\r\n if (!this.board[x][y].eastwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x+1][y]);\r\n }\r\n // West\r\n if (!this.board[x][y].westwall)\r\n {\r\n this.board[x][y].neighbors.add(this.board[x-1][y]);\r\n }\r\n }\r\n }\r\n }", "private void setShips() {\n //This clears the board. To \"Invalidate\"\n for (int x = 0; x < maxN; x++) {\n for (int y = 0; y < maxN; y++) {\n ivCell[x][y].setBackgroundResource(gridID);\n }\n }\n\n for (Ship s : ships) {\n for (int i = 0; i < s.getShipSize(); i++) {\n if(player)ivCell[s.getBodyLocationPoints()[i].x][s.getBodyLocationPoints()[i].y].setBackgroundResource(s.getBodyResources()[i]);\n updateOccupiedCells(s.getBodyLocationPoints());\n }\n }\n\n }", "private void createDefaultGalaxy(){\n milkyWay.setGalaxyColonies(37579321);\n milkyWay.setGalaxyPopulation(1967387132);\n milkyWay.setGalaxyFleets(237);\n milkyWay.setGalaxyStarships(34769);\n }", "private void setNeighboringMines(){\n\t\t//cycle the board\n\t\tfor (int r = 0; r < board.length; r++)\n\t\t\tfor (int c = 0; c < board[r].length; c++){\n\t\t\t\tint neighborCount = 0;\n\t\t\t\tif(!board[r][c].isMine()) {\n\t\t\t\t\t//checks if there is mines touching\n\t\t\t\t\tneighborCount = neighboringMines(r, c);\n\t\t\t\t\tif (neighborCount > 0) {\n\t\t\t\t\t\tboard[r][c].setIsNeighboringMine(true);\n\t\t\t\t\t\tboard[r][c].setNumNeighboringMines\n\t\t\t\t\t\t\t\t(neighborCount);\n\t\t\t\t\t} else if (neighborCount == 0) {\n\t\t\t\t\t\tboard[r][c].setNumNeighboringMines(0);\n\t\t\t\t\t\tboard[r][c].setIsNeighboringMine(false);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setWeights() {\n for (Square[] square : squares) {\n for (Square square1 : square) {\n try {\n int i = Integer.parseInt(square1.getText());\n square1.setV(new Vertex(square1.getXcoor(), square1.getYcoor(), i));\n } catch (NumberFormatException e) {\n square1.setV(new Vertex(square1.getXcoor(), square1.getYcoor(), 1));\n }\n }\n }\n }", "private static void setQui(){\n int mX, mY;\n for (Integer integer : qList) {\n mY = (int) (Math.floor(1.f * integer / Data.meshRNx));\n mX = integer - Data.meshRNx * mY;\n if (Data.densCells[mX][mY] > Data.gwCap[mX][mY] * .75) {\n for (int j = 0; j < Data.densCells[mX][mY]; j++) {\n Cell cell = (Cell) cells.get(Data.idCellsMesh[mX][mY][j]);\n cell.vState = true;\n cell.quiescent = Data.densCells[mX][mY] >= Data.gwCap[mX][mY];\n }\n }\n }\n }", "public void setAiGrid() {\n\t\taiGrid = new Grid(false);\n\t\tsetShips(aiGrid,aiBattleShipsList,0);//1\n\t}", "public void setNeighbors(Field[] neighbors) {\n this.neighbors = neighbors;\n }", "public void setStreets(int numx, int numy);", "protected void setNeighbours(Cell[] neighbours) throws IllegalArgumentEvent {\r\n\t\tif(neighbours.length != 6){\r\n\t\t\tthrow new IllegalArgumentEvent(\"incorrect number of neighbours\");\r\n\t\t}\r\n\t\tthis.neighbours = neighbours;\r\n\t}", "public void set_neighbors(Cell[] neighbors)\n\t{\n\t\tthis.neighbors = neighbors;\n\t}", "public void setGears(int gears);", "private void astarSetup(AStarNode end){\n\tfor(AStarNode node : getNodes()){\n node.setVisited(false);\n node.setFound(false);\n node.updateDist(Float.POSITIVE_INFINITY);\n\t}\n }", "public void initializeNeighbors() {\n\t\tfor (int r = 0; r < getRows(); r++) {\n\t\t\tfor (int c = 0; c < getCols(); c++) {\n\t\t\t\tList<Cell> nbs = new ArrayList<>();\n\t\t\t\tinitializeNF(shapeType, r, c);\n\t\t\t\tmyNF.findNeighbors();\n\t\t\t\tfor (int[] arr : myNF.getNeighborLocations()){\n\t\t\t\t\tif (contains(arr[0], arr[1])){\n\t\t\t\t\t\tnbs.add(get(arr[0], arr[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tget(r, c).setNeighbors(nbs);\n\t\t\t}\n\t\t}\n\t}", "public void removeNeighbours(){\n\t\tgetNeighbours().removeAll(getNeighbours());\n\t}", "void setAdjForFourthType() {\n matrixOfSquares[0][0].setCardinalSquare(null, matrixOfSquares[1][0] , null, matrixOfSquares[0][1]);\n matrixOfSquares[0][1].setCardinalSquare(null, matrixOfSquares[1][1] , matrixOfSquares[0][0], matrixOfSquares[0][2]);\n matrixOfSquares[0][2].setCardinalSquare(null,matrixOfSquares[1][2] , matrixOfSquares[0][1], null);\n matrixOfSquares[1][0].setCardinalSquare(matrixOfSquares[0][0], matrixOfSquares[2][0], null, null );\n matrixOfSquares[1][1].setCardinalSquare(matrixOfSquares[0][1], matrixOfSquares[2][1], null, matrixOfSquares[1][2] );\n matrixOfSquares[1][2].setCardinalSquare(matrixOfSquares[0][2] , null, matrixOfSquares[1][1], matrixOfSquares[1][3]);\n matrixOfSquares[1][3].setCardinalSquare(null, matrixOfSquares[2][3], matrixOfSquares[1][2], null);\n matrixOfSquares[2][0].setCardinalSquare(matrixOfSquares[1][0],null, null, matrixOfSquares[2][1] );\n matrixOfSquares[2][1].setCardinalSquare(matrixOfSquares[1][1], null, matrixOfSquares[2][0], matrixOfSquares[2][2] );\n matrixOfSquares[2][2].setCardinalSquare(null, null, matrixOfSquares[2][1], matrixOfSquares[2][3] );\n matrixOfSquares[2][3].setCardinalSquare(matrixOfSquares[1][3], null, matrixOfSquares[2][2], null);\n\n }", "protected Ocean(){\n for (int i=0; i<10; i++){\n for (int j=0;j<10; j++){\n EmptySea empty = new EmptySea();\n ships[i][j] = empty;\n }\n }\n }", "private void setAllUnvisited(){\n\t\tfor(int i = 0; i < this.getDimension(); i++)\n\t\t\tthis.getGraph().setUnvisited(i);\n\t\tthis.visited = 0;\n\t}", "void setNeighbors(int x, int y, Map<Location, SurfaceEntity> map, SurfaceEntity[] fragments) {\r\n\t\tfragments[0] = map.get(Location.of(x - 1, y + 1));\r\n\t\tfragments[1] = map.get(Location.of(x, y + 1));\r\n\t\tfragments[2] = map.get(Location.of(x + 1, y + 1));\r\n\t\t\r\n\t\tfragments[3] = map.get(Location.of(x - 1, y));\r\n\t\tfragments[4] = map.get(Location.of(x, y));\r\n\t\tfragments[5] = map.get(Location.of(x + 1, y));\r\n\t\t\r\n\t\tfragments[6] = map.get(Location.of(x - 1, y - 1));\r\n\t\tfragments[7] = map.get(Location.of(x, y - 1));\r\n\t\tfragments[8] = map.get(Location.of(x + 1, y - 1));\r\n\t}", "void setupGrid() {\n\n // create a Switch for the spheres, allow switch changes\n gridSwitch = new Switch(Switch.CHILD_NONE);\n gridSwitch.setCapability(Switch.ALLOW_SWITCH_WRITE);\n\n // Set up an appearance to make the square3s with red ambient,\n // black emmissive, red diffuse and black specular coloring\n Material material = new Material(red, black, red, black, 64);\n Appearance appearance = new Appearance();\n appearance.setMaterial(material);\n\n // create a grid of quads\n int gridSize = 20; // grid is gridSize quads along each side\n int numQuads = gridSize * gridSize;\n int numVerts = numQuads * 4; // 4 verts per quad\n // there will be 3 floats per coord and 4 coords per quad\n float[] coords = new float[3 * numVerts];\n // All the quads will use the same normal at each vertex, so\n // allocate an array to hold references to the same normal\n Vector3f[] normals = new Vector3f[numVerts];\n Vector3f vertNormal = new Vector3f(0.0f, 0.0f, 1.0f);\n float edgeLength = 5.0f; // length of each edge of the grid\n float gridGap = 0.03f; // the gap between each quad\n // length of each quad is (total length - sum of the gaps) / gridSize\n float quadLength = (edgeLength - gridGap * (gridSize - 1)) / gridSize;\n\n // create a grid of quads in the z=0 plane\n // each has a TransformGroup to position the sphere which contains\n // a link to the shared group for the sphere\n float curX, curY;\n for (int y = 0; y < gridSize; y++) {\n curY = y * (quadLength + gridGap); // offset to lower left corner\n curY -= edgeLength / 2; // center on 0,0\n for (int x = 0; x < gridSize; x++) {\n // this is the offset into the vertex array for the first\n // vertex of the quad\n int vertexOffset = (y * gridSize + x) * 4;\n // this is the offset into the coord array for the first\n // vertex of the quad, where there are 3 floats per vertex\n int coordOffset = vertexOffset * 3;\n curX = x * (quadLength + gridGap); // offset to ll corner\n curX -= edgeLength / 2; // center on 0,0\n // lower left corner\n coords[coordOffset + 0] = curX;\n coords[coordOffset + 1] = curY;\n coords[coordOffset + 2] = 0.0f; // z\n // lower right corner\n coords[coordOffset + 3] = curX + quadLength;\n coords[coordOffset + 4] = curY;\n coords[coordOffset + 5] = 0.0f; // z\n // upper right corner\n coords[coordOffset + 6] = curX + quadLength;\n coords[coordOffset + 7] = curY + quadLength;\n coords[coordOffset + 8] = 0.0f; // z\n // upper left corner\n coords[coordOffset + 9] = curX;\n coords[coordOffset + 10] = curY + quadLength;\n coords[coordOffset + 11] = 0.0f; // z\n for (int i = 0; i < 4; i++) {\n normals[vertexOffset + i] = vertNormal;\n }\n }\n }\n // now that we have the data, create the QuadArray\n QuadArray quads = new QuadArray(numVerts, QuadArray.COORDINATES\n | QuadArray.NORMALS);\n quads.setCoordinates(0, coords);\n quads.setNormals(0, normals);\n\n // create the shape\n Shape3D shape = new Shape3D(quads, appearance);\n\n // add it to the switch\n gridSwitch.addChild(shape);\n }", "public void setRemainingToScenery(){\n\t\tfor(int i=0;i<grid.length;i++){\n\t\t\tfor(int j=0;j<grid[0].length;j++){\n\t\t\t\tif(grid[i][j]==null)\n\t\t\t\t\tgrid[i][j]=new Scenery(i*grid[0].length+j);\n\t\t\t}\n\t\t}\n\t}", "public ApproximationOne(Graph g)\n\t{\n\t\tsets = new DisjointSets(g.getNumNodes());\n\t\tneighborhoodArray = new int[getSetsArray().length];\n\t}", "public void setToOriginals(){\n\t\t//set all occupied nodes as empty\n\t\tif(nodeStatus == Status.occupied){\n\t\t\tsetAsEmpty();\n\t\t}\n\t\t//if the node had a unit end on it, reset that value\n\t\tif(ended == true){\n\t\t\tended=false;\n\t\t}\n\t\tf=0;\n\t\tg=0;\n\t\th=0;\n\t}", "Neighbors() {\n HashMap<Integer, Double> neighbors = new HashMap<>();\n }", "public void updateNeighborhood(){\n\t\tList<AnimalEntity> holdingCell = new ArrayList<AnimalEntity>();\n\t\t\n\t\t//add all entities to cell\n\t\tfor(int key: creatureEntities.keySet()){\n\t\t\tfor(AnimalEntity entity: creatureEntities.get(key)){\n\t\t\t\tholdingCell.add(entity);\n\t\t\t}\n\t\t}\n\t\t//clear the neighborhood\n\t\tfor(int key: creatureEntities.keySet()){\n\t\t\tcreatureEntities.get(key).clear();\n\t\t}\n\t\t//add them back\n\t\tfor(AnimalEntity entity: holdingCell){\n\t\t\taddAnimal(entity);\n\t\t}\n\t}", "public void resetGraph(){\n removeAllSeries();\n removeSeries(xySeries);\n removeSeries(currentPoint);\n xySeries = new PointsGraphSeries<>();\n currentPoint = new PointsGraphSeries<>();\n initGraph();\n }", "public void initialize() {\n northbound = new ArrayList<>(numStations);\n southbound= new ArrayList<>(numStations);\n eastbound= new ArrayList<>(numStations);\n westbound= new ArrayList<>(numStations);\n //the stations are created in the following order:\n // left to right going up, right, down, left\n\n\n //stations going north\n\n for (int i = 0; i < numStations; i++) {\n if(i < coloring[0].length) {\n northbound.add(new Station(i + 1, 2 * numStations + 1, coloring[0][i], Station.Direction.north));\n eastbound.add(new Station(0, 2 * numStations - (i), coloring[1][i], Station.Direction.east));\n southbound.add(new Station(numStations + 1 + i, 0, coloring[2][i], Station.Direction.south));\n westbound.add(new Station(numStations * 2 + 1, 1 + i, coloring[3][i], Station.Direction.west));\n }else{\n northbound.add(new Station(i + 1, 2 * numStations + 1, 0, Station.Direction.north));\n eastbound.add(new Station(0, 2 * numStations - (i), 0, Station.Direction.east));\n southbound.add(new Station(numStations + 1 + i, 0, 0, Station.Direction.south));\n westbound.add(new Station(numStations * 2 + 1, 1 + i, 0, Station.Direction.west));\n }\n }\n\n updateStationPositions();\n update();\n\n\n }", "static void neighborhood()\r\n { \r\n // Puts the earth in a world and the three different color turtles in that world\r\n earth = new World();\r\n turtle1 = new Turtle(earth);\r\n turtle1.setColor(Color.BLUE);\r\n turtle2 = new Turtle(earth);\r\n turtle2.setColor(Color.RED);\r\n turtle3 = new Turtle(earth);\r\n turtle3.setColor(Color.GREEN);\r\n house(100, 100, turtle1);\r\n house(250, 100, turtle2);\r\n house(400, 100, turtle3);\r\n\r\n }", "void setGridX(int i);", "private void resetStars()\r\n\t{\r\n\t\tfor(Star s : stars)\r\n\t\t{\r\n\t\t\ts.visited = false;\r\n\t\t}\r\n\t}", "private void updateMhoLocationList() {\n\n\t\t//clear all the mhos in mhoLocations\n\t\tmhoLocations.clear();\n\n\t\t//add the locations of all the mhos in mhoLocations\n\t\tfor (int i = 1; i < 11; i++)\n\t\t\tfor (int j = 1; j < 11; j++) \n\t\t\t\tif(newMap[i][j] instanceof Mho) {\n\t\t\t\t\tmhoLocations.add(i);\n\t\t\t\t\tmhoLocations.add(j);\n\t\t\t\t}\n\t}", "private void mutate() {\n\t\tfor (int i = 0; i < population; ++i) {\n\t\t\tpopulationArray.set(i, populationArray.get(i).generateNeighbor());\n\t\t}\n\t}", "public void setPlayerGrid(){\n\t\tplayerGrid = new Grid(true);\n\t\tsetShips(playerGrid,playerBattleShipsList,0);//2\n\t}", "private void updateStationPositions() {\n //stations going east\n if(layout == Layout.square) {\n for (int i = 0; i < numStations; i++) {\n northbound.get(i).setPosition(i+1,2*numStations+1);\n eastbound.get(i).setPosition(0,numStations+(i+1));\n southbound.get(i).setPosition(numStations+1+i,0);\n westbound.get(i).setPosition(numStations*2+1,1+i);\n }\n }else{\n for (int i = 0; i < numStations; i++) {\n eastbound.get(i).setPosition(i,2*numStations+i);\n northbound.get(i).setPosition(numStations+i,3*numStations+i);\n southbound.get(i).setPosition(2*numStations+i,i);\n westbound.get(i).setPosition(3*numStations+i,numStations+i);\n }\n }\n\n }", "void setGridY(int i);", "public void createNodesOfPixels() {\n makeGrayscale();\n WritableImage pixelPop = copyImage(holderImg);\n PixelReader pr = pixelPop.getPixelReader();\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n Color color = pr.getColor(j, i);\n if (color.equals(Color.WHITE)) {\n pathNodes[(i * w) + j] = new GraphNodeAL(i);\n }\n }\n }\n\n for (int i = 0; i < pathNodes.length; i++) {\n if (pathNodes[i] != null) {\n if ((i - w) >= 0 && pathNodes[i - w] != null) { // pixel above\n pathNodes[i].connectToNodeDirected(pathNodes[i - w], 1);\n }\n if ((i + w) < pathNodes.length && pathNodes[i + w] != null) { // pixel below\n pathNodes[i].connectToNodeDirected(pathNodes[i + w], 1);\n }\n if ((i - 1) >= 0 && pathNodes[i - 1] != null && ((i - 1) % w) != 0) { // pixel left\n pathNodes[i].connectToNodeDirected(pathNodes[i - 1], 1);\n }\n if ((i + 1) < pathNodes.length && pathNodes[i + 1] != null && ((i + 1) % w) != 0) { // pixel right\n pathNodes[i].connectToNodeDirected(pathNodes[i + 1], 1);\n }\n }\n }\n }", "public void fillEdges() {\n\t\tfor (int y = 0; y < mapSize; y++) {\n\t\t\tfor (int x = 0; x < mapSize; x++) {\n\t\t\t\tCoordinates coordinates = new Coordinates(x, y);\n\t\t\t\tint vertexSrc = coordinateToVertex(coordinates);\n\n\t\t\t\tif (deletedVertices.contains(vertexSrc)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tDirection[] directions = Direction.values();\n\n\t\t\t\tfor (Direction direction : directions) {\n\t\t\t\t\tCoordinates destCoordinates = new Coordinates(x, y);\n\n\t\t\t\t\tdestCoordinates = destCoordinates.addCoordinates(direction.coordinates());\n\n\t\t\t\t\tif (destCoordinates.areCorrect(mapSize)) {\n\t\t\t\t\t\tint vertexDest = coordinateToVertex(destCoordinates);\n\t\t\t\t\t\tif (!deletedVertices.contains(vertexDest)) {\n\t\t\t\t\t\t\taddEdge(vertexSrc, vertexDest);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void setVertices(){\n \tdouble[] xs = new double[numOfSides];\n \tdouble[] ys = new double[numOfSides];\n \tif (numOfSides%2==1){\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(2*i*Math.PI/numOfSides);\n \t\t\tys[i]=radius*Math.sin(2*i*Math.PI/numOfSides);\n \t\t\t}\n \t}\n \telse{\n \t\tdouble start=Math.PI/numOfSides;\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(start+2*i*(Math.PI)/numOfSides);\n \t\t\tys[i]=radius*Math.sin(start+2*i*(Math.PI)/numOfSides);\n \t\t\t}\n \t}\n \tsetXLocal(xs);\n \tsetYLocal(ys);\n }", "public void resetNodes() {\n\tmaxX = -100000;\n\tmaxY = -100000;\n\tminX = 100000;\n\tminY = 100000;\n\taverageX = 0;\n\taverageY = 0;\n }", "public void setNeighbours(ArrayList<ThresholdDataPoint> neighbours, int connec) {\n\t\tif(connec == 8){\n\t\t\tthis.eightNeighbours = neighbours;\n\t\t} else if(connec == 4){\n\t\t\tthis.fourNeighbours = neighbours;\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Invalid number of neighbours\");\n\t\t}\n\t}", "public void setSpaceAt(int x, int y, int val){\n grids[x][y].setValue(val);\n }", "private void setShips(){\n\t\t\n\t\tint x,y;\n\t\tboolean orientacja;\n\t\tRandom generator = new Random();\n\t\t\n\t\tint ilosc = 1;\n\t\tint j = 0;\n\t\tfor(int i = 4; i > 0 ; i--){\n\t\t\twhile( j < ilosc ){\n\t\t\t\tx = generator.nextInt( 13 );\t\t\n\t\t\t\ty = generator.nextInt( 13 );\n\t\t\t\torientacja = generator.nextBoolean();\n\t\t\t\tif( isPossibleAddShip(x, y, i, orientacja) ) j++;\t\n\t\t\t}\n\t\tilosc++;\n\t\tj=0;\n\t\t}\n\t\t\n\t}", "public void clearNeighborhoods()\n\t{\n\t\tfor (int i=0; i<numberOfNeighborhoods; i++)\n\t\t{\n\t\t\t(listOfNeighborhoods.get(i)).clear();\n\t\t}\n\t}", "private void dijkstras() {\n LinkedList<Integer> openNodeList = new LinkedList<Integer>();\n openNodeList.add(grid.length - 1);\n Integer curGrid = -1;\n\n while ( openNodeList.size() > 0 ) {\n curGrid = getBestGrid(openNodeList,curGrid);\n\n for ( int i = 0; i < grid[curGrid].edges.size() - 1; i++ ) {\n Integer tmp = grid[curGrid].edges.get(i).arrayIndex;\n if ( !grid[tmp].bFinalized && !openNodeList.contains(tmp)) {\n //System.out.println(\"Adding:\\t\" + tmp + \":\\t\" + grid[tmp].cost);\n grid[tmp].setHead(curGrid);\n grid[tmp].cost = grid[curGrid].cost + grid[curGrid].edges.get(i).Exposure;\n openNodeList.add(tmp);\n }\n }\n\n grid[curGrid].bFinalized = true;\n openNodeList.removeFirstOccurrence(curGrid);\n }\n }", "private void setCell(int x, int y, int newValue) {\n hiddenGrid[x][y] = newValue;\n }", "public void setNeighbor(Directions dir, Field neighbor){\n neighbors[dir.ordinal()] = neighbor;\n }", "public void buildPathes() {\n\n for (Fruit fruit :game.getFruits()) {\n\n GraphNode.resetCounterId();\n changePlayerPixels();\n addBlocksVertices();\n Point3D fruitPixels = new Point3D(fruit.getPixels()[0],fruit.getPixels()[1]);\n GraphNode fruitNode = new GraphNode(fruitPixels);\n vertices.add(fruitNode);\n Target target = new Target(fruitPixels, fruit);\n\n //find the neigbours\n BFS();\n\n // build the grpah\n buildGraph(target);\n }\n }", "public boolean resetEdges();", "public void populateGraph() {\r\n \t\tObject[] stations = model.getStationKeys().toArray();\r\n \t\tHashMap<Object, JmtCell> cells = new HashMap<Object, JmtCell>();\r\n \t\tJmtCell cell;\r\n \r\n \t\t// Variables for auto-placement. Currently items are placed on a grid...\r\n \t\t// Need to be improved!!!\r\n \t\tint count = 0;\r\n \t\tint X = 150; // distance on the X axis\r\n \t\tint Y = 50; // distance on the Y axis\r\n \t\tint X0 = 50;\r\n \t\tint Y0 = 15;\r\n \t\tint colCount = (graph.getHeight() - 2 * Y0) / Y;\r\n \t\tboolean containPosition = true;\r\n \t\t// Shows stations\r\n \t\tfor (Object station : stations) {\r\n \t\t\tcell = cellFactory.createStationCell(station);\r\n \t\t\tJMTPoint position = model.getStationPosition(station);\r\n \t\t\t// If position is not present, auto-position this station\r\n \r\n \t\t\twhile (position == null) {\r\n \t\t\t\tcontainPosition = false;\r\n \t\t\t\tJMTPoint tmp = new JMTPoint(X0 + X * (count / colCount), Y0 + Y * (count % colCount), false);\r\n \t\t\t\tif (!overlapCells(tmp, cell)) {\r\n \t\t\t\t\tposition = tmp;\r\n \t\t\t\t}\r\n \t\t\t\tcount++;\r\n \t\t\t}\r\n \t\t\tInsertCell(position, cell);\r\n \t\t\tif (position.isRotate()) {\r\n \t\t\t\trotateComponent(new Object[] { cell });\r\n \t\t\t}\r\n \t\t\tcells.put(station, cell);\r\n \t\t}\r\n \t\tVector forwardConnections;\r\n \t\t// Shows connections\r\n \t\tfor (Object station : stations) {\r\n \t\t\tforwardConnections = model.getForwardConnections(station);\r\n \t\t\tfor (int j = 0; j < forwardConnections.size(); j++) {\r\n \t\t\t\t// Forces connection as it's already present into data structure\r\n \t\t\t\tconnect(cells.get(station), cells.get(forwardConnections.get(j)), true);\r\n \t\t\t}\r\n \r\n \t\t}\r\n \t\t// Now adds blocking regions\r\n \t\tVector regions = model.getRegionKeys();\r\n \t\tfor (int i = 0; i < regions.size(); i++) {\r\n \t\t\tObject key = regions.get(i);\r\n \t\t\tSet<JmtCell> regionStation = new HashSet<JmtCell>();\r\n \t\t\tIterator stationKeys = model.getBlockingRegionStations(key).iterator();\r\n \t\t\twhile (stationKeys.hasNext()) {\r\n \t\t\t\tregionStation.add(cells.get(stationKeys.next()));\r\n \t\t\t}\r\n \t\t\t// Adds cells to blocking region\r\n \t\t\taddCellsToBlockingRegion(regionStation.toArray(), key);\r\n \t\t}\r\n \r\n \t\t// graph.repaint();\r\n \r\n \t\t// whether the Position is Null, the application call the reposition's\r\n \t\t// method\r\n \t\tif (!containPosition) {\r\n \t\t\tadjustGraph();\r\n \t\t}\r\n \t\tgraphRepaint();\r\n \t\tgraph.getGraphLayoutCache().reload();\r\n \t\t// graph.repaint();\r\n \t}", "public void setToGrassState() {\n for (int i = 0; i < cells.size(); i++) {\n if (cells.get(i) == CellState.ToPlaceTower) {\n cells.set(i, CellState.Grass);\n }\n }\n }", "void setAdjForFirstType() {\n matrixOfSquares[0][0].setCardinalSquare(null, matrixOfSquares[1][0] , null, matrixOfSquares[0][1]);\n matrixOfSquares[0][1].setCardinalSquare(null, null , matrixOfSquares[0][0], matrixOfSquares[0][2]);\n matrixOfSquares[0][2].setCardinalSquare(null,matrixOfSquares[1][2] , matrixOfSquares[0][1], null);\n matrixOfSquares[1][0].setCardinalSquare(matrixOfSquares[0][0], null, null, matrixOfSquares[1][1] );\n matrixOfSquares[1][1].setCardinalSquare(null, matrixOfSquares[2][1], matrixOfSquares[1][0], matrixOfSquares[1][2] );\n matrixOfSquares[1][2].setCardinalSquare(matrixOfSquares[0][2] , null, matrixOfSquares[1][1], matrixOfSquares[1][3]);\n matrixOfSquares[1][3].setCardinalSquare(null, matrixOfSquares[2][3], matrixOfSquares[1][2], null);\n matrixOfSquares[2][1].setCardinalSquare( matrixOfSquares[1][1], null, null, matrixOfSquares[2][2] );\n matrixOfSquares[2][2].setCardinalSquare(null, null, matrixOfSquares[2][1], matrixOfSquares[2][3] );\n matrixOfSquares[2][3].setCardinalSquare(matrixOfSquares[1][3], null, matrixOfSquares[2][2], null);\n }", "private void arretes_fG(){\n\t\tthis.cube[31] = this.cube[28]; \n\t\tthis.cube[28] = this.cube[30];\n\t\tthis.cube[30] = this.cube[34];\n\t\tthis.cube[34] = this.cube[32];\n\t\tthis.cube[32] = this.cube[31];\n\t}", "void setupSpheres() {\n\n // create a Switch for the spheres, allow switch changes\n spheresSwitch = new Switch(Switch.CHILD_ALL);\n spheresSwitch.setCapability(Switch.ALLOW_SWITCH_WRITE);\n\n // Set up an appearance to make the Sphere with objColor ambient,\n // black emmissive, objColor diffuse and white specular coloring\n Material material = new Material(objColor, black, objColor, white, 32);\n Appearance appearance = new Appearance();\n appearance.setMaterial(material);\n\n // create a sphere and put it into a shared group\n Sphere sphere = new Sphere(0.5f, appearance);\n SharedGroup sphereSG = new SharedGroup();\n sphereSG.addChild(sphere);\n\n // create a grid of spheres in the z=0 plane\n // each has a TransformGroup to position the sphere which contains\n // a link to the shared group for the sphere\n for (int y = -2; y <= 2; y++) {\n for (int x = -2; x <= 2; x++) {\n TransformGroup tg = new TransformGroup();\n tmpVector.set(x * 1.2f, y * 1.2f, -0.1f);\n tmpTrans.set(tmpVector);\n tg.setTransform(tmpTrans);\n tg.addChild(new Link(sphereSG));\n spheresSwitch.addChild(tg);\n }\n }\n }", "public void createList () {\n imageLocs = new ArrayList <Location> ();\n for (int i = xC; i < xLength * getPixelSize() + xC; i+=getPixelSize()) {\n for (int j = yC; j < yLength * getPixelSize() + yC; j+=getPixelSize()) {\n Location loc = new Location (i, j, LocationType.POWERUP, true);\n\n imageLocs.add (loc);\n getGridCache().add(loc);\n \n }\n }\n }", "@Override\n public void resetGrids() {\n view.clearGrid(false);\n\n // then remove non-given numbers\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n if (!grid.isGiven(row, col)) {\n grid.unsetNumber(row, col);\n }\n }\n }\n\n // finally, display the givens on the view\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (grid.isGiven(i, j)) {\n view.setGiven(i, j, grid.getNumber(i, j));\n }\n }\n }\n }", "public void redimensionar() {\n\t\tthis.numCub *= 1.5;\n\t}", "public void homogenize() {\n\t\tif (DoubleComparison.eq(w, 0)){\n\t\t\tthrow new RuntimeException(\"Can't homogenize points at infinity (last component zero)\");\n\t\t}\n\n\t\tthis.x = x / w;\n\t\tthis.y = y / w;\n\t\tthis.z = z / w;\n\t\tthis.w = 1;\n\t}", "private void aretes_aG(){\n\t\tthis.cube[31] = this.cube[14]; \n\t\tthis.cube[14] = this.cube[5];\n\t\tthis.cube[5] = this.cube[41];\n\t\tthis.cube[41] = this.cube[50];\n\t\tthis.cube[50] = this.cube[31];\n\t}", "public void setCoordinates(final double gx, final double gy, final double gz) {\n mGx = gx;\n mGy = gy;\n mGz = gz;\n }", "public void setAdjacent()\r\n {\n \t\r\n adjacentTiles = new Tile[6];\r\n \r\n \r\n //Driver.map[VERT][HOR]\r\n \r\n if(verticalPos < Driver.map.length && horizontalPos > 1) //topleft\r\n {\r\n \ttopLeft = Driver.map[verticalPos + 1][horizontalPos - 1];\r\n }\r\n else\r\n {\r\n \ttopLeft = null;\r\n }\r\n \r\n if(verticalPos < Driver.map.length - 2) //top\r\n {\r\n \ttop = Driver.map[verticalPos + 2][horizontalPos];\r\n }\r\n else\r\n {\r\n \ttop = null;\r\n }\r\n \r\n if(verticalPos < Driver.map.length && horizontalPos < Driver.map[0].length) //topright\r\n {\r\n \ttopRight = Driver.map[verticalPos + 1][horizontalPos + 1];\r\n }\r\n else\r\n {\r\n \ttopRight = null;\r\n }\r\n \r\n if(verticalPos > 1 && horizontalPos < Driver.map[0].length) //bottomright\r\n {\r\n \tbottomRight = Driver.map[verticalPos - 1][horizontalPos + 1];\r\n }\r\n else\r\n {\r\n \tbottomRight = null;\r\n }\r\n \r\n if(verticalPos > 2) //bottom\r\n {\r\n \tbottom = Driver.map[verticalPos - 2][horizontalPos];\r\n }\r\n else\r\n {\r\n \tbottom = null;\r\n }\r\n \r\n if(verticalPos > 1 && horizontalPos > 1) //botttomLeft\r\n {\r\n \tbottomLeft = Driver.map[verticalPos - 1][horizontalPos - 1];\r\n }\r\n else\r\n {\r\n \tbottomLeft = null;\r\n }\r\n \t\r\n \r\n adjacentTiles[0] = topLeft;\r\n adjacentTiles[1] = top;\r\n adjacentTiles[2] = topRight;\r\n adjacentTiles[3] = bottomRight;\r\n adjacentTiles[4] = bottom;\r\n adjacentTiles[5] = bottomLeft;\r\n \r\n \r\n// System.out.print(\"main tile \" + getHor() + \", \" + getVert() + \" \");\r\n// for(int i = 0; i < adjacentTiles.length; i++)\r\n// {\r\n// \tif( adjacentTiles[i] != null)\r\n// \t\tSystem.out.print(adjacentTiles[i].getHor() + \", \" + adjacentTiles[i].getVert() + \" | \");\r\n// \telse\r\n// \t\tSystem.out.print(\"null \");\r\n// }\r\n// System.out.println();\r\n \r\n }", "public abstract void setCells(int x, int y, int [][] pattern);", "public void assignNeighbors(Vertex v) {\r\n\t\t\r\n\t\tif (v.y != 0) {\r\n\t\t\tv.neighbors.add(graph[v.x][v.y - 1]);\r\n\t\t}\r\n\r\n\t\t\r\n\t\tif (v.y != (mazeSize - 1)) {\r\n\t\t\tv.neighbors.add(graph[v.x][v.y + 1]);\r\n\t\t}\r\n\r\n\t\t\r\n\t\tif (v.x != 0) {\r\n\t\t\tv.neighbors.add(graph[v.x - 1][v.y]);\r\n\t\t}\r\n\r\n\t\t\r\n\t\tif (v.x != mazeSize - 1) {\r\n\t\t\tv.neighbors.add(graph[v.x + 1][v.y]);\r\n\t\t}\r\n\t}", "private void setPoints () {\n\t\tArrayList<Point> emptySpot = new ArrayList<Point>();\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\tif (maze[i][j] == 0) {\n\t\t\t\temptySpot.add(new Point (i, j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(emptySpot);\n\t\tthis.goal = emptySpot.get(0);\n\t\tdouble goalRange = this.goal.getX() + this.goal.getY();\n\t\tfor (int i = 1; i < emptySpot.size(); i++) {\n\t\t\tPoint playerStart = emptySpot.get(i);\n\t\t\tdouble playerRange = playerStart.getX() + playerStart.getY();\n\t\t\tif (Math.abs(playerRange - goalRange) > width/2)\n\t\t\tthis.playerStart = playerStart;\n\t\t}\n\t}", "private void resetGrid() {\n ObservableList<Node> childrens = grid.getChildren();\n for (Node node : childrens) {\n Circle temp = (Circle) node;\n temp.setFill(Paint.valueOf(\"Black\"));\n }\n }", "void setAdjForSecondType() {\n matrixOfSquares[0][0].setCardinalSquare(null, matrixOfSquares[1][0] , null, matrixOfSquares[0][1]);\n matrixOfSquares[0][1].setCardinalSquare(null, null , matrixOfSquares[0][0], matrixOfSquares[0][2]);\n matrixOfSquares[0][2].setCardinalSquare(null,matrixOfSquares[1][2] , matrixOfSquares[0][1], matrixOfSquares[0][3]);\n matrixOfSquares[0][3].setCardinalSquare(null,matrixOfSquares[1][3] , matrixOfSquares[0][2], null);\n matrixOfSquares[1][0].setCardinalSquare(matrixOfSquares[0][0], null, null, matrixOfSquares[1][1] );\n matrixOfSquares[1][1].setCardinalSquare(null, matrixOfSquares[2][1], matrixOfSquares[1][0], null );\n matrixOfSquares[1][2].setCardinalSquare(matrixOfSquares[0][2] , matrixOfSquares[2][2], null, matrixOfSquares[1][3]);\n matrixOfSquares[1][3].setCardinalSquare(matrixOfSquares[0][3], matrixOfSquares[2][3], matrixOfSquares[1][2], null);\n matrixOfSquares[2][1].setCardinalSquare(matrixOfSquares[1][1],null, null, matrixOfSquares[2][2] );\n matrixOfSquares[2][2].setCardinalSquare(matrixOfSquares[1][2], null, matrixOfSquares[2][1], matrixOfSquares[2][3] );\n matrixOfSquares[2][3].setCardinalSquare(matrixOfSquares[1][3], null, matrixOfSquares[2][2], null);\n\n }", "private void setNodeConnectors(){\n for (MoveableObject moveableObject : gameObjects.getMoveableObjectsList()) {\r\n // if the hashmap doesn't contain that radius then make the nodes\r\n if (!nodeMap.containsKey(moveableObject.getObjectRadius())){\r\n bufferedStationaryObstacles = new ArrayList();\r\n bufferedNodeConnector = new NodeConnector();\r\n // go through each obstace and buffer it by the object radius -0.5\r\n for (PathBlockingObstacle stationaryObstacle : stationaryObstacles) {\r\n KPolygon buffered1 = bufferer.buffer(stationaryObstacle.getPolygon(), moveableObject.getObjectRadius()-0.5, PathBlockingObstacleImpl.NUM_POINTS_IN_A_QUADRANT);\r\n bufferedStationaryObstacles.add(PathBlockingObstacleImpl.createObstacleFromInnerPolygon(buffered1));\r\n }\r\n // add these obstacles to a buffered node list\r\n for (PathBlockingObstacle bufferedStationaryObstacle : bufferedStationaryObstacles) {\r\n bufferedNodeConnector.addObstacle(bufferedStationaryObstacle, bufferedStationaryObstacles, maxConnectionDistanceBetweenObstacles);\r\n }\r\n // add this node list to the hashmap with the radius as key\r\n nodeMap.put(moveableObject.getObjectRadius(), bufferedNodeConnector);\r\n obstaclesMap.put(moveableObject.getObjectRadius(), bufferedStationaryObstacles);\r\n }\r\n \r\n \r\n }\r\n \r\n }", "private void setAllAvailable() {\r\n for (int large = 0; large < 9; large++) {\r\n for (int small = 0; small < 9; small++) {\r\n Tile tile = mSmallTiles[large][small];\r\n if (tile.getOwner() == Tile.Owner.NEITHER)\r\n addAvailable(tile);\r\n }\r\n }\r\n }", "public void setNeighbors(Cell n, Cell s, Cell w, Cell e) {\n setNeiNorth(n);\n setNeiSouth(s);\n setNeiWest(w);\n setNeiEast(e);\n }", "void setAdjForThirdType() {\n matrixOfSquares[0][0].setCardinalSquare(null, matrixOfSquares[1][0] , null, matrixOfSquares[0][1]);\n matrixOfSquares[0][1].setCardinalSquare(null, matrixOfSquares[1][1] , matrixOfSquares[0][0], matrixOfSquares[0][2]);\n matrixOfSquares[0][2].setCardinalSquare(null,matrixOfSquares[1][2] , matrixOfSquares[0][1], matrixOfSquares[0][3]);\n matrixOfSquares[0][3].setCardinalSquare(null,matrixOfSquares[1][3] , matrixOfSquares[0][2], null);\n matrixOfSquares[1][0].setCardinalSquare(matrixOfSquares[0][0], matrixOfSquares[2][0], null, null );\n matrixOfSquares[1][1].setCardinalSquare(matrixOfSquares[0][1], matrixOfSquares[2][1], null, null );\n matrixOfSquares[1][2].setCardinalSquare(matrixOfSquares[0][2] , matrixOfSquares[2][2], null, matrixOfSquares[1][3]);\n matrixOfSquares[1][3].setCardinalSquare(matrixOfSquares[0][3], matrixOfSquares[2][3], matrixOfSquares[1][2], null);\n matrixOfSquares[2][0].setCardinalSquare(matrixOfSquares[1][0],null, null, matrixOfSquares[2][1] );\n matrixOfSquares[2][1].setCardinalSquare( matrixOfSquares[1][1],null, matrixOfSquares[2][0], matrixOfSquares[2][2] );\n matrixOfSquares[2][2].setCardinalSquare(matrixOfSquares[1][2], null, matrixOfSquares[2][1], matrixOfSquares[2][3] );\n matrixOfSquares[2][3].setCardinalSquare(matrixOfSquares[1][3], null, matrixOfSquares[2][2], null);\n }", "private void setGeometry() {\n this.setCullHint(Spatial.CullHint.Dynamic);\n this.setLocalTranslation(realPosition);\n //attach geometry to this object\n // mat.setColor(\"Color\", colors[r.nextInt(colors.length)]);\n if (!companyTextures.containsKey(this.company)) {\n mat.setTexture(\"ColorMap\", Colors.get(r.nextInt(Colors.size())));\n } else {\n mat.setTexture(\"ColorMap\", companyTextures.get(this.company));\n }\n geom.setMaterial(mat);\n this.attachChild(geom.clone());\n }", "private void setPath(){\r\n // get the reversed path\r\n ArrayList<Grid> reversedPath = new ArrayList<>();\r\n int index = _endIndex;\r\n reversedPath.add(_map.get_grid(index));\r\n while(index != _startIndex){\r\n index = _map.get_grid(index).get_parent();\r\n reversedPath.add(_map.get_grid(index));\r\n }\r\n\r\n // get the final path in the correct order\r\n int length = reversedPath.size();\r\n for(int i=length-1;i>=0;i--){\r\n _path.add(reversedPath.get(i));\r\n }\r\n }", "public void setGhostPoint(double[] point, boolean connected);", "private Grid(Grid oldGrid) {\n\n grid = new String[Main.Y_SIZE][Main.X_SIZE][Main.Z_SIZE];\n this.gateDatabase = oldGrid.gateDatabase;\n this.netDatabase = oldGrid.netDatabase;\n\n for (int i = 0; i < Main.Z_SIZE; i++) {\n for (int k = 0; k < Main.X_SIZE; k++) {\n for (int n = 0; n < Main.Y_SIZE; n++) {\n grid[n][k][i] = oldGrid.grid[n][k][i];\n }\n }\n }\n }", "public void setRiversAlongEdges(int value) {\n this.riversAlongEdges = value;\n }", "public void changingNeighbor() {\n }", "public void ghost(){\n\t\tfor(int i = 0; i < this.position.length ; i++){//itterates through array\n\t\t\tfor(int p = 0; p < this.position.length ; p++){\n\t\t\t\tthis.position[i][p] = 0;//makes the positions for the array 0, player not here\n\t\t\t}\n\t\t}\n\t}", "public void createGrid() {\n\t\tint[][] neighbours = getIo().getNeighbours();\n\t\tsetGrid(new GridAlg(neighbours, animals));\n\t\tgetGrid().setStep(getStep());\n\t}", "public void initialize() {\n for (Location apu : this.locations) {\n Node next = new Node(apu.toString());\n this.cells.add(next);\n }\n \n for (Node helper : this.cells) {\n Location next = (Location)this.locations.searchWithString(helper.toString()).getOlio();\n LinkedList<Target> targets = next.getTargets();\n for (Target finder : targets) {\n Node added = this.path.search(finder.getName());\n added.setCoords(finder.getX(), finder.getY());\n helper.addEdge(new Edge(added, finder.getDistance()));\n }\n }\n \n this.startCell = this.path.search(this.source);\n this.goalCell = this.path.search(this.destination);\n \n /**\n * Kun lähtö ja maali on asetettu, voidaan laskea jokaiselle solmulle arvio etäisyydestä maaliin.\n */\n this.setHeuristics();\n }", "public void deplacer(int nx, int ny)\n\t{\n\t\tposX = nx;\n\t\tposY = ny;\n\t}", "T setGridAboveGraphs(Boolean gridAboveGraphs);", "public void updateStationPositions() {\r\n \t\tObject key;\r\n \t\tObject[] cells = graph.getDescendants(graph.getRoots());\r\n \t\tfor (Object cell : cells) {\r\n \t\t\tif (cell instanceof JmtCell) {\r\n \t\t\t\tJmtCell jcell = (JmtCell) cell;\r\n \t\t\t\tkey = ((CellComponent) jcell.getUserObject()).getKey();\r\n \t\t\t\t// Sets cell coordinate into data structure\r\n \t\t\t\tmodel.setStationPosition(key, new JMTPoint(getCellCoordinates(jcell), !jcell.isLeftInputCell()));\r\n \t\t\t}\r\n \t\t}\r\n \t}", "public void setAllUnexplored() {\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n if (in_start(row, col) || in_goal(row, col)) {\n grid[row][col].setIsExplored(true);\n } else {\n grid[row][col].setIsExplored(false);\n }\n }\n }\n }", "private void setMines(){\n Random random = new Random();\r\n int counter = mines;\r\n while(counter>0){\r\n int rx = random.nextInt(this.x); //without +1 because it can be 0\r\n int ry = random.nextInt(this.y);\r\n if( ! this.grid[rx][ry].isMine() ){\r\n this.grid[rx][ry].setMine();\r\n counter--; \r\n }\r\n }\r\n \r\n }", "private void initGrids() {\n grid0 = new Grid(100f, 50f, 100f, 0);\n grid1 = new Grid(100f, 150f, 100f, 1);\n grid2 = new Grid(100f, 250f, 100f, 2);\n grid3 = new Grid(100f, 350f, 100f, 3);\n grid4 = new Grid(100f, 50f, 200f, 4);\n grid5 = new Grid(100f, 150f, 200f, 5);\n grid6 = new Grid(100f, 250f, 200f, 6);\n grid7 = new Grid(100f, 350f, 200f, 7);\n grid8 = new Grid(100f, 50f, 300f, 8);\n grid9 = new Grid(100f, 150f, 300f, 9);\n grid10 = new Grid(100f, 250f, 300f, 10);\n grid11 = new Grid(100f, 350f, 300f, 11);\n grid12 = new Grid(100f, 50f, 400f, 12);\n grid13 = new Grid(100f, 150f, 400f, 13);\n grid14 = new Grid(100f, 250f, 400f, 14);\n grid15 = new Grid(100f, 350f, 400f, 15);\n\n /**\n * Adding grids from 0 to 15 to static ArayList of all grids\n */\n grids.clear();\n\n grids.add(grid0);\n grids.add(grid1);\n grids.add(grid2);\n grids.add(grid3);\n grids.add(grid4);\n grids.add(grid5);\n grids.add(grid6);\n grids.add(grid7);\n grids.add(grid8);\n grids.add(grid9);\n grids.add(grid10);\n grids.add(grid11);\n grids.add(grid12);\n grids.add(grid13);\n grids.add(grid14);\n grids.add(grid15);\n }", "public Neighborhood()\n\t{\n\t\tlistOfNeighborhoods = new ArrayList<ArrayList<Pokemon>>(numberOfNeighborhoods);\n\t\tfor (int i=0; i<numberOfNeighborhoods; i++)\n\t\t{\n\t\t\tlistOfNeighborhoods.add(i, new ArrayList<Pokemon>());\n\t\t}\n\t}", "public void addToCache () {\n ArrayList <Location> gridCache = getGridCache();\n for (Location l : imageLocs) {\n gridCache.add (l);\n }\n }", "public void setPoints(int numOfIter) {\n\t\tint x = getX();\n\t\tint y = getY();\n\t\tint w = getW();\n\t\tint h = getH();\n\t\th = ((int) (getH() - w*0.29));\n\t\tint numOfSides = 3 * power(4, numOfIter);\n\t\n\t\t\n\t\tif(numOfIter == 0) {\n\t\t\txPointsD = new double[numOfSides];\n\t\t\tyPointsD = new double[numOfSides];\n\t\t\t\n\t\t\txPointsD[2] = x;\n\t\t\tyPointsD[2] = y + h;\n\t\t\t\n\t\t\txPointsD[1] = (double) x + ((double) w)/2;\n\t\t\tyPointsD[1] = y;\n\t\t\t\n\t\t\txPointsD[0] = x + w;\n\t\t\tyPointsD[0] = y + h;\n\t\t} else {\n\t\t\tsetPoints(numOfIter - 1);\n\t\t\tint numOfSidesBefore = xPoints.length;\n\t\t\tdouble[] xPointsDB = xPointsD;\n\t\t\tdouble[] yPointsDB = yPointsD;\n\t\t\txPointsD = new double[numOfSides];\n\t\t\tyPointsD = new double[numOfSides];\n\t\t\t\n\t\t\tfor(int i = 0; i < numOfSidesBefore; i++) {\n\t\t\t\txPointsD[4*i] = xPointsDB[i];\n\t\t\t\tyPointsD[4*i] = yPointsDB[i];\n\t\t\t\t\n\t\t\t\tdouble nextXPointsDB;\n\t\t\t\tdouble nextYPointsDB;\n\t\t\t\tif(i < numOfSidesBefore - 1) {\n\t\t\t\t\tnextXPointsDB = xPointsDB[i+1];\n\t\t\t\t\tnextYPointsDB = yPointsDB[i+1];\n\t\t\t\t} else {\n\t\t\t\t\tnextXPointsDB = xPointsDB[0];\n\t\t\t\t\tnextYPointsDB = yPointsDB[0];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//4i + 1 --> U = (2A+B)/3\n\t\t\t\txPointsD[4*i + 1] = (2 * xPointsDB[i] + nextXPointsDB)/3;\n\t\t\t\tyPointsD[4*i + 1] = (2 * yPointsDB[i] + nextYPointsDB)/3;\n\t\t\t\t\n\t\t\t\t//4i + 2 --> this one is complicated --> V = U + (AB/3)*(cos(ang(AB) + pi.3), sin(ang(AB) + pi/3))\n\t\t\t\tdouble angAB = Math.atan2(nextYPointsDB-yPointsDB[i], nextXPointsDB-xPointsDB[i]);\n\t\t\t\txPointsD[4*i + 2] = xPointsD[4*i + 1] + \n\t\t\t\t\t\t(Math.sqrt((nextXPointsDB - xPointsDB[i])*(nextXPointsDB - xPointsDB[i]) +\n\t\t\t\t\t\t\t\t(nextYPointsDB - yPointsDB[i])*(nextYPointsDB - yPointsDB[i]))/3.0) *\n\t\t\t\t\t\tMath.cos(angAB + Math.PI/3.0); \n\t\t\t\t\n\t\t\t\tyPointsD[4*i + 2] = yPointsD[4*i + 1] + \n\t\t\t\t\t\t(Math.sqrt((nextXPointsDB - xPointsDB[i])*(nextXPointsDB - xPointsDB[i]) +\n\t\t\t\t\t\t\t\t(nextYPointsDB - yPointsDB[i])*(nextYPointsDB - yPointsDB[i]))/3.0) *\n\t\t\t\t\t\tMath.sin(angAB + Math.PI/3.0);\n\t\t\t\t\n\t\t\t\t//4i + 3 --> W = (A + 2B)/3\n\t\t\t\txPointsD[4*i + 3] = (xPointsDB[i] + 2 * nextXPointsDB)/3;\n\t\t\t\tyPointsD[4*i + 3] = (yPointsDB[i] + 2 * nextYPointsDB)/3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\txPoints = new int[numOfSides];\n\t\tyPoints = new int[numOfSides];\n\t\tfor(int i = 0; i < numOfSides; i++) {\n\t\t\txPoints[i] = (int) xPointsD[i];\n\t\t\tyPoints[i] = (int) yPointsD[i];\n\t\t}\n\t\t\n\t}", "public void removeAllPawns(){\n\n for (Map.Entry<Integer, ImageView> entry : actionButtons.entrySet()) {\n Image image = null;\n entry.getValue().setImage(image);\n }\n\n for (Map.Entry<Integer, ImageView> entry : harvestBox.entrySet()) {\n\n Image image = null;\n entry.getValue().setImage(image);\n harvestBoxFreeSlot = 0;\n\n }\n\n for (Map.Entry<Integer, ImageView> entry : productionBox.entrySet()) {\n\n Image image = null;\n entry.getValue().setImage(image);\n productionBoxFreeSlot = 0;\n\n }\n\n for (Map.Entry<Integer, ImageView> entry : gridMap.entrySet()) {\n Image image = null;\n entry.getValue().setImage(image);\n gridFreeSlot = 0;\n }\n }", "public void addAllSeriesTo(GMMDataset newDataset){\n int seriesCount = this.dataset.seriesCount();\n for (int i = 0; i < seriesCount; i++) {\n XYSeries xySeries = this.dataset.getSeries(i);\n boolean shapeVisible = this.dataset.shapeVisible(i);\n newDataset.addSeries(xySeries, shapeVisible);\n }\n this.dataset = newDataset;\n }", "public void setGrid(int x, int y, boolean b){\n\t\tgrid[x][y] = b;\n\t}", "public void findNeighbours(ArrayList<int[]> visited , Grid curMap) {\r\n\t\tArrayList<int[]> visitd = visited;\r\n\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS cur pos:\" +Arrays.toString(nodePos));\r\n\t\t//for(int j=0; j<visitd.size();j++) {\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +Arrays.toString(visited.get(j)));\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS getvstd\" +Arrays.toString(visited.get(j)));\r\n\t\t//}\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +visited);\r\n\t\tCell left=curMap.getCell(0, 0);\r\n\t\tCell right=curMap.getCell(0, 0);\r\n\t\tCell upper=curMap.getCell(0, 0);\r\n\t\tCell down=curMap.getCell(0, 0);\r\n\t\t//the getStart() method returns x,y coordinates representing the point in x,y axes\r\n\t\t//so if either of [0] or [1] coordinate is zero then we have one less neighbor\r\n\t\tif (nodePos[1]> 0) {\r\n\t\t\tupper=curMap.getCell(nodePos[0], nodePos[1]-1) ; \r\n\t\t}\r\n\t\tif (nodePos[1] < M-1) {\r\n\t\t\tdown=curMap.getCell(nodePos[0], nodePos[1]+1);\r\n\t\t}\r\n\t\tif (nodePos[0] > 0) {\r\n\t\t\tleft=curMap.getCell(nodePos[0] - 1, nodePos[1]);\r\n\t\t}\r\n\t\tif (nodePos[0] < N-1) {\r\n\t\t\tright=curMap.getCell(nodePos[0]+1, nodePos[1]);\r\n\t\t}\r\n\t\t//for(int i=0;i<visitd.size();i++) {\r\n\t\t\t//System.out.println(Arrays.toString(visitd.get(i)));\t\r\n\t\t//}\r\n\t\t\r\n\t\t//check if the neighbor is wall,if its not add to the list\r\n\t\tif(nodePos[1]>0 && !upper.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] - 1}))) {\r\n\t\t\t//Node e=new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1},curMap);\r\n\t\t\t//if(e.getVisited()!=true) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1}, curMap)); // father of the new nodes is this node\r\n\t\t\t//}\r\n\t\t}\r\n\t\tif(nodePos[1]<M-1 &&!down.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] + 1}))){\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] + 1}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]>0 && !left.isWall() && (!exists(visitd,new int[] {nodePos[0] - 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] - 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]<N-1 && !right.isWall() && (!exists(visitd,new int[] {nodePos[0] + 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] + 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\t//for(int i=0; i<NodeChildren.size();i++) {\r\n\t\t\t//System.out.println(\"Paidia sth find:\" + Arrays.toString(NodeChildren.get(i).getNodePos()));\r\n\t\t//}\r\n\t\t\t\t\t\t\r\n\t}", "private void setGraph(int step) {\r\n\t\tif (this.gragraNames.getSelectedValue() == null)\r\n\t\t\treturn;\r\n\t\tif (step == StepPanel.STEP_HOST_GRAPH\r\n\t\t\t\t|| step == StepPanel.STEP_STOP_GRAPH) {\r\n\t\t\tString name = (String) this.gragraNames.getSelectedValue();\r\n\t\t\tboolean found = false;\r\n\t\t\tfor (int i = 0; i < this.treeView.getGraGras().size() && !found; i++) {\r\n\t\t\t\tEdGraGra gragra = this.treeView.getGraGras().elementAt(i);\r\n\t\t\t\tif (name.equals(gragra.getName())) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tswitch (step) {\r\n\t\t\t\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\t\t\t\tthis.hostGraph = gragra;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\t\t\t\tthis.stopGraph = gragra;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int setPoint(float x, float y, int gnum);", "public void constructGraph(){\r\n\t\tmyGraph = new Graph();\r\n\r\n\t\tfor(int i =0;i<=35;i++) {\r\n\t\t\tmyGraph.addVertex(allSpots[i]);\r\n\t\t}\r\n\r\n\t\tfor(int i =0;i<=35;i++) {\r\n\t\t\tint th = i;\r\n\t\t\twhile(th%6!=0) {\r\n\t\t\t\tth--;\r\n\t\t\t}\r\n\t\t\tfor(int h=th;h<=th+5;h++) {\r\n\t\t\t\tif(h!=i) {\r\n\t\t\t\t\tif(allSpots[i].equals(allSpots[h])) {\t\t\r\n\t\t\t\t\t\tmyGraph.addEdge(allSpots[i], allSpots[h]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint tv=i;\r\n\t\t\twhile(tv-6>0) {\r\n\t\t\t\ttv=tv-6;\r\n\t\t\t}\r\n\t\t\tfor(int v=tv;v<36; v=v+6) {\r\n\t\t\t\tif(v!=i) {\r\n\t\t\t\t\tif(allSpots[i].equals(allSpots[v])) {\t\t\r\n\t\t\t\t\t\tmyGraph.addEdge(allSpots[i], allSpots[v]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Add verticies that store the Spot objects\r\n\t\t//Add edges to connect spots that share a property along an orthogonal direction\r\n\r\n\t\t//This is the ONLY time it is ok to iterate the array.\r\n\t\t\r\n\t\t//myGraph.addVert(...);\r\n\t\t//myGraph.addEdge(...);\r\n\t}", "public abstract void manageCell(int x, int y, int livingNeighbours);" ]
[ "0.68435144", "0.63938195", "0.6231035", "0.6119927", "0.59280574", "0.5823151", "0.5575939", "0.54617023", "0.5447666", "0.54400074", "0.540131", "0.5372064", "0.5348576", "0.5324323", "0.53066534", "0.5302049", "0.5298211", "0.5289312", "0.5283192", "0.528103", "0.52531147", "0.52512586", "0.5250202", "0.5237369", "0.52243865", "0.5196373", "0.5177051", "0.51672965", "0.51509", "0.5145427", "0.5140885", "0.51405036", "0.5140206", "0.51391894", "0.51256037", "0.5103041", "0.50913966", "0.507794", "0.5077889", "0.5067813", "0.50667137", "0.5063691", "0.50615996", "0.5061072", "0.5060513", "0.50593275", "0.50583065", "0.5054328", "0.5043291", "0.503284", "0.50326276", "0.5031816", "0.5018964", "0.50121176", "0.50109917", "0.50036377", "0.50034887", "0.49987292", "0.4997215", "0.49970824", "0.4990262", "0.49897212", "0.49852595", "0.49802998", "0.497647", "0.4975533", "0.49742264", "0.49726418", "0.49718228", "0.49697605", "0.49670795", "0.49643412", "0.49632198", "0.49622178", "0.49578637", "0.49568456", "0.49457747", "0.4943516", "0.49428007", "0.49361843", "0.49305135", "0.4930439", "0.4926215", "0.49190503", "0.4918779", "0.490321", "0.49029753", "0.49018964", "0.48984858", "0.4864139", "0.48635328", "0.48607308", "0.48564932", "0.48544064", "0.4853787", "0.48520312", "0.48520142", "0.48511142", "0.48453552", "0.4843362" ]
0.6833014
1
GET methods ================================================ Returns a list of posts
@GET("posts/") Call<List<Post>>getPosts();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<BlogPost> getPosts();", "List<Post> getAllPost() throws Exception;", "List<PostInfo> getPostList();", "@GetMapping(\"posts\")\n\tpublic List<Post> index() {\n\t\treturn postSvc.index();\n\t}", "@GetMapping(\"\")\n public ResponseEntity <List<Post>>listAllPosts() {\n return ResponseEntity.ok(postService.listAllPosts());\n }", "public List<Posts> listPosts() {\n\t\treturn this.findAll();\n\t}", "List<Post> findAllPosts();", "@GetMapping(\"/feed\")\n private ResponseEntity<List<Post>> getPosts() {\n User user = getCurrentUser();\n logger.info(\"Not null \" + (user == null));\n List<Post> posts = postService.findAllByUser(user);\n return new ResponseEntity<>(posts, HttpStatus.OK);\n }", "public Iterable<Post> listAllPosts();", "public List<Post> retriveAllPosts()\n\t {\n\t\t List<Post> Posts =(List<Post>) Postrepository.findAll();\n\t\t \n\t\t for(Post Post :Posts)\n\t\t {\n\t\t\t //l.info(\"Post +++ :\" +Post);\n\t\t }\n\t\t return Posts;\n\t\t\t \n\t }", "@GetMapping(\"/getAllPosts\")\n public ResponseEntity<List<Post>> getAllPostDetails(){\n return new ResponseEntity<List<Post>>(postService.getAllInfoDetails(),HttpStatus.OK);\n }", "public Collection getPosts() throws DatabaseException;", "List<Post> findAll();", "@GET(\"/auth/api/v1/user/{id}/post/list?\")\n Call<JsonObject> fetchAllPost(@Path(\"id\") String id,@Query(\"api_token\") String token);", "public List<Post> getPosts(){return this.posts;}", "List<Post> getPostForUser(String email) throws Exception;", "@Override\n\tpublic List<Post> list() {\n\t\treturn null;\n\t}", "void displayAllPosts();", "public static ResultSet getPosts(){\n ResultSet result = null;\n try {\n conn = ConnectionProvider.getCon();\n pst = conn.prepareStatement(\"select * from normalposts\");\n result = pst.executeQuery();\n\n System.out.println(\"PostDAO: getting posts\");\n } catch(Exception e) {\n System.out.println(\"PostDAO: unsuccessful query\");\n System.out.println(e);\n }\n return result;\n }", "@GET(\"posts/1\")\n public Call<Post> getPost();", "@RequestMapping(value = {\"/fpost/list\"}, method = RequestMethod.GET)\r\n\tpublic ResponseEntity<List<Fpost>> fetchAllFposts() {\r\n\t\tSystem.out.println(\"fetching list of all fposts\");\r\n\t\tList<Fpost> fpost = fpostDAO.list();\r\n\t\treturn new ResponseEntity<List<Fpost>>(fpost, HttpStatus.OK);\r\n\t}", "public List getAllBlogPosts(){\n return blogPostFacade.findAll();\n }", "@GetMapping(\"/allUsersPosts\")\n public ResponseEntity<List<PostResource>> retrieveAllPostsForAllUsers() {\n //first we will retrieve all users to get their ids\n List<Long> userIds = externalService.retrieveAllUserIds();\n\n //then we will search for every post based on userId\n List<PostResource> postResources = new ArrayList<>();\n for (Long userId : userIds) {\n postResources.addAll(externalService.retrievePostsForUser(userId));\n }\n\n return new ResponseEntity<>(postResources, HttpStatus.ACCEPTED);\n }", "@GET(\"posts\")\n public Call<List<Post>> getPost(@Query(\"userId\") String userId);", "public static Result posts() {\n\t\tPost post = new Post();\n\t\tUser user = UserController.loggedInUser();\n\t\tif (user != null) {\n\t\t\tpost.city= user.city;\n\t\t\tpost.state = user.state;\n\t\t\tpost.country = user.country;\n\t\t\tpost.zipcode = user.zipcode;\n\t\t\tpost.createdBy = user.userName;\t\t\t\n\t\t}\n\t\t//TODO:Use bind() instead of the above to avoid 0.0 in price field\n\t\treturn ok(index.render(Post.listPosts(), form(Post.class).fill(post), user));\n\t}", "@Override\r\n\tpublic List<Post> getAllPost() {\n\t\tString hql = \"from Post\";\r\n\t\treturn (List<Post>) getHibernateTemplate().find(hql);\r\n\t}", "protected void queryPosts() {\n ParseQuery<Post> query = ParseQuery.getQuery(Post.class);\n //get all the post objects from the database\n query.include(Post.KEY_USER);\n //set the limit to 20 posts being retrieved\n query.setLimit(POSTS_QUERY_LIMIT);\n\n query.addDescendingOrder(Post.KEY_CREATED_KEY);\n\n query.findInBackground(new FindCallback<Post>() {\n @Override\n public void done(List<Post> posts, ParseException e) {\n // e == null if success\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n\n for (Post post : posts) {\n Log.i(TAG, \"Post: \" + post.getDescription() + \", username: \" + post.getUser().getUsername());\n }\n adapter.clear();\n allPosts.addAll(posts);\n adapter.notifyDataSetChanged();\n }\n });\n }", "private List<Text> getPosts() {\n\t\tList<Text> result = new ArrayList<>();\n\t\tObservableList<Post> postList = PostDAO.searchPosts(String.valueOf(friendsID));\n\t\tfor(Post post : postList) {\n\t\t\tString postTime = post.getPostTime();\n\t\t\tString content = post.getPostContent();\n\t\t\tString editTime = post.getEditTime();\n\t\t\tString toPost;\n\t\t\tif(editTime != null) {\n\t\t\t\ttoPost = \"Post on \" + postTime + \" Last edit on \" + editTime + \"\\n\" + content + \"\\n\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttoPost = \"Post on \" + postTime + \"\\n\" + content + \"\\n\";\n\t\t\t}\n\t\t\tText text = new Text(toPost);\n\t\t\tresult.add(text);\n\t\t}\n\t\treturn result;\n\t}", "@GetMapping(value=\"/allstorys\")\n\tpublic @ResponseBody List<Story> selectAllPosts() {\n\t\tloggy.info(\"List of all Stories pulled from the database\");\n\t\treturn storyServ.selectAllStories();\n\t}", "public ArrayList<Post> viewAllPosts()\n\n {\n postList = new ArrayList<Post>();\n\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n String query = \"SELECT * FROM Post WHERE 1\";\n Cursor c = database.rawQuery(query, null);\n if (c.moveToFirst())\n {\n do\n {\n Post post = new Post();\n post.setPostBody(c.getString(c.getColumnIndex(\"postBody\")));\n post.setPostedBy(c.getString(c.getColumnIndex(\"postedBy\")));\n post.setPostedAt(c.getString(c.getColumnIndex(\"postedAt\")));\n post.setPostID(Integer.valueOf(c.getString(c.getColumnIndex(\"postID\"))));\n post.setBitmap(c.getString(c.getColumnIndex(\"image\")));\n\n postList.add(post);\n } while (c.moveToNext());\n }\n\n else\n {\n Log.i(TAG, \"There are no posts in the DB.\");\n }\n c.close();\n dbH.close();\n }\n catch (SQLException e)\n {\n e.printStackTrace();\n }\n return postList;\n }", "protected void queryPosts()\n {\n ParseQuery<Post> query = ParseQuery.getQuery(Post.class);\n query.include(Post.KEY_USER);\n query.whereEqualTo(Post.KEY_USER, ParseUser.getCurrentUser());\n query.setLimit(20);\n query.addDescendingOrder(Post.KEY_CREATED_AT);\n query.findInBackground(new FindCallback<Post>() {\n @Override\n public void done(List<Post> posts, ParseException e)\n {\n if(e != null)\n {\n Log.e(TAG, \"Issue with getting posts\", e);\n }\n for(Post post : posts)\n {\n Log.i(TAG, \"Post: \" + post.getDescription() + \", username\" + post.getUser().getUsername());\n }\n adapter.clear();\n allPosts.addAll(posts);\n swipeContainer.setRefreshing(false);\n adapter.notifyDataSetChanged();\n\n }\n });\n }", "private void queryPosts() {\n ParseQuery<OutfitPost> query = ParseQuery.getQuery(OutfitPost.class);\n // only include data referred by user key\n query.include(OutfitPost.KEY_USER);\n query.whereEqualTo(OutfitPost.KEY_USER, ParseUser.getCurrentUser());\n // limit query to latest 20 items\n query.setLimit(20);\n // order posts by creation date (newest first)\n query.addDescendingOrder(OutfitPost.KEY_CREATED_KEY);\n // start an asynchronous call for posts\n query.findInBackground(new FindCallback<OutfitPost>() {\n @Override\n public void done(List<OutfitPost> posts, ParseException e) {\n // check for errors\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n // Save oldest post in query for loading more posts\n if (posts.size() > 0) {\n oldestPost = posts.get(posts.size() - 1).getCreatedAt();\n }\n // update adapter with posts list\n adapter.clear();\n adapter.addAll(posts);\n }\n });\n }", "@GetMapping //Sempre que houver uma requisição externa com o método GET através da url \"/postagens\" o metodo GetAll será executado\n\tpublic ResponseEntity<List<Postagem>> GetAll(){\n\treturn ResponseEntity.ok(repository.findAll()); //retornar ok, com a requisição de todas as postagens\n\t}", "@Override\r\n public List<Post> findAll() {\r\n List<Post> posts = new ArrayList<>();\r\n List<Map<String, Object>> rows = jdbcOp.queryForList(SQL_SELECT_ALL_TICKET);\r\n\r\n for (Map<String, Object> row : rows) {\r\n Post post = new Post();\r\n \r\n int id = (int)row.get(\"id\");\r\n post.setId(id); \r\n \r\n String customername = (String)row.get(\"customername\");\r\n post.setCustomerName(customername); \r\n \r\n String subject = (String)row.get(\"subject\");\r\n post.setSubject(subject);\r\n \r\n String body = (String)row.get(\"body\");\r\n post.setBody(body);\r\n \r\n String categories = (String)row.get(\"categories\");\r\n post.setCategories(categories);\r\n \r\n posts.add(post);\r\n }\r\n return posts;\r\n }", "public List<Blog> list();", "@GetMapping(\"/\")\n public String allThePosts(Model viewModel) {\n\n viewModel.addAttribute(\"posts\", postService.findAll());\n return \"/blog_template/index\";\n }", "public Iterable<Post> findAll(){\n return postDao.findAll();\n }", "public List<Post> findAll() {\n\t\tSession session;\n\t\ttry {\n\t\t\tsession = sessfact.getCurrentSession();\n\t\t} catch (HibernateException e) {\n\t\t\tsession = sessfact.openSession();\n\t\t}\n\t\tTransaction trans = session.beginTransaction();\n\t\tList<Post> list = session.createQuery(\"from Post\", Post.class).list();\n\t\ttrans.commit();\n\n\t\treturn list;\n\t}", "private List<String> searchForPosts(){\n String userId = searchForUser();\n List <String> postIds;\n String response = given().\n get(\"/posts\").then().extract().asString();\n postIds = from(response).getList(String.format(\"findAll { it.userId.equals(%s) }.id\", userId));\n return postIds;\n }", "@GET(\"posts/{id}\")\n public Call<Post> getPost(@Path(\"id\") int postId);", "@Override\n protected void queryPosts() {\n ParseQuery<Post> query = ParseQuery.getQuery(Post.class);\n query.include(Post.KEY_USER);\n query.whereEqualTo(Post.KEY_USER, ParseUser.getCurrentUser());\n Log.d(TAG, \"ParseUser\" + ParseUser.getCurrentUser().toString());\n query.setLimit(20);\n query.addDescendingOrder(Post.KEY_CREATED_AT);\n query.findInBackground(new FindCallback<Post>() {\n @Override\n public void done(List<Post> posts, ParseException e) {\n if (e != null){\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n for (Post post: posts){\n Log.i(TAG, \"Post: \" + post.getDescription() + \", username: \" + post.getUser().getUsername());\n }\n allPosts.addAll(posts);\n adapter.notifyDataSetChanged();\n }\n });\n }", "@Override\r\n\tpublic List<Post> findAll() {\n\t\treturn codeblogRepository.findAll();\r\n\t}", "@RequestMapping(value = \"/PubBlogs\", method = RequestMethod.GET)\n @ResponseBody\n public List<Blog> getPubBlogs() {\n List<Blog> allBlogs = blogDAO.getAllBlogs();\n List<Blog> pubBlogs = new ArrayList<>();\n\n for (int i = 0; i < allBlogs.size(); i++) {\n if (allBlogs.get(i).isPublished()) {\n pubBlogs.add(allBlogs.get(i));\n }\n }\n\n return pubBlogs;\n }", "public synchronized List<Post> getPosts(int groupId) {\n try {\n this.connect();\n return linkedin.groupOperations().getPosts(groupId).getPosts();\n } catch (Exception e) {\n log.debug(\"Exception occured when reading posts from group: \" + groupId);\n }\n return null;\n }", "@GetMapping(\"/post/{id}\")\n PostDTO getPostsById(@PathVariable Long id);", "public List<Post> getAllPublic() throws SQLException {\r\n\tString sql = \"SELECT * FROM posts WHERE isPublic = 1 ORDER BY date DESC LIMIT ?\";\r\n\tPreparedStatement st = db.prepareStatement(sql);\r\n\tst.setQueryTimeout(TIMEOUT);\r\n\tst.setInt(1, LIMIT);\r\n\t\r\n\tResultSet results = st.executeQuery();\r\n\tList<Post> parsed = parseResults(results);\r\n\treturn parsed;\r\n }", "public List<Post> getMyPostById(int id) {\n\t\treturn pm.getMyPostById(id);\r\n\t}", "private JSONArray getBlogItems(){\n String reqUrl = \"https://www.tistory.com/apis/post/list\";\n String data = String.format(\"access_token=%s&output=%s&blogName=%s&count=%d\"\n ,blog.getAccess_token(),\"json\",blog.getBlogName(),itemCnt);\n try{\n HttpURLConnection conn = initConnGET(reqUrl,data);\n StringBuilder builder = new StringBuilder();\n String line = \"\";\n if (conn.getResponseCode() == conn.HTTP_OK) {\n InputStreamReader isr = new InputStreamReader(conn.getInputStream(), \"UTF-8\");\n BufferedReader reader = new BufferedReader(isr);\n while ((line = reader.readLine()) != null) {\n builder.append(line);\n }\n reader.close();\n }\n conn.disconnect();\n JSONArray items = new JSONObject(builder.toString())\n .getJSONObject(\"tistory\")\n .getJSONObject(\"item\")\n .getJSONArray(\"posts\");\n return items;\n }catch(Exception err){\n return null;\n }\n }", "@GET(\"posts/1\")\n Call<Post> getPostOne();", "public List<Post> getCreatedPosts() {\n return createdPosts;\n }", "@Override\n public PostListDTO getPosts( Long categoryId, int pageNum, int pageSize ) {\n if( categoryId != null && categoryId > -1)\n validateCategoryId( categoryId );\n //create a PageRequest\n PageRequest pageRequest = pageRequestBuilder.buildPageRequest( pageNum, pageSize, Sort.Direction.DESC,\"created\" );\n //retrieve the posts\n Page<Post> page;\n if ( categoryId > -1 )\n page = postRepository.findAllByCategory_IdAndParentNull( categoryId, pageRequest );\n else\n page = postRepository.findAllByParentNullOrderByCreatedDesc( pageRequest );\n List<PostDTO> postDTOS = new ArrayList<>();\n page.forEach( post -> {\n PostDTO dto = buildReturnDto( post );\n postDTOS.add( dto );\n } );\n return new PostListDTO( postDTOS, PageRequestBuilder.buildPageInfoResponse(page) );\n }", "public BlogPost getPostById(Long id);", "@GET(\"rest/emprego\")\n Call<List<Posto>> callListPostoSINE();", "@RequestMapping(value = \"posts\", method = RequestMethod.GET)\n \tpublic String showPostsForUser(@RequestParam(\"id\") String userId, Model model) {\n \n \t\tFeedOperations feedOps = facebook.feedOperations();\n \n \t\tList<Post> posts = feedOps.getPosts();\n \t\tlogger.debug(\"Retrieved \" + posts.size() + \" from the Facebook authenticated user\");\n \n \t\tmodel.addAttribute(\"posts\", posts);\n \t\treturn \"home\";\n \t}", "PaginatedSearchResponseModel findAllPostsForType(String type, Pageable page);", "public List<?> getPosts(long organizationid) {\n\t\t \n\t\tList<?> postsList = null;\n\t\tCriteria query = null;\n\t\ttry { \n\t\t\tquery = getCurrentSession().createCriteria(Post.class); \n\t\t\t//aliases\n\t\t\tquery.createAlias(\"this.orgperson\", \"author\")\n\t\t\t\t .createAlias(\"author.organizationid\", \"organization\")\n\t\t\t\t .createAlias(\"author.personid\", \"orgperson\");\n\t\t\t//restrictions\n\t\t\tquery.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t\t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t\t .add(Restrictions.eq(\"orgperson.personstatus\", 'A'))\n\t\t\t\t .add(Restrictions.eq(\"organization.organizationid\", organizationid)); \n\t\t\t\n\t\t\t\n\t\t\tquery.setProjection(Projections.projectionList()\n\t\t\t\t\t//post projections\n\t\t\t\t\t.add(Projections.distinct(Projections.property(\"this.id\").as(\"id\")))\n\t\t\t\t\t.add(Projections.property(\"this.bannerpath\").as(\"bannerpath\"))\n\t\t\t\t\t.add(Projections.property(\"this.commentable\").as(\"commentable\"))\n\t\t\t\t\t.add(Projections.property(\"this.content\").as(\"content\"))\n\t\t\t\t\t.add(Projections.property(\"this.date\").as(\"date\"))\n\t\t\t\t\t.add(Projections.property(\"this.media\").as(\"media\"))\n\t\t\t\t\t.add(Projections.property(\"this.status\").as(\"status\"))\n\t\t\t\t\t.add(Projections.property(\"this.title\").as(\"title\"))\n\t\t\t\t\t\n\t\t\t\t\t//author projections\n\t\t\t\t\t.add(Projections.property(\"author.orgpersonid\").as(\"authororgpersonid\")) \n\t\t\t\t\t.add(Projections.property(\"author.orgpersonstatus\").as(\"authororgpersonstatus\"))\n\t\t\t\t\t\n\t\t\t\t\t.add(Projections.property(\"orgperson.personid\").as(\"orgpersonId\"))\n\t\t\t\t\t.add(Projections.property(\"orgperson.firstName\").as(\"orgpersonFirstName\"))\n\t\t\t\t\t.add(Projections.property(\"orgperson.lastName\").as(\"orgpersonLastName\"))\n\t\t\t\t\t.add(Projections.property(\"orgperson.middleName\").as(\"orgpersonMiddleName\"))\n\t\t\t\t\t.add(Projections.property(\"orgperson.personphotourl\").as(\"orgpersonPhotourl\")) \n\t\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\t);\n\t\t\t \n\t\t\tOrder order = Order.desc(\"this.date\");\n\t\t\tquery.addOrder(order);\n\t\t\tpostsList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list(); \n\t\t\t \n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tpostServiceLogger.error(\"error in PostService for getPosts()\",e);\n\t\t}\n\t\treturn postsList;\n\t}", "public Page<Post> getNewPosts(){\n Pageable page = new PageRequest(0, 3, Sort.Direction.DESC, \"createdAt\");\n System.out.println(\"getNewPosts\");\n // Page<Post> posts = postRepository.findTop10OrderByCreatedAtOrderByCreatedAtDesc(page);\n // List<Post> p = postRepository.getNewestPosts();\n\n Page<Post> pp = postRepository.findAll(page);\n\n for (Post p :pp){\n logger.info(\"getNewPosts -> \" + p);\n }\n return pp;\n/* for (Post p :posts){\n System.out.println(\"p->\" + p);\n }\n if (posts != null)\n return posts;\n return null;*/\n }", "@GET(\"trigger\")\n Call<Post> getPosts(@Query(\"shortid\") String shortid,\n @Query(\"pin\") String pin,\n @Query(\"app\") String app\n );", "@RequestMapping(value = \"/posts\", method = RequestMethod.GET)\n\tpublic String postsPage(Model model) {\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tmodel.addAttribute(\"username\", auth.getName());\n\t\tmodel.addAttribute(\"title\", \"WeSpeak | Bài viết kinh nghiệm\");\n\n\t\tList<Post> list = postDAO.listPostActive(1);\n\t\tmodel.addAttribute(\"postModel\", list);\n\t\tif (list != null) {\n\t\t\tList<Post> listImportant = new ArrayList<Post>();\n\t\t\tif (list.size() <= 4)\n\t\t\t\tfor (int i = 0; i < list.size(); i++)\n\t\t\t\t\tlistImportant.add(list.get(i));\n\t\t\telse\n\t\t\t\tfor (int i = 0; i < 4; i++)\n\t\t\t\t\tlistImportant.add(list.get(i));\n\n\t\t\tmodel.addAttribute(\"postListImportant\", listImportant);\n\t\t}\n\t\treturn \"postsPage\";\n\t}", "public List<BlogPost> getBlogPosts(String query) throws UnsupportedEncodingException, SSOException{\n String fields = \"name,description,content,cat,source,title,state,createdby,updateddate\";\n\t\t\n List<AssetInfo> assetinfoList = search(wcs.getCsSiteName(), \"FW_BlogPost\", query, fields, null, null, \"updateddate\", \"desc\").getAssetinfos();\n List<BlogPost> assets = null;\n \n \n if(assetinfoList!= null && assetinfoList.size()>0){\n \tassets = new ArrayList<BlogPost>();\n\t for(AssetInfo info : assetinfoList){\n\t \t\n\t \t\t\n\n\t \tBlogPost a = new BlogPost();\n\t \ta.setId(info.getId().split(\":\")[1]);\n\t \ta.setDescription(Mapper.getField(\"description\",info.getFieldinfos()) );\n\t \ta.setName(Mapper.getField(\"name\",info.getFieldinfos()) );\n\t \ta.setTitle(Mapper.getField(\"title\",info.getFieldinfos()) );\n\t \ta.setContent(Mapper.getField(\"content\",info.getFieldinfos()) );\n\t \ta.setState(Mapper.getField(\"state\",info.getFieldinfos()) );\n\n\t \ta.setCreatedby(Mapper.getField(\"createdby\",info.getFieldinfos()) );\n\t \ta.setCreateddate(Mapper.getField(\"updateddate\",info.getFieldinfos()) );\n\n\n\t \tassets.add(a);\n\t }\n }\n \n return assets;\n\t\t\n\t}", "public List<PageContent> getAllPageContent();", "@GetMapping(value=\"{email}/userstorys\")\n\tpublic @ResponseBody List<Story> selectUserPosts(@PathVariable(\"email\") String email) {\n\t\tloggy.info(\"List of a User's Stories pulled from the database\");\n\t\treturn storyServ.selectStoriesByEmail(email);\n\t}", "public PagedList<Post> getTimeline() {\n return this.getTimeline(null);\n }", "@GetMapping(path = \"/posts\")\n public ResponseEntity getPosts(@RequestParam(required = false) String city) {\n try {\n List<Post> list = rocketLunchService.getPosts(city);\n return ResponseEntity.ok().body(list);\n } catch (Exception e) {\n return ResponseEntity.badRequest().body(e);\n }\n }", "GetBlogListResponse getBlogPostList( GetBlogListRequest request )\n\t\t\tthrows InvalidArgumentException, InsufficientAccessException, UnexpectedServerException;", "@GetMapping(\"/{id}\")\n public ResponseEntity<Post> getPostById(@PathVariable Long id){\n Post post = postService.getPostById(id);\n return ResponseEntity.ok(post);\n }", "@RequestMapping(\"/homelist\")\n public Page<PostEntity> mainPage() {\n return postService.getPage(0);\n }", "public List<PostDto> displayPostList(UserDto user);", "public List<Post> getPostByName(String search) {\n\t\treturn pm.getPostByName(search);\r\n\t}", "public ArrayList<PostInfo> getPost() throws SQLException {\n ArrayList<PostInfo> postInfoList = new ArrayList<>();\n String sql = \"SELECT * FROM `post` WHERE `status` = 1 ORDER BY `post_time` DESC\";\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sql);\n while (resultSet.next()) {\n postInfoList.add(new PostInfo(resultSet.getInt(\"post_id\"), resultSet.getInt(\"place_id\"), resultSet.getString(\"post_text\"),\n resultSet.getDate(\"post_time\"), resultSet.getInt(\"status\"), resultSet.getInt(\"user_id\"), resultSet.getInt(\"editor_id\")));\n }\n return postInfoList;\n }", "@Override\n public ArrayList<PostVo> get_post_by_page(int page) {\n ArrayList<PostVo> posts = (ArrayList<PostVo>) baseDAO.findBySQLForVO(\"\" +\n \"select p.p_id as pId , p.p_floor as pFloor , p.p_main as pMain , p.p_title as pTitle\" +\n \" , u.u_name as uName from Post as p join user as u on p.u_id = u.u_id \"\n ,PostVo.class,null,10*(page-1),10);\n return posts;\n }", "public List<Post> search(PostCriteria criteria, int page, int size);", "@GET\n @Produces(\"application/json\")\n public List<Photos> getPhotos() {\n \tPhotosDAO dao = new PhotosDAO();\n List photos = dao.getPhotos();\n return photos;\n }", "@Override\n\tpublic List<Article> getAllArticles() {\n\t\tArticle[] article = restTemplate.getForObject(serviceUrl+\"/\", Article[].class);\n\t\treturn Arrays.asList(article);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Post> getPostsOf(int postId){\n \t\tList<Post> postList = null;\n\t\tCriteria query = null;\n\t\ttry {\n\t\t\t\n\t\t\t query = getCurrentSession().createCriteria(Post.class);\n\t\t\t \n\t\t\t query.createAlias(\"this.orgperson\", \"author\") \n\t\t\t .createAlias(\"author.personid\",\"authorPerson\")\n\t\t\t \t .createAlias(\"this.postcategories\", \"postcategories\")\n\t\t\t \t .createAlias(\"postcategories.category\", \"category\")\n\t\t\t \t .createAlias(\"this.postskills\", \"postskills\")\n\t\t\t \t .createAlias(\"postskills.skill\", \"skill\")\n\t\t\t \t .createAlias(\"this.posttags\", \"posttags\")\n\t\t\t \t .createAlias(\"posttags.tag\", \"tag\");\n\t\t\t \n\t\t\t query.add(Restrictions.eq(\"this.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"author.orgpersonstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"authorPerson.personstatus\", 'A'))\n\t\t\t \t .add(Restrictions.eq(\"postcategories.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"category.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"postskills.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"skill.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"posttags.status\", \"A\"))\n\t\t\t \t .add(Restrictions.eq(\"tag.status\", \"A\")) \n\t\t\t \t .add(Restrictions.eq(\"this.id\", postId));\n\t\t\t \n\t\t\t query.setProjection(Projections.projectionList()\n\t\t\t\t\t \n\t\t\t\t\t //post\n\t\t\t\t\t .add(Projections.property(\"this.id\").as(\"post_id\"))\n\t\t\t\t\t .add(Projections.property(\"this.title\").as(\"post_title\"))\n\t\t\t\t\t .add(Projections.property(\"this.content\").as(\"post_content\")) \n\t\t\t\t\t .add(Projections.property(\"this.bannerpath\").as(\"post_bannerpath\"))\n\t\t\t\t\t .add(Projections.property(\"this.commentable\").as(\"post_commentable\"))\n\t\t\t\t\t .add(Projections.property(\"this.date\").as(\"post_date\"))\n\t\t\t\t\t .add(Projections.property(\"this.media\").as(\"post_media\")) \n\t\t\t\t\t .add(Projections.property(\"this.status\").as(\"post_status\")) \n\t\t\t\t\t //authorperson\n\t\t\t\t\t .add(Projections.property(\"authorPerson.personid\").as(\"authorPersonPersonId\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.firstName\").as(\"authorPersonFirstName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.lastName\").as(\"authorPersonLastName\"))\n\t\t\t\t\t .add(Projections.property(\"authorPerson.middleName\").as(\"authorPersonmiddleName\")) \n\t\t\t\t\t //category\n\t\t\t\t\t .add(Projections.property(\"category.id\").as(\"categoryId\")) \n\t\t\t\t\t .add(Projections.property(\"category.name\").as(\"categoryName\")) \n\t\t\t\t\t //skill\n\t\t\t\t\t .add(Projections.property(\"skill.id\").as(\"skillId\")) \n\t\t\t\t\t .add(Projections.property(\"skill.name\").as(\"skillName\")) \n\t\t\t\t\t//tag\n\t\t\t\t\t .add(Projections.property(\"tag.id\").as(\"tagId\")) \n\t\t\t\t\t .add(Projections.property(\"tag.name\").as(\"tagName\")) \n\t\t\t\t\t \n\t\t\t\t\t ); \n\t\t\t \n\t\t\t postList = query.setResultTransformer(Criteria.ALIAS_TO_ENTITY_MAP).list(); \n\t\t\t \t \t \n\t\t} catch (Exception e) {\n\t\t\tpostServiceLogger.error(\"error in PostService for getPostsOf()\",e);\n\t\t} \n\t\treturn postList;\n\t}", "public ArrayList<String> getReadPosts() {\n return readPostIds;\n }", "List<Post> findPostsByUserName(String userName);", "@Override\n public int getItemCount() {\n return posts.size();\n }", "@Override\n public int getItemCount() {\n return posts.size();\n }", "@Override\n\tpublic JCRPageList getPosts(String categoryId, String forumId,\n\t\t\tString topicId, String isApproved, String isHidden,\n\t\t\tString strQuery, String userLogin) throws Exception {\n\t\treturn null;\n\t}", "@GetMapping(\"/posts/user/{userName}\")\n List<PostDTO> getPostsByUsername(@PathVariable String userName);", "public List<Post> all() throws DataAccessException{\n String sql = \"select posts.id, posts.user_id, users.name, posts.title, posts.content, posts.create_date from posts join users on posts.user_id=users.id\";\n List<Post> posts = this.jdbcTemplate.query(sql, mapper);\n return posts;\n }", "public List<Post> getLikedPosts() {\n return likedPosts;\n }", "private void queryPost() {\n tv_search.setText(\"Recently Added Posts:\");\n ParseQuery<Post> query = ParseQuery.getQuery(Post.class);\n query.include(Post.KEY_USER);\n query.setLimit(15);\n query.addDescendingOrder(Post.KEY_CREATED);\n query.findInBackground(new FindCallback<Post>() {\n @Override\n public void done(List<Post> posts, ParseException e) {\n if(e!= null){\n Log.e(tag, \"Issue with getting post\", e);\n return;\n }\n adaptor.clear();\n adaptor.addAll(posts);\n //allPost.addAll(posts);\n //adaptor.notifyDataSetChanged();\n //swipeRefreshLayout.setRefreshing(false);\n\n //user just created a post\n if (isJustCreatedNewPost == true)\n {\n //reset bool\n isJustCreatedNewPost = false;\n// //subscribe user to their new post channel\n// String postChannel = \"POST_\"+posts.get(0).getObjectId();\n// ParsePush.subscribeInBackground(postChannel);\n\n }\n }\n });\n }", "public interface PostService {\n @GET(\"posts/index\")\n Call<List<Pokemon>> downloadPosts(@Query(\"post[pokemon_id]\") int pokemonId);\n}", "private void getPosts(final postsAdapter adapter, final boolean frontOrEnd) {\n\n if (frontOrEnd) {\n String url = \"http://192.168.10.27:80/posts?page=1\";\n postList.clear();\n adapter.notifyDataSetChanged();\n JsonObjectRequest postRequest = new JsonObjectRequest(Request.Method.GET, url,\n null, new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n try {\n AnonApp.getInstance().setLastpage(response.getInt(\"last_page\"));\n AnonApp.getInstance().setThisPage(response.getInt(\"current_page\"));\n JSONArray Jpost = null;\n Jpost = response.getJSONArray(\"data\");\n for (int i = 0; i < Jpost.length(); i++) {\n\n JSONObject cPost = Jpost.getJSONObject(i);\n Post tempPost = new Post();\n tempPost.setPostTitle(cPost.getString(\"title\"));\n if (cPost.getString(\"text\").length() > 20) {\n tempPost.setPostBlurb(cPost.getString(\"text\").substring(0, 20) + \"...\");\n } else tempPost.setPostBlurb(cPost.getString(\"text\"));\n tempPost.setPostText(cPost.getString(\"text\"));\n tempPost.setPostScore(cPost.getInt(\"votes\"));\n tempPost.setPostDate(cPost.getString(\"created_at\"));\n tempPost.setPostId(cPost.getInt(\"id\"));\n postList.add(tempPost);\n\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n loading = true;\n adapter.notifyDataSetChanged();\n\n }\n\n\n }, new Response.ErrorListener() {\n\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getActivity(), error.toString(), Toast.LENGTH_LONG).show();\n if (error instanceof ServerError) {\n Toast.makeText(getContext(), R.string.Oops, Toast.LENGTH_LONG).show();\n } else if (error instanceof TimeoutError) {\n Toast.makeText(getContext(), R.string.timeout, Toast.LENGTH_LONG).show();\n }\n }\n\n\n });\n AnonApp.getInstance().addToReqQ(postRequest);\n } else {\n String url = \"http://192.168.10.27:80/posts?page=\" + AnonApp.getInstance().getThisPage();\n JsonObjectRequest postRequest = new JsonObjectRequest(Request.Method.GET, url,\n null, new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n try {\n JSONArray Jpost = null;\n Jpost = response.getJSONArray(\"data\");\n for (int i = 0; i < Jpost.length(); i++) {\n\n JSONObject cPost = Jpost.getJSONObject(i);\n Post tempPost = new Post();\n tempPost.setPostTitle(cPost.getString(\"title\"));\n if (cPost.getString(\"text\").length() > 20) {\n tempPost.setPostBlurb(cPost.getString(\"text\").substring(0, 20) + \"...\");\n } else tempPost.setPostBlurb(cPost.getString(\"text\"));\n tempPost.setPostText(cPost.getString(\"text\"));\n tempPost.setPostScore(cPost.getInt(\"votes\"));\n tempPost.setPostDate(cPost.getString(\"created_at\"));\n tempPost.setPostId(cPost.getInt(\"id\"));\n postList.add(tempPost);\n\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n loading = true;\n adapter.notifyDataSetChanged();\n\n }\n\n\n }, new Response.ErrorListener() {\n\n\n @Override\n public void onErrorResponse(VolleyError error) {\n //Toast.makeText(getActivity(), error.toString(), Toast.LENGTH_LONG).show();\n if (error instanceof ServerError) {\n Toast.makeText(getContext(), R.string.Oops, Toast.LENGTH_LONG).show();\n } else if (error instanceof TimeoutError) {\n Toast.makeText(getContext(), R.string.timeout, Toast.LENGTH_LONG).show();\n }\n }\n\n\n });\n AnonApp.getInstance().addToReqQ(postRequest);\n }\n\n\n }", "public interface Api {\n\n @GET(\"posts\")\n Observable<List<Post>> getPosts();\n}", "private void readPosts() {\n FirebaseDatabase.getInstance().getReference().child(\"Posts\").addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n postList.clear();\n for(DataSnapshot dataSnapshot:snapshot.getChildren())\n {\n Post post = dataSnapshot.getValue(Post.class);\n for(String id : followingList)\n {\n if(post.getPublisher().equals(id))\n {\n postList.add(post);\n }\n }\n }\n postAdapter.notifyDataSetChanged();\n\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }", "@RequestMapping(value = \"/newsfeed/\", method = RequestMethod.GET)\r\n public ResponseEntity<List<NewsFeed>> listAllNewsFeed() {\r\n List<NewsFeed> newsFeeds = newsFeedService.findAllNewsFeeds();\r\n if(newsFeeds.isEmpty()){\r\n return new ResponseEntity<List<NewsFeed>>(HttpStatus.NO_CONTENT);//You many decide to return HttpStatus.NOT_FOUND\r\n }\r\n return new ResponseEntity<List<NewsFeed>>(newsFeeds, HttpStatus.OK);\r\n }", "@RequestMapping(value = \"/posts/user/{posterName}\", method = RequestMethod.GET)\n @ResponseStatus(value = HttpStatus.OK)\n public List<Post> findPostListByPosterName(@PathVariable String posterName);", "public void setPosts(List<Post> posts){\n this.posts = posts;\n }", "@Override\n public List<Post> getPostsByUser(Long userId) {\n return userDao.gePostsByUser(userId);\n }", "Post getPostByID(long postId);", "public void index() {\n Integer pageNum = getParaToInt(\"pageNum\");\n Boolean includeContent = getParaToBoolean(\"includeContent\", false);\n\n if (pageNum == null) {\n mResult.fail(102);\n renderJson(mResult);\n return;\n }\n Page<Blog> blogAbstracts;\n if (!includeContent) {\n blogAbstracts = mBlogService.queryWithoutContent(pageNum);\n } else {\n blogAbstracts = mBlogService.queryAll(pageNum);\n }\n\n if (blogAbstracts.getList().size() == 0) {\n mResult.fail(107);\n } else {\n mResult.success(blogAbstracts.getList());\n }\n renderJson(mResult);\n }", "public interface Endpoints {\n\n @GET(\"/posts\")\n Call<List<Posts>> getAllPosts();\n}", "@Test\n public void getPosts() throws IOException {\n HttpGet get = new HttpGet(POSTS + \"1\");\n\n // Execute the HTTP Get Request with the client\n HttpResponse response = this.httpClient.execute(get);\n\n // Get a PostData class instance from the response\n PostData postData = getPostData(response);\n\n // Make assertions about the response\n assertThat(response.getStatusLine().getStatusCode())\n .isEqualTo(200);\n\n // Make assertions about the PostData\n assertThat(postData.getId()).isEqualTo(1);\n assertThat(postData.getUserId()).isEqualTo(1);\n assertThat(postData.getBody()).isNotBlank();\n assertThat(postData.getTitle()).isNotBlank();\n }", "public ArrayList<String> loadPosts() {\n\t\tSAVE_FILE = PUSH_POSTS;\n\t\tArrayList<String> posts = loadIds();\n\t\treturn posts;\n\t}", "public interface PostsApi {\n\n @GET(\"/posts\")\n Call<ArrayList<Post>> getPosts ();\n\n @GET(\"/posts\")\n Call<ArrayList<Post>> getPostsByUserId (\n @Query(\"userId\") int userId\n );\n}", "@RequestMapping(\"/post/{postId}\")\n public PostEntity postPage(@PathVariable int postId) {\n List<NodeEntity> commentList = nodeService.commentsByPost(postId);\n //get root post\n PostEntity post = postService.findPostById(postId);\n //populate list of nodes in post object with first-level comments\n post.setNodeList(firstLevelNodes(commentList,postId));\n\n //initialize recursive method by starting loop through first-level comments\n for (NodeEntity node : post.getNodeList()) {\n traverseNodes(commentList,node);\n }\n\n //return post with nested lists populated\n return post;\n }", "@RequestMapping(method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<?> get() {\n List<ReadTodoDto> todos = repository.findAll()\n .stream()\n .map(dtoConverter::convert)\n .collect(Collectors.toList());\n\n return ResponseEntity.ok(todos);\n }" ]
[ "0.81384134", "0.77754045", "0.7638738", "0.75138336", "0.7501145", "0.73493576", "0.73476064", "0.73136616", "0.7157542", "0.7154151", "0.6980441", "0.69569707", "0.6908683", "0.68967426", "0.687939", "0.68427074", "0.6825932", "0.68121636", "0.6809343", "0.6739789", "0.6728247", "0.6721599", "0.667705", "0.6670473", "0.66575134", "0.66360676", "0.6596418", "0.6588372", "0.65777534", "0.6572591", "0.6531372", "0.6492158", "0.6472243", "0.6471663", "0.6467014", "0.64603627", "0.64168787", "0.64101565", "0.6397645", "0.6346891", "0.632093", "0.6303083", "0.6301143", "0.6295369", "0.6289074", "0.62700224", "0.61945236", "0.6144327", "0.61134005", "0.61056364", "0.6078195", "0.60463196", "0.60246986", "0.60130304", "0.60075146", "0.5983662", "0.5973367", "0.5970103", "0.5969", "0.5959992", "0.59497046", "0.5948664", "0.5947717", "0.59470135", "0.5928631", "0.59277564", "0.5903148", "0.5883522", "0.5879013", "0.58741266", "0.5871935", "0.58685476", "0.5805728", "0.5799934", "0.57967395", "0.57875896", "0.5784862", "0.57771075", "0.57771075", "0.5771831", "0.5759449", "0.5757839", "0.5756026", "0.5733697", "0.57260936", "0.57254606", "0.5718608", "0.57185227", "0.56968313", "0.5694541", "0.5693645", "0.56932855", "0.56833225", "0.56817013", "0.5676212", "0.56719327", "0.5671786", "0.56660104", "0.56638205", "0.56590563" ]
0.7719024
2
POST methods ================================================ Basic POST
@POST Call<Post> createPost(@Body Post post);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String post();", "@Override\n public String getMethod() {\n return \"POST\";\n }", "@Override\n public String getMethod() {\n return \"POST\";\n }", "public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }", "@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}", "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Test\n void postTest() {\n URI uri = URI.create(endBody + \"/post\");\n\n // create a dummy body for easy JSON conversion\n QuestionText newQuestion = new QuestionText(\"Test\");\n\n // convert to json and send / store the response\n HttpResponse<String> response = HttpMethods.post(uri, gson.toJson(newQuestion));\n\n assertEquals(200, response.statusCode());\n }", "public void postData() {\n\n\t}", "@Test(enabled=false)\n\tpublic void basicPost() {\t\n\t\tResponse res = \n\t\tgiven().\n\t\tbody(\" { \\\"id\\\": \\\"2\\\",\"\n\t\t\t\t+ \"\\\"title\\\": \\\"Cleveland\\\", \"\n\t\t\t\t+ \"\\\"author\\\": \\\"Kyrie\\\" }\").\n\t\twhen().\n\t\tcontentType(ContentType.JSON).\n\t\tpost(\"http://localhost:3000/posts/\");\n\t\n\t\tSystem.out.println(res.asString());\n\t}", "public void doPost( )\n {\n \n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "HttpResponse httpPost(URI uri);", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}", "public void postRequest() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request body parameters are :-\");\n SamplePOJO samplePOJO = new SamplePOJO();\n samplePOJO.setFirstName(scenarioContext.getContext(\"firstName\"));\n samplePOJO.setLastName(scenarioContext.getContext(\"lastName\"));\n\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n apiUtil.setRequestBody(objectMapper.writeValueAsString(samplePOJO));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n }", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "@RequestMapping(method = RequestMethod.POST)\n public Bin create() {\n throw new NotImplementedException(\"To be implemented\");\n }", "@Test\n\tpublic void postExample() {\n\t\tString APIUrl = \"http://34.210.101.131:8081/topics\";\n\t\tString APIBody=\"{\\\"topicComplexity\\\":\\\"5\\\",\\\"topicName\\\":\\\"MCQ\\\"}\";\n\t\t// Building request using requestSpecBuilder\n\t\tRequestSpecBuilder builder = new RequestSpecBuilder();\n\t\t \n\t\tbuilder.setBody(APIBody);\n\t\tbuilder.setContentType(\"application/json\");\n\t\t//RequestSpecification requestSpec = (RequestSpecification) builder.build();\n\t\tRequestSpecification request = RestAssured.given();\n\t\tRestAssured.given().auth().preemptive().basic(\"[email protected]\",\"testdata@123\");\n\t\t//com.jayway.restassured.specification.RequestSpecification requestSpec = builder.build();\t \n\t\t \n\t\n\t\t\t\t\n\t\tResponse response = request.post(\"http://34.210.101.131:8081/topics\");\n\t\tfloat code = response.getStatusCode();\n\t\tSystem.out.println(\"status code is\"+code);\n\t\tString data =response.asString();\n\t\tSystem.out.println(\"Data is\"+data);\n\t\t\n\n\t\t\n\t\t\n\t}", "public HttpPost() {\n super();\n parameters = new HashMap<>();\n }", "@POST(\"posts\")\n Call<Post> createPost(@Body Post post);", "public static int doPost(String name, String id, Result r) {\n r.setValue(\"\");\n String response = \"\";\n int status = 0;\n String output =\"\";\n \n try {\n // Make call to a particular URL\n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n // set request method to POST and send name value pair\n conn.setRequestMethod(\"POST\");\n conn.setDoOutput(true);\n conn.setRequestProperty(\"Accept\", \"text/plain\");\n // write to POST data area\n JSONObject objJson = new JSONObject();\n JSONObject objJsonSend = new JSONObject();\n try {\n objJson.put(\"id\", id);\n objJson.put(\"name\", name);\n objJsonSend.put(\"name\", name);\n } catch (JSONException ex) {\n Logger.getLogger(RestaurantApiClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n String ans = objJson.toString();\n System.out.println(\"Request Body:\");\n System.out.println(objJsonSend.toString());\n OutputStreamWriter out = new OutputStreamWriter(conn.getOutputStream());\n out.write(ans);\n out.close();\n // get HTTP response code sent by server\n status = conn.getResponseCode();\n if (status != 200) {\n // not using msg\n String msg = conn.getResponseMessage();\n return conn.getResponseCode();\n }\n output = \"\";\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream())));\n while ((output = br.readLine()) != null) {\n response += output; \n }\n conn.disconnect();\n //close the connection\n conn.disconnect();\n }\n // handle exceptions\n catch (MalformedURLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n } \n // return HTTP status\n r.setValue(response);\n return status; \n }", "@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}", "public RestUtils setMethodPost()\n\t{\n\t\trestMethodDef.setHttpMethodPost(true);\n\t\treturn this;\n\t}", "@Override\n\tpublic HttpResponse post(final String endpoint, final String body) {\n\t\treturn httpRequest(HTTP_POST, endpoint, body);\n\t}", "@Test\n\tpublic void test_1_post(){\n\t\tJSONObject request = new JSONObject();\n\t\trequest.put(\"name\", \"Rahul\");\n\t\trequest.put(\"job\", \"Engineer\");\n\t\tSystem.out.println(request.toJSONString());\n\t\t\n\t\tgiven().\n\t\t header(\"Content-Type\",\"application/json\").\n\t\t accept(ContentType.JSON).\n\t\t body(request.toJSONString()).\n\t\t when().\n\t\t \tpost(\"https://reqres.in/api/users/2\").\n\t\t then().\n\t\t statusCode(201);\n\t\t \n\t\t\n\t}", "@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "@POST\n @Consumes(MediaType.APPLICATION_JSON)\n// trying to make the big deal post insertable but didn't worked out because of the parsing in java\n public String addVote(String body) {\n return \"test\";\n }", "@RequestMapping(value = \"/{id}\", method = RequestMethod.POST)\n public void post(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "@Test(enabled=false)\n\tpublic void objectPost() {\t\n\t\tPosts posts = new Posts(\"3\", \"Seahawks\", \"Wilson\");\n\t\t\n\t\tResponse res = given().\n\t\twhen().\n\t\tcontentType(ContentType.JSON).\n\t\tbody(posts).\n\t\tpost(\"http://localhost:3000/posts/\");\n\t\n\t\tSystem.out.println(\"Response as object: \"+res.asString());\n\t}", "@Test\n void sendPostRequest() {\n try {\n LoginPacket packet = new LoginPacket(\"testUser\", \"testPassword\");\n String response = HttpUtils.sendPost(\"\", WriteJSON.writePacket(packet));\n } catch (IOException e) {\n e.printStackTrace();\n fail();\n }\n }", "@Test\n public void createPost() throws IOException {\n PostData postData = new PostData()\n .withId(101)\n .withUserId(1)\n .withTitle(\"New Post\")\n .withBody(\"This is the body of the post.\");\n\n // Create an HTTP Post Request\n HttpPost post = new HttpPost(POSTS);\n\n // Set the \"Content-type\" header of the\n // HTTP Post Request to \"Application/json; charset=UTF-8\"\n post.setHeader(\n CONTENT_TYPE,\n \"Application/json; charset=UTF-8\"\n );\n\n // Create a String Entity out of the JSON data and add it\n // to the HTTP Post Request.\n //\n // This will serialize the JSON data into a String\n post.setEntity(\n new StringEntity(\n this.gson.toJson(postData)\n )\n );\n\n // Execute the HTTP Post with the client\n HttpResponse response = this.httpClient.execute(post);\n\n // Get a PostData class instance from the response\n PostData responsePostData = getPostData(response);\n\n // Make assertions about the response\n assertThat(response.getStatusLine().getStatusCode())\n .isEqualTo(201);\n\n // Make assertions about the data returned\n assertThat(responsePostData.getId()).isEqualTo(101);\n assertThat(responsePostData.getUserId()).isEqualTo(1);\n assertThat(responsePostData.getTitle())\n .isEqualTo(postData.getTitle());\n assertThat(responsePostData.getBody())\n .isEqualTo(postData.getBody());\n }", "public void PreparedPostRequest(String username, String password);", "@Override\n public JSONObject postToWalletServer(String urlSegment, String body) {\n HttpHeaders header = constructHttpHeaders();\n // Construct the http URL.\n String baseUrl = ConfigUtil.instants().getValue(\"walletServerBaseUrl\");\n String walletServerUrl = baseUrl + urlSegment;\n\n // Send the http request and get response.\n HttpEntity<JSONObject> entity = new HttpEntity<>(JSONObject.parseObject(body), header);\n ResponseEntity<JSONObject> exchange =\n REST_TEMPLATE.exchange(walletServerUrl, HttpMethod.POST, entity, JSONObject.class);\n\n // Return the posted model or instance or NFC card personalized data.\n return exchange.getBody();\n }", "private void requestPost(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n\n post(requestUri, params, listener);\n }", "private void erweimaHttpPost() {\n\t\tHttpUtils httpUtils = new HttpUtils();\n\t\tUtils utils = new Utils();\n\t\tString[] verstring = utils.getVersionInfo(getActivity());\n\t\tRequestParams params = new RequestParams();\n\t\tparams.addHeader(\"ccq\", utils.getSystemVersion()+\",\"+ verstring[0]+\",\"+verstring[2]);\n\t\tparams.addBodyParameter(\"token\",\n\t\t\t\tnew DButil().gettoken(getActivity()));\n\t\tparams.addBodyParameter(\"member_id\",\n\t\t\t\tnew DButil().getMember_id(getActivity()));\n\t\thttpUtils.send(HttpMethod.POST, JiekouUtils.TUIGUANGERWEIMA, params,\n\t\t\t\tnew RequestCallBack<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tLog.e(\"ee\", \"失败:\" + arg1);\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t\t// handler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(ResponseInfo<String> arg0) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\terweimaJsonInfo(arg0.result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "private static HttpUriRequest doPostMethod(String url, Map<String, String> param) throws UnsupportedEncodingException {\n HttpPost httpPost = new HttpPost(url);\n httpPost.setConfig(requestConfig);\n // 创建参数列表\n if (param != null) {\n List<NameValuePair> paramList = new ArrayList<>();\n for (String key : param.keySet()) {\n paramList.add(new BasicNameValuePair(key, param.get(key)));\n }\n // 模拟表单\n UrlEncodedFormEntity entity = new UrlEncodedFormEntity(paramList, \"utf-8\");\n httpPost.setEntity(entity);\n }\n return httpPost;\n }", "@POST(\"posts\")\n public Call<Post> UploadPost (@Body Post post);", "public interface PostRequest {}", "public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }", "@TargetApi(Build.VERSION_CODES.KITKAT)\n public String sendPost1() throws Exception {\n String urlParameters=parameter;\n byte[] postData = urlParameters.getBytes(\"UTF-8\");\n int postDataLength = postData.length;\n URL url;\n HttpURLConnection urlConn;\n DataOutputStream printout;\n DataInputStream input;\n url = new URL(\"http://203.151.92.175:8080/\"+method);\n urlConn = (HttpURLConnection) url.openConnection();\n urlConn.setDoInput(true);\n urlConn.setDoOutput(true);\n urlConn.setUseCaches(false);\n urlConn.setInstanceFollowRedirects(false);\n urlConn.setRequestMethod(\"POST\");\n urlConn.setRequestProperty(\"charset\", \"utf-8\");\n urlConn.setRequestProperty(\"Content-Length\", Integer.toString(postDataLength));\n urlConn.setRequestProperty(\"User-Agent\", USER_AGENT);\n urlConn.connect();\n DataOutputStream wr = new DataOutputStream(urlConn.getOutputStream());\n wr.write(postData);\n\n BufferedReader in = new BufferedReader(\n new InputStreamReader(urlConn.getInputStream()));\n String inputLine;\n StringBuffer response = new StringBuffer();\n\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine);\n }\n in.close();\n urlConn.disconnect();\n return response.toString();\n\n }", "@FormUrlEncoded\n @POST(\"posts\")\n Call<Post> createPost(@Field(\"userId\") int userId, @Field(\"title\") String title, @Field(\"body\") String text);", "public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}", "HttpResponse post(URL url, Map<String, String> headers, byte[] body, String mediaType)\n throws IOException;", "void post(T modelDTO);", "protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }", "String postRequest(String url);", "static String sendPOST(String POST_URL) throws IOException {\n\t\t// Check URL is valid or not.\n\t\tif (isValidURL(POST_URL)) {\n\t\t\ttry {\n\t\t\t\t//Initial connection\n\t\t\t\tURL obj = new URL(POST_URL);\n\t\t\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\t\t\tcon.setRequestMethod(\"POST\");\n\t\t\t\tcon.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n\t\t\t\t// For POST only - START\n\t\t\t\tcon.setDoOutput(true);\n\t\t\t\tOutputStream os = con.getOutputStream();\n\t\t\t\tJSONArray array = new JSONArray();\n\t\t\t\t\n\t\t\t\t//Get Mac Adress.\n\t\t\t\tInetAddress ip = InetAddress.getLocalHost();\n\t\t\t\tNetworkInterface network = NetworkInterface.getByInetAddress(ip);\n\t\t\t\tbyte[] mac = network.getHardwareAddress();\n\t\t\t\tStringBuilder macString = new StringBuilder();\n\t\t\t\tfor (int i = 0; i < mac.length; i++) {\n\t\t\t\t\tmacString.append(String.format(\"%02X%s\", mac[i], (i < mac.length - 1) ? \"-\" : \"\"));\n\t\t\t\t}\n\t\t\t\t//Send mac address as parameter.\n\t\t\t\tCLIENT_PARAMS = macString.toString();\n\t\t\t\t\n\t\t\t\t//Send Params.\n\t\t\t\tarray.put(USER_PARAMS);\n\t\t\t\tarray.put(SCORE_PARAMS);\n\t\t\t\tarray.put(CLIENT_PARAMS);\n\t\t\t\tos.write(array.toString().getBytes());\n\n\t\t\t\tos.flush();\n\t\t\t\tos.close();\n\t\t\t\t// For POST only - END\n\n\t\t\t\tint responseCode = con.getResponseCode();\n\t\t\t\tSystem.out.println(\"POST Response Code :: \" + responseCode);\n\n\t\t\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\t\t\tString inputLine;\n\t\t\t\t\tStringBuffer response = new StringBuffer();\n\n\t\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\t\t\tresponse.append(inputLine);\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\n\t\t\t\t\t// print result\n\t\t\t\t\tSystem.out.println(response.toString());\n\t\t\t\t\treturn \"POST request worked\"; // Added for testing.\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"POST request not worked\");\n\t\t\t\t\treturn \"POST request not worked\";\n\t\t\t\t}\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\treturn \"URL is valid but connection could not be established.\";\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn \"URL is valid but connection could not be established.\";\n\t\t\t}\n\n\t\t} else {\n\t\t\treturn \"URL is not valid.\";\n\t\t}\n\t}", "private void StringRequest_POST() {\n\t\tString POST = \"http://api.juheapi.com/japi/toh?\";\n\t\trequest = new StringRequest(Method.POST, POST, new Listener<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}, new ErrorListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0.toString(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}){@Override\n\t\tprotected Map<String, String> getParams() throws AuthFailureError {\n\t\t\tHashMap< String , String> map = new HashMap<String,String>();\n\t\t\tmap.put(\"key\", \"7bc8ff86168092de65576a6166bfc47b\");\n\t\t\tmap.put(\"v\", \"1.0\");\n\t\t\tmap.put(\"month\", \"11\");\n\t\t\tmap.put(\"day\", \"1\");\n\t\t\treturn map;\n\t\t}};\n\t\trequest.addMarker(\"StringRequest_GET\");\n\t\tMyApplication.getHttpRequestQueue().add(request);\n\t}", "public RequestDataBuilder post() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.POST);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}", "@Test\r\n\tpublic void test01_post() {\n\t\tJSONObject obj=new JSONObject();\r\n\t\tobj.put(\"Gazi1\", \"7979893089\");\r\n\t\tobj.put(\"Reshma\", \"6291172991\");\r\n\t\t\r\n\t\t\r\n\t\t//System.out.println(obj.toJSONString());\r\n\t\tgiven().header(\"Content-Type\",\"Application/JSON\")\r\n\t\t.contentType(ContentType.JSON).accept(ContentType.JSON)\r\n\t\t.body(obj.toJSONString()).when().post(\"https://reqres.in/api/users\").then()\r\n\t\t.statusCode(201);\r\n\t\t\r\n\t}", "Product postProduct(Product product);", "@Test\n public void postTest(){\n Post post = new Post(\"Title 1\",\"Body 1\");\n\n given().accept(ContentType.JSON)\n .and().contentType(ContentType.JSON)\n .body(post)\n .when().post(\"/posts\")\n .then().statusCode(201)\n .body(\"title\",is(\"Title 1\"),\n \"body\",is(\"Body 1\"),\n \"id\",is(101));\n }", "void sendPost(String title, String body);", "@POST\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\n @Produces(MediaType.APPLICATION_JSON)\n public Response doPost(@FormParam(\"pass\") String password,\n @FormParam(\"fname\") String fname,\n @FormParam(\"lname\") String lname,\n @FormParam(\"acc_login\") String acc_login,\n @FormParam(\"my_code\") String code) throws SQLException {\n Methods.insert_student(password, fname, lname, acc_login, code);\n return Response.seeOther(URI.create(\"/home_assistant\")).build();\n }", "@Test(enabled=false)\n\tpublic void createPostCheckBodyContents() {\n\t\tPosts posts = new Posts(\"4\", \"Packers\", \"Favre\");\n\t\t\n\t\tgiven().\n\t\twhen().contentType(ContentType.JSON).\n\t\tbody(posts).\n\t\tpost(\"http://localhost:3000/posts/\").\n\t\tthen().\n\t\tstatusCode(201).\n\t\tbody(\"id\", is(posts.getId())).\n\t\tbody(\"title\",is(posts.getTitle())).\n\t\tbody(\"author\",is(posts.getAuthor()));\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}", "@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }", "@Test\n public void create_405() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n addMOToDb(2);\n Integer id = addMOToDb(3).getId();\n\n // PREPARE THE TEST\n // Change the name\n Workflow mo = new Workflow();\n mo.setName(\"Different name\");\n mo.setDescription(\"Different description\");\n mo.setRaw(\"Different raw\");\n\n\n // DO THE TEST\n Response response = callAPI(VERB.POST, \"/mo/\" + id.toString(), mo);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(405, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"HTTP 405 Method Not Allowed\", body);\n }", "@FormUrlEncoded\n @POST(\"posts/\")\n Call<Post> createPostUrlFormatted(\n @Field(\"userId\") Integer id,\n @Field(\"title\") String title,\n @Field(\"body\") String body\n );", "@Test\n \tpublic void testToPostData() throws UnsupportedEncodingException{\n \t\t\n \t\tUserInfo user = DummyFactory.createDummyUserInfo();\n \t\tString postStr = String.format(\"type=%s&time=%s&member[0][uid]=%s&member[0][status]=%s\", \n \t\t\t\tURLEncoder.encode(\"PRIVATE\",\"utf-8\"),\n\t\t\t\tURLEncoder.encode(\"1970-01-01T09:00\",\"utf-8\"),\n \t\t\t\tURLEncoder.encode(\"xxxx\",\"utf-8\"),\n \t\t\t\tURLEncoder.encode(\"ON\",\"utf-8\")\n \t\t\t\t);\n \n \t\tAlarmInfo alarm = new AlarmInfo(user, 1000);\n \t\tassertEquals( postStr, alarm.toPostData() );\n \t}", "@POST(\"test\")\n Observable<SuperResponse> postTestData(@Body RequestBody params);", "@Test\n public void postRequest() {\n str = METHOD_POST + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL +\n HOST_HEADER + \": www.site.ru\" + ENDL +\n \"Referer: \"+ URI_SAMPLE + ENDL +\n \"Cookie: income=1\" + ENDL +\n \"Content-Type: application/x-www-form-urlencoded\" + ENDL +\n \"Content-Length: 35\" + ENDL +\n \"login=Petya%20Vasechkin&password=qq\";\n\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.POST);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(HOST_HEADER), \"www.site.ru\");\n assertEquals(request.getHeader(\"Referer\"), URI_SAMPLE);\n assertEquals(request.getHeader(\"Cookie\"), \"income=1\");\n assertEquals(request.getHeader(\"Content-Type\"), \"application/x-www-form-urlencoded\");\n assertEquals(request.getHeader(\"Content-Length\"), \"35\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n\n assertEquals(request.getParameter(\"login\"), \"Petya Vasechkin\");\n assertEquals(request.getParameter(\"password\"), \"qq\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }", "@Handle(method = HttpMethod.POST, path = \"/body\")\n void post(@Handle.Body String one, @Handle.Body String two, @Handle.Body String three);", "ClientResponse post(URI resourceURI, String postData, String jsonFormat) {\n ClientResponse response = _client.post(resourceURI, postData, _vplexSessionId, jsonFormat);\n updateVPLEXSessionId(response);\n return response;\n }", "@Override\n public String post(final Request request, final Response response) {\n final String phases = request.queryParams(\"phases\");\n Type type = Type.SIMPLE;\n switch (phases) {\n case \"1-phase\":\n type = Type.SIMPLE;\n break;\n case \"2-phase\":\n type = Type.CHECKED;\n break;\n default:\n response.status(400);\n return \"\";\n }\n final Bank bank = BankController.getBank(request);\n if (bank == null) {\n // invalid bank\n response.status(404);\n return \"\";\n }\n final TransactionId transactionId = bank.createTransaction(type);\n // send id of the created transaction to client\n return transactionId.getUri();\n }", "@PostMapping(\"/post\")\n PostDTO newPost(@RequestBody PostDTO postDTO);", "@PostMapping(\"/posts/create\")\n @ResponseBody\n public String createPost() {\n return \"Create new post.\";\n }", "public void postTest(LabTest labTest) {\n URL url = null;\n try {\n url = new URL(apiAddress+\"postTest\");\n\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String json = gson.toJson(labTest);\n String encodedString = Base64.getEncoder().encodeToString(json.getBytes());\n\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setDoOutput(true);\n con.setInstanceFollowRedirects( false );\n con.setRequestMethod( \"GET\" );\n con.setRequestProperty( \"Content-Type\", \"application/json\");\n con.setRequestProperty( \"charset\", \"utf-8\");\n con.setRequestProperty( \"Content-Length\", Integer.toString( encodedString.getBytes().length ));\n con.setRequestProperty(\"Data\", encodedString);\n con.setUseCaches( false );\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "protected String getSecondoPost() {\n// String testoPost;\n// String testo = this.getTestoNew();\n// String summary = this.getSummary();\n//// String edittoken = this.getToken();\n//\n// if (testo != null && !testo.equals(\"\")) {\n// try { // prova ad eseguire il codice\n// testo = URLEncoder.encode(testo, \"UTF-8\");\n//\n// } catch (Exception unErrore) { // intercetta l'errore\n// }// fine del blocco try-catch\n// }// fine del blocco if\n// if (summary != null && !summary.equals(\"\")) {\n// try { // prova ad eseguire il codice\n// summary = URLEncoder.encode(summary, \"UTF-8\");\n// } catch (Exception unErrore) { // intercetta l'errore\n// }// fine del blocco try-catch\n// }// fine del blocco if\n//\n// testoPost = \"text=\" + testo;\n// testoPost += \"&bot=true\";\n// testoPost += \"&minor=true\";\n// testoPost += \"&summary=\" + summary;\n//// testoPost += \"&token=\" + edittoken;\n//\n return \"\";\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }", "public interface APIService {\n\n @FormUrlEncoded\n @POST(\"\")\n Call<Post> savePost(@Field(\"\") String username,\n @Field(\"\") String password,\n @Field(\"\") String mobile,\n @Field(\"\") String device_token);\n\n\n }", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}", "public static String POST(String data) {\n\n Response response = null;\n OkHttpClient client = new OkHttpClient();\n MediaType JSON = MediaType.parse(\"application/json; charset=utf-8\");\n\n RequestBody body = RequestBody.create(JSON, data);\n Request request = new Request.Builder()\n .url(Constants.WS_URL)\n .post(body)\n .build();\n\n try {\n response = client.newCall(request).execute();\n return response.body().string();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n return \"\";\n }\n }", "public void enablePOST() {\n\t\thttpPost = new HttpPost(\"http://23.21.229.136/message.php\");\n\t\thttpPostLog = new HttpPost(\n\t\t\t\t\"http://capstonecontrol.appspot.com/LogModuleEventServlet\");\n\t\thttpPostScheduledEvent = new HttpPost(\n\t\t\t\t\"http://capstonecontrol.appspot.com/ScheduleEvent\");\n\t\tHttpParams httpParameters = new BasicHttpParams();\n\t\t// Set the timeout in milliseconds until a connection is established.\n\t\tint timeoutConnection = 3000;\n\t\tHttpConnectionParams.setConnectionTimeout(httpParameters,\n\t\t\t\ttimeoutConnection);\n\t\t// Set the default socket timeout (SO_TIMEOUT)\n\t\t// in milliseconds which is the timeout for waiting for data.\n\t\tint timeoutSocket = 3000;\n\t\tHttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);\n\n\t\thttpClient = new DefaultHttpClient(httpParameters);\n\t}", "@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}", "@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}", "@PostMapping ////Anotação para mapear POST solicitações de HTTP em métodos de tratamento específicos.\n\tpublic ResponseEntity<Postagem> post (@RequestBody Postagem postagem) {\n\t\treturn ResponseEntity.status(HttpStatus.CREATED).body(repositoty.save(postagem)); // end point de postagem\n\t}", "@Path(\"/create/{vmname}/{vmdescription}\")\n@POST\npublic String createVM(@PathParam(\"vmname\") String vmname,@PathParam(\"vmdescription\") String vmdescription){\n\tSystem.out.println(\" name of vm is \"+vmname+\" and description is \"+vmdescription);\n\t\n\n\treturn computefacade.createVM(vmname, vmdescription);\n\t\n\n}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}", "<T> T post(String uri, String body, ContentType contentType, ResponseCallback<T> callback);", "@Test\n\tpublic void createUserwithPOSTTest() {\n\t\tRestAssured.baseURI = \"https://gorest.co.in\";\n\t\tRequestSpecification request = RestAssured.given().log().all();\n\t request.header(\"Authorization\", \"Bearer 4242b4a465097df28229861ee3a53a1ab3e674935bb89e135543e470750c4e3b\");\n\t request.contentType(\"application/json\");\n\t File file = new File(\"/Users/testersinem/Documents/workspace/API/src/test/java/com/api/test/createuser.json\");\n\t request.body(file);\n\t Response response = request.post(\"/public-api/users\");\n\t System.out.println(response.prettyPrint());\n\t}", "private void sendPost() {\n Map<String,Object> values = new HashMap<>();\n values.put(Constants.MANAGEMENT,management);\n values.put(Constants.GENERAL_INFORMATION,generalnformation);\n values.put(Constants.SYMPTOMS,symptoms);\n\n FireBaseUtils.mDatabaseDiseases.child(caseStudyUrl).child(url).updateChildren(values);\n Toast.makeText(DiseaseEditActivity.this, \"Item Posted\",LENGTH_LONG).show();\n finish();\n }", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}", "@Test\r\n\tpublic void createProductDetails() {\r\n\t\tRestAssured.baseURI = \"http://localhost:9000/products\";\r\n\t\tRequestSpecification request = RestAssured.given();\r\n\t\tJSONObject requestParams = new JSONObject();\r\n\t\trequestParams.put(\"id\", \"7\"); // Cast\r\n\t\trequestParams.put(\"name\", \"Mangao\");\r\n\t\trequest.header(\"Content-Type\", \"application/json\");\r\n\t\trequest.body(requestParams.toString());\r\n\t\tResponse response = request.post(\"\");\r\n\t\tSystem.out.println(\"POST Responce Body ----->\" + response.asString());\r\n\t\tint statusCode = response.getStatusCode();\r\n\t\tAssert.assertEquals(statusCode, 201);\r\n\r\n\t}", "HttpPost postRequest(HttpServletRequest request, String address) throws IOException;", "@Override\n\tvoid post() {\n\t\t\n\t}", "@Override\n protected Map<String,String> getParams(){\n return postParameters;\n }", "private void POSTTest(Map<String, Object> inputBody, int expectedStatus, Map<String, Object> expectedResponse, boolean strict) throws Exception{\n CloseableHttpResponse response = createUser(inputBody);\n int status = response.getStatusLine().getStatusCode();\n\n if (status == expectedStatus) {\n HttpEntity entity = response.getEntity();\n String strResponse = EntityUtils.toString(entity);\n System.out.println(\"*** String response \" + strResponse + \" (\" + response.getStatusLine().getStatusCode() + \") ***\");\n if (expectedStatus == 201) {\n expectedResponse.put(\"id\", Long.parseLong(getIdFromStringResponse(strResponse)));\n JSONObject json = new JSONObject(expectedResponse);\n JSONAssert.assertEquals(json.toString() ,strResponse, strict);\n } else {\n // // shouldnt be comaring response for an invalid request\n // if (!\"\".equals(strResponse)){\n // throw new ClientProtocolException(\"Unexpected response body: \" + strResponse);\n // }\n } \n\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n\n EntityUtils.consume(response.getEntity());\n response.close();\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}", "public void postSignUpData(String userName, String email , String password) {\n\n HttpPost httppost = new HttpPost(\"http://192.168.1.224:3000/signup\");\n\n try {\n // Add your data\n\n JSONObject json = new JSONObject();\n json.put(\"username\" , userName);\n json.put(\"email\" , email);\n json.put(\"password\" , password);\n\n StringEntity se = new StringEntity( json.toString());\n se.setContentType(new BasicHeader(HTTP.CONTENT_TYPE, \"application/json\"));\n httppost.setEntity(se);\n\n // Execute HTTP Post Request\n HttpResponse response = httpclient.execute(httppost);\n\n s = EntityUtils.toString(response.getEntity());\n\n s = s.toString();\n\n\n int a=response.getStatusLine().getStatusCode();\n\n\n\n } catch (ClientProtocolException e) {\n // TODO Auto-generated catch block\n } catch (IOException e) {\n // TODO Auto-generated catch block\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }" ]
[ "0.7856803", "0.7700932", "0.7559018", "0.72759175", "0.70020604", "0.6989988", "0.69002354", "0.6808437", "0.67582816", "0.6557847", "0.65530735", "0.65382934", "0.6530142", "0.6513861", "0.64469534", "0.64387745", "0.6424896", "0.6393885", "0.6335328", "0.6321531", "0.63156193", "0.63141", "0.6274365", "0.62741363", "0.62670666", "0.62307435", "0.6228354", "0.6220855", "0.61909", "0.6185897", "0.6174822", "0.61469406", "0.6135286", "0.61213726", "0.60758275", "0.60745364", "0.6063723", "0.6057081", "0.6051807", "0.60433835", "0.6023828", "0.601185", "0.6010857", "0.60008186", "0.5997128", "0.59835374", "0.59705395", "0.5967906", "0.5949854", "0.59262794", "0.5911241", "0.59077203", "0.59015226", "0.59010893", "0.5890953", "0.5875818", "0.58744216", "0.5867894", "0.5855818", "0.5854455", "0.585394", "0.58531845", "0.5851594", "0.58460516", "0.58419067", "0.58380216", "0.5825863", "0.58257776", "0.5820647", "0.5820647", "0.5820647", "0.5819862", "0.5819862", "0.580882", "0.58054596", "0.58000547", "0.57982916", "0.5795959", "0.5790624", "0.57898414", "0.5779536", "0.5769874", "0.57566357", "0.57566357", "0.57566357", "0.5747308", "0.5741115", "0.57407296", "0.5735349", "0.5735212", "0.5735212", "0.5735212", "0.57289296", "0.57282853", "0.5726079", "0.57212925", "0.57144994", "0.57143986", "0.57116824", "0.57113224" ]
0.6346571
18
In case of URL formatted data passing
@FormUrlEncoded @POST("posts/") Call<Post> createPostUrlFormatted( @Field("userId") Integer id, @Field("title") String title, @Field("body") String body );
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String toURLParam();", "@Override\n\tpublic void GetDataUrl(final String data) {\n\t\tSystem.out.println(data);\n\n\t\tParseText(data);\n\t}", "public interface Parametralizable {\n\n /**\n * Gets reprezentation of the contents as the URL parameters.\n * @return reprezentation of the contents as the URL parameters\n */\n String toParameter();\n}", "String renderURL(String path, Map<String, String[]> parameters, URLFormat wantedURLFormat) throws IllegalArgumentException;", "@Override\n public String encodeUrl(String arg0) {\n return null;\n }", "@Override\n public String encodeURL(String arg0) {\n return null;\n }", "@Override\n @SuppressWarnings(\"all\")\n public String encodeUrl(String arg0) {\n\n return null;\n }", "public void processUrl() {\n try {\n\n JsonNode rootNode = getJsonRootNode(getJsonFromURL()); // todo: pass url in this method (to support multi-urls)\n getValuesFromJsonNodes(rootNode);\n setAndFormatValues();\n\n } catch (Exception e) {\n System.out.println(\"ERROR: caught error in processUrl()\");\n e.printStackTrace();\n }\n }", "public void addUrlArg(String key, String value);", "private String makeUrlFromInput(String bookQueryText) {\n\n // Replace white spaces with a + symbol to make it compatible to be used in the JSON\n // request URL\n bookQueryText.replaceAll(\" \", \"+\");\n\n StringBuilder urlBuilder = new StringBuilder();\n urlBuilder = urlBuilder.append(GBOOKS_REQUEST_URL_PART1)\n .append(bookQueryText)\n .append(GBOOKS_REQUEST_URL_PART2);\n\n // First encode into UTF-8, then back to a form easily processed by the API\n // This is mainly to avoid issues with spaces and other special characters in the URL\n String finalUrl = Uri.encode(urlBuilder.toString()).replaceAll(\"\\\\+\", \"%20\")\n .replaceAll(\"\\\\%21\", \"!\")\n .replaceAll(\"\\\\%3A\", \":\")\n .replaceAll(\"\\\\%2F\", \"/\")\n .replaceAll(\"\\\\%3F\", \"?\")\n .replaceAll(\"\\\\%26\", \"&\")\n .replaceAll(\"\\\\%3D\", \"=\")\n .replaceAll(\"\\\\%27\", \"'\")\n .replaceAll(\"\\\\%28\", \"(\")\n .replaceAll(\"\\\\%29\", \")\")\n .replaceAll(\"\\\\%20\", \"\\\\+\")\n .replaceAll(\"\\\\%7E\", \"~\");\n return finalUrl;\n }", "void mo5872a(String str, Data data);", "void renderURL(Writer writer, String path, Map<String, String[]> parameters, URLFormat wantedURLFormat) throws IllegalArgumentException, IOException;", "public void addParameter(String key, Object value) {\n if (!super.requestURL.contains(\"?\")) {\n super.requestURL = super.requestURL + \"?\";\n }\n String strValue = \"\";\n try{\n strValue = Uri.encode(value.toString(), \"utf-8\");\n super.requestURL = super.requestURL + key + \"=\" + strValue + \"&\";\n } catch (Exception e){\n Log.e(TAG, e.getMessage());\n }\n }", "protected void setURL(URL paramURL, String paramString1, String paramString2, int paramInt, String paramString3, String paramString4, String paramString5, String paramString6, String paramString7) {\n/* 538 */ if (this != paramURL.handler) {\n/* 539 */ throw new SecurityException(\"handler for url different from this handler\");\n/* */ }\n/* 541 */ if (paramString2 != null && paramURL.isBuiltinStreamHandler(this)) {\n/* 542 */ String str = IPAddressUtil.checkHostString(paramString2);\n/* 543 */ if (str != null) throw new IllegalArgumentException(str);\n/* */ \n/* */ } \n/* 546 */ paramURL.set(paramURL.getProtocol(), paramString2, paramInt, paramString3, paramString4, paramString5, paramString6, paramString7);\n/* */ }", "String link(@SuppressWarnings(\"rawtypes\") Map params, String encoding);", "private String fill(String url, String requestPath, String... parameters) {\n String filledUrl = url.replaceFirst(\"\\\\{url\\\\}\", requestPath.substring(1,requestPath.length()));\n for (String parameter : parameters) {\n filledUrl = filledUrl.replaceFirst(\"\\\\{[^}]*\\\\}\", parameter);\n }\n\n return filledUrl;\n }", "protected String toExternalForm(URL paramURL) {\n/* 483 */ int i = paramURL.getProtocol().length() + 1;\n/* 484 */ if (paramURL.getAuthority() != null && paramURL.getAuthority().length() > 0)\n/* 485 */ i += 2 + paramURL.getAuthority().length(); \n/* 486 */ if (paramURL.getPath() != null) {\n/* 487 */ i += paramURL.getPath().length();\n/* */ }\n/* 489 */ if (paramURL.getQuery() != null) {\n/* 490 */ i += 1 + paramURL.getQuery().length();\n/* */ }\n/* 492 */ if (paramURL.getRef() != null) {\n/* 493 */ i += 1 + paramURL.getRef().length();\n/* */ }\n/* 495 */ StringBuffer stringBuffer = new StringBuffer(i);\n/* 496 */ stringBuffer.append(paramURL.getProtocol());\n/* 497 */ stringBuffer.append(\":\");\n/* 498 */ if (paramURL.getAuthority() != null && paramURL.getAuthority().length() > 0) {\n/* 499 */ stringBuffer.append(\"//\");\n/* 500 */ stringBuffer.append(paramURL.getAuthority());\n/* */ } \n/* 502 */ if (paramURL.getPath() != null) {\n/* 503 */ stringBuffer.append(paramURL.getPath());\n/* */ }\n/* 505 */ if (paramURL.getQuery() != null) {\n/* 506 */ stringBuffer.append('?');\n/* 507 */ stringBuffer.append(paramURL.getQuery());\n/* */ } \n/* 509 */ if (paramURL.getRef() != null) {\n/* 510 */ stringBuffer.append(\"#\");\n/* 511 */ stringBuffer.append(paramURL.getRef());\n/* */ } \n/* 513 */ return stringBuffer.toString();\n/* */ }", "public abstract void param(byte[] data,SplitDetails name, SplitDetails value) throws ParseException;", "@Deprecated\n/* */ protected void setURL(URL paramURL, String paramString1, String paramString2, int paramInt, String paramString3, String paramString4) {\n/* 572 */ String str1 = null;\n/* 573 */ String str2 = null;\n/* 574 */ if (paramString2 != null && paramString2.length() != 0) {\n/* 575 */ str1 = (paramInt == -1) ? paramString2 : (paramString2 + \":\" + paramInt);\n/* 576 */ int i = paramString2.lastIndexOf('@');\n/* 577 */ if (i != -1) {\n/* 578 */ str2 = paramString2.substring(0, i);\n/* 579 */ paramString2 = paramString2.substring(i + 1);\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 586 */ String str3 = null;\n/* 587 */ String str4 = null;\n/* 588 */ if (paramString3 != null) {\n/* 589 */ int i = paramString3.lastIndexOf('?');\n/* 590 */ if (i != -1) {\n/* 591 */ str4 = paramString3.substring(i + 1);\n/* 592 */ str3 = paramString3.substring(0, i);\n/* */ } else {\n/* 594 */ str3 = paramString3;\n/* */ } \n/* 596 */ } setURL(paramURL, paramString1, paramString2, paramInt, str1, str2, str3, str4, paramString4);\n/* */ }", "String httpSafe();", "public abstract String encodeURL(CharSequence url);", "@Override\n protected void parseURL(URL url, String spec, int start, int end) {\n if (end < start) {\n return;\n }\n String parseString = \"\";\n if (start < end) {\n parseString = spec.substring(start, end).replace('\\\\', '/');\n }\n super.parseURL(url, parseString, 0, parseString.length());\n }", "protected String formatHTTPURLParameters(HTTPFaxClientSpi faxClientSpi, FaxJob faxJob) {\n // get URL parameters\n String urlParametersTemplate = faxClientSpi.getHTTPURLParameters();\n\n // format URL parameters\n String urlParameters = SpiUtil.formatTemplate(urlParametersTemplate, faxJob, SpiUtil.URL_ENCODER, false, false);\n\n return urlParameters;\n }", "private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }", "public Address interpretUrl(String url);", "@Override\n\tpublic CharSequence encodeURL(CharSequence url)\n\t{\n\t\tif (httpServletResponse != null && url != null)\n\t\t{\n\t\t\treturn httpServletResponse.encodeURL(url.toString());\n\t\t}\n\t\treturn url;\n\t}", "@Override\n\tpublic boolean acceptsURL(String arg0) throws SQLException {\n\t\treturn false;\n\t}", "@Override\n\tpublic String encodeUrl(String url) {\n\t\treturn null;\n\t}", "@Override\n\tpublic String encodeURL(String url) {\n\t\treturn null;\n\t}", "public DataURL setData(String data){\n if(data != null){\n this.data = data;\n }\n return this;\n }", "public boolean modifyURIArgContent(URLArg urlArg);", "private static void saveData(String data) {\n }", "private static URL buildURL(List<String> args) throws MalformedURLException {\n\n\t\tfinal String IDList = args.stream().map(id -> id.toString() + \",\").reduce(\"\", String::concat);\n\n\t\treturn new URL(String.format(BASE_URL, IDList));\n\t}", "public DataWrapProxy(String data) {\n this.data = data;\n }", "private void sendLocalParamData(){\n String json = gson.toJson(parameters);\n getJSON(hostUrl + sendLocalParamScript.getFilename() + \"?matchId=\" + matchId + \"&param=\" + json, 2000);\n }", "@Override\n protected boolean shouldEncodeUrls() {\n return isShouldEncodeUrls();\n }", "public static void main(String[] args) throws Exception {\n String data=\"=1&sta=dc4f223eb429&shop=1&token=123232jd&r=8134ad506c4e&id=12a2c334&type=check&data=t572007166r0e0c0h31624hb18fe34010150aps1800api5si10em2pl1024pll3072tag20 sp1\";\r\n// String data=\"=1&sta=dc4f223eb429&shop=1&token=123232jd&r=8134ad506c4e&id=12a2c334&type=configa&data=ch1cas5cat5sc5t30603970r0e0c0h47368cst36000iga1st1\";\r\n// System.out.println((int)'&');\r\n// System.out.println(data);\r\n// data = \"c3RhPTY4YzYzYWUwZGZlZiZzaG9wPTEmdG9rZW49MTIzMjMyamQmcj05NGQ5YjNhOWMyNmYmaWQ9MmRlY2ZkY2UmdHlwZT1wcm9iZWEmZGF0YT0lMDE5NGQ5YjNhOWMyNmYmJTAxJTAxMDAxN2M0Y2QwMWNmeCUwMTc4NjI1NmM2NzI1YkwlMDE1Yzk2OWQ3MWVmNjNRJTAxOTRkOWIzYTljMjZmJTIxJTAxN2NjNzA5N2Y0MWFmeCUwMSUwMWRjODVkZWQxNjE3ZjklMDE1NGRjMWQ3MmE0NDB4JTAxNzg2MjU2YzY3MjViRSUwMTVjOTY5ZDcxZWY2M0olMDE5NGQ5YjNhOWMyNmYlMUUlMDFlNGE3YTA5M2UzOTJ4JTAxNGMzNDg4OTQ5YjY2eCUwMTNjNDZkODMwZTAyMDYlMDElMDE2MGYxODk2ZjJmY2JDJTAxOTRkOWIzYTljMjZmKyUwMTkwYzM1ZjE3NWQ2MXglMDE0YzM0ODg5NDliNjZ4JTAxZTRhN2M1YzhjYzA4JTNBJTAxJTAxZjBiNDI5ZDI1MTFjWCUwMTVjOTY5ZDcxZWY2MyU1QyUwMWQ0NmE2YTE1NWJmMXglMDE5NGQ5YjNhOWMyNmYqJTAxPQ==\";\r\n// data = \"c3RhPTY4YzYzYWUwZGZlZiZzaG9wPTEmdG9rZW49MTIzMjMyamQmcj05NGQ5YjNhOWMyNmYmaWQ9NWY0NTQzZWMmdHlwZT1wcm9iZWEmZGF0YT0lMDE2OGM2M2FlMGRmZWYmJTAxMDhmNjljMDYzNDdmRSUwMTIwM2NhZThlMjZlY0clMDE9\";\r\n System.out.println(WIFIReportVO.buildWIFIReportVO(data));\r\n System.out.println(WIFIReportVO.buildWIFIReportVO(new String(Base64Utils.decodeFromString(data))));\r\n\r\n// HttpUtils.postJSON(\"http://127.0.0.1:8080/soundtooth/callout\" , \"{\\\"user_name\\\":\\\"用户名\\\",\\\"iSeatNo\\\":\\\"1001001\\\",\\\"callId\\\":\\\"210ab0fdfca1439ba268a6bf8266305c\\\",\\\"telA\\\":\\\"18133331269\\\",\\\"telB\\\":\\\"181****1200\\\",\\\"telX\\\":\\\"17100445588\\\",\\\"telG\\\":\\\"07556882659\\\",\\\"duration\\\":\\\"19\\\",\\\"userData\\\":\\\"ef7ede6f36c84f1d45333863c38ff14c\\\"}\");\r\n//// HttpUtils.postJSON(\"http://127.0.0.1:8080/soundtooth/callout\" , \"{\\\"user_name\\\":\\\"用户名\\\",\\\"iSeatNo\\\":\\\"1001001\\\",\\\"callId\\\":\\\"210ab0fdfca1439ba268a6bf8266305c\\\",\\\"telA\\\":\\\"18133331269\\\",\\\"telB\\\":\\\"181****1200\\\",\\\"telX\\\":\\\"17100445588\\\",\\\"telG\\\":\\\"07556882659\\\",\\\"duration\\\":\\\"19\\\",\\\"userData\\\":\\\"ef7ede6f36c84f1d45333863c38ff14c\\\"}\");\r\n// System.out.println(HttpUtils.postJSON(\"http://s.slstdt.com/collector/collect\" , \"\"));\r\n// System.out.println(HttpUtils.postJSON(\"http://s.slstdt.com/soundtooth/callout\" , \"\"));\r\n\r\n\r\n }", "String getInsertDataUriQuery(String... args);", "DataURL(String protocol){\n super(protocol);\n }", "String link(@SuppressWarnings(\"rawtypes\") Map params);", "public abstract BridgeURL encodeBookmarkableURL(String baseURL, Map<String, List<String>> parameters);", "public String encodeUrl(String s) {\n\t\treturn null;\n\t}", "public String wantRoundTrip();", "protected Object getSingleValueFromRequest(HttpServletRequest request_p, String strID_p)\r\n {\r\n return request_p.getParameter(strID_p);\r\n }", "public String getParameterFromP();", "String processQuery(String query);", "private static void appendParams( StringBuilder param, String key, String val ) \n\t{\n\t\tif ( val != null && val.length() > 0 )\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tparam.append( \"&\" ).append( URLEncoder.encode( key, \"UTF-8\" ) )\n\t\t\t\t\t .append( \"=\" ).append( URLEncoder.encode( val, \"UTF-8\" ) );\n\t\t\t}\n\t\t\tcatch (UnsupportedEncodingException e)\n\t\t\t{\n\t\t\t\tLog.e( AdManager.LOG, \"UTF-8 encoding is not supported on this device. Ad requests are impossible.\", e );\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic String buildURL(String string) {\n\t\treturn null;\n\t}", "private String doSubmit(String url, Map<String, String> data)\r\n\t\t\tthrows Exception {\r\n\t\tURL siteUrl = new URL(url);\r\n\r\n\t\tHttpURLConnection conn = (HttpURLConnection) siteUrl.openConnection();\r\n\t\tconn.setRequestMethod(\"POST\");\r\n\t\tconn.setDoOutput(true);\r\n\t\tconn.setDoInput(true);\r\n\r\n\t\tDataOutputStream out = new DataOutputStream(conn.getOutputStream());\r\n\r\n\t\tSet keys = data.keySet();\r\n\t\tIterator keyIter = keys.iterator();\r\n\t\tString content = \"\";\r\n\t\tfor (int i = 0; keyIter.hasNext(); i++) {\r\n\t\t\tObject key = keyIter.next();\r\n\t\t\tif (i != 0) {\r\n\t\t\t\tcontent += \"&\";\r\n\t\t\t}\r\n\t\t\tcontent += key + \"=\" + URLEncoder.encode(data.get(key), \"UTF-8\");\r\n\t\t\t// content += key + \"=\" + data.get(key);\r\n\t\t}\r\n\t\tSystem.out.println(content);\r\n\t\tout.writeBytes(content);\r\n\t\tout.flush();\r\n\t\tout.close();\r\n\r\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\r\n\t\t\t\tconn.getInputStream()));\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tString aux = \"\";\r\n\r\n\t\tString prefix = siteUrl.getProtocol() + \"://\" + siteUrl.getHost();\r\n\r\n\t\twhile ((aux = in.readLine()) != null) {\r\n\t\t\tif (aux.indexOf(\"href\") != -1) {\r\n\t\t\t\taux = aux.replaceAll(\"href=\\\"/\", \"href=\\\"\" + prefix + \"/\");\r\n\t\t\t}\r\n\t\t\taux = aux.replaceAll(\"src=\\\"/\", \"src=\\\"\" + prefix + \"/\");\r\n\t\t\tbuilder.append(aux);\r\n\t\t}\r\n\r\n\t\tin.close();\r\n\r\n\t\treturn builder.toString();\r\n\t}", "private static Object[] cleanUrlArgs(Object... args) {\n for (int i = 0; i < args.length; i++) {\n Object arg = args[i];\n if(arg.getClass() == long.class || arg.getClass() == int.class) {\n args[i] = Long.toString((long) arg);\n }\n else if(arg.getClass() == Long.class\n || arg.getClass() == Integer.class) {\n args[i] = arg.toString();\n }\n }\n return args;\n }", "public interface DataUrl extends DataFact {\n String TYPE_NAME = \"link\";\n\n URL getUrl();\n\n @Override\n String getLabel();\n\n @Override\n boolean hasData(DataValidator dataValidator);\n}", "public HttpPoster(final URL url, final String requestData) {\n\t\tsuper(url, HttpMethod.POST, requestData);\n\t}", "public String formURL(){\n String target = feedURL + \"?s=\" + marketInformation.getTickers().stream().reduce( (a, b) -> a + \",\" + b).get();\n // p0 is just the prices ordered the same as the request\n target += \"&f=p0\";\n return target;\n }", "protected void parseURL(URL paramURL, String paramString, int paramInt1, int paramInt2) {\n/* 126 */ String str1 = paramURL.getProtocol();\n/* 127 */ String str2 = paramURL.getAuthority();\n/* 128 */ String str3 = paramURL.getUserInfo();\n/* 129 */ String str4 = paramURL.getHost();\n/* 130 */ int i = paramURL.getPort();\n/* 131 */ String str5 = paramURL.getPath();\n/* 132 */ String str6 = paramURL.getQuery();\n/* */ \n/* */ \n/* 135 */ String str7 = paramURL.getRef();\n/* */ \n/* 137 */ boolean bool1 = false;\n/* 138 */ boolean bool2 = false;\n/* */ \n/* */ \n/* */ \n/* 142 */ if (paramInt1 < paramInt2) {\n/* 143 */ int k = paramString.indexOf('?');\n/* 144 */ bool2 = (k == paramInt1) ? true : false;\n/* 145 */ if (k != -1 && k < paramInt2) {\n/* 146 */ str6 = paramString.substring(k + 1, paramInt2);\n/* 147 */ if (paramInt2 > k)\n/* 148 */ paramInt2 = k; \n/* 149 */ paramString = paramString.substring(0, k);\n/* */ } \n/* */ } \n/* */ \n/* 153 */ int j = 0;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 159 */ boolean bool3 = (paramInt1 <= paramInt2 - 4 && paramString.charAt(paramInt1) == '/' && paramString.charAt(paramInt1 + 1) == '/' && paramString.charAt(paramInt1 + 2) == '/' && paramString.charAt(paramInt1 + 3) == '/') ? true : false;\n/* 160 */ if (!bool3 && paramInt1 <= paramInt2 - 2 && paramString.charAt(paramInt1) == '/' && paramString\n/* 161 */ .charAt(paramInt1 + 1) == '/') {\n/* 162 */ paramInt1 += 2;\n/* 163 */ j = paramString.indexOf('/', paramInt1);\n/* 164 */ if (j < 0 || j > paramInt2) {\n/* 165 */ j = paramString.indexOf('?', paramInt1);\n/* 166 */ if (j < 0 || j > paramInt2) {\n/* 167 */ j = paramInt2;\n/* */ }\n/* */ } \n/* 170 */ str4 = str2 = paramString.substring(paramInt1, j);\n/* */ \n/* 172 */ int k = str2.indexOf('@');\n/* 173 */ if (k != -1) {\n/* 174 */ if (k != str2.lastIndexOf('@')) {\n/* */ \n/* 176 */ str3 = null;\n/* 177 */ str4 = null;\n/* */ } else {\n/* 179 */ str3 = str2.substring(0, k);\n/* 180 */ str4 = str2.substring(k + 1);\n/* */ } \n/* */ } else {\n/* 183 */ str3 = null;\n/* */ } \n/* 185 */ if (str4 != null) {\n/* */ \n/* */ \n/* 188 */ if (str4.length() > 0 && str4.charAt(0) == '[') {\n/* 189 */ if ((k = str4.indexOf(']')) > 2) {\n/* */ \n/* 191 */ String str = str4;\n/* 192 */ str4 = str.substring(0, k + 1);\n/* */ \n/* 194 */ if (!IPAddressUtil.isIPv6LiteralAddress(str4.substring(1, k))) {\n/* 195 */ throw new IllegalArgumentException(\"Invalid host: \" + str4);\n/* */ }\n/* */ \n/* */ \n/* 199 */ i = -1;\n/* 200 */ if (str.length() > k + 1) {\n/* 201 */ if (str.charAt(k + 1) == ':') {\n/* 202 */ k++;\n/* */ \n/* 204 */ if (str.length() > k + 1) {\n/* 205 */ i = Integer.parseInt(str.substring(k + 1));\n/* */ }\n/* */ } else {\n/* 208 */ throw new IllegalArgumentException(\"Invalid authority field: \" + str2);\n/* */ } \n/* */ }\n/* */ } else {\n/* */ \n/* 213 */ throw new IllegalArgumentException(\"Invalid authority field: \" + str2);\n/* */ } \n/* */ } else {\n/* */ \n/* 217 */ k = str4.indexOf(':');\n/* 218 */ i = -1;\n/* 219 */ if (k >= 0) {\n/* */ \n/* 221 */ if (str4.length() > k + 1) {\n/* 222 */ i = Integer.parseInt(str4.substring(k + 1));\n/* */ }\n/* 224 */ str4 = str4.substring(0, k);\n/* */ } \n/* */ } \n/* */ } else {\n/* 228 */ str4 = \"\";\n/* */ } \n/* 230 */ if (i < -1) {\n/* 231 */ throw new IllegalArgumentException(\"Invalid port number :\" + i);\n/* */ }\n/* 233 */ paramInt1 = j;\n/* */ \n/* */ \n/* 236 */ if (str2 != null && str2.length() > 0) {\n/* 237 */ str5 = \"\";\n/* */ }\n/* */ } \n/* 240 */ if (str4 == null) {\n/* 241 */ str4 = \"\";\n/* */ }\n/* */ \n/* */ \n/* 245 */ if (paramInt1 < paramInt2) {\n/* 246 */ if (paramString.charAt(paramInt1) == '/') {\n/* 247 */ str5 = paramString.substring(paramInt1, paramInt2);\n/* 248 */ } else if (str5 != null && str5.length() > 0) {\n/* 249 */ bool1 = true;\n/* 250 */ int k = str5.lastIndexOf('/');\n/* 251 */ String str = \"\";\n/* 252 */ if (k == -1 && str2 != null) {\n/* 253 */ str = \"/\";\n/* */ }\n/* 255 */ str5 = str5.substring(0, k + 1) + str + paramString.substring(paramInt1, paramInt2);\n/* */ } else {\n/* */ \n/* 258 */ String str = (str2 != null) ? \"/\" : \"\";\n/* 259 */ str5 = str + paramString.substring(paramInt1, paramInt2);\n/* */ } \n/* 261 */ } else if (bool2 && str5 != null) {\n/* 262 */ int k = str5.lastIndexOf('/');\n/* 263 */ if (k < 0)\n/* 264 */ k = 0; \n/* 265 */ str5 = str5.substring(0, k) + \"/\";\n/* */ } \n/* 267 */ if (str5 == null) {\n/* 268 */ str5 = \"\";\n/* */ }\n/* 270 */ if (bool1) {\n/* */ \n/* 272 */ while ((j = str5.indexOf(\"/./\")) >= 0) {\n/* 273 */ str5 = str5.substring(0, j) + str5.substring(j + 2);\n/* */ }\n/* */ \n/* 276 */ j = 0;\n/* 277 */ while ((j = str5.indexOf(\"/../\", j)) >= 0) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 284 */ if (j > 0 && (paramInt2 = str5.lastIndexOf('/', j - 1)) >= 0 && str5\n/* 285 */ .indexOf(\"/../\", paramInt2) != 0) {\n/* 286 */ str5 = str5.substring(0, paramInt2) + str5.substring(j + 3);\n/* 287 */ j = 0; continue;\n/* */ } \n/* 289 */ j += 3;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 294 */ j = str5.indexOf(\"/..\");\n/* 295 */ while (str5.endsWith(\"/..\") && (paramInt2 = str5.lastIndexOf('/', j - 1)) >= 0) {\n/* 296 */ str5 = str5.substring(0, paramInt2 + 1);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 302 */ if (str5.startsWith(\"./\") && str5.length() > 2) {\n/* 303 */ str5 = str5.substring(2);\n/* */ }\n/* */ \n/* 306 */ if (str5.endsWith(\"/.\")) {\n/* 307 */ str5 = str5.substring(0, str5.length() - 1);\n/* */ }\n/* */ } \n/* 310 */ setURL(paramURL, str1, str4, i, str2, str3, str5, str6, str7);\n/* */ }", "@Override\r\n\tpublic java.lang.String toString()\r\n\t{\r\n\t\treturn \"appendParamToUrl\";\r\n\t}", "@JsonIgnore\n public void setDataUrl(String dataUrl) {\n this.dataUrl = dataUrl;\n }", "@Override\n void load(String data) {\n }", "java.lang.String getData();", "public HttpPoster(final String url, final String requestData) {\n\t\tsuper(url, HttpMethod.POST, requestData);\n\t}", "public void displayData(String str);", "public static void main(String[] args) {\n String urlStr = URLEncoder.encode(\"疯狂动物城\");\n System.out.println(urlStr);\n String decoder = URLDecoder.decode(urlStr);\n System.out.println(decoder);\n }", "protected void parse(byte[] data) {\n version = data[0];\n flags = new byte[3];\n flags[0] = data[1];\n flags[1] = data[2];\n flags[2] = data[3];\n\n url = new String(data, 4, data.length - 4);\n }", "public static void main(String[] args) throws IOException {\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));\n String URL = \"\";\n URL = bufferedReader.readLine();\n\n if (URL.isEmpty() || URL.indexOf(\"?\") == -1 || URL.indexOf(\"?\") == URL.length()-1)\n return;\n\n ArrayList<String> params = getParams(URL);\n\n if (params == null)\n return;\n\n printParams(params);\n processObj(params);\n// for (String s : params)\n// if (s.contains(\"obj=\")) {\n// callAlert(params);\n// break;\n// }\n }", "public static void main(String[] args) {\n\t\tString url = \"http://hell.com/?pw=8936,id='fsfds'\";\n\t\t\n\t\tint location = url.indexOf(\"pw=\");\n\t\tString str2 = url.substring(location+7);\n\t\tString str1 = url.substring(0,location+3);\n\t\tSystem.out.println(str1+\"****\"+str2);\n\t\t\n\t}", "interface UrlModifier {\n\n String createUrl(String url);\n\n }", "private String queryBuilder(HashMap<String, String> data) throws UnsupportedEncodingException {\n if (data.isEmpty())\n return \"\";\n StringBuilder dataAsString = new StringBuilder();\n for (Entry<String, String> entry : data.entrySet()) {\n dataAsString.append(\"&\");\n dataAsString.append(URLEncoder.encode(entry.getKey(), \"UTF-8\"));\n dataAsString.append(\"=\");\n dataAsString.append(URLEncoder.encode(entry.getValue(), \"UTF-8\"));\n }\n return dataAsString.toString();\n }", "public abstract String getDataFileUrl ();", "private String callback(Map<String, String> requestData) {\n\t\tString[] args = requestData.get(\"data\").split(\";\")[1].split(\"#\");\n\t\tString item = args[0];\n\t\t\n\t\treturn \"{\\\"type\\\": \\\"edit\\\", \\\"text\\\": \\\"HTTP Server - You Selected \"+item.toUpperCase()+\"\\\"}\";\n\t}", "protected void sendData(String tag, String [] data1, String [] data2, String url,\n Context callingActivity, int layout, Boolean getItem){\n //sending data\n Intent i;\n if(getItem){\n i = new Intent(callingActivity, GetItemActivity.class);\n i.putExtra(AppCSTR.JSON, tag);\n }else{\n i = new Intent(callingActivity, PostItemActivity.class);\n }\n i.putExtra(AppCSTR.LAYOUT, layout);\n i.putExtra(AppCSTR.DATA_PASSED, data1);\n i.putExtra(AppCSTR.DATA_NEEDED, data2);\n i.putExtra(AppCSTR.URL, url);\n startActivityForResult(i, AppCSTR.REQUEST_CODE);\n }", "public void testADDWithDataAndResource() throws Exception {\n String data =\"Some words about Helen of Troy\";\n String adress =\"http://semantag.org/occ\";\n doAdd(data, adress);\n }", "static String m1377m(String str, String str2) {\n return str2 == null ? str.length() > 0 ? str : null : Uri.parse(\"http://hostname/?\" + str).getQueryParameter(str2);\n }", "public void setData(java.lang.String data) {\r\n this.data = data;\r\n }", "public String encodeURL(String s) {\n\t\treturn null;\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"latitude\", latitude_file);\n params.put(\"longitude\", longitude_file);\n params.put(\"link\", link);\n\n return params;\n }", "private void processUrl (String stringUrl)\n\t{\n\t\tURL correctUrl=null;\n\t\t// we need the URL\n\t\t// we first try to convert it directly\n\t\ttry {\n\t\t\tcorrectUrl=new URL(stringUrl);\n\t\t} catch (MalformedURLException e) {System.out.println(\"Not found : \"+stringUrl);return;}\n\n\t\tallInformation.getNemo().addJcamp(stringUrl);\n\t}", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", name);\n params.put(\"ean\", ean);\n params.put(\"supplier\", supplier);\n params.put(\"offer\", offer);\n params.put(\"price\", price);\n\n return params;\n }", "@Override\n\tpublic String onData() {\n\t\tMap<String, Object> mapObj = new HashMap<String, Object>();\n\t\tfor (BasicNameValuePair pair : pairs) {\n\t\t\tmapObj.put(pair.getName(), pair.getValue());\n\t\t}\n\t\tGson gson = new Gson();\n\t\tString json = gson.toJson(mapObj);\n\t\treturn json;\n\t}", "protected abstract ContentValues getDataFromInput();", "private void GotoGraficos(String data){\n Intent intent = new Intent(this, Graficos_Sesion.class);\n intent.putExtra(\"url\", data);\n startActivity(intent);\n }", "@Override\npublic void get(String url) {\n\t\n}", "public String toUrlSafe() {\n// try {\n //todo: key encoder\n return Base64.getEncoder().encodeToString(new Gson().toJson(this).getBytes());\n// return URLEncoder.encode(\"\", UTF_8.name());\n// return URLEncoder.encode(TextFormat.printToString(toPb()), UTF_8.name());\n// } catch (UnsupportedEncodingException e) {\n// throw new IllegalStateException(\"Unexpected encoding exception\", e);\n// }\n }", "public void postInfo(String s);", "public void setUrlData(byte[] urlData) {\n\t\tthis.urlData = urlData;\n\t}", "public void parseParameter(byte[] data)\n {\n return; \n }", "private final java.lang.String extractReturnUrl(java.lang.String data) {\n return null;\n }", "abstract String getUri();", "protected static String toExternalForm(PURL u) {\n\n\t// pre-compute length of StringBuffer\n\tint len = u.getProtocol().length() + 1;\n\tif (u.getAuthority() != null && u.getAuthority().length() > 0)\n\t len += 2 + u.getAuthority().length();\n\tif (u.getPath() != null) {\n\t len += u.getPath().length();\n\t}\n\tif (u.getQuery() != null) {\n\t len += 1 + u.getQuery().length();\n\t}\n\tif (u.getRef() != null) \n\t len += 1 + u.getRef().length();\n\n\tStringBuffer result = new StringBuffer(len);\n\tresult.append(u.getProtocol());\n result.append(\":\");\n if (u.getAuthority() != null && u.getAuthority().length() > 0) {\n result.append(\"//\");\n result.append(u.getAuthority());\n }\n if (u.getPath() != null) {\n result.append(u.getPath());\n }\n if (u.getQuery() != null) {\n result.append('?');\n result.append(u.getQuery());\n }\n\tif (u.getRef() != null) {\n\t result.append(\"#\");\n result.append(u.getRef());\n\t}\n\treturn result.toString();\n }", "static private String ToUrlEncoded(String word) {\n\t\tString urlStr = null;\n\t\ttry {\n\t\t\turlStr = URLEncoder.encode(word,CharSet);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn urlStr;\n\t}", "public String encodeURL(String input)\n\t{\n\t\tStringBuilder encodedString = new StringBuilder();\n\t\tfor(int i = 0; i < input.length(); i++)\n\t\t{\n\t\t\tchar c = input.charAt(i);\n\t\t\tboolean notEncoded = Character.isLetterOrDigit(c);\n\t\t\tif (notEncoded)\n\t\t\t\tencodedString.append(c);\n\t\t\telse\n\t\t\t{\n\t\t\t\tint value = (int) c;\n\t\t\t\tString hex = Integer.toHexString(value);\n\t\t\t\tencodedString.append(\"%\" + hex.toUpperCase());\n\t\t\t}\n\t\t}\n\t\treturn encodedString.toString();\n\t}", "@Test\r\n\tpublic void testHttpURLBuilderParsing() {\r\n\t\tHttpURLBuilder parser = new HttpURLBuilder();\r\n\t\tparser.setUrl(\"http://somedomain.int/somepath?someparam=somevalue\");\r\n\t\tAssert.assertEquals(\"somedomain.int\", parser.getHost());\r\n\t\tAssert.assertEquals(\"/somepath\", parser.getPath());\r\n\t\tfor (String param : parser.getParameters().keySet()) {\r\n\t\t\tSystem.err.println(param);\r\n\t\t}\r\n\t\tAssert.assertTrue(parser.getParameters().containsKey(\"someparam\"));\r\n\t\tSystem.err.println(parser.getParameters().get(\"someparam\").get(0));\r\n\t\tAssert.assertEquals(\"somevalue\", parser.getParameters().get(\"someparam\").get(0));\r\n\t\tAssert.assertFalse(parser.isSecure());\r\n\t\tAssert.assertNotNull(parser.toString());\r\n\t\tAssert.assertNotNull(parser.toURL());\r\n\t\tAssert.assertEquals(\"http://somedomain.int/somepath?someparam=somevalue\", parser.toString());\r\n\t}", "void shouldParseTheDataIfContentTypeIsApplicationXWwwFormUrlencoded() {\n }", "String getParamsAsString();", "String getRequest();", "public String save(UrlObject urlObject);", "public abstract String toFORMParam();", "public void convert() {\r\n if (text != null && !text.isEmpty()) {\r\n // trim spaces at the edges, convert all to lowercase and\r\n // remove all non-alpha numeric characters\r\n String url = text.trim().toLowerCase().replaceAll(\"[^a-z0-9_\\\\s-]\", \"\"); \r\n // change all multiple white spaces to single white space\r\n url = url.replaceAll(\"[\\\\s-]+\", \" \");\r\n // replace all the single white spaces with a dash\r\n seoUrl = url.replaceAll(\"[\\\\s]\", \"-\");\r\n // at this point we will save the product in the database \r\n // with SEO friendly URL appended with the product ID at the end\r\n // Let's say the product ID is 12345\r\n Long productId = 12345L;\r\n seoUrl += \"-\" + productId; \r\n System.out.println(\"SEO Friendly URL --> \" + seoUrl);\r\n } else {\r\n seoUrl = \"Please enter text to convert\";\r\n }\r\n }", "public final static String transformUrl(String url) {\n \n int c = url.indexOf('?');\n if (c > -1) {\n url = url.substring(0, c);\n }\n \n // temporary work around to enable authorization on opendap URLs\n url = url.replace(\"dodsC\", \"fileServer\").replace(\".ascii\", \"\").replace(\".dods\", \"\").replace(\".das\", \"\").replace(\".ddds\", \"\");\n \n return url;\n }", "private String getSearchUrl(String url ){\n String params = searchEditText.getText().toString();\n params = params.replace(\" \",\"+\");\n url += params + \"&filter=ebooks&prettyPrint=false\";\n return url;\n }", "public String toString(boolean encode) {\n StringBuilder url = new StringBuilder();\n boolean addSlash = true;\n\n //Protocol\n url.append(super.getProtocol());\n\n //Media-Type\n if(mediaType != null){\n url.append(mediaType);\n }\n\n //Base64\n if(base64){\n url.append(\";base64\");\n }\n\n //Data\n //# Throw an error if the data is null or empty\n if(data == null || data.isEmpty())\n throw new URLBuildException(\"Data is null or empty. Data must be set to build a data url.\");\n\n String dataPrepared = data;\n\n if(base64)\n dataPrepared = Base64.getEncoder().encodeToString(dataPrepared.getBytes());\n\n if(encode && !base64)\n dataPrepared = encode(dataPrepared);\n\n url.append(\",\").append(dataPrepared);\n\n return url.toString();\n }", "void mo26166a(String str, String str2, Map<String, Object> map, IHttpCallback mVar);", "private Object extractParameterFromUrl(MethodParameterContext context)\n\t{\n\t\tMap<String, String> parameters = context.getPathParameters();\n\t\tIterator<String> paramIterator = parameters.values().iterator();\n\t\tList<MethodParameter<?>> methodParameters = ownerMethod.getMethodParameters();\n\n\t\tfor (int i = 0; i < paramIndex; i++)\n\t\t{\n\t\t\tMethodParameter<?> parameter = methodParameters.get(i);\n\n\t\t\tif(parameter.getAnnotationParam() == null)\n\t\t\t\tparamIterator.next();\n\t\t}\n\n\t\tif(paramIterator.hasNext())\n\t\t{\n\t\t\treturn AbstractRestResource.toObject(parameterClass, paramIterator.next(), supplier);\n\t\t}\n\n\t\treturn null;\n\t}" ]
[ "0.6477287", "0.63463247", "0.6127911", "0.6018187", "0.5792613", "0.57668865", "0.56222975", "0.56196696", "0.55312395", "0.5486742", "0.545762", "0.5439595", "0.5434002", "0.54309595", "0.5393333", "0.53324836", "0.5279511", "0.52466553", "0.52433956", "0.5231797", "0.52306795", "0.5191147", "0.51612836", "0.5160801", "0.51370573", "0.51342636", "0.5131451", "0.5117743", "0.5093303", "0.5090999", "0.5055906", "0.5055516", "0.5045557", "0.5044742", "0.5023058", "0.5015943", "0.49944496", "0.49759963", "0.4964051", "0.49500996", "0.4946563", "0.49452057", "0.49450836", "0.4933728", "0.49330893", "0.4922554", "0.4922226", "0.49221125", "0.49190426", "0.4907394", "0.49068132", "0.49015978", "0.4891257", "0.4890844", "0.48891652", "0.4874806", "0.48721388", "0.4870531", "0.4864432", "0.48634866", "0.48624155", "0.48603582", "0.48547208", "0.48530564", "0.48501438", "0.48488742", "0.4847851", "0.48456153", "0.4844641", "0.48441404", "0.48415774", "0.48390585", "0.4838532", "0.48254862", "0.48215324", "0.48164636", "0.48127657", "0.48112047", "0.480903", "0.47976613", "0.47974402", "0.4796331", "0.47864428", "0.47831872", "0.4780515", "0.476691", "0.47629887", "0.47615692", "0.47605488", "0.47602844", "0.47598517", "0.4759508", "0.4740215", "0.47381637", "0.47345823", "0.47339186", "0.47300306", "0.47297254", "0.47274816", "0.47200897", "0.47190824" ]
0.0
-1
PUT, PATCH, DELETE methods are similar ================================================ For DELETE, it will be Void, else the model will take place
@DELETE("posts/{id}/") Call<Void> delete(@Path("id") int id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DELETE\n public void delete() {\n }", "@DELETE\n public void delete() {\n }", "@DELETE\n public void delete() {\n }", "public boolean delete(ModelObject obj);", "@DELETE\n\tResponse delete();", "public void operationDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}", "@Override\n protected Response doDelete(Long id) {\n return null;\n }", "@Override\n protected Response doDelete(Long id) {\n return null;\n }", "public RestUtils setMethodDelete()\n\t{\n\t\trestMethodDef.setHttpMethod(HttpMethod.DELETE);\n\t\treturn this;\n\t}", "private Delete() {}", "private Delete() {}", "@Override\n\tprotected Response doDelete(Long id) {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic String delete() {\n\t\treturn \"delete\";\r\n\t}", "public abstract Response delete(Request request, Response response);", "@Override\n protected Response doUpdate(Long id, JSONObject data) {\n return null;\n }", "@UpdateProvider(type = ServeInfoSqlProvider.class, method = \"deleteById\")\n int delete(ServeInfoDO model);", "@Override\r\n protected void delete_object( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response ) throws KANException\r\n {\n\r\n }", "public void delete() {\n\n }", "public ResponseTranslator delete() {\n setMethod(\"DELETE\");\n return doRequest();\n }", "@Override\npublic void deleteById(String id) {\n\t\n}", "@DELETE\n @Path(\"/\")\n public Response delete() {\n\n if (entityDefinition == null) {\n return Response.status(Status.NOT_FOUND).build();\n }\n entityDefinition.getService().deleteCustom(entityId);\n return Response.status(Status.NO_CONTENT).build();\n }", "interface Delete {}", "public void delete()\n {\n call(\"Delete\");\n }", "@Exclude\n public abstract void delete();", "public void delete(){\r\n\r\n }", "@Override\n public CompletableFuture<Void> delete() {\n return delete(false);\n }", "@Override\n\tprotected UnlockDoc httpDelete(String type, String id, UnlockDoc doc) {\n\t\treturn null;\n\t}", "@RequestMapping(value = \"/operations/{name}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> delete(@PathVariable String name) {\n \t// TODO return the entity upon delete\n \t\n log.debug(\"REST request to delete Operation : {}\", name);\n operationRepository.delete(name);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"operation\", name.toString())).build();\n }", "@DeleteMapping(name = \"delete\")\n\tpublic ResponseEntity<?> delete(@ModelAttribute Entity entity) {\n\t\tgetService().delete(entity);\n\t\treturn ResponseEntity.ok().build();\n\t}", "public boolean update(ModelObject obj);", "@DELETE\n @Path(\"/remove\")\n public void delete() {\n System.out.println(\"DELETE invoked\");\n }", "@DeleteMapping(\"/person\")\r\n@ApiOperation( value = \"Delete Person by id\", notes = \"delete a specific person\")\r\nprivate String deletePersonByParamId(@RequestParam(required = true) int id)\r\n{\r\n Person person = personService.getPersonById(id);\r\n if(person == null){\r\n throw new PersonNotFoundException(\"PersonNotFound\");\r\n }\r\n try {\r\n personService.delete(id);\r\n return \"Sucess\";\r\n }\r\n catch(Exception e){\r\n logger.error(e.toString());\r\n return \"Error =\" + e.toString();\r\n }\r\n}", "@Override\n\tpublic void delete(T entity) {\n\t}", "default void delete(E entity)\n throws TechnicalException, ResourceNotFoundException {\n delete(entity, null);\n }", "public interface Delete {\n}", "public void delete() {\n\n\t}", "@Override\n\tpublic boolean delete(Patient model) {\n\t\treturn false;\n\t}", "@Override\n\tpublic ResponseEntity<?> delete(Long id) {\n\t\treturn null;\n\t}", "@DeleteMapping(\"/person/{id}\")\r\n@ApiOperation( value = \"Delete Person by id\", notes = \"delete a specific person\")\r\nprivate void deletePerson(@PathVariable(\"id\") int id)\r\n{\r\n Person person = personService.getPersonById(id);\r\n if(person == null){\r\n throw new PersonNotFoundException(\"PersonNotFound\");\r\n }\r\n try {\r\n personService.delete(id);\r\n }\r\n catch(Exception e){\r\n logger.error(e.toString());\r\n }\r\n}", "@Test(dependsOnMethods = \"update\")\n public void delete()throws Exception{\n repository.delete(id);\n OwnerRegion delete = repository.findOne(id);\n Assert.assertNull(delete);\n }", "@Override\n\tpublic ModelAndView delete(String id) {\n\t\treturn null;\n\t}", "public abstract boolean delete(Object obj) ;", "@RequestMapping(value = \"/{id}\", method = RequestMethod.DELETE)\n public void delete(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }", "@Override\n public DataObjectResponse<Agenda> handlePUT(DataObjectRequest<Agenda> request)\n {\n return super.handlePUT(request);\n }", "@RequestMapping(value = \"/delete\", method = RequestMethod.DELETE)\n\tpublic void delete(@RequestBody User entity) {\n\t\tdao.delete(entity);\n\t}", "public boolean delete(Base model) throws IOException {\n\t\treturn Core.delete(model, getHttpMethodExecutor());\n\t}", "@Override\n public boolean delete(Revue objet) {\n return false;\n }", "@Override\r\n\tprotected void delete_object(ActionMapping mapping, ActionForm form,\r\n\t\t\tHttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows KANException {\n\t\t\r\n\t}", "@Override\n public DataObjectResponse<T> handlePUT(DataObjectRequest<T> request)\n {\n return handlePUT(request, null);\n }", "@Override\n\tpublic void delete() {\n\n\t}", "@Override\r\n public void delete(final String id) throws ContentModelNotFoundException, SystemException, LockingException,\r\n InvalidStatusException, ResourceInUseException {\r\n \r\n setContentModel(id);\r\n checkLocked();\r\n if (!(getContentModel().isPending() || getContentModel().isInRevision())) {\r\n throw new InvalidStatusException(\"Content Model must be is public status pending or \"\r\n + \"submitted in order to delete it.\");\r\n }\r\n \r\n // check if objects refer this content model\r\n if (this.tripleStoreUtility.hasReferringResource(id)) {\r\n throw new ResourceInUseException(\"The content model is referred by \"\r\n + \"an resource and can not be deleted.\");\r\n }\r\n \r\n // delete every behavior (sdef, sdep) even those from old versions\r\n this.fedoraServiceClient.deleteObject(getContentModel().getId());\r\n this.fedoraServiceClient.sync();\r\n this.tripleStoreUtility.reinitialize();\r\n fireContentModelDeleted(getContentModel().getId());\r\n }", "@Override\n public void Update(Model model) {\n\n }", "protected abstract void doDelete();", "@Override\r\n\tpublic void delete(String id) {\n\r\n\t}", "@Override\n\tpublic void doDelete(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}", "@Override\r\n\tpublic boolean delete(Moteur obj) {\n\t\treturn false;\r\n\t}", "public int delete(o dto);", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "@PreAuthorize(\"hasAnyRole('ADMIN')\") // PERMISSÃO APENAS DO ADMIN\n\t@RequestMapping(value = \"/{id}\", method = RequestMethod.DELETE)\n\tpublic ResponseEntity<Void> delete(@PathVariable Integer id) {\n\t\tservice.delete(id);\n\t\treturn ResponseEntity.noContent().build(); // RESPOSTA 204\n\t}", "@Override\n\tpublic void delete(Long id) {\n\t}", "@Override\n\tpublic boolean delete(String internalModel) {\n\t\treturn false;\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Operation : {}\", id);\n operationRepository.deleteById(id);\n }", "public void delete( final T model )\n\t{\n\t\tthis.dao.delete( model );\n\t}", "default void delete(ID id)\n throws TechnicalException, ConflictException{\n delete(find(id));\n }", "@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void delete() {\n\r\n\t}", "@Override\n\tpublic void delete(String id) {\n\n\t}", "public void setDeleted();", "@Override\n public void validateOnDelete(Object object) {\n }", "@Override\n public void delete()\n {\n }", "public void delete() throws NotAuthorizedException, ConflictException,\n\t\t\tBadRequestException {\n\t}", "@Override\n\tpublic void delete(T obj) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}", "@Override\n public void delete() {\n\n\n }", "@DeleteMapping(\"/methods/{id}\")\n @Timed\n public ResponseEntity<Void> deleteMethods(@PathVariable Long id) {\n log.debug(\"REST request to delete Methods : {}\", id);\n methodsService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "@Override\n\tpublic void delete(Field entity) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}", "Boolean delete(HttpServletRequest request, Long id);", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "public void onDelete(final R record) {\n // can be overridden.\n }", "protected abstract void onDelete(Person person);", "@Override\n public DataObjectResponse<T> handleDELETE(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateDELETE(request);\n try\n {\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n if(request.getId() != null)\n {\n T object = objectPersister.retrieve(request.getId());\n if(object != null)\n {\n if(! visibilityFilterMap.get(VisibilityMethod.DELETE).isVisible(request, object))\n return new DefaultDataObjectResponse<>(\n ErrorResponseFactory.unauthorized(\n String.format(AUTHORIZATION_EXCEPTION, object.getCustomerId()), request.getCID()));\n\n objectPersister.delete(request.getId());\n response.add(object);\n }\n }\n return response;\n }\n catch(PersistenceException e)\n {\n return new DefaultDataObjectResponse<>(ErrorResponseFactory.badRequest(\n new BadRequestException(String.format(UNABLE_TO_DELETE_EXCEPTION, request.getId()), e), request.getCID()));\n }\n }", "public abstract boolean delete(PK id);", "@Override\n\tprotected String onDelete(HttpServletRequest req, HttpServletResponse resp, FunctionItem fi,\n\t\t\tHashtable<String, String> params, String action, L l, S s) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic ActionForward delete(HttpServletRequest request, HttpServletResponse response) {\n\t\treturn null;\n\t}", "@Override\n\tpublic ActionForward delete(HttpServletRequest request, HttpServletResponse response) {\n\t\treturn null;\n\t}", "public ResponseTranslator put() {\n setMethod(\"PUT\");\n return doRequest();\n }", "public void delete(RequestBean request) {\n\t\t\r\n\t}", "public RestUtils setMethodPut()\n\t{\n\t\trestMethodDef.setHttpMethod(HttpMethod.PUT);\n\t\treturn this;\n\t}", "void delete(Entity entity);", "@Override\n\tpublic String update(Long id, Model m) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic String update(Long id, Model m) throws Exception {\n\t\treturn null;\n\t}", "@DeleteMapping(value = \"/delete\", produces = \"application/json\")\n void delete(@RequestParam int id);", "void delete(E entity, RequestContext context)\n throws TechnicalException, ResourceNotFoundException;", "void delete(Object entity);", "@Override\r\n\tpublic void delete(Integer id) {\n\r\n\t}", "public void postDoDelete(T entity)\n {\n }", "@Override\n\tpublic void delete(int id) {\n\t}" ]
[ "0.64759076", "0.63698506", "0.63698506", "0.6342286", "0.6322752", "0.6287501", "0.618331", "0.618331", "0.60984755", "0.60620165", "0.60620165", "0.60461336", "0.6012934", "0.59807926", "0.5967528", "0.59665734", "0.59432447", "0.59364754", "0.5926159", "0.58857083", "0.5865443", "0.58276355", "0.58235604", "0.5816381", "0.5803703", "0.57977045", "0.57909286", "0.57841474", "0.5772282", "0.5765373", "0.57612073", "0.57478356", "0.57439846", "0.5738621", "0.5726182", "0.5706399", "0.57010144", "0.56936896", "0.5685419", "0.5684687", "0.56835186", "0.5681761", "0.56753296", "0.5650178", "0.5642065", "0.56264323", "0.5622282", "0.5616176", "0.5613694", "0.56120914", "0.56083477", "0.560656", "0.5597932", "0.55964273", "0.5596186", "0.55844885", "0.55768037", "0.5566356", "0.5566356", "0.5564132", "0.5563232", "0.5557414", "0.555635", "0.55476385", "0.5542686", "0.55295724", "0.5526131", "0.5520697", "0.5514897", "0.5513293", "0.55077374", "0.5494469", "0.5493753", "0.5489727", "0.5489727", "0.5481184", "0.54803723", "0.547991", "0.54690695", "0.54634374", "0.5463326", "0.5463251", "0.5462089", "0.54617304", "0.5457265", "0.54568136", "0.5456656", "0.5450525", "0.5450525", "0.5449935", "0.54481834", "0.5443151", "0.5442231", "0.54402643", "0.54402643", "0.5438443", "0.5438317", "0.5436711", "0.54328924", "0.5430476", "0.5426659" ]
0.0
-1
When a hero has all of the items that a RecipeItem requires, those items are being removed from his inventory, along with the recipe, and a CommonItem is put on their place, with the stats of the RecipeItem. As if the items have combined with the recipe in order to create a stronger item.
private void checkRecipes() { for (Recipe recipe : this.recipeItems.values()) { List<String> requiredItems = new ArrayList<>(recipe.getRequiredItems()); for (Item item : this.commonItems.values()) { requiredItems.remove(item.getName()); } if (requiredItems.isEmpty()) { this.combineRecipe(recipe); break; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean inventory(Player player, Item item, int opcode) {\n\t\treturn false;\n// Clan channel = ClanRepository.get(player.clan);\n// if (channel == null) {\n// player.send(new SendMessage(\"You need to be in a clan to do this!\"));\n// return true;\n// }\n// player.inventory.remove(item);\n// Item showcaseReward = new Item(Utility.randomElement(ClanUtility.getRewardItems(channel)));\n// channel.showcaseItems.add(showcaseReward.getId());\n// player.send(new SendMessage(\"Inside the box you found \" + showcaseReward.getName() + \"! Showcase size: \" + channel.showcaseItems.size() + \"/28\", SendMessage.MessageColor.DARK_PURPLE));\n// return true;\n\t}", "private void doItemVerification() {\n\t\tif (actor != null && !actor.attributes.getInventory().contains(Items.FISHING_ROD)) {\r\n\t\t\tactor.say(\"fishing.norod\", getAssigningPlayer());\r\n\t\t\treset();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tactor.setHeldItem(actor.attributes.getInventory()\r\n\t\t\t\t.getStackInSlot(actor.attributes.getInventory().getFirstSlotContainingItem(Items.FISHING_ROD))\r\n\t\t\t\t.getItem());\r\n\t}", "public void dropBlockAsItemWithChance(World p_149690_1_, int p_149690_2_, int p_149690_3_, int p_149690_4_, int p_149690_5_, float p_149690_6_, int p_149690_7_) {}", "public void eatItem(Command command) {\n if (!command.hasSecondWord()) { // check if there's a second word\n System.out.println(\"Eat what?\");\n return;\n }\n String itemToBeEaten = command.getSecondWord();\n List<Item> playerInventory = player.getPlayerInventory(); // load the inventory of the player\n\n boolean somethingToUse = false;\n int notThisItem = 0;\n int loop;\n\n for (loop = 0; loop < playerInventory.size(); loop++) { // loop through the player inventory\n Item currentItem = playerInventory.get(loop); // set currentitem on the item that is currently in the loop\n if (itemToBeEaten.equals(currentItem.getItemName()) ){ // get the item name, then check if that matches the secondWord\n if (currentItem.getItemCategory().equals(\"food\")){ // check if the item used is an item in the \"food\" category\n if((player.getHealth())<(20)) { // check if the player's health is full\n player.addHealth(currentItem.getHealAmount()); // heal the player\n player.removeItemFromInventory(currentItem); // remove item from inventory\n System.out.println(\"You eat the \" + itemToBeEaten + \". It heals for \" + currentItem.getHealAmount()+\".\");\n } else { // the player's health is full\n System.out.println(\"Your are at full health!\");\n }\n } else { // item is not a food item\n System.out.println(\"You can't eat that item!\");\n }\n } else { // the item did not match the player provided name\n notThisItem++;\n }\n somethingToUse = true;\n }\n\n //errors afvangen\n if (!somethingToUse) { // the item is not found in the player inventory\n System.out.println(\"You can't eat that!\");\n }\n\n if (loop == notThisItem) { // the player has nothing to burn secondWord with\n //ThisItem is the same amount as loop. Then the player put something in that is not in the room\n System.out.println(\"You cannot eat \" + itemToBeEaten + \" because you don't have it in your inventory!\");\n }\n }", "public void takeItemsFromChest() {\r\n currentRoom = player.getCurrentRoom();\r\n for (int i = 0; i < currentRoom.getChest().size(); i++) {\r\n player.addToInventory(currentRoom.getChest().get(i));\r\n currentRoom.getChest().remove(i);\r\n }\r\n\r\n }", "private void removeEnchantRecipe() {\n Iterator<Recipe> it = Bukkit.recipeIterator();\n\n while (it.hasNext()) {\n Recipe res = it.next();\n\n if (res.getResult().getType() == ENCHANT_TABLE.getType()) {\n it.remove();\n }\n }\n }", "private void itemIntersectsPlayer(Entity item){\n WeaponComponent weaponComponent = player.weaponComponent;\n HealthComponent healthComponent = (HealthComponent) player.getComponent(ComponentType.HEALTH);\n\n EntityType type = item.getEntityType();\n\n\n switch (type){\n\n case ASSAULT_RIFLE:\n AssaultRifle rifle = (AssaultRifle) item;\n rifle.setInInventory(true);\n weaponComponent.addWeapon(item);\n room.getEntityManager().removeEntity(rifle);\n break;\n\n case SHOTGUN:\n Shotgun shotgun = (Shotgun) item;\n shotgun.setInInventory(true);\n weaponComponent.addWeapon(item);\n room.getEntityManager().removeEntity(shotgun);\n break;\n\n case SWORD:\n Sword sword = (Sword) item;\n sword.setInInventory(true);\n weaponComponent.addWeapon(item);\n room.getEntityManager().removeEntity(sword);\n break;\n\n\n case SHIELD:\n Shield shield = (Shield) item;\n shield.setInInventory(true);\n healthComponent.setHasShield(true);\n room.getEntityManager().removeEntity(shield);\n break;\n\n case SPEEDBOOST:\n SpeedBoost speedBoost = (SpeedBoost) item;\n speedBoost.setInInventory(true);\n player.startBoost(10000);\n room.getEntityManager().removeEntity(speedBoost);\n break;\n\n case HEART:\n Heart heart = (Heart) item;\n heart.setInInventory(true);\n healthComponent.incrementCurrentHealth();\n //do player logic here\n room.getEntityManager().removeEntity(heart);\n break;\n\n\n }\n\n\n }", "private void generateItemEntities(){\n final int NUM_POTIONS = 6;\n final int NUM_IRON_ARMOUR = 1;\n final int NUM_CHESTS = 2;\n final String ITEM_BOX_STYLE = \"volcano\";\n\n\n for (int i = 0; i < NUM_POTIONS; i++) {\n Tile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n Item.randomItemPositionGenerator(DEFAULT_HEIGHT));\n if (Integer.parseInt(tile.getTextureName().split(\"_\")[1]) < 5\n && !tile.hasParent()) {\n HealthPotion potion = new HealthPotion(tile,false,\n (PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE);\n entities.add(potion);\n this.allVolcanoDialogues.add(potion.getDisplay());\n } else {\n i--;\n }\n }\n for (int i =0; i < NUM_IRON_ARMOUR; i++){\n Tile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n Item.randomItemPositionGenerator(DEFAULT_HEIGHT));\n if (Integer.parseInt(tile.getTextureName().split(\"_\")[1]) < 5\n && !tile.hasParent()) {\n IronArmour ironArmour = new IronArmour(tile, false,\n (PlayerPeon) getPlayerEntity(),ITEM_BOX_STYLE,200);\n entities.add(ironArmour);\n this.allVolcanoDialogues.add(ironArmour.getDisplay());\n } else {\n i--;\n }\n }\n for (int i = 0; i <NUM_CHESTS; i++){\n Tile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n Item.randomItemPositionGenerator(DEFAULT_HEIGHT));\n if (Integer.parseInt(tile.getTextureName().split(\"_\")[1]) < 5\n && !tile.hasParent()) {\n Treasure chest = new Treasure(tile, false,\n (PlayerPeon) getPlayerEntity(),ITEM_BOX_STYLE);\n entities.add(chest);\n this.allVolcanoDialogues.add(chest.getDisplay());\n } else {\n i--;\n }\n }\n\n Tile cooldownring = getTile(20,-7);\n CooldownRing cdring = new CooldownRing(cooldownring, false,\n (PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,0.5f);\n entities.add(cdring);\n this.allVolcanoDialogues.add(cdring.getDisplay());\n\n Tile attackAmuletTile = getTile(2,14);\n Amulet attackAmulet = new Amulet(attackAmuletTile, false,\n (PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,10);\n entities.add(attackAmulet);\n this.allVolcanoDialogues.add(attackAmulet.getDisplay());\n\n }", "public void carry(Item item)\n {\n\n // Check if item to be added doesn't go over carry limit.\n if (!((getPerson(PLAYER).getWeight() + item.getWeight()) > getPerson(PLAYER).getCarryLimit())){\n getPerson(PLAYER).getInventory().getItems().add(item); \n\n removeRoomItem(item);\n System.out.println();\n System.out.println(item.getName() + \" has been added to your bag.\");\n System.out.println(\"You are carrying \" + getPerson(PLAYER).getWeight()+ \"kg.\");\n }\n else {\n System.out.println(\"Your bag is too heavy to add more items.\");\n }\n\n }", "protected ItemBO segregateSelectedAndAdditionalInventoryForAnItem(ItemBO anItem) {\n\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): Line # - Display Part #: \" + anItem.getLineNumber() + \" - \" + anItem.getDisplayPartNumber());\n\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): anItem.getInventory().size(): \" + anItem.getInventory().size());\n\n\t\tList<InventoryBO> shortListedInventory = shortListRelevantInventory(anItem);\n\t\tif (shortListedInventory != null) {\n\t\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): shortListedInventory.size(): \" + shortListedInventory.size());\n\t\t} else {\n\t\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): shortListedInventory is null\");\n\t\t}\n\n\t\tif (!isPartFoundInMultipleLocations(anItem) || shortListedInventory == null || shortListedInventory.size() == 0) {\n\t\t\tanItem.setInventory(shortListedInventory);\n\t\t\tanItem.setAdditionalInventory(new ArrayList<InventoryBO>());\n\t\t} else { // Part found in multiple locations OR short-listed inventory is not null or empty\n\n\t\t\tList<InventoryBO> additionalInventory = new ArrayList<InventoryBO>();\n\t\t\tboolean sufficientQtyAvailable = hasSufficientQty(shortListedInventory, anItem);\n\t\t\tif (sufficientQtyAvailable) { // Short-listed Inventory has sufficient qty\n\t\t\t\t// Get remaining inventory locations. We will set them as additional inventory.\n\t\t\t\tadditionalInventory = getRemainingInventoryList(anItem, shortListedInventory);\n\t\t\t\n\t\t\t\tanItem.setInventory(shortListedInventory);\n\t\t\t\tanItem.setAdditionalInventory(additionalInventory);\n\t\t\t} else { // Short-listed Inventory does NOT have sufficient qty\n\t\t\t\tanItem = handleInsufficientQtyInShortlistedInventory(shortListedInventory, anItem);\n\t\t\t\tif (shortListedInventory != null) {\n\t\t\t\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): shortListedInventory.size(): \" + shortListedInventory.size());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (anItem.getAdditionalInventory() != null) {\n\t\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): anItem.getAdditionalInventory().size(): \" + anItem.getAdditionalInventory().size());\n\t\t} else {\n\t\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): anItem.getAdditionalInventory() is null\");\n\t\t}\n\t\tlogger.info(\"segregateSelectedAndAdditionalInventoryForAnItem(...): ----------\");\n\n\t\treturn anItem;\n\t}", "private void useItem(Command command) \n { \n if(!command.hasSecondWord()) { \n // if there is no second word, we don't know where to go... \n Logger.Log(\"What are you trying to use?\"); \n return; \n } \n \n String itemUsed = command.getSecondWord();\n String secondUsed = itemUsed + \"2\";\n \n Item thisItem = player.getItem(itemUsed);\n Item secondItem = player.getItem(secondUsed);\n \n Creature thisFriend = player.getCompanion(itemUsed);\n \n //Tries to retrieve which item or creature to use. If not, an error message is returned \n if (thisItem == null&&secondItem == null&&thisFriend == null) {\n Logger.Log(\"You don't have a \" + itemUsed);\n }\n else if (player.inventory.containsKey(itemUsed)) { \n player.removeItem(itemUsed); //The item is removed from inventory\n thisItem.UseItem(this);\n }\n else if (player.inventory.containsKey(secondUsed)) {\n player.removeItem(secondUsed); //The item is removed from inventory\n secondItem.UseItem(this);\n }\n else if (player.friends.containsKey(itemUsed)){ \n thisFriend.UseCompanion(this);\n if (thisFriend.flees){\n player.removeCompanion(itemUsed); //Companions do not get removed from inventory unless the flees boolean has been set to true.\n }\n } \n }", "public void dropBlockAsItemWithChance(World var1, int var2, int var3, int var4, int var5, float var6, int var7)\n {\n super.dropBlockAsItemWithChance(var1, var2, var3, var4, var5, var6, var7);\n }", "public void removeItem(String itemName, int Qty) {\n if (checkExist(itemName, Qty) == true) {\n int i;\n //System.out.println(checkExist(itemName));\n for (i = 0; i < inventory.size(); i++) {\n Map<String, Object> removedItem = new HashMap<>();\n removedItem = inventory.get(i);\n\n if (itemName.equals(removedItem.get(\"Name\").toString())) {\n int a = Integer.parseInt((String) removedItem.get(\"Amount\"));\n removedItem.put(\"Amount\", a - Qty);\n\n if (a - Qty < 1) {\n removedItem.put(\"Existence\", \"N\");\n }\n }\n }\n } else {\n System.out.println(\"Item \" + itemName + \" is not available.\");\n for (int i = 0; i < inventory.size(); i++) {\n Map<String, Object> removedItem = new HashMap<>();\n removedItem = inventory.get(i);\n\n if (itemName.equals(removedItem.get(\"Name\").toString())) {\n System.out.println(\"Since item \" + itemName + \"'s amout is not enough, try less amount.\");\n }\n }\n }\n outPutFile();\n }", "public void dropItems() {\n\t\tlocation.getChunk().load();\n\t\tArrays.stream(inventory.getContents())\n\t\t\t.filter(ItemStackUtils::isValid)\n\t\t\t.forEach((item) -> location.getWorld().dropItemNaturally(location, item));\n\t\tinventory.clear();\n\t}", "public void dropItem(String secondWord)\n {\n if(secondWord == null){\n System.out.println(\"Drop what?\");\n }\n else{\n if(!inventory.isEmpty()){\n boolean found = false;\n for(int i = 0; i < inventory.size() && !found; i++){\n Item itemToDrop = inventory.get(i);\n if(itemToDrop.getId().equals(secondWord)){\n if(itemToDrop.getId().equals(\"wheelchair\")){\n maxWeight = 5;\n for(Item patient : inventory){\n if(patient.getId().equals(\"patient\")){\n patient.changePickUpItem(false);\n }\n }\n }\n if(itemToDrop.getId().equals(\"patient\")){\n itemToDrop.changePickUpItem(false);\n } \n currentRoom.addItem(itemToDrop);\n inventoryWeight -= itemToDrop.getItemWeight();\n inventory.remove(itemToDrop);\n found = true;\n System.out.println(\"You have droped the item: \" + itemToDrop.getId() + \".\");\n }\n }\n }\n else{\n System.out.println(\"Your inventory is empty.\");\n }\n }\n }", "public void dropItem(Item seekItem)\n {\n //get each item from the items's array list.\n for (Item item : items){\n if(item.getName().equals(seekItem.getName())){\n currentRoom.getInventory().getItems().add(item);\n removePlayerItem(item);\n System.out.println(\"You have placed the \"+ item.getName() +\" in the \" + currentRoom.getName() + \".\");\n }\n }\n }", "private void useInventoryByAI() {\n\t\tChampion AI = currentTask.getCurrentChamp();\n\t\tArrayList<Collectible> inventory = ((Wizard)AI).getInventory();\n\t\tif(inventory.size()>0){\n\t\t\tint randomPotion = (int)(Math.random()*inventory.size());\n\t\t\tcurrentTask.usePotion((Potion)inventory.get(randomPotion));\n\t\t}\n\n\t\t\n\t}", "protected void ignoreDuplicatedAddRemoveItemRequests()\n \t{\n \t\tif (this.getItems() != null)\n \t\t{\n \t\t\tfinal List<T> removeChildren = new ArrayList<T>();\n \t\t\n \t\t\t/* on the second loop, remove any items that are marked for both add and remove is separate items */\n \t\t\tfor (int i = 0; i < this.getItems().size(); ++i)\n \t\t\t{\n \t\t\t\tfinal T child1 = this.getItems().get(i);\n \t\t\t\t\n \t\t\t\t/* at this point we know that either add1 or remove1 will be true, but not both */\n \t\t\t\tfinal boolean add1 = child1.getAddItem();\n \t\t\t\tfinal boolean remove1 = child1.getRemoveItem();\n \t\t\t\t\n \t\t\t\t/* Loop a second time, looking for duplicates */\n \t\t\t\tfor (int j = i + 1; j < this.getItems().size(); ++j)\n \t\t\t\t{\n \t\t\t\t\tfinal T child2 = this.getItems().get(j);\n \t\t\t\t\t\n \t\t\t\t\tif (child1.getId().equals(child2.getId()))\n \t\t\t\t\t{\n \t\t\t\t\t\tfinal boolean add2 = child2.getAddItem();\n \t\t\t\t\t\tfinal boolean remove2 = child2.getRemoveItem();\n \t\t\t\t\t\t\n \t\t\t\t\t\t/* check for double add, double remove, add and remove, remove and add */\n \t\t\t\t\t\tif ((add1 && add2) || (remove1 && remove2) || (add1 && remove2) || (remove1 && add2))\t\t\t\t\t\t\n \t\t\t\t\t\t\tif (!removeChildren.contains(child1))\n \t\t\t\t\t\t\t\tremoveChildren.add(child1);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n\t\t\t\n\t\t\tfor (final T removeChild : removeChildren)\n\t\t\t\tthis.getItems().remove(removeChild);\n \t\t}\n \t}", "public void softAddItem(ItemStack item, Player player){\n\t\tHashMap<Integer,ItemStack> excess = player.getInventory().addItem(item);\n\t\tfor( Map.Entry<Integer, ItemStack> me : excess.entrySet() ){\n\t\t\tplayer.getWorld().dropItem(player.getLocation(), me.getValue() );\n\t\t}\n\t}", "private void generateItemEntities(){\n\t\tfinal int NUM_POTIONS = 6;\n\t\tfinal int NUM_IRON_ARMOUR = 1;\n\t\tfinal int NUM_CHESTS = 2;\n\t\tfinal String ITEM_BOX_STYLE = \"tundra\";\n\t\t\n\n\t\tfor (int i = 0; i < NUM_POTIONS; i++) {\n\t\t\tTile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n\t\t\t\t\tItem.randomItemPositionGenerator(DEFAULT_HEIGHT));\n\t\t\tif (!tile.hasParent()) {\n\t\t\t\tHealthPotion potion = new HealthPotion(tile, false,(PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE);\n\t\t\t\tentities.add(potion);\n\t\t\t\tthis.allTundraDialogues.add(potion.getDisplay());\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < NUM_IRON_ARMOUR; i++) {\n\t\t\tTile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n\t\t\t\t\tItem.randomItemPositionGenerator(DEFAULT_HEIGHT));\n\t\t\tif (!tile.hasParent()) {\n\t\t\t\tIronArmour ironArmour = new IronArmour(tile, false,\n\t\t\t\t\t\t(PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE,200);\n\t\t\t\tentities.add(ironArmour);\n\t\t\t\tthis.allTundraDialogues.add(ironArmour.getDisplay());\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < NUM_CHESTS; i++) {\n\t\t\tTile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n\t\t\t\t\tItem.randomItemPositionGenerator(DEFAULT_HEIGHT));\n\t\t\tif (!tile.hasParent()) {\n\t\t\t\tTreasure chest = new Treasure(tile, false,(PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE);\n\t\t\t\tentities.add(chest);\n\t\t\t\tthis.allTundraDialogues.add(chest.getDisplay());\n\t\t\t} else {\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tTile cooldownring = getTile(18,17);\n\t\tCooldownRing cdring = new CooldownRing(cooldownring, false,\n\t\t\t\t(PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,0.5f);\n\t\tentities.add(cdring);\n\t\tthis.allTundraDialogues.add(cdring.getDisplay());\n\n\t\tTile attackAmuletTile = getTile(-19,14);\n\t\tAmulet attackAmulet = new Amulet(attackAmuletTile, false,\n\t\t\t\t(PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,10);\n\t\tentities.add(attackAmulet);\n\t\tthis.allTundraDialogues.add(attackAmulet.getDisplay());\n\n\t}", "public void withdrawAll() {\r\n for (int i = 0; i < container.capacity(); i++) {\r\n Item item = container.get(i);\r\n if (item == null) {\r\n continue;\r\n }\r\n int amount = owner.getInventory().getMaximumAdd(item);\r\n if (item.getCount() > amount) {\r\n item = new Item(item.getId(), amount);\r\n container.remove(item, false);\r\n owner.getInventory().add(item, false);\r\n } else {\r\n container.replace(null, i, false);\r\n owner.getInventory().add(item, false);\r\n }\r\n }\r\n container.update();\r\n owner.getInventory().update();\r\n }", "@Override\n\tpublic void addRecipes() {\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_BROWN), \"coralBrown\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_RED), \"coralRed\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_YELLOW), \"coralYellow\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.LIGHT_BLUE), \"coralLightBlue\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.MAGENTA), \"coralMagenta\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.ORANGE), \"coralOrange\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.PINK), \"coralPink\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.PURPLE), \"coralPurple\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.GREY), \"coralGray\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Items.dye, 1, Dye.LIGHT_GREY), \"coralLightGray\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_WHITE), \"coralWhite\", false);\n\t\tRecipeHelper.addCrushRecipe(new ItemStack(Core.materials, 1, MaterialsMeta.DYE_GREEN), \"plantKelp\", true);\n\t\t\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_BLUE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_BRAIN), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_CANDYCANE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_CUCUMBER), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_ORANGE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_PINK), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_PURPLE), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_RED), new ItemStack(coral, 1, CoralMeta.CORAL_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_GREY), new ItemStack(coral, 1, CoralMeta.CORAL_LIGHT_GREY), 5);\n\t\tRecipeHelper.addBleachRecipe(new ItemStack(coral, 1, CoralMeta.CORAL_LIGHT_GREY), new ItemStack(coral, 1, CoralMeta.CORAL_WHITE), 5);\n\t\t\n\t\t//Kelp Wrap Recipe\n\t\tRecipeHelper.add9x9Recipe(new ItemStack(Core.food, 1, FoodMeta.KELP_WRAP), \"plantKelp\");\n\t\t\n\t\taddOceanChestLoot();\n\t}", "@Override\r\n\t@SuppressWarnings(\"deprecation\")\r\n\tpublic void raiseEvent(Event e) {\r\n\t\tPlayer p = ((PlayerInteractEvent) e).getPlayer();\r\n\t\tPlayerStats stats = plugin.getStats(p);\r\n\t\tif (stats.subtractmoney(cost)) {\r\n\t\t\tif (!items.isEmpty()) {\r\n\t\t\t\tLinkedList<ItemStack> givenItems = new LinkedList<ItemStack>();\r\n\t\t\t\tfor (ItemStack item : items.getItemStacks()) {\r\n\t\t\t\t\tgivenItems.add(item);\r\n\t\t\t\t\tHashMap<Integer, ItemStack> failed = p.getInventory().addItem(item);\r\n\r\n\t\t\t\t\tif (failed != null && failed.size() > 0) {\r\n\t\t\t\t\t\t// the inventory may be full\r\n\t\t\t\t\t\tTribu.messagePlayer(p, (plugin.getLocale(\"Message.UnableToGiveYouThatItem\")),ChatColor.RED);\r\n\t\t\t\t\t\tstats.addMoney(cost);\r\n\t\t\t\t\t\tfor (ItemStack i : givenItems)\r\n\t\t\t\t\t\t\tp.getInventory().remove(i);\r\n\t\t\t\t\t\tgivenItems = null;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tp.updateInventory();\r\n\t\t\t\t// Alright\r\n\t\t\t\tTribu.messagePlayer(p,String.format(plugin.getLocale(\"Message.PurchaseSuccessfulMoney\"), String.valueOf(stats.getMoney())),ChatColor.GREEN);\r\n\t\t\t} else {\r\n\t\t\t\tTribu.messagePlayer(p,plugin.getLocale(\"Message.UnknownItem\"),ChatColor.RED);\r\n\t\t\t\tstats.addMoney(cost);\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tTribu.messagePlayer(p,plugin.getLocale(\"Message.YouDontHaveEnoughMoney\"),ChatColor.RED);\r\n\t\t}\r\n\r\n\t}", "public void createItem()\n {\n \n necklace_red = new Item (\"Red Necklace\",\"This is a strange red necklace\");\n poolroom.addItem(necklace_red);\n \n // items in dancing room // \n gramophone = new Item (\"Gramophone\",\"This is a nice gramophone but without disk\");\n candelar = new Item(\"Candelar\",\"This candelar gives light and is really beautiful\");\n dancingroom.addItem(gramophone);\n dancingroom.addItem(candelar);\n \n //items in hall //\n potion2HP = new Potion(\"Potion 2 HP\",\"This potion gives 2 HP to the player\",2);\n hall.addItem(potion2HP);\n \n //items in corridor //\n halberd = new Weapon(\"Halberd\",\"This the statut halberd. It was not a really good idea to take it\",4,60);\n corridor.addItem(halberd);\n \n // items in bathroom //\n potion6HP = new Potion(\"Potion6HP\",\"This potions gives 6 HP to the player\",6);\n bathroom.addItem(potion6HP);\n \n // items in guestbedroom //\n Exit exit_from_corridor_to_bedroom = new Exit(\"south\",corridor,false, null);\n bedroomkey = new Keys(\"Bedroom key\",\"This key opens the master bedroom door\",exit_from_corridor_to_bedroom);\n guestbedroom.addItem(bedroomkey);\n \n // items in kitchen // \n set_of_forks_and_knives = new Weapon(\"Set of forks and knives\",\"This weapon is a set of silver forks and silver knives\",2,40);\n kitchen.addItem(set_of_forks_and_knives);\n \n // items in bedroom //\n Item disk = new Item(\"Disk\",\"This disk can be used with the gramophone\");\n bedroom.addItem(disk);\n \n Potion potion3HP = new Potion (\"Potion3HP\",\"This potions gives 3 HP to the player\",3);\n bedroom.addItem(potion3HP);\n \n Item money = new Item(\"Money\",\"You find 60 pounds\");\n bedroom.addItem(money);\n \n // items in the library //\n Item book = new Item(\"Book\",\"The title book is 'The best human friend : the cat'\");\n library.addItem(book);\n \n // items in laboratory //\n Exit exit_from_corridor_to_attic = new Exit(\"up\",corridor,false, null);\n Keys attickey = new Keys(\"Attic key\",\"This key is a shaped bone from a squeletor\", exit_from_corridor_to_attic); \n laboratory.addItem(attickey);\n \n Item construction_drawing = new Item(\"Construction drawing\",\"You find construction drawings. Mr Taylor planed to dig really deeply to the east of the gardener hut\");\n laboratory.addItem(construction_drawing);\n \n //items in garden //\n Weapon fork = new Weapon(\"Fork\",\"This fork is green and brown\",3,50);\n garden.addItem(fork);\n \n Potion apple = new Potion(\"Apple\",\"This apples gives you 2 HP\",2);\n garden.addItem(apple);\n \n // items in gardenerhut //\n \n Item pliers = new Item(\"Pliers\",\"You can cut a chain with this object\");\n gardenerhut.addItem(pliers);\n \n Item ritual_cape = new Item(\"Ritual cape\",\"You find a black ritual cape. It is very strange !\");\n gardenerhut.addItem(ritual_cape);\n \n Item necklace_black_1 = new Item(\"Necklace\",\"You find a very strange necklace ! It is a black rond necklace with the same symbol than in the ritual cape\");\n gardenerhut.addItem(necklace_black_1);\n \n //items in anteroom //\n \n Potion potion4HP = new Potion(\"Potion4HP\",\"This potion gives 4 HP to the player\",4);\n anteroom.addItem(potion4HP);\n \n Weapon sword = new Weapon(\"Sword\",\"A really sharp sword\",6,70);\n anteroom.addItem(sword);\n // items in ritual room //\n \n Item red_ritual_cape = new Item(\"Red ritual cape\", \"This is a ritual cape such as in the gardener hut but this one is red. There are some blond curly hairs\");\n ritualroom.addItem(red_ritual_cape);\n \n Item black_ritual_cape_1 = new Item(\"Black ritual cape\",\"This is a black ritual cape\");\n ritualroom.addItem(black_ritual_cape_1);\n \n Item black_ritual_cape_2 = new Item (\"Black ritual cape\",\"Another black ritual cape\");\n ritualroom.addItem(black_ritual_cape_2);\n \n }", "private Item mergeItem(Item newItem, List<Item> items) throws ItemException{\r\n \t\tfor (Item item2 : items) {\r\n \t\t\tif (!item2.isBought() && item2.getName().equals(newItem.getName())) {\r\n\t\t\t\t// sum price\r\n\t\t\t\titem2.setPrice(newItem.getPrice().add(item2.getPrice()));\r\n \t\t\t\tif (newItem.getUnit() == null && item2.getUnit() == null) {\r\n \t\t\t\t\t// Both have no unit --> item has now 2 pieces.\r\n \t\t\t\t\titem2.setQuantity(BigDecimal.valueOf(2), ItemUnit.PIECE);\r\n \t\t\t\t\treturn item2;\r\n \t\t\t\t} else if (newItem.getUnit() == null && item2.getUnit() == ItemUnit.PIECE) {\r\n \t\t\t\t\t// new Item has no unit, existing item has PIECE as unit. add one piece to the existing item.\r\n \t\t\t\t\titem2.setQuantity(item2.getQuantity().add(BigDecimal.ONE), ItemUnit.PIECE);\r\n \t\t\t\t\treturn item2;\r\n \t\t\t\t} else if (newItem.getUnit() != null && newItem.getUnit() == item2.getUnit()) {\r\n \t\t\t\t\t// Both have same unit --> add them together\r\n \t\t\t\t\tBigDecimal newQuantity = newItem.getQuantity().add(item2.getQuantity());\r\n \t\t\t\t\titem2.setQuantity(newQuantity, item2.getUnit());\r\n \t\t\t\t\treturn item2; // we want to save only one item.\r\n \t\t\t\t} else if (ItemUnit.MASSES.contains(newItem.getUnit()) && ItemUnit.MASSES.contains(item2.getUnit())) {\r\n \t\t\t\t\t// Both units are masses. Convert it first to grams and then add them.\r\n \t\t\t\t\tBigDecimal mass1 = newItem.getUnit()==ItemUnit.GRAM ? newItem.getQuantity():newItem.getQuantity().multiply(THOUSAND);\r\n \t\t\t\t\tBigDecimal mass2 = item2.getUnit()==ItemUnit.GRAM ? item2.getQuantity():item2.getQuantity().multiply(THOUSAND);\r\n \t\t\t\t\tBigDecimal finalMass = mass1.add(mass2);\r\n \t\t\t\t\tItemUnit unit = ItemUnit.GRAM;\r\n \t\t\t\t\tif (finalMass.compareTo(THOUSAND) > 0){\r\n \t\t\t\t\t\tfinalMass = finalMass.divide(THOUSAND);\r\n \t\t\t\t\t\tunit = ItemUnit.KILO_GRAM;\r\n \t\t\t\t\t}\r\n \t\t\t\t\titem2.setQuantity(finalMass, unit);\r\n \t\t\t\t\treturn item2;\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthrow new ItemException();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn newItem;\r\n \t}", "public static void giveStuff(GamePlayer player) {\r\n\t\tItemStack sword = new ItemStack(Material.WOOD_SWORD);\r\n\t\tItemStack bow = new ItemStack(Material.BOW);\r\n\t\tItemStack arrow = new ItemStack(Material.ARROW);\r\n\t\tItemStack compass = new ItemStack(Material.COMPASS);\r\n\t\tItemMeta compassMeta = sword.getItemMeta();\r\n\t\tItemMeta swordMeta = sword.getItemMeta();\r\n\t\tItemMeta bowMeta = sword.getItemMeta();\r\n\t\t\r\n\t\tplayer.getPlayer().getInventory().clear();\r\n\t\tswordMeta.spigot().setUnbreakable(true);\r\n\t\tsword.setItemMeta(swordMeta);\r\n\t\tsword.setAmount(1);\r\n\t\t\r\n\t\tbowMeta.spigot().setUnbreakable(true);\r\n\t\tbowMeta.setDisplayName(\"§aSniper§r §7(One Shot Kill)\");\r\n\t\tbow.setItemMeta(bowMeta);\r\n\t\tbow.addUnsafeEnchantment(Enchantment.ARROW_DAMAGE, 10);\r\n\t\tbow.setAmount(1);\r\n\t\t\r\n\t\tarrow.setAmount(1);\r\n\t\t\r\n\t\tcompassMeta.setDisplayName(\"§aTarget Tracker\");\r\n\t\tcompass.setItemMeta(compassMeta);\r\n\t\tcompass.setAmount(1);\r\n\t\t\r\n player.getPlayer().getInventory().addItem(sword);\r\n player.getPlayer().getInventory().addItem(bow);\r\n player.getPlayer().getInventory().addItem(arrow);\r\n player.getPlayer().getInventory().addItem(compass);\r\n\t}", "public void popItems() {\n\t\t\n\t\tItemList.add(HPup);\n\t\tItemList.add(SHPup);\n\t\tItemList.add(DMGup);\n\t\tItemList.add(SDMGup);\n\t\tItemList.add(EVup);\n\t\tItemList.add(SEVup);\n\t\t\n\t\trandomDrops.add(HPup);\n\t\trandomDrops.add(SHPup);\n\t\trandomDrops.add(DMGup);\n\t\trandomDrops.add(SDMGup);\n\t\trandomDrops.add(EVup);\n\t\trandomDrops.add(SEVup);\n\t\t\n\t\tcombatDrops.add(SHPup);\n\t\tcombatDrops.add(SDMGup);\n\t\tcombatDrops.add(SEVup);\n\t}", "void dropItem(Command command) {\n HashMap newInventory = inventory.getInventory();\n Iterator iterator = newInventory.entrySet().iterator();\n String seeItem;\n// int indexItem = -1;\n String nameOfItem = \"\";\n String dropFromInventory = \"debug\";\n\n while (iterator.hasNext()) {\n HashMap.Entry liste = (HashMap.Entry) iterator.next();\n String itemName = (String) liste.getKey();\n if (itemName.equalsIgnoreCase(command.getSecondWord())) {\n dropFromInventory = itemName;\n nameOfItem = itemName;\n break;\n }\n }\n if (!nameOfItem.equals(\"\")) {\n itemLocation.addItem(currentRoom, new PickableItem(nameOfItem, inventory.getItemWeight(nameOfItem), inventory.getUseable(nameOfItem)));\n inventory.removeItemInventory(nameOfItem);\n System.out.println(\"You have dropped: \" + nameOfItem);\n\n } else {\n System.out.println(\"Can't drop item that isn't in inventory \" + command.getSecondWord());\n }\n }", "public static void doRecycleRecipes()\n {\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore, 2, 0), 30.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore, 2, 0), 30.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.golden_horse_armor, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.gold_ore, 2, 0), 30.0F);\n // extra Gold recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.clock), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, 1), new ItemStack(Blocks.gold_ore), 15.0F);\n //\n // recycle your Leather\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.leather_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.leather_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.leather_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.leather_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n //\n // recycle your Wood\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.bow, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n // extra Wood recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.boat), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.bed), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.wooden_door), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.fishing_rod, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 3.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.bookshelf), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.chest), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.trapped_chest), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.hay_block), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.crafting_table), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), 3.0F);\n //\n // recycle your Stone\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.stone_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.stone), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.stone_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.stone), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.stone_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.stone), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.stone_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.stone), 5.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.stone_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.stone), 5.0F);\n // extra Stone recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.furnace), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.stone, 2, 0), 10.0F);\n //\n // recycle your Iron\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_horse_armor, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n // extra Iron recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.chainmail_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.chainmail_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.chainmail_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.chainmail_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.bucket), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.cauldron), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.compass), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.iron_door), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.flint_and_steel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.minecart), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.hopper_minecart), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.shears, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.anvil, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 4, 0), new ItemStack(Items.coal, 4, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore, 4, 0), 40.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Blocks.hopper), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(Blocks.iron_ore), 10.0F);\n //\n // recycle your Diamond\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore, 2, 0), 40.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore, 2, 0), 40.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(Items.diamond_horse_armor, 1, WILDCARD_VALUE), new ItemStack(Blocks.coal_ore, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(Blocks.diamond_ore, 2, 0), 20.0F);\n //\n\t\tif(Loader.isModLoaded(\"simpleores\") && Settings.enableSimpleOres){\n // recycle your Copper\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.copper_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.copper_ore, 2, 0), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n // extra Copper recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_bucket), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n// FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.copper_door_block), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.copper_ore), 10.0F);\n //\n // recycle your Tin\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.tin_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.tin_ore, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n // extra Tin recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.tin_shears, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.tin_ore), 10.0F);\n //\n // recycle your Mythril\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore, 2, 0), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore, 2, 0), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_bow, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n // extra Mythril recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_rod), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore), 15.0F);\n// FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.mythril_furnace), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.mythril_ore, 2, 0), 15.0F);\n //\n // recycle your Adamantium\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore, 2, 0), 30.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore, 2, 0), 30.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n // extra Adamantium recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.adamantium_shears, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soBase.adamantium_ore), 15.0F);\n //\n // recycle your Onyx\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore, 2, 0), 40.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore, 2, 0), 40.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_bow, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n // extra Onyx recycling\n// FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_door_block), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_rod), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_shears, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore), 20.0F);\n// FusionFurnaceRecipes.addSmelting(new ItemStack(soBase.onyx_furnace), new ItemStack(Blocks.netherrack, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soBase.onyx_ore, 2, 0), 40.0F);\n //\n // recycle your Bronze\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.coal, 2, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.bronze_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.coal, 1, WILDCARD_VALUE), new ItemStack(soAlloy.large_bronze_chunk), 10.0F);\n //\n // recycle your Thyrium\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk, 2, 0), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk, 2, 0), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_bow, 1, WILDCARD_VALUE), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n // extra Thyrium recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.thyrium_rod), new ItemStack(Blocks.gravel), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_thyrium_chunk), 15.0F);\n //\n // recycle your Sinisite\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_helmet, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_chestplate, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_leggings, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack, 2, 0), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk, 2, 0), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_boots, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_sword, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_shovel, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_pickaxe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_axe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_hoe, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_bow, 1, WILDCARD_VALUE), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n // extra Sinisite recycling\n FusionFurnaceRecipes.addSmelting(new ItemStack(soAlloy.sinisite_rod), new ItemStack(Blocks.netherrack), new ItemStack(Items.lava_bucket), new ItemStack(soAlloy.large_sinisite_chunk), 20.0F);\n }}", "public void removeItem(Item iToRemove, int amount) {\n for (Item i : inventory) {\n if (iToRemove.getClass().equals(i.getClass())) {\n int tempQuantity = i.getQuantity() - amount;\n if (tempQuantity > 0) {\n i.setQuantity(tempQuantity);\n } else {\n inventory.remove(i);\n }\n }\n }\n }", "private static void addFakeItemDataToInWorldBlocksAndCleanUpFakeData() {\n\n Map<String, Materials> MATERIALS_MAP = null;\n\n try {\n Field f = Materials.class.getDeclaredField(\"MATERIALS_MAP\");\n f.setAccessible(true);\n MATERIALS_MAP = (Map<String, Materials>) f.get(null);\n } catch (NoSuchFieldException | IllegalAccessException | ClassCastException e) {\n e.printStackTrace();\n }\n\n if (MATERIALS_MAP == null)\n throw new NullPointerException(\"MATERIALS_MAP null!\");\n\n Materials oreMat = new Materials(-1, null, 0, 0, 0, false, \"bwores\", \"bwores\", null, true, null);\n Materials smallOreMat = new Materials(-1, null, 0, 0, 0, false, \"bwsmallores\", \"bwsmallores\", null, true, null);\n Materials blockMat = new Materials(-1, null, 0, 0, 0, false, \"bwblocks\", \"bwblocks\", null, true, null);\n\n for (int i = 0; i < 16; i++) {\n GT_OreDictUnificator.addAssociation(ore, oreMat, new ItemStack(BWOres, 1, i), true);\n GT_OreDictUnificator.addAssociation(oreSmall, smallOreMat, new ItemStack(BWSmallOres, 1, i), true);\n GT_OreDictUnificator.addAssociation(block, blockMat, new ItemStack(BWBlocks, 1, i), true);\n }\n\n MATERIALS_MAP.remove(\"bwores\");\n MATERIALS_MAP.remove(\"bwsmallores\");\n MATERIALS_MAP.remove(\"bwblocks\");\n }", "public static void refillChest(Location loc, HashMap<ItemStack, Integer> itemsWithChance, Integer maxItems){\n\t\tif(isChest(loc)){\n\t\t\tArrayList<ItemStack> items = new ArrayList<ItemStack>();\n\t\t\tfor(int i = 0; items.size() <= 1; i++){\n\t\t\t\tfor(ItemStack item : itemsWithChance.keySet()){\n\t\t\t\t\tif(isSuccessfull(itemsWithChance.get(item))){\n\t\t\t\t\t\titems.add(item);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(i >= 100){\n\t\t\t\t\tBukkit.getLogger().log(Level.WARNING, \"[ChestRefillAPI]: No items were successfull so the chest refilled will be empty.\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(; items.size() > maxItems;){\n\t\t\t\titems.remove(new Random().nextInt(items.size()));\n\t\t\t}\n\t\t\tChest chest = (Chest) loc.getBlock().getState();\n\t\t\tchest.getBlockInventory().clear();\n\t\t\tfor(ItemStack item : items){\n\t\t\t\tfor(int i = 0; i <= 100; i++){\n\t\t\t\t\tint slot = new Random().nextInt(chest.getBlockInventory().getSize());\n\t\t\t\t\tif(chest.getBlockInventory().getItem(slot) == null){\n\t\t\t\t\t\tchest.getBlockInventory().setItem(slot, item);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected void removeItem(Item item, boolean moving) {\n/* 2393 */ if (this.vitems != null)\n/* */ {\n/* 2395 */ if (!this.vitems.isEmpty()) {\n/* */ \n/* 2397 */ if (item.getTemplateId() == 726)\n/* 2398 */ Zones.removeDuelRing(item); \n/* 2399 */ Item pileItem = this.vitems.getPileItem(item.getFloorLevel());\n/* 2400 */ if (pileItem != null && item.getWurmId() == pileItem.getWurmId()) {\n/* */ \n/* 2402 */ this.vitems.removePileItem(item.getFloorLevel());\n/* 2403 */ if (this.vitems.isEmpty())\n/* */ {\n/* */ \n/* 2406 */ this.vitems.destroy(this);\n/* 2407 */ this.vitems = null;\n/* */ }\n/* */ \n/* 2410 */ } else if (this.vitems.removeItem(item)) {\n/* */ \n/* */ \n/* 2413 */ this.vitems.destroy(this);\n/* */ \n/* 2415 */ this.vitems = null;\n/* 2416 */ if (pileItem != null)\n/* */ {\n/* 2418 */ destroyPileItem(pileItem.getFloorLevel());\n/* */ }\n/* */ }\n/* 2421 */ else if (pileItem != null && this.vitems.checkIfRemovePileItem(pileItem.getFloorLevel())) {\n/* */ \n/* 2423 */ if (!moving) {\n/* 2424 */ destroyPileItem(pileItem.getFloorLevel());\n/* */ }\n/* 2426 */ } else if (!item.isDecoration() && pileItem != null) {\n/* */ \n/* 2428 */ checkIfRenamePileItem(pileItem);\n/* */ } \n/* 2430 */ if (item.isDomainItem())\n/* 2431 */ Zones.removeAltar(item, moving); \n/* 2432 */ if (item.getTemplateId() == 1175 || item.getTemplateId() == 1239)\n/* 2433 */ Zones.removeHive(item, moving); \n/* 2434 */ if (item.getTemplateId() == 939 || item.isEnchantedTurret())\n/* 2435 */ Zones.removeTurret(item, moving); \n/* 2436 */ if (item.isEpicTargetItem())\n/* 2437 */ EpicTargetItems.removeRitualTargetItem(item); \n/* 2438 */ if (item.isKingdomMarker())\n/* */ {\n/* 2440 */ if (item.getTemplateId() != 328)\n/* 2441 */ Kingdoms.destroyTower(item); \n/* */ }\n/* 2443 */ if (item.getTemplateId() == 521) {\n/* */ \n/* 2445 */ this.zone.creatureSpawn = null;\n/* 2446 */ Zone.spawnPoints--;\n/* */ } \n/* 2448 */ if (this.village != null && item.getTemplateId() == 757)\n/* */ {\n/* 2450 */ this.village.removeBarrel(item);\n/* */ }\n/* */ }\n/* */ else {\n/* */ \n/* 2455 */ Item pileItem = this.vitems.getPileItem(item.getFloorLevel());\n/* */ \n/* 2457 */ if (pileItem != null && item.getWurmId() == pileItem.getWurmId()) {\n/* */ \n/* 2459 */ this.vitems.removePileItem(item.getFloorLevel());\n/* */ }\n/* 2461 */ else if (pileItem != null && this.vitems.checkIfRemovePileItem(item.getFloorLevel())) {\n/* */ \n/* 2463 */ destroyPileItem(item.getFloorLevel());\n/* */ } \n/* */ } \n/* */ }\n/* 2467 */ if (item.isFence()) {\n/* */ \n/* 2469 */ int offz = 0;\n/* */ \n/* */ try {\n/* 2472 */ offz = (int)((item.getPosZ() - Zones.calculateHeight(item.getPosX(), item.getPosY(), item\n/* 2473 */ .isOnSurface())) / 10.0F);\n/* */ }\n/* 2475 */ catch (NoSuchZoneException nsz) {\n/* */ \n/* 2477 */ logger.log(Level.WARNING, \"Dropping fence item outside zones.\");\n/* */ } \n/* 2479 */ float rot = Creature.normalizeAngle(item.getRotation());\n/* 2480 */ if (rot >= 45.0F && rot < 135.0F) {\n/* */ \n/* 2482 */ VolaTile next = Zones.getOrCreateTile(this.tilex + 1, this.tiley, (item\n/* 2483 */ .isOnSurface() || this.isTransition));\n/* 2484 */ next.removeFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex + 1, this.tiley, offz, item, Tiles.TileBorderDirection.DIR_DOWN, next\n/* 2485 */ .getZone().getId(), Math.max(0, next.getLayer())));\n/* */ }\n/* 2487 */ else if (rot >= 135.0F && rot < 225.0F) {\n/* */ \n/* 2489 */ VolaTile next = Zones.getOrCreateTile(this.tilex, this.tiley + 1, (item\n/* 2490 */ .isOnSurface() || this.isTransition));\n/* 2491 */ next.removeFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex, this.tiley + 1, offz, item, Tiles.TileBorderDirection.DIR_HORIZ, next\n/* 2492 */ .getZone().getId(), Math.max(0, next.getLayer())));\n/* */ }\n/* 2494 */ else if (rot >= 225.0F && rot < 315.0F) {\n/* */ \n/* 2496 */ removeFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex, this.tiley, offz, item, Tiles.TileBorderDirection.DIR_DOWN, \n/* 2497 */ getZone().getId(), Math.max(0, getLayer())));\n/* */ }\n/* */ else {\n/* */ \n/* 2501 */ removeFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex, this.tiley, offz, item, Tiles.TileBorderDirection.DIR_HORIZ, \n/* 2502 */ getZone().getId(), Math.max(0, getLayer())));\n/* */ } \n/* */ } \n/* */ \n/* 2506 */ sendRemoveItem(item, moving);\n/* 2507 */ if (!moving) {\n/* 2508 */ item.setZoneId(-10, this.surfaced);\n/* */ }\n/* */ }", "public void clear() {\n for (int i = 0; i < if_you_items.length; i++) {\n if_you_items[i].setEnabled(true);\n }\n for (int i = 0; i < then_we_items.length; i++) {\n then_we_items[i].setEnabled(true);\n }\n non_promised_ministries.clear();\n non_promised_ministries.addAll(all_ministries);\n // if not at war, can't ask/offer peace\n if (game.getDiplomacy().getDiplomaticState(game.getTurn(), faction) != C.DS_WAR) {\n if_you_items[IfYouWill.PEACE.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.PEACE.ordinal()].setEnabled(false);\n }\n if (faction > C.HOUSE5) { // non-house\n non_promised_ministries.clear();\n if_you_items[IfYouWill.TECH.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.TECH.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n return;\n }\n // search for promised votes and ministries in pending contracts of sender\n for (Contract con : game.getDiplomacy().getSentContracts()) {\n for (Term term : con.getTerms()) {\n if (term.getDonor() == game.getTurn()) {\n switch (term.getType()) {\n case VOTES:\n System.out.println(\"DBG no votes\");\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n break;\n case MINISTRY:\n non_promised_ministries.remove(new Integer(term.getAmount()));\n break;\n case MONEY:\n break;\n case STATE:\n break;\n case TECH:\n break;\n default:\n throw new AssertionError();\n }\n }\n if (term.getDonor() == faction) {\n switch (term.getType()) {\n case VOTES:\n System.out.println(\"DBG no votes\");\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n break;\n case MINISTRY:\n non_promised_ministries.remove(new Integer(term.getAmount()));\n break;\n case MONEY:\n break;\n case STATE:\n break;\n case TECH:\n break;\n default:\n throw new AssertionError();\n }\n }\n }\n }\n // search for promised votes and ministries for sender and for receiver\n // those that are made with sender\n if (game.getRegency().getVotes()[game.getTurn()][Regency.CANDIDATE_IDX] > -1\n || game.getRegency().getVotes()[faction][Regency.CANDIDATE_IDX] == game.getTurn()) {\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n }\n int[] promises = game.getDiplomacy().getMinistryPromises(game.getTurn());\n for (int i = 0; i < promises.length; i++) {\n if (promises[i] > -1) {\n non_promised_ministries.remove(new Integer(promises[i]));\n }\n }\n promises = game.getDiplomacy().getMinistryPromises(faction);\n for (int i = 0; i < promises.length; i++) {\n if (promises[i] == game.getTurn()) {\n non_promised_ministries.remove(new Integer(promises[i]));\n }\n }\n if (non_promised_ministries.isEmpty()) {\n then_we_items[ThenWeWill.MINISTRY.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.MINISTRY.ordinal()].setEnabled(false);\n }\n }", "public void useItem(Human user){\n user.addEnergy(10);\n user.removefromInv(this); \n }", "protected void dropFewItems(boolean par1, int par2) {\r\n\t\tint var3 = this.rand.nextInt(3) + this.rand.nextInt(1 + par2);\r\n\t\t\r\n\t\tfor(int var4 = 0; var4 < var3; ++var4) {\r\n\t\t\tthis.dropItem(SorceryItems.goldfeather, 1);\r\n\t\t}\r\n\t\t\r\n\t\tif(this.isBurning()) {\r\n\t\t\tthis.dropItem(Items.cooked_chicken, 1);\r\n\t\t} else {\r\n\t\t\tthis.dropItem(Items.chicken, 1);\r\n\t\t}\r\n\t}", "public void removeItem(Item item) {\r\n for (Iterator<Item> it = inventoryItems.iterator(); it.hasNext(); ) {\r\n Item i = it.next();\r\n if (i.getId() == item.getId()) {\r\n i.setCount(i.getCount() - 1);\r\n }\r\n if (i.getCount() <= 0) {\r\n it.remove();\r\n }\r\n }\r\n }", "boolean useItem(Command command) {\n HashMap newInventory = inventory.getInventory();\n Iterator iterator = newInventory.entrySet().iterator();\n String seeItem;\n String nameOfItem = \"\";\n String useItem = \"debug\";\n\n while (iterator.hasNext()) {\n HashMap.Entry liste = (HashMap.Entry) iterator.next();\n String itemName = (String) liste.getKey();\n if (itemName.equalsIgnoreCase(command.getSecondWord())) {\n useItem = itemName;\n nameOfItem = itemName;\n break;\n }\n }\n if (!nameOfItem.equals(\"\") && inventory.getUseable(nameOfItem)) {\n\n System.out.println(\"You have dropped: \" + nameOfItem);\n inventory.removeItemInventory(nameOfItem);\n player.setEnergy(player.getEnergy() + 20);\n player.setHealth(player.getHealth() + 5);\n\n return true;\n }\n return false;\n }", "public static Item generate(){\n\n //this method lists a collection of new items. it then uses a random number generator\n //to pick one of the objects, and then returns the object so that the main method\n //can add it to the inventory.\n\n ItemType weapon = ItemType.weapon;\n Item IronSword = new Item(weapon, \"Iron Sword\", 8, 50, 10);\n Item GoldenSword = new Item(weapon, \"Golden Sword\", 10, 75, 15);\n Item AllumSword = new Item(weapon, \"Alluminum Sword\", 6, 35, 8);\n Item BowandQuiver = new Item(weapon, \"Bow & Quiver\", 4, 45, 7);\n Item BattleAxe = new Item(weapon, \"Battle Axe\", 12, 55, 13);\n\n ItemType armor = ItemType.armor;\n Item ChainChest = new Item(armor, \"Chain Mail Chestplate\", 8, 40, 30);\n Item IronChest = new Item(armor, \"Iron Chestplate\", 10, 50, 40);\n Item GoldenChest = new Item(armor, \"Golden Chestplate\", 12, 65, 50);\n Item ChainPants = new Item(armor, \"Chain Mail Pants\", 7, 40, 30);\n Item IronPants = new Item(armor, \"Iron Pants\", 9, 50, 40);\n Item GoldenPants = new Item(armor, \"Golden Pants\", 11, 65, 50);\n Item Helmet = new Item(armor, \"Helmet\", 5, 40, 20);\n\n ItemType other = ItemType.other;\n Item Bandage = new Item(other, \"Bandage\", 1, 2, 0);\n Item Wrench = new Item(other, \"Wrench\", 3, 10, 5);\n Item Bread = new Item(other, \"Bread Loaf\", 2, 4, 0);\n Item Water = new Item(other, \"Water Flask\", 3, 2, 0);\n\n Item Initializer = new Item(other, \"init\", 0, 0, 0);\n\t\tint ItemPick = RandomNum();\n Item chosen = Initializer;\n\n switch (ItemPick){\n case 1:\n chosen = IronSword;\n break;\n case 2:\n chosen = GoldenSword;\n break;\n case 3:\n chosen = AllumSword;\n break;\n case 4:\n chosen = BowandQuiver;\n break;\n case 5:\n chosen = BattleAxe;\n break;\n case 6:\n chosen = ChainChest;\n break;\n case 7:\n chosen = IronChest;\n break;\n case 8:\n chosen = GoldenChest;\n break;\n case 9:\n chosen = ChainPants;\n break;\n\t\t\t case 10:\n chosen = IronPants ;\n break;\n case 11:\n chosen = GoldenPants;\n break;\n case 12:\n chosen = Helmet;\n break;\n case 13:\n chosen = Bandage;\n break;\n case 14:\n chosen = Wrench;\n break;\n case 15:\n chosen = Bread;\n break;\n case 16:\n chosen = Water;\n break;\n }\n\n return chosen;\n }", "public interface IItem extends IAction {\n\n\t/**\n\t * Additional bag option to handle quantity manifest\n\t * @return bagEmpty\n\t */\n\tpublic abstract boolean depleteItem();\n}", "public void removeItem(Item theItem) {\n\t\tinventory.remove(theItem);\t\n\t}", "public static void craft()\r\n\t{\r\n\t\tList<IRecipe> recipeList = CraftingManager.getInstance().getRecipeList();\r\n\t\tIterator<IRecipe> recipe = recipeList.iterator();\r\n\r\n\t\twhile (recipe.hasNext())\r\n\t\t{\r\n\t\t\tItemStack stack = recipe.next().getRecipeOutput();\r\n\r\n\t\t\tif (stack != null && stack.areItemsEqual(stack, new ItemStack(Blocks.STONEBRICK, 1, 0)))\r\n\t\t\t{\r\n\t\t\t\trecipe.remove();\r\n\t\t\t} else if (stack != null && stack.areItemsEqual(stack, new ItemStack(Blocks.END_BRICKS, 1, 0)))\r\n\t\t\t{\r\n\t\t\t\trecipe.remove();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Adds all the 2 by 2 crafting Recipes\r\n\t\t */\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 2), new ItemStack(BBBlocks.moreStones, 4, 1));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 4), new ItemStack(BBBlocks.moreStones, 4, 3));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 6), new ItemStack(BBBlocks.moreStones, 4, 5));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 6), new ItemStack(BBBlocks.moreStones, 4, 9));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 9), new ItemStack(BBBlocks.moreStones, 4, 8));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 10), new ItemStack(BBBlocks.moreStones, 4, 13));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 13), new ItemStack(BBBlocks.moreStones, 4, 12));\r\n\t\tcraft2by2(new ItemStack(Blocks.SANDSTONE, 1, 2), new ItemStack(BBBlocks.moreStones, 4, 14));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 8), new ItemStack(BBBlocks.cotswoldBricks, 4));\r\n\t\tcraft2by2(new ItemStack(Blocks.BRICK_BLOCK, 1), new ItemStack(BBBlocks.agedBricks, 4));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 2), new ItemStack(BBBlocks.moreStones2, 4, 5));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 5), new ItemStack(BBBlocks.moreStones2, 4, 4));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 1), new ItemStack(BBBlocks.moreStones2, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 14), new ItemStack(BBBlocks.moreStones2, 4, 1));\r\n\t\tcraft2by2(new ItemStack(Blocks.RED_SANDSTONE, 1, 2), new ItemStack(BBBlocks.moreStones2, 4, 6));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 6), new ItemStack(BBBlocks.moreStones2, 4, 9));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 9), new ItemStack(BBBlocks.moreStones2, 4, 8));\r\n\t\tcraft2by2(new ItemStack(Blocks.NETHERRACK, 1), new ItemStack(BBBlocks.moreStones2, 4, 11));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 11), new ItemStack(BBBlocks.moreStones2, 4, 10));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE), new ItemStack(BBBlocks.moreStones2, 4, 12));\r\n\t\tcraft2by2(new ItemStack(Blocks.END_STONE), new ItemStack(BBBlocks.moreStones2, 4, 13));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 12), new ItemStack(Blocks.STONEBRICK, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 13), new ItemStack(Blocks.END_BRICKS, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones3, 1, 0), new ItemStack(BBBlocks.moreStones3, 4, 2));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones3, 1, 2), new ItemStack(BBBlocks.moreStones3, 4, 1));\r\n\r\n\r\n\t\t/**\r\n\t\t * Adds all the stair Recipes\r\n\t\t */\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 0), new ItemStack(BBBlocks.cobbleGraniteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 2), new ItemStack(BBBlocks.cobbleDioriteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 4), new ItemStack(BBBlocks.cobbleAndesiteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 7), new ItemStack(BBBlocks.cobbleLimestoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 11), new ItemStack(BBBlocks.cobbleMarbleStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 15), new ItemStack(BBBlocks.cobbleSandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 3), new ItemStack(BBBlocks.cobbleBasaltStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 7), new ItemStack(BBBlocks.cobbleRedsandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 1), new ItemStack(BBBlocks.brickGraniteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 3), new ItemStack(BBBlocks.brickDioriteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 5), new ItemStack(BBBlocks.brickAndesiteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 8), new ItemStack(BBBlocks.brickLimestoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 12), new ItemStack(BBBlocks.brickMarbleStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 0), new ItemStack(BBBlocks.brickSandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 4), new ItemStack(BBBlocks.brickBasaltStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 8), new ItemStack(BBBlocks.brickRedsandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 10), new ItemStack(BBBlocks.brickNetherrackStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.cotswoldBricks, 1), new ItemStack(BBBlocks.brickCotswoldStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.agedBricks, 1), new ItemStack(BBBlocks.brickAgedbrickStair, 4));\r\n\t\tcraftStair(new ItemStack(Blocks.END_BRICKS, 1), new ItemStack(BBBlocks.brickEndstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(Blocks.RED_NETHER_BRICK, 1), new ItemStack(BBBlocks.brickRednetherStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones3, 1, 1), new ItemStack(BBBlocks.brickAcheriteStair, 4));\r\n\r\n\t\t/**\r\n\t\t * Adds all the slab Recipes\r\n\t\t */\r\n\t\tcraftSlab(BBBlocks.cobbleAndesiteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleGraniteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleDioriteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleMarbleSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleLimestoneSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleSandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleBasaltSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleRedsandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickAndesiteSlab);\r\n\t\tcraftSlab(BBBlocks.brickGraniteSlab);\r\n\t\tcraftSlab(BBBlocks.brickDioriteSlab);\r\n\t\tcraftSlab(BBBlocks.brickMarbleSlab);\r\n\t\tcraftSlab(BBBlocks.brickLimestoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickSandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickBasaltSlab);\r\n\t\tcraftSlab(BBBlocks.brickRedsandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickRednetherSlab);\r\n\t\tcraftSlab(BBBlocks.brickEndstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickNetherrackSlab);\r\n\t\tcraftSlab(BBBlocks.brickCotswoldSlab);\r\n\t\tcraftSlab(BBBlocks.brickAgedbrickSlab);\r\n\t\tcraftSlab(BBBlocks.brickAcheriteSlab);\r\n\t\t\r\n\t\t/**\r\n\t\t * Other Crafting Recipes\r\n\t\t */\r\n\t\tGameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BBBlocks.moreStones2, 16, 14), new Object[] { Blocks.CLAY, \"sand\", Blocks.GRAVEL, Items.WATER_BUCKET}));\r\n\t\tNBTTagCompound concreteTag = new NBTTagCompound();\r\n\t\tconcreteTag.setInteger(\"color\", 16777215);\r\n\t\tItemStack concreteStack = new ItemStack(BBBlocks.concreteDyeable, 8, 0);\r\n\t\tconcreteStack.setTagCompound(concreteTag);\r\n\t\tGameRegistry.addRecipe(concreteStack, new Object[] { \"###\", \"#O#\", \"###\", '#', new ItemStack(BBBlocks.moreStones2, 1, 15), 'O', Items.PAPER });\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteDyeable());\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteTiles());\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteDyeable.RecipeDuplicateConcrete());\r\n\t\tGameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BBBlocks.overgrowth, 8),new Object[] { \"treeLeaves\", \"treeLeaves\"}));\r\n\r\n\t\t/**\r\n\t\t * Adds all the smelting Recipes\r\n\t\t */\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 0), new ItemStack(Blocks.STONE, 1, 1));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 2), new ItemStack(Blocks.STONE, 1, 3));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 4), new ItemStack(Blocks.STONE, 1, 5));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 7), new ItemStack(BBBlocks.moreStones, 1, 6));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 11), new ItemStack(BBBlocks.moreStones, 1, 10));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 15), new ItemStack(BBBlocks.moreStones, 1, 14));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 3), new ItemStack(BBBlocks.moreStones2, 1, 2));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 7), new ItemStack(BBBlocks.moreStones2, 1, 6));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 14), new ItemStack(BBBlocks.moreStones2, 1, 15));\r\n\r\n\t}", "@Test\r\n public void testPurChaseBeverageWithNotEnoughInventory() {\r\n coffeeMaker.addRecipe(recipe2); // add mocha which use 20 chocolate while we only have 15 chocolate\r\n assertEquals(75, coffeeMaker.makeCoffee(0, 75)); // not enough recipe\r\n }", "public void rollCommonDrop() {\n\t\tRandom r=new Random();\n\t\t\n\t\tint x=r.nextInt(6);\n\t\tItem i=randomDrops.get(x);\n\t\taddItem(i.getName());\n\t\t\n\t\tevents.appendText(\"You find an \"+i.getName()+\" in your adventures!\\n\");\t// Inform player\n\t}", "@Test\r\n public void testPurChaseBeverageWithNotEnoughInventoryMock() {\r\n when(recipeBook.getRecipes()).thenReturn(recipes);\r\n // recipe2 used 20 chocolate, but the default inventory contains only 15\r\n assertEquals(75, coffeeMaker2.makeCoffee(0, 75));\r\n // for unsuccessful purchase in the CoffeeMaker gerRecipes() is called at least once\r\n verify(recipeBook, atLeastOnce()).getRecipes();\r\n }", "public void doItemEffect(RobotPeer robot){\n\t\t//System.out.println(\"Energy = \" + robot.getEnergy());\n\t\trobot.updateEnergy(-15);\n\t\t//System.out.println(\"Poison item USED\");\n\t\t//System.out.println(\"Energy = \" + robot.getEnergy());\n\t\t\n\t}", "public void handleCrafting() {\n if(input.getStackInSlot(0).getItem() != input.getStackInSlot(1).getItem() && !input.getStackInSlot(0).isEmpty() && !input.getStackInSlot(1).isEmpty()) {\n isRecipeInvalid = true;\n }\n // Handles two compatible items\n else if(input.getStackInSlot(0).getMaxDamage() > 1 && input.getStackInSlot(0).getMaxStackSize() == 1 && input.getStackInSlot(0).getItem() == input.getStackInSlot(1).getItem()) {\n isRecipeInvalid = false;\n ItemStack stack = input.getStackInSlot(0);\n int sum = (stack.getMaxDamage() - stack.getItemDamage()) + (stack.getMaxDamage() - input.getStackInSlot(1).getItemDamage());\n\n sum = sum + (int)(sum * 0.2);\n if(sum > stack.getMaxDamage()) {\n sum = stack.getMaxDamage();\n }\n\n output.setStackInSlot(0, new ItemStack(stack.getItem(), 1, stack.getMaxDamage() - sum));\n }\n // Resets the grid when the two items are incompatible\n if(input.getStackInSlot(0).getItem() != input.getStackInSlot(1).getItem() && !output.getStackInSlot(0).isEmpty()) {\n output.setStackInSlot(0, ItemStack.EMPTY);\n }\n }", "@Override\n public void dropBlockAsItemWithChance(@Nonnull World worldIn, @Nonnull BlockPos pos, @Nonnull IBlockState state, float chance, int fortune)\n {\n }", "private void addItems() {\n int random3 = 0;\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n random3 = (int)(Math.round(Math.random()*9));\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n if (adjacentCity(i, j) && tileMap[i][j].getCity() == null) { //Only have an item if possibly within city borders\n if (random3 == 0) {\n tileMap[i][j].setResource(new Fruit(i,j)); //Rep Fruit\n } else if (random3 == 1) {\n tileMap[i][j].setResource(new Animal(i,j)); //Rep Animal\n } else if (random3 == 2) {\n tileMap[i][j].setResource(new Forest(i,j)); //Rep Trees (forest)\n } else if (random3 == 3) {\n tileMap[i][j].setResource(new Crop(i,j)); //Rep Crop\n }\n }\n } else {\n if (adjacentCity(i, j)) {\n if (random3 < 2) {\n tileMap[i][j].setResource(new Fish(i, j)); //Rep fish\n } else if (random3 == 4) {\n if (Math.random() < 0.5) {\n tileMap[i][j].setResource(new Whale(i, j)); //Rep whale\n }\n }\n }\n }\n }\n }\n }", "@Override\n protected void dropFewItems(boolean hit, int looting) {\n super.dropFewItems(hit, looting);\n if (hit && (this.rand.nextInt(3) == 0 || this.rand.nextInt(1 + looting) > 0)) {\n Item drop = null;\n switch (this.rand.nextInt(5)) {\n case 0:\n drop = Items.gunpowder;\n break;\n case 1:\n drop = Items.sugar;\n break;\n case 2:\n drop = Items.spider_eye;\n break;\n case 3:\n drop = Items.fermented_spider_eye;\n break;\n case 4:\n drop = Items.speckled_melon;\n break;\n }\n if (drop != null) {\n this.dropItem(drop, 1);\n }\n }\n }", "private void dropped(HeroItem item, Unit unit) {\n if (ItemMaster.isBreakable(item)) {\n item.broken(); // remove from game?\n if (item instanceof QuickItem) {\n QuickItem quickItemObj = (QuickItem) item;\n if (quickItemObj.isConcoction()) {\n quickItemObj.activate(Ref.getSelfTargetingRefCopy(unit)); // setForceTarget(true)\n }\n }\n } else {\n unit.getGame().getDroppedItemManager().itemFalls(unit.getCoordinates(), item);\n }\n }", "@Test\n\tpublic void testInventoryNotEnoughSugar() {\n\t\tcoffeeMaker.addRecipe(recipe8);\n\t\tassertEquals(1000, coffeeMaker.makeCoffee(0, 1000));\n\t}", "private static void customItems(ItemDefinition itemDef) {\n\n\t\tswitch (itemDef.id) {\n\n\t\tcase 11864:\n\t\tcase 11865:\n\t\tcase 19639:\n\t\tcase 19641:\n\t\tcase 19643:\n\t\tcase 19645:\n\t\tcase 19647:\n\t\tcase 19649:\n\t\tcase 23073:\n\t\tcase 23075:\n\t\t\titemDef.equipActions[2] = \"Log\";\n\t\t\titemDef.equipActions[1] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 13136:\n\t\t\titemDef.equipActions[2] = \"Elidinis\";\n\t\t\titemDef.equipActions[1] = \"Kalphite Hive\";\n\t\t\tbreak;\n\t\tcase 2550:\n\t\t\titemDef.equipActions[2] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 1712:\n\t\tcase 1710:\n\t\tcase 1708:\n\t\tcase 1706:\n\t\t\titemDef.equipActions[1] = \"Edgeville\";\n\t\t\titemDef.equipActions[2] = \"Karamja\";\n\t\t\titemDef.equipActions[3] = \"Draynor\";\n\t\t\titemDef.equipActions[4] = \"Al-Kharid\";\n\t\t\tbreak;\n\n\t\tcase 22000:\n\t\t\titemDef.name = \"Lava partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 22001:\n\t\t\titemDef.name = \"Infernal partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 2552:\n\t\tcase 2554:\n\t\tcase 2556:\n\t\tcase 2558:\n\t\tcase 2560:\n\t\tcase 2562:\n\t\tcase 2564:\n\t\tcase 2566: // Ring of duelling\n\t\t\titemDef.equipActions[2] = \"Shantay Pass\";\n\t\t\titemDef.equipActions[1] = \"Clan wars\";\n\t\t\tbreak;\n\n\t\tcase 21307:\n\t\t\titemDef.name = \"Pursuit crate\";\n\t\t\tbreak;\n\n\t\tcase 12792:\n\t\t\titemDef.name = \"Graceful recolor kit\";\n\t\t\tbreak;\n\n\t\tcase 12022:\n\t\t\titemDef.name = \"Bandos Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Bandos gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12024:\n\t\t\titemDef.name = \"Armadyl Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Armadyl gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12026:\n\t\t\titemDef.name = \"Saradomin Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Saradomin gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12028:\n\t\t\titemDef.name = \"Zamorak Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Zamorak gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 964:\n\t\t\titemDef.name = \"Pet Petie\";\n\t\t\tbreak;\n\n\t\tcase 20853:\n\t\t\titemDef.name = \"Deep Sea Bait\";\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\t/*\n\t\t * case 17014: itemDef.name = \"Dragon flail\"; itemDef.modelId = 50083;\n\t\t * itemDef.modelZoom = 1440; itemDef.modelRotation2 = 272;\n\t\t * itemDef.modelRotation1 = 352; itemDef.modelOffset1 = 32;\n\t\t * //itemDef.modelOffset2 = 0; itemDef.maleModel = 50083; itemDef.femaleModel =\n\t\t * 50083; itemDef.anInt164 = -1; itemDef.anInt188 = -1; itemDef.aByte205 = -8;\n\t\t * itemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t * itemDef.inventoryOptions = new String[] { \"Wear\", null, null, null, \"Drop\" };\n\t\t * itemDef.description = \"An Ancient Dragon Flail.\"; break;\n\t\t */\n\n\t\tcase 33272:\n\t\t\titemDef.name = \"Justiciar's Longsword\";\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modelId = 65472;\n\t\t\titemDef.modelZoom = 1726;\n\t\t\titemDef.modelRotation1 = 1576;\n\t\t\titemDef.modelRotation2 = 242;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\t// itemDef.anInt204 = 0;\n\t\t\t// itemDef.aByte205 = -12;\n\t\t\t// itemDef.aByte154 = 0;\n\t\t\titemDef.maleModel = 65465;\n\t\t\titemDef.femaleModel = 65465;\n\t\t\titemDef.description = \"An ancient longsword received from the Trial of Flames.\";\n\t\t\tbreak;\n\n\t\tcase 33168:\n\t\t\titemDef.name = \"Justiciar kiteshield\";\n\t\t\titemDef.modelId = 65471;\n\t\t\titemDef.modelZoom = 1600;\n\t\t\titemDef.modelRotation2 = 250;\n\t\t\titemDef.modelRotation1 = 300;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.maleModel = 65473;\n\t\t\titemDef.femaleModel = 65474;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An ancient kiteshield. Part of the Justiciar set.\";\n\t\t\tbreak;\n\n\t\tcase 2996:\n\t\t\titemDef.name = \"PKP Ticket\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"Exchange this for a PK Point.\";\n\t\t\tbreak;\n\t\tcase 13226:\n\t\t\titemDef.name = \"Herb Sack\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"A sack for storing grimy herbs.\";\n\t\t\tbreak;\n\t\tcase 13346:\n\t\t\titemDef.name = \"Raid Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Open for chances to receive Raid items & other awesome rewards.\";\n\t\t\tbreak;\n\t\tcase 8800:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 31624;\n\t\t\t// itemDef.stackAmounts = new int[] { 2, 3, 50, 100, 500000, 1000000, 2500000,\n\t\t\t// 10000000, 100000000, 0 };//amount the model will change at\n\t\t\t// itemDef.stackIDs = new int[] { 8801, 8802, 8803, 8804, 8805, 8806, 8807,\n\t\t\t// 8808, 8809, 0 };//new item id to grab the model from\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 853;\n\t\t\titemDef.modelRotation2 = 1885;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8801:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15344;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8802:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15345;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8803:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15346;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8804:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15347;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8805:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15348;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8806:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15349;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8807:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15350;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8808:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15351;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8809:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15352;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 15098:\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.description = \"A 100-sided dice.\";\n\t\t\titemDef.modelId = 31223;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation2 = 215;\n\t\t\titemDef.modelRotation1 = 94;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modelOffset1 = -18;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Public-roll\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.anInt196 = 15;\n\t\t\titemDef.anInt184 = 25;\n\t\t\tbreak;\n\n\t\tcase 32991:\n\t\t\titemDef.name = \"Divine spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with an divine sigil attached to it.\";\n\t\t\titemDef.modelId = 50001;\n\t\t\titemDef.maleModel = 50002;\n\t\t\titemDef.femaleModel = 50002;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32992:\n\t\t\titemDef.name = \"Rainbow spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with all 4 sigils attached to it.\";\n\t\t\titemDef.modelId = 50004;\n\t\t\titemDef.maleModel = 50005;\n\t\t\titemDef.femaleModel = 50005;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32993:\n\t\t\titemDef.name = \"Divine sigil\";\n\t\t\titemDef.description = \"A sigil in the shape of a divine symbol.\";\n\t\t\titemDef.modelId = 50003;\n\t\t\titemDef.modelZoom = 848;\n\t\t\titemDef.modelRotation1 = 267;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33060:\n\t\t\titemDef.name = \"Barrows Sword\";\n\t\t\titemDef.description = \"A sword glowing with otherworldy energy.\";\n\t\t\titemDef.modelId = 22325;\n\t\t\titemDef.maleModel = 50010;\n\t\t\titemDef.femaleModel = 50010;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32994:\n\t\t\titemDef.name = \"Statius's platebody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42602;\n\t\t\titemDef.maleModel = 35951;\n\t\t\titemDef.femaleModel = 35964;\n\t\t\titemDef.modelZoom = 1312;\n\t\t\titemDef.modelRotation1 = 272;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 39;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32995:\n\t\t\titemDef.name = \"Statius's platelegs\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42590;\n\t\t\titemDef.maleModel = 35947;\n\t\t\titemDef.femaleModel = 35961;\n\t\t\titemDef.modelZoom = 1625;\n\t\t\titemDef.modelRotation1 = 355;\n\t\t\titemDef.modelRotation2 = 2046;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32996:\n\t\t\titemDef.name = \"Statius's full helm\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42596;\n\t\t\titemDef.maleModel = 35943;\n\t\t\titemDef.femaleModel = 35958;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 2039;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32997:\n\t\t\titemDef.name = \"Statius's warhammer\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42577;\n\t\t\titemDef.maleModel = 35968;\n\t\t\titemDef.femaleModel = 35968;\n\t\t\titemDef.modelZoom = 1360;\n\t\t\titemDef.modelRotation1 = 507;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32998:\n\t\t\titemDef.name = \"Vesta's chainbody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42593;\n\t\t\titemDef.maleModel = 35953;\n\t\t\titemDef.femaleModel = 35965;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32999:\n\t\t\titemDef.name = \"Vesta's plateskirt\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42581;\n\t\t\titemDef.maleModel = 35950;\n\t\t\titemDef.femaleModel = 35960;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33000:\n\t\t\titemDef.name = \"Vesta's longsword\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42597;\n\t\t\titemDef.maleModel = 35969;\n\t\t\titemDef.femaleModel = 35969;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 738;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33001:\n\t\t\titemDef.name = \"Vesta's spear\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42599;\n\t\t\titemDef.maleModel = 35973;\n\t\t\titemDef.femaleModel = 35973;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 480;\n\t\t\titemDef.modelRotation2 = 15;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33002:\n\t\t\titemDef.name = \"Morrigan's leather body\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42578;\n\t\t\titemDef.maleModel = 35954;\n\t\t\titemDef.femaleModel = 35963;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33003:\n\t\t\titemDef.name = \"Morrigan's leather chaps\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42603;\n\t\t\titemDef.maleModel = 35948;\n\t\t\titemDef.femaleModel = 35959;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 482;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33004:\n\t\t\titemDef.name = \"Morrigan's coif\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42583;\n\t\t\titemDef.maleModel = 35945;\n\t\t\titemDef.femaleModel = 35956;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 537;\n\t\t\titemDef.modelRotation2 = 5;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33005:\n\t\t\titemDef.name = \"Morrigan's javelin\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42592;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42613;\n\t\t\titemDef.femaleModel = 42613;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 282;\n\t\t\titemDef.modelRotation2 = 2009;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33006:\n\t\t\titemDef.name = \"Morrigan's throwing axe\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42582;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42611;\n\t\t\titemDef.femaleModel = 42611;\n\t\t\titemDef.modelZoom = 976;\n\t\t\titemDef.modelRotation1 = 672;\n\t\t\titemDef.modelRotation2 = 2024;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33007:\n\t\t\titemDef.name = \"Zuriels robe top\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42591;\n\t\t\titemDef.maleModel = 35952;\n\t\t\titemDef.femaleModel = 35966;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 373;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33008:\n\t\t\titemDef.name = \"Zuriels robe bottom\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42588;\n\t\t\titemDef.maleModel = 35949;\n\t\t\titemDef.femaleModel = 35962;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33009:\n\t\t\titemDef.name = \"Zuriels hood\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42604;\n\t\t\titemDef.maleModel = 35944;\n\t\t\titemDef.femaleModel = 35957;\n\t\t\titemDef.modelZoom = 720;\n\t\t\titemDef.modelRotation1 = 28;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33010:\n\t\t\titemDef.name = \"Zuriels staff\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42595;\n\t\t\titemDef.maleModel = 35971;\n\t\t\titemDef.femaleModel = 35971;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 366;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33011:\n\t\t\titemDef.name = \"Craw's bow (u)\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35768;\n\t\t\titemDef.femaleModel = 35768;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33012:\n\t\t\titemDef.name = \"Craw's bow\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35769;\n\t\t\titemDef.femaleModel = 35769;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33013:\n\t\t\titemDef.name = \"Thammaron's sceptre (u)\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35772;\n\t\t\titemDef.femaleModel = 35772;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33014:\n\t\t\titemDef.name = \"Thammaron's sceptre\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35773;\n\t\t\titemDef.femaleModel = 35773;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33015:\n\t\t\titemDef.name = \"Viggora's chainmace (u)\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35770;\n\t\t\titemDef.femaleModel = 35770;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33016:\n\t\t\titemDef.name = \"Viggora's chainmace\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35771;\n\t\t\titemDef.femaleModel = 35771;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33018:\n\t\t\titemDef.name = \"Amulet of avarice\";\n\t\t\titemDef.description = \"A hauntingly beautiful amulet bearing the shape of a skull.\";\n\t\t\titemDef.modelId = 35779;\n\t\t\titemDef.maleModel = 35766;\n\t\t\titemDef.femaleModel = 35766;\n\t\t\titemDef.modelZoom = 420;\n\t\t\titemDef.modelRotation1 = 191;\n\t\t\titemDef.modelRotation2 = 86;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33019:\n\t\t\titemDef.name = \"Completionist cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65270;\n\t\t\titemDef.maleModel = 65297;\n\t\t\titemDef.femaleModel = 65316;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33020:\n\t\t\titemDef.name = \"Completionist cape (t)\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65258;\n\t\t\titemDef.maleModel = 65295;\n\t\t\titemDef.femaleModel = 65328;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33021:\n\t\t\titemDef.name = \"Torva full helm\";\n\t\t\titemDef.description = \"An ancient warrior's full helm.\";\n\t\t\titemDef.modelId = 62714;\n\t\t\titemDef.maleModel = 62738;\n\t\t\titemDef.femaleModel = 62738;\n\t\t\titemDef.modelZoom = 672;\n\t\t\titemDef.modelRotation1 = 85;\n\t\t\titemDef.modelRotation2 = 1867;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33022:\n\t\t\titemDef.name = \"Torva platebody\";\n\t\t\titemDef.description = \"An ancient warrior's platebody.\";\n\t\t\titemDef.modelId = 62699;\n\t\t\titemDef.maleModel = 62746;\n\t\t\titemDef.femaleModel = 62746;\n\t\t\titemDef.modelZoom = 1506;\n\t\t\titemDef.modelRotation1 = 473;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33023:\n\t\t\titemDef.name = \"Torva platelegs\";\n\t\t\titemDef.description = \"An ancient warrior's platelegs.\";\n\t\t\titemDef.modelId = 62701;\n\t\t\titemDef.maleModel = 62740;\n\t\t\titemDef.femaleModel = 62740;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 474;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33024:\n\t\t\titemDef.name = \"Pernix cowl\";\n\t\t\titemDef.description = \"An ancient warrior's cowl.\";\n\t\t\titemDef.modelId = 62693;\n\t\t\titemDef.maleModel = 62739;\n\t\t\titemDef.femaleModel = 62739;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 532;\n\t\t\titemDef.modelRotation2 = 14;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33025:\n\t\t\titemDef.name = \"Pernix body\";\n\t\t\titemDef.description = \"An ancient warrior's leather body.\";\n\t\t\titemDef.modelId = 62709;\n\t\t\titemDef.maleModel = 62744;\n\t\t\titemDef.femaleModel = 62744;\n\t\t\titemDef.modelZoom = 1378;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33026:\n\t\t\titemDef.name = \"Pernix chaps\";\n\t\t\titemDef.description = \"An ancient warrior's chaps.\";\n\t\t\titemDef.modelId = 62695;\n\t\t\titemDef.maleModel = 62741;\n\t\t\titemDef.femaleModel = 62741;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 504;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33027:\n\t\t\titemDef.name = \"Virtus mask\";\n\t\t\titemDef.description = \"An ancient warrior's mask.\";\n\t\t\titemDef.modelId = 62710;\n\t\t\titemDef.maleModel = 62736;\n\t\t\titemDef.femaleModel = 62736;\n\t\t\titemDef.modelZoom = 928;\n\t\t\titemDef.modelRotation1 = 406;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33028:\n\t\t\titemDef.name = \"Virtus robe top\";\n\t\t\titemDef.description = \"An ancient warrior's robe top.\";\n\t\t\titemDef.modelId = 62704;\n\t\t\titemDef.maleModel = 62748;\n\t\t\titemDef.femaleModel = 62748;\n\t\t\titemDef.modelZoom = 1122;\n\t\t\titemDef.modelRotation1 = 488;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33029:\n\t\t\titemDef.name = \"Virtus robe legs\";\n\t\t\titemDef.description = \"An ancient warrior's robe legs.\";\n\t\t\titemDef.modelId = 62700;\n\t\t\titemDef.maleModel = 62742;\n\t\t\titemDef.femaleModel = 62742;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33030:\n\t\t\titemDef.name = \"Zaryte bow\";\n\t\t\titemDef.description = \"An ancient warrior's bow.\";\n\t\t\titemDef.modelId = 62692;\n\t\t\titemDef.maleModel = 62750;\n\t\t\titemDef.femaleModel = 62750;\n\t\t\titemDef.modelZoom = 1703;\n\t\t\titemDef.modelRotation1 = 221;\n\t\t\titemDef.modelRotation2 = 404;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33083:\n\t\t\titemDef.name = \"Tokhaar-kal\";\n\t\t\titemDef.description = \"\tA cape made of ancient, enchanted obsidian.\";\n\t\t\titemDef.modelId = 52073;\n\t\t\titemDef.maleModel = 52072;\n\t\t\titemDef.femaleModel = 52071;\n\t\t\titemDef.modelZoom = 1615;\n\t\t\titemDef.modelRotation1 = 339;\n\t\t\titemDef.modelRotation2 = 192;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33089:\n\t\t\titemDef.name = \"Chaotic maul\";\n\t\t\titemDef.description = \"A maul used to claim life from those who don't deserve it.\";\n\t\t\titemDef.modelId = 54286;\n\t\t\titemDef.maleModel = 56294;\n\t\t\titemDef.femaleModel = 56294;\n\t\t\titemDef.modelZoom = 1447;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33094:\n\t\t\titemDef.name = \"Chaotic crossbow\";\n\t\t\titemDef.description = \"A small crossbow, only effective at short distance.\";\n\t\t\titemDef.modelId = 54331;\n\t\t\titemDef.maleModel = 56307;\n\t\t\titemDef.femaleModel = 56307;\n\t\t\titemDef.modelZoom = 1028;\n\t\t\titemDef.modelRotation1 = 249;\n\t\t\titemDef.modelRotation2 = 2021;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -54;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33095:\n\t\t\titemDef.name = \"Chaotic staff\";\n\t\t\titemDef.description = \"This staff makes destructive spells more powerful.\";\n\t\t\titemDef.modelId = 54367;\n\t\t\titemDef.maleModel = 56286;\n\t\t\titemDef.femaleModel = 56286;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33096:\n\t\t\titemDef.name = \"Chaotic kiteshield\";\n\t\t\titemDef.description = \"A large metal shield.\";\n\t\t\titemDef.modelId = 54358;\n\t\t\titemDef.maleModel = 56038;\n\t\t\titemDef.femaleModel = 56038;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 276;\n\t\t\titemDef.modelRotation2 = 1101;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33031:\n\t\t\titemDef.name = \"Chaotic rapier\";\n\t\t\titemDef.description = \"A razor-sharp rapier.\";\n\t\t\titemDef.modelId = 54197;\n\t\t\titemDef.maleModel = 56252;\n\t\t\titemDef.femaleModel = 56252;\n\t\t\titemDef.modelZoom = 1425;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 1370;\n\t\t\titemDef.modelOffset1 = 9;\n\t\t\titemDef.modelOffset2 = 13;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33032:\n\t\t\titemDef.name = \"Chaotic longsword\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 54204;\n\t\t\titemDef.maleModel = 56237;\n\t\t\titemDef.femaleModel = 56237;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33097:\n\t\t\titemDef.name = \"Sword of Onyxia\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 53091;\n\t\t\titemDef.maleModel = 53092;\n\t\t\titemDef.femaleModel = 53092;\n\t\t\titemDef.modelZoom = 2007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33098:\n\t\t\titemDef.name = \"Onyxia longsword\";\n\t\t\titemDef.description = \"A razor-sharp 2h sword.\";\n\t\t\titemDef.modelId = 53093;\n\t\t\titemDef.maleModel = 53094;\n\t\t\titemDef.femaleModel = 53094;\n\t\t\titemDef.modelZoom = 4007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33099:\n\t\t\titemDef.name = \"White scimitar\";\n\t\t\titemDef.description = \"A razor-sharp scimitar.\";\n\t\t\titemDef.modelId = 53097;\n\t\t\titemDef.maleModel = 53098;\n\t\t\titemDef.femaleModel = 53098;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 312;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33100:\n\t\t\titemDef.name = \"White kiteshield\";\n\t\t\titemDef.description = \"a heavy kiteshield.\";\n\t\t\titemDef.modelId = 53095;\n\t\t\titemDef.maleModel = 53096;\n\t\t\titemDef.femaleModel = 53096;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 303;\n\t\t\titemDef.modelRotation2 = 180;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33033:\n\t\t\titemDef.name = \"Agility master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 677, 801, 43540, 43543, 43546, 43549, 43550, 43552, 43554, 43558,\n\t\t\t\t\t43560, 43575 };\n\t\t\titemDef.modelId = 50030;\n\t\t\titemDef.maleModel = 50031;\n\t\t\titemDef.femaleModel = 50031;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33034:\n\t\t\titemDef.name = \"Attack master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 7104, 9151, 911, 914, 917, 920, 921, 923, 925, 929, 931, 946 };\n\t\t\titemDef.modelId = 50032;\n\t\t\titemDef.maleModel = 50033;\n\t\t\titemDef.femaleModel = 50033;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33035:\n\t\t\titemDef.name = \"Construction master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6061, 5945, 6327, 6330, 6333, 6336, 6337, 6339, 6341, 6345, 6347,\n\t\t\t\t\t6362 };\n\t\t\titemDef.modelId = 50034;\n\t\t\titemDef.maleModel = 50035;\n\t\t\titemDef.femaleModel = 50035;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33036:\n\t\t\titemDef.name = \"Cooking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 920, 920, 51856, 51859, 51862, 51865, 51866, 51868, 51870, 51874,\n\t\t\t\t\t51876, 51891 };\n\t\t\titemDef.modelId = 50036;\n\t\t\titemDef.maleModel = 50037;\n\t\t\titemDef.femaleModel = 50037;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33037:\n\t\t\titemDef.name = \"Crafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9142, 9152, 4511, 4514, 4517, 4520, 4521, 4523, 4525, 4529, 4531,\n\t\t\t\t\t4546 };\n\t\t\titemDef.modelId = 50038;\n\t\t\titemDef.maleModel = 50039;\n\t\t\titemDef.femaleModel = 50039;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33038:\n\t\t\titemDef.name = \"Defence master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 10460, 10473, 41410, 41413, 41416, 41419, 41420, 41422, 41424,\n\t\t\t\t\t41428, 41430, 41445 };\n\t\t\titemDef.modelId = 50040;\n\t\t\titemDef.maleModel = 50041;\n\t\t\titemDef.femaleModel = 50041;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33039:\n\t\t\titemDef.name = \"Farming master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 14775, 14792, 22026, 22029, 22032, 22035, 22036, 22038, 22040,\n\t\t\t\t\t22044, 22046, 22061 };\n\t\t\titemDef.modelId = 50042;\n\t\t\titemDef.maleModel = 50043;\n\t\t\titemDef.femaleModel = 50043;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33040:\n\t\t\titemDef.name = \"Firemaking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8125, 9152, 4015, 4018, 4021, 4024, 4025, 4027, 4029, 4033, 4035,\n\t\t\t\t\t4050 };\n\t\t\titemDef.modelId = 50044;\n\t\t\titemDef.maleModel = 50045;\n\t\t\titemDef.femaleModel = 50045;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33041:\n\t\t\titemDef.name = \"Fishing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9144, 9152, 38202, 38205, 38208, 38211, 38212, 38214, 38216,\n\t\t\t\t\t38220, 38222, 38237 };\n\t\t\titemDef.modelId = 50046;\n\t\t\titemDef.maleModel = 50047;\n\t\t\titemDef.femaleModel = 50047;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33042:\n\t\t\titemDef.name = \"Fletching master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6067, 9152, 33670, 33673, 33676, 33679, 33680, 33682, 33684,\n\t\t\t\t\t33688, 33690, 33705 };\n\t\t\titemDef.modelId = 50048;\n\t\t\titemDef.maleModel = 50049;\n\t\t\titemDef.femaleModel = 50049;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33043:\n\t\t\titemDef.name = \"Herblore master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9145, 9156, 22414, 22417, 22420, 22423, 22424, 22426, 22428,\n\t\t\t\t\t22432, 22434, 22449 };\n\t\t\titemDef.modelId = 50050;\n\t\t\titemDef.maleModel = 50051;\n\t\t\titemDef.femaleModel = 50051;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33044:\n\t\t\titemDef.name = \"Hitpoints master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 818, 951, 8291, 8294, 8297, 8300, 8301, 8303, 8305, 8309, 8311,\n\t\t\t\t\t8319 };\n\t\t\titemDef.modelId = 50052;\n\t\t\titemDef.maleModel = 50053;\n\t\t\titemDef.femaleModel = 50053;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\titemDef.femaleOffset = 4;\n\t\t\tbreak;\n\t\tcase 33045:\n\t\t\titemDef.name = \"Hunter master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 5262, 6020, 8472, 8475, 8478, 8481, 8482, 8484, 8486, 8490, 8492,\n\t\t\t\t\t8507 };\n\t\t\titemDef.modelId = 50054;\n\t\t\titemDef.maleModel = 50055;\n\t\t\titemDef.femaleModel = 50055;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33046:\n\t\t\titemDef.name = \"Magic master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 43569, 43685, 6336, 6339, 6342, 6345, 6346, 6348, 6350, 6354,\n\t\t\t\t\t6356, 6371 };\n\t\t\titemDef.modelId = 50056;\n\t\t\titemDef.maleModel = 50057;\n\t\t\titemDef.femaleModel = 50057;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33047:\n\t\t\titemDef.name = \"Mining master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 36296, 36279, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50058;\n\t\t\titemDef.maleModel = 50059;\n\t\t\titemDef.femaleModel = 50059;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33048:\n\t\t\titemDef.name = \"Prayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9163, 9168, 117, 120, 123, 126, 127, 127, 127, 127, 127, 127 };\n\t\t\titemDef.modelId = 50060;\n\t\t\titemDef.maleModel = 50061;\n\t\t\titemDef.femaleModel = 50061;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33049:\n\t\t\titemDef.name = \"Range master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 3755, 3998, 15122, 15125, 15128, 15131, 15132, 15134, 15136,\n\t\t\t\t\t15140, 15142, 15157 };\n\t\t\titemDef.modelId = 50062;\n\t\t\titemDef.maleModel = 50063;\n\t\t\titemDef.femaleModel = 50063;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33050:\n\t\t\titemDef.name = \"Runecrafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9152, 8128, 10318, 10321, 10324, 10327, 10328, 10330, 10332,\n\t\t\t\t\t10336, 10338, 10353 };\n\t\t\titemDef.modelId = 50064;\n\t\t\titemDef.maleModel = 50065;\n\t\t\titemDef.femaleModel = 50065;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33051:\n\t\t\titemDef.name = \"Slayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811 };\n\t\t\titemDef.originalModelColors = new int[] { 912, 920 };\n\t\t\titemDef.modelId = 50066;\n\t\t\titemDef.maleModel = 50067;\n\t\t\titemDef.femaleModel = 50067;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33052:\n\t\t\titemDef.name = \"Smithing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8115, 9148, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50068;\n\t\t\titemDef.maleModel = 50069;\n\t\t\titemDef.femaleModel = 50069;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33053:\n\t\t\titemDef.name = \"Strength master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 931, 27538, 27541, 27544, 27547, 27548, 27550, 27552, 27556,\n\t\t\t\t\t27558, 27573 };\n\t\t\titemDef.modelId = 50070;\n\t\t\titemDef.maleModel = 50071;\n\t\t\titemDef.femaleModel = 50071;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33054:\n\t\t\titemDef.name = \"Thieving master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 11, 0, 58779, 58782, 58785, 58788, 58789, 57891, 58793, 58797,\n\t\t\t\t\t58799, 58814 };\n\t\t\titemDef.modelId = 50072;\n\t\t\titemDef.maleModel = 50073;\n\t\t\titemDef.femaleModel = 50073;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33055:\n\t\t\titemDef.name = \"Woodcutting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 25109, 24088, 6693, 6696, 6699, 6702, 6703, 6705, 6707, 6711,\n\t\t\t\t\t6713, 6728 };\n\t\t\titemDef.modelId = 50074;\n\t\t\titemDef.maleModel = 50075;\n\t\t\titemDef.femaleModel = 50075;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33057:\n\t\t\titemDef.name = \"Abyssal Scythe\";\n\t\t\titemDef.description = \"\tA Scythe recieved from the Trials of Xeric CUSTOM RAID.\";\n\t\t\titemDef.modelId = 50081;\n\t\t\titemDef.maleModel = 50080;\n\t\t\titemDef.femaleModel = 50080;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33090:\n\t\t\titemDef.name = \"Goliath gloves (Black)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50100;\n\t\t\titemDef.femaleModel = 50101;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33091:\n\t\t\titemDef.name = \"Goliath gloves (Red)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50102;\n\t\t\titemDef.femaleModel = 50103;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33092:\n\t\t\titemDef.name = \"Goliath gloves (White)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50104;\n\t\t\titemDef.femaleModel = 50105;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33093:\n\t\t\titemDef.name = \"Goliath gloves (Yellow)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50106;\n\t\t\titemDef.femaleModel = 50107;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 12639:\n\t\tcase 12637:\n\t\tcase 12638:\n\t\t\titemDef.description = \"Provides players with infinite run energy!\";\n\t\t\tbreak;\n\t\tcase 33056:\n\t\t\titemDef.name = \"Events cape (slayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 0, 0, 0, 0 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33081:\n\t\t\titemDef.name = \"Events cape (agility)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 669, 43430, 43430, 43430, 43430 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33080:\n\t\t\titemDef.name = \"Events cape (attack)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9926, 1815, 1815, 1815, 1815 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33059:\n\t\t\titemDef.name = \"Events cape (construction)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6967, 6343, 6343, 6343, 6343 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33061:\n\t\t\titemDef.name = \"Events cape (cooking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 49685, 49685, 49685, 49685 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33062:\n\t\t\titemDef.name = \"Events cape (crafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 7994, 4516, 4516, 4516, 4516 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33063:\n\t\t\titemDef.name = \"Events cape (defence)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 39367, 10472, 10472, 10472, 10472 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33064:\n\t\t\titemDef.name = \"Events cape (farming)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10698, 19734, 19734, 19734, 19734 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33065:\n\t\t\titemDef.name = \"Events cape (firemaking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10059, 4922, 4922, 4922, 4922 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33066:\n\t\t\titemDef.name = \"Events cape (fishing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 36165, 36165, 36165, 36165 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33067:\n\t\t\titemDef.name = \"Events cape (fletching)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 31500, 31500, 31500, 31500 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33068:\n\t\t\titemDef.name = \"Events cape (herblore)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10051, 20889, 20889, 20889, 20889 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33069:\n\t\t\titemDef.name = \"Events cape (hitpoints)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1836, 8296, 8296, 8296, 8296 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33070:\n\t\t\titemDef.name = \"Events cape (hunter)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6916, 8477, 8477, 8477, 8477 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33071:\n\t\t\titemDef.name = \"Events cape (magic)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 43556, 6339, 6339, 6339, 6339 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33072:\n\t\t\titemDef.name = \"Events cape (mining)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 34111, 10391, 10391, 10391, 10391 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33073:\n\t\t\titemDef.name = \"Events cape (prayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9927, 2169, 2169, 2169, 2169 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33074:\n\t\t\titemDef.name = \"Events cape (range)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 3626, 20913, 20913, 20913, 20913 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33075:\n\t\t\titemDef.name = \"Events cape (runecrafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 10323, 10323, 10323, 10323 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33076:\n\t\t\titemDef.name = \"Events cape (smithing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10044, 5412, 5412, 5412, 5412 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33077:\n\t\t\titemDef.name = \"Events cape (strength)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 30487, 30487, 30487, 30487 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33078:\n\t\t\titemDef.name = \"Events cape (thieveing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 8, 57636, 57636, 57636, 57636 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33079:\n\t\t\titemDef.name = \"Events cape (woodcutting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 26007, 6570, 6570, 6570, 6570 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33101:\n\t\t\titemDef.name = \"Vorkath platebody\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53100;\n\t\t\titemDef.maleModel = 53099;\n\t\t\titemDef.femaleModel = 53099;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33102:\n\t\t\titemDef.name = \"Vorkath platelegs\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53102;\n\t\t\titemDef.maleModel = 53101;\n\t\t\titemDef.femaleModel = 53101;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33103:\n\t\t\titemDef.name = \"Vorkath boots\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33104:\n\t\t\titemDef.name = \"Vorkath gloves\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33105:\n\t\t\titemDef.name = \"Vorkath helmet\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53108;\n\t\t\titemDef.maleModel = 53107;\n\t\t\titemDef.femaleModel = 53107;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33106:\n\t\t\titemDef.name = \"Tekton helmet\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53118;\n\t\t\titemDef.maleModel = 53117;\n\t\t\titemDef.femaleModel = 53117;\n\t\t\titemDef.modelZoom = 724;\n\t\t\titemDef.modelRotation1 = 81;\n\t\t\titemDef.modelRotation2 = 1670;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33107:\n\t\t\titemDef.name = \"Tekton platebody\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53110;\n\t\t\titemDef.maleModel = 53109;\n\t\t\titemDef.femaleModel = 53109;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33108:\n\t\t\titemDef.name = \"Tekton platelegs\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53112;\n\t\t\titemDef.maleModel = 53111;\n\t\t\titemDef.femaleModel = 53111;\n\t\t\titemDef.modelZoom = 1550;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 186;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33109:\n\t\t\titemDef.name = \"Tekton gloves\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53116;\n\t\t\titemDef.maleModel = 53115;\n\t\t\titemDef.femaleModel = 53115;\n\t\t\titemDef.modelZoom = 830;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33110:\n\t\t\titemDef.name = \"Tekton boots\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53114;\n\t\t\titemDef.maleModel = 53113;\n\t\t\titemDef.femaleModel = 53113;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33111:\n\t\t\titemDef.name = \"Anti-santa scythe\";\n\t\t\titemDef.description = \"Legend says this is the biggest arse scratcher around.\";\n\t\t\titemDef.modelId = 57002;\n\t\t\titemDef.maleModel = 57001;\n\t\t\titemDef.femaleModel = 57001;\n\t\t\titemDef.modelZoom = 3224;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 714;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33112:\n\t\t\titemDef.name = \"Dominion staff\";\n\t\t\titemDef.description = \"Dominion staff.\";\n\t\t\titemDef.modelId = 59029;\n\t\t\titemDef.maleModel = 59305;\n\t\t\titemDef.femaleModel = 59305;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33113:\n\t\t\titemDef.name = \"Dominion sword\";\n\t\t\titemDef.description = \"Dominion sword.\";\n\t\t\titemDef.modelId = 59832;\n\t\t\titemDef.maleModel = 59306;\n\t\t\titemDef.femaleModel = 59306;\n\t\t\titemDef.modelZoom = 1829;\n\t\t\titemDef.modelRotation1 = 513;\n\t\t\titemDef.modelRotation2 = 546;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33114:\n\t\t\titemDef.name = \"Dominion crossbow\";\n\t\t\titemDef.description = \"Dominion crossbow.\";\n\t\t\titemDef.modelId = 59839;\n\t\t\titemDef.maleModel = 59304;\n\t\t\titemDef.femaleModel = 59304;\n\t\t\titemDef.modelZoom = 1490;\n\t\t\titemDef.modelRotation1 = 362;\n\t\t\titemDef.modelRotation2 = 791;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33115:\n\t\t\titemDef.name = \"Dragonfire Shield (e)\";\n\t\t\titemDef.description = \"unamed shield.\";\n\t\t\titemDef.modelId = 53120;\n\t\t\titemDef.maleModel = 53119;\n\t\t\titemDef.femaleModel = 53119;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 123;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[] { null, \"Wear\", \"Inspect\", \"Empty\", \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33116:\n\t\t\titemDef.name = \"Zilyana's longbow\";\n\t\t\titemDef.description = \"A bow belonged to Zilyana.\";\n\t\t\titemDef.modelId = 53122;\n\t\t\titemDef.maleModel = 53121;\n\t\t\titemDef.femaleModel = 53121;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33117:\n\t\t\titemDef.name = \"Black dragon hunter crossbow\";\n\t\t\titemDef.description = \"Black dragon hunter crossbow.\";\n\t\t\titemDef.modelId = 53124;\n\t\t\titemDef.maleModel = 53123;\n\t\t\titemDef.femaleModel = 53123;\n\t\t\titemDef.modelZoom = 1554;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33118:\n\t\t\titemDef.name = \"Vorkath blowpipe\";\n\t\t\titemDef.description = \"Vorkath blowpipe.\";\n\t\t\titemDef.modelId = 53126;\n\t\t\titemDef.maleModel = 53125;\n\t\t\titemDef.femaleModel = 53125;\n\t\t\titemDef.modelZoom = 1158;\n\t\t\titemDef.modelRotation1 = 768;\n\t\t\titemDef.modelRotation2 = 189;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33119:\n\t\t\titemDef.name = \"Superior twisted bow\";\n\t\t\titemDef.description = \"An upgraded twisted bow.\";\n\t\t\titemDef.modelId = 53128;\n\t\t\titemDef.maleModel = 53127;\n\t\t\titemDef.femaleModel = 53127;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\t\tcase 33123:\n\t\t\titemDef.name = \"Staff of sliske\";\n\t\t\titemDef.description = \"Staff of sliske.\";\n\t\t\titemDef.modelId = 59234;\n\t\t\titemDef.maleModel = 59233;\n\t\t\titemDef.femaleModel = 59233;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33124:\n\t\t\titemDef.name = \"Twisted crossbow\";\n\t\t\titemDef.description = \"Twisted crossbow.\";\n\t\t\titemDef.modelId = 62777;\n\t\t\titemDef.maleModel = 62776;\n\t\t\titemDef.femaleModel = 62776;\n\t\t\titemDef.modelZoom = 926;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33125:\n\t\t\titemDef.name = \"Present\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 24410 };\n\t\t\titemDef.description = \"Santa's stolen present\";\n\t\t\tbreak;\n\t\tcase 33126:\n\t\t\titemDef.name = \"Christmas tree branch\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2412;\n\t\t\titemDef.modelZoom = 940;\n\t\t\titemDef.modelRotation1 = 268;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -21;\n\t\t\titemDef.modifiedModelColors = new int[] { 11144 };\n\t\t\titemDef.originalModelColors = new int[] { 6047 };\n\t\t\titemDef.description = \"Enter examine here.\";\n\t\t\tbreak;\n\t\tcase 33127:\n\t\t\titemDef.name = \"Kbd gloves\";\n\t\t\titemDef.description = \"Kbd gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33085 };\n\t\t\titemDef.originalModelColors = new int[] { 1060 };\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33128:\n\t\t\titemDef.name = \"Kbd boots\";\n\t\t\titemDef.description = \"Kbd boots.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33198, 33202, 33206, 33215, 33210 };\n\t\t\titemDef.originalModelColors = new int[] { 1060, 1061, 1063, 1064, 1065 };\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33129:\n\t\t\titemDef.name = \"Kbd platelegs\";\n\t\t\titemDef.description = \"Kbd platelegs.\";\n\t\t\titemDef.modelId = 59994;\n\t\t\titemDef.maleModel = 59995;\n\t\t\titemDef.femaleModel = 59995;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33130:\n\t\t\titemDef.name = \"Kbd platebody\";\n\t\t\titemDef.description = \"Kbd platebody.\";\n\t\t\titemDef.modelId = 59998;\n\t\t\titemDef.maleModel = 59999;\n\t\t\titemDef.femaleModel = 59999;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33131:\n\t\t\titemDef.name = \"Kbd helmet\";\n\t\t\titemDef.description = \"Kbd helmet.\";\n\t\t\titemDef.modelId = 59996;\n\t\t\titemDef.maleModel = 59997;\n\t\t\titemDef.femaleModel = 59997;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33132:\n\t\t\titemDef.name = \"Kbd cape\";\n\t\t\titemDef.description = \"Kbd cape.\";\n\t\t\titemDef.modelId = 59992;\n\t\t\titemDef.maleModel = 59993;\n\t\t\titemDef.femaleModel = 59993;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33133:\n\t\t\titemDef.name = \"Anti-imp pet\";\n\t\t\titemDef.description = \"Anti-imp pet.\";\n\t\t\titemDef.modelId = 45294;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33134:\n\t\t\titemDef.name = \"Anti-santa pet\";\n\t\t\titemDef.description = \"Anti-santa pet.\";\n\t\t\titemDef.modelId = 29030;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 1966;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33135:\n\t\t\titemDef.name = \"Bandos mask\";\n\t\t\titemDef.description = \"Bandos helmet.\";\n\t\t\titemDef.modelId = 59987;\n\t\t\titemDef.maleModel = 59991;\n\t\t\titemDef.femaleModel = 59991;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33136:\n\t\t\titemDef.name = \"Armadyl mask\";\n\t\t\titemDef.description = \"Armadyl mask.\";\n\t\t\titemDef.modelId = 59986;\n\t\t\titemDef.maleModel = 59990;\n\t\t\titemDef.femaleModel = 59990;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33137:\n\t\t\titemDef.name = \"Zamorak mask\";\n\t\t\titemDef.description = \"Zamorak mask.\";\n\t\t\titemDef.modelId = 59985;\n\t\t\titemDef.maleModel = 59989;\n\t\t\titemDef.femaleModel = 59989;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33138:\n\t\t\titemDef.name = \"Saradomin mask\";\n\t\t\titemDef.description = \"Saradomin mask.\";\n\t\t\titemDef.modelId = 59984;\n\t\t\titemDef.maleModel = 59988;\n\t\t\titemDef.femaleModel = 59988;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33139:\n\t\t\titemDef.name = \"Zamarok godbow\";\n\t\t\titemDef.description = \"Zamarok godbow.\";\n\t\t\titemDef.modelId = 60560;//60553\n\t\t\titemDef.maleModel = 60560;\n\t\t\titemDef.femaleModel = 60560;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33140:\n\t\t\titemDef.name = \"Saradomin godbow\";\n\t\t\titemDef.description = \"Saradomin godbow.\";\n\t\t\titemDef.modelId = 60555;\n\t\t\titemDef.maleModel = 60554;\n\t\t\titemDef.femaleModel = 60554;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33141:\n\t\t\titemDef.name = \"Bandos godbow\";\n\t\t\titemDef.description = \"Bandos godbow.\";\n\t\t\titemDef.modelId = 60559;\n\t\t\titemDef.maleModel = 60558;\n\t\t\titemDef.femaleModel = 60558;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33142:\n\t\t\titemDef.name = \"Fire cape (purple)\";\n\t\t\titemDef.description = \"Fire cape (purple).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33148:\n\t\t\titemDef.name = \"Fire cape (cyan)\";\n\t\t\titemDef.description = \"Fire cape (cyan).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33144:\n\t\t\titemDef.name = \"Fire cape (green)\";\n\t\t\titemDef.description = \"Fire cape (green).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33145:\n\t\t\titemDef.name = \"Fire cape (red)\";\n\t\t\titemDef.description = \"Fire cape (red).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33143:\n\t\t\titemDef.name = \"Infernal cape (blue)\";\n\t\t\titemDef.description = \"Infernal cape (blue).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 39851, 39851, 39851, 39851 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33146:\n\t\t\titemDef.name = \"Infernal cape (green)\";\n\t\t\titemDef.description = \"Infernal cape (green).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 21167, 21167, 21167, 21167 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33147:\n\t\t\titemDef.name = \"Infernal cape (purple)\";\n\t\t\titemDef.description = \"Infernal cape (purple).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 53160, 53160, 53160, 53160 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33150:\n\t\t\titemDef.name = \"Infernal key piece 1\";\n\t\t\titemDef.description = \"Infernal key piece 1.\";\n\t\t\titemDef.modelId = 61001;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33151:\n\t\t\titemDef.name = \"Infernal key piece 2\";\n\t\t\titemDef.description = \"Infernal key piece 2.\";\n\t\t\titemDef.modelId = 61002;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33152:\n\t\t\titemDef.name = \"Infernal key piece 3\";\n\t\t\titemDef.description = \"Infernal key piece 3.\";\n\t\t\titemDef.modelId = 61003;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33153:\n\t\t\titemDef.name = \"Infernal key\";\n\t\t\titemDef.description = \"Infernal key.\";\n\t\t\titemDef.modelId = 61111;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\t\t//DOPES ITEMS NIGGAHAHAHAHAHAHAH\n\t\tcase 2749:\n\t\t\titemDef.name = \"Bloody Axe\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65495;\n\t\t\titemDef.femaleModel = 65495;\n\t\t\titemDef.maleModel = 65495;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 2750:\n\t\t\titemDef.name = \"Bloody Axe Offhand\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65496;\n\t\t\titemDef.femaleModel = 65496;\n\t\t\titemDef.maleModel = 65496;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33154:\n\t\t\titemDef.name = \"Infernal mystery box\";\n\t\t\titemDef.description = \"Infernal mystery box.\";\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33155:\n\t\t\titemDef.name = \"Ethereal sword (red)\";\n\t\t\titemDef.description = \"Ethereal sword (red).\";\n\t\t\titemDef.modelId = 61005;\n\t\t\titemDef.maleModel = 61004;\n\t\t\titemDef.femaleModel = 61004;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33156:\n\t\t\titemDef.name = \"Ethereal sword (blue)\";\n\t\t\titemDef.description = \"Ethereal sword (blue).\";\n\t\t\titemDef.modelId = 61006;\n\t\t\titemDef.maleModel = 61007;\n\t\t\titemDef.femaleModel = 61007;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33157:\n\t\t\titemDef.name = \"Ethereal sword (green)\";\n\t\t\titemDef.description = \"Ethereal sword (green).\";\n\t\t\titemDef.modelId = 61008;\n\t\t\titemDef.maleModel = 61009;\n\t\t\titemDef.femaleModel = 61009;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33158:\n\t\t\titemDef.name = \"Dagon' hai top\";\n\t\t\titemDef.description = \"An elite dark mages robes.\";\n\t\t\titemDef.modelId = 60317;\n\t\t\titemDef.maleModel = 43614;\n\t\t\titemDef.femaleModel = 43689;\n\t\t\titemDef.anInt188 = 44594;\n\t\t\titemDef.anInt164 = 43681;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33159:\n\t\t\titemDef.name = \"Dagon' hai hat\";\n\t\t\titemDef.description = \"An elite dark mages hat.\";\n\t\t\titemDef.modelId = 60319;\n\t\t\titemDef.maleModel = 60318;\n\t\t\titemDef.femaleModel = 60318;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 98;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33160:\n\t\t\titemDef.name = \"Dagon' hai robe\";\n\t\t\titemDef.description = \"An elite dark mages robe.\";\n\t\t\titemDef.modelId = 60321;\n\t\t\titemDef.maleModel = 60320;\n\t\t\titemDef.femaleModel = 60320;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 2216;\n\t\t\titemDef.modelRotation1 = 572;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33161:\n\t\t\titemDef.name = \"Blue infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Blue.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33162:\n\t\t\titemDef.name = \"Green infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33163:\n\t\t\titemDef.name = \"Purple infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33164:\n\t\t\titemDef.name = \"Purple firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33165:\n\t\t\titemDef.name = \"Cyan firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to cyan.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33166:\n\t\t\titemDef.name = \"Green firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33167:\n\t\t\titemDef.name = \"Red firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to red.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33169:\n\t\t\titemDef.name = \"K'ril robe top\";\n\t\t\titemDef.description = \"A top worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62558;\n\t\t\titemDef.maleModel = 62559;\n\t\t\titemDef.femaleModel = 62559;\n\t\t\titemDef.modelZoom = 1358;\n\t\t\titemDef.modelRotation1 = 514;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33170:\n\t\t\titemDef.name = \"K'ril robe bottom\";\n\t\t\titemDef.description = \"A robe worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62553;\n\t\t\titemDef.maleModel = 62554;\n\t\t\titemDef.femaleModel = 62554;\n\t\t\titemDef.modelZoom = 1690;\n\t\t\titemDef.modelRotation1 = 435;\n\t\t\titemDef.modelRotation2 = 9;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33171:\n\t\t\titemDef.name = \"K'ril hat\";\n\t\t\titemDef.description = \"A hat worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62551;\n\t\t\titemDef.maleModel = 62552;\n\t\t\titemDef.femaleModel = 62552;\n\t\t\titemDef.modelZoom = 1236;\n\t\t\titemDef.modelRotation1 = 118;\n\t\t\titemDef.modelRotation2 = 10;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33172:\n\t\t\titemDef.name = \"K'ril swords\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62557;\n\t\t\titemDef.femaleModel = 62557;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33173:\n\t\t\titemDef.name = \"K'ril swords (sheathed)\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62556;\n\t\t\titemDef.femaleModel = 62556;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33174:\n\t\t\titemDef.name = \"Pet demonic gorilla\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31241;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33175:\n\t\t\titemDef.name = \"Pet crawling hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5071;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33176:\n\t\t\titemDef.name = \"Pet cave bug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 23854;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33177:\n\t\t\titemDef.name = \"Pet cave crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5066;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33178:\n\t\t\titemDef.name = \"Pet banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5063;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33179:\n\t\t\titemDef.name = \"Pet cave slime\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5786;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33180:\n\t\t\titemDef.name = \"Pet rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5084;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33181:\n\t\t\titemDef.name = \"Pet cockatrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5070;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33182:\n\t\t\titemDef.name = \"Pet pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5083;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33183:\n\t\t\titemDef.name = \"Pet basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5064;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33184:\n\t\t\titemDef.name = \"Pet infernal mage\";\n\t\t\titemDef.modifiedModelColors = new int[] { -26527, -24618, -25152, -25491, 119 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 148, 0, 924, 924 };\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5047;\n\t\t\titemDef.modelZoom = 3940;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 84;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33185:\n\t\t\titemDef.name = \"Pet bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5065;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33186:\n\t\t\titemDef.name = \"Pet jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5081;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33187:\n\t\t\titemDef.name = \"Pet turoth\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5086;\n\t\t\titemDef.modelZoom = 2600;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33188:\n\t\t\titemDef.name = \"Pet aberrant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5085;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 450;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33189:\n\t\t\titemDef.name = \"Pet dust devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5076;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33190:\n\t\t\titemDef.name = \"Pet kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5082;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33191:\n\t\t\titemDef.name = \"Pet skeletal wyvern\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10350;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 27;\n\t\t\titemDef.modelRotation2 = 1634;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33192:\n\t\t\titemDef.name = \"Pet garygoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5078;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33193:\n\t\t\titemDef.name = \"Pet nechryael\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5074;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33194:\n\t\t\titemDef.name = \"Pet abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5062;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33195:\n\t\t\titemDef.name = \"Pet dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26395;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33196:\n\t\t\titemDef.name = \"Pet night beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32933;\n\t\t\titemDef.modelZoom = 7000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33197:\n\t\t\titemDef.name = \"Pet greater abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33198:\n\t\t\titemDef.name = \"Pet crushing hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32922;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33199:\n\t\t\titemDef.name = \"Pet chasm crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32918;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33200:\n\t\t\titemDef.name = \"Pet screaming banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32823;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33201:\n\t\t\titemDef.name = \"Pet twisted banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32847;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33202:\n\t\t\titemDef.name = \"Pet giant rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32919;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33203:\n\t\t\titemDef.name = \"Pet cockathrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32920;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33204:\n\t\t\titemDef.name = \"Pet flaming pyrelord\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32923;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33205:\n\t\t\titemDef.name = \"Pet monstrous basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32924;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33206:\n\t\t\titemDef.name = \"Pet malevolent mage\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32929;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33207:\n\t\t\titemDef.name = \"Pet insatiable bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33208:\n\t\t\titemDef.name = \"Pet insatiable mutated bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32925;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33209:\n\t\t\titemDef.name = \"Pet vitreous jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32852;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33210:\n\t\t\titemDef.name = \"Pet vitreous warped jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32917;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33211:\n\t\t\titemDef.name = \"Pet cave abomination\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32935;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33212:\n\t\t\titemDef.name = \"Pet abhorrent spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32930;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33213:\n\t\t\titemDef.name = \"pet repugnant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33214:\n\t\t\titemDef.name = \"Pet choke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32927;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33215:\n\t\t\titemDef.name = \"Pet king kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32934;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33217:\n\t\t\titemDef.name = \"Pet nuclear smoke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32928;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33218:\n\t\t\titemDef.name = \"Pet marble gargoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34251;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33219:\n\t\t\titemDef.name = \"Pet nechryarch\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32932;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33220:\n\t\t\titemDef.name = \"Pet Patrity\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32035;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33221:\n\t\t\titemDef.name = \"Pet xarpus\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35383;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33222:\n\t\t\titemDef.name = \"Pet nyclocas vasilias\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35182;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33223:\n\t\t\titemDef.name = \"Pet pestilent bloat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35404;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33224:\n\t\t\titemDef.name = \"Pet maiden of sugadinti\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35385;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33225:\n\t\t\titemDef.name = \"Pet lizardman shaman\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4039;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33226:\n\t\t\titemDef.name = \"Pet abyssal sire\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 29477;\n\t\t\titemDef.modelZoom = 9000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33227:\n\t\t\titemDef.name = \"Pet black demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31984;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 144;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11802:\n\t\tcase 11804:\n\t\tcase 11806:\n\t\tcase 11808:\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\tbreak;// godsword sheathing operating\n\n\t\tcase 33228:\n\t\t\titemDef.name = \"Pet greater demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33229:\n\t\t\titemDef.name = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.description = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28075;\n\t\t\titemDef.maleModel = 62683;\n\t\t\titemDef.femaleModel = 62683;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33230:\n\t\t\titemDef.name = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.description = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28059;\n\t\t\titemDef.maleModel = 62684;\n\t\t\titemDef.femaleModel = 62684;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33231:\n\t\t\titemDef.name = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.description = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28070;\n\t\t\titemDef.maleModel = 62685;\n\t\t\titemDef.femaleModel = 62685;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33232:\n\t\t\titemDef.name = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.description = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28060;\n\t\t\titemDef.maleModel = 62686;\n\t\t\titemDef.femaleModel = 62686;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33233:\n\t\t\titemDef.name = \"Pet revenant imp\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34156;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33234:\n\t\t\titemDef.name = \"Pet revenant goblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34262;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33235:\n\t\t\titemDef.name = \"Pet revenant pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34142;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33236:\n\t\t\titemDef.name = \"Pet revenant hobgoblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34157;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33237:\n\t\t\titemDef.name = \"Pet revenant cyclops\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34155;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33238:\n\t\t\titemDef.name = \"Pet revenant hellhound\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34143;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33239:\n\t\t\titemDef.name = \"Pet revenant demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modifiedModelColors = new int[] { 1690, 910, 912, 1814, 1938 };\n\t\t\titemDef.originalModelColors = new int[] { 43078, 43078, 43078, 43078, 43078, 43078 };\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33240:\n\t\t\titemDef.name = \"Pet revenant ork\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34154;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33242:\n\t\t\titemDef.name = \"Pet revenant dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34158;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33243:\n\t\t\titemDef.name = \"Pet revenant knight\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34145;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33244:\n\t\t\titemDef.name = \"Pet revenant dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34163;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33245:\n\t\t\titemDef.name = \"Pet glob\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26074;\n\t\t\titemDef.modelZoom = 10000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33246:\n\t\t\titemDef.name = \"Pet ice queen\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 104;\n\t\t\titemDef.modifiedModelColors = new int[] { 41, 61, 4550, 12224, 25238, 6798 };\n\t\t\titemDef.originalModelColors = new int[] { -22052, -26150, -24343, -22052, -22052, -23327 };\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33247:\n\t\t\titemDef.name = \"Pet enraged tarn\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60322;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33248:\n\t\t\titemDef.name = \"Pet jaltok-jad\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 33012;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33249:\n\t\t\titemDef.name = \"Pet rune dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34668;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33271:\n\t\t\titemDef.name = \"Moo\";\n\t\t\titemDef.description = \"cow goes moo.\";\n\t\t\titemDef.modelId = 23889;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33250:\n\t\t\titemDef.name = \"Swift gloves (Black)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62657;\n\t\t\titemDef.femaleModel = 62658;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33251:\n\t\t\titemDef.name = \"Swift gloves (Red)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62659;\n\t\t\titemDef.femaleModel = 62660;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33252:\n\t\t\titemDef.name = \"Swift gloves (White)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62661;\n\t\t\titemDef.femaleModel = 62662;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33253:\n\t\t\titemDef.name = \"Swift gloves (Yellow)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62663;\n\t\t\titemDef.femaleModel = 62664;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33254:\n\t\t\titemDef.name = \"Spellcaster gloves (Black)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62665;\n\t\t\titemDef.femaleModel = 62666;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33255:\n\t\t\titemDef.name = \"Spellcaster gloves (Red)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62667;\n\t\t\titemDef.femaleModel = 62668;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33256:\n\t\t\titemDef.name = \"Spellcaster gloves (White)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62669;\n\t\t\titemDef.femaleModel = 62670;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33257:\n\t\t\titemDef.name = \"Spellcaster gloves (Yellow)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62671;\n\t\t\titemDef.femaleModel = 62672;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33258:\n\t\t\titemDef.name = \"Tekton longsword\";\n\t\t\titemDef.description = \"Tekton longsword.\";\n\t\t\titemDef.modelId = 62682;\n\t\t\titemDef.maleModel = 62681;\n\t\t\titemDef.femaleModel = 62681;\n\t\t\titemDef.modelZoom = 1445;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33259:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33260:\n\t\t\titemDef.name = \"Pet drake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36160;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33261:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33262:\n\t\t\titemDef.name = \"Valentines Balloon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62766;\n\t\t\titemDef.maleModel = 62767;\n\t\t\titemDef.femaleModel = 62767;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 270;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33263:\n\t\t\titemDef.name = \"Cupid bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62768;\n\t\t\titemDef.maleModel = 62769;\n\t\t\titemDef.femaleModel = 62769;\n\t\t\titemDef.modelZoom = 1072;\n\t\t\titemDef.modelRotation1 = 127;\n\t\t\titemDef.modelRotation2 = 103;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33264:\n\t\t\titemDef.name = \"Halo and horns\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62771;\n\t\t\titemDef.maleModel = 62770;\n\t\t\titemDef.femaleModel = 62770;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 228;\n\t\t\titemDef.modelRotation2 = 141;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33265:\n\t\t\titemDef.name = \"Heart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62782;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33266:\n\t\t\titemDef.name = \"Valentines mystery box\";\n\t\t\titemDef.description = \"You make me hard.\";\n\t\t\titemDef.modelId = 62773;\n\t\t\titemDef.modelZoom = 464;\n\t\t\titemDef.modelRotation1 = 423;\n\t\t\titemDef.modelRotation2 = 1928;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33267:\n\t\t\titemDef.name = \"Staff of adoration\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62774;\n\t\t\titemDef.maleModel = 62775;\n\t\t\titemDef.femaleModel = 62775;\n\t\t\titemDef.modelZoom = 1579;\n\t\t\titemDef.modelRotation1 = 660;\n\t\t\titemDef.modelRotation2 = 48;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33268:\n\t\t\titemDef.name = \"Valentines crossbow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62778;\n\t\t\titemDef.maleModel = 62779;\n\t\t\titemDef.femaleModel = 62779;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33269:\n\t\t\titemDef.name = \"Onyxia Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 2130, 38693 };\n\t\t\titemDef.description = \"Chances at several unqiue items found only in this box! (ex: Tekton Armor)\";\n\t\t\tbreak;\n\t\tcase 33270:\n\t\t\titemDef.name = \"Dragon Hunter Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 1050 };\n\t\t\titemDef.description = \"Chances for items that give bonuses toward dragons. (ex: Dragonhunter Lance)\";\n\t\t\tbreak;\n\t\tcase 33273:\n\t\t\titemDef.name = \"Ancient sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60201;\n\t\t\titemDef.maleModel = 60200;\n\t\t\titemDef.femaleModel = 60200;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33274:\n\t\t\titemDef.name = \"Armadyl staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60203;\n\t\t\titemDef.maleModel = 60202;\n\t\t\titemDef.femaleModel = 60202;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33275:\n\t\t\titemDef.name = \"Bork axe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60205;\n\t\t\titemDef.maleModel = 60204;\n\t\t\titemDef.femaleModel = 60204;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33276:\n\t\t\titemDef.name = \"Bree bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60207;\n\t\t\titemDef.maleModel = 60206;\n\t\t\titemDef.femaleModel = 60206;\n\t\t\titemDef.modelZoom = 1700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33277:\n\t\t\titemDef.name = \"Infernal staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60209;\n\t\t\titemDef.maleModel = 60208;\n\t\t\titemDef.femaleModel = 60208;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33278:\n\t\t\titemDef.name = \"Infernal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60211;\n\t\t\titemDef.maleModel = 60210;\n\t\t\titemDef.femaleModel = 60210;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33279:\n\t\t\titemDef.name = \"Necrolord staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60213;\n\t\t\titemDef.maleModel = 60212;\n\t\t\titemDef.femaleModel = 60212;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33280:\n\t\t\titemDef.name = \"Insert name here\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60215;\n\t\t\titemDef.maleModel = 60214;\n\t\t\titemDef.femaleModel = 60214;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33281:\n\t\t\titemDef.name = \"Infernal bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60219;\n\t\t\titemDef.maleModel = 60218;\n\t\t\titemDef.femaleModel = 60218;\n\t\t\titemDef.modelZoom = 3334;\n\t\t\titemDef.modelRotation1 = 533;\n\t\t\titemDef.modelRotation2 = 1294;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33282:\n\t\t\titemDef.name = \"Infernal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60221;\n\t\t\titemDef.maleModel = 60220;\n\t\t\titemDef.femaleModel = 60220;\n\t\t\titemDef.modelZoom = 2512;\n\t\t\titemDef.modelRotation1 = 317;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = 45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33283:\n\t\t\titemDef.name = \"Imbued Porazdir's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 13263, 13014, 13243, 13000, 13275 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your strength for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33284:\n\t\t\titemDef.name = \"Imbued Justiciar's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 31661, 31418, 31661, 31167, 31445 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Defence for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32285:\n\t\t\titemDef.name = \"Imbued Derwen's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 930, 936, 940, 950 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Attack for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32286:\n\t\t\titemDef.name = \"Bronze fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 5652, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32287:\n\t\t\titemDef.name = \"Iron fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 33, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32288:\n\t\t\titemDef.name = \"Steel fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 61, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32289:\n\t\t\titemDef.name = \"Black fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32290:\n\t\t\titemDef.name = \"Mithril fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 43297, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32291:\n\t\t\titemDef.name = \"Adamant fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 21662, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32292:\n\t\t\titemDef.name = \"Rune fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 36133, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32293:\n\t\t\titemDef.name = \"Dragon fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing. Can also be used for Deep sea fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32294:\n\t\t\titemDef.name = \"Raw eel\";\n\t\t\titemDef.description = \"Slimy\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32295:\n\t\t\titemDef.name = \"Burnt eel\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8724, 3226, 9754 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32296:\n\t\t\titemDef.name = \"Eel\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 8386, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8088, 6032, 57, 2960 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32297:\n\t\t\titemDef.name = \"Raw baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 103, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 7756, 5349 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32298:\n\t\t\titemDef.name = \"Burnt baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 28, 41 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32299:\n\t\t\titemDef.name = \"Baron shark\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 8109, 4795 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32300:\n\t\t\titemDef.name = \"Raw cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60223;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32301:\n\t\t\titemDef.name = \"Burnt cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60227;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32302:\n\t\t\titemDef.name = \"Cavefish\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 60228;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32303:\n\t\t\titemDef.name = \"Dragonfire visage (e)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26456;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modifiedModelColors = new int[] { 45, 41, 33, 24, 20, 57, 22, 37 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33285:\n\t\t\titemDef.name = \"Easter Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"Chances for all sorts of Easter Items!\";\n\t\t\tbreak;\n\n\t\tcase 33286:\n\t\t\titemDef.name = \"Easter Cape\";\n\t\t\titemDef.inventoryOptions = new String[] { null, \"wear\", null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"An Easter Cape.\";\n\t\t\tbreak;\n\n\t\tcase 33287:\n\t\t\titemDef.name = \"Pet Easter Bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"You've captured the Easter bunny!\";\n\t\t\tbreak;\n\n\t\tcase 33288:\n\t\t\titemDef.name = \"Pet Choco\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 7079 };\n\t\t\tbreak;\n\n\t\tcase 33289:\n\t\t\titemDef.name = \"Pet Milkie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 6040 };\n\t\t\tbreak;\n\n\t\tcase 33290:\n\t\t\titemDef.name = \"Pet Goldie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"oh wow... a rare golden bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 9152 };\n\t\t\tbreak;\n\n\t\tcase 33291:\n\t\t\titemDef.name = \"Pet Blue\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"A blue bunny... kinda looks like the easter bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 35321 };\n\t\t\tbreak;\n\n\t\tcase 33292:\n\t\t\titemDef.name = \"Crazed bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 23901;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"What a bloody mess...\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5413, 5417, 5421 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 111, 127 };\n\t\t\tbreak;\n\n\t\tcase 33293:\n\t\t\titemDef.name = \"Peter Rabbit\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 28602;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"Hi Peter!\";\n\t\t\tbreak;\n\n\t\tcase 33294:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947 };\n\t\t\titemDef.originalModelColors = new int[] { 8128 };\n\t\t\tbreak;\n\n\t\tcase 33295:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 25511 };\n\t\t\tbreak;\n\n\t\tcase 33296:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 38835 };\n\t\t\tbreak;\n\n\t\tcase 33297:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 947 };\n\t\t\tbreak;\n\n\t\tcase 33305:\n\t\t\titemDef.name = \"$10 bond\";\n\t\t\titemDef.description = \"$10 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 84, 84, 84, 84, 84, 84, 84 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33306:\n\t\t\titemDef.name = \"$25 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 87, 87, 87, 87, 87, 87, 87 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33307:\n\t\t\titemDef.name = \"$50 bond\";\n\t\t\titemDef.description = \"$50 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 65, 65, 65, 65, 65, 65, 65 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33308:\n\t\t\titemDef.name = \"$100 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 75, 75, 75, 75, 75, 75, 75 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33309:\n\t\t\titemDef.name = \"$200 bond\";\n\t\t\titemDef.description = \"$200 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 88, 88, 88, 88, 88, 88, 88 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33310:\n\t\t\titemDef.name = \"$500 bond\";\n\t\t\titemDef.description = \"$500 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 85, 85, 85, 85, 85, 85, 85 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33311:\n\t\t\titemDef.name = \"$1000 bond\";\n\t\t\titemDef.description = \"$1000 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 86, 86, 86, 86, 86, 86, 86 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33312:\n\t\t\titemDef.name = \"Armadyl battlestaff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60332;\n\t\t\titemDef.maleModel = 60333;\n\t\t\titemDef.femaleModel = 60333;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 225;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33313:\n\t\t\titemDef.name = \"Colossal platebody\";\n\t\t\titemDef.description = \"Colossal platebody.\";\n\t\t\titemDef.modelId = 60323;\n\t\t\titemDef.maleModel = 60324;\n\t\t\titemDef.femaleModel = 60324;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33314:\n\t\t\titemDef.name = \"Colossal platelegs\";\n\t\t\titemDef.description = \"Colossal platelegs.\";\n\t\t\titemDef.modelId = 60325;\n\t\t\titemDef.maleModel = 60326;\n\t\t\titemDef.femaleModel = 60326;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33315:\n\t\t\titemDef.name = \"Colossal boots\";\n\t\t\titemDef.description = \"Colossal boots.\";\n\t\t\titemDef.modelId = 60329;\n\t\t\titemDef.maleModel = 60329;\n\t\t\titemDef.femaleModel = 60329;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33316:\n\t\t\titemDef.name = \"Colossal gloves\";\n\t\t\titemDef.description = \"Colossal gloves.\";\n\t\t\titemDef.modelId = 60330;\n\t\t\titemDef.maleModel = 60331;\n\t\t\titemDef.femaleModel = 60331;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33317:\n\t\t\titemDef.name = \"Colossal helmet\";\n\t\t\titemDef.description = \"Colossal helmet.\";\n\t\t\titemDef.modelId = 60327;\n\t\t\titemDef.maleModel = 60328;\n\t\t\titemDef.femaleModel = 60328;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33318:\n\t\t\titemDef.name = \"Polypore staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60334;\n\t\t\titemDef.maleModel = 60335;\n\t\t\titemDef.femaleModel = 60335;\n\t\t\titemDef.modelZoom = 3750;\n\t\t\titemDef.modelRotation1 = 1454;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33319:\n\t\t\titemDef.name = \"Ganodermic platebody\";\n\t\t\titemDef.description = \"Ganodermic platebody.\";\n\t\t\titemDef.modelId = 60338;\n\t\t\titemDef.maleModel = 60339;\n\t\t\titemDef.femaleModel = 60339;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33320:\n\t\t\titemDef.name = \"Ganodermic platelegs\";\n\t\t\titemDef.description = \"Ganodermic platelegs.\";\n\t\t\titemDef.modelId = 60340;\n\t\t\titemDef.maleModel = 60341;\n\t\t\titemDef.femaleModel = 60341;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33321:\n\t\t\titemDef.name = \"Ganodermic helmet\";\n\t\t\titemDef.description = \"Ganodermic helmet.\";\n\t\t\titemDef.modelId = 60336;\n\t\t\titemDef.maleModel = 60337;\n\t\t\titemDef.femaleModel = 60337;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33322:\n\t\t\titemDef.name = \"Grotesque platebody\";\n\t\t\titemDef.description = \"Grosteq platebody.\";\n\t\t\titemDef.modelId = 60347;\n\t\t\titemDef.maleModel = 60348;\n\t\t\titemDef.femaleModel = 60348;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33323:\n\t\t\titemDef.name = \"Grotesque platelegs\";\n\t\t\titemDef.description = \"Grosteq platelegs.\";\n\t\t\titemDef.modelId = 60349;\n\t\t\titemDef.maleModel = 60350;\n\t\t\titemDef.femaleModel = 60350;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33324:\n\t\t\titemDef.name = \"Grotesque helmet\";\n\t\t\titemDef.description = \"Grosteqc helmet.\";\n\t\t\titemDef.modelId = 60345;\n\t\t\titemDef.maleModel = 60346;\n\t\t\titemDef.femaleModel = 60346;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33325:\n\t\t\titemDef.name = \"Grotesque cape\";\n\t\t\titemDef.description = \"Grosteq cape.\";\n\t\t\titemDef.modelId = 60351;\n\t\t\titemDef.maleModel = 60352;\n\t\t\titemDef.femaleModel = 60352;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33326:\n\t\t\titemDef.name = \"Stunning Hammer\";\n\t\t\titemDef.description = \"Has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60353;\n\t\t\titemDef.maleModel = 60354;\n\t\t\titemDef.femaleModel = 60354;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33327:\n\t\t\titemDef.name = \"Stunning Katagon platebody\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60356;\n\t\t\titemDef.maleModel = 60357;\n\t\t\titemDef.femaleModel = 60357;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33328:\n\t\t\titemDef.name = \"Stunning Katagon platelegs\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60358;\n\t\t\titemDef.maleModel = 60359;\n\t\t\titemDef.femaleModel = 60359;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33329:\n\t\t\titemDef.name = \"Stunning Katagon helmet\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60360;\n\t\t\titemDef.maleModel = 60361;\n\t\t\titemDef.femaleModel = 60361;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33331:\n\t\t\titemDef.name = \"Ancient platebody\";\n\t\t\titemDef.description = \"Ancient platebody.\";\n\t\t\titemDef.modelId = 60366;\n\t\t\titemDef.maleModel = 60367;\n\t\t\titemDef.femaleModel = 60367;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33332:\n\t\t\titemDef.name = \"Ancient platelegs\";\n\t\t\titemDef.description = \"Ancient platelegs.\";\n\t\t\titemDef.modelId = 60368;\n\t\t\titemDef.maleModel = 60369;\n\t\t\titemDef.femaleModel = 60369;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33334:\n\t\t\titemDef.name = \"Ancient boots\";\n\t\t\titemDef.description = \"Ancient boots.\";\n\t\t\titemDef.modelId = 60372;\n\t\t\titemDef.maleModel = 60372;\n\t\t\titemDef.femaleModel = 60372;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33335:\n\t\t\titemDef.name = \"Ancient gloves\";\n\t\t\titemDef.description = \"Ancient gloves.\";\n\t\t\titemDef.modelId = 60370;\n\t\t\titemDef.maleModel = 60371;\n\t\t\titemDef.femaleModel = 60371;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33336:\n\t\t\titemDef.name = \"Ancient helmet\";\n\t\t\titemDef.description = \"Ancient helmet.\";\n\t\t\titemDef.modelId = 60364;\n\t\t\titemDef.maleModel = 60365;\n\t\t\titemDef.femaleModel = 60365;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33341:\n\t\t\titemDef.name = \"Vanguard helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60391;\n\t\t\titemDef.maleModel = 60392;\n\t\t\titemDef.femaleModel = 60392;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33342:\n\t\t\titemDef.name = \"Vanguard platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60393;\n\t\t\titemDef.maleModel = 60394;\n\t\t\titemDef.femaleModel = 60394;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33343:\n\t\t\titemDef.name = \"Vanguard platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60395;\n\t\t\titemDef.maleModel = 60396;\n\t\t\titemDef.femaleModel = 60396;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33344:\n\t\t\titemDef.name = \"Vanguard boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60398;\n\t\t\titemDef.maleModel = 60398;\n\t\t\titemDef.femaleModel = 60398;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33345:\n\t\t\titemDef.name = \"Vanguard gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60373;\n\t\t\titemDef.maleModel = 60397;\n\t\t\titemDef.femaleModel = 60397;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33346:\n\t\t\titemDef.name = \"Celestial staff of light\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60401;\n\t\t\titemDef.maleModel = 60402;\n\t\t\titemDef.femaleModel = 60402;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 101 };\n\t\t\titemDef.originalModelColors = new int[] { 12 };\n\t\t\titemDef.maleOffset = -6;\n\t\t\titemDef.femaleOffset = -6;\n\t\t\tbreak;\n\n\t\tcase 33347:\n\t\t\titemDef.name = \"Hood of sorrow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60438;\n\t\t\titemDef.maleModel = 60403;\n\t\t\titemDef.femaleModel = 60403;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33348:\n\t\t\titemDef.name = \"Celestial robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60404;\n\t\t\titemDef.maleModel = 60405;\n\t\t\titemDef.femaleModel = 60405;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33349:\n\t\t\titemDef.name = \"Celestial robe legs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60406;\n\t\t\titemDef.maleModel = 60407;\n\t\t\titemDef.femaleModel = 60407;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33350:\n\t\t\titemDef.name = \"Primal 2h sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60408;\n\t\t\titemDef.maleModel = 60409;\n\t\t\titemDef.femaleModel = 60409;\n\t\t\titemDef.modelZoom = 1701;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.modelRotation2 = 1529;\n\t\t\titemDef.modelRotation1 = 1713;\n\t\t\titemDef.modelRotationY = 898;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33353:\n\t\t\titemDef.name = \"Primal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60417;\n\t\t\titemDef.maleModel = 60418;\n\t\t\titemDef.femaleModel = 60418;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.modelRotation2 = 1793;\n\t\t\titemDef.modelRotation1 = 1473;\n\t\t\titemDef.modelRotationY = 1121;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33354:\n\t\t\titemDef.name = \"Primal maul\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60419;\n\t\t\titemDef.maleModel = 60420;\n\t\t\titemDef.femaleModel = 60420;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33359:\n\t\t\titemDef.name = \"Primal rapier\";\n\t\t\titemDef.description = \"Good for fighting the ...\";\n\t\t\titemDef.modelId = 60433;\n\t\t\titemDef.maleModel = 60433;\n\t\t\titemDef.femaleModel = 60433;\n\t\t\titemDef.modelZoom = 1300;\n\t\t\titemDef.modelRotation1 = 1401;\n\t\t\titemDef.modelRotation2 = 1724;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 15;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33360:\n\t\t\titemDef.name = \"Primal spear\";\n\t\t\titemDef.description = \"Good for fighting the Corperal Beast.\";\n\t\t\titemDef.modelId = 60434;\n\t\t\titemDef.maleModel = 60435;\n\t\t\titemDef.femaleModel = 60435;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -10;\n\t\t\titemDef.maleOffset = -10;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33361:\n\t\t\titemDef.name = \"Primal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60436;\n\t\t\titemDef.maleModel = 60437;\n\t\t\titemDef.femaleModel = 60437;\n\t\t\titemDef.modelZoom = 1330;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 148;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33362:\n\t\t\titemDef.name = \"Chitin helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60445;\n\t\t\titemDef.maleModel = 60446;\n\t\t\titemDef.femaleModel = 60446;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33364:\n\t\t\titemDef.name = \"Chitin platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60447;\n\t\t\titemDef.maleModel = 60448;\n\t\t\titemDef.femaleModel = 60448;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33365:\n\t\t\titemDef.name = \"Chitin platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60449;\n\t\t\titemDef.maleModel = 60450;\n\t\t\titemDef.femaleModel = 60450;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33366:\n\t\t\titemDef.name = \"Chitin cape\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60443;\n\t\t\titemDef.maleModel = 60444;\n\t\t\titemDef.femaleModel = 60444;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33367:\n\t\t\titemDef.name = \"Supreme void helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60467;\n\t\t\titemDef.maleModel = 60464;\n\t\t\titemDef.femaleModel = 60464;\n\t\t\titemDef.modelZoom = 900;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33368:\n\t\t\titemDef.name = \"Supreme void robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60468;\n\t\t\titemDef.maleModel = 60465;\n\t\t\titemDef.femaleModel = 60465;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33369:\n\t\t\titemDef.name = \"Supreme void robe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60469;\n\t\t\titemDef.maleModel = 60466;\n\t\t\titemDef.femaleModel = 60466;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33370:\n\t\t\titemDef.name = \"Korasi's sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60471;\n\t\t\titemDef.maleModel = 60470;\n\t\t\titemDef.femaleModel = 60470;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 330;\n\t\t\titemDef.modelRotation2 = 1505;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\n\t\tcase 33371:\n\t\t\titemDef.name = \"Spiked slayer helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60475;\n\t\t\titemDef.maleModel = 60476;\n\t\t\titemDef.femaleModel = 60476;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33372:\n\t\t\titemDef.name = \"Slayer platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60478;\n\t\t\titemDef.maleModel = 60479;\n\t\t\titemDef.femaleModel = 60479;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33373:\n\t\t\titemDef.name = \"Slayer platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60474;\n\t\t\titemDef.maleModel = 60477;\n\t\t\titemDef.femaleModel = 60477;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33374:\n\t\t\titemDef.name = \"Slayer boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60472;\n\t\t\titemDef.maleModel = 60473;\n\t\t\titemDef.femaleModel = 60473;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33375:\n\t\t\titemDef.name = \"Blood Justiciar helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60482;\n\t\t\titemDef.maleModel = 60483;\n\t\t\titemDef.femaleModel = 60483;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33376:\n\t\t\titemDef.name = \"Blood Justiciar platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60484;\n\t\t\titemDef.maleModel = 60485;\n\t\t\titemDef.femaleModel = 60485;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33377:\n\t\t\titemDef.name = \"Blood justiciar platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60486;\n\t\t\titemDef.maleModel = 60487;\n\t\t\titemDef.femaleModel = 60487;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33378:\n\t\t\titemDef.name = \"Blood justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60488;\n\t\t\titemDef.maleModel = 60488;\n\t\t\titemDef.femaleModel = 60488;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33379:\n\t\t\titemDef.name = \"Blood justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60489;\n\t\t\titemDef.maleModel = 60490;\n\t\t\titemDef.femaleModel = 60490;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33380:\n\t\t\titemDef.name = \"Blood scythe of vitur\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60480;\n\t\t\titemDef.maleModel = 60481;\n\t\t\titemDef.femaleModel = 60481;\n\t\t\titemDef.modelZoom = 3850;\n\t\t\titemDef.modelRotation1 = 727;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33381:\n\t\t\titemDef.name = \"Skiller cape\";\n\t\t\titemDef.description = \"Skiller cape.\";\n\t\t\titemDef.modelId = 60494;\n\t\t\titemDef.maleModel = 60493;\n\t\t\titemDef.femaleModel = 60492;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33382:\n\t\t\titemDef.name = \"Justiciar faceguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33383:\n\t\t\titemDef.name = \"Justiciar faceguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33384:\n\t\t\titemDef.name = \"Justiciar faceguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33385:\n\t\t\titemDef.name = \"Justiciar faceguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33387:\n\t\t\titemDef.name = \"Justiciar faceguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33389:\n\t\t\titemDef.name = \"Justiciar faceguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33390:\n\t\t\titemDef.name = \"Justiciar chestguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33391:\n\t\t\titemDef.name = \"Justiciar chestguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33392:\n\t\t\titemDef.name = \"Justiciar chestguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33393:\n\t\t\titemDef.name = \"Justiciar chestguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33394:\n\t\t\titemDef.name = \"Justiciar chestguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33395:\n\t\t\titemDef.name = \"Justiciar chestguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33396:\n\t\t\titemDef.name = \"Justiciar legguards (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33397:\n\t\t\titemDef.name = \"Justiciar legguards (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33398:\n\t\t\titemDef.name = \"Justiciar legguards (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33399:\n\t\t\titemDef.name = \"Justiciar legguards (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33400:\n\t\t\titemDef.name = \"Justiciar legguards (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33401:\n\t\t\titemDef.name = \"Justiciar legguards (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33402:\n\t\t\titemDef.name = \"Pet andy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 50169;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33403:\n\t\t\titemDef.name = \"Pet mod divine\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 14283;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33404:\n\t\t\titemDef.name = \"Celestial fairy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60491;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 947 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 937, 11200 };\n\t\t\titemDef.originalModelColors = new int[] { 42663, 41883 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33405:\n\t\t\titemDef.name = \"Lava partyhat (red)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33406:\n\t\t\titemDef.name = \"Lava partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33407:\n\t\t\titemDef.name = \"Lava partyhat (cyan)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33408:\n\t\t\titemDef.name = \"Lava partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33409:\n\t\t\titemDef.name = \"Infernal partyhat (blue)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33410:\n\t\t\titemDef.name = \"Infernal partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33411:\n\t\t\titemDef.name = \"Infernal partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33412:\n\t\t\titemDef.name = \"Infernal partyhat (rainbow)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33413:\n\t\t\titemDef.name = \"Celestial partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33414:\n\t\t\titemDef.name = \"Blood partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33415:\n\t\t\titemDef.name = \"Shadow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33416:\n\t\t\titemDef.name = \"Light blue partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33417:\n\t\t\titemDef.name = \"Easter partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33418:\n\t\t\titemDef.name = \"Dark sparkle partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33419:\n\t\t\titemDef.name = \"Rainbow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33420:\n\t\t\titemDef.name = \"Fire partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33421:\n\t\t\titemDef.name = \"Pet star sprite\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60506;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33422:\n\t\t\titemDef.name = \"Stargaze Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33423:\n\t\t\titemDef.name = \"Star Dust\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Exchange\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 60496;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 279;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 47;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33424:\n\t\t\titemDef.name = \"Blood twisted bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32799;\n\t\t\titemDef.maleModel = 32674;\n\t\t\titemDef.femaleModel = 32674;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10318, 10334 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66 };\n\t\t\titemDef.modifiedModelColors = new int[] { 14236, 13223 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33425:\n\t\t\titemDef.name = \"Celestial crow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60507;\n\t\t\titemDef.modelZoom = 1000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10382 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10378, 10502 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33426:\n\t\t\titemDef.name = \"Celestial penguin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60508;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10343 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 16, 12, 20, 24, 8, 10332, 10337 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33427:\n\t\t\titemDef.name = \"Celestial snake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60509;\n\t\t\titemDef.modelZoom = 1800;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10644, 10512 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78, 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10413, 10405, 10524 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33428:\n\t\t\titemDef.name = \"Celestial scorpion\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60510;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 142 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 4884, 4636, 3974, 4525, 4645 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33429:\n\t\t\titemDef.name = \"Armadyl dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\tbreak;\n\n\t\tcase 33430:\n\t\t\titemDef.name = \"Guthix dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\tbreak;\n\n\t\tcase 33431:\n\t\t\titemDef.name = \"Zamorak dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\tbreak;\n\n\t\tcase 33432:\n\t\t\titemDef.name = \"Ancient dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\tbreak;\n\n\t\tcase 33433:\n\t\t\titemDef.name = \"Bandos dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\tbreak;\n\n\t\tcase 33434:\n\t\t\titemDef.name = \"Saradomin dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\tbreak;\n\n\t\tcase 33435:\n\t\t\titemDef.name = \"Celestial egg\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 7171;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelRotation2 = 16;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 476 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Hatch\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\tcase 33436:\n\t\t\titemDef.name = \"Elite void top (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10586;\n\t\t\titemDef.maleModel = 10687;\n\t\t\titemDef.anInt188 = 10681;\n\t\t\titemDef.femaleModel = 10694;\n\t\t\titemDef.anInt164 = 10688;\n\t\t\titemDef.modelZoom = 1221;\n\t\t\titemDef.modelRotation1 = 459;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33437:\n\t\t\titemDef.name = \"Elite void robe (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60528;\n\t\t\titemDef.maleModel = 60526;\n\t\t\titemDef.femaleModel = 60527;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33438:\n\t\t\titemDef.name = \"Blood chest\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60516;\n\t\t\titemDef.modelZoom = 2640;\n\t\t\titemDef.modelRotation1 = 114;\n\t\t\titemDef.modelRotation2 = 1883;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33439:\n\t\t\titemDef.name = \"Blood bird\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60517;\n\t\t\titemDef.modelZoom = 2768;\n\t\t\titemDef.modelRotation1 = 141;\n\t\t\titemDef.modelRotation2 = 1790;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.originalTextureColors = new int[] { 1946, 2983, 6084, 2735, 5053, 6082, 4013, 2733, 4011, 2880,\n\t\t\t\t\t8150 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66 };\n\t\t\tbreak;\n\n\t\tcase 33440:\n\t\t\titemDef.name = \"Blood Death\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60441;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33442:\n\t\t\titemDef.name = \"10 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33446:\n\t\t\titemDef.name = \"10 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33450:\n\t\t\titemDef.name = \"10 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33454:\n\t\t\titemDef.name = \"10 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33458:\n\t\t\titemDef.name = \"10 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33462:\n\t\t\titemDef.name = \"10 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33443:\n\t\t\titemDef.name = \"30 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33447:\n\t\t\titemDef.name = \"30 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33451:\n\t\t\titemDef.name = \"30 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33455:\n\t\t\titemDef.name = \"30 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33459:\n\t\t\titemDef.name = \"30 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33463:\n\t\t\titemDef.name = \"30 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33444:\n\t\t\titemDef.name = \"60 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33448:\n\t\t\titemDef.name = \"60 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33452:\n\t\t\titemDef.name = \"60 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33456:\n\t\t\titemDef.name = \"60 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33460:\n\t\t\titemDef.name = \"60 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33464:\n\t\t\titemDef.name = \"60 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33445:\n\t\t\titemDef.name = \"120 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33449:\n\t\t\titemDef.name = \"120 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33453:\n\t\t\titemDef.name = \"120 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33457:\n\t\t\titemDef.name = \"120 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33461:\n\t\t\titemDef.name = \"120 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33465:\n\t\t\titemDef.name = \"120 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33466:\n\t\t\titemDef.name = \"Deathtouched dart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60534;\n\t\t\titemDef.maleModel = 60533;\n\t\t\titemDef.femaleModel = 60533;\n\t\t\titemDef.modelZoom = 1053;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33467:\n\t\t\titemDef.name = \"Justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60535;\n\t\t\titemDef.maleModel = 60535;\n\t\t\titemDef.femaleModel = 60535;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33468:\n\t\t\titemDef.name = \"Justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31022;\n\t\t\titemDef.maleModel = 31006;\n\t\t\titemDef.femaleModel = 31013;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 2015;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 123, 70 };\n\t\t\titemDef.originalModelColors = new int[] { 6736, 59441 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33469:\n\t\t\titemDef.name = \"Magic mushroom\";\n\t\t\titemDef.description = \"offers a 10% droprate increase while this pet follows you.\";\n\t\t\titemDef.modelId = 60532;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33470:\n\t\t\titemDef.name = \"Twisted staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60538;\n\t\t\titemDef.maleModel = 60539;\n\t\t\titemDef.femaleModel = 60539;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33471:\n\t\t\titemDef.name = \"Cowboy hat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60540;\n\t\t\titemDef.maleModel = 60541;\n\t\t\titemDef.femaleModel = 60541;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 108;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33472:\n\t\t\titemDef.name = \"Stick\";\n\t\t\titemDef.description = \"Careful of that chub.\";\n\t\t\titemDef.modelId = 60545;\n\t\t\titemDef.maleModel = 60545;\n\t\t\titemDef.femaleModel = 60545;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33473:\n\t\t\titemDef.name = \"#1 Tob cape\";\n\t\t\titemDef.description = \"Reward to the first to complete tob solo and in a team.\";\n\t\t\titemDef.modelId = 60551;\n\t\t\titemDef.maleModel = 60550;\n\t\t\titemDef.femaleModel = 60550;\n\t\t\titemDef.modelZoom = 2295;\n\t\t\titemDef.modelRotation1 = 367;\n\t\t\titemDef.modelRotation2 = 1212;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33474:\n\t\t\titemDef.name = \"Supreme void upgrade kit\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4847;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 163;\n\t\t\titemDef.modelRotation2 = 73;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { -32709, 10295, 10304, 10287, 10275, 10283 };\n\t\t\titemDef.originalModelColors = new int[] { 10, 10, 10, 10, 10, 10 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33475:\n\t\t\titemDef.name = \"Hunter's penguin\";\n\t\t\titemDef.description = \"the one and only's pet.\";\n\t\t\titemDef.modelId = 60548;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33476:\n\t\t\titemDef.name = \"Chef Harambe\";\n\t\t\titemDef.description = \"I like to dip my balls in a deep fryer.\";\n\t\t\titemDef.modelId = 60921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33477:\n\t\t\titemDef.name = \"Void knight champion jr\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60463;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33478:\n\t\t\titemDef.name = \"Custom pet token\";\n\t\t\titemDef.description = \"Trade this to corey after filling out a form on the forums post custom pets\";\n\t\t\titemDef.modelId = 13838;\n\t\t\titemDef.modelZoom = 530;\n\t\t\titemDef.modelRotation1 = 415;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33479:\n\t\t\titemDef.name = \"Mr jaycorr\";\n\t\t\titemDef.description = \"The autistic one.\";\n\t\t\titemDef.modelId = 60592;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33480:\n\t\t\titemDef.name = \"Broom broom\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60593;\n\t\t\titemDef.maleModel = 60593;\n\t\t\titemDef.femaleModel = 60593;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33481:\n\t\t\titemDef.name = \"Test\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11773:\n\t\tcase 11771:\n\t\tcase 11770:\n\t\tcase 11772:\n\t\t\titemDef.anInt196 += 45;\n\t\t\tbreak;\n\t\tcase 22610:\n\t\t\titemDef.name = \"Vesta's spear (deg)\";\n\t\t\tbreak;\n\t\tcase 22614:\n\t\t\titemDef.name = \"Vesta's longsword (deg)\";\n\t\t\tbreak;\n\t\tcase 22616:\n\t\t\titemDef.name = \"Vesta's chainbody (deg)\";\n\t\t\tbreak;\n\t\tcase 22619:\n\t\t\titemDef.name = \"Vesta's plateskirt (deg)\";\n\t\t\tbreak;\n\t\tcase 22622:\n\t\t\titemDef.name = \"Statius's warhammer (deg)\";\n\t\t\tbreak;\n\t\tcase 22625:\n\t\t\titemDef.name = \"Statius's full helm (deg)\";\n\t\t\tbreak;\n\t\tcase 22628:\n\t\t\titemDef.name = \"Statius's platebody (deg)\";\n\t\t\tbreak;\n\t\tcase 22631:\n\t\t\titemDef.name = \"Statius's platelegs (deg)\";\n\t\t\tbreak;\n\t\tcase 22638:\n\t\t\titemDef.name = \"Morrigan's coif (deg)\";\n\t\t\tbreak;\n\t\tcase 22641:\n\t\t\titemDef.name = \"Morrigan's leather body (deg)\";\n\t\t\tbreak;\n\t\tcase 22644:\n\t\t\titemDef.name = \"Morrigan's leather chaps (deg)\";\n\t\t\tbreak;\n\t\tcase 22647:\n\t\t\titemDef.name = \"Zuriel's staff (deg)\";\n\t\t\tbreak;\n\t\tcase 22650:\n\t\t\titemDef.name = \"Zuriel's hood (deg)\";\n\t\t\tbreak;\n\t\tcase 22653:\n\t\t\titemDef.name = \"Zuriel's robe top (deg)\";\n\t\t\tbreak;\n\t\tcase 22656:\n\t\t\titemDef.name = \"Zuriel's robe bottom (deg)\";\n\t\t\tbreak;\n\n\t\tcase 13303:\n\t\t\titemDef.name = \"Event Key (Tarn)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13302:\n\t\t\titemDef.name = \"Event Key (Graardor)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13305:\n\t\t\titemDef.name = \"Tastey-Looking Key\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 2697:\n\t\t\titemDef.name = \"$10 Scroll\";\n\t\t\titemDef.description = \"Get donor status at a cheaper cost!\";\n\t\t\tbreak;\n\t\tcase 2698:\n\t\t\titemDef.name = \"$50 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Super Donator status.\";\n\t\t\tbreak;\n\t\tcase 2699:\n\t\t\titemDef.name = \"$100 Donator\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Extreme Donator status.\";\n\t\t\tbreak;\n\t\tcase 2700:\n\t\t\titemDef.name = \"$5 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Legendary Donator status.\";\n\t\t\tbreak;\n\t\tcase 1464:\n\t\t\titemDef.name = \"Vote ticket\";\n\t\t\titemDef.description = \"This ticket can be exchanged for a voting point.\";\n\t\t\tbreak;\n\n\t\tcase 11739:\n\t\t\titemDef.name = \"Daily reward box\";\n\t\t\titemDef.description = \"Open this box for a daily reward.\";\n\t\t\tbreak;\n\n\t\tcase 13066:// super set\n\t\tcase 12873:// barrows\n\t\tcase 12875:\n\t\tcase 12877:\n\t\tcase 12879:\n\t\tcase 12881:\n\t\tcase 12883:\n\t\tcase 12789:// clue box\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "public void use(Consume item)\r\n {\r\n int gain = item.getRating();\r\n health += gain;\r\n \r\n if (health > maxHealth)\r\n health = maxHealth;\r\n \r\n say(\"I gained \" + gain + \" health by using \" + item.getName() + \" and now have \" + health + \"/\" + maxHealth);\r\n \r\n items.remove(item);\r\n }", "public ItemCollection()\n\t{\n\t\t/*\n\t\t * master list of all consumable/miscellaneous items in the game\n\t\t * \n\t\t * to add a new item to the game, add the item to the itemCollections, and if it is a consumable,\n\t\t * add the effect to the useItem method in the switch statement. If it has no effect, don't add anything.\n\t\t * \n\t\t * sorted by NAME, VALUE, DESCRIPTION, TYPE\n\t\t */\n\t\t\n\t\t//CONSUMABLES\n\t\titemCollections.add(new Item(\"Polar Pop\", 1, \"Do you ever drink water?\", \"Consumable\"));\n\t\titemCollections.add(new Item(\"Klondike Bar\", 20, \"What would you do for this?\", \"Consumable\"));\n\t\titemCollections.add(new Item(\"Big tiddy goth GF\", 666, \"Vore.\", \"Consumable\"));\n\t\t\n\t\t//MISC, i.e. NO STATUS EFFECT\n\t\titemCollections.add(new Item(\"Sippy Cup\", 9, \"Somebody otta get their child their sippy cup back.\", \"Misc\"));\n\t\t\n\t\t/*\n\t\t * master list of equipment items in the game\n\t\t * \n\t\t * same as above\n\t\t * \n\t\t * sorted by NAME, VALUE, DESCRIPTION, TYPE, DAMAGE, DEFENSE, VITALITY, INTELLIGENCE, STRENGTH, WISDOM\n\t\t */\n\t\t\n\t\t//2H-WEAPONS\n\t\tequipmentCollections.add(new Equipment(\"A Big Boy's Sword\", 69, \"A two- handed sword for a big boy like you... You're growing up so fast!\", \"2H-Weapon\", 10, 0, 0, 0, 0, 0));\n\t\t\n\t\t//1H-WEAPONS\n\t\tequipmentCollections.add(new Equipment(\"Red Copper Pan\", 300, \"Hey there mothafuckas it's ya girl cathy, I got some brand new shit\", \"1H-Weapon\", 250, 0, 25, 3, 25, 3));\n\t\t\n\t\t//HEAD\n\t\tequipmentCollections.add(new Equipment(\"Broken Helmet\", 1, \"Leather helmet broken from thousands of years of war and abuse\", \"Head\", 0, 3, 0, 0, 0, 0));\n\t\t\n\t\t//TORSO\n\t\tequipmentCollections.add(new Equipment(\"Bloodied Tunic\", 1, \"Tunic covered in your own blood, you can see your wounds through its holes\", \"Torso\", 0, 2, 0, 0, 0, 0));\n\t\t\n\t\t//ARMS\n\t\tequipmentCollections.add(new Equipment(\"Torn Gloves\", 1, \"Gloves so torn they hardly protect your hands\", \"Arms\", 0, 1, 0, 0, 0, 0));\n\t\t\n\t\t//LEGS\n\t\tequipmentCollections.add(new Equipment(\"Muddy Pants\", 1, \"Cloth pants soiled in mud\", \"Legs\", 0, 2, 0, 0, 0, 0));\n\t\t\n\t\t//FEET\n\t\tequipmentCollections.add(new Equipment(\"Worn Boot\", 1, \"A boot with a hole in it, but where is the other one?\", \"Feet\", 0, 1, 0, 0, 0, 0));\n\t}", "public int removeItem(Item item, int n){\r\n if(unitMap.containsKey(item.getType())) {\r\n //if n negative number:\r\n if (n < 0) {\r\n System.out.println(NO_ITEMS_REMOVED_NEGATIVE + item.getType());\r\n return NO_ITEMS_ADDED;\r\n }\r\n //if not negative:\r\n else {\r\n if (unitMap.get(item.getType()) > n || unitMap.get(item.getType()) == n) {\r\n if(unitMap.get(item.getType()) == n) unitMap.remove(item.getType());\r\n else unitMap.put(item.getType(), unitMap.get(item.getType()) - n);\r\n availableCapacity += n*item.getVolume();\r\n return ZERO;\r\n }\r\n // if less then n items in the locker\r\n else {\r\n System.out.println(NO_ITEMS_REMOVED + n + NO_ITEMS_ADDED_NEW_N2 + item.getType());\r\n return NO_ITEMS_ADDED;\r\n }\r\n }\r\n }\r\n else {\r\n System.out.println(GENERAL_ERROR_MSG);\r\n return NO_ITEMS_ADDED;\r\n }\r\n }", "public static void reci(){\n\n GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(generatorBase, 1),\"XXX\", \"XXX\", \"XXX\", 'X', ItemHandler.ironHard));\n GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(generatorCombust, 1), \"XYX\", \"DFD\", \"XXX\", 'X', generatorBase, 'Y', \"gemDiamond\", 'D', \"dustRedstone\", 'F', Blocks.furnace));\n GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(tank, 1), \"XXX\", \"XYX\", \"XXX\", 'X', ItemHandler.ironHard, 'Y', \"blockGlass\"));\n GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(charcoalBlock, 1), \"CCC\", \"CCC\", \"CCC\", 'C', new ItemStack(Items.coal, 1, 1)));\n GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(Items.coal, 9, 1), new ItemStack(charcoalBlock)));\n }", "public void removeItemInventory(Item item){\r\n playerItem.remove(item);\r\n System.out.println(item.getName() + \" was removed from your inventory\");\r\n }", "public void removeItemInventory(Item item){\n playerItem.remove(item);\n System.out.println(item.getName() + \" was removed from your inventory\");\n }", "public final void consume(Player player, Collection<ItemStack> items)\n\t{\n\t\tInventoryHelper.remove(player, items);\n\t}", "public void consumeItems(Action action) {\r\n if (action.getConsumed().size() == 0) {\r\n return;\r\n }\r\n for (String str : action.getConsumed()) {\r\n currentLocation.removeArtefact(str);\r\n currentLocation.removeFurniture(str);\r\n currentLocation.removeCharacter(str);\r\n currentLocation.removePath(str);\r\n currentPlayer.removeInventory(str);\r\n // Check if consumed item is player health\r\n if (str.equals(\"health\")) {\r\n currentPlayer.setHealth(currentPlayer.getHealth() - 1);\r\n }\r\n }\r\n }", "private void updateShop(List<ItemType> items, int level) {\n\t\tfor (ItemType item : items) {\n\t\t\tString text = item.getTextureString();\n\t\t\ttext = item instanceof SpecialType ? text\n\t\t\t\t\t: text.substring(0, text.length() - 1)\n\t\t\t\t\t\t\t+ Integer.toString(level);\n\t\t\tTexture texture = textureManager.getTexture(text);\n\t\t\tImageButton button = generateItemButton(texture);\n\n\t\t\tbutton.addListener(new ClickListener() {\n\t\t\t\tpublic void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\tstatus.setText(item.getName());\n\t\t\t\t\tif (selectedHero == null) {\n\t\t\t\t\t\tstatus.setText(\"Unsuccessful shopping, No hero exist.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (selectedHero.getHealth() <= 0) {\n\t\t\t\t\t\tstatus.setText(\n\t\t\t\t\t\t\t\t\"Your Commander is dead. Can't buy anything.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tboolean enoughResources = checkCost(selectedHero.getOwner(),\n\t\t\t\t\t\t\titem);\n\t\t\t\t\tif (enoughResources) {\n\t\t\t\t\t\tif (item instanceof WeaponType) {\n\t\t\t\t\t\t\tWeapon weapon = new Weapon((WeaponType) item,\n\t\t\t\t\t\t\t\t\tlevel);\n\t\t\t\t\t\t\tselectedHero.addItemToInventory(weapon);\n\t\t\t\t\t\t\tstatus.setText(boughtString + weapon.getName()\n\t\t\t\t\t\t\t\t\t+ \"(Weapon) for \"\n\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t} else if (item instanceof ArmourType) {\n\t\t\t\t\t\t\tArmour armour = new Armour((ArmourType) item,\n\t\t\t\t\t\t\t\t\tlevel);\n\t\t\t\t\t\t\tselectedHero.addItemToInventory(armour);\n\t\t\t\t\t\t\tstatus.setText(boughtString + armour.getName()\n\t\t\t\t\t\t\t\t\t+ \"(Armour) for \"\n\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tboolean transactSuccess;\n\t\t\t\t\t\t\tSpecial special = new Special((SpecialType) item);\n\t\t\t\t\t\t\ttransactSuccess = selectedHero\n\t\t\t\t\t\t\t\t\t.addItemToInventory(special);\n\t\t\t\t\t\t\tif (transactSuccess) {\n\t\t\t\t\t\t\t\tstatus.setText(boughtString + special.getName()\n\t\t\t\t\t\t\t\t\t\t+ \"(Special) for \"\n\t\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tstatus.setText(\n\t\t\t\t\t\t\t\t\t\t\"Unsuccessful Shopping, can only hold 4 specials\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tselectedHero.setStatsChange(true);\n\t\t\t\t\t\ttransact(selectedHero.getOwner(), item);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString mes = \"Not enough resources.\";\n\t\t\t\t\t\tstatus.setText(mes);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tprivate boolean checkCost(int owner, ItemType item) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t\tscrollTable.add(button).width(iconSize).height(iconSize).top();\n\t\t\tString stats = getItemStats(item, level);\n\t\t\tString cost = getItemCost(item, level);\n\t\t\tscrollTable.add(new Label(stats, skin)).width(iconSize).top()\n\t\t\t\t\t.left();\n\t\t\tscrollTable.add(new Label(cost, skin)).width(iconSize).top().left();\n\t\t\tscrollTable.row();\n\t\t}\n\t}", "private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}", "public interface Item {\n\t/**\n\t * Use the item on the player. If it's gold, it is added to his inventory. Else, it directly modify the player stats.\n\t * @param character - the player ( a monster cannot use an item) who's using an item\n\t * @return the player with his new stats due to the item\n\t */\n\tpublic Character isUsedBy(Character character);\n}", "@SideOnly(Side.CLIENT)\n/* */ public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List, boolean par4) {\n/* 59 */ if (GuiScreen.isShiftKeyDown()) {\n/* 60 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome1.lore\"));\n/* 61 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome2.lore\"));\n/* 62 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome3.lore\"));\n/* 63 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 64 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome4.lore\"));\n/* 65 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome5.lore\"));\n/* 66 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 67 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome6.lore\"));\n/* 68 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome7.lore\"));\n/* 69 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome8.lore\"));\n/* 70 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 71 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome9.lore\"));\n/* 72 */ } else if (GuiScreen.isCtrlKeyDown()) {\n/* 73 */ par3List.add(StatCollector.translateToLocal(\"item.FRVisPerSecond.lore\"));\n/* 74 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRAerCost.lore\") + (AerCost / 100.0D * 10.0D));\n/* 75 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRTerraCost.lore\") + (TerraCost / 100.0D * 10.0D));\n/* 76 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRIgnisCost.lore\") + (IgnisCost / 100.0D * 10.0D));\n/* 77 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRPerditioCost.lore\") + (PerditioCost / 100.0D * 10.0D));\n/* */ } else {\n/* */ \n/* 80 */ par3List.add(StatCollector.translateToLocal(\"item.FRShiftTooltip.lore\"));\n/* 81 */ par3List.add(StatCollector.translateToLocal(\"item.FRViscostTooltip.lore\"));\n/* */ } \n/* */ \n/* 84 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* */ }", "private void addRoomItems(int itemsToAdd)\n {\n\n // Adds up to 3 random items to a random room .\n if (!(itemsToAdd == 0)){\n\n for(int j = 0; j < itemsToAdd; j++){\n Item chooseItem = chooseValidItem(); \n Room chooseRoom = rooms.get(random.nextInt(rooms.size()));\n\n chooseRoom.getInventory().getItems().add(chooseItem);\n System.out.println(chooseRoom.getName()+\": \"+chooseItem.getName());\n\n }\n }\n }", "@Override\n public void applyItem() {\n Player player;\n if (Battle.getRunningBattle().getTurn() % 2 == 1)\n player = Battle.getRunningBattle().getPlayer2();\n else\n player = Battle.getRunningBattle().getPlayer1();\n\n if (player.getInGameCards().size() == 0)\n return;\n Random random = new Random();\n int randomIndex = random.nextInt(player.getInGameCards().size());\n while (!(getPlayer().getInGameCards().get(randomIndex) instanceof Warrior)) {\n randomIndex = random.nextInt(getPlayer().getInGameCards().size());\n }\n\n Buff buff = new PoisonBuff(1, true);\n buff.setWarrior((Warrior) player.getInGameCards().get(randomIndex));\n Battle.getRunningBattle().getPassiveBuffs().add(buff);\n }", "public static List<RecipeItemSelector> getRequireItemsFromRecipe(IRecipe recipe){\n\t\tif(recipe instanceof ShapelessRecipes){\n\t\t\tList<ItemStack> isList = ((ShapelessRecipes)recipe).recipeItems;\n\t\t\treturn isList.stream().map(input -> RecipeItemSelector.of(input, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapedRecipes){\n\t\t\tItemStack[] isarray = ((ShapedRecipes)recipe).recipeItems;\n\n\t\t\treturn Lists.<ItemStack>newArrayList(isarray).stream().map( is ->RecipeItemSelector.of(is, null)).collect(Collectors.toList());\n\t\t}\n\t\tif(recipe instanceof ShapelessOreRecipe){\n\n\n\n\t\t\tList<RecipeItemSelector> list1 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof ItemStack)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of((ItemStack)obj, null)).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> list2 = (((ShapelessOreRecipe)recipe).getInput()).stream().filter(obj -> obj instanceof String)\n\t\t\t\t\t.map(obj -> RecipeItemSelector.of(null, new OreDict((String)obj))).collect(Collectors.toList());\n\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\trt.addAll(list1);\n\t\t\trt.addAll(list2);\n\t\t\treturn rt;\n\n\t\t}\n\t\tif(recipe instanceof ShapedOreRecipe){\n\t\t\tObject[] isarray = ((ShapedOreRecipe)recipe).getInput();\n\t\t\tList<Object> objList = Lists.newArrayList(isarray);\n\t\t\tobjList.stream().flatMap(obj ->{\n\t\t\t\t//\t\t\t\t\tUnsagaMod.logger.trace(\"recipe\", input.getClass());\n\t\t\t\tList<RecipeItemSelector> rt = Lists.newArrayList();\n\t\t\t\tif(obj instanceof List){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"array\");\n\t\t\t\t\trt.addAll(convertListTypeObject(obj));\n\t\t\t\t}\n\t\t\t\tif(obj instanceof ItemStack){\n\t\t\t\t\t//\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", \"itemstack\");\n\t\t\t\t\tList<RecipeItemSelector> list = Lists.newArrayList(RecipeItemSelector.of((ItemStack)obj, null));\n\t\t\t\t\trt.addAll(list);\n\t\t\t\t}\n\n\t\t\t\t//\t\t\t\t\tif(objs!=null){\n\t\t\t\t//\t\t\t\t\t\tObject[] objarray = (Object[]) objs;\n\t\t\t\t//\t\t\t\t\t\treturn ListHelper.stream(objarray).map(new Function<Object,Tuple<ItemStack,OreDict>>(){\n\t\t\t\t//\n\t\t\t\t//\t\t\t\t\t\t\t@Override\n\t\t\t\t//\t\t\t\t\t\t\tpublic Tuple<ItemStack, OreDict> apply(Object input) {\n\t\t\t\t//\t\t\t\t\t\t\t\tUnsagaMod.logger.trace(\"shaped\", input);\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof ItemStack){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of((ItemStack)input,null);\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\tif(input instanceof String){\n\t\t\t\t//\t\t\t\t\t\t\t\t\treturn Tuple.of(null, new OreDict((String) input));\n\t\t\t\t//\t\t\t\t\t\t\t\t}\n\t\t\t\t//\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t//\t\t\t\t\t\t\t}}\n\t\t\t\t//\t\t\t\t\t\t).getList();\n\t\t\t\t//\t\t\t\t\t}\n\n\t\t\t\treturn rt.stream();\n\t\t\t});\n\t\t}\n\t\tHSLib.logger.trace(\"recipeutil\", \"どのレシピにも合致しない?\");\n\t\treturn Lists.newArrayList();\n\t}", "public static void removeItemFromInventory(final Inventory inventory, final ItemStack item) throws InvalidParameterException, FailedTransactionException {\n if (!isValidInventory(inventory)) {\n throw new InvalidParameterException(\"Cannot remove item from an invalid inventory.\");\n }\n if (!ItemAPI.isValidItem(item)) {\n throw new InvalidParameterException(\"Cannot remove an invalid item from an inventory.\");\n }\n if (!hasRequiredItem(inventory, item, item.getAmount())) {\n throw new FailedTransactionException(\"That inventory does not have the amount of times to remove.\");\n }\n ItemStack[] savedInventory = duplicateInventory(inventory.getContents());\n try {\n int remaining = item.getAmount();\n for (int i = 0; i < inventory.getSize(); i++) {\n ItemStack currentItem = inventory.getItem(i);\n if (ItemAPI.isSimilarItem(currentItem, item)) {\n int currentItemAmount = currentItem.getAmount();\n // If this item can satisfy the remaining amount with some left over\n // then lower the amount of that item and break out of the loop\n if (currentItemAmount > remaining) {\n currentItem.setAmount(currentItemAmount - remaining);\n remaining = 0;\n break;\n }\n // If this item can satisfy the remaining amount exactly\n // then remove the item from the inventory and break out of the loop\n else if (currentItemAmount == remaining) {\n inventory.setItem(i, null);\n remaining = 0;\n break;\n }\n // Otherwise this item still leaves some remaining, so\n // remove the item from the inventory and reduce the remaining\n else {\n inventory.setItem(i, null);\n remaining -= currentItemAmount;\n }\n }\n }\n if (remaining != 0) {\n throw new FailedTransactionException(\"Was not able to remove the exact amount of that item!\");\n }\n }\n catch (FailedTransactionException exception) {\n // Restore the inventory to its previous state\n inventory.setContents(savedInventory);\n throw exception;\n }\n }", "public void computeItemStats()\n\t{\n\t\tfor(Entry<String,Item> item: urgotItems.getItems().entrySet())\n\t\t{\n\t\t\t// Add every item stat value.\n\t\t\titem.getValue().addItemStats(urgot);\n\t\t}\n\t\t\n\t\tfor(Entry<String,Item> item: urgotItems.getItems().entrySet())\n\t\t{\n\t\t\t// Add passives after all stats have been added.\n\t\t\titem.getValue().applyPassive(urgot);\n\t\t}\n\t}", "public void useItem(int num) {\r\n\t\tif (num < currentPlayer.getConsumables().size()) {\r\n\t\t\tString item = currentPlayer.getConsumables().get(num);\r\n\t\t\t// Find corresponding name\r\n\t\t\tif (item.contentEquals(\"LargeHealing\")) {\r\n\t\t\t\taddEvent(\"``\"+currentName+\"`` used a **Large Health Potion** :gift_heart:\",true);\r\n\t\t\t\tupdateHealth(currentPlayer,2);\r\n\t\t\t\tcurrentPlayer.getConsumables().remove(num);\r\n\t\t\t\tupdateBoardNoImageChange();\r\n\t\t\t} else if (item.contentEquals(\"SmallHealing\")) {\r\n\t\t\t\taddEvent(\"``\"+currentName+\"`` used a **Small Health Potion** :heartpulse:\",true);\r\n\t\t\t\tupdateHealth(currentPlayer,1);\r\n\t\t\t\tcurrentPlayer.getConsumables().remove(num);\r\n\t\t\t\tupdateBoardNoImageChange();\r\n\t\t\t} else if (item.contentEquals(\"Swift\")) {\r\n\t\t\t\taddEvent(\"``\"+currentName+\"`` used a **Potion of Swiftness** :ice_skate:\",true);\r\n\t\t\t\tcurrentPlayer.updateBoots(1);\r\n\t\t\t\tcurrentPlayer.getConsumables().remove(num);\r\n\t\t\t} else if (item.contentEquals(\"Strength\")) {\r\n\t\t\t\taddEvent(\"``\"+currentName+\"`` used a **Potion of Strength** :muscle:\",true);\r\n\t\t\t\tcurrentPlayer.updateSwords(2);\r\n\t\t\t\tcurrentPlayer.getConsumables().remove(num);\r\n\t\t\t}\r\n\t\t}\r\n\t\tupdateInfo(currentPlayer, false);\r\n\t\tupdatePlayArea(currentPlayer, false);\r\n\t}", "public void addItemInventory(Item item){\n playerItem.add(item);\n System.out.println(item.getDescription() + \" was taken \");\n System.out.println(item.getDescription() + \" was removed from the room\"); // add extra information to inform user that the item has been taken\n }", "private static void registerCustomRecipes() {\n if(Configs.isEnabled(BloodContainerConfig.class) && Configs.isEnabled(DarkTankConfig.class)) {\n for(int i = 0; i < BloodContainerConfig.getContainerLevels(); i++) {\n \tItemStack input = new ItemStack(BloodContainer.getInstance(), 1, i);\n if(!BloodContainer.getInstance().isCreativeItem(input)) {\n \tfinal int capacity = BloodContainer.getInstance().getCapacity(input);\n \tItemStack result = new ItemStack(DarkTank.getInstance());\n GameRegistry.addRecipe(new ObservableShapelessRecipe(result,\n new Object[]{\n \t\t\tinput,\n \t\t},\n new IRecipeOutputObserver() {\n\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic ItemStack getRecipeOutput(\n\t\t\t\t\t\t\t\t\t\tInventoryCrafting grid,\n\t\t\t\t\t\t\t\t\t\tItemStack output) {\n\t\t\t\t\t\t\t\t\tItemBlockFluidContainer container = (ItemBlockFluidContainer) output.getItem();\n\t\t\t\t \tcontainer.setCapacity(output, capacity);\n\t\t\t\t \tItemStack input = null;\n\t\t\t\t \tfor(int j = 0; j < grid.getSizeInventory(); j++) {\n\t\t\t\t \t\t\tItemStack element = grid.getStackInSlot(j);\n\t\t\t\t \t\t\tif(element != null && element.getItem() == BloodContainer.getInstance()) {\n\t\t\t\t \t\t\t\tinput = element;\n\t\t\t\t \t\t\t}\n\t\t\t\t \t}\n\t\t\t\t \tif(input == null) {\n\t\t\t\t \t\treturn null;\n\t\t\t\t \t}\n\t\t\t\t \tFluidStack resource = BloodContainer.getInstance().getFluid(input);\n\t\t\t\t \tif(resource != null && resource.amount > 0) {\n\t\t\t\t \t\tcontainer.fill(output, resource, true);\n\t\t\t\t \t}\n\t\t\t\t\t\t\t\t\treturn output;\n\t\t\t\t\t\t\t\t}\n \t\n }\n ));\n }\n }\n }\n\n // Entangled Chalice unique id\n if(Configs.isEnabled(EntangledChaliceConfig.class)\n && Configs.isEnabled(DarkGemConfig.class)\n && Configs.isEnabled(CorruptedTearConfig.class)) {\n Item tear = CorruptedTearConfig._instance.getItemInstance();\n GameRegistry.addRecipe(new ObservableShapedRecipe(3, 3, new ItemStack[]{\n new ItemStack(Items.gold_ingot), new ItemStack(tear), new ItemStack(Items.gold_ingot),\n new ItemStack(DarkGem.getInstance()), new ItemStack(Items.gold_ingot), new ItemStack(DarkGem.getInstance()),\n new ItemStack(Items.gold_ingot), new ItemStack(Items.gold_ingot), new ItemStack(Items.gold_ingot)\n }, new ItemStack(Item.getItemFromBlock(EntangledChalice.getInstance()), 2), new IRecipeOutputObserver() {\n @Override\n public ItemStack getRecipeOutput(InventoryCrafting craftingGrid, ItemStack output) {\n ItemStack newStack = output.copy();\n EntangledChaliceItem item = (EntangledChaliceItem) Item.getItemFromBlock(EntangledChalice.getInstance());\n item.setNextTankID(newStack);\n return newStack;\n }\n }));\n\n GameRegistry.addRecipe(new ObservableShapedRecipe(3, 3, new ItemStack[]{\n new ItemStack(Items.gold_ingot), new ItemStack(tear), new ItemStack(Items.gold_ingot),\n new ItemStack(DarkGem.getInstance()), new ItemStack(Item.getItemFromBlock(EntangledChalice.getInstance()), 1, OreDictionary.WILDCARD_VALUE), new ItemStack(DarkGem.getInstance()),\n new ItemStack(Items.gold_ingot), new ItemStack(Items.gold_ingot), new ItemStack(Items.gold_ingot)\n }, new ItemStack(Item.getItemFromBlock(EntangledChalice.getInstance()), 2), new IRecipeOutputObserver() {\n @Override\n public ItemStack getRecipeOutput(InventoryCrafting craftingGrid, ItemStack output) {\n ItemStack newStack = output.copy();\n EntangledChaliceItem item = (EntangledChaliceItem) Item.getItemFromBlock(EntangledChalice.getInstance());\n String tankID = item.getTankID(craftingGrid.getStackInSlot(4));\n item.setTankID(newStack, tankID);\n return newStack;\n }\n }));\n }\n \n // Dark tank upgrades\n if(Configs.isEnabled(DarkTankConfig.class)) {\n \tfor(int i = 1; i < 9; i++) {\n \t\tItemBlockFluidContainer tankItem = (ItemBlockFluidContainer) Item.getItemFromBlock(DarkTank.getInstance());\n\t \tGameRegistry.addRecipe(new ItemBlockFluidContainerCombinationRecipe(i, tankItem));\n \t}\n }\n\n // Blood Extractor upgrades\n if(Configs.isEnabled(BloodExtractorConfig.class) && Configs.isEnabled(DarkTankConfig.class)) {\n for(int i = 1; i < 9; i++) {\n GameRegistry.addRecipe(new BloodExtractorCombinationRecipe(i));\n }\n }\n \t\n if (Configs.isEnabled(EnvironmentalAccumulatorConfig.class)) {\n ItemStack outputStack = null;\n String recipeName = null;\n \n // Add the different weather container recipes\n if (Configs.isEnabled(WeatherContainerConfig.class)) {\n\t ItemStack emptyContainer = WeatherContainer.createItemStack(WeatherContainerTypes.EMPTY, 1);\n\t WeatherType[] weatherInputs = {WeatherType.CLEAR, WeatherType.LIGHTNING, WeatherType.RAIN};\n\t WeatherType[] weatherOutputs = {WeatherType.RAIN, WeatherType.RAIN, WeatherType.CLEAR};\n\t \n\t for (int i=0; i < weatherInputs.length; ++i) {\n recipeName = \"WeatherContainer\" + weatherInputs[i].getClass().getSimpleName();\n outputStack = WeatherContainer.createItemStack(\n WeatherContainerTypes.getWeatherContainerType(weatherInputs[i]), 1);\n\n EnvironmentalAccumulator.getInstance().getRecipeRegistry().registerRecipe(\n recipeName,\n new EnvironmentalAccumulatorRecipeComponent(\n emptyContainer,\n weatherInputs[i]\n ),\n new EnvironmentalAccumulatorRecipeComponent(\n outputStack,\n weatherOutputs[i]\n ),\n new EnvironmentalAccumulatorRecipeProperties()\n );\n\t }\n }\n\n // Add biome extract recipes\n if(Configs.isEnabled(BiomeExtractConfig.class) && BiomeExtractConfig.hasRecipes) {\n ItemStack emptyContainer = new ItemStack(BiomeExtract.getInstance());\n ItemStack filledContainer = BiomeExtract.getInstance().createItemStack(null, 1); // Still dummy!\n filledContainer.setItemDamage(OreDictionary.WILDCARD_VALUE);\n EnvironmentalAccumulator.getInstance().getRecipeRegistry().registerRecipe(\n recipeName,\n new EnvironmentalAccumulatorRecipeComponent(\n emptyContainer,\n WeatherType.ANY\n ),\n new EnvironmentalAccumulatorRecipeComponent(\n filledContainer,\n WeatherType.ANY\n ),\n new EnvironmentalAccumulatorRecipeProperties(1000, BiomeExtractConfig.envirAccCooldownTime, -1.0D, null, new EnvironmentalAccumulatorRecipeProperties.IEAResultOverride() {\n @Override\n public ItemStack getResult(IBlockAccess world, int x, int y, int z, ItemStack originalResult) {\n World worldSafe = (World) world;\n BiomeGenBase biome = worldSafe.getBiomeGenForCoords(x, z);\n if(BiomeExtractConfig._instance.isCraftingBlacklisted(biome.biomeID)) {\n return BiomeExtract.getInstance().createItemStack(null, 1);\n } else {\n return BiomeExtract.getInstance().createItemStack(biome, 1);\n }\n }\n })\n );\n }\n }\n }", "private void autoship(World world, EntityPlayer player, List<ItemStack> list) {\n Iterator<ItemStack> it = list.iterator();\n while (it.hasNext()) {\n ItemStack stack = it.next();\n if (BlockStorage.hasShippedItem(world, player, stack)) {\n it.remove();\n }\n }\n }", "@Override\n @Test\n public void equipTest() {\n Axe axes;\n Sword sword;\n Staff staff;\n Spear spear;\n Luz luz;\n Oscuridad oscuridad;\n Anima anima;\n Bow bow;\n axes = new Axe(\"Axe\", 20, 1, 2);\n sword = new Sword(\"Sword\", 20, 1, 2);\n spear = new Spear(\"Spear\", 20, 1, 2);\n staff = new Staff(\"Staff\", 20, 1, 2);\n bow = new Bow(\"Bow\", 20, 2, 3);\n anima = new Anima(\"Anima\", 20, 1, 2);\n luz = new Luz(\"Luz\", 20, 1, 2);\n oscuridad = new Oscuridad(\"Oscuridad\", 20, 1, 2);\n sorcererAnima.addItem(axes);\n sorcererAnima.equipItem(axes);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(axes);\n sorcererAnima.addItem(sword);\n sorcererAnima.equipItem(sword);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(sword);\n sorcererAnima.addItem(spear);\n sorcererAnima.equipItem(spear);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(spear);\n sorcererAnima.addItem(staff);\n sorcererAnima.equipItem(staff);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(staff);\n sorcererAnima.addItem(bow);\n sorcererAnima.equipItem(bow);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(bow);}", "public void testNormalRemoveItem()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkRemove(pmf,\r\n HashMap1.class,\r\n ContainerItem.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public ItemStack removeItems(int paramInt1, int paramInt2)\r\n/* 31: */ {\r\n/* 32: 47 */ if (this.a[paramInt1] != null)\r\n/* 33: */ {\r\n/* 34: 48 */ if (this.a[paramInt1].stackSize <= paramInt2)\r\n/* 35: */ {\r\n/* 36: 49 */ ItemStack localamj = this.a[paramInt1];\r\n/* 37: 50 */ this.a[paramInt1] = null;\r\n/* 38: 51 */ return localamj;\r\n/* 39: */ }\r\n/* 40: 53 */ ItemStack localamj = this.a[paramInt1].split(paramInt2);\r\n/* 41: 54 */ if (this.a[paramInt1].stackSize == 0) {\r\n/* 42: 55 */ this.a[paramInt1] = null;\r\n/* 43: */ }\r\n/* 44: 57 */ return localamj;\r\n/* 45: */ }\r\n/* 46: 60 */ return null;\r\n/* 47: */ }", "@Override\n public void onDeleteItemFromBench(CharacterItem item) {\n }", "public abstract boolean canRemoveItem(Player player, Item item, int slot);", "public interface ICastingRecipe extends ICommonRecipe<ICastingContainer> {\n @Override\n default ItemStack getToastSymbol() {\n return new ItemStack(getType() == TinkerRecipeTypes.CASTING_TABLE.get() ? TinkerSmeltery.searedTable : TinkerSmeltery.searedBasin);\n }\n\n /**\n * Gets the amount of fluid required for this recipe\n * @param inv Inventory instance\n * @return Fluid amount when using the fluid in the inventory\n */\n int getFluidAmount(ICastingContainer inv);\n\n /**\n * @return true if the cast item is consumed on crafting\n */\n boolean isConsumed();\n\n /**\n * @return true if the recipe output is placed into the casting input slot\n */\n boolean switchSlots();\n\n /**\n * @param inv ICastingInventory for casting recipe\n * @return cooling time for the output.\n */\n int getCoolingTime(ICastingContainer inv);\n\n /**\n * Calculates the cooling time for a recipe based on the amount and temperature\n * @param temperature Temperature baseline in celsius\n * @param amount Output amount\n * @return Cooling time based on the given inputs\n */\n static int calcCoolingTime(int temperature, int amount) {\n // the time in melting reipes assumes updating 5 times a second\n // we update 20 times a second, so get roughly a quart of those values\n return IMeltingRecipe.calcTimeForAmount(temperature, amount);\n }\n\n /**\n * Calculates the cooling time for a recipe based on the fluid input\n * @param fluid Fluid input\n * @return Time for the recipe\n */\n static int calcCoolingTime(FluidStack fluid) {\n return calcCoolingTime(fluid.getFluid().getAttributes().getTemperature(fluid) - 300, fluid.getAmount());\n }\n}", "public void dropEntireInventory(World world, BlockPos pos, int id, int metadata) {\n int x = pos.getX();\n int y = pos.getY();\n int z = pos.getZ();\n TileEntity tileEntity = world.getTileEntity(pos);\n if (tileEntity != null && tileEntity instanceof IInventory) {\n IInventory inventory = (IInventory) tileEntity;\n for (int i = 0; i < inventory.getSizeInventory(); ++i) {\n ItemStack stack = inventory.getStackInSlot(i);\n if (stack != null) {\n Random random = new Random();\n float sx = random.nextFloat() * 0.8F + 0.1F;\n float sy = random.nextFloat() * 0.8F + 0.1F;\n float sz = random.nextFloat() * 0.8F + 0.1F;\n while (stack.stackSize > 0) {\n int qty = random.nextInt(21) + 10;\n if (qty > stack.stackSize) {\n qty = stack.stackSize;\n }\n stack.stackSize -= qty;\n EntityItem eitem = new EntityItem(world, x + sx, y + sy, z + sz, new ItemStack(stack.getItem(), qty, stack.getItemDamage()));\n if (stack.hasTagCompound()) {\n eitem.getEntityItem().setTagCompound((NBTTagCompound) stack.getTagCompound().copy());\n }\n float displacement = 0.05F;\n eitem.motionX = (float) random.nextGaussian() * displacement;\n eitem.motionY = (float) random.nextGaussian() * displacement + 0.2F;\n eitem.motionZ = (float) random.nextGaussian() * displacement;\n world.spawnEntityInWorld(eitem);\n }\n }\n }\n }\n }", "public void initItems() {\n List<Integer> emptySlots = NimbleServer.enchantmentConfig.getEmptySlots();\n for (int i = 0; i < getSize(); i++) {\n if(!(emptySlots.contains(i))) {\n getInventory().setItem(i, getFiller());\n }\n }\n }", "@EventHandler (priority = EventPriority.HIGHEST)\n \tpublic void onCrafting(CraftItemEvent event){\n \t\tif(event.isCancelled())\n \t\t\treturn;\n \n \t\tHumanEntity he = event.getWhoClicked();\n \t\tif((he instanceof Player)){\n \t\t\tPlayer player = (Player) he;\n \t\t\tAlertType type = AlertType.ILLEGAL;\n \t\t\tif(player.getGameMode() == GameMode.CREATIVE){\n \t\t\t\tif(plugin.isBlocked(player, PermissionNodes.MAKE_ANYTHING, player.getWorld())){\n \t\t\t\t\ttype = AlertType.LEGAL;\n \t\t\t\t}\n \t\t\t\tASRegion region = plugin.getRegionManager().getRegion(player.getLocation());\n \t\t\t\tif(region != null){\n \t\t\t\t\tif(!region.getConfig().isBlocked(event.getRecipe().getResult().getType(), ListType.CRAFTING)){\n \t\t\t\t\t\ttype = AlertType.LEGAL;\n \t\t\t\t\t}\n \t\t\t\t}else{\n \t\t\t\t\tif(config.get(player.getWorld()).isBlocked(event.getRecipe().getResult().getType(), ListType.CRAFTING)){\n \t\t\t\t\t\ttype = AlertType.LEGAL;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}else{\n \t\t\t\ttype = AlertType.LEGAL;\n \t\t\t}\n \t\t\tString message = ChatColor.YELLOW + player.getName() + ChatColor.WHITE + (type == AlertType.ILLEGAL ? \" tried to craft an item\" : \" crafted an item\");\n \t\t\tString playerMessage = plugin.getMessage(\"blocked-action.crafting\");\n \t\t\tplugin.getAlerts().alert(message, player, playerMessage, type, AlertTrigger.CRAFTING);\n \t\t\tif(type == AlertType.ILLEGAL){\n \t\t\t\tevent.setCancelled(true);\n \t\t\t}\n \t\t}\n \t}", "public abstract boolean depleteItem();", "public ItemStack getResultOf(ItemStack[] contents) {\n for(int i=0;i<9;i++){ \r\n if(this.isBlankRareEssence(contents[i])){\r\n int hashCode = this.getRecipeHashCode(contents);\r\n \r\n RareItemProperty rip = this.essenceRecipes.get(hashCode);\r\n \r\n if(rip != null){\r\n return this.generateRareEssence(rip);\r\n }\r\n \r\n return null;\r\n }\r\n }\r\n \r\n ItemStack isAddPropertiesTo = null;\r\n Map<RareItemProperty,Integer> propertyLevels = new HashMap<>();\r\n \r\n // allow one itemstack to add properties to\r\n // and rare essences of a specific type\r\n // otherwise it's an invalid recipe\r\n for(ItemStack is : contents) {\r\n if(is != null && !is.getType().equals(Material.AIR)){\r\n if(is.getType().equals(Material.MAGMA_CREAM)){\r\n RareItemProperty rip = this.getPropertyFromRareEssence(is);\r\n \r\n if(rip != null){\r\n Integer currentLevel = propertyLevels.get(rip);\r\n \r\n if(currentLevel == null){\r\n propertyLevels.put(rip,1);\r\n }\r\n else if(currentLevel < rip.getMaxLevel() && propertyLevels.size() < this.MAX_PROPERTIES_PER_ITEM){\r\n propertyLevels.put(rip,currentLevel+1);\r\n }\r\n }\r\n else {\r\n return null;\r\n }\r\n }\r\n else if(isAddPropertiesTo == null){\r\n isAddPropertiesTo = is.clone();\r\n \r\n isAddPropertiesTo.setAmount(1);\r\n }\r\n else {\r\n return null;\r\n }\r\n }\r\n }\r\n \r\n if(isAddPropertiesTo != null && !propertyLevels.isEmpty()){\r\n // strip existing properties from the item and add them to the properties to add\r\n ItemMeta meta = isAddPropertiesTo.getItemMeta();\r\n List<String> lore;\r\n List<String> newLore = new ArrayList<>();\r\n \r\n if(meta.hasLore()){\r\n lore = meta.getLore();\r\n\r\n for(String sLore : lore){\r\n if(sLore.startsWith(PROPERTY_LINE_PREFIX)){\r\n String sPID = sLore.substring(sLore.lastIndexOf(ChatColor.COLOR_CHAR)+2);\r\n int itemPropertyLevel = 1;\r\n \r\n try{\r\n itemPropertyLevel = RomanNumeral.valueOf(sLore.substring(\r\n sLore.lastIndexOf(ChatColor.GREEN.toString())+2,\r\n sLore.lastIndexOf(ChatColor.COLOR_CHAR)-1\r\n ));\r\n }\r\n catch(IllegalArgumentException ex){\r\n continue;\r\n }\r\n \r\n int pid;\r\n \r\n try{\r\n pid = Integer.parseInt(sPID);\r\n }\r\n catch(NumberFormatException ex){\r\n continue;\r\n }\r\n \r\n RareItemProperty rip = this.plugin.getPropertymanager().getProperty(pid);\r\n \r\n if(rip != null){\r\n Integer currentLevel = propertyLevels.get(rip);\r\n \r\n if(currentLevel == null){\r\n currentLevel = 0;\r\n }\r\n \r\n int newLevel = currentLevel + itemPropertyLevel;\r\n\r\n if(currentLevel < rip.getMaxLevel() && propertyLevels.size() < this.MAX_PROPERTIES_PER_ITEM){\r\n propertyLevels.put(rip,newLevel);\r\n }\r\n }\r\n }\r\n else if(!sLore.equals(PROPERTY_HEADER)){\r\n newLore.add(sLore);\r\n }\r\n }\r\n }\r\n else{\r\n lore = new ArrayList<>();\r\n }\r\n \r\n lore = newLore;\r\n \r\n lore.add(PROPERTY_HEADER);\r\n \r\n for(Entry<RareItemProperty,Integer> entry : propertyLevels.entrySet()){\r\n RareItemProperty rip = entry.getKey();\r\n int level = entry.getValue();\r\n \r\n lore.add(String.format(PROPERTY_LINE,new Object[]{\r\n rip.getName(),\r\n RomanNumeral.convertToRoman(level),\r\n rip.getID()\r\n }));\r\n }\r\n \r\n meta.setLore(lore);\r\n \r\n isAddPropertiesTo.setItemMeta(meta);\r\n \r\n return isAddPropertiesTo;\r\n }\r\n \r\n return null;\r\n }", "public void dropBlockAsItemWithChance(World worldIn, BlockPos pos, IBlockState state, float chance, int fortune) {\n/* 78 */ if (!worldIn.isRemote && worldIn.getGameRules().getGameRuleBooleanValue(\"doTileDrops\")) {\n/* */ \n/* 80 */ EntitySilverfish var6 = new EntitySilverfish(worldIn);\n/* 81 */ var6.setLocationAndAngles(pos.getX() + 0.5D, pos.getY(), pos.getZ() + 0.5D, 0.0F, 0.0F);\n/* 82 */ worldIn.spawnEntityInWorld((Entity)var6);\n/* 83 */ var6.spawnExplosionParticle();\n/* */ } \n/* */ }", "private void dropItem(String item)//Made by Justin\n {\n itemFound = decodeItem(item);\n if (itemFound == null)\n {\n System.out.println(\"I don't know of any \" + item + \".\");\n }\n else\n {\n player.inventoryDel(itemFound);\n }\n }", "public void removeItem(CargoItem item) {\n\t\t\n\t\tif (cargoList.contains(item))\n\t\t{\n\t\t\tcurrentWeight = currentWeight-item.getWeight();\n\t\t\tcurrentVolume = currentVolume-item.getVolume();\n\t\t\tcargoList.remove(item);\n\t\t\tSystem.out.println(\"Item removed\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Item not found\");\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void getSubItems(Item item, CreativeTabs creativeTabs, NonNullList list) {\n\t\tfor (int meta = 0; meta < types.length; ++meta) {\n\t\t\tif (!types[meta].equals(ModItems.META_PLACEHOLDER)) {\n\t\t\t\tlist.add(new ItemStack(item, 1, meta));\n\t\t\t}\n\t\t}\n\t}", "public void playerUseItem(Player player, Item item) {\n\t\tif (item instanceof FloatingDevice) {\n\t\t\tplayer.setHasFloatingDevice(!player.getHasFloatingDevice());\n\t\t} else if (item instanceof Teleporter) {\n\t\t\tplayer.getTile().setGameObject(null);\n\t\t\tplayer.setLocation(0);\n\t\t\tTile t;\n\t\t\tif (!(player.getLocation().getTileAtPosition(new Position(5, 5)).getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(5, 5)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t} else if (!(player.getLocation().getTileAtPosition(new Position(4, 5))\n\t\t\t\t\t.getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(4, 5)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t} else if (!(player.getLocation().getTileAtPosition(new Position(4, 4))\n\t\t\t\t\t.getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(4, 4)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t} else if (!(player.getLocation().getTileAtPosition(new Position(5, 4))\n\t\t\t\t\t.getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(5, 4)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t}\n\t\t\tplayer.getInventory().remove(item);\n\n\t\t} else if (item instanceof FishingRod) {\n\t\t\tif (player.getLocation().getTileInDirection(player.getTile().getPos(),\n\t\t\t\t\tplayer.getFacing()) instanceof WaterTile) {\n\t\t\t\tif (player.inventoryIsFull()) {\n\t\t\t\t\tserverController.broadcastPlayerMessage(\"You can't fish now, you have no room for the spoils\",\n\t\t\t\t\t\t\tplayer);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tint randy = (int) (Math.random() * 5);\n\t\t\t\tif (randy == 0) {\n\t\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\t\"You caught a fish against all odds, sadly your rod was lost in the process\", player);\n\t\t\t\t\tplayer.getInventory().remove(item);\n\t\t\t\t\tplayer.pickUpItem(new Fish(\"Fish\"));\n\t\t\t\t} else {\n\t\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\t\"A nibble felt, however sometimes we just aren't that lucky\", player);\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\"Harambe is disgusted with you incompetence, you can't fish on land fool!\", player);\n\t\t\t}\n\t\t}\n\t}", "public void removeItem(Carryable g) {\r\n for (int i=0; i<numItems; i++) {\r\n if (cart[i] == g) {\r\n cart[i] = cart[numItems - 1];\r\n numItems -= 1;\r\n return;\r\n }\r\n }\r\n }", "@Test\n\tpublic void testInventoryNotEnoughChocolate() {\n\t\tcoffeeMaker.addRecipe(recipe5);\n\t\tassertEquals(1000, coffeeMaker.makeCoffee(0, 1000));\n\t}", "public void removeItem(int r, int c, boolean damage)\r\n\t{\n\t\tif (map[r][c].currentItems()!=0)\r\n\t\t{\r\n\t\t\tif (damage)\r\n\t\t\t{\r\n\t\t\t\tstolen++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tbought++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//change number of items available. doesn't decrease if number of items is 0.\r\n\t\tmap[r][c].removeItem();\r\n\t}", "public void smeltItem()\n {\n if (this.canSmelt())\n {\n ItemStack var1 = FurnaceRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]);\n\n if (this.furnaceItemStacks[2] == null)\n {\n this.furnaceItemStacks[2] = var1.copy();\n }\n else if (this.furnaceItemStacks[2].isItemEqual(var1))\n {\n ++this.furnaceItemStacks[2].stackSize;\n }\n\n --this.furnaceItemStacks[0].stackSize;\n\n if (this.furnaceItemStacks[0].stackSize <= 0)\n {\n this.furnaceItemStacks[0] = null;\n }\n }\n }", "private void takeItem(Command command) \n { \n if(!command.hasSecondWord()) { \n // if there is no second word, we don't know where to go... \n Logger.Log(\"What are you trying to take?\"); \n return; \n } \n \n String itemName = command.getSecondWord();\n String secondName = itemName + \"2\";\n \n Item thisItem = currentRoom.getItem(itemName);\n Item secondItem = currentRoom.getItem(secondName);\n \n if (thisItem == null) {\n Logger.Log(\"There isn't a \" + itemName + \"in here!\");\n }\n else if (player.inventory.containsKey(itemName)){\n Logger.Log(\"You take another \" + itemName + \" and put it in your backpack.\");\n player.addItem(secondName, secondItem); \n }\n else if (player.inventory.containsKey(itemName)&&(player.inventory.containsKey(secondName))){\n Logger.Log(\"You don't need any more \" + itemName + \"s!\");\n }\n else { \n Logger.Log(\"You take the \" + itemName + \" and put it in your backpack.\");\n player.addItem(itemName, thisItem);\n } \n \n }", "@Override\n public void collideEffect(GameItem gameItem) {\n Score score = new Score(getGame());\n if(gameItem.getItemType() == \"voleur\"){\n this.getGame().remove(this);\n this.generateurButin.enlever();\n if(this.generateurButin.getNbArgent() <=0 ){\n this.getGame().die();\n }\n }\n }", "@Test\n\tpublic void testInventoryNotEnoughCoffee() {\n\t\tcoffeeMaker.addRecipe(recipe6);\n\t\tassertEquals(1000, coffeeMaker.makeCoffee(0, 1000));\n\t}", "public void getAttackedByDarknessMagicBook(IEquipableItem item){item.strongAttackTo(this.getOwner());}", "@Override\n\tprotected void dropFewItems(boolean par1, int par2) {\n\t\tsuper.dropFewItems(par1, par2);\n\n\t\t// drop saddle if equipped\n\t\tif (isSaddled()) {\n\t\t\tdropItem(Items.SADDLE, 1);\n\t\t}\n\t}", "public static void LoadItems() {\r\n\t\t\r\n\t\t/*\r\n\t\t * Basic Minecraft Hammers (Ex. Vannila Ores)\r\n\t\t */\r\n\t\r\n\t\tItemWoodHammer = new ItemWoodHammer(HammerModMain.MODID + \":ItemWoodHammer\", \"HammerMod-DZ_res/items/ItemWoodHammer.png\");\r\n\t\tItemStoneHammer = new ItemStoneHammer(HammerModMain.MODID + \":ItemStoneHammer\", \"HammerMod-DZ_res/items/ItemStoneHammer.png\");\r\n\t\t//ItemIronHammer = new ItemIronHammer(HammerModMain.MODID + \":ItemIronHammer\", \"HammerMod-DZ_res/items/ItemIronHammer.png\");\r\n\t\t//ItemGoldHammer = new ItemGoldHammer(HammerModMain.MODID + \":ItemGoldHammer\", \"HammerMod-DZ_res/items/ItemGoldHammer.png\");\r\n\t\tItemDiamondHammer = new ItemDiamondHammer(HammerModMain.MODID + \":ItemDiamondHammer\", \"HammerMod-DZ_res/items/ItemDiamondHammer.png\");\r\n\t\tItemDirtHammer = new ItemDirtHammer(HammerModMain.MODID + \":ItemDirtHammer\", \"HammerMod-DZ_res/items/ItemDirtHammer.png\");\r\n\t\tItemGlassHammer = new ItemGlassHammer(HammerModMain.MODID + \":ItemGlassHammer\", \"HammerMod-DZ_res/items/ItemGlassHammer.png\");\r\n\t\tItemSandHammer = new ItemSandHammer(HammerModMain.MODID + \":ItemSandHammer\", \"HammerMod-DZ_res/items/ItemSandHammer.png\");\r\n\t\t//ItemCactusHammer = new ItemCactusHammer(HammerModMain.MODID + \":ItemCactusHammer\", \"HammerMod-DZ_res/items/ItemCactusHammer.png\");\r\n\t\t//ItemGravelHammer = new ItemGravelHammer(HammerModMain.MODID + \":ItemGravelHammer\", \"HammerMod-DZ_res/items/ItemGravelHammer.png\");\r\n\t\t//ItemWoolHammer_white = new ItemWoolHammer_white(HammerModMain.MODID + \":ItemWoolHammer_white\", \"HammerMod-DZ_res/items/ItemWoolHammer_white.png\");\r\n\t\tItemEmeraldHammer = new ItemEmeraldHammer(HammerModMain.MODID + \":ItemEmeraldHammer\", \"HammerMod-DZ_res/items/ItemEmeraldHammer.png\");\r\n\t\tItemGrassHammer = new ItemGrassHammer(HammerModMain.MODID + \":ItemGrassHammer\", \"HammerMod-DZ_res/items/ItemGrassHammer.png\");\r\n\t\t//ItemObsidianHammer = new ItemObsidianHammer(HammerModMain.MODID + \":ItemObsidianHammer\", \"HammerMod-DZ_res/items/ItemObsidianHammer.png\");\r\n\t\t//ItemGlowstoneHammer = new ItemGlowstoneHammer(HammerModMain.MODID + \":ItemGlowstoneHammer\", \"HammerMod-DZ_res/items/ItemGlowstoneHammer.png\");\r\n\t\t//ItemRedstoneHammer = new ItemRedstoneHammer(HammerModMain.MODID + \":ItemRedstoneHammer\", \"HammerMod-DZ_res/items/ItemRedstoneHammer.png\");\r\n\t\t//ItemLapizHammer = new ItemLapizHammer(HammerModMain.MODID + \":ItemLapizHammer\", \"HammerMod-DZ_res/items/ItemLapizHammer.png\");\r\n\t\t//ItemNetherackHammer = new ItemNetherackHammer(HammerModMain.MODID + \":ItemNetherackHammer\", \"HammerMod-DZ_res/items/ItemNetherackHammer.png\");\r\n\t\t//ItemSoulSandHammer = new ItemSoulSandHammer(HammerModMain.MODID + \":ItemSoulSandHammer\", \"HammerMod-DZ_res/items/ItemSoulSandHammer.png\");\r\n\t\tItemCoalHammer = new ItemCoalHammer(HammerModMain.MODID + \":ItemCoalHammer\", \"HammerMod-DZ_res/items/ItemCoalHammer.png\");\r\n\t\tItemCharcoalHammer = new ItemCharcoalHammer(HammerModMain.MODID + \":ItemCharcoalHammer\", \"HammerMod-DZ_res/items/ItemCharcoalHammer.png\");\r\n\t\t//ItemEndstoneHammer = new ItemEndstoneHammer(HammerModMain.MODID + \":ItemEndstoneHammer\", \"HammerMod-DZ_res/items/ItemEndstoneHammer.png\");\r\n\t\tItemBoneHammer = new ItemBoneHammer(HammerModMain.MODID + \":ItemBoneHammer\", \"HammerMod-DZ_res/items/ItemBoneHammer.png\");\r\n\t\t//ItemSpongeHammer = new ItemSpongeHammer(HammerModMain.MODID + \":ItemSpongeHammer\", \"HammerMod-DZ_res/items/ItemSpongeHammer.png\");\r\n\t\t//ItemBrickHammer = new ItemBrickHammer(HammerModMain.MODID + \":ItemBrickHammer\", \"HammerMod-DZ_res/items/ItemBrickHammer.png\");\r\n\t\t//ItemSugarHammer = new ItemSugarHammer(HammerModMain.MODID + \":ItemSugarHammer\", \"HammerMod-DZ_res/items/ItemSugarHammer.png\");\r\n\t\t//ItemSlimeHammer = new ItemSlimeHammer(HammerModMain.MODID + \":ItemSlimeHammer\", \"HammerMod-DZ_res/items/ItemSlimeHammer.png\");\r\n\t\t//ItemMelonHammer = new ItemMelonHammer(HammerModMain.MODID + \":ItemMelonHammer\", \"HammerMod-DZ_res/items/ItemMelonHammer.png\");\r\n\t\t//ItemPumpkinHammer = new ItemPumpkinHammer(HammerModMain.MODID + \":ItemPumpkinHammer\", \"HammerMod-DZ_res/items/ItemPumpkinHammer.png\");\r\n\t\t//ItemPotatoHammer = new ItemPotatoHammer(HammerModMain.MODID + \":ItemPotatoHammer\", \"HammerMod-DZ_res/items/ItemPotatoHammer.png\");\r\n\t\t//ItemCarrotHammer = new ItemCarrotHammer(HammerModMain.MODID + \":ItemCarrotHammer\", \"HammerMod-DZ_res/items/ItemCarrotHammer.png\");\r\n\t\tItemAppleHammer = new ItemAppleHammer(HammerModMain.MODID + \":ItemAppleHammer\", \"HammerMod-DZ_res/items/ItemAppleHammer.png\");\r\n\t\t//ItemIceHammer = new ItemIceHammer(HammerModMain.MODID + \":ItemIceHammer\", \"HammerMod-DZ_res/items/ItemIceHammer.png\");\r\n\t\t//ItemPackedIceHammer = new ItemPackedIceHammer(HammerModMain.MODID + \":ItemPackedIceHammer\", \"HammerMod-DZ_res/items/ItemPackedIceHammer.png\");\r\n\t\t//ItemSnowHammer = new ItemSnowHammer(HammerModMain.MODID + \":ItemSnowHammer\", \"HammerMod-DZ_res/items/ItemSnowHammer.png\");\r\n\t\t//ItemCakeHammer = new ItemCakeHammer(HammerModMain.MODID + \":ItemCakeHammer\", \"HammerMod-DZ_res/items/ItemCakeHammer.png\");\r\n\t\t//ItemDragonEggHammer = new ItemDragonEggHammer(HammerModMain.MODID + \":ItemDragonEggHammer\", \"HammerMod-DZ_res/items/ItemDragonEggHammer.png\");\r\n\t\t//ItemTntHammer = new ItemTntHammer(HammerModMain.MODID + \":ItemTntHammer\", \"HammerMod-DZ_res/items/ItemTntHammer.png\");\r\n\t\t//ItemBedrockHammer = new ItemBedrockHammer(HammerModMain.MODID + \":ItemBedrockHammer\", \"HammerMod-DZ_res/items/ItemBedrockHammer.png\");\r\n\r\n\t\t/*\r\n\t\t * Mob Hammers\r\n\t\t */\r\n\t\t//ItemCreeperHammer = new ItemCreeperHammer(CREEPER).setUnlocalizedName(\"ItemCreeperHammer\").setTextureName(\"hammermod:ItemCreeperHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t//ItemPigHammer = new ItemPigHammer(PIG).setUnlocalizedName(\"ItemPigHammer\").setTextureName(\"hammermod:ItemPigHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t//ItemCowHammer = new ItemCowHammer(COW).setUnlocalizedName(\"ItemCowHammer\").setTextureName(\"hammermod:ItemCowHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t\r\n\r\n\t\t/*\r\n\t\t * Hammers Using Ores from other mods\r\n\t\t * **NOTE: REQUIRES Other mods to craft these hammers**\r\n\t\t */\r\n\t\tItemCopperHammer = new ItemCopperHammer(HammerModMain.MODID + \":ItemCopperHammer\", \"HammerMod-DZ_res/items/ItemCopperHammer.png\");\r\n\t\tItemBronzeHammer = new ItemBronzeHammer(HammerModMain.MODID + \":ItemBronzeHammer\", \"HammerMod-DZ_res/items/ItemBronzeHammer.png\");\r\n\t\tItemSilverHammer = new ItemSilverHammer(HammerModMain.MODID + \":ItemSilverHammer\", \"HammerMod-DZ_res/items/ItemSilverHammer.png\");\r\n\t\tItemTungstenHammer = new ItemTungstenHammer(HammerModMain.MODID + \":ItemTungstenHammer\", \"HammerMod-DZ_res/items/ItemTungstenHammer.png\");\r\n\t\tItemRubyHammer = new ItemRubyHammer(HammerModMain.MODID + \":ItemRubyHammer\", \"HammerMod-DZ_res/items/ItemRubyHammer.png\");\r\n\t\tItemTinHammer = new ItemTinHammer(HammerModMain.MODID + \":ItemTinHammer\", \"HammerMod-DZ_res/items/ItemTinHammer.png\");\r\n\t\tItemJadeHammer = new ItemJadeHammer(HammerModMain.MODID + \":ItemJadeHammer\", \"HammerMod-DZ_res/items/ItemJadeHammer.png\");\r\n\t\tItemAmethystHammer = new ItemAmethystHammer(HammerModMain.MODID + \":ItemAmethystHammer\", \"HammerMod-DZ_res/items/ItemAmethystHammer.png\");\r\n\t\tItemGraphiteHammer = new ItemGraphiteHammer(HammerModMain.MODID + \":ItemGraphiteHammer\", \"HammerMod-DZ_res/items/ItemGraphiteHammer.png\");\r\n\t\tItemCitrineHammer = new ItemCitrineHammer(HammerModMain.MODID + \":ItemCitrineHammer\", \"HammerMod-DZ_res/items/ItemCitrineHammer.png\");\r\n\t\tItemPierreHammer = new ItemPierreHammer(HammerModMain.MODID + \":ItemPierreHammer\", \"HammerMod-DZ_res/items/ItemPierreHammer.png\");\r\n\t\tItemSapphireHammer = new ItemSapphireHammer(HammerModMain.MODID + \":ItemSapphireHammer\", \"HammerMod-DZ_res/items/ItemSapphireHammer.png\");\r\n\t\tItemOnyxHammer = new ItemOnyxHammer(HammerModMain.MODID + \":ItemOnyxHammer\", \"HammerMod-DZ_res/items/ItemOnyxHammer.png\");\r\n\t\tItemNikoliteHammer = new ItemNikoliteHammer(HammerModMain.MODID + \":ItemNikoliteHammer\", \"HammerMod-DZ_res/items/ItemNikoliteHammer.png\");\r\n\t\tItemSilicaHammer = new ItemSilicaHammer(HammerModMain.MODID + \":ItemSilicaHammer\", \"HammerMod-DZ_res/items/ItemSilicaHammer.png\");\r\n\t\tItemCinnabarHammer = new ItemCinnabarHammer(HammerModMain.MODID + \":ItemCinnabarHammer\", \"HammerMod-DZ_res/items/ItemCinnabarHammer.png\");\r\n\t\tItemAmberBearingStoneHammer = new ItemAmberBearingStoneHammer(HammerModMain.MODID + \":ItemAmberBearingStoneHammer\", \"HammerMod-DZ_res/items/ItemAmberBearingStoneHammer.png\");\r\n\t\tItemFerrousHammer = new ItemFerrousHammer(HammerModMain.MODID + \":ItemFerrousHammer\", \"HammerMod-DZ_res/items/ItemFerrousHammer.png\");\r\n\t\tItemAdaminiteHammer = new ItemAdaminiteHammer(HammerModMain.MODID + \":ItemAdaminiteHammer\", \"HammerMod-DZ_res/items/ItemAdaminiteHammer.png\");\r\n\t\tItemShinyHammer = new ItemShinyHammer(HammerModMain.MODID + \":ItemShinyHammer\", \"HammerMod-DZ_res/items/ItemShinyHammer.png\");\r\n\t\tItemXychoriumHammer = new ItemXychoriumHammer(HammerModMain.MODID + \":ItemXychoriumHammer\", \"HammerMod-DZ_res/items/ItemXychoriumHammer.png\");\r\n\t\tItemUraniumHammer = new ItemUraniumHammer(HammerModMain.MODID + \":ItemUraniumHammer\", \"HammerMod-DZ_res/items/ItemUraniumHammer.png\");\r\n\t\tItemTitaniumHammer = new ItemTitaniumHammer(HammerModMain.MODID + \":ItemTitaniumHammer\", \"HammerMod-DZ_res/items/ItemTitaniumHammer.png\");\r\n\t\tItemBloodStoneHammer = new ItemBloodStoneHammer(HammerModMain.MODID + \":ItemBloodStoneHammer\", \"HammerMod-DZ_res/items/ItemBloodStoneHammer.png\");\r\n\t\tItemRustedHammer = new ItemRustedHammer(HammerModMain.MODID + \":ItemRustedHammer\", \"HammerMod-DZ_res/items/ItemRustedHammer.png\");\r\n\t\tItemRositeHammer = new ItemRositeHammer(HammerModMain.MODID + \":ItemRositeHammer\", \"HammerMod-DZ_res/items/ItemRositeHammer.png\");\r\n\t\tItemLimoniteHammer = new ItemLimoniteHammer(HammerModMain.MODID + \":ItemLimoniteHammer\", \"HammerMod-DZ_res/items/ItemLimoniteHammer.png\");\r\n\t\tItemMithrilHammer = new ItemMithrilHammer(HammerModMain.MODID + \":ItemMithrilHammer\", \"HammerMod-DZ_res/items/ItemMithrilHammer.png\");\r\n\t\tItemPrometheumHammer = new ItemPrometheumHammer(HammerModMain.MODID + \":ItemPrometheumHammer\", \"HammerMod-DZ_res/items/ItemPrometheumHammer.png\");\r\n\t\tItemHepatizonHammer = new ItemHepatizonHammer(HammerModMain.MODID + \":ItemHepatizonHammer\", \"HammerMod-DZ_res/items/ItemHepatizonHammer.png\");\r\n\t\tItemPoopHammer = new ItemPoopHammer(HammerModMain.MODID + \":ItemPoopHammer\", \"HammerMod-DZ_res/items/ItemPoopHammer.png\");\r\n\t\tItemAngmallenHammer = new ItemAngmallenHammer(HammerModMain.MODID + \":ItemAngmallenHammer\", \"HammerMod-DZ_res/items/ItemAngmallenHammer.png\");\r\n\t\tItemManganeseHammer = new ItemManganeseHammer(HammerModMain.MODID + \":ItemManganeseHammer\", \"HammerMod-DZ_res/items/ItemManganeseHammer.png\");\r\n\t\tItemSearedBrickHammer = new ItemSearedBrickHammer(HammerModMain.MODID + \":ItemSearedBrickHammer\", \"HammerMod-DZ_res/items/ItemSearedBrickHammer.png\");\r\n\t\tItemElectrumHammer = new ItemElectrumHammer(HammerModMain.MODID + \":ItemElectrumHammer\", \"HammerMod-DZ_res/items/ItemElectrumHammer.png\");\r\n\t\tItemPigIronHammer = new ItemPigIronHammer(HammerModMain.MODID + \":ItemPigIronHammer\", \"HammerMod-DZ_res/items/ItemPigIronHammer.png\");\r\n\t\tItemArditeHammer = new ItemArditeHammer(HammerModMain.MODID + \":ItemArditeHammer\", \"HammerMod-DZ_res/items/ItemArditeHammer.png\");\r\n\t\tItemAlumiteHammer = new ItemAlumiteHammer(HammerModMain.MODID + \":ItemAlumiteHammer\", \"HammerMod-DZ_res/items/ItemAlumiteHammer.png\");\r\n\t\tItemCobaltHammer = new ItemCobaltHammer(HammerModMain.MODID + \":ItemCobaltHammer\", \"HammerMod-DZ_res/items/ItemCobaltHammer.png\");\r\n\t\tItemManyullynHammer = new ItemManyullynHammer(HammerModMain.MODID + \":ItemManyullynHammer\", \"HammerMod-DZ_res/items/ItemManyullynHammer.png\");\r\n\t\tItemOureclaseHammer = new ItemOureclaseHammer(HammerModMain.MODID + \":ItemOureclaseHammer\", \"HammerMod-DZ_res/items/ItemOureclaseHammer.png\");\r\n\t\tItemHaderothHammer = new ItemHaderothHammer(HammerModMain.MODID + \":ItemHaderothHammer\", \"HammerMod-DZ_res/items/ItemHaderothHammer.png\");\r\n\t\tItemInfuscoliumHammer = new ItemInfuscoliumHammer(HammerModMain.MODID + \":ItemInfuscoliumHammer\", \"HammerMod-DZ_res/items/ItemInfuscoliumHammer.png\");\r\n\t\tItemRubberHammer = new ItemRubberHammer(HammerModMain.MODID + \":ItemRubberHammer\", \"HammerMod-DZ_res/items/ItemRubberHammer.png\");\r\n\t\tItemDesichalkosHammer = new ItemDesichalkosHammer(HammerModMain.MODID + \":ItemDesichalkosHammer\", \"HammerMod-DZ_res/items/ItemDesichalkosHammer.png\");\r\n\t\tItemMeutoiteHammer = new ItemMeutoiteHammer(HammerModMain.MODID + \":ItemMeutoiteHammer\", \"HammerMod-DZ_res/items/ItemMeutoiteHammer.png\");\r\n\t\tItemEximiteHammer = new ItemEximiteHammer(HammerModMain.MODID + \":ItemEximiteHammer\", \"HammerMod-DZ_res/items/ItemEximiteHammer.png\");\r\n\t\tItemMidasiumHammer = new ItemMidasiumHammer(HammerModMain.MODID + \":ItemMidasiumHammer\", \"HammerMod-DZ_res/items/ItemMidasiumHammer.png\");\r\n\t\tItemSanguiniteHammer = new ItemSanguiniteHammer(HammerModMain.MODID + \":ItemSanguiniteHammer\", \"HammerMod-DZ_res/items/ItemSanguiniteHammer.png\");\r\n\t\tItemInolashiteHammer = new ItemInolashiteHammer(HammerModMain.MODID + \":ItemInolashiteHammer\", \"HammerMod-DZ_res/items/ItemInolashiteHammer.png\");\r\n\t\tItemVulcaniteHammer = new ItemVulcaniteHammer(HammerModMain.MODID + \":ItemVulcaniteHammer\", \"HammerMod-DZ_res/items/ItemVulcaniteHammer.png\");\r\n\t\tItemLemuriteHammer = new ItemLemuriteHammer(HammerModMain.MODID + \":ItemLemuriteHammer\", \"HammerMod-DZ_res/items/ItemLemuriteHammer.png\");\r\n\t\tItemAmordrineHammer = new ItemAmordrineHammer(HammerModMain.MODID + \":ItemAmordrineHammer\", \"HammerMod-DZ_res/items/ItemAmordrineHammer.png\");\r\n\t\tItemCeruclaseHammer = new ItemCeruclaseHammer(HammerModMain.MODID + \":ItemCeruclaseHammer\", \"HammerMod-DZ_res/items/ItemCeruclaseHammer.png\");\r\n\t\tItemKalendriteHammer = new ItemKalendriteHammer(HammerModMain.MODID + \":ItemKalendriteHammer\", \"HammerMod-DZ_res/items/ItemKalendriteHammer.png\");\r\n\t\tItemVyroxeresHammer = new ItemVyroxeresHammer(HammerModMain.MODID + \":ItemVyroxeresHammer\", \"HammerMod-DZ_res/items/ItemVyroxeresHammer.png\");\r\n\t\tItemCarmotHammer = new ItemCarmotHammer(HammerModMain.MODID + \":ItemCarmotHammer\", \"HammerMod-DZ_res/items/ItemCarmotHammer.png\");\r\n\t\tItemTartariteHammer = new ItemTartariteHammer(HammerModMain.MODID + \":ItemTartariteHammer\", \"HammerMod-DZ_res/items/ItemTartariteHammer.png\");\r\n\t\tItemAtlarusHammer = new ItemAtlarusHammer(HammerModMain.MODID + \":ItemAtlarusHammer\", \"HammerMod-DZ_res/items/ItemAtlarusHammer.png\");\r\n\t\tItemAstralHammer = new ItemAstralHammer(HammerModMain.MODID + \":ItemAstralHammer\", \"HammerMod-DZ_res/items/ItemAstralHammer.png\");\r\n\t\tItemCelenegilHammer = new ItemCelenegilHammer(HammerModMain.MODID + \":ItemCelenegilHammer\", \"HammerMod-DZ_res/items/ItemCelenegilHammer.png\");\r\n\t\tItemAredriteHammer = new ItemAredriteHammer(HammerModMain.MODID + \":ItemAredriteHammer\", \"HammerMod-DZ_res/items/ItemAredriteHammer.png\");\r\n\t\tItemOrichalcumHammer = new ItemOrichalcumHammer(HammerModMain.MODID + \":ItemOrichalcumHammer\", \"HammerMod-DZ_res/items/ItemOrichalcumHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Hammers For YouTubers\r\n\t\t */\r\n\t\tItemPatHammer = new ItemPatHammer(HammerModMain.MODID + \":ItemPatHammer\", \"HammerMod-DZ_res/items/ItemPatHammer.png\");\r\n\t\tItemJenHammer = new ItemJenHammer(HammerModMain.MODID + \":ItemJenHammer\", \"HammerMod-DZ_res/items/ItemJenHammer.png\");\r\n\t\tItemDanTDMHammer = new ItemDanTDMHammer(HammerModMain.MODID + \":ItemDanTDMHammer\", \"HammerMod-DZ_res/items/ItemDanTDMHammer.png\");\r\n\t\tItemxJSQHammer = new ItemxJSQHammer(HammerModMain.MODID + \":ItemxJSQHammer\", \"HammerMod-DZ_res/items/ItemxJSQHammer.png\");\r\n\t\tItemSkyTheKidRSHammer = new ItemSkyTheKidRSHammer(HammerModMain.MODID + \":ItemSkyTheKidRSHammer\", \"HammerMod-DZ_res/items/ItemSkyTheKidRSHammer.png\");\r\n\t\tItemThackAttack_MCHammer = new ItemThackAttack_MCHammer(HammerModMain.MODID + \":ItemThackAttack_MCHammer\", \"HammerMod-DZ_res/items/ItemThackAttack_MCHammer.png\");\r\n\t\tItem_MrGregor_Hammer = new Item_MrGregor_Hammer(HammerModMain.MODID + \":Item_MrGregor_Hammer\", \"HammerMod-DZ_res/items/Item_MrGregor_Hammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Hammers For Twitch Streamers\r\n\t\t */\r\n\t\tItemDeeAxelJayHammer = new ItemDeeAxelJayHammer(HammerModMain.MODID + \":ItemDeeAxelJayHammer\", \"HammerMod-DZ_res/items/ItemDeeAxelJayHammer.png\");\r\n\t\tItemincapablegamerHammer = new ItemincapablegamerHammer(HammerModMain.MODID + \":ItemincapablegamerHammer\", \"HammerMod-DZ_res/items/ItemincapablegamerHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Community Hammers\r\n\t\t */\r\n\t\tItemCryingObsidainHammer = new ItemCryingObsidainHammer(HammerModMain.MODID + \":ItemCryingObsidainHammer\", \"HammerMod-DZ_res/items/ItemCryingObsidainHammer.png\");\r\n\t\tItemMythicalHammer = new ItemMythicalHammer(HammerModMain.MODID + \":ItemMythicalHammer\", \"HammerMod-DZ_res/items/ItemMythicalHammer.png\");\r\n\t\tItemToasterHammer = new ItemToasterHammer(HammerModMain.MODID + \":ItemToasterHammer\", \"HammerMod-DZ_res/items/ItemToasterHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Special Hammers\r\n\t\t */\r\n\t\tItemRainbowHammer = new ItemRainbowHammer(HammerModMain.MODID + \":ItemRainbowHammer\", \"HammerMod-DZ_res/items/ItemRainbowHammer.png\");\r\n\t\tItemMissingTextureHammer = new ItemMissingTextureHammer(HammerModMain.MODID + \":ItemMissingTextureHammer\", \"HammerMod-DZ_res/items/ItemMissingTextureHammer.png\");\r\n\r\n\t\tregisterItems();\r\n\t}" ]
[ "0.6182081", "0.61607295", "0.6104097", "0.60561544", "0.60248125", "0.6005581", "0.5967221", "0.59596723", "0.5880104", "0.58681864", "0.5868015", "0.586101", "0.5856442", "0.58523554", "0.5826132", "0.57914305", "0.5774331", "0.57703143", "0.57611823", "0.5760632", "0.5753045", "0.5742248", "0.5739157", "0.57292736", "0.5702675", "0.5698419", "0.56950355", "0.56818634", "0.5676065", "0.5668088", "0.5658022", "0.5653382", "0.565076", "0.56489694", "0.56481844", "0.56407917", "0.5637158", "0.5628571", "0.5627902", "0.5610695", "0.5608738", "0.5598987", "0.5595459", "0.55899566", "0.55742323", "0.554366", "0.5543461", "0.55330473", "0.55161285", "0.5509201", "0.549564", "0.5486457", "0.5469344", "0.54644436", "0.5463469", "0.54598904", "0.54506963", "0.544099", "0.54365355", "0.5424735", "0.5422041", "0.5415013", "0.5410162", "0.5409546", "0.5405426", "0.54020697", "0.53907144", "0.53825045", "0.5382322", "0.53797", "0.5379555", "0.5376438", "0.5369918", "0.5366433", "0.5365812", "0.53633857", "0.53625", "0.5360629", "0.5348874", "0.5347533", "0.53430116", "0.53399247", "0.53386205", "0.533416", "0.53341085", "0.53307414", "0.53170687", "0.5314547", "0.5314314", "0.53072536", "0.530476", "0.5302035", "0.5300312", "0.5299081", "0.5294095", "0.5287585", "0.5282775", "0.5270311", "0.52665776", "0.5265345" ]
0.67699033
0
print numbers from 1 to 100
public static void main(String[] args) { for(int a=100; a>=1; a--) { System.out.println(a); } //print numbers from 100 to 1 for(int b=1; b<=100; b++) { System.out.println(b); } //print odd numbers from 1 to 20(2 ways) for(int c=1; c<=20; c+=2) { System.out.println(c); } //print even numbers from 20 to 1(2ways) for(int d=20; d>=1; d-=2) { System.out.println(d); } //print even numbers between 20 and 50(2 ways) for(int e=20; e<=50; e+=2) { System.out.println(e); } //print odd numbers between 20 and 50(2way) for(int f=20; f<=50; f++) { if(f%2==0) { System.out.println(f); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\t\nfor(int contador=1;contador<=100;contador+=1)\n{\n\tSystem.out.println(contador);\n}\n\t}", "public static void main(String[] args) {\n\t\tint a=1;\n\t\t\n\t\twhile(a<=100) {\n\t\t\tSystem.out.print(a+\" \");\n\t\t\ta++;\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//print number 100 to 1\n\t\tint b=100;\n\t\t\n\t\twhile (b>=1) {\n\t\t\tSystem.out.print(b+\" \");\n\t\t\tb--;\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t//print even number from 20 to 100\n\t\tint c=20;\n\t\t\n\t\twhile(c<=100) {\n\t\t\tSystem.out.print(c+\" \");\n\t\t\tc+=2;\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\tint d =20;\n\t\t\n\t\twhile (d<=100) {\n\t\t\tif (d%2==0) {\n\t\t\t\tSystem.out.print(d+\" \");\n\t\t\t}\n\t\t\td++;\n\t\t}\n\n\t}", "private static void printNumber(){\r\n\t\tfor(int i = 1;i <= 10; i++)\r\n\t\t\tSystem.out.println(i);\r\n\t}", "public static void main(String[] args){\n\n for(int n = 2; n < 102; n+=2)System.out.printf(\"%d\\n\",n);\n \n \n }", "public void startNumberMethod(int startNumber) {\n for (int i = startNumber; i <= 100; i++) {\n System.out.println(i);\n }\n }", "public static void printNum() {\n\t\tfor(int i = 1; i<= 20; i++) {\n\t\t\tSystem.out.print(\" \" + i);\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\t}", "public static void printInt() {\n\t\tint i = 500;\n\t\twhile (i >=25) {\n\t\t\tif(i%6==0 && i%8==0) {\n\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t}\n\t\t\t// Do not forget to type increment, otherwise it will be infinite loop\n\t\t\ti--;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tfor(int i =1;i <=100;i++){\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint num = 0, sum = 0;\n\t\tdo\n\t\t{\n\t\t\tnum++;\n\t\t\tsum += num;\n\t\t\tif(num%10 == 0 && num == 100)\n\t\t\t\tSystem.out.println(\"1-\"+num+\" : \"+sum);\n\t\t\telse if(num%10 == 0 && num != 100)\n\t\t\t\tSystem.out.println(\"1-\"+num+\" : 0000\");\n\t\t}while(num<100);\n\t}", "public static void printAll() {\n\t\tint i=0;\n\t\twhile(i%2==0) {\n\t\t\ti+=2;\n\t\t\tSystem.out.print(i+\" \");\n\t\t\tif(i==100) break;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tfor (int number = 20;number <= 100; number=number+2) {\n\t\t\tSystem.out.println(number);\n\t\t}\n\t}", "public static void main(String[] args) {\n int count = 0;\r\n \r\n for (int num = 100; num <= 500; num++) {\r\n // Find all numbers from 100 to 500 divisible by 5 or 7 but not both.\r\n if ((num % 5 == 0 && num % 7 != 0) || (num % 5 != 0 && num % 7 == 0)) {\r\n count += 1;\r\n // Print 10 numbers on each line.\r\n if (count % 10 == 0) {\r\n System.out.println(num);\r\n }\r\n else {\r\n System.out.print(num + \" \");\r\n }\r\n }\r\n }\r\n }", "public static void main(String[] args) {\n\n\t\tint sum =0;\n\t\tint number =0;\n\t\t\n\t\twhile (number < 20) {\n\t\t\tnumber++;\n\t\t\tsum += number;\n\t\t\tif(sum>= 100)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tSystem.out.println(number);\n\t\tSystem.out.println(sum);\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint num1 = 50;\n\t\t\t\t\n\t\tfor (int num2 = 100; num2 > num1; num2--) {\n\t\t\t\n\t\t\tif (num2 % 2 != 0) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(num2);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tfor(int i = 1; i <= 100; i++) {\n\t\t\tif(i % 10 == 0) {\n\t\t\t\tSystem.out.printf(\"%7d\\n\", getPentagonalNumber(i));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.printf(\"%7d\", getPentagonalNumber(i));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint start = 100;\r\n\t\tint end = 1;\r\n\t\t//int add = 1;\r\n\t\twhile (start>=end) {\r\n\t\t\tSystem.out.println(start);\r\n\t\t\t//start = start - add;\r\n\t\t\tstart--;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tfor (int a=1; a<=100; a++) {\n\t\t\tSystem.out.println(a);\n\t\t}\t\n\t\t\n\t\n\t\t}", "public void printSirDeLa1La100() {\n System.out.println(\"Valorile sirului sunt: \");\n System.out.println(Arrays.toString(array1To100()));\n }", "public static void main(String[] args){\n for(int i = 23; i <= 89; i++){\n System.out.print(i + \" \");\n if(i % 10 == 2)\n System.out.print(\"\\n\"); }\n }", "public static void main(String[] args) {\n\r\n\t\tSystem.out.print(\"[\");\r\n\t\tfor(int i=1; i<=100; i++)\r\n\t\t{\r\n\t\t\tif(isPerfectNumber(i))\r\n\t\t\tSystem.out.print(i + \" \");\t\r\n\t\t}\r\n\t\tSystem.out.println(\"]\");\r\n\t}", "public static void main(String[] args){\r\n int i=100;\r\n while (i>0) { \r\n if (i%2!=0) {\r\n System.out.print(i+\"\\n\");\r\n }\r\n i--;\r\n } \r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"------------------------\");\n\t\tSystem.out.println(\" 5의 배수 출력 프로그램 v1.0\");\n\t\tSystem.out.println(\"------------------------\");\n\t\tfor (int n = 1;n < 99; n++) {\n\t\t\tif ((n + 1) % 5 == 0) {\n\t\t\t\tSystem.out.print((n+1) + \", \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(100);\n\t}", "public static void main(String[] args) {\n\t\tfor(int a=1;a<=100;a++) {\r\n\t\t\tif(a%5==0&&a%7==0) {\r\n\t\t\t\tSystem.out.println(a);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tint i;\r\n\t\tfor(i=0;i<100;i++) {\r\n\t\t\tif((i%3==0)||(i%11==0)) {\r\n\t\t\t\tSystem.out.println(i);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\tint count = 99 ;\t\n\tint ten = 0 ;\n\tSystem.out.println(\"Counting from 100 to 200\") ; \n\tSystem.out.println(\"Divisible by 5 or 6, but not both\") ;\n\tSystem.out.println(\"_______________________________________\") ;\n\t\t\n\t\t//Display all the numbers between 100 and 200\n\t\tdo {\n\t\t\tif (count % 5 == 0 ^ count % 6 == 0) {\n\t\t\t\tSystem.out.print(count + \" \") ;\n\t\t\t\tten++;\n\t\t\t}//display only 10 per line\n\t\t\tif (ten == 10){\n\t\t\t\tSystem.out.println() ;\n\t\t\t\tten = 0 ;\n\t\t\t}\n\t\t\tcount++ ;\n\t\t} while (count <= 200);\t\n\t\t\t\n\t}", "@Override\r\n\tpublic void printResult() {\n\t\tfor(Integer i:numbers)\r\n\t\t{\r\n\t\t\tSystem.out.println(i+\" \");\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tfor (int i = 100; i <= 199; i++) {\n\t\t\tif(!(i%2==0)) {\n\t\t\t\tSystem.out.println(i+ \" \");\n\t\t\t}\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\n\t\tint number = 20;\n\n\t\twhile (number >= 2) {\n\t\t\tSystem.out.println(number);\n\t\t\tnumber -= 2;\n\n\t\t}\n\t\tSystem.out.println(\"--------01------------\");\n\n\t\tint num = 2;\n\n\t\twhile (num <= 20) {\n\t\t\tSystem.out.println(num);\n\t\t\tnum += 2;\n\t\t}\n\t}", "public static void main(String[] args){\n int number = Integer.parseInt(args[0]);\n \n if (number >= 10000) {\n \twriteNumber(number / 1000);\n \twriteNumber(1000);\n number %= 1000;\n\t\t}\n \n if(number >= 1000) {\n writeNumber(number / 1000);\n writeNumber(1000);\n number %= 1000;\n }\n\n if(number >= 100) {\n writeNumber(number / 100);\n writeNumber(100);\n number %= 100;\n }\n\n if(number <= 20) {\n writeNumber(number);\n } else if(number < 100) {\n writeNumber(number / 10 * 10);\n \n writeNumber(number % 10);\n \n }\n }", "public static void main(String[] args) {\n\n\t\tint a=100;\n\t\tint b=21;\n\t\t\n\t\tfor(int i=a;i>=b;i--) {\n\t\t\tSystem.out.print(i + \", \");\n\t\t}\n\t\t\t\n\t}", "public static void main(String[] args) {\n\n int n = 0;\n for(int i=0; i<100; i++){\n if(i%2==1){\n n =i;\n } else\n n =i;\n }\n System.out.println(n);\n }", "public static void main(String[] args) {\n\t\tint firstnum,num = 0,result,i;\n\t\tfirstnum=107;\n\t\tnum=firstnum+10;\n\t\tif(num>100 && num<200)\n\t\t{\n\t\t\tfor(i=1;i<=9;i++)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\n\t}", "public static void main(String[] args) {\n printFirstNumber(-1000);\n printFirstNumberBreak(-1000);\n\n printFirstNumber(1);\n printFirstNumberBreak(1);\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan=new Scanner(System.in);\n\t\tint x=0;\n\t\twhile(x<=100) {\n\t\t\tSystem.out.print(x++ + \" \");\n\t\t\t\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tint i=1;\n\t\tint a;\n\t\tfor(i=1;i<=100;i++)\n\t\t{\n\t\t\ta=(int)(Math.random()*50)+1;\n\t\t\tSystem.out.println(a);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tfor(int i=0; i<=4 ; i++) {\n\t\t\tSystem.out.println(\"GOOD MORNING\");\n\t\t}\n\t\t// print numbers 1-10\n\t\tfor(int i=1;i<=10; i++) {\n\t\t\tSystem.out.println(i); \n\t\t}\n\t\t//print numbers from 10-1\n\t\tfor( int i=10 ; i>=1; i--) {\n\t\t\tSystem.out.println(i);\n\t\t\t\n\t\t}\n\t\tfor (int i=0; i<50 ; i+=5) {\n\t\t\tSystem.out.println(i);\n\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\n\t}", "public static void main(String args[]) {\n\n\t\tint i = 1;\n\t\twhile (i < 101) {\n\t\t\tSystem.out.println(i);\n\t\t\ti++;\n\t\t}\n\t}", "public static void show(){\n IntStream.rangeClosed(1,5)\n .forEach(System.out::println);\n }", "public static void main(String[] args) {\n\t\r\n\t\t for(int i=100;i<=999;i++){\r\n\t\t int number = i;\r\n\t\t int temp = number;\r\n\t\t int c=0,a;\r\n\t\t while(number>0){\r\n\t\t a = number%10;\r\n\t\t number = number/10;\r\n\t\t c = c +(a*a*a);\r\n\t\t }\r\n\t\t if (temp==c){\r\n\t\t System.out.println(temp);\r\n\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int i=1;i<=100;i++) {\n\t\t\tif(PrimeCheck(i)) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tfor(int i = 0 ; i<=99 ; i++) {\n\t\t\tif((i%2) == 1) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args)\n {\n int integer = 100;\n while(integer > 0)\n {\n System.out.println(integer);\n integer--;\n }\n }", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"enter a number \");\r\n\t\tScanner mack = new Scanner(System.in); \r\n\t\tint tip = mack.nextInt();\r\n\t\t\r\n\t\tfor (int x = tip; x <=100; x++) { \r\n\t\t\t\r\n\t\t\t if (tip > 50) {\r\n\t\t\t\t System.out.println(x);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint x = 0;\n\t\t\n\t\twhile (x <= 100) {\n\t\t\tif( x % 2 == 0) {\n\t\t\tSystem.out.println(x);\n\t\t\t}x ++;\n\t\t}\n\t\t\n\t\t// A while loop that prints every 3rd number going backwards from 100 to 0\n\t\t\n\t\tint y = 100;\n\t\t\n\t\twhile (y >= 0) {\n\t\t\tSystem.out.println(y);\n\t\t\ty -= 3;\n\t\t}\n\t\t\n\t\t// A for loop that prints every other number from 1 to 100\n\t\t\n\t\tfor (int i = 1; i <= 100; i += 2) {\n\t\t\t\n\t\t\tSystem.out.println(i);\n\t\t\t\n\t\t}\n\t\t\n\t\t// A for loop that prints every number from 0 to 100. If divisible by 3 print \"Hello\". If divisible by 5 print\n\t\t// the word \"World\". If divisible by both 3 and 5 print \"Hello World\".\n\t\t\n\t\tfor (int z = 0; z <= 100; z++) {\n\t\t\tif (z % 3 == 0 && z % 5 == 0) {\n\t\t\t\tSystem.out.println(\"HelloWorld\");\n\t\t\t} else if(z % 3 == 0) {\n\t\t\t\tSystem.out.println(\"Hello\");\n\t\t\t} else if ( z % 5 == 0) {\n\t\t\t\tSystem.out.println(\"World\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(z);\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tint i;\r\n\r\n\t\tfor(i=0; i<5; i++) {\r\n\r\n\t\t\tSystem.out.println(\"민윤기랑 지독하게 얽히고싶다\");\r\n\t\t}\r\nSystem.out.println();\r\n\t\tint a;\r\n\t\tfor(a=1; a<=100; a++)\r\n\t\tSystem.out.printf(\" %d\",a);\r\n\t\t\r\nSystem.out.println();\t\r\n\t\t\r\n\t\tint b;\r\n\t\tfor(b=1; b<=100; b++) {\r\n\t\tSystem.out.printf(\" %d\",b);\r\n\t\tif(b>11)\r\n\t\t\tbreak;}\r\nSystem.out.println();\t\r\n\r\nint c;\r\nint sum=0;\r\n\r\nfor(c=1; c<=10;c++) {\r\n\tsum=sum+c;\r\n}\r\nSystem.out.printf(\"%d\",sum);\r\n\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tfor (int i = 1; i < 100; i++) {\r\n\t\t\tif (i % 3 == 0)\r\n\t\t\t\tSystem.out.print(\"Flizz \");\r\n\t\t\telse if (i % 5 == 0)\r\n\t\t\t\tSystem.out.print(\"Buzz \");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.print(i+\" \");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\tfor (int a=1; a<=5; a++)\t {\n\t\tfor (int b=1; b<=(5-a); b++) {\n\t\t\tSystem.out.print(\".\");\n\t\t}\n\t\tSystem.out.println(a);\n\t\t\n\t}\t\n\t}", "public void print1T0255(){\n StringBuilder out = new StringBuilder();\n for (int i = 1; i <= 255; i++){\n out.append( i + \" \");\n }\n System.out.println( out.toString());\n }", "public static void main(String[] args) {\n\t\tint N = 234;\n\t\tint times=N%10;\n\t\tN/=10;\n\t\tint temp=N/10,sum=0;\n\t\twhile(times>0)\n\t\t{\n\t\t\tint rem=N%10;\n\t\t\tsum=temp+rem;\n\t\t\ttemp=sum;\n\t\t\ttimes--;\n\t\t}\n\t\tSystem.out.println(temp);\n\t\n\t}", "public void oneToTwoFiftyFive() {\n for (int i = 1; i<=255; i++) {\n System.out.print(i + \"\\n\");\n }\n }", "public static void main(String[] args) {\nint ans=1;\n\t\tfor(int i=0;i>=0;i++)\n{System.out.println(\"loop\");\n\t\t\tans*=100; \t\nif(i==100)\n{\n\tans=1;}\n}\n\t}", "public static void main(String[] args) {\n IntStream\n .range(1, 10) //loops 1-9\n .forEach(System.out::println); //for each element print them\n System.out.println();\n\n }", "private static void printSquareNumbers() {\r\n\r\n\t\tBigInteger number = new BigInteger(Long.MAX_VALUE + \"\");\r\n\t\tBigInteger finish = number.add(new BigInteger(\"10\"));\r\n\r\n\t\tfor (number = new BigInteger(Long.MAX_VALUE + \"\"); number.compareTo(finish) <= 0; number = number\r\n\t\t\t\t.add(new BigInteger(\"1\"))) {\r\n\t\t\tSystem.out.println(number.multiply(number));\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tfor (int i = 1; i < 101; i++) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program\");\n\t\tfor (int i = 100; i > 0; i--) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 2; i < 101; i = i + 2) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 1; i < 100; i = i + 2) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 501; i++) {\n\t\t\tif (i % 2 == 0) {\n\t\t\t\tSystem.out.println(i + \" is even.\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(i + \" is odd.\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 778; i = i + 7) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 2006; i < 2019; i++) {\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 3; i++) {\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tSystem.out.println(i + \" \" + \" \" + j);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 9; i += 3) {//rows \n\t\t\tfor (int j = 1; j < 4; j++) {//how many \n\t\t\t\tSystem.out.print(j + i);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\tfor (int i = 0; i < 100; i += 10) {\n\t\t\tfor (int j = 1; j <11; j++) {\n\t\t\t\tSystem.out.print(j + i+\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println(\"Next Program.\");\n\t\nfor (int i = 1; i < 7; i++) {\n\tfor (int j = 0; j < i; j++) {\n\t\tSystem.out.print(\"* \");\n\t}\n\tSystem.out.println();\n}\t\n\n\t\n\t\n\t\n\t}", "public static void main(String[] args) {\n\t\tint i = 0;\n\t\tint k = 0;\n\t\tint count = 0;\n\t\t\n\t\tfor(i = 2; i <= 100; i++) {\n\t\t\tcount = 0;\n\t\t\tfor(k = 2; k < i; k++) {\n\t\t\t\tif(i % k == 0) {\n\t\t\t\t\tcount = count + 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(count == 0) {\n\t\t\t\tSystem.out.printf(\"%d \",i);\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint i=1,b=0,c=0;\n\t\twhile(i<=100)\n\t\t{\n\t\t\tint a=i % 2;\n\t\t\tif(a==0)\n\t\t\t{\n\t\t\t\tc=i+b;\n\t\t\t\tb=c;\n\t\t\t}\n\t\t\ti++;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(c);\n\n\t}", "public static void main(String[] args) {\n\t\tfor(int i=2;i<=50;i++) {\n\t\t\tif(i%2==0) {\n\t\t\t\tSystem.out.println(i+\"\\t\");\n\t\t\t}\n\t\t}\n\t}", "public void print() {\n int n = getSeq().size();\n int m = n / printLength;\n for (int i = 0; i < m; i++) {\n printLine(i * printLength, printLength);\n }\n printLine(n - n % printLength, n % printLength);\n System.out.println();\n }", "public void limpiarPantalla() \n\t{\n\t\tfor( int i = 0; i < 300;i++)\n\t\t\tthis.println();\t\t\n\t}", "public static void main (String[] args){\n Scanner in = new Scanner (System.in);\n \n for (int n1=30;n1<=50;n1=n1+1)\n System.out.println(n1);\n\t}", "public static void main(String[] args) {\n\t\tfor(int i=1; i<=100;i++){\n\t\t\tSystem.out.println(\"Factors of a Number\"+i+\" are: \");\n\t\t\tfor(int j=1;j<=i;j++){\n\t\t\t\tif(i%j==0){\n\t\t\t\t\tSystem.out.println(j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tfor(int g = 1; g <= 100; g++) {\n\t\t\tfloat l = g * 3.78541f;\n\t\t\tSystem.out.println(g+\" gallons\t\"+l+\" liters\");\n\t\t\t\n\t\t\tif(g % 10 == 0) {\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "public static void main(String[] args){\n for(int i = 1 ;i < 1000; i++){\n int x = i / 100;\n int y = (i % 100) / 10;\n int z = i % 10;\n int sum = x*x*x + y*y*y +z*z*z;\n if(i == sum || i < 10)\n System.out.println(i);\n }\n }", "public static void main(String[] args) {\n\r\n\t\tint uBound=11, sum=0;\r\n\t\tint i=1;\r\n\t\twhile(i<=uBound) {\r\n\t\t\tif(i==1) {\r\n\t\t\t\tSystem.out.print(i);\r\n\t\t\t\tsum=sum+i;\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.print(\"+\"+i);\r\n\t\t\t\tsum=sum+i;\r\n\t\t\t}\r\n\t\t\ti+=1;\r\n\t\t}\r\n\t\tSystem.out.println(\"=\"+sum);\r\n\t}", "public static void number_invsert(){\n for(int i=7; i > 0 ; i--){\n for(int j =1;j<=i;j++){\n System.out.print(j);\n }\n System.out.println();\n } \n }", "static int sumOf1To100nos() {\r\n\t\t \r\n\t\t int sum =0;\r\n\t\t \r\n\t\t for(int i=1; i<=100;i++) {\r\n\t\t\t sum+=i;\r\n\t\t }\r\n\t\t \r\n\t\t return sum;\r\n\t }", "public void showPrimeNumbers(){\n for(Integer i : this.primeNumbers){\n System.out.print(i + \" \");\n }\n }", "public static void main(String[] args) {\n\n\tint count=0;\t\n\t\n\tfinal int NUMBER_PER_LINE=10;\n\tint i;\n\tint divisor;\n\tfor(i=2;count<50;i++){\n\t\tboolean isPrime=true;\n\t\tfor(divisor=2;divisor<=i/2;divisor++){\n\t\tif(i%divisor==0){\n\t\t\tisPrime=false;\n\t\t\tbreak;\n\t\t}\n\t}\n\t\t\n\t\tif(isPrime){\n\t\t\tcount++;\n\t\t\tif(count%NUMBER_PER_LINE==0) System.out.println(i);\n\t\t else System.out.print(i+\" \");\n\t\t}\n\t\t\n\t }\n\t\n\t\t\n\t}", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }", "public int Print(){\n\tint j ;\n\n\tj = 1 ;\n\twhile (j < (size)) {\n\t System.out.println(number[j]);\n\t j = j + 1 ;\n\t}\n\tSystem.out.println(99999);\n\treturn 0 ;\n }" ]
[ "0.7531", "0.74497193", "0.73898023", "0.7350551", "0.7264705", "0.7262896", "0.72511935", "0.7237796", "0.7181977", "0.71728307", "0.71310955", "0.7039859", "0.6817602", "0.6783804", "0.6764485", "0.67592525", "0.67566794", "0.6732504", "0.6707767", "0.670001", "0.6691088", "0.6686325", "0.66476023", "0.663886", "0.66383386", "0.6618325", "0.65962374", "0.65841", "0.65775114", "0.6566838", "0.65662116", "0.65120316", "0.6510134", "0.6493116", "0.646296", "0.6460516", "0.6445929", "0.6441395", "0.6440533", "0.6440032", "0.64364946", "0.64340705", "0.6433663", "0.6432602", "0.64306253", "0.6406977", "0.64044774", "0.63946486", "0.63740754", "0.6349684", "0.63486975", "0.63454133", "0.63450116", "0.63352525", "0.6332595", "0.63313925", "0.6330147", "0.63275516", "0.6323499", "0.6317788", "0.62964106", "0.62885535", "0.6286775", "0.62798005", "0.62769914", "0.62714636", "0.62594473", "0.62554985", "0.62533706", "0.62533706", "0.62533706", "0.62533706", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486", "0.62520486" ]
0.6779265
14
Interface for an activation function of a neural network. Implement this and pass into the constructor of a neural network to use.
public interface ActivationFunction { /** * The activation function itself. E.g. The sigmoid function * @param z - The weighted sum of a neuron * @return The activation of a neuron */ public double activation(double z); /** * The derivative of the activation function. * @param z - The weighted sum of a neuron * @return The derivative of this activation function at z */ public double activationDerivative(double z); /** * The code of this activation function.<br> * Each activation function has a unique code for it to be identified. * This value is used when saving and loading neural networks; it is saved in the file. * The ClassificationNeuralNetwork class keeps a list of these functions to look up the correct one when loading. * For custom activation functions not included in the list, loading a network causes the activation function * of that particular network to be set to <em>null</em>, and thus it <b>must</b> be set later <b>manually</b> * through the setActivationFunction() method. * @return The code of this activation function */ public byte getCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double activation(double z);", "public void activate() {\t\t\n\t\t// Put activation code here (computing output based on the network's inputs)\n }", "private double activationFunction(double input){\n double temp = 1 + Math.exp(-1 * input * this.sigmoidFactor);\n double result = (double)1/temp;\n return result;\n }", "public interface Layer {\n /**\n * @return The number of neurons, excluding bias neurons and context neurons. This is the number of neurons that\n * are directly fed from elsewhere.\n */\n int getCount();\n\n /**\n * @return The number of neurons, including bias neurons and context neurons.\n */\n int getTotalCount();\n\n /**\n * @return The activation/transfer function for this neuron.\n */\n ActivationFunction getActivation();\n\n /**\n * Finalize the structure of this layer.\n * @param theOwner The neural network that owns this layer.\n * @param theLayerIndex The zero-based index of this layer.\n * @param counts The counts structure to track the weight and neuron counts.\n */\n void finalizeStructure(BasicNetwork theOwner, int theLayerIndex,\n TempStructureCounts counts);\n\n /**\n * Compute this layer.\n */\n void computeLayer();\n\n /**\n * Compute the gradients for this layer.\n * @param calc The gradient calculation utility.\n */\n void computeGradient(GradientCalc calc);\n\n /**\n * @return The start of this layer's weights in the weight vector.\n */\n int getWeightIndex();\n\n /**\n * @return The start of this layer's neurons in the neuron vector.\n */\n int getNeuronIndex();\n\n /**\n * Notification that a training batch is beginning.\n * @param rnd A random number generator, from the trainer.\n */\n void trainingBatch(GenerateRandom rnd);\n\n /**\n * @return The owner of the neural network.\n */\n BasicNetwork getOwner();\n\n /**\n * @return True if this neuron has bias.\n */\n boolean hasBias();\n}", "public ElmanNeuralNetwork(Neuron output, List<Neuron> inputLayer, List<List<Neuron>> hiddenLayers, DoubleUnaryOperator activationFunction) {\n\t\tsuper(output, inputLayer, hiddenLayers, activationFunction);\n\t}", "@Override\n public INDArray getActivation(INDArray in, boolean training) {\n //Modify array \"in\" inplace to transform it with the activation function\n // h(x) = 1.7159*tanh(2x/3)\n Nd4j.getExecutioner().execAndReturn(new Tanh(in.muli(2/3.0)));\n in.muli(1.7159);\n return in;\n }", "double calculateAxon(ActivationFunction activationFunction);", "public FullyConnectedFeedforwardBrain(int neuronsPerLayer[], double learningRate, ActivationFunction activationFunction)\n\t{\n\t\tsuper();\n\t\tthis.learningRate = learningRate;\n\t\tthis.activationFunction = activationFunction;\n\n\t\tthis.initalizeNetwork(neuronsPerLayer);\n\t}", "public interface Neuron {\n /**\n * Checks if current neuron is of type NeuronType.INPUT.\n *\n * @return true if it's input neuron, false otherwise\n */\n boolean isInputNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.HIDDEN.\n *\n * @return true if it's hidden neuron, false otherwise\n */\n boolean isHiddenNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.OUTPUT.\n *\n * @return true if it's output neuron, false otherwise\n */\n boolean isOutputNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.BIAS.\n *\n * @return true if it's bias neuron, false otherwise\n */\n boolean isBiasNeuron();\n\n /**\n * Getter for neuron's name.\n *\n * @return String of this neuron's name\n */\n String getName();\n\n /**\n * Setter for neuron's name.\n *\n * @param name String value as new name for this neuron\n * @return this Neuron instance\n */\n Neuron setName(String name);\n\n /**\n * Gets the List of all incoming neurons (dendrites) for this one.\n * Could be called for all neurons except neurons from input layer and bias neurons,\n * as they can't have incoming connections.\n *\n * @return the List of Neuron instance that leads to this neuron\n */\n List<Neuron> getDendrites();\n\n /**\n * Sets the List of all incoming neurons (dendrites) for this one.\n * Could be called for all neurons except neurons from input layer and bias neurons,\n * as they can't have incoming connections.\n *\n * @return this Neuron instance\n */\n Neuron setDendrites(List<Neuron> dendrites);\n\n /**\n * Gets the current value of this neuron.\n *\n * @return double value of this neuron\n */\n double getAxon();\n\n /**\n * Sets the value for this neuron.\n * Could be called only for input neurons.\n * Hidden neurons and output neurons calculating their values using information from their incoming connections\n * and using activation function, and bias neuron always have axon = 1.\n *\n * @param newValue new axon value for input neuron\n * @return this Neuron instance\n */\n Neuron setAxon(double newValue);\n\n /**\n * Gets the List of all outgoing neurons (synapses) from this one.\n * Could be called for all neurons except of output type as they can't have outgoing connections.\n *\n * @return the List of Neuron instance that this neuron leads to\n */\n List<Neuron> getSynapses();\n\n /**\n * Sets the List of all outgoing neurons (synapses) from this one.\n * Could be called for all neurons except of output type, as they can't have incoming connections.\n *\n * @return this Neuron instance\n */\n Neuron setSynapses(List<Neuron> synapses);\n\n /**\n * Gets the type of this neuron.\n *\n * @return NeuronType value that represents this neuron's type\n */\n NeuronType getType();\n\n /**\n * Computes the value for this neuron from all incoming neurons, using the list of weights passed in this method.\n * The size of weights list should be same as the number of incoming connections for this neuron.\n * Otherwise RuntimeException would be thrown.\n *\n * @param weights the List of double values the represents weights for each incoming connection for this neuron\n * @return new computed soma value\n */\n double calculateSoma(List<Double> weights);\n\n /**\n * Calculates the new value (axon) for this neuron from it's soma, normalized by activation function.\n *\n * @param activationFunction activation function to be used for normalizing soma value\n * @return new axon value for this neuron\n */\n double calculateAxon(ActivationFunction activationFunction);\n\n /**\n * Computes the value for this neuron from all incoming neurons, using the list of weights passed in this method.\n * The size of weights list should be same as the number of incoming connections for this neuron.\n * Otherwise RuntimeException would be thrown.\n * Then calculates the new value (axon) for this neuron from it's soma, normalized by activation function.\n *\n * @param weights the List of double values the represents weights for each incoming connection for this neuron\n * @param activationFunction activation function to be used for normalizing soma value\n * @return new axon value for this neuron\n */\n double calculateSomaAndAxon(List<Double> weights, ActivationFunction activationFunction);\n\n double getDelta();\n\n void setDelta(double delta);\n}", "public FullyConnectedFeedforwardBrain(int neuronsPerLayer[], ThreadPoolExecutor threadExecutor, double learningRate, ActivationFunction activationFunction)\n\t{\n\t\tsuper(threadExecutor);\n\t\tthis.learningRate = learningRate;\n\t\tthis.activationFunction = activationFunction;\n\n\t\tthis.initalizeNetwork(neuronsPerLayer);\n\t}", "public void activate() {\n double dotProduct = 0;\n for (Synapse s : super.getSynapsesIn()) {\n dotProduct += s.getNeuronFrom().getOutput() * s.getWeight();\n }\n super.setOutput(sigmoidFunction(dotProduct));\n }", "public interface TransferFunction {\n\t\n\t/**\n\t * The transfer function takes the array of inputs and weights and performs some computation to produce \n\t * a single output which will be fed in to an activation function. \n\t * \n\t * The arrays of inputs and outputs must be of the same length.\n\t * @param inputs An array of double values.\n\t * @param weights An array of double values.\n\t * @return a single double value for use with an activation function.\n\t */\n\tpublic double transfer(double[] inputs, double[] weights) throws Exception; //TODO: make this a self-defined exception.\n\n}", "private void createNetwork(int inputNeuronsNum, int outputNeuronsNum,\n\t\tTransferFunctionType transferFunctionType) {\n\n\t\t// init neuron properties\n\t\tNeuronProperties neuronProperties = new NeuronProperties();\n//\t\tneuronProperties.setProperty(\"bias\", new Double(-Math\n//\t\t\t\t.abs(Math.random() - 0.5))); // Hebbian network cann not work\n\t\t// without bias\n\t\tneuronProperties.setProperty(\"transferFunction\", transferFunctionType);\n\t\tneuronProperties.setProperty(\"transferFunction.slope\", new Double(1));\n\n\t\t// set network type code\n\t\tthis.setNetworkType(NeuralNetworkType.UNSUPERVISED_HEBBIAN_NET);\n\n\t\t// createLayer input layer\n\t\tLayer inputLayer = LayerFactory.createLayer(inputNeuronsNum,\n\t\t\tneuronProperties);\n\t\tthis.addLayer(inputLayer);\n\n\t\t// createLayer output layer\n\t\tLayer outputLayer = LayerFactory.createLayer(outputNeuronsNum,\n\t\t\tneuronProperties);\n\t\tthis.addLayer(outputLayer);\n\n\t\t// createLayer full conectivity between input and output layer\n\t\tConnectionFactory.fullConnect(inputLayer, outputLayer);\n\n\t\t// set input and output cells for this network\n\t\tNeuralNetworkFactory.setDefaultIO(this);\n\n\t\t// set appropriate learning rule for this network\n\t\tthis.setLearningRule(new UnsupervisedHebbianLearning(this));\n\t//this.setLearningRule(new OjaLearning(this));\n\t}", "public Neuron(Network network, int numberOfInputs, int layerNumber, boolean enableConstAddend) {\n this.network = network;\n this.inputSum = 0.0;\n this.output = 0.0;\n this.delta = 0.0;\n this.inputs = numberOfInputs;\n this.layer = layerNumber;\n this.enableConstAddend = enableConstAddend;\n this.weights = new double[numberOfInputs + 1];\n this.exWeights = new double[numberOfInputs + 1];\n this.changes = new double[numberOfInputs + 1];\n\n setNewWeights(false);\n }", "public NeuralNetworkForwardPropagation() {\n super(\"Neural-network forward-propagation\");\n }", "public void setActivation(double value) {\n this.activation = value;\n }", "public Node(ActivationFunction f) {\n\t\tnodeActivationFunction = f;\n\t}", "double calculateSomaAndAxon(List<Double> weights, ActivationFunction activationFunction);", "public void activate() {\n neurons.forEach(Neuron::activate);\n }", "public int activationFunction(double output) {\n if (output < 0) return 0;\n else return 1;\n }", "public UnsupervisedHebbianNetwork(int inputNeuronsNum, int outputNeuronsNum,\n\t\tTransferFunctionType transferFunctionType) {\n\t\tthis.createNetwork(inputNeuronsNum, outputNeuronsNum,\n\t\t\ttransferFunctionType);\n\t}", "ActivationExpression createActivationExpression();", "public void addNeuron() {\n neurons.add(new Neuron(function));\n }", "protected BackpropNeuron createNeuron(int layer, int index)\n\t{\n\t\tif( layer == 0 )\n\t\t\treturn new InputBackpropNeuron(this, this.activationFunction, this.learningRate);\n\t\telse if(layer >= (this.getLayerCount() - 1))\n\t\t\treturn new OutputBackpropNeuron(this, this.activationFunction, this.learningRate);\n\t\telse\n\t\t\treturn new BackpropNeuron(this, this.activationFunction, this.learningRate);\n\t}", "public void FeedForward() {\r\n\t\tfor (int i = 0; i < Node.length; i++) {\r\n\t\t\tNet = Node[i].Threshold;\r\n\r\n\t\t\tfor (int j = 0; j < Node[i].Weight.length; j++)\r\n\t\t\t\tNet = Net + Input[j] * Node[i].Weight[j];\r\n\r\n\t\t\tNode[i].Output = Sigmoid(Net);\r\n\t\t}\r\n\t}", "public interface EngineNeuralNetwork extends EngineMachineLearning {\r\n\t\r\n\t/**\r\n\t * Decode an array to the neural network weights.\r\n\t * @param data The data to decode.\r\n\t */\r\n\tvoid decodeNetwork(double[] data);\r\n\r\n\t/**\r\n\t * Encode the neural network weights to an array.\r\n\t * @return The encoded neural network.\r\n\t */\r\n\tdouble[] encodeNetwork();\r\n\r\n\t/**\r\n\t * @return The length of the encoded array.\r\n\t */\r\n\tint getEncodeLength();\r\n}", "public NeuralNetwork(int inputs, int layer1, int layer2, int layer3, int outputs) {\r\n this.input = inputs;\r\n this.layer1 = layer1;\r\n this.layer2 = layer2;\r\n this.layer3 = layer3;\r\n this.output = outputs;\r\n }", "public double getActivation() {\r\n\t\tif (activation_count > 0) return activation;\r\n\t\telse return 0.0;\r\n\t}", "public synchronized float calcActivation(float[] attrActivation) {\n\t\t\n\t\t// first reset activation\n\t\tactivation = 0.0f;\n\t\t\n\t\tfor (int i = 0; i < attrConnections.length; i++) {\n\t\t\tactivation = activation + attrConnections[i] * attrActivation[i];\n\t\t}\n\t\t\n\t\treturn activation;\n\t}", "public double activationDerivative(double z);", "@Override\n\tpublic void run() {\n\t\ttotal = 0;\n\t\tfor (Node n : inputs) {\n\t\t\ttotal += n.output * weights.get(n).getWeight();\n\t\t}\n\t\ttotal += bias * biasWeight.getWeight();\n\t\toutput = activationFunction.run(total);\n\t}", "public UnsupervisedHebbianNetwork(int inputNeuronsNum, int outputNeuronsNum) {\n\t\tthis.createNetwork(inputNeuronsNum, outputNeuronsNum,\n\t\t\tTransferFunctionType.LINEAR);\n\n\t}", "public interface InputSummingFunction {\r\n\r\n\t/**\r\n\t * Performs calculations based on the output values of the input neurons.\r\n\t * \r\n\t * @param inputConnections\r\n\t * neuron's input connections\r\n\t * @return total input for the neuron having the input connections\r\n\t */\r\n\tdouble collectOutput(List<NeuronsConnection> inputConnections);\r\n\r\n}", "private void trainPerceptrons(){\n double activationValues[] = new double[4];\n for(Image image:asciiReader.getTrainingImages()){\n for (int j = 0 ; j < activationValues.length; j++){\n activationValues[j] = activationFunction\n .apply(sumWeights(j,image));\n }\n adjustWeights(activationValues,image);\n }\n }", "public interface NeatFitness {\n\n\tpublic double calculate(Network network);\n\t\n}", "public NeurualNetWork(\n int argNumInputs,\n int argNumHidden,\n int argNumOutput,\n double argLearningRate,\n double argMomentumTerm,\n double argA,\n double argB ){\n\n // add one for bias\n this.mNumInputs = argNumInputs + 1;\n //TODO: different: add one for bias\n this.mNumHidden = argNumHidden + 1;\n this.mNumOutputs = argNumOutput;\n this.mLearningRate = argLearningRate;\n this.mMomentumTerm = argMomentumTerm;\n this.mArgA = argA;\n this.mArgB = argB;\n\n zeroWeights();\n //Comment: It's a bad way to use three dimension to store NN, since input, hidden, output don't have same length\n }", "public interface NetworkBuilder {\n\n /**\n * Set neural net layers\n * @param layers an array with the width and depth of each layer\n * @return NetworkBuilder instance\n */\n public abstract NetworkBuilder withLayers(int[] layers);\n\n /**\n * Set the DataSet\n * @param train - training set\n * @param test - test set\n * @return NetworkBuilder instance\n */\n public abstract NetworkBuilder withDataSet(DataSet train, DataSet test);\n\n /**\n * Set the ActivationFunction\n * @param activationFunction\n * @return NetworkBuilder instance\n */\n public abstract NetworkBuilder withActivationFunction(ActivationFunction activationFunction);\n\n /**\n * Set the ErrorMeasure\n * @param errorMeasure\n * @return NetworkBuilder instance\n */\n public abstract NetworkBuilder withErrorMeasure(ErrorMeasure errorMeasure);\n\n /**\n * Train the network\n * @return the trained network for testing\n */\n public abstract FeedForwardNetwork train();\n}", "public LinearNeuron(double[] weights)\n\t{\n\t\tsuper(weights);\n\t}", "public BinaryPulseNeuralFunction() {\n super();\n }", "NeuralNetwork mutate(float rate);", "public ThresholdActivationFunction(double threshold) {\n this.threshold = threshold;\n }", "public Neuron(int l, double b){\r\n\t\tbias=b;\r\n\t\t\r\n\t\tif(l==1)//Make all Brain.INPUTS an Input for a first layer Neuron\r\n\t\t\tfor(int n=0; n<Brain.INPUTS; n++)\r\n\t\t\t\tinputs.add(1);\r\n\t\telse for(int n=0; n<Brain.NEURONSPERLAYER; n++) //Randomly choose to make each Neuron in the previous Layer an Input\r\n\t\t\t\tif(Math.random()>=0.5)\r\n\t\t\t\t\tinputs.add(1);\r\n\t\t\t\telse inputs.add(0);\r\n\t\tif(!inputs.contains(1)) //If no inputs were chosen, randomly select one Neuron from the previous Layer as an Input\r\n\t\t\tinputs.set((int)Math.random()*Brain.NEURONSPERLAYER, 1);\r\n\t\t\r\n\t\tweights= new double[inputs.size()]; //Create an array with a randomly 1 generated weight between -5 and 5 for each Input \r\n\t\tfor(int i=0; i<inputs.size(); i++)\r\n\t\t\tweights[i]=Math.random()*10-5;\r\n\t\t\r\n\t}", "private double Sigmoid (double Net) {\r\n\t\treturn 1/(1+Math.exp(-Net));\r\n\t}", "public BackPropagationLearningProcess(NeuralNetwork network) {\r\n\t\tsuper(network);\r\n\t}", "float activate(float[] input) {\n if (inputLayer.length != input.length) throw new IllegalArgumentException(\"input.length and inputLayer.length do not match\");\n\n System.arraycopy(input, 0, inputLayer, 0, inputLayer.length);\n\n // Calculate the output\n process();\n\n return outputLayer;\n }", "public NeuralNetwork(double learningRate, int[] topology) {\n this.learningRate = learningRate;\n int layerCount = topology.length;\n this.weights = new ArrayList<double[][]>();\n\n // Iterating over layers, skipping the input layer\n for (int i = 0; i < layerCount - 1; i++) {\n int previousLayerNeuronCount = topology[i];\n int layerNeuronCount = topology[i + 1];\n\n // This effectively sets index i\n double[][] layerWeights = new double[layerNeuronCount][previousLayerNeuronCount];\n\n // Iterating over nodes in this layer\n for (int j = 0; j < layerNeuronCount; j++) {\n for (int k = 0; k < previousLayerNeuronCount; k++) {\n layerWeights[j][k] = Math.random() * 2 - 1;\n }\n }\n\n this.weights.add(layerWeights);\n }\n }", "public NeuronalNetwork(){\n // wie viele Schichten?\n // wie viele Neuronen pro Schicht?\n // welche Gewichte Je neuron je Schicht...\n }", "public LinearNeuron(int inputs)\n\t{\n\t\tsuper(inputs);\n\t}", "public interface NeuralBiasNodeInterface extends NeuralNodeInterface{\n\t/**\n\t * TODO\n\t */\n\t\n\t/**\n\t * UnsupportedOperationException linkFrom\n\t */\n}", "public Neuron(Neuron n, double b){\r\n\t\t//Set this Neuron to the Neuron on which to base it\r\n\t\tinputs=n.inputs;\r\n\t\tweights=n.weights;\r\n\t\tlayer=n.layer;\r\n\t\tbias=b;\r\n\t\t//Make a MUTATIONRATE % chance to change the state of each input\r\n\t\t/*for(int i=0; i<inputs.size(); i++)\r\n\t\t\tif(Math.random()<=MUTATIONTRATE)\r\n\t\t\t\tif(inputs.get(i)==1)inputs.set(i, 0);\r\n\t\t\t\telse inputs.set(i, 1);*/\r\n\t\t\r\n\t\t//Change each weight by +/- MUTATIONDEGREE %\r\n\t\tfor(int i=0; i<weights.length; i++)\r\n\t\t\tweights[i]*=1+(Math.random()*MUTATIONDEGREE-(MUTATIONDEGREE/2));\r\n\t}", "public void train(double[] inputs, double[] outputsTarget) {\n assert(outputsTarget.length == weights.get(weights.size() - 1).length);\n \n ArrayList<double[]> layersOutputs = new ArrayList<double[]>(); \n classify(inputs, layersOutputs);\n\n // Calculate sensitivities for the output nodes\n int outputNeuronCount = this.weights.get(this.weights.size() - 1).length;\n double[] nextLayerSensitivities = new double[outputNeuronCount];\n assert(layersOutputs.get(layersOutputs.size() - 1).length == outputNeuronCount);\n for (int i = 0; i < outputNeuronCount; i++) {\n nextLayerSensitivities[i] = calculateErrorPartialDerivitive(\n layersOutputs.get(layersOutputs.size() - 1)[i],\n outputsTarget[i]\n ) * calculateActivationDerivitive(layersOutputs.get(layersOutputs.size() - 1)[i]);\n assert(!Double.isNaN(nextLayerSensitivities[i]));\n }\n\n for (int weightsIndex = this.weights.size() - 1; weightsIndex >= 0; weightsIndex--) {\n int previousLayerNeuronCount = this.weights.get(weightsIndex)[0].length;\n int nextLayerNeuronCount = this.weights.get(weightsIndex).length;\n assert(nextLayerSensitivities.length == nextLayerNeuronCount);\n\n double[] previousLayerOutputs = layersOutputs.get(weightsIndex);\n double[] previousLayerSensitivities = new double[previousLayerNeuronCount];\n\n // Iterate over neurons in the previous layer\n for (int j = 0; j < previousLayerNeuronCount; j++) {\n\n // Calculate the sensitivity of this node\n double sensitivity = 0;\n for (int i = 0; i < nextLayerNeuronCount; i++) {\n sensitivity += nextLayerSensitivities[i] * this.weights.get(weightsIndex)[i][j];\n }\n sensitivity *= calculateActivationDerivitive(previousLayerOutputs[j]);\n assert(!Double.isNaN(sensitivity));\n previousLayerSensitivities[j] = sensitivity;\n\n for (int i = 0; i < nextLayerNeuronCount; i++) {\n double weightDelta = learningRate * nextLayerSensitivities[i] * calculateActivation(previousLayerOutputs[j]);\n this.weights.get(weightsIndex)[i][j] += weightDelta;\n assert(!Double.isNaN(this.weights.get(weightsIndex)[i][j]) && !Double.isInfinite(this.weights.get(weightsIndex)[i][j]));\n }\n }\n\n nextLayerSensitivities = previousLayerSensitivities;\n }\n }", "public void receive(){\n for (int i = 0; i < neurons.size(); i++){\n neurons.get(i).calculateActivation();\n }\n }", "public static MultiLayerNetwork alexnetModel(Integer numLabels) {\n\n double nonZeroBias = 1;\n double dropOut = 0.5;\n\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(seed)\n .weightInit(WeightInit.DISTRIBUTION)\n .dist(new NormalDistribution(0.0, 0.01))\n .activation(Activation.RELU)\n .updater(new Nesterovs(new StepSchedule(ScheduleType.ITERATION, 1e-2, 0.1, 100000), 0.9))\n .biasUpdater(new Nesterovs(new StepSchedule(ScheduleType.ITERATION, 2e-2, 0.1, 100000), 0.9))\n .gradientNormalization(GradientNormalization.RenormalizeL2PerLayer) // normalize to prevent vanishing or exploding gradients\n .l2(5 * 1e-4)\n .list()\n .layer(0, convInit(\"cnn1\", channels, 96, new int[]{11, 11}, new int[]{4, 4}, new int[]{3, 3}, 0))\n .layer(1, new LocalResponseNormalization.Builder().name(\"lrn1\").build())\n .layer(2, maxPool(\"maxpool1\", new int[]{3, 3}))\n .layer(3, conv5x5(\"cnn2\", 256, new int[]{1, 1}, new int[]{2, 2}, nonZeroBias))\n .layer(4, new LocalResponseNormalization.Builder().name(\"lrn2\").build())\n .layer(5, maxPool(\"maxpool2\", new int[]{3, 3}))\n .layer(6, conv3x3(\"cnn3\", 384, 0))\n .layer(7, conv3x3(\"cnn4\", 384, nonZeroBias))\n .layer(8, conv3x3(\"cnn5\", 256, nonZeroBias))\n .layer(9, maxPool(\"maxpool3\", new int[]{3, 3}))\n .layer(10, fullyConnected(\"ffn1\", 4096, nonZeroBias, dropOut, new GaussianDistribution(0, 0.005)))\n .layer(11, fullyConnected(\"ffn2\", 4096, nonZeroBias, dropOut, new GaussianDistribution(0, 0.005)))\n .layer(12, new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)\n .name(\"output\")\n .nOut(numLabels)\n .activation(Activation.SOFTMAX)\n .build())\n .backprop(true)\n .pretrain(false)\n .setInputType(InputType.convolutional(height, width, channels))\n .build();\n\n return new MultiLayerNetwork(conf);\n\n }", "public NeuralNetwork( int neuronsPerLayer[] ) {\n\t\tif (neuronsPerLayer.length < 2)\n\t\t\tthrow new InvalidParameterException(\"Invalid number of layers\");\n\t\t\n\t\tfor (int i=0;i<neuronsPerLayer.length;i++)\n\t\t\tif (neuronsPerLayer[i] < 1)\n\t\t\t\tthrow new InvalidParameterException(\"Invalid number of neurons at layer \"+i);\n\t\t\n\t\t// Put initialization code here \n\t\t// (a) initialize data structures as dictated by neuronsPerLayer array\n\t\t// (b) randomize initial weights, if necessary\n }", "public interface IFan {\n void activate(int i);\n}", "private void forwardPropagation(int[] trainingData, double[] activationsOfHiddenLayer, double[] outputActivations) {\n\t\tdouble[] hiddenActivations = new double[SIZE_HIDDEN_LAYER];\n\n\t\tfor(int indexHidden = 0; indexHidden < SIZE_HIDDEN_LAYER; indexHidden++) {\n\t\t\thiddenActivations[indexHidden] = 0;\n\t\t\tfor(int indexInput = 0; indexInput < SIZE_INPUT_LAYER; indexInput++) {\n\t\t\t\thiddenActivations[indexHidden] += weightsOfHiddenLayer[indexHidden][indexInput] * trainingData[indexInput];\n\t\t\t}\t\n\t\t\thiddenActivations[indexHidden] += biasOfHiddenLayer[indexHidden];\n//\t\t\t// We then call the activation function \n\t\t\thiddenActivations[indexHidden] = tanh(hiddenActivations[indexHidden]);\n\t\t\tactivationsOfHiddenLayer[indexHidden] = hiddenActivations[indexHidden];\n\n\t\t}\n\t\t\t\t\n\t\tfor(int indexOuput = 0; indexOuput < SIZE_OUTPUT_LAYER; indexOuput++) {\n\t\t\toutputActivations[indexOuput] = 0;\n\t\t\tfor(int indexHidden = 0; indexHidden < SIZE_HIDDEN_LAYER; indexHidden ++) {\n\t\t\t\toutputActivations[indexOuput] += weightsOfOutputLayer[indexOuput][indexHidden] * hiddenActivations[indexHidden];\n\t\t\t}\t\n\t\t\toutputActivations[indexOuput] += biasOfOutputLayer[indexOuput];\n\t\t}\n\t\tsoftmax(outputActivations);\t\n\t}", "public void train(int iterations) {\n\t\tNeuron n = new NeuronSigmoid();\n\t\t\n\t\tfor (int i = 0; i < iterations; i++) {\n\t\t\tSystem.out.print(\"Epoch: \" +(i+1));\n\t\t\tdouble[][] localOutput = n.think(this.input,this.weights);\n\n\t\t\tdouble[][] error = Matrix2d.subtract(output, localOutput);\n\t\t\tSystem.out.print(\" Error: \"+calcOverallError(error));\n\t\t\tdouble[][] sigDeriv = Matrix2d.sigmoidDerivative(localOutput);\n\t\t\tdouble[][] prod = Matrix2d.multiply(error, sigDeriv);\n\t\t\tdouble[][] transInput = Matrix2d.transposeMatrix(input);\n\t\t\tdouble[][] adjustment = Matrix2d.dot(transInput, prod);\n\n\t\t\tweights = Matrix2d.add(adjustment, weights);\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "public void fire() {\n\t\tif (nextLayerNodes.size() == 0) {\n\t\t\t// todo: handle output layer\n//\t\t\tSystem.out.printf(\"\tOutput = %f%n\", output);\n\t\t\tSystem.out.printf(\"\tPre Activation Function Output = %f%n\", preActivationFunctionOutput);\n\t\t\treturn;\n\t\t}\n\t\tNode[] nextNodes = new Node[nextLayerNodes.keySet().toArray().length];\n\t\tfor (int i = 0; i < nextNodes.length; i++) {\n\t\t\tnextNodes[i] = (Node) nextLayerNodes.keySet().toArray()[i];\n\t\t}\n\t\tfor (int i = 0; i < nextLayerNodes.size(); i++) {\n\t\t\t// sends the weight of the connection to a node in the next layer * the output of the activation function from this layer\n\t\t\tnextNodes[i].addInput(nextLayerNodes.get(nextNodes[i])*output);\n\t\t}\n\t}", "public static void XOR() {\n System.out.println(\"---\");\n System.out.println(\"This section will create, and train a neural network with the topology of 2-2-1. That is\\n\" +\n \"there are 2 input neurons, 2 hidden neurons, and 1 output neuron. The XOR problem will be using the\\n\" +\n \"XOR_training_data.txt file to get the training data. In order to make training simpler, the 0's have\\n\" +\n \"been substituted with -1's.\");\n System.out.println(\"Training...\");\n NeuralNetwork xor = (NeuralNetwork)StochasticBackPropagation.SBP(2, 2, 1, \"XOR_training_data.txt\", 20000, 0.1, 0.05);\n System.out.println(\"Trained.\");\n\n double[] input = new double[2];\n System.out.println(\"Input: -1 -1\");\n input[0] = -1;\n input[1] = -1;\n double[] output = xor.feedForward(input);\n System.out.println(\"Expected Output: -1\");\n System.out.println(\"Actual Output: \"+Math.round(output[0])); //rounding to make output cleaner.\n\n System.out.println(\"Input: -1 1\");\n input[0] = -1;\n input[1] = 1;\n output = xor.feedForward(input);\n System.out.println(\"Expected Output: 1\");\n System.out.println(\"Actual Output: \"+Math.round(output[0]));\n\n System.out.println(\"Input: 1 -1\");\n input[0] = 1;\n input[1] = -1;\n output = xor.feedForward(input);\n System.out.println(\"Expected Output: 1\");\n System.out.println(\"Actual Output: \"+Math.round(output[0]));\n\n System.out.println(\"Input: 1 1\");\n input[0] = 1;\n input[1] = 1;\n output = xor.feedForward(input);\n System.out.println(\"Expected Output: -1\");\n System.out.println(\"Actual Output: \"+Math.round(output[0]));\n System.out.println(\"---\\n\");\n }", "public NNMatrix sigmoid() {\n final double data[] = getData();\n double x;\n for (int i = 0; i < data.length; i++) {\n x = data[i];\n // sigmoid function\n data[i] = 1 / (1 + Math.exp(-x));\n }\n\n return new NNMatrix(numRows(), numCols(), data);\n }", "private double[][] forwardPropogate(double[][] inputs, double[][] weights) {\n\t\tdouble[][] resultLayer = m.dot(inputs, weights);\n\t\tsigmoid(resultLayer);\n\t\treturn resultLayer;\n\t}", "public interface Regressor {\n\n String name();\n\n float recognize(final float[] pixels);\n}", "boolean isInputNeuron();", "public encogNeuralNet() {\n initComponents();\n this.INPUT_NODES=13;\n this.OUTPUT_NODES=31;\n this.shutDown=false;\n this.savedInstance= new File(\"network.csv\");\n this.network = new BasicNetwork();\n }", "boolean isBiasNeuron();", "@Override\n /**\n * @param X The input vector. An array of doubles.\n * @return The value returned by th LUT or NN for this input vector\n */\n\n public double outputFor(double[] X) {\n int i = 0, j = 0;\n for(i=0;i<argNumInputs;i++){\n S[0][i] = X[i];\n NeuronCell[0][i] = X[i];\n }\n //then add the bias term\n S[0][argNumInputs] = 1;\n NeuronCell[0][argNumInputs] = customSigmoid(S[0][argNumInputs]);\n S[1][argNumHidden] = 1;\n NeuronCell[1][argNumHidden] = customSigmoid(S[1][argNumInputs]);\n\n for(i=0;i<argNumHidden;i++){\n for(j=0;j<=argNumInputs;j++){\n //Wji : weigth from j to i\n WeightSum+=NeuronCell[0][j]*Weight[0][j][i];\n }\n //Sj = sigma(Wji * Xi)\n S[1][i]=WeightSum;\n NeuronCell[1][i]=(customSigmoid(WeightSum));\n //reset weigthsum\n WeightSum=0;\n }\n\n for(i = 0; i < argNumOutputs; i++){\n for(j = 0;j <= argNumHidden;j++){\n WeightSum += NeuronCell[1][j] * Weight[1][j][i];\n }\n NeuronCell[2][i]=customSigmoid(WeightSum);\n S[2][i]=WeightSum;\n WeightSum=0;\n }\n //if we only return 1 double, it means we only have one output, so actually we can write return NeuronCell[2][0]\n return NeuronCell[2][0];\n }", "public NNImpl(ArrayList<Instance> trainingSet, int hiddenNodeCount, Double learningRate, int maxEpoch, Double [][]hiddenWeights, Double[] outputWeights)\r\n\t{\r\n\t\tthis.trainingSet=trainingSet;\r\n\t\tthis.learningRate=learningRate;\r\n\t\tthis.maxEpoch=maxEpoch;\r\n\r\n\t\t//input layer nodes\r\n\t\tinputNodes=new ArrayList<Node>();\r\n\t\tint inputNodeCount=trainingSet.get(0).attributes.size();\r\n\t\tint outputNodeCount=1;\r\n\t\tfor(int i=0;i<inputNodeCount;i++)\r\n\t\t{\r\n\t\t\tNode node=new Node(0);\r\n\t\t\tinputNodes.add(node);\r\n\t\t}\r\n\r\n\t\t//bias node from input layer to hidden\r\n\t\tNode biasToHidden=new Node(1);\r\n\t\tinputNodes.add(biasToHidden);\r\n\r\n\t\t//hidden layer nodes\r\n\t\thiddenNodes=new ArrayList<Node> ();\r\n\t\tfor(int i=0;i<hiddenNodeCount;i++)\r\n\t\t{\r\n\t\t\tNode node=new Node(2);\r\n\t\t\t//Connecting hidden layer nodes with input layer nodes\r\n\t\t\tfor(int j=0;j<inputNodes.size();j++)\r\n\t\t\t{\r\n\t\t\t\tNodeWeightPair nwp=new NodeWeightPair(inputNodes.get(j),hiddenWeights[i][j]);\r\n\t\t\t\tnode.parents.add(nwp);\r\n\t\t\t}\r\n\t\t\thiddenNodes.add(node);\r\n\t\t}\r\n\r\n\t\t//bias node from hidden layer to output\r\n\t\tNode biasToOutput=new Node(3);\r\n\t\thiddenNodes.add(biasToOutput);\r\n\r\n\r\n\r\n\t\tNode node=new Node(4);\r\n\t\t//Connecting output node with hidden layer nodes\r\n\t\tfor(int j=0;j<hiddenNodes.size();j++)\r\n\t\t{\r\n\t\t\tNodeWeightPair nwp=new NodeWeightPair(hiddenNodes.get(j), outputWeights[j]);\r\n\t\t\tnode.parents.add(nwp);\r\n\t\t}\t\r\n\t\toutputNode = node;\r\n\r\n\t}", "public FFANNAdaptiveBackPropagationJSP()\n\t{\n\t\t//run(network, numberInputNeurons, numberHiddenNeurons, numberOutputNeurons, trainingSet);\n\t}", "public Layer(int numNeurons, int inputsPerNeuron) {\n\n this.numNeurons = numNeurons;\n\n neurons = new Neuron[numNeurons];\n for (int i = 0; i < numNeurons; i++) {\n neurons[i] = new Neuron(inputsPerNeuron);\n }\n }", "public double[][] activateFunction(){\n\t\n\t\tboolean run = true;\n\t\tint count = 0;\n\t\tdouble[][] output = null;\n\t\twhile(run){\n\t\t\toutput = sign(subtract(multiply(weights, entryCoord), thresholds));\n\t\t\t\tfor(int i = 0; i < trainingList.size(); i++){\n\t\t\t\t\tfor(int j = 0; j < (XDIMENSION * YDIMENSION); j++){\n\t\t\t\t\t\tif(trainingList.get(i)[j][0] == output[j][0]){\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(count == (XDIMENSION * YDIMENSION)){\n\t\t\t\t\t\t\trun = false;\n\t\t\t\t\t\t\tfor(int k = 0; k < output.length; k++){\n\t\t\t\t\t\t\t\tSystem.out.print(output[k][0] + \" \");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\t\n\t\n\t\t}\n\t\treturn makeGrid(output);\n\t}", "public double getActivationFunctionDerivative() {\n\t\treturn nodeActivationFunction.getDerivative();\n\t}", "public void backprop(double[] inputs, FeedForwardNeuralNetwork net, boolean verbose)\n {\n //create variables that will be used later\n int[] sizes = net.getSizes();\n int biggestSize = 0;\n for(int k = 0; k < sizes.length; k++)\n {\n if(sizes[k] > biggestSize)\n {\n biggestSize = sizes[k];\n }\n }\n int hiddenLayers = sizes.length - 2;\n //if input or output wrong size, return\n if(inputs.length != sizes[0])\n {\n System.out.println(\"Invalid number of inputs\");\n return;\n }\n\n double[][] allOutputs = new double[sizes.length][biggestSize];\n double[][] allErrors = new double[sizes.length][biggestSize];\n\n //fill out first layer to temp output\n int lastLayer = sizes[0];\n for(int k = 0; k < lastLayer; k++)\n {\n allOutputs[0][k] = inputs[k];\n }\n\n //for each layer after the input\n for(int k = 1; k < hiddenLayers + 2; k++)\n {\n //for each node in that layer\n for(int a = 0; a < sizes[k]; a++)\n {\n //get sum and get activation function result and its derivative\n double sum = 0;\n for(int t = 0; t < lastLayer; t++)\n {\n sum += allOutputs[k - 1][t] * net.getWeight(k - 1, t, k, a);\n }\n sum += net.getBiasNum() * net.getWeight(-1, 0, k, a);\n if(k != hiddenLayers + 1)\n {\n allOutputs[k][a] = net.applyActivationFunction(sum, net.getHiddenActivationFunction());\n allErrors[k][a] = net.applyActivationFunctionDerivative(sum, net.getHiddenActivationFunction());\n }\n else\n {\n allOutputs[k][a] = net.applyActivationFunction(sum, net.getOutputActivationFunction());\n allErrors[k][a] = net.applyActivationFunctionDerivative(sum, net.getOutputActivationFunction());\n }\n }\n lastLayer = sizes[k];\n }\n\n if(verbose)\n {\n System.out.println(\"Outputs\");\n for(int k = 0; k < maxClusters; k++)\n {\n System.out.print(allOutputs[hiddenLayers + 1][k] + \", \");\n }\n System.out.println();\n }\n double[] expectedOutputs = new double[maxClusters];\n int cluster = 0;\n double max = 0;\n for(int k = 0; k < maxClusters; k++)\n {\n expectedOutputs[k] = allOutputs[hiddenLayers + 1][k];\n if(allOutputs[hiddenLayers + 1][k] > max)\n {\n cluster = k;\n max = allOutputs[hiddenLayers + 1][k];\n }\n }\n if(verbose)\n {\n System.out.println(\"Output \" + cluster + \" will be set to max value\");\n System.out.println();\n }\n\n expectedOutputs[cluster] = 4;\n\n\n //go backward from output to first hidden layer\n for(int k = hiddenLayers + 1; k > 0; k--)\n {\n //for each node in that layer\n for(int a = 0; a < sizes[k]; a++)\n {\n //compute error for not output layer\n if(k != hiddenLayers + 1)\n {\n double temp = allErrors[k][a];\n allErrors[k][a] = 0;\n for(int t = 0; t < sizes[k + 1]; t++)\n {\n allErrors[k][a] += net.getWeight(k, t, k + 1, a) * allErrors[k + 1][t];\n }\n allErrors[k][a] *= temp;\n }\n //compute error for output layer\n else\n {\n allErrors[k][a] *= (expectedOutputs[a] - allOutputs[k][a]);\n }\n\n //for each weight node takes as input\n for(int t = 0; t < sizes[k - 1]; t++)\n {\n //find the delta for the weight and apply\n int index = net.getIndex(k - 1, t, k, a);\n double delta = learningRate * allOutputs[k - 1][t] * allErrors[k][a]\n + momentum * lastDeltas[index];\n\n net.setWeight(k - 1, t, k, a, net.getWeight(k - 1, t, k, a) + delta);\n lastDeltas[index] = delta;\n }\n }\n }\n }", "public void calculateDesireHiddenLayerActivation(int dataIndex) {\r\n for (int i = 0; i < hiddenLayer.length; i++) {\r\n double count = 0;\r\n for (int j = 0; j < outputLayer.length; j++) {\r\n count += -2*((attribute[dataIndex] == i ? 1 : 0) - sigmoid(outputLayer[j].z))*sigmoidDeri(outputLayer[j].z)*outputLayer[j].dw[i];\r\n }\r\n desireHiddenLayerActivation[i] = hiddenLayer[i].a - count / outputLayer.length;\r\n }\r\n }", "public interface CommonInterface {\n\n\t/* FEED FORWARD\n\t * The input vector. An array of doubles.\n * @return The value returned by the LUT or NN for this input vector\n\t * \tX the input vector. An array of doubles.\n\t * The value return by LUT OR NN for this input vector\n\t * returns output of the neurons forward propagation\n\t * */\n\tpublic double outputFor(double [] X);\n\n\t/* \n\t * Method will tell NN or LUT the output value that should be mapped \n\t * to given input vector i.e. the desired correct output value for an input\n\t * @param X the input vector\n\t * @param argValue The new value to learn\n\t * @return the error in output for input vector \n\t */\n\tpublic double train(double[] X, double argValue);\n\t/*\n\t * Method to write either a LUT or weights of neural net to a file\n\t * @param argFile of type File\n\t */\n\tpublic void save (File argFile) throws IOException;\n\t/*\n\t * Loads LUT or NN weights from file. Load must of course have \n\t * knowledge of how data was written out by save mehtod.\n\t * Should raise an error in case that attempt is being made\n\t * to load data into an LUT or NN whose struct does not match the data in\n\t * the file (.eg. wrong number of hidden neurons)\n\t */\n\tpublic void load (String argFileName) throws IOException;\n}", "protected void trainModuleNN(Map<DiscreteState, Double> out1f, int[] numHidden,\n\t\t\tint epochs, double lRate, double mRate, double sRate) {\n\t\tfor(int i = 0; i < epochs; i++) {\n//\t\t\tdouble err = 0;\n\t\t\tfor (Map.Entry<DiscreteState, Double> entry : out1f.entrySet()) {\n\t\t\t\tdouble[] input = entry.getKey().getRawState();\n\t\t\t\tif (neuralNet == null) neuralNet = new FFNeuralNetwork(ActivationFunction.SIGMOID0p5,\n\t\t\t\t\t\tinput.length, 1, numHidden);\n\t\t\t\tFFNeuralNetwork.feedForward(neuralNet.getInputNodes(), input);\n\t\t\t\tFFNeuralNetwork.backPropagate(neuralNet.getOutputNodes(), lRate, mRate, sRate, entry.getValue());\n//\t\t\t\terr += FFNeuralNetwork.getError(new double[] {entry.getValue()}, neuralNet.getOutputNodes());\n\t\t\t}\n//\t\t\tSystem.out.println(i + \"\t\" + err / out1f.size());\n\t\t}\n//\t\tfor (Map.Entry<DiscreteState, Double> entry : out1f.entrySet()) {\n//\t\t\tFFNeuralNetwork.feedForward(neuralNet.getInputNodes(), entry.getKey().getRawState());\n//\t\t\tSystem.out.println(entry.getValue() + \"\tvs\t\" + neuralNet.getOutputNodes().get(0).getActivation());\n//\t\t}\n\t\tif (rel2ModuleInput.isEmpty()) {\n\t\t\tArrayList<? extends Node> inputNodes = neuralNet.getInputNodes();\n\t\t\tint j = 0;\n\t\t\tfor (IndirectInput rel : relations) rel2ModuleInput.put(rel, inputNodes.get(j++));\n\t\t}\n\t}", "public void calculate() {\r\n\t\tint bias = hasBias();\r\n\r\n\t\tfor(int i = bias; i < getNeurons().size(); i++) {\r\n\t\t\tgetNeurons().get(i).activate(); \r\n\t\t}\r\n\t}", "public TensorFunction<Reference> function() { return function; }", "public NNImpl(ArrayList<Instance> trainingSet, int hiddenNodeCount, Double learningRate, int maxEpoch, Double [][]hiddenWeights, Double[][] outputWeights)\r\n\t{\r\n\t\tthis.trainingSet=trainingSet;\r\n\t\tthis.learningRate=learningRate;\r\n\t\tthis.maxEpoch=maxEpoch;\r\n\r\n\t\t//input layer nodes\r\n\t\tinputNodes=new ArrayList<Node>();\r\n\t\tint inputNodeCount=trainingSet.get(0).attributes.size();\r\n\t\tint outputNodeCount=trainingSet.get(0).classValues.size();\r\n\t\tfor(int i=0;i<inputNodeCount;i++)\r\n\t\t{\r\n\t\t\tNode node=new Node(0);\r\n\t\t\tinputNodes.add(node);\r\n\t\t}\r\n\r\n\t\t//bias node from input layer to hidden\r\n\t\tNode biasToHidden=new Node(1);\r\n\t\tinputNodes.add(biasToHidden);\r\n\r\n\t\t//hidden layer nodes\r\n\t\thiddenNodes=new ArrayList<Node> ();\r\n\t\tfor(int i=0;i<hiddenNodeCount;i++)\r\n\t\t{\r\n\t\t\tNode node=new Node(2);\r\n\t\t\t//Connecting hidden layer nodes with input layer nodes\r\n\t\t\tfor(int j=0;j<inputNodes.size();j++)\r\n\t\t\t{\r\n\t\t\t\tNodeWeightPair nwp=new NodeWeightPair(inputNodes.get(j),hiddenWeights[i][j]);\r\n\t\t\t\tnode.parents.add(nwp);\r\n\t\t\t}\r\n\t\t\thiddenNodes.add(node);\r\n\t\t}\r\n\r\n\t\t//bias node from hidden layer to output\r\n\t\tNode biasToOutput=new Node(3);\r\n\t\thiddenNodes.add(biasToOutput);\r\n\r\n\t\t//Output node layer\r\n\t\toutputNodes=new ArrayList<Node> ();\r\n\t\tfor(int i=0;i<outputNodeCount;i++)\r\n\t\t{\r\n\t\t\tNode node=new Node(4);\r\n\t\t\t//Connecting output layer nodes with hidden layer nodes\r\n\t\t\tfor(int j=0;j<hiddenNodes.size();j++)\r\n\t\t\t{\r\n\t\t\t\tNodeWeightPair nwp=new NodeWeightPair(hiddenNodes.get(j), outputWeights[i][j]);\r\n\t\t\t\tnode.parents.add(nwp);\r\n\t\t\t}\t\r\n\t\t\toutputNodes.add(node);\r\n\t\t}\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tNeuralNet n = new NeuralNet(0, NeuralNet.BINARY_NEURON);\t// neural net with 0 hidden layers using Binary Neurons \n\t\tfloat[] inputs = {1, 0};\n\t\tn.addInputLayer(inputs);\t// add the inputs to the neural net model\n\t\t\n\t\tn.addOutputLayer(1);\t\t// add one output in the output layer\n\t\tn.createConnections(1);\t\t// default connections with weights of 1\n\t\tn.connectInputs(1);\t\t\t// connect inputs to 1st layer using weights of 1\n\t\tn.connectOutputs(1);\t\t// connect last (hidden) layer to output layer using weights of 1\n\t\t\n\t\t\n\t\tJFrame frame = new JFrame(\"Neural Net\");\n\t\tframe.setSize(600, 480);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tNeuralNetPanel np = new NeuralNetPanel(n);\n\t\tframe.add(np);\n\t\tframe.setVisible(true);\n\n\t\t((BinaryNeuron)(n.getLayer(1).get(1))).setThreshold(0.9f);\t// OR gate\n\t\t//((BinaryNeuron)(n.getLayer(1).get(0))).setThreshold(1.5f);\t// AND gate\n\t\t\n\t\tn.forwardPropagate();\n\t\tnp.repaint();\n\n\t}", "public void trainNet() {\t\t\n\t\t// Synapses contain the weights for each layer, these are randomised to begin with\n\t\tsynapse0 = new double[X[0].length][hiddenNeurons];\n\t\tpopulateRandom(synapse0, minRandomWeight, maxRandomWeight);\n\t\t\n\t\tsynapse1 = new double[hiddenNeurons][y[0].length];\n\t\tpopulateRandom(synapse1, minRandomWeight, maxRandomWeight);\n\t\t\n\t\t// The layers are the output values of each layer.\n\t\t// They are initialised to nothing to begin with, created properly in the training loop\n\t\tlayer1 = new double[0][0];\n\t\tlayer2 = new double[0][0];\n\t\t\n\t\t// Printing the initial state of the system\n\t\tm.printMatrix(\"X:\", X);\n\t\tm.printMatrix(\"y:\", y);\n\t\t\n\t\t// The training loop\n\t\tfor (int i = 0; i < trainingCycles; i++) {\n\t\t\t// calculate the values of each layer given the inputs and the weights\n\t\t\tlayer1 = forwardPropogate(X, synapse0);\n\t\t\tlayer2 = forwardPropogate(layer1, synapse1);\n\t\t\t\n\t\t\t// Calculate the delta error for each output layer, starting\n\t\t\t// with the bottom working up.\n\t\t\t// This is the difference between the expected values and actual values\n\t\t\t// times the derivative (gradient) of the sigmoid activation function\n\t\t\t// The 1st error comes from y - output\n\t\t\tdouble[][] layer2Delta = m.subtract(y, layer2);\n\t\t\tlayer2Delta = delta(layer2Delta, layer2);\n\t\t\t// subsequent layers come from the delta of the lower layer divided by the weights\n\t\t\tdouble[][] layer1Delta = m.dot(layer2Delta, m.t(synapse1));\n\t\t\tlayer1Delta = delta(layer1Delta, layer1);\n\t\t\t\n\t\t\t// Apply the error gradients to each weight, this moves the value closer to the expected\n\t\t\t// or reduces the error\n\t\t\tsynapse1 = m.add(synapse1, m.scale(m.dot(m.t(layer1), layer2Delta), trainingRate));\n\t\t\tsynapse0 = m.add(synapse0, m.scale(m.dot(m.t(X), layer1Delta), trainingRate));\n\t\t}\n\t\t// Run the input matrix through the net to get outputs for each training value on layer 2\n\t\tdouble[][] testNet = runData(X);\n\t\t// Show the results\n\t\tm.printMatrix(\"Output for X after training:\", testNet);\n\t\tm.printMatrixInts(\"Output for X after training (out of 100:\", testNet);\n\t}", "public RestrictedBoltzmannMachine(int[] inputData, double weightWide, double biasWide, double learningRate) {\n\t\t/*\n\t\t * inputData : {visibleUnitsNumber, hiddenunitsNumber}\n\t\t * \n\t\t * \n\t\t */\n\t\tthis.learningRate = learningRate;\n\t\tthis.weightWide = weightWide;\n\t\tthis.biasWide = biasWide;\n\t\tRandom rand = new Random();\n\t\tthis.layers = new Entity[2][];\n\t\tfor(int i = 0; i < 2; i++){\n\t\t\tthis.layers[i] = new Entity[inputData[i]];\n\t\t\tfor(int j = 0; j < inputData[i]; j++){\n\t\t\t\tthis.layers[i][j] = new Entity(j, (rand.nextDouble())*this.biasWide);\n\t\t\t}\n\t\t}\n\t\tthis.connections = new double[inputData[0]][inputData[1]];\n\t\tfor(int i = 0; i < this.connections.length; i++){\n\t\t\tfor(int j = 0; j < this.connections[0].length; j++){\n\t\t\t\tthis.connections[i][j] = (rand.nextDouble())*this.weightWide;\n\t\t\t}\n\t\t}\n\n\t\tthis.connectionsGradient = new double[this.connections.length][this.connections[0].length];\n\n\t\tthis.biasGradient = new double[2][];\n\t\tthis.biasGradient[0] = new double[this.layers[0].length];\n\t\tthis.biasGradient[1] = new double[this.layers[1].length];\n\t}", "public Layer(Layer previousLayer, Neuron bias) {\r\n\t\tthis(previousLayer);\r\n\t\tthis.bias = bias;\r\n\t\tgetNeurons().add(bias); //Add the bias neuron\r\n\t}", "public ElasticNetWeightDecay(String name, NDList parameters, float lambda) {\n super(name);\n this.lambda1 = lambda;\n this.lambda2 = lambda;\n this.parameters = parameters;\n }", "public interface NNStateConverter<StateT extends State> {\n\n void getStateInput(StateT state, FloatPointer input);\n\n void saveMemoryState(String filePrefix);\n void loadMemoryState(String filePrefix);\n}", "public DigitGuessNeuralNetwork(){\r\n neuralNetwork=NeuralNetwork.load(MainActivity.neuralNetInputStream);\r\n }", "public Activation_Linear_Range_0_1() {\r\n this.slope = new VDouble(new RealNumber(1), new VDoubleNoUpdate());\r\n this.c = new VDouble(new RealNumber(0), new VDoubleNoUpdate());\r\n }", "public Neuron(double[] weights) {\n this.weights = weights;\n this.updatedWeights = this.weights;\n this.change = 0;\n }", "public int feedforward(float[] inputs) {\r\n float sum = 0;\r\n for (int i = 0; i < weights.length; i++) {\r\n sum += inputs[i] * weights[i];\r\n }\r\n System.out.println(\"sum = \" + sum);\r\n return activate(sum);\r\n }", "public interface OnlineStructuredAlgorithm extends StructuredAlgorithm {\n\n\t/**\n\t * Strategy to update the learning rate.\n\t * \n\t * @author eraldof\n\t * \n\t */\n\tpublic enum LearnRateUpdateStrategy {\n\t\t/**\n\t\t * No update, i.e., constant learning rate.\n\t\t */\n\t\tNONE,\n\n\t\t/**\n\t\t * The learning rate is equal to n/t, where n is the initial learning\n\t\t * rate and t is the current iteration (number of processed examples).\n\t\t */\n\t\tLINEAR,\n\n\t\t/**\n\t\t * The learning rate is equal to n/(t*t), where n is the initial\n\t\t * learning rate and t is the current iteration (number of processed\n\t\t * examples).\n\t\t */\n\t\tQUADRATIC,\n\n\t\t/**\n\t\t * The learning rate is equal to n/(sqrt(t)), where n is the initial\n\t\t * learning rate and t is the current iteration (number of processed\n\t\t * examples).\n\t\t */\n\t\tSQUARE_ROOT\n\t}\n\n\t/**\n\t * Update the currect model using the given correct output and the predicted\n\t * output for this example. Attention: the given <code>predicted</code> is\n\t * only a placeholder to store the predicted structure, i.e., the prediction\n\t * will be done inside this method.\n\t * \n\t * @param input\n\t * the input structure.\n\t * @param output\n\t * the correct output structured.\n\t * @param predicted\n\t * a place holder for the predicted structured.\n\t * @return the loss function value for the given correct output and the\n\t * predicted output using the current weight vector (before the\n\t * possible update generated by the given example).\n\t */\n\tpublic double train(ExampleInput input, ExampleOutput output,\n\t\t\tExampleOutput predicted);\n\n\t/**\n\t * Set the learning rate.\n\t * \n\t * @param rate\n\t */\n\tpublic void setLearningRate(double rate);\n\n\t/**\n\t * Return the current iteration.\n\t * \n\t * @return\n\t */\n\tpublic int getIteration();\n\n}", "public NeuralNetwork createDefaultNet(InputProvider inputProvider) {\r\n\t\tNeuralNetwork net = new NeuralNetwork();\r\n\t\tInputLayer inputLayer = layerFactory.createDefaultInputLayer(inputProvider);\r\n\t\tcreateAndConnectLayers(inputLayer, 2, inputProvider);\r\n\t\tnet.setInputLayer(inputLayer);\r\n\t\treturn net;\r\n\t}", "public InputLayer(int size) {\n\t\tsuper(size);\n\t\tactivationFunc = null;\n\t}", "public LinearNeuron(double[] weights, double offset)\n\t{\n\t\tsuper(weights, offset);\n\t}", "@Override // from StateSpaceModel\n public Tensor f(Tensor x, Tensor u) {\n return u;\n }", "public interface JacobiFunction {\n\n double[][] f(double[] x, double[] params);\n}", "public int getActivation()\n {\n return activation;\n }", "public SigmoidVertex(DoubleVertex inputVertex) {\n super(inputVertex.getShape(), inputVertex);\n }", "public NeuralNet(int numLayers, int numNodesPerLayer, List<Double> input,\n\t\t\tMap<Integer, List<Double>> expectedOutput) {\n\t\tmomentum = 0.01;\n\t\tlearningRate = 0.2;\n\t\tepoch = 0;\n\t\tlayers = new ArrayList<Layer>();\n\t\tthis.expectedOutput = expectedOutput;\n\t\twhile (numLayers > 0) {\n\t\t\tlayers.add(new Layer(numNodesPerLayer));\n\t\t\tnumLayers--;\n\t\t}\n\t\taddData(input);\n\t}", "public LearningBoardEvaluator(int numWeights) {\n super(numWeights);\n }", "public interface ActivationDriver {\n\n /**\n * Called in case all drivers in the transaction has succeeded.\n */\n void commit();\n\n /**\n * Called in case any of drivers in the transaction has failed.\n */\n void rollback();\n\n /**\n * Set state for the driver for a (de)activation transaction.\n * @param endPoints list of endpoint to interconnect\n * @param serviceId connectivity service id\n * @param context context\n */\n void initialize(\n List<EndPoint> endPoints,\n String serviceId,\n NrpConnectivityServiceAttrs context,\n boolean isExclusive,\n ServiceType serviceType);\n\n /**\n * Performs the activation action.\n * @throws ResourceActivatorException activation problem\n * @throws ExecutionException transaction execution failed\n * @throws InterruptedException transaction was interrupted\n */\n void activate() throws ResourceActivatorException, InterruptedException, ExecutionException;\n\n /**\n * Performs the update action.\n * @throws ResourceActivatorException activation problem\n * @throws ExecutionException transaction execution failed\n * @throws InterruptedException transaction was interrupted\n */\n default void update() throws ResourceActivatorException, InterruptedException, ExecutionException {\n deactivate();\n activate();\n }\n\n /**\n * Performs the deactivation action.\n * @throws ResourceActivatorException activation problem\n * @throws ExecutionException transaction execution failed\n * @throws InterruptedException transaction was interrupted\n */\n void deactivate() throws ResourceActivatorException, InterruptedException, ExecutionException;\n\n\n /**\n * Influences the order in which drivers are called within the transaction.\n * @return int priority of this driver when resolving ambiguity\n */\n int priority();\n}", "private void displayNeuralNetwork() {\n \n float[] inputSignals = this.task.getInputSignalsVector();\n \n float positiveState = network.getNeuralLayer().getNeuron(0).getState(inputSignals);\n float negativeState = network.getNeuralLayer().getNeuron(1).getState(inputSignals);\n \n this.neuralLayerPanel.displayNeuralLayer(network.getNeuralLayer().getNeuron(0).getWeightsVector(),\n positiveState,\n network.getNeuralLayer().getNeuron(1).getWeightsVector(),\n negativeState); \n \n String answer = \"not your color\";\n if (positiveState > negativeState) {\n answer = \"your color\";\n }\n this.answerLabel.setText(answer);\n \n }" ]
[ "0.703874", "0.68283474", "0.6541622", "0.640841", "0.64042", "0.6390921", "0.6381515", "0.63656706", "0.621176", "0.6108022", "0.6061912", "0.6029803", "0.59967214", "0.58929384", "0.5878844", "0.5858828", "0.5826583", "0.57591665", "0.57099706", "0.56995785", "0.5679207", "0.5673091", "0.5655062", "0.5631067", "0.5572775", "0.55665594", "0.55202127", "0.551415", "0.55094814", "0.549967", "0.5481016", "0.54468447", "0.5417136", "0.54110396", "0.5386884", "0.53864694", "0.5378646", "0.5373469", "0.5352692", "0.534099", "0.53285754", "0.53191626", "0.5295269", "0.5268918", "0.52386814", "0.521431", "0.52008873", "0.5199588", "0.51480925", "0.5145677", "0.5122637", "0.51053363", "0.5103151", "0.51027954", "0.5086383", "0.5085827", "0.5073794", "0.5060376", "0.5043691", "0.50396144", "0.5033568", "0.5017028", "0.49871257", "0.49841404", "0.49786246", "0.49630436", "0.49501178", "0.49429652", "0.4942866", "0.4940275", "0.49350604", "0.49049434", "0.48864722", "0.48773548", "0.48658022", "0.48568305", "0.4856554", "0.48519537", "0.48463348", "0.4845524", "0.48439053", "0.483915", "0.48205492", "0.4815983", "0.48147044", "0.4807224", "0.48050666", "0.48015204", "0.4800778", "0.4796743", "0.4790923", "0.47871727", "0.47822952", "0.47799018", "0.47696805", "0.47568354", "0.4755029", "0.4747507", "0.4745252", "0.46999058" ]
0.8300915
0
The activation function itself. E.g. The sigmoid function
public double activation(double z);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double activationFunction(double input){\n double temp = 1 + Math.exp(-1 * input * this.sigmoidFactor);\n double result = (double)1/temp;\n return result;\n }", "public double getActivation() {\r\n\t\tif (activation_count > 0) return activation;\r\n\t\telse return 0.0;\r\n\t}", "public interface ActivationFunction {\n\t/**\n\t * The activation function itself. E.g. The sigmoid function\n\t * @param z - The weighted sum of a neuron\n\t * @return The activation of a neuron\n\t */\n\tpublic double activation(double z);\n\t/**\n\t * The derivative of the activation function.\n\t * @param z - The weighted sum of a neuron\n\t * @return The derivative of this activation function at z\n\t */\n\tpublic double activationDerivative(double z);\n\t/**\n\t * The code of this activation function.<br>\n\t * Each activation function has a unique code for it to be identified.\n\t * This value is used when saving and loading neural networks; it is saved in the file.\n\t * The ClassificationNeuralNetwork class keeps a list of these functions to look up the correct one when loading.\n\t * For custom activation functions not included in the list, loading a network causes the activation function\n\t * of that particular network to be set to <em>null</em>, and thus it <b>must</b> be set later <b>manually</b>\n\t * through the setActivationFunction() method.\n\t * @return The code of this activation function\n\t */\n\tpublic byte getCode();\n}", "double calculateAxon(ActivationFunction activationFunction);", "public void activate() {\n double dotProduct = 0;\n for (Synapse s : super.getSynapsesIn()) {\n dotProduct += s.getNeuronFrom().getOutput() * s.getWeight();\n }\n super.setOutput(sigmoidFunction(dotProduct));\n }", "public int activationFunction(double output) {\n if (output < 0) return 0;\n else return 1;\n }", "public void activate() {\t\t\n\t\t// Put activation code here (computing output based on the network's inputs)\n }", "public double activationDerivative(double z);", "public double getPreActivationFunctionOutput() {\n\t\treturn preActivationFunctionOutput;\n\t}", "public double getActivationFunctionDerivative() {\n\t\treturn nodeActivationFunction.getDerivative();\n\t}", "public NNMatrix sigmoid() {\n final double data[] = getData();\n double x;\n for (int i = 0; i < data.length; i++) {\n x = data[i];\n // sigmoid function\n data[i] = 1 / (1 + Math.exp(-x));\n }\n\n return new NNMatrix(numRows(), numCols(), data);\n }", "private double Sigmoid (double Net) {\r\n\t\treturn 1/(1+Math.exp(-Net));\r\n\t}", "public void setActivation(double value) {\n this.activation = value;\n }", "@Override\n public INDArray getActivation(INDArray in, boolean training) {\n //Modify array \"in\" inplace to transform it with the activation function\n // h(x) = 1.7159*tanh(2x/3)\n Nd4j.getExecutioner().execAndReturn(new Tanh(in.muli(2/3.0)));\n in.muli(1.7159);\n return in;\n }", "double calculateSomaAndAxon(List<Double> weights, ActivationFunction activationFunction);", "public int getActivation()\n {\n return activation;\n }", "private double getSigmoidValue( double x )\n\t{\n\t\treturn (1 / (1 + Math.exp( -x )));\n\t}", "public synchronized float calcActivation(float[] attrActivation) {\n\t\t\n\t\t// first reset activation\n\t\tactivation = 0.0f;\n\t\t\n\t\tfor (int i = 0; i < attrConnections.length; i++) {\n\t\t\tactivation = activation + attrConnections[i] * attrActivation[i];\n\t\t}\n\t\t\n\t\treturn activation;\n\t}", "public static double sigmoid(double x) {\r\n return 1 / (1 + Math.pow(Math.E, (-x)));\r\n }", "public double[][] activateFunction(){\n\t\n\t\tboolean run = true;\n\t\tint count = 0;\n\t\tdouble[][] output = null;\n\t\twhile(run){\n\t\t\toutput = sign(subtract(multiply(weights, entryCoord), thresholds));\n\t\t\t\tfor(int i = 0; i < trainingList.size(); i++){\n\t\t\t\t\tfor(int j = 0; j < (XDIMENSION * YDIMENSION); j++){\n\t\t\t\t\t\tif(trainingList.get(i)[j][0] == output[j][0]){\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(count == (XDIMENSION * YDIMENSION)){\n\t\t\t\t\t\t\trun = false;\n\t\t\t\t\t\t\tfor(int k = 0; k < output.length; k++){\n\t\t\t\t\t\t\t\tSystem.out.print(output[k][0] + \" \");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\t\n\t\n\t\t}\n\t\treturn makeGrid(output);\n\t}", "double actFunction(double k){\n\t\treturn Math.max(0, k); //ReLU\n\t}", "ActivationExpression createActivationExpression();", "public static double sigmoid(double x) {\n if (Double.isNaN(x)) return Double.NaN;\n return 1 / (1 + Math.exp(-x));\n }", "private Float sigmoidSmoothing(Float value){\n\t\tvalue = (float) (1/(1+Math.pow(value, -1)));\n\t\treturn value;\n\t}", "private void sigmoid(double[][] matrix) {\n\t\t// Sigmoid function:\n\t\t// = 1/(1+e^(-(inputs.weights)))\n\t\tfor (int i = 0; i < matrix.length; i++) {\n\t\t\tfor (int j = 0; j < matrix[0].length; j++) {\n\t\t\t\tmatrix[i][j] = 1.0 / (1.0 + Math.exp(-matrix[i][j]));\n\t\t\t}\n\t\t}\n\t}", "@Override\n /**\n * @param X The input vector. An array of doubles.\n * @return The value returned by th LUT or NN for this input vector\n */\n\n public double outputFor(double[] X) {\n int i = 0, j = 0;\n for(i=0;i<argNumInputs;i++){\n S[0][i] = X[i];\n NeuronCell[0][i] = X[i];\n }\n //then add the bias term\n S[0][argNumInputs] = 1;\n NeuronCell[0][argNumInputs] = customSigmoid(S[0][argNumInputs]);\n S[1][argNumHidden] = 1;\n NeuronCell[1][argNumHidden] = customSigmoid(S[1][argNumInputs]);\n\n for(i=0;i<argNumHidden;i++){\n for(j=0;j<=argNumInputs;j++){\n //Wji : weigth from j to i\n WeightSum+=NeuronCell[0][j]*Weight[0][j][i];\n }\n //Sj = sigma(Wji * Xi)\n S[1][i]=WeightSum;\n NeuronCell[1][i]=(customSigmoid(WeightSum));\n //reset weigthsum\n WeightSum=0;\n }\n\n for(i = 0; i < argNumOutputs; i++){\n for(j = 0;j <= argNumHidden;j++){\n WeightSum += NeuronCell[1][j] * Weight[1][j][i];\n }\n NeuronCell[2][i]=customSigmoid(WeightSum);\n S[2][i]=WeightSum;\n WeightSum=0;\n }\n //if we only return 1 double, it means we only have one output, so actually we can write return NeuronCell[2][0]\n return NeuronCell[2][0];\n }", "public ThresholdActivationFunction(double threshold) {\n this.threshold = threshold;\n }", "@Override\n\tpublic double f(double x) {\n\t\treturn Math.tanh(x);\n\t}", "public NNMatrix sigmoidDerivative() {\n final double data[] = getData();\n double s, x;\n for (int i = 0; i < data.length; i++) {\n x = data[i];\n // sigmoid function\n s = 1 / (1 + Math.exp(-x));\n // sigmoid derivative\n data[i] = s * (1 - s);\n }\n\n return new NNMatrix(numRows(), numCols(), data);\n }", "public ElmanNeuralNetwork(Neuron output, List<Neuron> inputLayer, List<List<Neuron>> hiddenLayers, DoubleUnaryOperator activationFunction) {\n\t\tsuper(output, inputLayer, hiddenLayers, activationFunction);\n\t}", "float activate(float[] input) {\n if (inputLayer.length != input.length) throw new IllegalArgumentException(\"input.length and inputLayer.length do not match\");\n\n System.arraycopy(input, 0, inputLayer, 0, inputLayer.length);\n\n // Calculate the output\n process();\n\n return outputLayer;\n }", "public TensorFunction<Reference> function() { return function; }", "private void trainPerceptrons(){\n double activationValues[] = new double[4];\n for(Image image:asciiReader.getTrainingImages()){\n for (int j = 0 ; j < activationValues.length; j++){\n activationValues[j] = activationFunction\n .apply(sumWeights(j,image));\n }\n adjustWeights(activationValues,image);\n }\n }", "public static double sigmoid(double weightedSum) {\r\n\t\t\tdouble probability = 1/(1+Math.pow(Math.E, -weightedSum));\r\n\t\t\treturn probability;\r\n\t\t}", "public void calculateDesireHiddenLayerActivation(int dataIndex) {\r\n for (int i = 0; i < hiddenLayer.length; i++) {\r\n double count = 0;\r\n for (int j = 0; j < outputLayer.length; j++) {\r\n count += -2*((attribute[dataIndex] == i ? 1 : 0) - sigmoid(outputLayer[j].z))*sigmoidDeri(outputLayer[j].z)*outputLayer[j].dw[i];\r\n }\r\n desireHiddenLayerActivation[i] = hiddenLayer[i].a - count / outputLayer.length;\r\n }\r\n }", "@Override\n\tpublic void run() {\n\t\ttotal = 0;\n\t\tfor (Node n : inputs) {\n\t\t\ttotal += n.output * weights.get(n).getWeight();\n\t\t}\n\t\ttotal += bias * biasWeight.getWeight();\n\t\toutput = activationFunction.run(total);\n\t}", "@Override // from StateSpaceModel\n public Tensor f(Tensor x, Tensor u) {\n return u;\n }", "public double getTimeDelayActivation() {\r\n\t\tif (activation_count > 1) return last_activation;\r\n\t\telse return 0.0;\r\n\t}", "public void fire() {\n\t\tif (nextLayerNodes.size() == 0) {\n\t\t\t// todo: handle output layer\n//\t\t\tSystem.out.printf(\"\tOutput = %f%n\", output);\n\t\t\tSystem.out.printf(\"\tPre Activation Function Output = %f%n\", preActivationFunctionOutput);\n\t\t\treturn;\n\t\t}\n\t\tNode[] nextNodes = new Node[nextLayerNodes.keySet().toArray().length];\n\t\tfor (int i = 0; i < nextNodes.length; i++) {\n\t\t\tnextNodes[i] = (Node) nextLayerNodes.keySet().toArray()[i];\n\t\t}\n\t\tfor (int i = 0; i < nextLayerNodes.size(); i++) {\n\t\t\t// sends the weight of the connection to a node in the next layer * the output of the activation function from this layer\n\t\t\tnextNodes[i].addInput(nextLayerNodes.get(nextNodes[i])*output);\n\t\t}\n\t}", "public BinaryPulseNeuralFunction() {\n super();\n }", "public void FeedForward() {\r\n\t\tfor (int i = 0; i < Node.length; i++) {\r\n\t\t\tNet = Node[i].Threshold;\r\n\r\n\t\t\tfor (int j = 0; j < Node[i].Weight.length; j++)\r\n\t\t\t\tNet = Net + Input[j] * Node[i].Weight[j];\r\n\r\n\t\t\tNode[i].Output = Sigmoid(Net);\r\n\t\t}\r\n\t}", "private double[][] forwardPropogate(double[][] inputs, double[][] weights) {\n\t\tdouble[][] resultLayer = m.dot(inputs, weights);\n\t\tsigmoid(resultLayer);\n\t\treturn resultLayer;\n\t}", "public void activate() {\n neurons.forEach(Neuron::activate);\n }", "public FullyConnectedFeedforwardBrain(int neuronsPerLayer[], double learningRate, ActivationFunction activationFunction)\n\t{\n\t\tsuper();\n\t\tthis.learningRate = learningRate;\n\t\tthis.activationFunction = activationFunction;\n\n\t\tthis.initalizeNetwork(neuronsPerLayer);\n\t}", "public Node(ActivationFunction f) {\n\t\tnodeActivationFunction = f;\n\t}", "@Override\n public Tensor forward() {\n Tensor x = modInX.getOutput();\n y = new Tensor(x); // copy\n y.log();\n return y;\n }", "boolean hasSigmoidCalibration();", "public void calculate() {\r\n\t\tint bias = hasBias();\r\n\r\n\t\tfor(int i = bias; i < getNeurons().size(); i++) {\r\n\t\t\tgetNeurons().get(i).activate(); \r\n\t\t}\r\n\t}", "public double derivativeSigmoid(double x){\n return sigmoid(x) * (1 - sigmoid(x));\n }", "public double derivativeCustomSigmoid(double x){\n return (1.0/(mArgB - mArgA)) * (customSigmoid(x) - mArgA) * (mArgB - customSigmoid(x));\n }", "private int activate(float sum) {\r\n if (sum > 0) {\r\n return 1;\r\n } else {\r\n return -1;\r\n }\r\n }", "private double sigmoidPrime(double x) {\n return x * (1 - x);\n }", "boolean hasSigmoidParameters();", "private void forwardPropagation(int[] trainingData, double[] activationsOfHiddenLayer, double[] outputActivations) {\n\t\tdouble[] hiddenActivations = new double[SIZE_HIDDEN_LAYER];\n\n\t\tfor(int indexHidden = 0; indexHidden < SIZE_HIDDEN_LAYER; indexHidden++) {\n\t\t\thiddenActivations[indexHidden] = 0;\n\t\t\tfor(int indexInput = 0; indexInput < SIZE_INPUT_LAYER; indexInput++) {\n\t\t\t\thiddenActivations[indexHidden] += weightsOfHiddenLayer[indexHidden][indexInput] * trainingData[indexInput];\n\t\t\t}\t\n\t\t\thiddenActivations[indexHidden] += biasOfHiddenLayer[indexHidden];\n//\t\t\t// We then call the activation function \n\t\t\thiddenActivations[indexHidden] = tanh(hiddenActivations[indexHidden]);\n\t\t\tactivationsOfHiddenLayer[indexHidden] = hiddenActivations[indexHidden];\n\n\t\t}\n\t\t\t\t\n\t\tfor(int indexOuput = 0; indexOuput < SIZE_OUTPUT_LAYER; indexOuput++) {\n\t\t\toutputActivations[indexOuput] = 0;\n\t\t\tfor(int indexHidden = 0; indexHidden < SIZE_HIDDEN_LAYER; indexHidden ++) {\n\t\t\t\toutputActivations[indexOuput] += weightsOfOutputLayer[indexOuput][indexHidden] * hiddenActivations[indexHidden];\n\t\t\t}\t\n\t\t\toutputActivations[indexOuput] += biasOfOutputLayer[indexOuput];\n\t\t}\n\t\tsoftmax(outputActivations);\t\n\t}", "public static double SigmoidDerivative(double x) {\n return Sigmoid(x)*(1-Sigmoid(x));\n }", "public int feedforward(float[] inputs) {\r\n float sum = 0;\r\n for (int i = 0; i < weights.length; i++) {\r\n sum += inputs[i] * weights[i];\r\n }\r\n System.out.println(\"sum = \" + sum);\r\n return activate(sum);\r\n }", "public double getFreeEnergy(){\n\n\t\tdouble freeEnergy = 0.;\n\n\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\tfreeEnergy -= this.layers[0][i].getState()*this.layers[0][i].getBias();\n\t\t}\n\n\n\t\tfor(int j = 0; j < this.layers[1].length; j++){\n\t\t\tdouble x = this.layers[1][j].getBias();\n\t\t\t//System.out.println(\"x = \" + x);\n\t\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\t\tx += this.layers[0][i].getState()*this.connections[i][j];\n\t\t\t\t/*System.out.println(\"1 = \" + this.layers[0][i].getState());\n\t\t\t\tSystem.out.println(\"2 = \" + this.connections[i][j]);\n\t\t\t\tSystem.out.println(\"x = \" + x);\n\t\t\t\tif(x != x){ this.layers[3] = null;}*/\n\t\t\t}\n\t\t\t//System.out.println(\"x = \" + x);\n\t\t\tfreeEnergy -= Math.log(1 + Math.exp(x));\n\t\t}\n\n\t\t/*\n\t\tfor(int j = 0; j < this.layers[1].length; j++){\n\t\t\tdouble x = this.layers[1][j].getBias();\n\t\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\t\tx += this.layers[0][i].getState()*this.connections[i][j];\n\t\t\t}\n\t\t\tfreeEnergy -= x*Sigmoid.getINSTANCE().apply(x);\n\t\t}\n\n\t\tfor(int j = 0; j < this.layers[1].length; j++){\n\t\t\tdouble x = this.layers[1][j].getBias();\n\t\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\t\tx += this.layers[0][i].getState()*this.connections[i][j];\n\t\t\t}\n\t\t\tdouble p = Sigmoid.getINSTANCE().apply(x);\n\t\t\tfreeEnergy += p*Math.log10(p) + (1. - p)*Math.log10(1. - p);\n\t\t}\n\t\t */\n\n\t\treturn freeEnergy;\n\t}", "boolean isBiasNeuron();", "public interface Layer {\n /**\n * @return The number of neurons, excluding bias neurons and context neurons. This is the number of neurons that\n * are directly fed from elsewhere.\n */\n int getCount();\n\n /**\n * @return The number of neurons, including bias neurons and context neurons.\n */\n int getTotalCount();\n\n /**\n * @return The activation/transfer function for this neuron.\n */\n ActivationFunction getActivation();\n\n /**\n * Finalize the structure of this layer.\n * @param theOwner The neural network that owns this layer.\n * @param theLayerIndex The zero-based index of this layer.\n * @param counts The counts structure to track the weight and neuron counts.\n */\n void finalizeStructure(BasicNetwork theOwner, int theLayerIndex,\n TempStructureCounts counts);\n\n /**\n * Compute this layer.\n */\n void computeLayer();\n\n /**\n * Compute the gradients for this layer.\n * @param calc The gradient calculation utility.\n */\n void computeGradient(GradientCalc calc);\n\n /**\n * @return The start of this layer's weights in the weight vector.\n */\n int getWeightIndex();\n\n /**\n * @return The start of this layer's neurons in the neuron vector.\n */\n int getNeuronIndex();\n\n /**\n * Notification that a training batch is beginning.\n * @param rnd A random number generator, from the trainer.\n */\n void trainingBatch(GenerateRandom rnd);\n\n /**\n * @return The owner of the neural network.\n */\n BasicNetwork getOwner();\n\n /**\n * @return True if this neuron has bias.\n */\n boolean hasBias();\n}", "public NeuralNetworkForwardPropagation() {\n super(\"Neural-network forward-propagation\");\n }", "public interface TransferFunction {\n\t\n\t/**\n\t * The transfer function takes the array of inputs and weights and performs some computation to produce \n\t * a single output which will be fed in to an activation function. \n\t * \n\t * The arrays of inputs and outputs must be of the same length.\n\t * @param inputs An array of double values.\n\t * @param weights An array of double values.\n\t * @return a single double value for use with an activation function.\n\t */\n\tpublic double transfer(double[] inputs, double[] weights) throws Exception; //TODO: make this a self-defined exception.\n\n}", "public Activation_Linear_Range_0_1() {\r\n this.slope = new VDouble(new RealNumber(1), new VDoubleNoUpdate());\r\n this.c = new VDouble(new RealNumber(0), new VDoubleNoUpdate());\r\n }", "public double getBias();", "public double getObjective() {\n return multiClassClassifierObj() + binaryObj();\n// +(1-temperature)*getEntropy();\n }", "public void calculateOutput() {\n inputSum = 0.0;\n //for output (linear) neuron\n if (layer == 0) {\n for (int i = 0; i < inputs; ++i) {\n inputSum += weights[i] * network.getInput()[i];\n }\n }\n //for Sigmoidal neurons\n else {\n for(int i = 0; i < inputs; ++i) {\n inputSum += weights[i] * network.getNeurons()[layer - 1][i].output;\n }\n }\n if (enableConstAddend) {\n inputSum += weights[inputs];\n }\n output = activate(inputSum);\n }", "@Override\r\n\tpublic double f(double x) {\n\t\treturn FastMath.tanh(x); // RMSE: 1.2677143077504636, Took: 38.617s\r\n\t}", "object_detection.protos.Calibration.SigmoidParameters getSigmoidParameters();", "public double getLambda() {return lambda;}", "public Expression getFunction()\n\t{\n\t\treturn function;\n\t}", "public static void XOR() {\n System.out.println(\"---\");\n System.out.println(\"This section will create, and train a neural network with the topology of 2-2-1. That is\\n\" +\n \"there are 2 input neurons, 2 hidden neurons, and 1 output neuron. The XOR problem will be using the\\n\" +\n \"XOR_training_data.txt file to get the training data. In order to make training simpler, the 0's have\\n\" +\n \"been substituted with -1's.\");\n System.out.println(\"Training...\");\n NeuralNetwork xor = (NeuralNetwork)StochasticBackPropagation.SBP(2, 2, 1, \"XOR_training_data.txt\", 20000, 0.1, 0.05);\n System.out.println(\"Trained.\");\n\n double[] input = new double[2];\n System.out.println(\"Input: -1 -1\");\n input[0] = -1;\n input[1] = -1;\n double[] output = xor.feedForward(input);\n System.out.println(\"Expected Output: -1\");\n System.out.println(\"Actual Output: \"+Math.round(output[0])); //rounding to make output cleaner.\n\n System.out.println(\"Input: -1 1\");\n input[0] = -1;\n input[1] = 1;\n output = xor.feedForward(input);\n System.out.println(\"Expected Output: 1\");\n System.out.println(\"Actual Output: \"+Math.round(output[0]));\n\n System.out.println(\"Input: 1 -1\");\n input[0] = 1;\n input[1] = -1;\n output = xor.feedForward(input);\n System.out.println(\"Expected Output: 1\");\n System.out.println(\"Actual Output: \"+Math.round(output[0]));\n\n System.out.println(\"Input: 1 1\");\n input[0] = 1;\n input[1] = 1;\n output = xor.feedForward(input);\n System.out.println(\"Expected Output: -1\");\n System.out.println(\"Actual Output: \"+Math.round(output[0]));\n System.out.println(\"---\\n\");\n }", "double getActiveOperand();", "public double getValueOfSpaceActivation() {\n\t\treturn valueOfSpaceActivation;\n\t}", "public int act1Cost()\r\n {\r\n return 1;\r\n }", "private void adjustWeights(double activationValues[],Image image){\n\n for(int i=0;i<perceptrons.size();i++){\n for(int j=0;j<4;j++) {\n if ((j + 1) == image.getEmotion()) {\n perceptrons.get(i).adjustWeight(j, learningValue\n , 1, activationValues[j]\n ,normalizeImageValue(image.getImage()[i]));\n } else {\n perceptrons.get(i).adjustWeight(j, learningValue\n , 0, activationValues[j]\n ,normalizeImageValue(image.getImage()[i]));\n }\n }\n }\n\n }", "@Override\n\tpublic void backProp() {\n\t\tdouble dOut = 0;\n\t\tfor (Node n : outputs) {\n\t\t\tdOut += n.dInputs.get(this);\n\t\t}\n\t\tdouble dTotal = activationFunction.derivative(total)*dOut;\n\t\tfor (Node n : inputs) {\n\t\t\tdInputs.put(n, dTotal * weights.get(n).getWeight());\n\t\t\tweights.get(n).adjustWeight(dTotal * n.output);\n\t\t}\n\t\tbiasWeight.adjustWeight(bias * dTotal);\n\t}", "public FullyConnectedFeedforwardBrain(int neuronsPerLayer[], ThreadPoolExecutor threadExecutor, double learningRate, ActivationFunction activationFunction)\n\t{\n\t\tsuper(threadExecutor);\n\t\tthis.learningRate = learningRate;\n\t\tthis.activationFunction = activationFunction;\n\n\t\tthis.initalizeNetwork(neuronsPerLayer);\n\t}", "public object_detection.protos.Calibration.SigmoidParameters getSigmoidParameters() {\n if (sigmoidParametersBuilder_ == null) {\n return sigmoidParameters_ == null ? object_detection.protos.Calibration.SigmoidParameters.getDefaultInstance() : sigmoidParameters_;\n } else {\n return sigmoidParametersBuilder_.getMessage();\n }\n }", "public void applyBackpropagation( float expectedOutput[] ) {\n\t\t// The code for updating weights goes here \n\t\t// NOTE: if using a single perceptron, this is not technically back-propagation, despite the function name \n }", "public void cinv_() {\n TH.THTensor_(cinv)(this, this);\n }", "public FFANNAdaptiveBackPropagationJSP()\n\t{\n\t\t//run(network, numberInputNeurons, numberHiddenNeurons, numberOutputNeurons, trainingSet);\n\t}", "public void computeOutputs(double[] input){\n if (input != null) {\n for (int i=0; i<fire.length; i++) {\n fire[i] = input[i];\n }\n }\n\n //if this a hidden layer then we set the input to be\n double layerInput[] = new double[fire.length+ 1];\n for(int i=0; i<fire.length; i++){\n layerInput[i] = fire[i];\n }\n //add in another element for threshold to be multiplied by 1\n layerInput[fire.length] = 1;\n\n //compute outputs\n for (int i=0; i<next.getNeuronCount(); i++) {\n //get column at i of weightThreshold\n double colWeightThreshold[] = new double[weightThreshold.length];\n for(int j=0; j<colWeightThreshold.length; j++){\n colWeightThreshold[j] = weightThreshold[j][i];\n }\n\n double sum = dotProduct(colWeightThreshold, layerInput);\n //activation function on the sum and store neuron output\n next.fire[i] = activationFunction(sum);//(exp(sum*2.0)-1.0)/(exp(sum*2.0)+1.0);\n //System.out.println(\"output[\"+i+\"]: \"+output[i]);\n\n }\n\n }", "public void Prediction() {\n System.out.println(\"\\nInput an x value: \");\n double x = inputs.nextDouble();\n double y = this.B0 + (this.B1 * x);\n System.out.println(\"The prediction made with \" + x + \" as the x value is: \" + y);\n System.out.println(\"\\nWhere y = B0 + (B1*xi) is substituted by:\\n y = \" + B0 + \" + (\" + B1 + \" * \" + x + \" )\\n\");\n }", "NeuralNetwork mutate(float rate);", "@Override\n public double predict(double[] explanatory) {\n if (explanatory == null || explanatory.length == 0) {\n throw new IllegalArgumentException(\"explanatory features must not be null or empty\");\n }\n return Activation.SIGMOID.apply(bias + Vector.dotProduct(explanatory, theta));\n }", "public void receive(){\n for (int i = 0; i < neurons.size(); i++){\n neurons.get(i).calculateActivation();\n }\n }", "public void displayActivations(){\n for (int i = 0; i < neurons.size(); i++){\n System.out.println(\"Neuron \" + i + \": \" + neurons.get(i).getActivation());\n }\n }", "static WireloopReward constantCost() {\n return (s, a, n) -> RealScalar.of(-1.4); // -1.2\n }", "public SigmoidVertex(DoubleVertex inputVertex) {\n super(inputVertex.getShape(), inputVertex);\n }", "public double[] predict(double[] input_array) {\n\t\tMatrix_instance input = new Matrix_instance(input_array);\n\t\tMatrix_instance hidden = Matrix.Product(this.weights_ih, input);\n\t\thidden.adder(this.bias_h);\n\n\t\t// activation function\n\t\thidden.applyFunction(i -> sigmoid(i));\n\t\tMatrix_instance output = Matrix.Product(this.weights_ho, hidden);\n\t\toutput.adder(this.bias_o);\n\t\toutput.applyFunction(i -> sigmoid(i));\n\t\treturn output.toArray();\n\t}", "public double getLambda() {\r\n\t\treturn lambda;\r\n\t}", "protected TransitionFunction transitionFunction() {\n\t\treturn (TransitionFunction) this.transitions;\n\t}", "double a_hinge_power ()\n {\n double l_return = 0.0;\n\n if (hinge != null) {\n l_return = hinge.getPower();\n }\n\n return l_return;\n }", "public double getLambda() {\n return lambda;\n }", "public static double sigmoid(double value, double k, double a) {\n return Math.pow(value, a) / (Math.pow(k, a) + Math.pow(value, a));\n }", "@Override\n\tpublic void tanCongKeXau() {\n\n\t}", "@Override\n\tpublic double getRx() {\n\ndouble object = 0;\n for(int i = 0; i < x.length; i++){\n object += Math.pow(y[i] - ( theta[0] + theta[1] * x[i]), 2);\n }\n return object / 2 ;\n }", "object_detection.protos.Calibration.SigmoidCalibration getSigmoidCalibration();", "protected Float additionalTransformation(String term, Float value){\n\t\tif(!ENABLE_ADD_NORMALIZATION) return value;\n\t\t\n\t\tFloat result = value;\n\t\t//result *= this.weightTermUniqeness(term); \n\t\tresult = this.sigmoidSmoothing(result);\n\t\t\n\t\treturn result;\n\t}", "public interface Neuron {\n /**\n * Checks if current neuron is of type NeuronType.INPUT.\n *\n * @return true if it's input neuron, false otherwise\n */\n boolean isInputNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.HIDDEN.\n *\n * @return true if it's hidden neuron, false otherwise\n */\n boolean isHiddenNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.OUTPUT.\n *\n * @return true if it's output neuron, false otherwise\n */\n boolean isOutputNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.BIAS.\n *\n * @return true if it's bias neuron, false otherwise\n */\n boolean isBiasNeuron();\n\n /**\n * Getter for neuron's name.\n *\n * @return String of this neuron's name\n */\n String getName();\n\n /**\n * Setter for neuron's name.\n *\n * @param name String value as new name for this neuron\n * @return this Neuron instance\n */\n Neuron setName(String name);\n\n /**\n * Gets the List of all incoming neurons (dendrites) for this one.\n * Could be called for all neurons except neurons from input layer and bias neurons,\n * as they can't have incoming connections.\n *\n * @return the List of Neuron instance that leads to this neuron\n */\n List<Neuron> getDendrites();\n\n /**\n * Sets the List of all incoming neurons (dendrites) for this one.\n * Could be called for all neurons except neurons from input layer and bias neurons,\n * as they can't have incoming connections.\n *\n * @return this Neuron instance\n */\n Neuron setDendrites(List<Neuron> dendrites);\n\n /**\n * Gets the current value of this neuron.\n *\n * @return double value of this neuron\n */\n double getAxon();\n\n /**\n * Sets the value for this neuron.\n * Could be called only for input neurons.\n * Hidden neurons and output neurons calculating their values using information from their incoming connections\n * and using activation function, and bias neuron always have axon = 1.\n *\n * @param newValue new axon value for input neuron\n * @return this Neuron instance\n */\n Neuron setAxon(double newValue);\n\n /**\n * Gets the List of all outgoing neurons (synapses) from this one.\n * Could be called for all neurons except of output type as they can't have outgoing connections.\n *\n * @return the List of Neuron instance that this neuron leads to\n */\n List<Neuron> getSynapses();\n\n /**\n * Sets the List of all outgoing neurons (synapses) from this one.\n * Could be called for all neurons except of output type, as they can't have incoming connections.\n *\n * @return this Neuron instance\n */\n Neuron setSynapses(List<Neuron> synapses);\n\n /**\n * Gets the type of this neuron.\n *\n * @return NeuronType value that represents this neuron's type\n */\n NeuronType getType();\n\n /**\n * Computes the value for this neuron from all incoming neurons, using the list of weights passed in this method.\n * The size of weights list should be same as the number of incoming connections for this neuron.\n * Otherwise RuntimeException would be thrown.\n *\n * @param weights the List of double values the represents weights for each incoming connection for this neuron\n * @return new computed soma value\n */\n double calculateSoma(List<Double> weights);\n\n /**\n * Calculates the new value (axon) for this neuron from it's soma, normalized by activation function.\n *\n * @param activationFunction activation function to be used for normalizing soma value\n * @return new axon value for this neuron\n */\n double calculateAxon(ActivationFunction activationFunction);\n\n /**\n * Computes the value for this neuron from all incoming neurons, using the list of weights passed in this method.\n * The size of weights list should be same as the number of incoming connections for this neuron.\n * Otherwise RuntimeException would be thrown.\n * Then calculates the new value (axon) for this neuron from it's soma, normalized by activation function.\n *\n * @param weights the List of double values the represents weights for each incoming connection for this neuron\n * @param activationFunction activation function to be used for normalizing soma value\n * @return new axon value for this neuron\n */\n double calculateSomaAndAxon(List<Double> weights, ActivationFunction activationFunction);\n\n double getDelta();\n\n void setDelta(double delta);\n}", "private double hypTan(double x){\n\t\t//System.out.print(\".\");\n\t\treturn (Math.tanh(k*x)*0.5) + 0.5;\t\n\t}" ]
[ "0.7888368", "0.7348921", "0.73253316", "0.7295438", "0.6901293", "0.6888109", "0.65776515", "0.6469891", "0.64680606", "0.6467183", "0.6463888", "0.6429828", "0.6334023", "0.6317584", "0.6269084", "0.6230395", "0.6111526", "0.6089284", "0.6068213", "0.59801275", "0.5816871", "0.58057207", "0.57688063", "0.5759789", "0.57504326", "0.5729075", "0.56886345", "0.5625985", "0.55899316", "0.55767435", "0.557418", "0.5531576", "0.5520657", "0.55139256", "0.55108523", "0.5479011", "0.5461509", "0.5443224", "0.5419196", "0.53847", "0.53595126", "0.53467023", "0.5329262", "0.532829", "0.53099203", "0.5309474", "0.52992415", "0.5297723", "0.52971905", "0.5295855", "0.5247496", "0.52242327", "0.5220763", "0.5194241", "0.51869756", "0.5182764", "0.51765406", "0.5173194", "0.5168454", "0.51680213", "0.5141669", "0.5128884", "0.51276994", "0.51272476", "0.5123428", "0.5071071", "0.5068835", "0.50353104", "0.5031761", "0.50308603", "0.50306016", "0.5029943", "0.50295734", "0.5025424", "0.5024984", "0.50210255", "0.5011637", "0.50009584", "0.4999907", "0.49707258", "0.49620843", "0.496003", "0.49386135", "0.49385822", "0.4931736", "0.49247214", "0.49212778", "0.49141106", "0.49016908", "0.48985836", "0.4886062", "0.48857215", "0.48821032", "0.48733938", "0.48717576", "0.48555493", "0.48515785", "0.4812642", "0.47954068", "0.47922716" ]
0.7772561
1
The derivative of the activation function.
public double activationDerivative(double z);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getActivationFunctionDerivative() {\n\t\treturn nodeActivationFunction.getDerivative();\n\t}", "public double derivative(double input) {\n\t\treturn (1 - Math.pow(Math.tanh(input), 2));\n\t}", "public double derivativeSigmoid(double x){\n return sigmoid(x) * (1 - sigmoid(x));\n }", "public abstract Function derivative();", "public Polynomial getDerivative() {\n double[] derCoefs = new double[coefs.length - 1];\n for (int i = 1; i < coefs.length; i++) {\n derCoefs[i - 1] = i * coefs[i];\n }\n return new Polynomial(derCoefs);\n }", "@Override\n\tpublic Function derivative() {\n\t\tderivativeConstants[0] = 0;\n\t\tfor (int i = 0; i < constants.length - 1; i++) {\n\t\t\tderivativeConstants[i + 1] = constants[i] * (constants.length - i - 1);\n\t\t}\n\t\treturn new Polynomial(derivativeConstants);\n\t}", "public static double SigmoidDerivative(double x) {\n return Sigmoid(x)*(1-Sigmoid(x));\n }", "public double activation(double z);", "public NNMatrix sigmoidDerivative() {\n final double data[] = getData();\n double s, x;\n for (int i = 0; i < data.length; i++) {\n x = data[i];\n // sigmoid function\n s = 1 / (1 + Math.exp(-x));\n // sigmoid derivative\n data[i] = s * (1 - s);\n }\n\n return new NNMatrix(numRows(), numCols(), data);\n }", "@Override\r\n public Polynomial derivative() {\r\n Polynomial x = this.filter(t -> {\r\n Term term = (Term) t;\r\n return term.getPower() != 0;\r\n }).map(t -> {\r\n Term term = (Term) t;\r\n return new Term(term.getCoefficient() * term.getPower(), term.getPower() - 1);\r\n });\r\n return x;\r\n }", "public double derivativeCustomSigmoid(double x){\n return (1.0/(mArgB - mArgA)) * (customSigmoid(x) - mArgA) * (mArgB - customSigmoid(x));\n }", "public double DerivativeLossY(int i, int c)\n\t{\n\t\tdouble dLdY = 0;\n\t\t\n\t\tif( lossType == LossTypes.HINGE)\n\t\t{\n\t\t\tdouble z = Y_b.get(i, c)*Predict(i, c);\n\t\t\t\n\t\t\tif( z <= 0 )\n\t\t\t\tdLdY = -Y_b.get(i, c);\n\t\t\telse if(z > 0 && z < 1 )\n\t\t\t\tdLdY = (z-1)*Y_b.get(i, c);\n\t\t\telse\n\t\t\t\tdLdY = 0;\n\t\t}\n\t\telse if(lossType == LossTypes.LOGISTIC)\n\t\t{\n\t\t\tdLdY = -(Y_b.get(i, c) - Sigmoid.Calculate(Predict(i,c)) ); \n\t\t} \n\t\telse if( lossType == LossTypes.LEASTSQUARES )\n\t\t{\n\t\t\tdLdY = -2*(Y_b.get(i, c) - Predict(i, c));\n\t\t}\n\t\t\n\t\treturn dLdY;\n\t}", "private double activationFunction(double input){\n double temp = 1 + Math.exp(-1 * input * this.sigmoidFactor);\n double result = (double)1/temp;\n return result;\n }", "@Override\r\n\tpublic double derivativeOf(double x) {\r\n\t\treturn ( 1 / (x - this.getLower_bound()) ) + ( 1 / (this.getUpper_bound() - x) ); \r\n\t}", "public PolyTerm derivate() {\n\t\tScalar coeffi=this.coefficient.mul(this.exponent);\n\t\tint expon=this.exponent-1;\n\t\treturn new PolyTerm(coeffi, expon);\n\t}", "public RealValuedFunctTwoOps deriv1() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv1At(x, y);\n\t }\n\t};\n }", "public abstract double gradient(double betaForDimension, int dimension);", "public Monom derivative() {\n\t\tif(this.get_power()==0) {return getNewZeroMonom();}\n\t\treturn new Monom(this.get_coefficient()*this.get_power(), this.get_power()-1);\n\t}", "protected abstract SyntaxNode derivative(SyntaxNode doperand);", "public Monom derivative() {\r\n\t\tif(this.get_power()==0) {return getNewZeroMonom();}\r\n\t\treturn new Monom(this.get_coefficient()*this.get_power(), this.get_power()-1);\r\n\t}", "public double getActivation() {\r\n\t\tif (activation_count > 0) return activation;\r\n\t\telse return 0.0;\r\n\t}", "@Override\r\n\t\tpublic double[] gradient(double x, double... parameters) {\n\t\t\tfinal double a = parameters[0];\r\n\t\t\tfinal double b = parameters[1];\r\n\t\t\tfinal double c = parameters[2];\r\n\t\t\tfinal double d = parameters[3];\r\n\t\t\tfinal double e = parameters[4];\r\n\t\t\t\r\n\t\t\tdouble[] gradients = new double[5];\r\n\t\t\t//double den = 1 + Math.pow((x+e)/c, b);\r\n\t\t\t//gradients[0] = 1 / den; // Yes a Derivation \r\n\t\t\t//gradients[1] = -((a - d) * Math.pow(x / c, b) * Math.log(x / c)) / (den * den); // Yes b Derivation \r\n\t\t\t//gradients[2] = (b * Math.pow(x / c, b - 1) * (x / (c * c)) * (a - d)) / (den * den); // Yes c Derivation \r\n\t\t\t//gradients[3] = 1 - (1 / den); // Yes d Derivation \r\n\t\t\t\r\n\t\t\t//Derivation\r\n\t\t\tfinal double c_b = Math.pow(c, b);\r\n\t\t\tfinal double c_b1 = Math.pow(c, b+1.);\r\n\t\t\tfinal double c_2b = Math.pow(c, 2.*b);\r\n\t\t\tfinal double c_2b1 = Math.pow(c, 2.*b+1.);\r\n\t\t\t\r\n\t\t\tfinal double xe_b = Math.pow(x+e, b);\r\n\t\t\tfinal double xe_2b = Math.pow(x+e, 2.*b);\r\n\t\t\tfinal double xe_2b1 = Math.pow(x+e, 2.*b+1.);\r\n\t\t\t\r\n\t\t\tgradients[0] = c_b/(xe_b+c_b);\r\n\t\t\tgradients[1] = ((c_b*d-a*c_b)*xe_b*Math.log(x+e)+(a*c_b*Math.log(c)-c_b*Math.log(c)*d)*xe_b)/(xe_2b+2*c_b*xe_b+c_2b);\r\n\t\t\tgradients[2] = -((b*c_b*d-a*b*c_b)*xe_b)/(c*xe_2b+2*c_b1*xe_b+c_2b1);\r\n\t\t\tgradients[3] = xe_b/(xe_b+c_b);\r\n\t\t\tgradients[4] = ((b*c_b*d-a*b*c_b)*xe_b)/(xe_2b1+xe_b*(2*c_b*x+2*c_b*e)+c_2b*x+c_2b*e);\r\n\t\t\treturn gradients;\r\n\t\t}", "public double calcDerivative(StdVectorInt derivComponents, Vector x) {\n return opensimSimulationJNI.FiberCompressiveForceCosPennationCurve_calcDerivative__SWIG_1(swigCPtr, this, StdVectorInt.getCPtr(derivComponents), derivComponents, Vector.getCPtr(x), x);\n }", "public RealValuedFunctTwoOps deriv21() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv21At(x, y);\n\t }\n\t};\n }", "@Override\n\tpublic int dy() {\n\t\treturn dz;\n\t}", "public void calculateDesireHiddenLayerActivation(int dataIndex) {\r\n for (int i = 0; i < hiddenLayer.length; i++) {\r\n double count = 0;\r\n for (int j = 0; j < outputLayer.length; j++) {\r\n count += -2*((attribute[dataIndex] == i ? 1 : 0) - sigmoid(outputLayer[j].z))*sigmoidDeri(outputLayer[j].z)*outputLayer[j].dw[i];\r\n }\r\n desireHiddenLayerActivation[i] = hiddenLayer[i].a - count / outputLayer.length;\r\n }\r\n }", "public Vector3D[] deriv(Vector3D[] y, Vector3D acceleration, double dt) {\n Vector3D[] doty = new Vector3D[2];\n doty[0] = y[1].scale(dt);\n doty[1] = acceleration.scale(dt);\n return doty;\n }", "@Override\n\tpublic double[] getDx() {\n\t double object[] = new double[2];\n\t for(int i = 0; i < x.length; i++){\n\t object[0] += theta[0] + theta[1] * x[i] - y[i];\n\t object[1] += (theta[0] + theta[1] * x[i] - y[i])*x[i];\n\t }\n\t theta[0] -= eta * object[0];\n\t theta[1] -= eta * object[1];\n\n\t return theta;\n }", "private void backwardPropagation(int[] trainingData, int[] trainingLabel, double[] outputActivations, double[] hiddenActiv) {\n\t\tdouble[] delta = new double[SIZE_OUTPUT_LAYER];\n\t\t// Update OutputLayer weights\n\t\tfor(int indexOutput = 0; indexOutput < SIZE_OUTPUT_LAYER; indexOutput++) {\n\t\t\t// We define delta as the difference between the real label and the softmax probability\n\t\t\tdelta[indexOutput] = trainingLabel[indexOutput] - outputActivations[indexOutput];\n\n\t\t\tfor(int indexHidden = 0; indexHidden < SIZE_HIDDEN_LAYER; indexHidden++) {\n\t\t\t\tweightsOfOutputLayer[indexOutput][indexHidden] += learningRate * delta[indexOutput] * hiddenActiv[indexHidden] / datasetSize;\n\t\t\t}\t\n\t\t\tbiasOfOutputLayer[indexOutput] += learningRate * delta[indexOutput] / datasetSize;\n\t\t}\t\n\t\t// Create delta2 \n\t\tdouble[] delta2 = new double[SIZE_HIDDEN_LAYER];\n\t\tfor(int i = 0; i < SIZE_HIDDEN_LAYER; i++) {\n\t\t\tdelta2[i] = 0;\n\t\t\tfor(int j = 0; j < SIZE_OUTPUT_LAYER; j++) {\n\t\t\t\t// Why is it multiplying the weights for delta1?\n\t\t\t\tdelta2[i] += delta[j] * weightsOfOutputLayer[j][i];\n\t\t\t}\n\t\t\tdelta2[i] *= dtanh(hiddenActiv[i]);\n\t\t}\n\t\t// Update HiddenLayer weights\n\t\tfor(int i = 0; i < SIZE_HIDDEN_LAYER; i++) {\n\t\t\tfor(int j = 0; j < SIZE_INPUT_LAYER; j++) {\n weightsOfHiddenLayer[i][j] += learningRate * delta2[i] * (double)trainingData[j] / datasetSize;\n\t\t\t}\n biasOfHiddenLayer[i] += learningRate * delta2[i] / datasetSize;\n\t\t}\t\n\t}", "@Override\r\n\t\tpublic double getDx() {\n\t\t\treturn(Math.pow(this.a+this.h, 2)-Math.pow(this.a, 2))/h;\r\n\t\t}", "public RealValuedFunctTwoOps deriv2() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv2At(x, y);\n\t }\n\t};\n }", "public double getTimeDelayActivation() {\r\n\t\tif (activation_count > 1) return last_activation;\r\n\t\telse return 0.0;\r\n\t}", "@Override\n\tpublic int dx() {\n\t\treturn dx;\n\t}", "double calculateAxon(ActivationFunction activationFunction);", "@Override\n\tpublic Object backward(Object grad_output) {\n\t\t\n\t\tdouble[] grads=(double[])grad_output;\n\t\t\n\t\t//for weights\n\t\tweights_gradients=new double[weights.length][];\n\t\tfor(int i=0;i<weights.length;i++)\n\t\t{\n\t\t\tweights_gradients[i]=grads;\n\t\t}\n\t\t\n\t\t//for grad_inputs\n\t\tdouble[] grad_inputs=MatrixTool.MatrixRightDotVector(weights, grads);\n\t\treturn grad_inputs;\n\t}", "public Vec2f getDelta() {\n\t\treturn new Vec2f(_dx, _dy);\n\t}", "public float getGradPoint() { return gradientPoint; }", "public double getPreActivationFunctionOutput() {\n\t\treturn preActivationFunctionOutput;\n\t}", "public Double getDx();", "public RealValuedFunctTwoOps deriv11() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv11At(x, y);\n\t }\n\t};\n }", "private float diffusitivity(float d) {\r\n return (1.0f / (1.0f + (d * d) / (lambda * lambda)));\r\n }", "public double get_dFdx( double x )\n {\n if ( domain.contains( (float)x ) )\n {\n double sum = 0.0;\n for ( int i = parameters.length - 2; i >= 0; i-- )\n sum = x * sum + (i+1) * parameters[i+1];\n return sum;\n }\n else\n return 0;\n }", "public DerivativeFunction(RealFunction f, double epsilon) {\r\n \tthis.f= f;\r\n \tthis.epsilon= epsilon;\r\n }", "public int activationFunction(double output) {\n if (output < 0) return 0;\n else return 1;\n }", "public double diff(double x) {\n return -2 * x;\n }", "public RealValuedFunctTwoOps deriv22() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv22At(x, y);\n\t }\n\t};\n }", "@Override\n\tpublic void backProp() {\n\t\tdouble dOut = 0;\n\t\tfor (Node n : outputs) {\n\t\t\tdOut += n.dInputs.get(this);\n\t\t}\n\t\tdouble dTotal = activationFunction.derivative(total)*dOut;\n\t\tfor (Node n : inputs) {\n\t\t\tdInputs.put(n, dTotal * weights.get(n).getWeight());\n\t\t\tweights.get(n).adjustWeight(dTotal * n.output);\n\t\t}\n\t\tbiasWeight.adjustWeight(bias * dTotal);\n\t}", "public static double getDelta()\n\t{\n\t\treturn delta;\n\t}", "@Override\n public void backward() {\n Tensor x = modInX.getOutput();\n Tensor tmp = new Tensor(yAdj); // copy\n tmp.elemDivide(x);\n modInX.getOutputAdj().elemAdd(tmp);\n }", "public static double derivada(double x, double y)\n {\n // reemplazar esto, con la funcion que me toque \n return x * Math.sqrt(1 + y*y);\n }", "public float d() {\n if (B1() || A1()) {\n return this.A + this.o + this.B;\n }\n return 0.0f;\n }", "public void derivate () {\n int size = myCoefficients.size();\n for (int i = 1; i < size; ++i) {\n myCoefficients.set(i - 1, myCoefficients.get(i) * i);\n }\n myCoefficients.remove(size - 1);\n }", "@Override\r\n\tpublic FloatMat gradient() { return this.gradient; }", "public void calculateGradients(int dataIndex, double learningRate){\r\n for (int i = 0; i < outputLayer.length; i++) {\r\n for (int j = 0; j < outputLayer[i].weights.length; j++) {\r\n outputLayer[i].dw[j] = -2*((attribute[dataIndex] == i ? 1 : 0) - sigmoid(outputLayer[i].z))*sigmoidDeri(outputLayer[i].z)*outputLayer[i].data[j];\r\n }\r\n outputLayer[i].db = -2*((attribute[dataIndex] == i ? 1 : 0) - sigmoid(outputLayer[i].z))*sigmoidDeri(outputLayer[i].z);\r\n }\r\n\r\n adjust(learningRate, true);\r\n calculateDesireHiddenLayerActivation(dataIndex);\r\n\r\n for (int i = 0; i < hiddenLayer.length; i++) {\r\n for (int j = 0; j < hiddenLayer[i].weights.length; j++) {\r\n hiddenLayer[i].dw[j] = -2*(desireHiddenLayerActivation[i] - hiddenLayer[i].a)*sigmoidDeri(hiddenLayer[i].z)*hiddenLayer[i].data[j];\r\n }\r\n hiddenLayer[i].db = -2*(desireHiddenLayerActivation[i] - hiddenLayer[i].a)*sigmoidDeri(hiddenLayer[i].z);\r\n }\r\n\r\n adjust(learningRate, false);\r\n }", "@Override\n public Vector2d gradient(Vector2d p) {\n\n return null;\n }", "public double getDx() {\r\n return this.dx;\r\n }", "public final float determinant() {\n\t// less *,+,- calculation than expanded expression.\n\treturn m00*(m11*m22 - m21*m12)\n\t - m01*(m10*m22 - m20*m12)\n\t + m02*(m10*m21 - m20*m11);\n }", "public double getDelta() {\r\n return delta;\r\n }", "public Double getDy();", "public double getDx() {\n return dx;\n }", "public double getFreeEnergy(){\n\n\t\tdouble freeEnergy = 0.;\n\n\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\tfreeEnergy -= this.layers[0][i].getState()*this.layers[0][i].getBias();\n\t\t}\n\n\n\t\tfor(int j = 0; j < this.layers[1].length; j++){\n\t\t\tdouble x = this.layers[1][j].getBias();\n\t\t\t//System.out.println(\"x = \" + x);\n\t\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\t\tx += this.layers[0][i].getState()*this.connections[i][j];\n\t\t\t\t/*System.out.println(\"1 = \" + this.layers[0][i].getState());\n\t\t\t\tSystem.out.println(\"2 = \" + this.connections[i][j]);\n\t\t\t\tSystem.out.println(\"x = \" + x);\n\t\t\t\tif(x != x){ this.layers[3] = null;}*/\n\t\t\t}\n\t\t\t//System.out.println(\"x = \" + x);\n\t\t\tfreeEnergy -= Math.log(1 + Math.exp(x));\n\t\t}\n\n\t\t/*\n\t\tfor(int j = 0; j < this.layers[1].length; j++){\n\t\t\tdouble x = this.layers[1][j].getBias();\n\t\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\t\tx += this.layers[0][i].getState()*this.connections[i][j];\n\t\t\t}\n\t\t\tfreeEnergy -= x*Sigmoid.getINSTANCE().apply(x);\n\t\t}\n\n\t\tfor(int j = 0; j < this.layers[1].length; j++){\n\t\t\tdouble x = this.layers[1][j].getBias();\n\t\t\tfor(int i = 0; i < this.layers[0].length; i++){\n\t\t\t\tx += this.layers[0][i].getState()*this.connections[i][j];\n\t\t\t}\n\t\t\tdouble p = Sigmoid.getINSTANCE().apply(x);\n\t\t\tfreeEnergy += p*Math.log10(p) + (1. - p)*Math.log10(1. - p);\n\t\t}\n\t\t */\n\n\t\treturn freeEnergy;\n\t}", "public double getDx() {\n return this.dx;\n }", "public double getDx() {\n return this.dx;\n }", "public double getDx() {\n return this.dx;\n }", "@Override\n public Component getDerivative(Variable var) {\n\n Factor lnBase = new Logarithm(NEP_NUMBER, new ParenthesizedExpression(new Term(new Constant(base))));\n\n BigDecimal lnBaseValue = lnBase.getValue();\n if (MathUtils.isIntegerValue(lnBaseValue)) {\n lnBase = new Constant(lnBaseValue);\n }\n\n return new Term(\n new ParenthesizedExpression(\n new Term(\n new Constant(\"1\"),\n DIVIDE,\n new Term(\n Factor.getFactor(argument),\n MULTIPLY,\n lnBase\n )\n )\n ),\n MULTIPLY,\n Term.getTerm(argument.getDerivative(var))\n );\n }", "@Override\n public Pair<INDArray,INDArray> backprop(INDArray in, INDArray epsilon) {\n //dldZ here is h'(in) in the description above\n //\n // h(x) = 1.7159*tanh(2x/3);\n // h'(x) = 1.7159*[tanh(2x/3)]' * 2/3\n INDArray dLdz = Nd4j.getExecutioner().exec(new TanDerivative(in.muli(2/3.0)));\n dLdz.muli(2/3.0);\n dLdz.muli(1.7159);\n\n //Multiply with epsilon\n dLdz.muli(epsilon);\n return new Pair<>(dLdz, null);\n }", "public double DFrom0()\n\t{\n\t\treturn(x+y);\n\t\t\n\t}", "public double getDy() {\n return dy;\n }", "public float getDelta() {\n\t\treturn delta;\n\t}", "public double getDz() {\n return dz;\n }", "public Derivative evaluate(State initial, double t, double dt, Derivative d)\n\t{\n\n\t\tState state = initial;\n\t state.position = initial.position.add(d.dx.scale(dt));\n\t state.momentum = initial.momentum.add(d.dv.scale(dt)); \n\n\t Derivative output = new Derivative();\n\t output.dx = state.momentum;\n\t output.dv = state.efield.scale(state.charge);\n\t return output;\n\t}", "public double getDelta() {\n return delta;\n }", "public ElmanNeuralNetwork(Neuron output, List<Neuron> inputLayer, List<List<Neuron>> hiddenLayers, DoubleUnaryOperator activationFunction) {\n\t\tsuper(output, inputLayer, hiddenLayers, activationFunction);\n\t}", "public interface ActivationFunction {\n\t/**\n\t * The activation function itself. E.g. The sigmoid function\n\t * @param z - The weighted sum of a neuron\n\t * @return The activation of a neuron\n\t */\n\tpublic double activation(double z);\n\t/**\n\t * The derivative of the activation function.\n\t * @param z - The weighted sum of a neuron\n\t * @return The derivative of this activation function at z\n\t */\n\tpublic double activationDerivative(double z);\n\t/**\n\t * The code of this activation function.<br>\n\t * Each activation function has a unique code for it to be identified.\n\t * This value is used when saving and loading neural networks; it is saved in the file.\n\t * The ClassificationNeuralNetwork class keeps a list of these functions to look up the correct one when loading.\n\t * For custom activation functions not included in the list, loading a network causes the activation function\n\t * of that particular network to be set to <em>null</em>, and thus it <b>must</b> be set later <b>manually</b>\n\t * through the setActivationFunction() method.\n\t * @return The code of this activation function\n\t */\n\tpublic byte getCode();\n}", "private double[] getOutputWeightDerivs () {\n\t\tdouble[] weightDerivs = new double[synapses[1][0].length];\n\n\t\tfor (int i = 0; i < weightDerivs.length; i++) {\n\t\t\tweightDerivs[i] = getOutputSumDerivForWeights()[i] * getOutputResultDeriv();\n\t\t}\n\t\treturn weightDerivs;\n\t}", "double deltaX() {\n return -Math.cos(Math.toRadians(this.theta)) * this.length;\n }", "@Override\n public double dydx(double t) {\n \tt = t / 141;\n \treturn (12 + 324 * t + -360 * Math.pow(t, 2))/ (294 + -930 * t + 873 * Math.pow(t, 2));\n }", "public Double getDz();", "double d();", "int computeGradient(\n int gx, int gy);", "public RealValuedFunctTwoOps deriv12() {\n\treturn new RealValuedFunctTwoOps() {\n\t public double valueAt(double x, double y) {\n\t\treturn RealValuedFunctionTwo.this.deriv12At(x, y);\n\t }\n\t};\n }", "public org.drip.measure.dynamics.DiffusionEvaluator evaluator()\n\t{\n\t\treturn _de;\n\t}", "public double determinant(){\r\n \tint n = this.nrow;\r\n \tif(n!=this.ncol)throw new IllegalArgumentException(\"Matrix is not square\");\r\n \tdouble det = 0.0D;\r\n \tMatrix ludmat = this.luDecomp();\r\n\r\n\t \tdet = ludmat.dswap;\r\n \tfor(int j=0; j<n; j++){\r\n \t\tdet *= ludmat.matrix[j][j];\r\n \t}\r\n \treturn det;\r\n \t}", "public float getDx() {\n\t\treturn _dx;\n\t}", "public double getDescent() throws PDFNetException {\n/* 894 */ return GetDescent(this.a);\n/* */ }", "public synchronized float calcActivation(float[] attrActivation) {\n\t\t\n\t\t// first reset activation\n\t\tactivation = 0.0f;\n\t\t\n\t\tfor (int i = 0; i < attrConnections.length; i++) {\n\t\t\tactivation = activation + attrConnections[i] * attrActivation[i];\n\t\t}\n\t\t\n\t\treturn activation;\n\t}", "public int getDelta() {\n return parameter.getDelta();\n }", "public double getmoveDeduction(){\n return moveDeduction;\n }", "public float getDrx() {\r\n\t\treturn drx;\r\n\t}", "public Vector3D getGradient(int x, int y) {\n\t\tif (x < 1 || x >= mSizeX - 1) {\n\t\t\treturn new Vector3D(0, 0, 0);\n\t\t}\n\n\t\tif (y < 1 || y >= mSizeY - 1) {\n\t\t\treturn new Vector3D(0, 0, 0);\n\t\t}\n\n\t\treturn new Vector3D(mData[x - 1][y] - mData[x + 1][y], mData[x][y - 1] - mData[x][y + 1], 2);\n\t}", "public double getDy() {\r\n return this.dy;\r\n }", "public Point getDelta()\n {\n return this.getPosition().subtract(this.getInitialPosition());\n }", "public Function differentiate() {\n return new Product(this,\n new Sum(new Quotient(new Product(f2,\n f1.differentiate()),\n f1),\n new Product(new Log(new Complex(Math.E, 0.0), f1),\n f2.differentiate())));\n }", "private double Sigmoid (double Net) {\r\n\t\treturn 1/(1+Math.exp(-Net));\r\n\t}", "public static double approxDerivation(double x, Object className,\n\t\t\tString functionName) throws IllegalArgumentException,\n\t\t\tIllegalAccessException, InvocationTargetException {\n\t\tClass c = className.getClass();\n\t\tMethod[] methods = c.getDeclaredMethods();\n\t\tMethod function = null;\n\t\tfor (Method method : methods) {\n\t\t\tif (method.getName().equals(functionName)\n\t\t\t\t\t&& method.getParameterTypes().length == 1)\n\t\t\t\tfunction = method;\n\t\t}\n\n\t\tdouble deltaX = 1E-5; // seems to be a good Value for double\n\t\tc = function.getReturnType();\n\t\t// double y1 = (Double) function.invoke(className, x);\n\t\tdouble y2 = (Double) function.invoke(className, x + deltaX);// right\n\t\t// difference\n\t\tdouble y3 = (Double) function.invoke(className, x - deltaX);// left\n\t\t// difference\n\t\t// System.out.println(\" y1:\"+y1+\" y2:\"+y2);\n\t\tdouble deltaY = y2 - y3;\n\n\t\t// invoke\n\t\t// System.out.println(\"deltay: \" + deltaY + \" /deltaX: \" + deltaX);\n\t\treturn deltaY / (2 * deltaX);\n\t}", "private double fd(double x) {\r\n if(x<0){\r\n double x1 = x*-1;\r\n return interpretadorD.getResultado(\"!\"+x1);\r\n }\r\n return interpretadorD.getResultado(x);\r\n }", "public static double sigmoid(double x) {\r\n return 1 / (1 + Math.pow(Math.E, (-x)));\r\n }", "public static StateVector integrate( StateVector state, double dt) {\r\n StateVector dummy = new StateVector();\r\n StateVector derivative_a, derivative_b, derivative_c, derivative_d;\r\n\r\n\r\n derivative_a = evaluate(state, 0.0, dummy, 0 ); // derivative a returns initial velocity and acceleration\r\n derivative_b = evaluate(state, dt*0.5, derivative_a, 1 );\r\n derivative_c = evaluate(state, dt*0.5, derivative_b, 1 );\r\n derivative_d = evaluate(state, dt, derivative_c, 2 );\r\n\r\n double dxdt = 1.0/6.0 * (derivative_a.vx + 2.0f*(derivative_b.vx + derivative_c.vx) + derivative_d.vx);\r\n double dydt = 1.0/6.0 * (derivative_a.vy + 2.0f*(derivative_b.vy + derivative_c.vy) + derivative_d.vy);\r\n double dzdt = 1.0/6.0 * (derivative_a.vz + 2.0f*(derivative_b.vz + derivative_c.vz) + derivative_d.vz);\r\n double dvxdt = 1.0/6.0 * (derivative_a.ax + 2.0f*(derivative_b.ax + derivative_c.ax) + derivative_d.ax);\r\n double dvydt = 1.0/6.0 * (derivative_a.ay + 2.0f*(derivative_b.ay + derivative_c.ay) + derivative_d.ay);\r\n double dvzdt = 1.0/6.0 * (derivative_a.az + 2.0f*(derivative_b.az + derivative_c.az) + derivative_d.az);\r\n\r\n state.x = state.x + dxdt * dt;\r\n state.y = state.y + dydt * dt;\r\n state.z = state.z + dzdt * dt;\r\n state.vx = state.vx + dvxdt * dt;\r\n state.vy = state.vy + dvydt * dt;\r\n state.vz = state.vz + dvzdt * dt;\r\n\r\n return( state );\r\n }", "public double getDy() {\n return this.dy;\n }", "public double getDy() {\n return this.dy;\n }" ]
[ "0.8091666", "0.7141857", "0.6747418", "0.67116606", "0.64763194", "0.6474654", "0.64429516", "0.6369258", "0.63112295", "0.62944967", "0.60834104", "0.60120803", "0.59694093", "0.5920116", "0.5872528", "0.5842627", "0.5704055", "0.56417036", "0.56221104", "0.56139493", "0.56038254", "0.5513058", "0.55045784", "0.5494725", "0.54413766", "0.54388463", "0.5429352", "0.5389952", "0.5354422", "0.53280747", "0.5328007", "0.53279907", "0.531442", "0.53000855", "0.5242581", "0.522559", "0.52254045", "0.5169335", "0.5161957", "0.5150836", "0.515024", "0.51498985", "0.5115356", "0.5106076", "0.5103293", "0.51016855", "0.5050604", "0.504428", "0.5025932", "0.5025844", "0.50119865", "0.49953493", "0.499183", "0.49892193", "0.49854663", "0.49715027", "0.49688053", "0.4946865", "0.49461704", "0.49440092", "0.49428844", "0.49355382", "0.49355382", "0.49355382", "0.4926475", "0.49264356", "0.49262482", "0.4923212", "0.4914856", "0.4900172", "0.48960352", "0.48844835", "0.48828816", "0.48791206", "0.48672086", "0.4855565", "0.4849045", "0.48475486", "0.48294565", "0.48275754", "0.4819506", "0.48086825", "0.48006096", "0.47954872", "0.4795085", "0.4788864", "0.4784581", "0.47821474", "0.47492647", "0.47488788", "0.47391963", "0.47360647", "0.4733742", "0.47279587", "0.47239235", "0.4721733", "0.47206682", "0.4713763", "0.47062638", "0.47062638" ]
0.82514143
0
The code of this activation function. Each activation function has a unique code for it to be identified. This value is used when saving and loading neural networks; it is saved in the file. The ClassificationNeuralNetwork class keeps a list of these functions to look up the correct one when loading. For custom activation functions not included in the list, loading a network causes the activation function of that particular network to be set to null, and thus it must be set later manually through the setActivationFunction() method.
public byte getCode();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ActivationFunction {\n\t/**\n\t * The activation function itself. E.g. The sigmoid function\n\t * @param z - The weighted sum of a neuron\n\t * @return The activation of a neuron\n\t */\n\tpublic double activation(double z);\n\t/**\n\t * The derivative of the activation function.\n\t * @param z - The weighted sum of a neuron\n\t * @return The derivative of this activation function at z\n\t */\n\tpublic double activationDerivative(double z);\n\t/**\n\t * The code of this activation function.<br>\n\t * Each activation function has a unique code for it to be identified.\n\t * This value is used when saving and loading neural networks; it is saved in the file.\n\t * The ClassificationNeuralNetwork class keeps a list of these functions to look up the correct one when loading.\n\t * For custom activation functions not included in the list, loading a network causes the activation function\n\t * of that particular network to be set to <em>null</em>, and thus it <b>must</b> be set later <b>manually</b>\n\t * through the setActivationFunction() method.\n\t * @return The code of this activation function\n\t */\n\tpublic byte getCode();\n}", "public Integer getFuncCode() {\n\t\treturn funcCode;\n\t}", "public String getActivationCode() {\r\n\t\treturn activationCode;\r\n\t}", "public double getActivation() {\r\n\t\tif (activation_count > 0) return activation;\r\n\t\telse return 0.0;\r\n\t}", "public void setFuncCode(Integer funcCode) {\n\t\tthis.funcCode = funcCode;\n\t}", "public void setFunctionBinary(Binary functionBinary) {\r\n\t\tthis.functionBinary = functionBinary;\r\n\t}", "public int getActivation()\n {\n return activation;\n }", "java.lang.String getCode();", "java.lang.String getCode();", "private double activationFunction(double input){\n double temp = 1 + Math.exp(-1 * input * this.sigmoidFactor);\n double result = (double)1/temp;\n return result;\n }", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "public int activationFunction(double output) {\n if (output < 0) return 0;\n else return 1;\n }", "public String getCode() {\n\t\treturn Code;\n\t}", "public String getCode();", "public String getCode();", "public Node(ActivationFunction f) {\n\t\tnodeActivationFunction = f;\n\t}", "public String getCode() {\n return (String)getAttributeInternal(CODE);\n }", "@Override\n public String codeGen() {\n\n\tString labelFun = \"labelFun\" + MiniFunLib.getLabIndex();\n\tString popParSequence = \"\";\n\tString popLocalVariable = \"\";\n\tString localVariableCodeGen = \"\";\n\n\tfor (int i = 0; i < funParams.size(); i++) {\n\t NodeType nt = this.funParams.get(i).getType().getNodeType();\n\n\t if (nt == NodeType.ARROWTYPE_NODE)\n\t\tpopParSequence += VMCommands.POP + \"\\n\" + VMCommands.POP + \"\\n\";\n\t else\n\t\tpopParSequence += VMCommands.POP + \"\\n\";\n\t}\n\n\tfor (int i = 0; i < funLocalVariables.size(); i++) {\n\t localVariableCodeGen += funLocalVariables.get(i).codeGen();\n\t popLocalVariable += VMCommands.POP + \"\\n\";\n\t}\n\n\tString code = labelFun + \" :\\n\" +\n\t// Preparo parte bassa dell'activation Record\n\n\t\t// Il registro FP punterà al nuovo Activation Record\n\t\tVMCommands.CFP + \"\\n\"\n\n\t\t// PUSH dei dati Locali\n\t\t+ localVariableCodeGen +\n\n\t\t// PUSH return address del chiamante\n\t\tVMCommands.LRA + \"\\n\"\n\n\t\t// Corpo della funzione\n\t\t+ funBody.codeGen() +\n\n\t\t// POP RV e salvo nel registro\n\t\tVMCommands.SRV + \"\\n\" +\n\n\t\t// POP RA e salvo nel registro\n\t\tVMCommands.SRA + \"\\n\" +\n\n\t\t// Rimuovo variabili locali\n\t\tpopLocalVariable +\n\t\t// Rimuovo Access Link\n\t\tVMCommands.POP + \"\\n\" +\n\t\t// Rimuovo Pametri\n\t\tpopParSequence +\n\n\t\t// Ripristino il Registro FP che punterà all'Activation Record\n\t\t// del chiamante\n\t\tVMCommands.SFP + \"\\n\" +\n\n\t\t// PUSH valore di ritorno\n\t\tVMCommands.LRV + \"\\n\" +\n\t\t// PUSH indirizzo di ritorno\n\t\tVMCommands.LRA + \"\\n\" +\n\n\t\t// Salto al Chiamante\n\t\tVMCommands.JS + \"\\n\";\n\n\tMiniFunLib.addFunctionCode(code);\n\n\treturn VMCommands.PUSH + \" \" + labelFun + \"\\n\";\n }", "protected void setFunctionCode(int code) {\n m_FunctionCode = code;\n // setChanged(true);\n }", "public NomenclaturalCode getCode() {\n return code;\n }", "public String getFunctionClass() {\n return functionClass;\n }", "public double getPreActivationFunctionOutput() {\n\t\treturn preActivationFunctionOutput;\n\t}", "public String getCode() { \n\t\treturn getCodeElement().getValue();\n\t}", "public String getCode() {\r\n\t\treturn code;\r\n\t}", "public String getCode() {\r\n\t\treturn code;\r\n\t}", "private String encodeActivationCode(byte[] activationCodeBytes) {\n // Generate Base32 representation from 12 activation code bytes, without padding characters.\n String base32Encoded = BaseEncoding.base32().omitPadding().encode(activationCodeBytes);\n\n // Split Base32 string into 4 groups, each one contains 5 characters. Use \"-\" as separator.\n return base32Encoded.substring(0, BASE32_KEY_LENGTH)\n + \"-\"\n + base32Encoded.substring(BASE32_KEY_LENGTH, BASE32_KEY_LENGTH * 2)\n + \"-\"\n + base32Encoded.substring(BASE32_KEY_LENGTH * 2, BASE32_KEY_LENGTH * 3)\n + \"-\"\n + base32Encoded.substring(BASE32_KEY_LENGTH * 3, BASE32_KEY_LENGTH * 4);\n }", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode()\n {\n return fCode;\n }", "public double activation(double z);", "public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}", "public String getCode () {\r\n\t\treturn code;\r\n\t}", "double calculateAxon(ActivationFunction activationFunction);", "Integer getCode();", "public String getCode() {\t\t\t\t\t\t\t\t\treturn code;\t\t\t\t\t\t\t}", "public int getCode() {\n\t\treturn adaptee.getCode();\n\t}", "public java.lang.String getClassCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(CLASSCODE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(CLASSCODE$30);\n }\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public void activate() {\t\t\n\t\t// Put activation code here (computing output based on the network's inputs)\n }", "Code getCode();", "public java.lang.String getCode() {\r\n return code;\r\n }", "int getCodeValue();", "public int getTrainingcode() {\r\n\t\treturn trainingcode;\r\n\t}", "public void calculateDesireHiddenLayerActivation(int dataIndex) {\r\n for (int i = 0; i < hiddenLayer.length; i++) {\r\n double count = 0;\r\n for (int j = 0; j < outputLayer.length; j++) {\r\n count += -2*((attribute[dataIndex] == i ? 1 : 0) - sigmoid(outputLayer[j].z))*sigmoidDeri(outputLayer[j].z)*outputLayer[j].dw[i];\r\n }\r\n desireHiddenLayerActivation[i] = hiddenLayer[i].a - count / outputLayer.length;\r\n }\r\n }", "public void setActivation(double value) {\n this.activation = value;\n }", "public String getCode(){\n\t\treturn code;\n\t}", "public synchronized float calcActivation(float[] attrActivation) {\n\t\t\n\t\t// first reset activation\n\t\tactivation = 0.0f;\n\t\t\n\t\tfor (int i = 0; i < attrConnections.length; i++) {\n\t\t\tactivation = activation + attrConnections[i] * attrActivation[i];\n\t\t}\n\t\t\n\t\treturn activation;\n\t}", "public String getCode()\n {\n return code;\n }", "public Short getFunctionType() {\n return functionType;\n }", "public String getCode() {\n String code = getPrefixCode();\r\n code += format(5, this.getNumber());\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getIntermidiateCode(){\r\n\t\treturn iCode;\r\n\t}", "@Override\r\n\tpublic String getCode() {\n\t\treturn code;\r\n\t}", "public String getClassCode() {\n\t\treturn classCode;\n\t}", "public int getCode();", "int getCode();", "int getCode();", "int getCode();", "private void saveActivationCode() {\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getInputCode() {\r\n return inputCode;\r\n }", "public String getFunctionName() {\r\n\t\treturn this.functionName;\r\n\t}", "public String getAttrCode() {\r\n\t\treturn attrCode;\r\n\t}", "@Override\n\tpublic Type generateIntermediateCode(Function fun) {\n\t\tif(number instanceof Double)\n\t\t\treturn Type.FLOAT;\n\t\telse if (number instanceof Integer)\n\t\t\treturn Type.INT;\n\t\treturn Type.NULL;\n\t\t\t\n\t}", "public BigDecimal getCODE() {\r\n return CODE;\r\n }", "public BigDecimal getCODE() {\r\n return CODE;\r\n }", "public String getCode() {\n\t\treturn codeText.getText().toString();\n\t}", "public String getCode() {\n return code;\n }" ]
[ "0.7874624", "0.64406633", "0.5895952", "0.5580009", "0.5553183", "0.55044603", "0.54552925", "0.54397726", "0.54397726", "0.5410049", "0.54065174", "0.54065174", "0.54065174", "0.54065174", "0.54065174", "0.5355209", "0.53391653", "0.5329119", "0.5329119", "0.53179836", "0.53149813", "0.5309932", "0.52765805", "0.525484", "0.52475595", "0.5244145", "0.5241975", "0.5236114", "0.5236114", "0.52321666", "0.5223543", "0.5223543", "0.5223543", "0.5223543", "0.5223543", "0.5223543", "0.52197844", "0.5219135", "0.5212402", "0.5208508", "0.5208128", "0.5205971", "0.51896244", "0.5185557", "0.5175763", "0.5161294", "0.5160775", "0.5156984", "0.51530325", "0.5140028", "0.513726", "0.5112754", "0.5110097", "0.510289", "0.510136", "0.5098995", "0.5098766", "0.50963485", "0.50963485", "0.50963485", "0.50963485", "0.50963485", "0.50963485", "0.50963485", "0.50940895", "0.5089064", "0.5087", "0.5086879", "0.5069689", "0.5069689", "0.5069689", "0.5056388", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50529546", "0.50471926", "0.50299436", "0.5021033", "0.5013376", "0.49790418", "0.49790418", "0.49526212", "0.49438164" ]
0.5275272
23
Interface for neural network builder
public interface NetworkBuilder { /** * Set neural net layers * @param layers an array with the width and depth of each layer * @return NetworkBuilder instance */ public abstract NetworkBuilder withLayers(int[] layers); /** * Set the DataSet * @param train - training set * @param test - test set * @return NetworkBuilder instance */ public abstract NetworkBuilder withDataSet(DataSet train, DataSet test); /** * Set the ActivationFunction * @param activationFunction * @return NetworkBuilder instance */ public abstract NetworkBuilder withActivationFunction(ActivationFunction activationFunction); /** * Set the ErrorMeasure * @param errorMeasure * @return NetworkBuilder instance */ public abstract NetworkBuilder withErrorMeasure(ErrorMeasure errorMeasure); /** * Train the network * @return the trained network for testing */ public abstract FeedForwardNetwork train(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Neuron {\n /**\n * Checks if current neuron is of type NeuronType.INPUT.\n *\n * @return true if it's input neuron, false otherwise\n */\n boolean isInputNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.HIDDEN.\n *\n * @return true if it's hidden neuron, false otherwise\n */\n boolean isHiddenNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.OUTPUT.\n *\n * @return true if it's output neuron, false otherwise\n */\n boolean isOutputNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.BIAS.\n *\n * @return true if it's bias neuron, false otherwise\n */\n boolean isBiasNeuron();\n\n /**\n * Getter for neuron's name.\n *\n * @return String of this neuron's name\n */\n String getName();\n\n /**\n * Setter for neuron's name.\n *\n * @param name String value as new name for this neuron\n * @return this Neuron instance\n */\n Neuron setName(String name);\n\n /**\n * Gets the List of all incoming neurons (dendrites) for this one.\n * Could be called for all neurons except neurons from input layer and bias neurons,\n * as they can't have incoming connections.\n *\n * @return the List of Neuron instance that leads to this neuron\n */\n List<Neuron> getDendrites();\n\n /**\n * Sets the List of all incoming neurons (dendrites) for this one.\n * Could be called for all neurons except neurons from input layer and bias neurons,\n * as they can't have incoming connections.\n *\n * @return this Neuron instance\n */\n Neuron setDendrites(List<Neuron> dendrites);\n\n /**\n * Gets the current value of this neuron.\n *\n * @return double value of this neuron\n */\n double getAxon();\n\n /**\n * Sets the value for this neuron.\n * Could be called only for input neurons.\n * Hidden neurons and output neurons calculating their values using information from their incoming connections\n * and using activation function, and bias neuron always have axon = 1.\n *\n * @param newValue new axon value for input neuron\n * @return this Neuron instance\n */\n Neuron setAxon(double newValue);\n\n /**\n * Gets the List of all outgoing neurons (synapses) from this one.\n * Could be called for all neurons except of output type as they can't have outgoing connections.\n *\n * @return the List of Neuron instance that this neuron leads to\n */\n List<Neuron> getSynapses();\n\n /**\n * Sets the List of all outgoing neurons (synapses) from this one.\n * Could be called for all neurons except of output type, as they can't have incoming connections.\n *\n * @return this Neuron instance\n */\n Neuron setSynapses(List<Neuron> synapses);\n\n /**\n * Gets the type of this neuron.\n *\n * @return NeuronType value that represents this neuron's type\n */\n NeuronType getType();\n\n /**\n * Computes the value for this neuron from all incoming neurons, using the list of weights passed in this method.\n * The size of weights list should be same as the number of incoming connections for this neuron.\n * Otherwise RuntimeException would be thrown.\n *\n * @param weights the List of double values the represents weights for each incoming connection for this neuron\n * @return new computed soma value\n */\n double calculateSoma(List<Double> weights);\n\n /**\n * Calculates the new value (axon) for this neuron from it's soma, normalized by activation function.\n *\n * @param activationFunction activation function to be used for normalizing soma value\n * @return new axon value for this neuron\n */\n double calculateAxon(ActivationFunction activationFunction);\n\n /**\n * Computes the value for this neuron from all incoming neurons, using the list of weights passed in this method.\n * The size of weights list should be same as the number of incoming connections for this neuron.\n * Otherwise RuntimeException would be thrown.\n * Then calculates the new value (axon) for this neuron from it's soma, normalized by activation function.\n *\n * @param weights the List of double values the represents weights for each incoming connection for this neuron\n * @param activationFunction activation function to be used for normalizing soma value\n * @return new axon value for this neuron\n */\n double calculateSomaAndAxon(List<Double> weights, ActivationFunction activationFunction);\n\n double getDelta();\n\n void setDelta(double delta);\n}", "private void createNeuralNet() {\n\t\tMSimulationConfig simConfig;\n\t\tHashMap<Integer, MNeuron> neuronMap = new HashMap<Integer, MNeuron>();\n\t\tArrayList<MNeuron> neurons = new ArrayList<MNeuron>();\n\t\tArrayList<MSynapse> synapses = new ArrayList<MSynapse>();\n\n\t\tNeatGenome genome = (NeatGenome) geneticObject;\n\t\t/* Create neurons. */\n\t\tfor (NeatNode nn : genome.getNodes()) {\n\t\t\tint id = nn.getId();\n\t\t\tMNeuronParams params = nn.getParams();\n\t\t\tMNeuronState state =\n\t\t\t\t\tMFactory.createInitialRSNeuronState();\n\n\t\t\t/* Create a neuron. */\n\t\t\tMNeuron neuron = new MNeuron(params, state, id);\n\n\t\t\t/* Add it to temporary NID->Neuron map. */\n\t\t\tneuronMap.put(id, neuron);\n\n\t\t\t/* Add neuron to the list. */\n\t\t\tneurons.add(neuron);\n\t\t}\n\n\t\t/* Create synapses. */\n\t\tfor (GenomeEdge<NeatNode> g : genome.getGene()) {\n\t\t\t/* Get the synapse information. */\n\t\t\tNeatNode preNode = g.getIn();\n\t\t\tNeatNode postNode = g.getOut();\n\t\t\tdouble weight = g.getWeight();\n\t\t\tint delay = g.getDelay();\n\t\t\tInteger preNid = new Integer(preNode.getId());\n\t\t\tInteger postNid = new Integer(postNode.getId());\n\n\t\t\t/* Find the pre and post neurons. */\n\t\t\tMNeuron preNeuron = neuronMap.get(preNid);\n\t\t\tMNeuron postNeuron = neuronMap.get(postNid);\n\n\t\t\t/* Create the synapse. */\n\t\t\tMSynapse synapse = new MSynapse(preNeuron, postNeuron,\n\t\t\t\t\tweight, delay);\n\t\t\t/*\n\t\t\tAdd the synapse to the pre and post neuron synapse list\n\t\t\t */\n\t\t\tArrayList<MSynapse> postSynapses\n\t\t\t= preNeuron.getPostSynapses();\n\t\t\tArrayList<MSynapse> preSynapses\n\t\t\t= postNeuron.getPreSynapses();\n\n\t\t\tpostSynapses.add(synapse);\n\t\t\tpreSynapses.add(synapse);\n\n\t\t\tpreNeuron.setPostSynapses(postSynapses);\n\t\t\tpostNeuron.setPreSynapses(preSynapses);\n\n\t\t\t/* Add the synapse to the list. */\n\t\t\tsynapses.add(synapse);\n\t\t}\n\n\t\t/* Create the network. */\n\t\tthis.mnetwork = new MNetwork(neurons, synapses);\n\n\t\t/* Create and set the simulation configuration parameters. */\n\t\tsimConfig = new MSimulationConfig(20);\n\n\t\t/* Create the simulation instance with our network. */\n\t\tthis.msimulation = new MSimulation(this.mnetwork, simConfig);\n\t}", "public interface Layer {\n /**\n * @return The number of neurons, excluding bias neurons and context neurons. This is the number of neurons that\n * are directly fed from elsewhere.\n */\n int getCount();\n\n /**\n * @return The number of neurons, including bias neurons and context neurons.\n */\n int getTotalCount();\n\n /**\n * @return The activation/transfer function for this neuron.\n */\n ActivationFunction getActivation();\n\n /**\n * Finalize the structure of this layer.\n * @param theOwner The neural network that owns this layer.\n * @param theLayerIndex The zero-based index of this layer.\n * @param counts The counts structure to track the weight and neuron counts.\n */\n void finalizeStructure(BasicNetwork theOwner, int theLayerIndex,\n TempStructureCounts counts);\n\n /**\n * Compute this layer.\n */\n void computeLayer();\n\n /**\n * Compute the gradients for this layer.\n * @param calc The gradient calculation utility.\n */\n void computeGradient(GradientCalc calc);\n\n /**\n * @return The start of this layer's weights in the weight vector.\n */\n int getWeightIndex();\n\n /**\n * @return The start of this layer's neurons in the neuron vector.\n */\n int getNeuronIndex();\n\n /**\n * Notification that a training batch is beginning.\n * @param rnd A random number generator, from the trainer.\n */\n void trainingBatch(GenerateRandom rnd);\n\n /**\n * @return The owner of the neural network.\n */\n BasicNetwork getOwner();\n\n /**\n * @return True if this neuron has bias.\n */\n boolean hasBias();\n}", "@Override\n public void buildNetwork() {\n }", "public interface EngineNeuralNetwork extends EngineMachineLearning {\r\n\t\r\n\t/**\r\n\t * Decode an array to the neural network weights.\r\n\t * @param data The data to decode.\r\n\t */\r\n\tvoid decodeNetwork(double[] data);\r\n\r\n\t/**\r\n\t * Encode the neural network weights to an array.\r\n\t * @return The encoded neural network.\r\n\t */\r\n\tdouble[] encodeNetwork();\r\n\r\n\t/**\r\n\t * @return The length of the encoded array.\r\n\t */\r\n\tint getEncodeLength();\r\n}", "public NeuralNetworkForwardPropagation() {\n super(\"Neural-network forward-propagation\");\n }", "public NeuronalNetwork(){\n // wie viele Schichten?\n // wie viele Neuronen pro Schicht?\n // welche Gewichte Je neuron je Schicht...\n }", "private void buildAndRunNetwork() throws IOException {\n final int numRows = 28;\r\n final int numColumns = 28;\r\n int outputNum = 10; // number of output classes\r\n int batchSize = 128; // batch size for each epoch\r\n int rngSeed = 123; // random number seed for reproducibility\r\n int numEpochs = 15; // number of epochs to perform\r\n double rate = 0.0015; // learning rate\r\n\r\n //Get the DataSetIterators:\r\n DataSetIterator mnistTrain = new MnistDataSetIterator(batchSize, true, rngSeed);\r\n DataSetIterator mnistTest = new MnistDataSetIterator(batchSize, false, rngSeed);\r\n\r\n\r\n log.info(\"Build model....\");\r\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\r\n .seed(rngSeed) //include a random seed for reproducibility\r\n .optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT) // use stochastic gradient descent as an optimization algorithm\r\n .iterations(1)\r\n .activation(Activation.RELU)\r\n .weightInit(WeightInit.XAVIER)\r\n .learningRate(rate) //specify the learning rate\r\n .updater(Updater.NESTEROVS).momentum(0.98) //specify the rate of change of the learning rate.\r\n .regularization(true).l2(rate * 0.005) // regularize learning model\r\n .list()\r\n .layer(0, new DenseLayer.Builder() //create the first input layer.\r\n .nIn(numRows * numColumns)\r\n .nOut(500)\r\n .build())\r\n .layer(1, new DenseLayer.Builder() //create the second input layer\r\n .nIn(500)\r\n .nOut(100)\r\n .build())\r\n .layer(2, new OutputLayer.Builder(LossFunction.NEGATIVELOGLIKELIHOOD) //create hidden layer\r\n .activation(Activation.SOFTMAX)\r\n .nIn(100)\r\n .nOut(outputNum)\r\n .build())\r\n .pretrain(false).backprop(true) //use backpropagation to adjust weights\r\n .build();\r\n\r\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\r\n model.init();\r\n \r\n model.setListeners(new ScoreIterationListener(5)); //print the score with every iteration\r\n\r\n log.info(\"Train model....\");\r\n for( int i=0; i<numEpochs; i++ ){\r\n \tlog.info(\"Epoch \" + i);\r\n model.fit(mnistTrain);\r\n }\r\n\r\n\r\n log.info(\"Evaluate model....\");\r\n Evaluation eval = new Evaluation(outputNum); //create an evaluation object with 10 possible classes\r\n while(mnistTest.hasNext()){\r\n DataSet next = mnistTest.next();\r\n INDArray output = model.output(next.getFeatureMatrix()); //get the networks prediction\r\n eval.eval(next.getLabels(), output); //check the prediction against the true class\r\n }\r\n\r\n log.info(eval.stats());\r\n log.info(\"****************Example finished********************\");\r\n\t}", "public DigitGuessNeuralNetwork(){\r\n neuralNetwork=NeuralNetwork.load(MainActivity.neuralNetInputStream);\r\n }", "private void createNetwork(int inputNeuronsNum, int outputNeuronsNum,\n\t\tTransferFunctionType transferFunctionType) {\n\n\t\t// init neuron properties\n\t\tNeuronProperties neuronProperties = new NeuronProperties();\n//\t\tneuronProperties.setProperty(\"bias\", new Double(-Math\n//\t\t\t\t.abs(Math.random() - 0.5))); // Hebbian network cann not work\n\t\t// without bias\n\t\tneuronProperties.setProperty(\"transferFunction\", transferFunctionType);\n\t\tneuronProperties.setProperty(\"transferFunction.slope\", new Double(1));\n\n\t\t// set network type code\n\t\tthis.setNetworkType(NeuralNetworkType.UNSUPERVISED_HEBBIAN_NET);\n\n\t\t// createLayer input layer\n\t\tLayer inputLayer = LayerFactory.createLayer(inputNeuronsNum,\n\t\t\tneuronProperties);\n\t\tthis.addLayer(inputLayer);\n\n\t\t// createLayer output layer\n\t\tLayer outputLayer = LayerFactory.createLayer(outputNeuronsNum,\n\t\t\tneuronProperties);\n\t\tthis.addLayer(outputLayer);\n\n\t\t// createLayer full conectivity between input and output layer\n\t\tConnectionFactory.fullConnect(inputLayer, outputLayer);\n\n\t\t// set input and output cells for this network\n\t\tNeuralNetworkFactory.setDefaultIO(this);\n\n\t\t// set appropriate learning rule for this network\n\t\tthis.setLearningRule(new UnsupervisedHebbianLearning(this));\n\t//this.setLearningRule(new OjaLearning(this));\n\t}", "public BackPropagationLearningProcess(NeuralNetwork network) {\r\n\t\tsuper(network);\r\n\t}", "public encogNeuralNet() {\n initComponents();\n this.INPUT_NODES=13;\n this.OUTPUT_NODES=31;\n this.shutDown=false;\n this.savedInstance= new File(\"network.csv\");\n this.network = new BasicNetwork();\n }", "NNImpl(ArrayList<Instance> trainingSet, int hiddenNodeCount, Double learningRate, int maxEpoch, Random random, Double[][] hiddenWeights, Double[][] outputWeights) {\r\n this.trainingSet = trainingSet;\r\n this.learningRate = learningRate;\r\n this.maxEpoch = maxEpoch;\r\n this.random = random;\r\n\r\n //input layer nodes\r\n inputNodes = new ArrayList<>();\r\n int inputNodeCount = trainingSet.get(0).attributes.size();\r\n int outputNodeCount = trainingSet.get(0).classValues.size();\r\n for (int i = 0; i < inputNodeCount; i++) {\r\n Node node = new Node(0);\r\n inputNodes.add(node);\r\n }\r\n\r\n //bias node from input layer to hidden\r\n Node biasToHidden = new Node(1);\r\n inputNodes.add(biasToHidden);\r\n\r\n //hidden layer nodes\r\n hiddenNodes = new ArrayList<>();\r\n for (int i = 0; i < hiddenNodeCount; i++) {\r\n Node node = new Node(2);\r\n //Connecting hidden layer nodes with input layer nodes\r\n for (int j = 0; j < inputNodes.size(); j++) {\r\n NodeWeightPair nwp = new NodeWeightPair(inputNodes.get(j), hiddenWeights[i][j]);\r\n node.parents.add(nwp);\r\n }\r\n hiddenNodes.add(node);\r\n }\r\n\r\n //bias node from hidden layer to output\r\n Node biasToOutput = new Node(3);\r\n hiddenNodes.add(biasToOutput);\r\n\r\n //Output node layer\r\n outputNodes = new ArrayList<>();\r\n for (int i = 0; i < outputNodeCount; i++) {\r\n Node node = new Node(4);\r\n //Connecting output layer nodes with hidden layer nodes\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n NodeWeightPair nwp = new NodeWeightPair(hiddenNodes.get(j), outputWeights[i][j]);\r\n node.parents.add(nwp);\r\n }\r\n outputNodes.add(node);\r\n }\r\n }", "public NNImpl(ArrayList<Instance> trainingSet, int hiddenNodeCount, Double learningRate, int maxEpoch, Double [][]hiddenWeights, Double[] outputWeights)\r\n\t{\r\n\t\tthis.trainingSet=trainingSet;\r\n\t\tthis.learningRate=learningRate;\r\n\t\tthis.maxEpoch=maxEpoch;\r\n\r\n\t\t//input layer nodes\r\n\t\tinputNodes=new ArrayList<Node>();\r\n\t\tint inputNodeCount=trainingSet.get(0).attributes.size();\r\n\t\tint outputNodeCount=1;\r\n\t\tfor(int i=0;i<inputNodeCount;i++)\r\n\t\t{\r\n\t\t\tNode node=new Node(0);\r\n\t\t\tinputNodes.add(node);\r\n\t\t}\r\n\r\n\t\t//bias node from input layer to hidden\r\n\t\tNode biasToHidden=new Node(1);\r\n\t\tinputNodes.add(biasToHidden);\r\n\r\n\t\t//hidden layer nodes\r\n\t\thiddenNodes=new ArrayList<Node> ();\r\n\t\tfor(int i=0;i<hiddenNodeCount;i++)\r\n\t\t{\r\n\t\t\tNode node=new Node(2);\r\n\t\t\t//Connecting hidden layer nodes with input layer nodes\r\n\t\t\tfor(int j=0;j<inputNodes.size();j++)\r\n\t\t\t{\r\n\t\t\t\tNodeWeightPair nwp=new NodeWeightPair(inputNodes.get(j),hiddenWeights[i][j]);\r\n\t\t\t\tnode.parents.add(nwp);\r\n\t\t\t}\r\n\t\t\thiddenNodes.add(node);\r\n\t\t}\r\n\r\n\t\t//bias node from hidden layer to output\r\n\t\tNode biasToOutput=new Node(3);\r\n\t\thiddenNodes.add(biasToOutput);\r\n\r\n\r\n\r\n\t\tNode node=new Node(4);\r\n\t\t//Connecting output node with hidden layer nodes\r\n\t\tfor(int j=0;j<hiddenNodes.size();j++)\r\n\t\t{\r\n\t\t\tNodeWeightPair nwp=new NodeWeightPair(hiddenNodes.get(j), outputWeights[j]);\r\n\t\t\tnode.parents.add(nwp);\r\n\t\t}\t\r\n\t\toutputNode = node;\r\n\r\n\t}", "public abstract NetworkBuilder withLayers(int[] layers);", "public static MultiLayerNetwork alexnetModel(Integer numLabels) {\n\n double nonZeroBias = 1;\n double dropOut = 0.5;\n\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(seed)\n .weightInit(WeightInit.DISTRIBUTION)\n .dist(new NormalDistribution(0.0, 0.01))\n .activation(Activation.RELU)\n .updater(new Nesterovs(new StepSchedule(ScheduleType.ITERATION, 1e-2, 0.1, 100000), 0.9))\n .biasUpdater(new Nesterovs(new StepSchedule(ScheduleType.ITERATION, 2e-2, 0.1, 100000), 0.9))\n .gradientNormalization(GradientNormalization.RenormalizeL2PerLayer) // normalize to prevent vanishing or exploding gradients\n .l2(5 * 1e-4)\n .list()\n .layer(0, convInit(\"cnn1\", channels, 96, new int[]{11, 11}, new int[]{4, 4}, new int[]{3, 3}, 0))\n .layer(1, new LocalResponseNormalization.Builder().name(\"lrn1\").build())\n .layer(2, maxPool(\"maxpool1\", new int[]{3, 3}))\n .layer(3, conv5x5(\"cnn2\", 256, new int[]{1, 1}, new int[]{2, 2}, nonZeroBias))\n .layer(4, new LocalResponseNormalization.Builder().name(\"lrn2\").build())\n .layer(5, maxPool(\"maxpool2\", new int[]{3, 3}))\n .layer(6, conv3x3(\"cnn3\", 384, 0))\n .layer(7, conv3x3(\"cnn4\", 384, nonZeroBias))\n .layer(8, conv3x3(\"cnn5\", 256, nonZeroBias))\n .layer(9, maxPool(\"maxpool3\", new int[]{3, 3}))\n .layer(10, fullyConnected(\"ffn1\", 4096, nonZeroBias, dropOut, new GaussianDistribution(0, 0.005)))\n .layer(11, fullyConnected(\"ffn2\", 4096, nonZeroBias, dropOut, new GaussianDistribution(0, 0.005)))\n .layer(12, new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)\n .name(\"output\")\n .nOut(numLabels)\n .activation(Activation.SOFTMAX)\n .build())\n .backprop(true)\n .pretrain(false)\n .setInputType(InputType.convolutional(height, width, channels))\n .build();\n\n return new MultiLayerNetwork(conf);\n\n }", "public NNImpl(ArrayList<Instance> trainingSet, int hiddenNodeCount, Double learningRate, int maxEpoch, Double [][]hiddenWeights, Double[][] outputWeights)\r\n\t{\r\n\t\tthis.trainingSet=trainingSet;\r\n\t\tthis.learningRate=learningRate;\r\n\t\tthis.maxEpoch=maxEpoch;\r\n\r\n\t\t//input layer nodes\r\n\t\tinputNodes=new ArrayList<Node>();\r\n\t\tint inputNodeCount=trainingSet.get(0).attributes.size();\r\n\t\tint outputNodeCount=trainingSet.get(0).classValues.size();\r\n\t\tfor(int i=0;i<inputNodeCount;i++)\r\n\t\t{\r\n\t\t\tNode node=new Node(0);\r\n\t\t\tinputNodes.add(node);\r\n\t\t}\r\n\r\n\t\t//bias node from input layer to hidden\r\n\t\tNode biasToHidden=new Node(1);\r\n\t\tinputNodes.add(biasToHidden);\r\n\r\n\t\t//hidden layer nodes\r\n\t\thiddenNodes=new ArrayList<Node> ();\r\n\t\tfor(int i=0;i<hiddenNodeCount;i++)\r\n\t\t{\r\n\t\t\tNode node=new Node(2);\r\n\t\t\t//Connecting hidden layer nodes with input layer nodes\r\n\t\t\tfor(int j=0;j<inputNodes.size();j++)\r\n\t\t\t{\r\n\t\t\t\tNodeWeightPair nwp=new NodeWeightPair(inputNodes.get(j),hiddenWeights[i][j]);\r\n\t\t\t\tnode.parents.add(nwp);\r\n\t\t\t}\r\n\t\t\thiddenNodes.add(node);\r\n\t\t}\r\n\r\n\t\t//bias node from hidden layer to output\r\n\t\tNode biasToOutput=new Node(3);\r\n\t\thiddenNodes.add(biasToOutput);\r\n\r\n\t\t//Output node layer\r\n\t\toutputNodes=new ArrayList<Node> ();\r\n\t\tfor(int i=0;i<outputNodeCount;i++)\r\n\t\t{\r\n\t\t\tNode node=new Node(4);\r\n\t\t\t//Connecting output layer nodes with hidden layer nodes\r\n\t\t\tfor(int j=0;j<hiddenNodes.size();j++)\r\n\t\t\t{\r\n\t\t\t\tNodeWeightPair nwp=new NodeWeightPair(hiddenNodes.get(j), outputWeights[i][j]);\r\n\t\t\t\tnode.parents.add(nwp);\r\n\t\t\t}\t\r\n\t\t\toutputNodes.add(node);\r\n\t\t}\t\r\n\t}", "public interface NeuralNetworkFormat extends Format<NeuralNetwork>\n{\n /**\n * @return the connector format provider\n */\n ConnectorFormatProvider getConnectorFormatProvider();\n\n /**\n * @return the layerFormatter\n */\n LayerFormat getLayerFormatter();\n}", "NeuralNetwork mutate(float rate);", "public static void main(String[] args) {\n\t\t\n\t\tNeuralNet n = new NeuralNet(0, NeuralNet.BINARY_NEURON);\t// neural net with 0 hidden layers using Binary Neurons \n\t\tfloat[] inputs = {1, 0};\n\t\tn.addInputLayer(inputs);\t// add the inputs to the neural net model\n\t\t\n\t\tn.addOutputLayer(1);\t\t// add one output in the output layer\n\t\tn.createConnections(1);\t\t// default connections with weights of 1\n\t\tn.connectInputs(1);\t\t\t// connect inputs to 1st layer using weights of 1\n\t\tn.connectOutputs(1);\t\t// connect last (hidden) layer to output layer using weights of 1\n\t\t\n\t\t\n\t\tJFrame frame = new JFrame(\"Neural Net\");\n\t\tframe.setSize(600, 480);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tNeuralNetPanel np = new NeuralNetPanel(n);\n\t\tframe.add(np);\n\t\tframe.setVisible(true);\n\n\t\t((BinaryNeuron)(n.getLayer(1).get(1))).setThreshold(0.9f);\t// OR gate\n\t\t//((BinaryNeuron)(n.getLayer(1).get(0))).setThreshold(1.5f);\t// AND gate\n\t\t\n\t\tn.forwardPropagate();\n\t\tnp.repaint();\n\n\t}", "public FeedForwardNeuralNetwork mutate(FeedForwardNeuralNetwork net)\n\t{\n // Copies the net\n FeedForwardNeuralNetwork newNetwork = new FeedForwardNeuralNetwork(net);\n newNetwork.setWeightVector((Vector<Double>)net.getWeightVector().clone());\n\n Vector<Double> newWeights = new Vector<Double>();\n\t\tRandom gen = new Random();\n int mc = gen.nextInt(100), slSize;\n\n if (mc <= 10) { // all the weights in the network\n for(SynapseLayer sl: newNetwork.synapse_layers) {\n slSize = sl.getWeightVector().size() / 20;\n for (Double weight: sl.getWeightVector())\n newWeights.add(weight + gen.nextGaussian()*Math.sqrt(slSize));\n }\n newNetwork.setWeightVector(newWeights);\n }\n else if (mc <= 37) { // all the weights in a randomly selected layer\n SynapseLayer sl = newNetwork.synapse_layers.get(gen.nextInt(newNetwork.synapse_layers.size()));\n for (Double weight: sl.getWeightVector())\n newWeights.add(weight + gen.nextGaussian() * Math.sqrt(sl.getWeightVector().size()/20));\n sl.setWeightVector(newWeights);\n }\n else if (mc <= 64) { // all the weights going into a randomly selecte layer, i can't tell the difference between this and the last one\n SynapseLayer sl = newNetwork.synapse_layers.get(gen.nextInt(newNetwork.synapse_layers.size()));\n for (Double weight: sl.getWeightVector())\n newWeights.add(weight + gen.nextGaussian() * Math.sqrt(sl.getWeightVector().size()/20));\n sl.setWeightVector(newWeights);\n }\n else {\n newWeights = newNetwork.getWeightVector();\n int rInd = gen.nextInt(newWeights.size());\n newWeights.set(rInd, newWeights.get(rInd) + Math.sqrt(gen.nextGaussian()*14));\n newNetwork.setWeightVector(newWeights);\n }\n\t\treturn newNetwork;\n\t}", "public interface NeatFitness {\n\n\tpublic double calculate(Network network);\n\t\n}", "public NeuralNetwork(int inputs, int layer1, int layer2, int layer3, int outputs) {\r\n this.input = inputs;\r\n this.layer1 = layer1;\r\n this.layer2 = layer2;\r\n this.layer3 = layer3;\r\n this.output = outputs;\r\n }", "public Neuron(Network network, int numberOfInputs, int layerNumber, boolean enableConstAddend) {\n this.network = network;\n this.inputSum = 0.0;\n this.output = 0.0;\n this.delta = 0.0;\n this.inputs = numberOfInputs;\n this.layer = layerNumber;\n this.enableConstAddend = enableConstAddend;\n this.weights = new double[numberOfInputs + 1];\n this.exWeights = new double[numberOfInputs + 1];\n this.changes = new double[numberOfInputs + 1];\n\n setNewWeights(false);\n }", "public interface CommonInterface {\n\n\t/* FEED FORWARD\n\t * The input vector. An array of doubles.\n * @return The value returned by the LUT or NN for this input vector\n\t * \tX the input vector. An array of doubles.\n\t * The value return by LUT OR NN for this input vector\n\t * returns output of the neurons forward propagation\n\t * */\n\tpublic double outputFor(double [] X);\n\n\t/* \n\t * Method will tell NN or LUT the output value that should be mapped \n\t * to given input vector i.e. the desired correct output value for an input\n\t * @param X the input vector\n\t * @param argValue The new value to learn\n\t * @return the error in output for input vector \n\t */\n\tpublic double train(double[] X, double argValue);\n\t/*\n\t * Method to write either a LUT or weights of neural net to a file\n\t * @param argFile of type File\n\t */\n\tpublic void save (File argFile) throws IOException;\n\t/*\n\t * Loads LUT or NN weights from file. Load must of course have \n\t * knowledge of how data was written out by save mehtod.\n\t * Should raise an error in case that attempt is being made\n\t * to load data into an LUT or NN whose struct does not match the data in\n\t * the file (.eg. wrong number of hidden neurons)\n\t */\n\tpublic void load (String argFileName) throws IOException;\n}", "public NeurualNetWork(\n int argNumInputs,\n int argNumHidden,\n int argNumOutput,\n double argLearningRate,\n double argMomentumTerm,\n double argA,\n double argB ){\n\n // add one for bias\n this.mNumInputs = argNumInputs + 1;\n //TODO: different: add one for bias\n this.mNumHidden = argNumHidden + 1;\n this.mNumOutputs = argNumOutput;\n this.mLearningRate = argLearningRate;\n this.mMomentumTerm = argMomentumTerm;\n this.mArgA = argA;\n this.mArgB = argB;\n\n zeroWeights();\n //Comment: It's a bad way to use three dimension to store NN, since input, hidden, output don't have same length\n }", "@Override\n\tpublic void ConstructNetwork() {\n\t\t\n\t\tAddUnit add_r_t=new AddUnit();\n\t\tUnitIterator ui=new UnitIterator();\n\t\tui.unit=add_r_t;\n\n\t\tnetwork=new UnitList();\n\t\tnetwork.unitList.add(ui);\n\t\tnetwork.unitList.add(new AddUnit());\n\t\t\t\n\t}", "protected BackpropNeuron createNeuron(int layer, int index)\n\t{\n\t\tif( layer == 0 )\n\t\t\treturn new InputBackpropNeuron(this, this.activationFunction, this.learningRate);\n\t\telse if(layer >= (this.getLayerCount() - 1))\n\t\t\treturn new OutputBackpropNeuron(this, this.activationFunction, this.learningRate);\n\t\telse\n\t\t\treturn new BackpropNeuron(this, this.activationFunction, this.learningRate);\n\t}", "public Network () {\n buildNetwork();\n }", "public static void main(String[] args) throws Exception {\n final int numRows = 28;\n final int numColumns = 28;\n int outputNum = 10; // number of output classes\n int batchSize = 128; // batch size for each epoch\n int rngSeed = 123; // random number seed for reproducibility\n int numEpochs = 15; // number of epochs to perform\n String modelPath = \"モデルパスを入力\";\n\n //Get the DataSetIterators:\n DataSetIterator mnistTrain = new MnistDataSetIterator(batchSize, true, rngSeed);\n DataSetIterator mnistTest = new MnistDataSetIterator(batchSize, false, rngSeed);\n\n\n System.out.println(\"Build model....\");\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(rngSeed) //include a random seed for reproducibility\n // use stochastic gradient descent as an optimization algorithm\n .updater(new Nesterovs(0.006, 0.9))\n .l2(1e-4)\n .list()\n .layer(new DenseLayer.Builder() //create the first, input layer with xavier initialization\n .nIn(numRows * numColumns)\n .nOut(1000)\n .activation(Activation.RELU)\n .weightInit(WeightInit.XAVIER)\n .build())\n .layer(new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD) //create hidden layer\n .nIn(1000)\n .nOut(outputNum)\n .activation(Activation.SOFTMAX)\n .weightInit(WeightInit.XAVIER)\n .build())\n .build();\n\n\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\n model.init();\n //print the score with every 1 iteration\n UIServer uiServer = UIServer.getInstance();\n InMemoryStatsStorage statsStorage = new InMemoryStatsStorage();\n uiServer.attach(statsStorage);\n model.setListeners(new StatsListener(statsStorage),new ScoreIterationListener(1));\n\n System.out.println(\"Train model....\");\n model.fit(mnistTrain, numEpochs);\n\n\n\n\n System.out.println(\"Evaluate model....\");\n Evaluation eval = model.evaluate(mnistTest);\n System.out.println(eval.stats());\n ModelSerializer.writeModel(model, new File(modelPath), false);\n System.out.println(\"****************Example finished********************\");\n\n }", "public void buildNetwork() {\n \t\tnetwork.finalizeStructure();\n \t}", "private void displayNeuralNetwork() {\n \n float[] inputSignals = this.task.getInputSignalsVector();\n \n float positiveState = network.getNeuralLayer().getNeuron(0).getState(inputSignals);\n float negativeState = network.getNeuralLayer().getNeuron(1).getState(inputSignals);\n \n this.neuralLayerPanel.displayNeuralLayer(network.getNeuralLayer().getNeuron(0).getWeightsVector(),\n positiveState,\n network.getNeuralLayer().getNeuron(1).getWeightsVector(),\n negativeState); \n \n String answer = \"not your color\";\n if (positiveState > negativeState) {\n answer = \"your color\";\n }\n this.answerLabel.setText(answer);\n \n }", "@Link Network network();", "public NeuralNetwork(double learningRate, int[] topology) {\n this.learningRate = learningRate;\n int layerCount = topology.length;\n this.weights = new ArrayList<double[][]>();\n\n // Iterating over layers, skipping the input layer\n for (int i = 0; i < layerCount - 1; i++) {\n int previousLayerNeuronCount = topology[i];\n int layerNeuronCount = topology[i + 1];\n\n // This effectively sets index i\n double[][] layerWeights = new double[layerNeuronCount][previousLayerNeuronCount];\n\n // Iterating over nodes in this layer\n for (int j = 0; j < layerNeuronCount; j++) {\n for (int k = 0; k < previousLayerNeuronCount; k++) {\n layerWeights[j][k] = Math.random() * 2 - 1;\n }\n }\n\n this.weights.add(layerWeights);\n }\n }", "public Layer(int numNeurons, int inputsPerNeuron) {\n\n this.numNeurons = numNeurons;\n\n neurons = new Neuron[numNeurons];\n for (int i = 0; i < numNeurons; i++) {\n neurons[i] = new Neuron(inputsPerNeuron);\n }\n }", "public NeuralNetwork createDefaultNet(InputProvider inputProvider) {\r\n\t\tNeuralNetwork net = new NeuralNetwork();\r\n\t\tInputLayer inputLayer = layerFactory.createDefaultInputLayer(inputProvider);\r\n\t\tcreateAndConnectLayers(inputLayer, 2, inputProvider);\r\n\t\tnet.setInputLayer(inputLayer);\r\n\t\treturn net;\r\n\t}", "public LinearNeuron(int inputs)\n\t{\n\t\tsuper(inputs);\n\t}", "public NeuralNetwork( int neuronsPerLayer[] ) {\n\t\tif (neuronsPerLayer.length < 2)\n\t\t\tthrow new InvalidParameterException(\"Invalid number of layers\");\n\t\t\n\t\tfor (int i=0;i<neuronsPerLayer.length;i++)\n\t\t\tif (neuronsPerLayer[i] < 1)\n\t\t\t\tthrow new InvalidParameterException(\"Invalid number of neurons at layer \"+i);\n\t\t\n\t\t// Put initialization code here \n\t\t// (a) initialize data structures as dictated by neuronsPerLayer array\n\t\t// (b) randomize initial weights, if necessary\n }", "public Neuron(int l, double b){\r\n\t\tbias=b;\r\n\t\t\r\n\t\tif(l==1)//Make all Brain.INPUTS an Input for a first layer Neuron\r\n\t\t\tfor(int n=0; n<Brain.INPUTS; n++)\r\n\t\t\t\tinputs.add(1);\r\n\t\telse for(int n=0; n<Brain.NEURONSPERLAYER; n++) //Randomly choose to make each Neuron in the previous Layer an Input\r\n\t\t\t\tif(Math.random()>=0.5)\r\n\t\t\t\t\tinputs.add(1);\r\n\t\t\t\telse inputs.add(0);\r\n\t\tif(!inputs.contains(1)) //If no inputs were chosen, randomly select one Neuron from the previous Layer as an Input\r\n\t\t\tinputs.set((int)Math.random()*Brain.NEURONSPERLAYER, 1);\r\n\t\t\r\n\t\tweights= new double[inputs.size()]; //Create an array with a randomly 1 generated weight between -5 and 5 for each Input \r\n\t\tfor(int i=0; i<inputs.size(); i++)\r\n\t\t\tweights[i]=Math.random()*10-5;\r\n\t\t\r\n\t}", "public NeuralNet(int[] sizes) {\n _layers = new double[sizes.length][];\n for (int i = 0; i < sizes.length; i++) {\n _layers[i] = new double[sizes[i]];\n }\n\n _weights = new double[sizes.length-1][][];\n _biases = new double[sizes.length - 1][];\n for (int i = 0; i < sizes.length-1; i++) {\n _weights[i] = new double[sizes[i+1]][];\n _biases[i] = new double[sizes[i+1]];\n for (int j = 0; j < sizes[i+1]; j++) {\n _weights[i][j] = new double[sizes[i]];\n }\n }\n }", "public void train() {\r\n // For each epoch, call setInputValue on input nodes\r\n for (int i = 0; i < maxEpoch; i++) {\r\n Collections.shuffle(trainingSet, random);\r\n\r\n // get each training instance\r\n for (int k = 0; k < trainingSet.size(); k++) {\r\n\r\n Instance instance = trainingSet.get(k);\r\n\r\n // set the input value in the input nodes from the training instance\r\n for (int j = 0; j < instance.attributes.size(); j++) {\r\n inputNodes.get(j).setInput(instance.attributes.get(j));\r\n }\r\n\r\n //set the target value in output nodes\r\n for (int j = 0; j < instance.classValues.size(); j++) {\r\n outputNodes.get(j).setTargetValue((double) instance.classValues.get(j));\r\n }\r\n\r\n // calculate values for hidden nodes\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n // for each hidden node\r\n Node hiddenNode = hiddenNodes.get(j);\r\n hiddenNode.calculateOutput();\r\n }\r\n\r\n //calculate values for output nodes\r\n double sumOfExponents = 0.0;\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n // for each output node\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.calculateOutput();\r\n sumOfExponents += outputNode.getOutput();\r\n }\r\n\r\n //update output values of output nodes\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.updateOutputValue(sumOfExponents);\r\n }\r\n\r\n // calculate delta values for output nodes\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.calculateDelta();\r\n }\r\n\r\n // calculate delta values for hidden nodes\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n Node hiddenNode = hiddenNodes.get(j);\r\n hiddenNode.calculateDelta();\r\n hiddenNode.resetSumOfPartialDelta();\r\n }\r\n\r\n // update weights going from input layer to hidden layer\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n Node hiddenNode = hiddenNodes.get(j);\r\n hiddenNode.updateWeight(learningRate);\r\n }\r\n\r\n // update weights going from hidden layer to output layer\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.updateWeight(learningRate);\r\n }\r\n\r\n /*if (k == 0 && i==0) {\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n for (NodeWeightPair pair : outputNode.parents) {\r\n System.out.println(pair.weight);\r\n }\r\n }\r\n }\r\n\r\n if (k == 0 && i == 0) {\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n Node hiddenNode = hiddenNodes.get(j);\r\n if (hiddenNode.parents != null) {\r\n for (NodeWeightPair pair : hiddenNode.parents) {\r\n System.out.println(pair.weight);\r\n }\r\n }\r\n }\r\n }*/\r\n }\r\n\r\n /* if (i==29) {\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n for (NodeWeightPair pair : outputNode.parents) {\r\n System.out.println(pair.weight);\r\n }\r\n }\r\n }*/\r\n\r\n double totalLoss = 0.0;\r\n // Calculate loss and sum for each training instance, and then take average\r\n for (int k = 0; k < trainingSet.size(); k++) {\r\n Instance instance = trainingSet.get(k);\r\n totalLoss += loss(instance);\r\n }\r\n totalLoss /= trainingSet.size();\r\n System.out.println(\"Epoch: \" + i + \", \" + \"Loss: \" + String.format(\"%.3e\", totalLoss));\r\n }\r\n }", "public void trainNet() {\t\t\n\t\t// Synapses contain the weights for each layer, these are randomised to begin with\n\t\tsynapse0 = new double[X[0].length][hiddenNeurons];\n\t\tpopulateRandom(synapse0, minRandomWeight, maxRandomWeight);\n\t\t\n\t\tsynapse1 = new double[hiddenNeurons][y[0].length];\n\t\tpopulateRandom(synapse1, minRandomWeight, maxRandomWeight);\n\t\t\n\t\t// The layers are the output values of each layer.\n\t\t// They are initialised to nothing to begin with, created properly in the training loop\n\t\tlayer1 = new double[0][0];\n\t\tlayer2 = new double[0][0];\n\t\t\n\t\t// Printing the initial state of the system\n\t\tm.printMatrix(\"X:\", X);\n\t\tm.printMatrix(\"y:\", y);\n\t\t\n\t\t// The training loop\n\t\tfor (int i = 0; i < trainingCycles; i++) {\n\t\t\t// calculate the values of each layer given the inputs and the weights\n\t\t\tlayer1 = forwardPropogate(X, synapse0);\n\t\t\tlayer2 = forwardPropogate(layer1, synapse1);\n\t\t\t\n\t\t\t// Calculate the delta error for each output layer, starting\n\t\t\t// with the bottom working up.\n\t\t\t// This is the difference between the expected values and actual values\n\t\t\t// times the derivative (gradient) of the sigmoid activation function\n\t\t\t// The 1st error comes from y - output\n\t\t\tdouble[][] layer2Delta = m.subtract(y, layer2);\n\t\t\tlayer2Delta = delta(layer2Delta, layer2);\n\t\t\t// subsequent layers come from the delta of the lower layer divided by the weights\n\t\t\tdouble[][] layer1Delta = m.dot(layer2Delta, m.t(synapse1));\n\t\t\tlayer1Delta = delta(layer1Delta, layer1);\n\t\t\t\n\t\t\t// Apply the error gradients to each weight, this moves the value closer to the expected\n\t\t\t// or reduces the error\n\t\t\tsynapse1 = m.add(synapse1, m.scale(m.dot(m.t(layer1), layer2Delta), trainingRate));\n\t\t\tsynapse0 = m.add(synapse0, m.scale(m.dot(m.t(X), layer1Delta), trainingRate));\n\t\t}\n\t\t// Run the input matrix through the net to get outputs for each training value on layer 2\n\t\tdouble[][] testNet = runData(X);\n\t\t// Show the results\n\t\tm.printMatrix(\"Output for X after training:\", testNet);\n\t\tm.printMatrixInts(\"Output for X after training (out of 100:\", testNet);\n\t}", "public FFANNAdaptiveBackPropagationJSP()\n\t{\n\t\t//run(network, numberInputNeurons, numberHiddenNeurons, numberOutputNeurons, trainingSet);\n\t}", "public NeuralNet(Genome genome)\n {\n genome_ = genome;\n nodesInLayer_ = genome_.getNodesInLayer();\n clearNodeValues();\n }", "public interface OnlineStructuredAlgorithm extends StructuredAlgorithm {\n\n\t/**\n\t * Strategy to update the learning rate.\n\t * \n\t * @author eraldof\n\t * \n\t */\n\tpublic enum LearnRateUpdateStrategy {\n\t\t/**\n\t\t * No update, i.e., constant learning rate.\n\t\t */\n\t\tNONE,\n\n\t\t/**\n\t\t * The learning rate is equal to n/t, where n is the initial learning\n\t\t * rate and t is the current iteration (number of processed examples).\n\t\t */\n\t\tLINEAR,\n\n\t\t/**\n\t\t * The learning rate is equal to n/(t*t), where n is the initial\n\t\t * learning rate and t is the current iteration (number of processed\n\t\t * examples).\n\t\t */\n\t\tQUADRATIC,\n\n\t\t/**\n\t\t * The learning rate is equal to n/(sqrt(t)), where n is the initial\n\t\t * learning rate and t is the current iteration (number of processed\n\t\t * examples).\n\t\t */\n\t\tSQUARE_ROOT\n\t}\n\n\t/**\n\t * Update the currect model using the given correct output and the predicted\n\t * output for this example. Attention: the given <code>predicted</code> is\n\t * only a placeholder to store the predicted structure, i.e., the prediction\n\t * will be done inside this method.\n\t * \n\t * @param input\n\t * the input structure.\n\t * @param output\n\t * the correct output structured.\n\t * @param predicted\n\t * a place holder for the predicted structured.\n\t * @return the loss function value for the given correct output and the\n\t * predicted output using the current weight vector (before the\n\t * possible update generated by the given example).\n\t */\n\tpublic double train(ExampleInput input, ExampleOutput output,\n\t\t\tExampleOutput predicted);\n\n\t/**\n\t * Set the learning rate.\n\t * \n\t * @param rate\n\t */\n\tpublic void setLearningRate(double rate);\n\n\t/**\n\t * Return the current iteration.\n\t * \n\t * @return\n\t */\n\tpublic int getIteration();\n\n}", "public Trainer(double[][] data, double[] attribute, int hiddenLayerNodeCount, int outputLayerNodeCount){\r\n this.data = data;\r\n this.attribute = attribute;\r\n hiddenLayer = new Node[hiddenLayerNodeCount];\r\n outputLayer = new Node[outputLayerNodeCount];\r\n activation = new double[hiddenLayerNodeCount];\r\n desireHiddenLayerActivation = new double[hiddenLayerNodeCount];\r\n for (int i = 0; i < hiddenLayerNodeCount; i++) {\r\n hiddenLayer[i] = new Node(0.5, data[0].length - 1);\r\n }\r\n for (int i = 0; i < outputLayerNodeCount; i++) {\r\n outputLayer[i] = new Node(0.5, activation.length);\r\n }\r\n }", "Neuron setName(String name);", "private void createHiddenLayer() {\r\n\t\tint layers = 1;\r\n\t\t\r\n\t\tint hiddenLayerSize = 0; \r\n\t\tint prevLayerSize = numAttributes;\r\n\t\t\r\n\t\tfor (int layer = 0; layer < layers; layer++) {\r\n\t\t\thiddenLayerSize = (numAttributes + numClasses) / 2;\r\n\t\t\t\r\n\t\t\tfor (int nob = 0; nob < hiddenLayerSize; nob++) {\r\n\t\t\t\tInnerNode temp = new InnerNode(String.valueOf(nextId), random);\r\n\t\t\t\tnextId++;\r\n\t\t\t\taddNode(temp);\r\n\t\t\t\tif (layer > 0) {\r\n\t\t\t\t\t// then do connections\r\n\t\t\t\t\tfor (int noc = innerNodes.size() - nob - 1 - prevLayerSize; noc < innerNodes.size() - nob - 1; noc++) {\r\n\t\t\t\t\t\tNeuralNode.connect(innerNodes.get(noc), temp);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tprevLayerSize = hiddenLayerSize;\r\n\t\t}\r\n\r\n\t\tif (hiddenLayerSize == 0) {\r\n\t\t\tfor (InputNode input : inputs) {\r\n\t\t\t\tfor (NeuralNode node : innerNodes) {\r\n\t\t\t\t\tNeuralNode.connect(input, node);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tfor (NeuralNode input : inputs) {\r\n\t\t\t\tfor (int nob = numClasses; nob < numClasses + hiddenLayerSize; nob++) {\r\n\t\t\t\t\tNeuralNode.connect(input, innerNodes.get(nob));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int noa = innerNodes.size() - prevLayerSize; noa < innerNodes.size(); noa++) {\r\n\t\t\t\tfor (int nob = 0; nob < numClasses; nob++) {\r\n\t\t\t\t\tNeuralNode.connect(innerNodes.get(noa), innerNodes.get(nob));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private void printNetworks() {\n// for (GeneticNeuralNetwork network : networks)\n// System.out.println(network);\n// System.out.println(\"----------***----------\");\n// ////\n }", "public interface NeuralBiasNodeInterface extends NeuralNodeInterface{\n\t/**\n\t * TODO\n\t */\n\t\n\t/**\n\t * UnsupportedOperationException linkFrom\n\t */\n}", "public ElmanNeuralNetwork(Neuron output, List<Neuron> inputLayer, List<List<Neuron>> hiddenLayers, DoubleUnaryOperator activationFunction) {\n\t\tsuper(output, inputLayer, hiddenLayers, activationFunction);\n\t}", "public UnsupervisedHebbianNetwork(int inputNeuronsNum, int outputNeuronsNum) {\n\t\tthis.createNetwork(inputNeuronsNum, outputNeuronsNum,\n\t\t\tTransferFunctionType.LINEAR);\n\n\t}", "public Network.Builder addNetworksBuilder() {\n return getNetworksFieldBuilder().addBuilder(Network.getDefaultInstance());\n }", "@Override\n\tpublic void train(DataSet data) {\n\t\tArrayList<Example> examples = data.getCopyWithBias().getData();\n\t\t// initialize both weight vectors with random values between -0.1 ad 0.1\n\t\tinitWeights(examples.size());\n\n\t\t// store outputs from forward calculation for each example\n\t\t// array will have size # examples.\n\t\tArrayList<Double> nodeOutputs = calculateForward(examples);\n\n\t\t// now take error and back-propagate from output to hidden nodes\n\n\t\tfor (int j = 0; j < examples.size(); j++) {\n\t\t\tExample ex = examples.get(j);\n\n\t\t\t// get hidden node outputs for single example\n\t\t\tfor (int num = 0; num < numHidden; num++) {\n\t\t\t\tArrayList<Double> h_outputs = hiddenOutputs.get(num);\n\t\t\t\tdouble vDotH = dotProduct(h_outputs, layerTwoWeights); // calculate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// v dot\n\t\t\t\t// h for\n\t\t\t\t// this node\n\n\t\t\t\tfor (int i = 0; i < numHidden - 1; i++) {\n\t\t\t\t\tdouble oldV = layerTwoWeights.get(i);\n\t\t\t\t\tdouble hk = h_outputs.get(i);\n\t\t\t\t\t// Equation describing line below:\n\t\t\t\t\t// v_k = v_k + eta*h_k(y-f(v dot h)) f'(v dot h)\n\t\t\t\t\tlayerTwoWeights.set(i, oldV + eta * hk * (ex.getLabel() - Math.tanh(vDotH)) * derivative(vDotH));\n\t\t\t\t}\n\n\t\t\t\tSet<Integer> features = ex.getFeatureSet();\n\t\t\t\tIterator<Integer> iter = features.iterator();\n\t\t\t\tArrayList<Double> featureVals = new ArrayList<Double>();\n\t\t\t\tfor (int f : features) {\n\t\t\t\t\tfeatureVals.add((double) f);\n\t\t\t\t}\n\n\t\t\t\t// take that error and back-propagate one more time\n\t\t\t\tfor (int x = 0; x < numHidden; x++) {\n\t\t\t\t\tArrayList<Double> initWeights = hiddenWeights.get(x);\n\t\t\t\t\t// List<Object> features =\n\t\t\t\t\t// Arrays.asList(ex.getFeatureSet().toArray());\n\n\t\t\t\t\t// for (int i = 0; i < featureVals.size()-1; i++) {\n\t\t\t\t\tdouble oldWeight = initWeights.get(j);\n\t\t\t\t\tdouble thisInput = ex.getFeature(featureVals.get(x).intValue());\n\t\t\t\t\t// w_kj = w_kj + eta*xj(input)*f'(w_k dot x)*v_k*f'(v dot\n\t\t\t\t\t// h)(y-f(v dot h))\n\t\t\t\t\tdouble updateWeight = oldWeight + eta * thisInput * derivative(dotProduct(featureVals, initWeights))\n\t\t\t\t\t\t\t* layerTwoWeights.get(x) * derivative(vDotH) * (ex.getLabel() - Math.tanh(vDotH));\n\t\t\t\t\tinitWeights.set(j, updateWeight);\n\t\t\t\t\t// }\n\t\t\t\t\thiddenWeights.set(x, initWeights); // update weights for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// current\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// example\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "private void createBrain() {\n\t\t\n\t\tMSimulationConfig simConfig;\n\n\t\t//How many input and output nodes to create in the agents brain\n\t\tint inputNodes = configNumSegments*3;\n\t\tint outputNodes = 3;\n\n\t\t//Create a CPPNFactory. Feed the factory a series of CPPN and after all chromosomes have been read in, it can return a fully formed brain.\n\t\tCPPNFactory cFactory = new CPPNFactory(inputNodes,outputNodes);\n\n\t\t/* Get a reference to the agent's chromosome. */\n\t\tChromosome chromosome = (Chromosome)geneticObject;\n\n\t\t// \t/**\n\t\t// \t * Each 'chromosome' the agent contains is an instance of the genome class.\n\t\t// \t * \n\t\t// \t * Each chromosome contains multiple types of genes that can contain the following information to build the CPPN:\n\t\t// \t * 1: A sort of 'header' gene that says how many neurons will be in this layer of the brain\n\t\t// \t * 2: Add nodes to the buildSyanpse CPPN, so this will need to include a 'type' integer, to designate the kind of function\n\t\t// \t * \t\tthat this node will use. 3 Parameter integers, which will be used to augment the function so that\n\t\t// \t * \t\teach node has a higher degree of possible diversity.\n\t\t// \t * \t\tThere are 4 different 'types' of nodes, which correspond to 0: Parabola, 1: Sigmoid, 2: Gauss, 3: Sin.\n\t\t// \t * 3: Add nodes to the buildNeurons CPPN, this should be built just like the buildSynapseCPPN. There will probably need to\n\t\t// \t * \t\tbe some field in the gene that lets this part of the code distinguish between genes for the buildNeuronCPPN and the\n\t\t// \t * \t\tbuildSyanpse CPPNs.\n\t\t// \t * \n\t\t// \t * Some additional notes:\n\t\t// \t * 1: The first two nodes in any CPPN arrayList of nodes will always be the input nodes for that network.\n\t\t// \t * 2: The last node in the CPPN arrayList of nodes will always be the output node for that network.\n\t\t// \t */\n\n\t\t// \t/**\n\t\t// \t * ##############\n\t\t// \t * CREATE CPPN HERE ###############################\n\t\t// \t * ##############\n\t\t// \t */\n\n\t\t//Once all the CPPN's have been input to the cFactory, the brain will be finished and it can be pulled out.\n\t\t// mnetwork = cFactory.getBrain();\n\t\tmnetwork = cFactory.createNetworkFromChromosome(chromosome, 8);\n\t\t\n\t\t/* Create and set the simulation configuration parameters. */\n\t\tsimConfig = new MSimulationConfig(20);\n\t\t\n\t\t/* Create the simulation instance with our network. */\n\t\tthis.msimulation = new MSimulation(this.mnetwork, simConfig);\n\t}", "public Builder addNetworks(Network.Builder builderForValue) {\n if (networksBuilder_ == null) {\n ensureNetworksIsMutable();\n networks_.add(builderForValue.build());\n onChanged();\n } else {\n networksBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "public BackPropagationNeural_3H(int size_in,int size_hidden1,int size_hidden2,int size_hidden3,int size_output){\n\t\tthis.size_in = size_in;\n\t\tthis.size_hidden1 = size_hidden1;\n\t\tthis.size_hidden2 = size_hidden2;\n\t\tthis.size_hidden3 = size_hidden3;\n\t\tthis.size_output = size_output;\n\t\t\n\t\tinputs = new float[size_in];\n\t\thidden1 = new float[size_hidden1];\n\t\thidden2 = new float[size_hidden2];\n\t\thidden3 = new float[size_hidden3];\n\t\toutput = new float[size_output];\n\t\t\n\t\tweight1 = new float[size_in][size_hidden1];\n\t\tweight2 = new float[size_hidden1][size_hidden2];\n\t\tweight3 = new float[size_hidden2][size_hidden3];\n\t\tweight4 = new float[size_hidden3][size_output];\n\t\t\n\t\tW1_last_delta = new float[size_in][size_hidden1];\n W2_last_delta = new float[size_hidden1][size_hidden2];\n W3_last_delta = new float[size_hidden2][size_hidden3];\n W4_last_delta = new float[size_hidden3][size_output];\n \n\t\trandomizeWeights();\n\t\toutput_error = new float[size_output];\n\t\thidden1_error = new float[size_hidden1];\n\t\thidden2_error = new float[size_hidden2];\n\t\thidden3_error = new float[size_hidden3];\n\t}", "private Node createAddNetwork(String name, double v1, double v2) {\n Node number1 = numberNode.extend()\n .withName(\"number1\")\n .withInputValue(\"number\", v1);\n Node number2 = numberNode.extend()\n .withName(\"number2\")\n .withInputValue(\"number\", v2);\n return Node.NETWORK\n .withName(name)\n .withChildAdded(number1)\n .withChildAdded(number2)\n .withChildAdded(addNode)\n .withRenderedChild(addNode)\n .connect(\"number1\", \"add\", \"v1\")\n .connect(\"number2\", \"add\", \"v2\");\n }", "public void generatingNetwork(String path, int maxIterations, double learningRate, double maxError) {\n neuroNetwork = new MultiLayerPerceptron(TransferFunctionType.SIGMOID, ENTRYNODES, INTERMEDIATENODES, OUTPUTNODES);\n // create DataSet\n dataset = DataSet.createFromFile(path, ENTRYNODES, OUTPUTNODES, \" \", true);\n\n //Normalizing data\n MaxMinNormalizer normalizing = new MaxMinNormalizer();\n normalizing.normalize(dataset);\n\n //Implementing Learning Rule\n learningRule = new BackPropagation();\n learningRule.setNeuralNetwork(neuroNetwork);\n learningRule.setLearningRate(learningRate);\n learningRule.setMaxError(maxError);\n learningRule.setMaxIterations(maxIterations);\n\n SubSampling samples = new SubSampling(TRAINPERCENTAGE, 100 - TRAINPERCENTAGE);\n List<DataSet> dataSets = samples.sample(dataset);\n dataTraining = dataSets.get(0);\n dataTest = dataSets.get(1);\n\n neuroNetwork.learn(dataTraining, learningRule);\n String[] name = path.split(\"_\");\n File finalFile = new File(\"Expressions\\\\Final_\" + name[1]);\n this.Finalfile = finalFile;\n if (!finalFile.exists()) {\n try {\n finalFile.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n int i = 0;\n double error;\n double diff = 0.0;\n\n FileOutputStream fos = null;\n try {\n fos = new FileOutputStream(finalFile, true);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n BufferedWriter line = new BufferedWriter(new OutputStreamWriter(fos));\n\n for (DataSetRow dataRow : this.dataTraining.getRows()) {\n neuroNetwork.setInput(dataRow.getInput());\n neuroNetwork.calculate();\n double[] networkOutput = neuroNetwork.getOutput();\n double[] networkDesiredOutput = dataRow.getDesiredOutput();\n diff += Math.pow(networkOutput[0] - networkDesiredOutput[0], 2);\n\n\n i++;\n }\n error = diff / i;\n try {\n line.write(\"Train error: \" + error);\n line.newLine();\n line.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }", "public interface TimeNetwork extends Network{\r\n \r\n /**\r\n * Call this method in order to let the network known when you start the computation\r\n */\r\n public void startCompute();\r\n \r\n /**\r\n * Call this method in order to let the network known when you stop the computation\r\n */\r\n public void endCompute();\r\n}", "public void train()\r\n\t{\r\n\t\tfor(int i=0; i < this.maxEpoch; i++)\r\n\t\t{\r\n\t\t\tfor(Instance temp_example: this.trainingSet)\r\n\t\t\t{\r\n\t\t\t\tdouble O = calculateOutputForInstance(temp_example);\r\n\t\t\t\tdouble T = temp_example.output;\r\n\t\t\t\tdouble err = T - O;\r\n\r\n\t\t\t\t//w_jk (hidden to output)\r\n\t\t\t\tdouble g_p_out = (outputNode.getSum() <= 0) ? 0 : 1;\r\n\t\t\t\tfor(NodeWeightPair hiddenNode: outputNode.parents)\r\n\t\t\t\t{\r\n\t\t\t\t\thiddenNode.set_deltaw_pq(this.learningRate*\r\n\t\t\t\t\t\t\thiddenNode.node.getOutput()*err*g_p_out);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//w_ij (input to hidden)\r\n\t\t\t\tint hid_count =0;\r\n\t\t\t\tfor(Node hiddenNode: hiddenNodes){\r\n\t\t\t\t\tdouble g_p_hid = (hiddenNode.getSum() <= 0) ? 0 : 1;\r\n\t\t\t\t\tif(hiddenNode.getType()==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor(NodeWeightPair inputNode: hiddenNode.parents){\r\n\t\t\t\t\t\t\tdouble a_i = inputNode.node.getOutput();\r\n\t\t\t\t\t\t\tinputNode.set_deltaw_pq\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\tthis.learningRate*\r\n\t\t\t\t\t\t\t\t\ta_i*g_p_hid*(err*\r\n\t\t\t\t\t\t\t\t\toutputNode.parents.get(hid_count).weight*\r\n\t\t\t\t\t\t\t\t\tg_p_out)\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\thid_count++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// for all w_pq, update weights\r\n\t\t\t\tfor(Node hiddenNode: hiddenNodes){\r\n\t\t\t\t\tif(hiddenNode.getType()==2){\r\n\t\t\t\t\t\tfor(NodeWeightPair inputNode: hiddenNode.parents){\r\n\t\t\t\t\t\t\tinputNode.weight += inputNode.get_deltaw_pq();\r\n\t\t\t\t\t\t\tinputNode.set_deltaw_pq(new Double (0.00));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor(NodeWeightPair hiddenNode: outputNode.parents)\r\n\t\t\t\t{\r\n\t\t\t\t\thiddenNode.weight += hiddenNode.get_deltaw_pq();\r\n\t\t\t\t\thiddenNode.set_deltaw_pq(new Double (0.00));\r\n\t\t\t\t}\r\n\r\n\t\t\t} // end of an instance \r\n\t\t} // end of an epoch\r\n\t}", "private SigmoidParameters(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void addNeuron() {\n neurons.add(new Neuron(function));\n }", "public void buildPointPetriNet(){\n\t\tcreatePlace(pnet, \"int\", 3);\n\t\tcreatePlace(pnet, \"Point\", 2);\n\t\tcreatePlace(pnet, \"MyPoint\", 2);\n\t\tcreatePlace(pnet, \"void\", 2);\n\t\t\n\t\t// Create transitions for the petri-net\n\t\tpnet.createTransition(\"int<-getX(Point)\");\n\t\tpnet.createTransition(\"int<-getY(Point)\");\n\t\tpnet.createTransition(\"void<-setX(Point,int)\");\n\t\tpnet.createTransition(\"void<-setY(Point,int)\");\n\t\tpnet.createTransition(\"Point<-Point(void)\");\n\t\t\n\t\tpnet.createTransition(\"int<-getX(MyPoint)\");\n\t\tpnet.createTransition(\"int<-getY(MyPoint)\");\n\t\tpnet.createTransition(\"MyPoint<-MyPoint(int,int)\");\n\t\t\n\t\t// Create clone transitions for the petri-net\n\t\tpnet.createTransition(\"int<-clone(int)\");\n\t\tpnet.createTransition(\"Point<-clone(Point)\");\n\t\tpnet.createTransition(\"MyPoint<-clone(MyPoint)\");\n\t\tpnet.createTransition(\"void<-clone(void)\");\n\t\t\n\t\t// Create flows for the petri-net\n\t\tpnet.createFlow(\"Point\",\"int<-getX(Point)\",1);\n\t\tpnet.createFlow(\"int<-getX(Point)\",\"int\",1);\n\t\tpnet.createFlow(\"Point\",\"int<-getY(Point)\",1);\n\t\tpnet.createFlow(\"int<-getY(Point)\",\"int\",1);\n\t\tpnet.createFlow(\"Point\",\"void<-setX(Point,int)\",1);\n\t\tpnet.createFlow(\"int\",\"void<-setX(Point,int)\",1);\n\t\tpnet.createFlow(\"void<-setX(Point,int)\",\"void\",1);\n\t\tpnet.createFlow(\"Point\",\"void<-setY(Point,int)\",1);\n\t\tpnet.createFlow(\"int\",\"void<-setY(Point,int)\",1);\n\t\tpnet.createFlow(\"void<-setY(Point,int)\",\"void\",1);\n\t\tpnet.createFlow(\"void\",\"Point<-Point(void)\",1);\n\t\tpnet.createFlow(\"Point<-Point(void)\",\"Point\",1);\n\t\t\n\t\tpnet.createFlow(\"MyPoint\",\"int<-getX(MyPoint)\",1);\n\t\tpnet.createFlow(\"int<-getX(MyPoint)\",\"int\",1);\n\t\tpnet.createFlow(\"MyPoint\",\"int<-getY(MyPoint)\",1);\n\t\tpnet.createFlow(\"int<-getY(MyPoint)\",\"int\",1);\n\t\tpnet.createFlow(\"int\",\"MyPoint<-MyPoint(int,int)\",2);\n\t\tpnet.createFlow(\"MyPoint<-MyPoint(int,int)\",\"MyPoint\",1);\n\t\t\n\t\t// Create flows for the clone edges\n\t\tpnet.createFlow(\"int\",\"int<-clone(int)\",1);\n\t\tpnet.createFlow(\"int<-clone(int)\",\"int\",2);\n\t\tpnet.createFlow(\"Point\",\"Point<-clone(Point)\",1);\n\t\tpnet.createFlow(\"Point<-clone(Point)\",\"Point\",2);\n\t\tpnet.createFlow(\"MyPoint\",\"MyPoint<-clone(MyPoint)\",1);\n\t\tpnet.createFlow(\"MyPoint<-clone(MyPoint)\",\"MyPoint\",2);\n\t\tpnet.createFlow(\"void\",\"void<-clone(void)\",1);\n\t\tpnet.createFlow(\"void<-clone(void)\",\"void\",2);\n\t\t\n\t}", "public VirtualNetworksLayer(String name, Parameters params) {\n\t\tsuper(name,params);\n\t\tSystem.out.println(\"Virtual networks layer : \"+params);\n\t\trand = new Random();\n\t\tint maxNetNum = 0;\n\t\tString names[] = params.names();\n\t\tint numNets = names.length;\n\t\tnetworks = new short[numNets][2];\n\t\tfor(int i=0;i<numNets;i++) {\n\t\t\tString subName = names[i];\n\t\t\tshort subNumber = (short)0;\n\t\t\ttry {subNumber = params.getShort(subName);}\n\t\t\tcatch(ParamDoesNotExistException pdnee) {\n\t\t\t\tthrow new RuntimeException(\"Invalid parameter for subnet \"+subName+\".\");\n\t\t\t}\n\t\t\tnetworks[i][0] = Short.parseShort(subName);\n\t\t\tnetworks[i][1] = subNumber;\n\t\t\tSystem.out.println(\"-> Add subnetwork: \"+subName+\"-\"+subNumber);\n\t\t\tif(networks[i][0] > maxNetNum) maxNetNum = networks[i][0];\n\t\t}\n\t\tint numNetBytes = (short)(maxNetNum >> 3) + 1;\n\t\tnetBits = new byte[numNetBytes];\n\t\tfor(int i = 0; i < numNets; i++) {\n\t\t\tint nByte = networks[i][0] >> 3; // division par 8\n\t\t\tint nBit = networks[i][0] & 7; // modulo 8\n\t\t\tnetBits[nByte] = (byte)(netBits[nByte] | (1 << nBit)); // set the corresponding bit\n\t\t}\n }", "public void backprop(double[] inputs, FeedForwardNeuralNetwork net, boolean verbose)\n {\n //create variables that will be used later\n int[] sizes = net.getSizes();\n int biggestSize = 0;\n for(int k = 0; k < sizes.length; k++)\n {\n if(sizes[k] > biggestSize)\n {\n biggestSize = sizes[k];\n }\n }\n int hiddenLayers = sizes.length - 2;\n //if input or output wrong size, return\n if(inputs.length != sizes[0])\n {\n System.out.println(\"Invalid number of inputs\");\n return;\n }\n\n double[][] allOutputs = new double[sizes.length][biggestSize];\n double[][] allErrors = new double[sizes.length][biggestSize];\n\n //fill out first layer to temp output\n int lastLayer = sizes[0];\n for(int k = 0; k < lastLayer; k++)\n {\n allOutputs[0][k] = inputs[k];\n }\n\n //for each layer after the input\n for(int k = 1; k < hiddenLayers + 2; k++)\n {\n //for each node in that layer\n for(int a = 0; a < sizes[k]; a++)\n {\n //get sum and get activation function result and its derivative\n double sum = 0;\n for(int t = 0; t < lastLayer; t++)\n {\n sum += allOutputs[k - 1][t] * net.getWeight(k - 1, t, k, a);\n }\n sum += net.getBiasNum() * net.getWeight(-1, 0, k, a);\n if(k != hiddenLayers + 1)\n {\n allOutputs[k][a] = net.applyActivationFunction(sum, net.getHiddenActivationFunction());\n allErrors[k][a] = net.applyActivationFunctionDerivative(sum, net.getHiddenActivationFunction());\n }\n else\n {\n allOutputs[k][a] = net.applyActivationFunction(sum, net.getOutputActivationFunction());\n allErrors[k][a] = net.applyActivationFunctionDerivative(sum, net.getOutputActivationFunction());\n }\n }\n lastLayer = sizes[k];\n }\n\n if(verbose)\n {\n System.out.println(\"Outputs\");\n for(int k = 0; k < maxClusters; k++)\n {\n System.out.print(allOutputs[hiddenLayers + 1][k] + \", \");\n }\n System.out.println();\n }\n double[] expectedOutputs = new double[maxClusters];\n int cluster = 0;\n double max = 0;\n for(int k = 0; k < maxClusters; k++)\n {\n expectedOutputs[k] = allOutputs[hiddenLayers + 1][k];\n if(allOutputs[hiddenLayers + 1][k] > max)\n {\n cluster = k;\n max = allOutputs[hiddenLayers + 1][k];\n }\n }\n if(verbose)\n {\n System.out.println(\"Output \" + cluster + \" will be set to max value\");\n System.out.println();\n }\n\n expectedOutputs[cluster] = 4;\n\n\n //go backward from output to first hidden layer\n for(int k = hiddenLayers + 1; k > 0; k--)\n {\n //for each node in that layer\n for(int a = 0; a < sizes[k]; a++)\n {\n //compute error for not output layer\n if(k != hiddenLayers + 1)\n {\n double temp = allErrors[k][a];\n allErrors[k][a] = 0;\n for(int t = 0; t < sizes[k + 1]; t++)\n {\n allErrors[k][a] += net.getWeight(k, t, k + 1, a) * allErrors[k + 1][t];\n }\n allErrors[k][a] *= temp;\n }\n //compute error for output layer\n else\n {\n allErrors[k][a] *= (expectedOutputs[a] - allOutputs[k][a]);\n }\n\n //for each weight node takes as input\n for(int t = 0; t < sizes[k - 1]; t++)\n {\n //find the delta for the weight and apply\n int index = net.getIndex(k - 1, t, k, a);\n double delta = learningRate * allOutputs[k - 1][t] * allErrors[k][a]\n + momentum * lastDeltas[index];\n\n net.setWeight(k - 1, t, k, a, net.getWeight(k - 1, t, k, a) + delta);\n lastDeltas[index] = delta;\n }\n }\n }\n }", "public interface InputSummingFunction {\r\n\r\n\t/**\r\n\t * Performs calculations based on the output values of the input neurons.\r\n\t * \r\n\t * @param inputConnections\r\n\t * neuron's input connections\r\n\t * @return total input for the neuron having the input connections\r\n\t */\r\n\tdouble collectOutput(List<NeuronsConnection> inputConnections);\r\n\r\n}", "public void addNeuron(){\n neurons.add(new Neuron(neurons.size(), layerIndex));\n for (Neuron n: upStream.getNeurons()){\n Connection con = new Connection(n, neurons.get(neurons.size()-1));\n n.addDownStream(con);\n neurons.get(neurons.size()-1).addUpStream(con);\n }\n for (Neuron n: downStream.neurons){\n Connection con = new Connection(neurons.get(neurons.size()-1), n);\n n.addUpStream(con);\n neurons.get(neurons.size()-1).addDownStream(con);\n }\n }", "public Network (int N, int type) {\n this.N=N;\n nodes=new Node[N];\n functions=new String[N];\n }", "public static MultiLayerNetwork lenetModel(Integer numLabels) {\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(seed)\n .l2(0.005)\n .activation(Activation.RELU)\n .weightInit(WeightInit.XAVIER)\n .updater(new Nesterovs(0.0001, 0.9))\n .list()\n .layer(0, convInit(\"cnn1\", channels, 50, new int[]{5, 5}, new int[]{1, 1}, new int[]{0, 0}, 0))\n .layer(1, maxPool(\"maxpool1\", new int[]{2, 2}))\n .layer(2, conv5x5(\"cnn2\", 100, new int[]{5, 5}, new int[]{1, 1}, 0))\n .layer(3, maxPool(\"maxool2\", new int[]{2, 2}))\n .layer(4, new DenseLayer.Builder().nOut(500).build())\n .layer(5, new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)\n .nOut(numLabels)\n .activation(Activation.SOFTMAX)\n .build())\n .backprop(true).pretrain(false)\n .setInputType(InputType.convolutional(height, width, channels))\n .build();\n\n return new MultiLayerNetwork(conf);\n\n }", "protected void trainModuleNN(Map<DiscreteState, Double> out1f, int[] numHidden,\n\t\t\tint epochs, double lRate, double mRate, double sRate) {\n\t\tfor(int i = 0; i < epochs; i++) {\n//\t\t\tdouble err = 0;\n\t\t\tfor (Map.Entry<DiscreteState, Double> entry : out1f.entrySet()) {\n\t\t\t\tdouble[] input = entry.getKey().getRawState();\n\t\t\t\tif (neuralNet == null) neuralNet = new FFNeuralNetwork(ActivationFunction.SIGMOID0p5,\n\t\t\t\t\t\tinput.length, 1, numHidden);\n\t\t\t\tFFNeuralNetwork.feedForward(neuralNet.getInputNodes(), input);\n\t\t\t\tFFNeuralNetwork.backPropagate(neuralNet.getOutputNodes(), lRate, mRate, sRate, entry.getValue());\n//\t\t\t\terr += FFNeuralNetwork.getError(new double[] {entry.getValue()}, neuralNet.getOutputNodes());\n\t\t\t}\n//\t\t\tSystem.out.println(i + \"\t\" + err / out1f.size());\n\t\t}\n//\t\tfor (Map.Entry<DiscreteState, Double> entry : out1f.entrySet()) {\n//\t\t\tFFNeuralNetwork.feedForward(neuralNet.getInputNodes(), entry.getKey().getRawState());\n//\t\t\tSystem.out.println(entry.getValue() + \"\tvs\t\" + neuralNet.getOutputNodes().get(0).getActivation());\n//\t\t}\n\t\tif (rel2ModuleInput.isEmpty()) {\n\t\t\tArrayList<? extends Node> inputNodes = neuralNet.getInputNodes();\n\t\t\tint j = 0;\n\t\t\tfor (IndirectInput rel : relations) rel2ModuleInput.put(rel, inputNodes.get(j++));\n\t\t}\n\t}", "public AbstractANN(int sizeInputLayer, int sizeOutputLayer, double learningRate, int epochs) {\n\t\tthis.SIZE_INPUT_LAYER = sizeInputLayer;\n\t\tthis.SIZE_OUTPUT_LAYER = sizeOutputLayer;\n\t\tthis.learningRate = learningRate;\n\t\tthis.epochs = epochs;\n\t}", "NeuronType getType();", "public LinearNeuron(double[] weights)\n\t{\n\t\tsuper(weights);\n\t}", "private ComputationGraph configurate() throws IOException {\r\n // Load Zoo model VGG16\r\n ZooModel zooModel = new VGG16();\r\n trainWriter.write(\"\\nLoading org.deeplearning4j.transferlearning.vgg16...\\n\");\r\n System.out.println(\"\\nLoading org.deeplearning4j.transferlearning.vgg16...\\n\\n\");\r\n ComputationGraph vgg16 = (ComputationGraph) zooModel.initPretrained(PretrainedType.VGGFACE);\r\n trainWriter.write(\"\\nLoaded model overview: \" + vgg16.summary());\r\n \r\n // Create Fine tune configuration, which will modify params of all layers, that are not frozen\r\n FineTuneConfiguration fineTuneConf = new FineTuneConfiguration.Builder()\r\n .updater(new Nesterovs(5e-5))\r\n .seed(123)\r\n .build();\r\n\r\n /*\r\n * Change to required config and print it.\r\n * Therefore the last layer (as seen when printing the summary) is a dense layer and not an output layer with a loss function.\r\n * Therefore to modify nOut of an output layer we delete the layer vertex,\r\n * keeping it’s connections and add back in a new output layer with the same name,\r\n * a different nOut, the suitable loss function etc etc.\r\n * */\r\n vgg16Transfer = new TransferLearning.GraphBuilder(vgg16)\r\n .fineTuneConfiguration(fineTuneConf)\r\n .setFeatureExtractor(featureExtractionLayer)\r\n .removeVertexKeepConnections(\"fc8\")\r\n .addLayer(\"fc8\",\r\n new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)\r\n .nIn(4096).nOut(numLabels)\r\n .weightInit(WeightInit.DISTRIBUTION)\r\n .dist(new NormalDistribution(0,0.2*(2.0/(4096 + numLabels)))) //This weight init dist gave better results than Xavier\r\n .activation(Activation.SOFTMAX).build()\r\n ,\"fc7\").setOutputs(\"fc8\")\r\n .build();\r\n trainWriter.write(\"\\nCorrected model overview: \" + vgg16Transfer.summary());\r\n System.out.println(\"\\nCorrected model overview: \" + vgg16Transfer.summary()); // Print changes config\r\n\r\n return vgg16Transfer;\r\n }", "public void FeedForward() {\r\n\t\tfor (int i = 0; i < Node.length; i++) {\r\n\t\t\tNet = Node[i].Threshold;\r\n\r\n\t\t\tfor (int j = 0; j < Node[i].Weight.length; j++)\r\n\t\t\t\tNet = Net + Input[j] * Node[i].Weight[j];\r\n\r\n\t\t\tNode[i].Output = Sigmoid(Net);\r\n\t\t}\r\n\t}", "public Network() {\r\n\t\tobjective = null;\r\n\t\tvariables = new ArrayList<Variable>();\r\n\t\tconstraints = new ArrayList<Constraint>();\r\n\t}", "private void trainOnSamples() {\n for (Sample sample : samples) {\n double sum = 0;\n \n for (int i = 0; i < weights.length; i++) { //calculating w1.x1 + w2.x2 + ... \n sum += weights[i] * sample.getP()[i];\n }\n sum += bias; //adding bias to the sum\n\n if (!compareOutput(sum, sample)) { //compare network & target output\n //updating the weights\n for (int i = 0; i < weights.length; i++) {\n weights[i] += sample.getTarget() * sample.getP()[i];\n }\n //updating the bias\n bias += sample.getTarget();\n sample.setValidation(false);\n } else {\n sample.setValidation(true);\n }\n }\n }", "private int Funcionar_salida_Ant_umbral_Color(float location, float email, float imei, float device, float serialnumber, float macaddress, float advertiser) {\n float n_epochs = 1;\n\n float output = 0; //y\n String op_string;\n\n\n //First, create an input tensor:\n /*\n\n */\n\n\n //**** TEORIA *******\n //First, create an input tensor:\n //Tensor input = Tensor.create(features);\n // float[][] output = new float[1][1];\n //Then perform inference by:\n //Tensor op_tensor = sess.runner().feed(\"input\", input).fetch(\"output\").run().get(0).expect(Float.class);\n //Copy this output to a float array using:\n //op_tensor.copyTo(output);\n // values.copyTo(output);\n Tensor input_location = Tensor.create(location);\n Tensor input_email = Tensor.create(email);\n Tensor input_imei = Tensor.create(imei);\n Tensor input_device = Tensor.create(device);\n Tensor input_serialnumber = Tensor.create(serialnumber);\n Tensor input_macaddress = Tensor.create(macaddress);\n Tensor input_advertiser = Tensor.create(advertiser);\n\n Tensor input_umbral_verde = Tensor.create(umbral_verde);\n Tensor input_umbral_naranja = Tensor.create(umbral_naranja);\n Tensor input_umbral_rojo = Tensor.create(umbral_rojo);\n\n Tensor input_Plocation = Tensor.create(Plocation);\n Tensor input_Pemail = Tensor.create(Pemail);\n Tensor input_Pdevice = Tensor.create(Pdevice);\n Tensor input_Pimei = Tensor.create(Pimei);\n Tensor input_Pserialnumber = Tensor.create(Pserialnumber);\n Tensor input_Pmacaddress = Tensor.create(Pmacaddress);\n Tensor input_Padvertiser = Tensor.create(Padvertiser);\n\n\n\n ArrayList<Tensor<?>> list_op_tensor = new ArrayList<Tensor<?>>();\n\n String location_filtrado = \"NO\";\n String email_filtrado = \"NO\";\n String imei_filtrado = \"NO\";\n String device_filtrado = \"NO\";\n String serialnumber_filtrado = \"NO\";\n String macaddress_filtrado = \"NO\";\n String advertiser_filtrado = \"NO\";\n String filtraciones_aplicacion = \"\";\n\n if (location == 1){\n location_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -Location\" + \"\\n\";\n }\n if (email == 1){\n email_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -Email\" + \"\\n\";\n }\n if (device == 1){\n device_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -DeviceID\" + \"\\n\";\n }\n if (imei == 1){\n imei_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -Imei\" + \"\\n\";\n\n }\n if (serialnumber == 1){\n serialnumber_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -SerialNumber\" + \"\\n\";\n\n }\n if (macaddress == 1){\n macaddress_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -MacAddress\" + \"\\n\";\n\n }\n if (advertiser == 1){\n advertiser_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -AdvertiserID\" + \"\\n\";\n\n }\n\n\n //Tensor op_tensor = sess.runner().feed(\"input\",input).fetch(\"output\").run().get(0).expect(Float.class);\n //umbral_green\n //umbral_green\n Tensor op_tensor_verde = sess.runner().feed(\"location_input\",input_location).feed(\"email_input\",input_email).feed(\"imei_input\",input_imei).feed(\"device_input\",input_device).feed(\"serialnumber_input\",input_serialnumber).feed(\"macaddress_input\",input_macaddress).feed(\"advertiser_input\",input_advertiser).feed(\"umbral\",input_umbral_verde).feed(\"Plocation\",input_Plocation).feed(\"Pemail\",input_Pemail).feed(\"Pdevice\",input_Pdevice).feed(\"Pimei\",input_Pimei).feed(\"Pserialnumber\",input_Pserialnumber).feed(\"Pmacaddress\",input_Pmacaddress).feed(\"Padvertiser\",input_Padvertiser).fetch(\"output\").run().get(0).expect(Float.class);\n //umbral Naranja\n Tensor op_tensor_naranja = sess.runner().feed(\"location_input\",input_location).feed(\"email_input\",input_email).feed(\"imei_input\",input_imei).feed(\"device_input\",input_device).feed(\"serialnumber_input\",input_serialnumber).feed(\"macaddress_input\",input_macaddress).feed(\"advertiser_input\",input_advertiser).feed(\"umbral\",input_umbral_naranja).feed(\"Plocation\",input_Plocation).feed(\"Pemail\",input_Pemail).feed(\"Pdevice\",input_Pdevice).feed(\"Pimei\",input_Pimei).feed(\"Pserialnumber\",input_Pserialnumber).feed(\"Pmacaddress\",input_Pmacaddress).feed(\"Padvertiser\",input_Padvertiser).fetch(\"output\").run().get(0).expect(Float.class);\n //umbral rojo\n Tensor op_tensor_rojo =sess.runner().feed(\"location_input\",input_location).feed(\"email_input\",input_email).feed(\"imei_input\",input_imei).feed(\"device_input\",input_device).feed(\"serialnumber_input\",input_serialnumber).feed(\"macaddress_input\",input_macaddress).feed(\"advertiser_input\",input_advertiser).feed(\"umbral\",input_umbral_rojo).feed(\"Plocation\",input_Plocation).feed(\"Pemail\",input_Pemail).feed(\"Pdevice\",input_Pdevice).feed(\"Pimei\",input_Pimei).feed(\"Pserialnumber\",input_Pserialnumber).feed(\"Pmacaddress\",input_Pmacaddress).feed(\"Padvertiser\",input_Padvertiser).fetch(\"output\").run().get(0).expect(Float.class);\n\n list_op_tensor.add(op_tensor_verde);\n list_op_tensor.add(op_tensor_naranja);\n list_op_tensor.add(op_tensor_rojo);\n\n //para escribir en la app en W y B test\n // LO COMENTO 12/02/2021\n // ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").run();\n // NO VA ESTA PRUEBA ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").fetch(\"y/output\").run();\n\n //CREAR UN TEXTO PARA ESCRIBIR EL OUTPUT PREDECIDO: Out\n\n // Y.setText(\"Salida: Y= \"+ Float.toString(op_tensor.floatValue()) +\", si entrada X=1\");\n // Y.setText(\"Salida: Y= \"+ Float.toString(op_tensor.floatValue()) +\", si entrada email,...\");\n\n String recomendacion = \"No hacer nada\";\n String Nivel = \" Bajo\";\n int Nivel_color = 0; //0 es verde, 1 naranja, 2 rojo\n if (op_tensor_verde.floatValue() == 1) {\n if(op_tensor_naranja.floatValue() == 1 ){\n if(op_tensor_rojo.floatValue() == 1 ){\n Nivel = \" Alto\";\n Nivel_color = 2;\n }\n else {\n Nivel = \" Medio\";\n Nivel_color = 1;\n }\n }\n else {\n Nivel = \" Bajo\";\n Nivel_color = 0;\n }\n }\n\n /// test.setBackgroundResource(R.color.holo_green_light);\n\n\n // resumen_app.setText(\"Resumen App analizada: \"+ \"\\n\" + \"Nota: Si una app tiene una filtración, se marcará dicho valor con un 'SI'\"+ \"\\n\" + \"Location: \" + location_filtrado + \"\\n\" + \"Email: \" + email_filtrado + \"\\n\" + \"DeviceID: \" + device_filtrado + \"\\n\" + \"Imei: \" + imei_filtrado + \"\\n\" +\n // \"Recomendación: \" + recomendacion);\n // subtitulo.setText(\"Nivel: \" );\n // titulo.setText(Nivel );\n // titulo.setTextColor(android.R.color.background_dark);\n\n // resumen_app.setText(\"Filtraciones Spotify: \"+ \"\\n\" + \"\\n\" + \"Location: \" + location_filtrado + \"\\n\" + \"Email: \" + email_filtrado + \"\\n\" + \"DeviceID: \" + device_filtrado + \"\\n\" + \"Imei: \" + imei_filtrado );\n // resumen_app.setText(\"Filtraciones: \"+ \"\\n\" + \"\\n\" + filtraciones_aplicacion );\n op_string = \"Filtraciones: \"+ \"\\n\" + \"\\n\" + filtraciones_aplicacion;\n\n //mirar bien codigo:\n if ( Nivel_color == 0) {\n // resumen_app.setBackgroundResource(R.color.verde);\n nivel_color = 0;\n // resumen_app.setBackgroundResource(R.drawable.stilo_borde_textview);\n }\n if ( Nivel_color == 1) {\n // resumen_app.setBackgroundResource(R.color.naranja);\n nivel_color = 1;\n // resumen_app.setBackgroundResource(R.drawable.stilo_borde_naranja);\n }\n if ( Nivel_color == 2) {\n // resumen_app.setBackgroundResource(R.color.rojo);\n nivel_color = 2;\n // resumen_app.setBackgroundResource(R.drawable.stilo_borde_rojo);\n }\n\n\n\n return nivel_color;\n }", "protected void setNeuralNetwork(NeuralNetwork nnet) {\n\t\tthis.nnet = nnet;\n\t}", "private void registerNeurons(){\n\t\tneurons.add(new ObstaclesDetectionNeuron(this));\n\t\tneurons.add(new AreaLimitDetectionNeuron(this));\n\t\tneurons.add(new ButtonHandlerNeuron(this));\n\t\tneurons.add(new BeeperNeuron(this));\n\t}", "private void trainNetwork(long iterations) {\n\t\ttrainer.startTraining(network, iterations);\r\n\r\n\t}", "public NodeNetwork() {\n\t\tnodes = new ArrayList<>();\n\t\tconnections = new ArrayList<>();\n\t}", "private String Funcionar_salida_Ant_umbral_lista_Dentro(float location, float email, float imei, float device, float serialnumber, float macaddress, float advertiser) {\n float n_epochs = 1;\n\n float output = 0; //y\n String op_string;\n\n\n //First, create an input tensor:\n /*\n\n */\n\n\n //**** TEORIA *******\n //First, create an input tensor:\n //Tensor input = Tensor.create(features);\n // float[][] output = new float[1][1];\n //Then perform inference by:\n //Tensor op_tensor = sess.runner().feed(\"input\", input).fetch(\"output\").run().get(0).expect(Float.class);\n //Copy this output to a float array using:\n //op_tensor.copyTo(output);\n // values.copyTo(output);\n Tensor input_location = Tensor.create(location);\n Tensor input_email = Tensor.create(email);\n Tensor input_imei = Tensor.create(imei);\n Tensor input_device = Tensor.create(device);\n Tensor input_serialnumber = Tensor.create(serialnumber);\n Tensor input_macaddress = Tensor.create(macaddress);\n Tensor input_advertiser = Tensor.create(advertiser);\n\n Tensor input_umbral_verde = Tensor.create(umbral_verde);\n Tensor input_umbral_naranja = Tensor.create(umbral_naranja);\n Tensor input_umbral_rojo = Tensor.create(umbral_rojo);\n\n Tensor input_Plocation = Tensor.create(Plocation);\n Tensor input_Pemail = Tensor.create(Pemail);\n Tensor input_Pdevice = Tensor.create(Pdevice);\n Tensor input_Pimei = Tensor.create(Pimei);\n Tensor input_Pserialnumber = Tensor.create(Pserialnumber);\n Tensor input_Pmacaddress = Tensor.create(Pmacaddress);\n Tensor input_Padvertiser = Tensor.create(Padvertiser);\n\n\n\n ArrayList<Tensor<?>> list_op_tensor = new ArrayList<Tensor<?>>();\n\n String location_filtrado = \"NO\";\n String email_filtrado = \"NO\";\n String imei_filtrado = \"NO\";\n String device_filtrado = \"NO\";\n String serialnumber_filtrado = \"NO\";\n String macaddress_filtrado = \"NO\";\n String advertiser_filtrado = \"NO\";\n\n String filtraciones_aplicacion = \"\";\n\n if (location == 1){\n location_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -Location\" + \"\\n\";\n }\n if (email == 1){\n email_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -Email\" + \"\\n\";\n }\n if (device == 1){\n device_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -DeviceID\" + \"\\n\";\n }\n if (imei == 1){\n imei_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -Imei\" + \"\\n\";\n\n }\n if (serialnumber == 1){\n serialnumber_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -SerialNumber\" + \"\\n\";\n\n }\n if (macaddress == 1){\n macaddress_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -MacAddress\" + \"\\n\";\n\n }\n if (advertiser == 1){\n advertiser_filtrado = \"SI\";\n filtraciones_aplicacion = filtraciones_aplicacion + \" -AdvertiserID\" + \"\\n\";\n\n }\n\n\n //Tensor op_tensor = sess.runner().feed(\"input\",input).fetch(\"output\").run().get(0).expect(Float.class);\n //umbral_green\n Tensor op_tensor_verde = sess.runner().feed(\"location_input\",input_location).feed(\"email_input\",input_email).feed(\"imei_input\",input_imei).feed(\"device_input\",input_device).feed(\"serialnumber_input\",input_serialnumber).feed(\"macaddress_input\",input_macaddress).feed(\"advertiser_input\",input_advertiser).feed(\"umbral\",input_umbral_verde).feed(\"Plocation\",input_Plocation).feed(\"Pemail\",input_Pemail).feed(\"Pdevice\",input_Pdevice).feed(\"Pimei\",input_Pimei).feed(\"Pserialnumber\",input_Pserialnumber).feed(\"Pmacaddress\",input_Pmacaddress).feed(\"Padvertiser\",input_Padvertiser).fetch(\"output\").run().get(0).expect(Float.class);\n //umbral Naranja\n Tensor op_tensor_naranja = sess.runner().feed(\"location_input\",input_location).feed(\"email_input\",input_email).feed(\"imei_input\",input_imei).feed(\"device_input\",input_device).feed(\"serialnumber_input\",input_serialnumber).feed(\"macaddress_input\",input_macaddress).feed(\"advertiser_input\",input_advertiser).feed(\"umbral\",input_umbral_naranja).feed(\"Plocation\",input_Plocation).feed(\"Pemail\",input_Pemail).feed(\"Pdevice\",input_Pdevice).feed(\"Pimei\",input_Pimei).feed(\"Pserialnumber\",input_Pserialnumber).feed(\"Pmacaddress\",input_Pmacaddress).feed(\"Padvertiser\",input_Padvertiser).fetch(\"output\").run().get(0).expect(Float.class);\n //umbral rojo\n Tensor op_tensor_rojo =sess.runner().feed(\"location_input\",input_location).feed(\"email_input\",input_email).feed(\"imei_input\",input_imei).feed(\"device_input\",input_device).feed(\"serialnumber_input\",input_serialnumber).feed(\"macaddress_input\",input_macaddress).feed(\"advertiser_input\",input_advertiser).feed(\"umbral\",input_umbral_rojo).feed(\"Plocation\",input_Plocation).feed(\"Pemail\",input_Pemail).feed(\"Pdevice\",input_Pdevice).feed(\"Pimei\",input_Pimei).feed(\"Pserialnumber\",input_Pserialnumber).feed(\"Pmacaddress\",input_Pmacaddress).feed(\"Padvertiser\",input_Padvertiser).fetch(\"output\").run().get(0).expect(Float.class);\n\n list_op_tensor.add(op_tensor_verde);\n list_op_tensor.add(op_tensor_naranja);\n list_op_tensor.add(op_tensor_rojo);\n\n //para escribir en la app en W y B test\n // LO COMENTO 12/02/2021\n // ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").run();\n // NO VA ESTA PRUEBA ArrayList<Tensor<?>> values = (ArrayList<Tensor<?>>) sess.runner().fetch(\"W/read\").fetch(\"b/read\").fetch(\"y/output\").run();\n\n //CREAR UN TEXTO PARA ESCRIBIR EL OUTPUT PREDECIDO: Out\n\n // Y.setText(\"Salida: Y= \"+ Float.toString(op_tensor.floatValue()) +\", si entrada X=1\");\n // Y.setText(\"Salida: Y= \"+ Float.toString(op_tensor.floatValue()) +\", si entrada email,...\");\n\n String recomendacion = \"No hacer nada\";\n String Nivel = \" Bajo\";\n int Nivel_color = 0; //0 es verde, 1 naranja, 2 rojo\n if (op_tensor_verde.floatValue() == 1) {\n if(op_tensor_naranja.floatValue() == 1 ){\n if(op_tensor_rojo.floatValue() == 1 ){\n Nivel = \" Alto\";\n Nivel_color = 2;\n }\n else {\n Nivel = \" Medio\";\n Nivel_color = 1;\n }\n }\n else {\n Nivel = \" Bajo\";\n Nivel_color = 0;\n }\n }\n\n /// test.setBackgroundResource(R.color.holo_green_light);\n\n\n // resumen_app.setText(\"Resumen App analizada: \"+ \"\\n\" + \"Nota: Si una app tiene una filtración, se marcará dicho valor con un 'SI'\"+ \"\\n\" + \"Location: \" + location_filtrado + \"\\n\" + \"Email: \" + email_filtrado + \"\\n\" + \"DeviceID: \" + device_filtrado + \"\\n\" + \"Imei: \" + imei_filtrado + \"\\n\" +\n // \"Recomendación: \" + recomendacion);\n\n // ************************* COMENTADO*********18/02\n\n // subtitulo.setText(\"Nivel: \" );\n // titulo.setText(Nivel );\n // titulo.setTextColor(android.R.color.background_dark);\n\n // resumen_app.setText(\"Filtraciones Spotify: \"+ \"\\n\" + \"\\n\" + \"Location: \" + location_filtrado + \"\\n\" + \"Email: \" + email_filtrado + \"\\n\" + \"DeviceID: \" + device_filtrado + \"\\n\" + \"Imei: \" + imei_filtrado );\n // **********************\n // resumen_app.setText(\"Filtraciones: \"+ \"\\n\" + \"\\n\" + filtraciones_aplicacion );\n op_string = \"Filtraciones: \"+ \"\\n\" + \"\\n\" + filtraciones_aplicacion;\n\n //mirar bien codigo:\n if ( Nivel_color == 0) {\n // resumen_app.setBackgroundResource(R.color.verde);\n nivel_color = 0;\n // resumen_app.setBackgroundResource(R.drawable.stilo_borde_textview);\n }\n if ( Nivel_color == 1) {\n // resumen_app.setBackgroundResource(R.color.naranja);\n nivel_color = 1;\n // resumen_app.setBackgroundResource(R.drawable.stilo_borde_naranja);\n }\n if ( Nivel_color == 2) {\n // resumen_app.setBackgroundResource(R.color.rojo);\n nivel_color = 2;\n // resumen_app.setBackgroundResource(R.drawable.stilo_borde_rojo);\n }\n\n\n\n\n return op_string;\n }", "@Override\n public void train(DataSet examples) {\n // check\n Example first = examples.getExample(0);\n if (!(first.get(\"INPUT\").getValue() instanceof Double[])) {\n throw new RuntimeException(\"NeuralNetworkLearner inputs must be passed as a Double[] in the \\\"INPUT\\\" attribute\");\n }\n if (!(first.getOutput() instanceof Double[])) {\n throw new RuntimeException(\"NeuralNetworkLearner output must be set to a Double[]\");\n }\n // convert example set\n DataList[] inputs = new DataList[examples.size()];\n DataList[] outputs = new DataList[examples.size()];\n for (int i = 0; i < examples.size(); i++) {\n inputs[i] = new DataList((Double[]) examples.getExample(i).get(\"INPUT\").getValue());\n outputs[i] = new DataList((Double[]) examples.getExample(i).getOutput());\n }\n // train\n try {\n this.network.train(inputs, outputs, this.target_error_rate);\n } catch (SizeDifferenceException e) {\n throw new RuntimeException(e);\n } catch (WrongSizeException e) {\n throw new RuntimeException(e);\n }\n }", "public BinaryPulseNeuralFunction() {\n super();\n }", "public NeuralNet(int numLayers, int numNodesPerLayer, List<Double> input,\n\t\t\tMap<Integer, List<Double>> expectedOutput) {\n\t\tmomentum = 0.01;\n\t\tlearningRate = 0.2;\n\t\tepoch = 0;\n\t\tlayers = new ArrayList<Layer>();\n\t\tthis.expectedOutput = expectedOutput;\n\t\twhile (numLayers > 0) {\n\t\t\tlayers.add(new Layer(numNodesPerLayer));\n\t\t\tnumLayers--;\n\t\t}\n\t\taddData(input);\n\t}", "@Override\n public Setup build(int numberOfNodes) {\n Setup setup = new Setup();\n List connections = setup.getConnections();\n List immovableNodes = setup.getImmovableNodes();\n List typicalNodes = setup.getTypicalNodes();\n\n List<TypicalNode> nodes = new LinkedList<>();\n TypicalNode typicalNode;\n int id = 1;\n double n = (numberOfNodes - 1)/2.0;\n for (double i = -n; i < n + 1; i++, id++) {\n if (i == -n || i == n) {\n typicalNode = new ImmovableNode(i, 0, 0, id);\n immovableNodes.add(typicalNode);\n } else {\n typicalNode = new TypicalNode(i, 0, 0, id);\n typicalNodes.add(typicalNode);\n }\n nodes.add(typicalNode);\n }\n\n for (int i = 0; i < nodes.size() - 1; i++) {\n connections.add(new Connection(nodes.get(i), nodes.get(i+1), 0.07));\n }\n\n setup.setCentralNode(new TypicalNode(0, -1, 0, 0));\n\n return setup;\n }", "NetworkFactory getNetworkFactory();", "protected void trainModuleNN(ExperienceReplay<TransitionMemory> experienceReplay, T outputOfInterest,\n\t\t\tRelationManager<T> relMngr, int[] numHidden, int epochs, double lRate, double mRate, double sRate) {\n\n\t\tint outKey = getVectorKey(outputOfInterest);\n\t\tint[] inKeys = getInKeys(outputOfInterest, relMngr);\n\t\t\n\t\tfor(int i = 0; i < epochs; i++) {\n\t\t\tIterator<TransitionMemory> iter = experienceReplay.getBatch().iterator();\n\t\t\tdouble inActivations[] = new double[inKeys.length];\n//\t\t\tdouble err = 0;\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tTransitionMemory tm = iter.next();\n\t\t\t\tdouble[] preStateAndAction = tm.getPreStateAndAction();\n\t\t\t\tdouble[] postState = tm.getPostState();\n\t\t\t\tint j = 0;\n\t\t\t\tfor (int k : inKeys) inActivations[j++] = k >= 0 ? preStateAndAction[k] : 0;\n\t\t\t\tif (neuralNet == null) neuralNet = new FFNeuralNetwork(ActivationFunction.SIGMOID0p5,\n\t\t\t\t\t\tinActivations.length, 1, numHidden);\n\t\t\t\tFFNeuralNetwork.feedForward(neuralNet.getInputNodes(), inActivations);\n\t\t\t\tFFNeuralNetwork.backPropagate(neuralNet.getOutputNodes(), lRate, mRate, sRate, postState[outKey]);\n//\t\t\t\terr += FFNeuralNetwork.getError(new double[] {postState[outKey]}, neuralNet.getOutputNodes());\n\t\t\t}\n//\t\t\tSystem.out.println(i + \"\t\" + err / experienceReplay.getSize());\n\t\t}\n//\t\tSystem.out.println();\n\t\tif (rel2ModuleInput.isEmpty()) {\n\t\t\tArrayList<? extends Node> inputNodes = neuralNet.getInputNodes();\n\t\t\tint j = 0;\n\t\t\tfor (IndirectInput rel : relations) rel2ModuleInput.put(rel, inputNodes.get(j++));\n\t\t}\n\t}", "public void train(){\r\n\t\tdouble output = 0.0;\r\n\t\tList<Integer> teacher = null;\r\n\t\tdouble adjustedWeight = 0.0;\r\n\t\tdouble error = 0.0;\r\n\t\tdouble deltaK = 0.0;\r\n\r\n\t\tfor(int counter = 0; counter < maxEpoch; counter++){\r\n\t\t\tfor(Instance inst : trainingSet){\r\n\t\t\t\tcalculateOutputForInstance(inst);\r\n\t\t\t\tteacher = inst.classValues;\r\n\t\t\t\t//jk weight\r\n\t\t\t\tfor(int i = 0; i < outputNodes.size(); i++){\r\n\t\t\t\t\tNode kNode = outputNodes.get(i);\r\n\t\t\t\t\toutput = kNode.getOutput();\r\n\t\t\t\t\terror = teacher.get(i) - output;\r\n\t\t\t\t\tdeltaK = error*getReLU(kNode.getSum());\r\n\t\t\t\t\tfor(int j = 0; j < kNode.parents.size(); j++){\r\n\t\t\t\t\t\tNodeWeightPair jkWeight = kNode.parents.get(j);\r\n\t\t\t\t\t\tNode jNode = jkWeight.node;\r\n\t\t\t\t\t\tadjustedWeight = getJK(jNode, deltaK);\r\n\t\t\t\t\t\tjkWeight.weight += adjustedWeight;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//ij weight\r\n\t\t\t\tfor(int i = 0; i < hiddenNodes.size(); i++){\r\n\t\t\t\t\tNode jNode = hiddenNodes.get(i);\r\n\t\t\t\t\tif(jNode.parents == null) continue;\r\n\t\t\t\t\tfor(int j = 0; j < jNode.parents.size(); j++){\r\n\t\t\t\t\t\tNodeWeightPair ijWeight = jNode.parents.get(j);\r\n\t\t\t\t\t\tNode iNode = ijWeight.node;\r\n\t\t\t\t\t\tadjustedWeight = getIJ(iNode, jNode, teacher, i);\r\n\t\t\t\t\t\tijWeight.weight += adjustedWeight;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public DigitalNetBase2 toNet() {\n DigitalNetBase2 net = initNetVar (false);\n for (int i = 0; i < dim * numCols; i++)\n net.genMat[i] = genMat[i];\n return net;\n }", "public Builder addNetworks(int index, Network.Builder builderForValue) {\n if (networksBuilder_ == null) {\n ensureNetworksIsMutable();\n networks_.add(index, builderForValue.build());\n onChanged();\n } else {\n networksBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }", "public void train(int iterations) {\n\t\tNeuron n = new NeuronSigmoid();\n\t\t\n\t\tfor (int i = 0; i < iterations; i++) {\n\t\t\tSystem.out.print(\"Epoch: \" +(i+1));\n\t\t\tdouble[][] localOutput = n.think(this.input,this.weights);\n\n\t\t\tdouble[][] error = Matrix2d.subtract(output, localOutput);\n\t\t\tSystem.out.print(\" Error: \"+calcOverallError(error));\n\t\t\tdouble[][] sigDeriv = Matrix2d.sigmoidDerivative(localOutput);\n\t\t\tdouble[][] prod = Matrix2d.multiply(error, sigDeriv);\n\t\t\tdouble[][] transInput = Matrix2d.transposeMatrix(input);\n\t\t\tdouble[][] adjustment = Matrix2d.dot(transInput, prod);\n\n\t\t\tweights = Matrix2d.add(adjustment, weights);\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "boolean isInputNeuron();", "public void connectNodes(){\n for(int i = 0; i < inputSize; i++){\n network.get(0).add(new InputNode());\n }\n \n for(int i = 1; i < layers; i++){\n \n for(int j = 0; j < layerSize; j++){\n \n network.get(i).add(new Node(network.get(i-1)));\n }\n \n }\n \n }", "public static void main(final String args[]) throws Exception {\n SimpleJSAP jsap = new SimpleJSAP(\r\n \"NeuralNet\",\r\n \"Program używa sieci neuronowej do klasyfikacji punktów na płaszczyźnie\",\r\n new Parameter[] {\r\n new FlaggedOption( \"layer\", JSAP.INTEGER_PARSER, null, JSAP.NOT_REQUIRED, 'l', JSAP.NO_LONGFLAG,\r\n \"Liczba wezlow w warstwach posrednich\" ).setList(true).setListSeparator(','),\r\n new FlaggedOption( \"training file\", JSAP.STRING_PARSER, \"data.csv\", JSAP.REQUIRED, 't', \"training\",\r\n \"Plik z danymi trenujacymi\" )\r\n }\r\n );\r\n\r\n JSAPResult config = jsap.parse(args);\r\n if ( jsap.messagePrinted() ) System.exit( 1 );\r\n//\r\n// NeuralNet nn = new NeuralNet(config.getIntArray(\"layer\"), config.getString(\"training file\"));\r\n\r\n List<int[]> params = new ArrayList();\r\n int layers[] = new int[]{};\r\n params.add(layers);\r\n layers = new int[]{10};\r\n params.add(layers);\r\n layers = new int[]{20};\r\n params.add(layers);\r\n layers = new int[]{50};\r\n params.add(layers);\r\n layers = new int[]{10,10};\r\n params.add(layers);\r\n\r\n for(int[] l : params){\r\n File folder = new File(\"./tests/\");\r\n\r\n PrintWriter res_out = new PrintWriter(new BufferedWriter(new FileWriter(res_f, true)));\r\n res_out.println(\"results_\" + stringify(l) + \"_binary\");\r\n res_out.close();\r\n\r\n for (final File fileEntry : folder.listFiles()) {\r\n if (fileEntry.isFile()) {\r\n if(fileEntry.getName().matches(\"set_.*[^(png)]\")){\r\n System.out.println(fileEntry.getName());\r\n NeuralNet nn = new NeuralNet(l, fileEntry.getName(), 0.25, true);\r\n }\r\n }\r\n }\r\n }\r\n for(int[] l : params){\r\n File folder = new File(\"./tests/\");\r\n\r\n PrintWriter res_out = new PrintWriter(new BufferedWriter(new FileWriter(res_f, true)));\r\n res_out.println(\"results_\" + stringify(l) + \"_one_of\");\r\n res_out.close();\r\n\r\n for (final File fileEntry : folder.listFiles()) {\r\n if (fileEntry.isFile()) {\r\n if(fileEntry.getName().matches(\"set_.*[^(png)]\")){\r\n System.out.println(fileEntry.getName());\r\n NeuralNet nn = new NeuralNet(l, fileEntry.getName(), 0.25, false);\r\n }\r\n }\r\n }\r\n }\r\n\r\n\r\n }", "public NeuralNet(int hiddenNeurons, double trainingRate, \n\t\t\tint trainingCycles, double minRandomWeight, double maxRandomWeight) {\n\t\tm = new MatrixOps();\n\t\t\n\t\tsetParameters(hiddenNeurons, trainingRate,\n\t\t\t\ttrainingCycles, minRandomWeight, maxRandomWeight);\n\t}", "private void initialize() {\r\n // init hidden layers\r\n for (int i = 0; i < neurons.length; i++) {\r\n for (int j = 0; j < neurons[i].length; j++) {\r\n // create neuron\r\n Neuron n = new Neuron(i, bias, this);\r\n neurons[i][j] = n;\r\n Log.log(Log.DEBUG, \"Adding Layer \" + (i + 1) + \" Neuron \" + (j + 1));\r\n }\r\n }\r\n }", "private BasicNetwork generateBrain(int numTags, int numShelfs) {\n\tSOMPattern pattern = new SOMPattern();\n\tpattern.setInputNeurons(numTags);\n\tpattern.setOutputNeurons(numShelfs);\n\n\treturn pattern.generate();\n }" ]
[ "0.6991875", "0.69307864", "0.6907988", "0.6863679", "0.67886055", "0.6729601", "0.67237115", "0.66890717", "0.66724557", "0.661029", "0.65668344", "0.6555398", "0.6460973", "0.6407616", "0.6406701", "0.63950074", "0.6374544", "0.6328552", "0.6299661", "0.62494147", "0.6164957", "0.6153832", "0.61150855", "0.6109315", "0.60808945", "0.6064944", "0.60189354", "0.6012048", "0.59896064", "0.59355414", "0.5925019", "0.59093034", "0.58980256", "0.5890119", "0.58870935", "0.58841187", "0.58765787", "0.58710265", "0.5863701", "0.5857323", "0.58541423", "0.584812", "0.5795395", "0.57251126", "0.57063967", "0.57042706", "0.5699833", "0.5689232", "0.5683047", "0.56802714", "0.5670687", "0.56649745", "0.5660224", "0.5654412", "0.5635886", "0.5625593", "0.5619627", "0.5617833", "0.5612393", "0.5609282", "0.56063735", "0.56006646", "0.5589723", "0.5581529", "0.55664057", "0.5564873", "0.5546014", "0.553925", "0.5532879", "0.55284756", "0.5505667", "0.5496045", "0.5479436", "0.5478137", "0.5472947", "0.54628474", "0.5459673", "0.54550004", "0.54494673", "0.5434598", "0.5433153", "0.5415414", "0.5410633", "0.5407509", "0.5387483", "0.5386918", "0.5384452", "0.5375663", "0.5370369", "0.53690434", "0.53689116", "0.53666794", "0.53621954", "0.53620315", "0.5358829", "0.53565484", "0.53537005", "0.5352713", "0.5347212", "0.5343338" ]
0.81524354
0
Set neural net layers
public abstract NetworkBuilder withLayers(int[] layers);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MultiLayerNetwork alexnetModel(Integer numLabels) {\n\n double nonZeroBias = 1;\n double dropOut = 0.5;\n\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(seed)\n .weightInit(WeightInit.DISTRIBUTION)\n .dist(new NormalDistribution(0.0, 0.01))\n .activation(Activation.RELU)\n .updater(new Nesterovs(new StepSchedule(ScheduleType.ITERATION, 1e-2, 0.1, 100000), 0.9))\n .biasUpdater(new Nesterovs(new StepSchedule(ScheduleType.ITERATION, 2e-2, 0.1, 100000), 0.9))\n .gradientNormalization(GradientNormalization.RenormalizeL2PerLayer) // normalize to prevent vanishing or exploding gradients\n .l2(5 * 1e-4)\n .list()\n .layer(0, convInit(\"cnn1\", channels, 96, new int[]{11, 11}, new int[]{4, 4}, new int[]{3, 3}, 0))\n .layer(1, new LocalResponseNormalization.Builder().name(\"lrn1\").build())\n .layer(2, maxPool(\"maxpool1\", new int[]{3, 3}))\n .layer(3, conv5x5(\"cnn2\", 256, new int[]{1, 1}, new int[]{2, 2}, nonZeroBias))\n .layer(4, new LocalResponseNormalization.Builder().name(\"lrn2\").build())\n .layer(5, maxPool(\"maxpool2\", new int[]{3, 3}))\n .layer(6, conv3x3(\"cnn3\", 384, 0))\n .layer(7, conv3x3(\"cnn4\", 384, nonZeroBias))\n .layer(8, conv3x3(\"cnn5\", 256, nonZeroBias))\n .layer(9, maxPool(\"maxpool3\", new int[]{3, 3}))\n .layer(10, fullyConnected(\"ffn1\", 4096, nonZeroBias, dropOut, new GaussianDistribution(0, 0.005)))\n .layer(11, fullyConnected(\"ffn2\", 4096, nonZeroBias, dropOut, new GaussianDistribution(0, 0.005)))\n .layer(12, new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)\n .name(\"output\")\n .nOut(numLabels)\n .activation(Activation.SOFTMAX)\n .build())\n .backprop(true)\n .pretrain(false)\n .setInputType(InputType.convolutional(height, width, channels))\n .build();\n\n return new MultiLayerNetwork(conf);\n\n }", "private void initialize() {\r\n // init hidden layers\r\n for (int i = 0; i < neurons.length; i++) {\r\n for (int j = 0; j < neurons[i].length; j++) {\r\n // create neuron\r\n Neuron n = new Neuron(i, bias, this);\r\n neurons[i][j] = n;\r\n Log.log(Log.DEBUG, \"Adding Layer \" + (i + 1) + \" Neuron \" + (j + 1));\r\n }\r\n }\r\n }", "protected void setNeuralNetwork(NeuralNetwork nnet) {\n\t\tthis.nnet = nnet;\n\t}", "public interface Layer {\n /**\n * @return The number of neurons, excluding bias neurons and context neurons. This is the number of neurons that\n * are directly fed from elsewhere.\n */\n int getCount();\n\n /**\n * @return The number of neurons, including bias neurons and context neurons.\n */\n int getTotalCount();\n\n /**\n * @return The activation/transfer function for this neuron.\n */\n ActivationFunction getActivation();\n\n /**\n * Finalize the structure of this layer.\n * @param theOwner The neural network that owns this layer.\n * @param theLayerIndex The zero-based index of this layer.\n * @param counts The counts structure to track the weight and neuron counts.\n */\n void finalizeStructure(BasicNetwork theOwner, int theLayerIndex,\n TempStructureCounts counts);\n\n /**\n * Compute this layer.\n */\n void computeLayer();\n\n /**\n * Compute the gradients for this layer.\n * @param calc The gradient calculation utility.\n */\n void computeGradient(GradientCalc calc);\n\n /**\n * @return The start of this layer's weights in the weight vector.\n */\n int getWeightIndex();\n\n /**\n * @return The start of this layer's neurons in the neuron vector.\n */\n int getNeuronIndex();\n\n /**\n * Notification that a training batch is beginning.\n * @param rnd A random number generator, from the trainer.\n */\n void trainingBatch(GenerateRandom rnd);\n\n /**\n * @return The owner of the neural network.\n */\n BasicNetwork getOwner();\n\n /**\n * @return True if this neuron has bias.\n */\n boolean hasBias();\n}", "public void trainNet() {\t\t\n\t\t// Synapses contain the weights for each layer, these are randomised to begin with\n\t\tsynapse0 = new double[X[0].length][hiddenNeurons];\n\t\tpopulateRandom(synapse0, minRandomWeight, maxRandomWeight);\n\t\t\n\t\tsynapse1 = new double[hiddenNeurons][y[0].length];\n\t\tpopulateRandom(synapse1, minRandomWeight, maxRandomWeight);\n\t\t\n\t\t// The layers are the output values of each layer.\n\t\t// They are initialised to nothing to begin with, created properly in the training loop\n\t\tlayer1 = new double[0][0];\n\t\tlayer2 = new double[0][0];\n\t\t\n\t\t// Printing the initial state of the system\n\t\tm.printMatrix(\"X:\", X);\n\t\tm.printMatrix(\"y:\", y);\n\t\t\n\t\t// The training loop\n\t\tfor (int i = 0; i < trainingCycles; i++) {\n\t\t\t// calculate the values of each layer given the inputs and the weights\n\t\t\tlayer1 = forwardPropogate(X, synapse0);\n\t\t\tlayer2 = forwardPropogate(layer1, synapse1);\n\t\t\t\n\t\t\t// Calculate the delta error for each output layer, starting\n\t\t\t// with the bottom working up.\n\t\t\t// This is the difference between the expected values and actual values\n\t\t\t// times the derivative (gradient) of the sigmoid activation function\n\t\t\t// The 1st error comes from y - output\n\t\t\tdouble[][] layer2Delta = m.subtract(y, layer2);\n\t\t\tlayer2Delta = delta(layer2Delta, layer2);\n\t\t\t// subsequent layers come from the delta of the lower layer divided by the weights\n\t\t\tdouble[][] layer1Delta = m.dot(layer2Delta, m.t(synapse1));\n\t\t\tlayer1Delta = delta(layer1Delta, layer1);\n\t\t\t\n\t\t\t// Apply the error gradients to each weight, this moves the value closer to the expected\n\t\t\t// or reduces the error\n\t\t\tsynapse1 = m.add(synapse1, m.scale(m.dot(m.t(layer1), layer2Delta), trainingRate));\n\t\t\tsynapse0 = m.add(synapse0, m.scale(m.dot(m.t(X), layer1Delta), trainingRate));\n\t\t}\n\t\t// Run the input matrix through the net to get outputs for each training value on layer 2\n\t\tdouble[][] testNet = runData(X);\n\t\t// Show the results\n\t\tm.printMatrix(\"Output for X after training:\", testNet);\n\t\tm.printMatrixInts(\"Output for X after training (out of 100:\", testNet);\n\t}", "public void initLayers() {\n\t\t/* Initialise the weights */\n\t Random rng = new Random(1);\n double distributeRandom = 1.0 / SIZE_INPUT_LAYER;\n\t\tweightsOfHiddenLayer = new double[SIZE_HIDDEN_LAYER][SIZE_INPUT_LAYER]; \n\t\tweightsOfOutputLayer = new double[SIZE_OUTPUT_LAYER][SIZE_HIDDEN_LAYER]; \n\t\t/* Initialise the biases */\n\t\tbiasOfHiddenLayer = new double[SIZE_HIDDEN_LAYER];\n\t\tbiasOfOutputLayer = new double[SIZE_OUTPUT_LAYER];\t\t\n\t\tfor(int i = 0; i < SIZE_HIDDEN_LAYER; i++) {\n\t\t\tfor(int j = 0; j < SIZE_INPUT_LAYER; j++) {\n\t\t\t\tweightsOfHiddenLayer[i][j] = rng.nextDouble() * (distributeRandom - (-distributeRandom)) + (-distributeRandom);\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < SIZE_OUTPUT_LAYER; i++) {\n\t\t\tfor(int j = 0; j < SIZE_HIDDEN_LAYER; j++) {\n\t\t\t\tweightsOfOutputLayer[i][j] = rng.nextDouble() * (distributeRandom - (-distributeRandom)) + (-distributeRandom);\n\t\t\t}\n\t\t}\n\t}", "public NeuralNetwork( int neuronsPerLayer[] ) {\n\t\tif (neuronsPerLayer.length < 2)\n\t\t\tthrow new InvalidParameterException(\"Invalid number of layers\");\n\t\t\n\t\tfor (int i=0;i<neuronsPerLayer.length;i++)\n\t\t\tif (neuronsPerLayer[i] < 1)\n\t\t\t\tthrow new InvalidParameterException(\"Invalid number of neurons at layer \"+i);\n\t\t\n\t\t// Put initialization code here \n\t\t// (a) initialize data structures as dictated by neuronsPerLayer array\n\t\t// (b) randomize initial weights, if necessary\n }", "public NeuralNetwork(int inputs, int layer1, int layer2, int layer3, int outputs) {\r\n this.input = inputs;\r\n this.layer1 = layer1;\r\n this.layer2 = layer2;\r\n this.layer3 = layer3;\r\n this.output = outputs;\r\n }", "public void addNeuron(){\n neurons.add(new Neuron(neurons.size(), layerIndex));\n for (Neuron n: upStream.getNeurons()){\n Connection con = new Connection(n, neurons.get(neurons.size()-1));\n n.addDownStream(con);\n neurons.get(neurons.size()-1).addUpStream(con);\n }\n for (Neuron n: downStream.neurons){\n Connection con = new Connection(neurons.get(neurons.size()-1), n);\n n.addUpStream(con);\n neurons.get(neurons.size()-1).addDownStream(con);\n }\n }", "private void buildAndRunNetwork() throws IOException {\n final int numRows = 28;\r\n final int numColumns = 28;\r\n int outputNum = 10; // number of output classes\r\n int batchSize = 128; // batch size for each epoch\r\n int rngSeed = 123; // random number seed for reproducibility\r\n int numEpochs = 15; // number of epochs to perform\r\n double rate = 0.0015; // learning rate\r\n\r\n //Get the DataSetIterators:\r\n DataSetIterator mnistTrain = new MnistDataSetIterator(batchSize, true, rngSeed);\r\n DataSetIterator mnistTest = new MnistDataSetIterator(batchSize, false, rngSeed);\r\n\r\n\r\n log.info(\"Build model....\");\r\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\r\n .seed(rngSeed) //include a random seed for reproducibility\r\n .optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT) // use stochastic gradient descent as an optimization algorithm\r\n .iterations(1)\r\n .activation(Activation.RELU)\r\n .weightInit(WeightInit.XAVIER)\r\n .learningRate(rate) //specify the learning rate\r\n .updater(Updater.NESTEROVS).momentum(0.98) //specify the rate of change of the learning rate.\r\n .regularization(true).l2(rate * 0.005) // regularize learning model\r\n .list()\r\n .layer(0, new DenseLayer.Builder() //create the first input layer.\r\n .nIn(numRows * numColumns)\r\n .nOut(500)\r\n .build())\r\n .layer(1, new DenseLayer.Builder() //create the second input layer\r\n .nIn(500)\r\n .nOut(100)\r\n .build())\r\n .layer(2, new OutputLayer.Builder(LossFunction.NEGATIVELOGLIKELIHOOD) //create hidden layer\r\n .activation(Activation.SOFTMAX)\r\n .nIn(100)\r\n .nOut(outputNum)\r\n .build())\r\n .pretrain(false).backprop(true) //use backpropagation to adjust weights\r\n .build();\r\n\r\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\r\n model.init();\r\n \r\n model.setListeners(new ScoreIterationListener(5)); //print the score with every iteration\r\n\r\n log.info(\"Train model....\");\r\n for( int i=0; i<numEpochs; i++ ){\r\n \tlog.info(\"Epoch \" + i);\r\n model.fit(mnistTrain);\r\n }\r\n\r\n\r\n log.info(\"Evaluate model....\");\r\n Evaluation eval = new Evaluation(outputNum); //create an evaluation object with 10 possible classes\r\n while(mnistTest.hasNext()){\r\n DataSet next = mnistTest.next();\r\n INDArray output = model.output(next.getFeatureMatrix()); //get the networks prediction\r\n eval.eval(next.getLabels(), output); //check the prediction against the true class\r\n }\r\n\r\n log.info(eval.stats());\r\n log.info(\"****************Example finished********************\");\r\n\t}", "@Override\n public void setLayerArrayList(ArrayList<BoardLayerView> layers) {\n this.layers = layers;\n }", "public void setSimultaneousLayers (Vector layers)\n\t{\n\t\tmSimultaneousLayers = layers;\n\t}", "public NeuralNet(int numLayers, int numNodesPerLayer, List<Double> input,\n\t\t\tMap<Integer, List<Double>> expectedOutput) {\n\t\tmomentum = 0.01;\n\t\tlearningRate = 0.2;\n\t\tepoch = 0;\n\t\tlayers = new ArrayList<Layer>();\n\t\tthis.expectedOutput = expectedOutput;\n\t\twhile (numLayers > 0) {\n\t\t\tlayers.add(new Layer(numNodesPerLayer));\n\t\t\tnumLayers--;\n\t\t}\n\t\taddData(input);\n\t}", "public Layer(int numNeurons, int inputsPerNeuron) {\n\n this.numNeurons = numNeurons;\n\n neurons = new Neuron[numNeurons];\n for (int i = 0; i < numNeurons; i++) {\n neurons[i] = new Neuron(inputsPerNeuron);\n }\n }", "public void setLayers( Layer[] layers ) {\n this.layers.clear();\n this.list.clear();\n\n if ( layers != null ) {\n for ( int i = 0; i < layers.length; i++ ) {\n this.layers.put( layers[i].getName(), layers[i] );\n list.add( layers[i] );\n }\n }\n }", "NeuralNet breed(NeuralNet net) {\n // Average Weight-Layer 1\n for (int i = 0; i < weightLayer1.length; i++)\n weightLayer1[i] = (weightLayer1[i] + net.getWeightLayer1()[i]) / 2;\n\n // Average Weight-Layer 2\n for (int i = 0; i < weightLayer2.length; i++)\n weightLayer2[i] = (weightLayer2[i] + net.getWeightLayer2()[i]) / 2;\n\n return this;\n }", "public LayerList( Layer[] layers ) {\n setLayers( layers );\n }", "Neuron setName(String name);", "private void registerNeurons(){\n\t\tneurons.add(new ObstaclesDetectionNeuron(this));\n\t\tneurons.add(new AreaLimitDetectionNeuron(this));\n\t\tneurons.add(new ButtonHandlerNeuron(this));\n\t\tneurons.add(new BeeperNeuron(this));\n\t}", "public ElmanNeuralNetwork(Neuron output, List<Neuron> inputLayer, List<List<Neuron>> hiddenLayers, DoubleUnaryOperator activationFunction) {\n\t\tsuper(output, inputLayer, hiddenLayers, activationFunction);\n\t}", "private void createNetwork(int inputNeuronsNum, int outputNeuronsNum,\n\t\tTransferFunctionType transferFunctionType) {\n\n\t\t// init neuron properties\n\t\tNeuronProperties neuronProperties = new NeuronProperties();\n//\t\tneuronProperties.setProperty(\"bias\", new Double(-Math\n//\t\t\t\t.abs(Math.random() - 0.5))); // Hebbian network cann not work\n\t\t// without bias\n\t\tneuronProperties.setProperty(\"transferFunction\", transferFunctionType);\n\t\tneuronProperties.setProperty(\"transferFunction.slope\", new Double(1));\n\n\t\t// set network type code\n\t\tthis.setNetworkType(NeuralNetworkType.UNSUPERVISED_HEBBIAN_NET);\n\n\t\t// createLayer input layer\n\t\tLayer inputLayer = LayerFactory.createLayer(inputNeuronsNum,\n\t\t\tneuronProperties);\n\t\tthis.addLayer(inputLayer);\n\n\t\t// createLayer output layer\n\t\tLayer outputLayer = LayerFactory.createLayer(outputNeuronsNum,\n\t\t\tneuronProperties);\n\t\tthis.addLayer(outputLayer);\n\n\t\t// createLayer full conectivity between input and output layer\n\t\tConnectionFactory.fullConnect(inputLayer, outputLayer);\n\n\t\t// set input and output cells for this network\n\t\tNeuralNetworkFactory.setDefaultIO(this);\n\n\t\t// set appropriate learning rule for this network\n\t\tthis.setLearningRule(new UnsupervisedHebbianLearning(this));\n\t//this.setLearningRule(new OjaLearning(this));\n\t}", "public void train() {\r\n // For each epoch, call setInputValue on input nodes\r\n for (int i = 0; i < maxEpoch; i++) {\r\n Collections.shuffle(trainingSet, random);\r\n\r\n // get each training instance\r\n for (int k = 0; k < trainingSet.size(); k++) {\r\n\r\n Instance instance = trainingSet.get(k);\r\n\r\n // set the input value in the input nodes from the training instance\r\n for (int j = 0; j < instance.attributes.size(); j++) {\r\n inputNodes.get(j).setInput(instance.attributes.get(j));\r\n }\r\n\r\n //set the target value in output nodes\r\n for (int j = 0; j < instance.classValues.size(); j++) {\r\n outputNodes.get(j).setTargetValue((double) instance.classValues.get(j));\r\n }\r\n\r\n // calculate values for hidden nodes\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n // for each hidden node\r\n Node hiddenNode = hiddenNodes.get(j);\r\n hiddenNode.calculateOutput();\r\n }\r\n\r\n //calculate values for output nodes\r\n double sumOfExponents = 0.0;\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n // for each output node\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.calculateOutput();\r\n sumOfExponents += outputNode.getOutput();\r\n }\r\n\r\n //update output values of output nodes\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.updateOutputValue(sumOfExponents);\r\n }\r\n\r\n // calculate delta values for output nodes\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.calculateDelta();\r\n }\r\n\r\n // calculate delta values for hidden nodes\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n Node hiddenNode = hiddenNodes.get(j);\r\n hiddenNode.calculateDelta();\r\n hiddenNode.resetSumOfPartialDelta();\r\n }\r\n\r\n // update weights going from input layer to hidden layer\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n Node hiddenNode = hiddenNodes.get(j);\r\n hiddenNode.updateWeight(learningRate);\r\n }\r\n\r\n // update weights going from hidden layer to output layer\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.updateWeight(learningRate);\r\n }\r\n\r\n /*if (k == 0 && i==0) {\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n for (NodeWeightPair pair : outputNode.parents) {\r\n System.out.println(pair.weight);\r\n }\r\n }\r\n }\r\n\r\n if (k == 0 && i == 0) {\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n Node hiddenNode = hiddenNodes.get(j);\r\n if (hiddenNode.parents != null) {\r\n for (NodeWeightPair pair : hiddenNode.parents) {\r\n System.out.println(pair.weight);\r\n }\r\n }\r\n }\r\n }*/\r\n }\r\n\r\n /* if (i==29) {\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n for (NodeWeightPair pair : outputNode.parents) {\r\n System.out.println(pair.weight);\r\n }\r\n }\r\n }*/\r\n\r\n double totalLoss = 0.0;\r\n // Calculate loss and sum for each training instance, and then take average\r\n for (int k = 0; k < trainingSet.size(); k++) {\r\n Instance instance = trainingSet.get(k);\r\n totalLoss += loss(instance);\r\n }\r\n totalLoss /= trainingSet.size();\r\n System.out.println(\"Epoch: \" + i + \", \" + \"Loss: \" + String.format(\"%.3e\", totalLoss));\r\n }\r\n }", "public NeuralNet(int[] sizes) {\n _layers = new double[sizes.length][];\n for (int i = 0; i < sizes.length; i++) {\n _layers[i] = new double[sizes[i]];\n }\n\n _weights = new double[sizes.length-1][][];\n _biases = new double[sizes.length - 1][];\n for (int i = 0; i < sizes.length-1; i++) {\n _weights[i] = new double[sizes[i+1]][];\n _biases[i] = new double[sizes[i+1]];\n for (int j = 0; j < sizes[i+1]; j++) {\n _weights[i][j] = new double[sizes[i]];\n }\n }\n }", "public void addNeuron() {\n neurons.add(new Neuron(function));\n }", "public Layer(Layer previousLayer, Neuron bias) {\r\n\t\tthis(previousLayer);\r\n\t\tthis.bias = bias;\r\n\t\tgetNeurons().add(bias); //Add the bias neuron\r\n\t}", "public NeuralNetwork(double learningRate, int[] topology) {\n this.learningRate = learningRate;\n int layerCount = topology.length;\n this.weights = new ArrayList<double[][]>();\n\n // Iterating over layers, skipping the input layer\n for (int i = 0; i < layerCount - 1; i++) {\n int previousLayerNeuronCount = topology[i];\n int layerNeuronCount = topology[i + 1];\n\n // This effectively sets index i\n double[][] layerWeights = new double[layerNeuronCount][previousLayerNeuronCount];\n\n // Iterating over nodes in this layer\n for (int j = 0; j < layerNeuronCount; j++) {\n for (int k = 0; k < previousLayerNeuronCount; k++) {\n layerWeights[j][k] = Math.random() * 2 - 1;\n }\n }\n\n this.weights.add(layerWeights);\n }\n }", "public interface Neuron {\n /**\n * Checks if current neuron is of type NeuronType.INPUT.\n *\n * @return true if it's input neuron, false otherwise\n */\n boolean isInputNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.HIDDEN.\n *\n * @return true if it's hidden neuron, false otherwise\n */\n boolean isHiddenNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.OUTPUT.\n *\n * @return true if it's output neuron, false otherwise\n */\n boolean isOutputNeuron();\n\n /**\n * Checks if current neuron is of type NeuronType.BIAS.\n *\n * @return true if it's bias neuron, false otherwise\n */\n boolean isBiasNeuron();\n\n /**\n * Getter for neuron's name.\n *\n * @return String of this neuron's name\n */\n String getName();\n\n /**\n * Setter for neuron's name.\n *\n * @param name String value as new name for this neuron\n * @return this Neuron instance\n */\n Neuron setName(String name);\n\n /**\n * Gets the List of all incoming neurons (dendrites) for this one.\n * Could be called for all neurons except neurons from input layer and bias neurons,\n * as they can't have incoming connections.\n *\n * @return the List of Neuron instance that leads to this neuron\n */\n List<Neuron> getDendrites();\n\n /**\n * Sets the List of all incoming neurons (dendrites) for this one.\n * Could be called for all neurons except neurons from input layer and bias neurons,\n * as they can't have incoming connections.\n *\n * @return this Neuron instance\n */\n Neuron setDendrites(List<Neuron> dendrites);\n\n /**\n * Gets the current value of this neuron.\n *\n * @return double value of this neuron\n */\n double getAxon();\n\n /**\n * Sets the value for this neuron.\n * Could be called only for input neurons.\n * Hidden neurons and output neurons calculating their values using information from their incoming connections\n * and using activation function, and bias neuron always have axon = 1.\n *\n * @param newValue new axon value for input neuron\n * @return this Neuron instance\n */\n Neuron setAxon(double newValue);\n\n /**\n * Gets the List of all outgoing neurons (synapses) from this one.\n * Could be called for all neurons except of output type as they can't have outgoing connections.\n *\n * @return the List of Neuron instance that this neuron leads to\n */\n List<Neuron> getSynapses();\n\n /**\n * Sets the List of all outgoing neurons (synapses) from this one.\n * Could be called for all neurons except of output type, as they can't have incoming connections.\n *\n * @return this Neuron instance\n */\n Neuron setSynapses(List<Neuron> synapses);\n\n /**\n * Gets the type of this neuron.\n *\n * @return NeuronType value that represents this neuron's type\n */\n NeuronType getType();\n\n /**\n * Computes the value for this neuron from all incoming neurons, using the list of weights passed in this method.\n * The size of weights list should be same as the number of incoming connections for this neuron.\n * Otherwise RuntimeException would be thrown.\n *\n * @param weights the List of double values the represents weights for each incoming connection for this neuron\n * @return new computed soma value\n */\n double calculateSoma(List<Double> weights);\n\n /**\n * Calculates the new value (axon) for this neuron from it's soma, normalized by activation function.\n *\n * @param activationFunction activation function to be used for normalizing soma value\n * @return new axon value for this neuron\n */\n double calculateAxon(ActivationFunction activationFunction);\n\n /**\n * Computes the value for this neuron from all incoming neurons, using the list of weights passed in this method.\n * The size of weights list should be same as the number of incoming connections for this neuron.\n * Otherwise RuntimeException would be thrown.\n * Then calculates the new value (axon) for this neuron from it's soma, normalized by activation function.\n *\n * @param weights the List of double values the represents weights for each incoming connection for this neuron\n * @param activationFunction activation function to be used for normalizing soma value\n * @return new axon value for this neuron\n */\n double calculateSomaAndAxon(List<Double> weights, ActivationFunction activationFunction);\n\n double getDelta();\n\n void setDelta(double delta);\n}", "NeuralNetwork mutate(float rate);", "public DigitGuessNeuralNetwork(){\r\n neuralNetwork=NeuralNetwork.load(MainActivity.neuralNetInputStream);\r\n }", "void addLayer(Layer layer, int whichLayer);", "private void createHiddenLayer() {\r\n\t\tint layers = 1;\r\n\t\t\r\n\t\tint hiddenLayerSize = 0; \r\n\t\tint prevLayerSize = numAttributes;\r\n\t\t\r\n\t\tfor (int layer = 0; layer < layers; layer++) {\r\n\t\t\thiddenLayerSize = (numAttributes + numClasses) / 2;\r\n\t\t\t\r\n\t\t\tfor (int nob = 0; nob < hiddenLayerSize; nob++) {\r\n\t\t\t\tInnerNode temp = new InnerNode(String.valueOf(nextId), random);\r\n\t\t\t\tnextId++;\r\n\t\t\t\taddNode(temp);\r\n\t\t\t\tif (layer > 0) {\r\n\t\t\t\t\t// then do connections\r\n\t\t\t\t\tfor (int noc = innerNodes.size() - nob - 1 - prevLayerSize; noc < innerNodes.size() - nob - 1; noc++) {\r\n\t\t\t\t\t\tNeuralNode.connect(innerNodes.get(noc), temp);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tprevLayerSize = hiddenLayerSize;\r\n\t\t}\r\n\r\n\t\tif (hiddenLayerSize == 0) {\r\n\t\t\tfor (InputNode input : inputs) {\r\n\t\t\t\tfor (NeuralNode node : innerNodes) {\r\n\t\t\t\t\tNeuralNode.connect(input, node);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tfor (NeuralNode input : inputs) {\r\n\t\t\t\tfor (int nob = numClasses; nob < numClasses + hiddenLayerSize; nob++) {\r\n\t\t\t\t\tNeuralNode.connect(input, innerNodes.get(nob));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor (int noa = innerNodes.size() - prevLayerSize; noa < innerNodes.size(); noa++) {\r\n\t\t\t\tfor (int nob = 0; nob < numClasses; nob++) {\r\n\t\t\t\t\tNeuralNode.connect(innerNodes.get(noa), innerNodes.get(nob));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public FeedForwardNeuralNetwork mutate(FeedForwardNeuralNetwork net)\n\t{\n // Copies the net\n FeedForwardNeuralNetwork newNetwork = new FeedForwardNeuralNetwork(net);\n newNetwork.setWeightVector((Vector<Double>)net.getWeightVector().clone());\n\n Vector<Double> newWeights = new Vector<Double>();\n\t\tRandom gen = new Random();\n int mc = gen.nextInt(100), slSize;\n\n if (mc <= 10) { // all the weights in the network\n for(SynapseLayer sl: newNetwork.synapse_layers) {\n slSize = sl.getWeightVector().size() / 20;\n for (Double weight: sl.getWeightVector())\n newWeights.add(weight + gen.nextGaussian()*Math.sqrt(slSize));\n }\n newNetwork.setWeightVector(newWeights);\n }\n else if (mc <= 37) { // all the weights in a randomly selected layer\n SynapseLayer sl = newNetwork.synapse_layers.get(gen.nextInt(newNetwork.synapse_layers.size()));\n for (Double weight: sl.getWeightVector())\n newWeights.add(weight + gen.nextGaussian() * Math.sqrt(sl.getWeightVector().size()/20));\n sl.setWeightVector(newWeights);\n }\n else if (mc <= 64) { // all the weights going into a randomly selecte layer, i can't tell the difference between this and the last one\n SynapseLayer sl = newNetwork.synapse_layers.get(gen.nextInt(newNetwork.synapse_layers.size()));\n for (Double weight: sl.getWeightVector())\n newWeights.add(weight + gen.nextGaussian() * Math.sqrt(sl.getWeightVector().size()/20));\n sl.setWeightVector(newWeights);\n }\n else {\n newWeights = newNetwork.getWeightVector();\n int rInd = gen.nextInt(newWeights.size());\n newWeights.set(rInd, newWeights.get(rInd) + Math.sqrt(gen.nextGaussian()*14));\n newNetwork.setWeightVector(newWeights);\n }\n\t\treturn newNetwork;\n\t}", "public VirtualNetworksLayer(String name, Parameters params) {\n\t\tsuper(name,params);\n\t\tSystem.out.println(\"Virtual networks layer : \"+params);\n\t\trand = new Random();\n\t\tint maxNetNum = 0;\n\t\tString names[] = params.names();\n\t\tint numNets = names.length;\n\t\tnetworks = new short[numNets][2];\n\t\tfor(int i=0;i<numNets;i++) {\n\t\t\tString subName = names[i];\n\t\t\tshort subNumber = (short)0;\n\t\t\ttry {subNumber = params.getShort(subName);}\n\t\t\tcatch(ParamDoesNotExistException pdnee) {\n\t\t\t\tthrow new RuntimeException(\"Invalid parameter for subnet \"+subName+\".\");\n\t\t\t}\n\t\t\tnetworks[i][0] = Short.parseShort(subName);\n\t\t\tnetworks[i][1] = subNumber;\n\t\t\tSystem.out.println(\"-> Add subnetwork: \"+subName+\"-\"+subNumber);\n\t\t\tif(networks[i][0] > maxNetNum) maxNetNum = networks[i][0];\n\t\t}\n\t\tint numNetBytes = (short)(maxNetNum >> 3) + 1;\n\t\tnetBits = new byte[numNetBytes];\n\t\tfor(int i = 0; i < numNets; i++) {\n\t\t\tint nByte = networks[i][0] >> 3; // division par 8\n\t\t\tint nBit = networks[i][0] & 7; // modulo 8\n\t\t\tnetBits[nByte] = (byte)(netBits[nByte] | (1 << nBit)); // set the corresponding bit\n\t\t}\n }", "public NNImpl(ArrayList<Instance> trainingSet, int hiddenNodeCount, Double learningRate, int maxEpoch, Double [][]hiddenWeights, Double[][] outputWeights)\r\n\t{\r\n\t\tthis.trainingSet=trainingSet;\r\n\t\tthis.learningRate=learningRate;\r\n\t\tthis.maxEpoch=maxEpoch;\r\n\r\n\t\t//input layer nodes\r\n\t\tinputNodes=new ArrayList<Node>();\r\n\t\tint inputNodeCount=trainingSet.get(0).attributes.size();\r\n\t\tint outputNodeCount=trainingSet.get(0).classValues.size();\r\n\t\tfor(int i=0;i<inputNodeCount;i++)\r\n\t\t{\r\n\t\t\tNode node=new Node(0);\r\n\t\t\tinputNodes.add(node);\r\n\t\t}\r\n\r\n\t\t//bias node from input layer to hidden\r\n\t\tNode biasToHidden=new Node(1);\r\n\t\tinputNodes.add(biasToHidden);\r\n\r\n\t\t//hidden layer nodes\r\n\t\thiddenNodes=new ArrayList<Node> ();\r\n\t\tfor(int i=0;i<hiddenNodeCount;i++)\r\n\t\t{\r\n\t\t\tNode node=new Node(2);\r\n\t\t\t//Connecting hidden layer nodes with input layer nodes\r\n\t\t\tfor(int j=0;j<inputNodes.size();j++)\r\n\t\t\t{\r\n\t\t\t\tNodeWeightPair nwp=new NodeWeightPair(inputNodes.get(j),hiddenWeights[i][j]);\r\n\t\t\t\tnode.parents.add(nwp);\r\n\t\t\t}\r\n\t\t\thiddenNodes.add(node);\r\n\t\t}\r\n\r\n\t\t//bias node from hidden layer to output\r\n\t\tNode biasToOutput=new Node(3);\r\n\t\thiddenNodes.add(biasToOutput);\r\n\r\n\t\t//Output node layer\r\n\t\toutputNodes=new ArrayList<Node> ();\r\n\t\tfor(int i=0;i<outputNodeCount;i++)\r\n\t\t{\r\n\t\t\tNode node=new Node(4);\r\n\t\t\t//Connecting output layer nodes with hidden layer nodes\r\n\t\t\tfor(int j=0;j<hiddenNodes.size();j++)\r\n\t\t\t{\r\n\t\t\t\tNodeWeightPair nwp=new NodeWeightPair(hiddenNodes.get(j), outputWeights[i][j]);\r\n\t\t\t\tnode.parents.add(nwp);\r\n\t\t\t}\t\r\n\t\t\toutputNodes.add(node);\r\n\t\t}\t\r\n\t}", "public NNImpl(ArrayList<Instance> trainingSet, int hiddenNodeCount, Double learningRate, int maxEpoch, Double [][]hiddenWeights, Double[] outputWeights)\r\n\t{\r\n\t\tthis.trainingSet=trainingSet;\r\n\t\tthis.learningRate=learningRate;\r\n\t\tthis.maxEpoch=maxEpoch;\r\n\r\n\t\t//input layer nodes\r\n\t\tinputNodes=new ArrayList<Node>();\r\n\t\tint inputNodeCount=trainingSet.get(0).attributes.size();\r\n\t\tint outputNodeCount=1;\r\n\t\tfor(int i=0;i<inputNodeCount;i++)\r\n\t\t{\r\n\t\t\tNode node=new Node(0);\r\n\t\t\tinputNodes.add(node);\r\n\t\t}\r\n\r\n\t\t//bias node from input layer to hidden\r\n\t\tNode biasToHidden=new Node(1);\r\n\t\tinputNodes.add(biasToHidden);\r\n\r\n\t\t//hidden layer nodes\r\n\t\thiddenNodes=new ArrayList<Node> ();\r\n\t\tfor(int i=0;i<hiddenNodeCount;i++)\r\n\t\t{\r\n\t\t\tNode node=new Node(2);\r\n\t\t\t//Connecting hidden layer nodes with input layer nodes\r\n\t\t\tfor(int j=0;j<inputNodes.size();j++)\r\n\t\t\t{\r\n\t\t\t\tNodeWeightPair nwp=new NodeWeightPair(inputNodes.get(j),hiddenWeights[i][j]);\r\n\t\t\t\tnode.parents.add(nwp);\r\n\t\t\t}\r\n\t\t\thiddenNodes.add(node);\r\n\t\t}\r\n\r\n\t\t//bias node from hidden layer to output\r\n\t\tNode biasToOutput=new Node(3);\r\n\t\thiddenNodes.add(biasToOutput);\r\n\r\n\r\n\r\n\t\tNode node=new Node(4);\r\n\t\t//Connecting output node with hidden layer nodes\r\n\t\tfor(int j=0;j<hiddenNodes.size();j++)\r\n\t\t{\r\n\t\t\tNodeWeightPair nwp=new NodeWeightPair(hiddenNodes.get(j), outputWeights[j]);\r\n\t\t\tnode.parents.add(nwp);\r\n\t\t}\t\r\n\t\toutputNode = node;\r\n\r\n\t}", "public void setLayerNum(int num) {\n\t\tint diff = num - layerNum;\n\t\tfor(LayerBoundingBox bbox : boundingBoxes) {\n\t\t\tbbox.getBox().y += diff * UIheight;\n\t\t}\n\t\tthis.layerNum = num;\n\t}", "@Override\n public void addAllLayers(Collection<BoardLayerView> layers) {\n this.layers.addAll(layers);\n }", "public void connectNodes(){\n for(int i = 0; i < inputSize; i++){\n network.get(0).add(new InputNode());\n }\n \n for(int i = 1; i < layers; i++){\n \n for(int j = 0; j < layerSize; j++){\n \n network.get(i).add(new Node(network.get(i-1)));\n }\n \n }\n \n }", "public static void fromInputToFirstLayer(Network net, Example example)\r\n\t{\r\n\t\tList<List<Neuron>> neurons = net.getNeurons();\r\n\t\tList<Double> input = example.getInput();\r\n\r\n\t\tfor (int i = 0; i < input.size(); i++)\r\n\t\t\tneurons.get(0).get(i+1).setOutput(input.get(i));\r\n\t}", "private void createNeuralNet() {\n\t\tMSimulationConfig simConfig;\n\t\tHashMap<Integer, MNeuron> neuronMap = new HashMap<Integer, MNeuron>();\n\t\tArrayList<MNeuron> neurons = new ArrayList<MNeuron>();\n\t\tArrayList<MSynapse> synapses = new ArrayList<MSynapse>();\n\n\t\tNeatGenome genome = (NeatGenome) geneticObject;\n\t\t/* Create neurons. */\n\t\tfor (NeatNode nn : genome.getNodes()) {\n\t\t\tint id = nn.getId();\n\t\t\tMNeuronParams params = nn.getParams();\n\t\t\tMNeuronState state =\n\t\t\t\t\tMFactory.createInitialRSNeuronState();\n\n\t\t\t/* Create a neuron. */\n\t\t\tMNeuron neuron = new MNeuron(params, state, id);\n\n\t\t\t/* Add it to temporary NID->Neuron map. */\n\t\t\tneuronMap.put(id, neuron);\n\n\t\t\t/* Add neuron to the list. */\n\t\t\tneurons.add(neuron);\n\t\t}\n\n\t\t/* Create synapses. */\n\t\tfor (GenomeEdge<NeatNode> g : genome.getGene()) {\n\t\t\t/* Get the synapse information. */\n\t\t\tNeatNode preNode = g.getIn();\n\t\t\tNeatNode postNode = g.getOut();\n\t\t\tdouble weight = g.getWeight();\n\t\t\tint delay = g.getDelay();\n\t\t\tInteger preNid = new Integer(preNode.getId());\n\t\t\tInteger postNid = new Integer(postNode.getId());\n\n\t\t\t/* Find the pre and post neurons. */\n\t\t\tMNeuron preNeuron = neuronMap.get(preNid);\n\t\t\tMNeuron postNeuron = neuronMap.get(postNid);\n\n\t\t\t/* Create the synapse. */\n\t\t\tMSynapse synapse = new MSynapse(preNeuron, postNeuron,\n\t\t\t\t\tweight, delay);\n\t\t\t/*\n\t\t\tAdd the synapse to the pre and post neuron synapse list\n\t\t\t */\n\t\t\tArrayList<MSynapse> postSynapses\n\t\t\t= preNeuron.getPostSynapses();\n\t\t\tArrayList<MSynapse> preSynapses\n\t\t\t= postNeuron.getPreSynapses();\n\n\t\t\tpostSynapses.add(synapse);\n\t\t\tpreSynapses.add(synapse);\n\n\t\t\tpreNeuron.setPostSynapses(postSynapses);\n\t\t\tpostNeuron.setPreSynapses(preSynapses);\n\n\t\t\t/* Add the synapse to the list. */\n\t\t\tsynapses.add(synapse);\n\t\t}\n\n\t\t/* Create the network. */\n\t\tthis.mnetwork = new MNetwork(neurons, synapses);\n\n\t\t/* Create and set the simulation configuration parameters. */\n\t\tsimConfig = new MSimulationConfig(20);\n\n\t\t/* Create the simulation instance with our network. */\n\t\tthis.msimulation = new MSimulation(this.mnetwork, simConfig);\n\t}", "public Neuron(Network network, int numberOfInputs, int layerNumber, boolean enableConstAddend) {\n this.network = network;\n this.inputSum = 0.0;\n this.output = 0.0;\n this.delta = 0.0;\n this.inputs = numberOfInputs;\n this.layer = layerNumber;\n this.enableConstAddend = enableConstAddend;\n this.weights = new double[numberOfInputs + 1];\n this.exWeights = new double[numberOfInputs + 1];\n this.changes = new double[numberOfInputs + 1];\n\n setNewWeights(false);\n }", "public void setLayerIndex(int index){\n layerIndex = index;\n }", "private void trainPerceptrons(){\n double activationValues[] = new double[4];\n for(Image image:asciiReader.getTrainingImages()){\n for (int j = 0 ; j < activationValues.length; j++){\n activationValues[j] = activationFunction\n .apply(sumWeights(j,image));\n }\n adjustWeights(activationValues,image);\n }\n }", "public void addNeuron(Neuron neuron) {\r\n\t\tgetNeurons().add(neuron);\r\n\t\tif(prevLayer != null) {\r\n\t\t\tfor(Neuron prevLayerNeurons : prevLayer.getNeurons()) {\r\n\t\t\t\tneuron.addConnection(new Connection(prevLayerNeurons));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setVisibleLayers (Collection<Integer> layersToMakeVisible)\n {\n int selected = getSelectedLayer();\n _tableModel.setVisibilities(layersToMakeVisible);\n setSelectedLayer(selected);\n }", "NNImpl(ArrayList<Instance> trainingSet, int hiddenNodeCount, Double learningRate, int maxEpoch, Random random, Double[][] hiddenWeights, Double[][] outputWeights) {\r\n this.trainingSet = trainingSet;\r\n this.learningRate = learningRate;\r\n this.maxEpoch = maxEpoch;\r\n this.random = random;\r\n\r\n //input layer nodes\r\n inputNodes = new ArrayList<>();\r\n int inputNodeCount = trainingSet.get(0).attributes.size();\r\n int outputNodeCount = trainingSet.get(0).classValues.size();\r\n for (int i = 0; i < inputNodeCount; i++) {\r\n Node node = new Node(0);\r\n inputNodes.add(node);\r\n }\r\n\r\n //bias node from input layer to hidden\r\n Node biasToHidden = new Node(1);\r\n inputNodes.add(biasToHidden);\r\n\r\n //hidden layer nodes\r\n hiddenNodes = new ArrayList<>();\r\n for (int i = 0; i < hiddenNodeCount; i++) {\r\n Node node = new Node(2);\r\n //Connecting hidden layer nodes with input layer nodes\r\n for (int j = 0; j < inputNodes.size(); j++) {\r\n NodeWeightPair nwp = new NodeWeightPair(inputNodes.get(j), hiddenWeights[i][j]);\r\n node.parents.add(nwp);\r\n }\r\n hiddenNodes.add(node);\r\n }\r\n\r\n //bias node from hidden layer to output\r\n Node biasToOutput = new Node(3);\r\n hiddenNodes.add(biasToOutput);\r\n\r\n //Output node layer\r\n outputNodes = new ArrayList<>();\r\n for (int i = 0; i < outputNodeCount; i++) {\r\n Node node = new Node(4);\r\n //Connecting output layer nodes with hidden layer nodes\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n NodeWeightPair nwp = new NodeWeightPair(hiddenNodes.get(j), outputWeights[i][j]);\r\n node.parents.add(nwp);\r\n }\r\n outputNodes.add(node);\r\n }\r\n }", "public NeuronalNetwork(){\n // wie viele Schichten?\n // wie viele Neuronen pro Schicht?\n // welche Gewichte Je neuron je Schicht...\n }", "public void train(int iterations) {\n\t\tNeuron n = new NeuronSigmoid();\n\t\t\n\t\tfor (int i = 0; i < iterations; i++) {\n\t\t\tSystem.out.print(\"Epoch: \" +(i+1));\n\t\t\tdouble[][] localOutput = n.think(this.input,this.weights);\n\n\t\t\tdouble[][] error = Matrix2d.subtract(output, localOutput);\n\t\t\tSystem.out.print(\" Error: \"+calcOverallError(error));\n\t\t\tdouble[][] sigDeriv = Matrix2d.sigmoidDerivative(localOutput);\n\t\t\tdouble[][] prod = Matrix2d.multiply(error, sigDeriv);\n\t\t\tdouble[][] transInput = Matrix2d.transposeMatrix(input);\n\t\t\tdouble[][] adjustment = Matrix2d.dot(transInput, prod);\n\n\t\t\tweights = Matrix2d.add(adjustment, weights);\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "public abstract void initLayers();", "public interface NetworkBuilder {\n\n /**\n * Set neural net layers\n * @param layers an array with the width and depth of each layer\n * @return NetworkBuilder instance\n */\n public abstract NetworkBuilder withLayers(int[] layers);\n\n /**\n * Set the DataSet\n * @param train - training set\n * @param test - test set\n * @return NetworkBuilder instance\n */\n public abstract NetworkBuilder withDataSet(DataSet train, DataSet test);\n\n /**\n * Set the ActivationFunction\n * @param activationFunction\n * @return NetworkBuilder instance\n */\n public abstract NetworkBuilder withActivationFunction(ActivationFunction activationFunction);\n\n /**\n * Set the ErrorMeasure\n * @param errorMeasure\n * @return NetworkBuilder instance\n */\n public abstract NetworkBuilder withErrorMeasure(ErrorMeasure errorMeasure);\n\n /**\n * Train the network\n * @return the trained network for testing\n */\n public abstract FeedForwardNetwork train();\n}", "public void layerUpdate(int layerToBeUpdated ){\n\t\tRandom rand = new Random();\n\n\t\tfor(int i = 0; i < this.layers[layerToBeUpdated].length; i++){\n\t\t\tdouble x = this.layers[layerToBeUpdated][i].getBias();\n\t\t\tfor(int j = 0; j < this.layers[(layerToBeUpdated + 1) % 2].length; j++){\n\n\t\t\t\tif(layerToBeUpdated == 0){\n\t\t\t\t\tx += this.connections[i][j]*this.layers[1][j].getState();\n\t\t\t\t} else {\n\t\t\t\t\tx += this.connections[j][i]*this.layers[0][j].getState();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(Sigmoid.getINSTANCE().apply(x) >= rand.nextDouble()){\n\t\t\t\tthis.layers[layerToBeUpdated][i].setState(1);\n\t\t\t} else {\n\t\t\t\tthis.layers[layerToBeUpdated][i].setState(0);\n\t\t\t}\n\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tNeuralNet n = new NeuralNet(0, NeuralNet.BINARY_NEURON);\t// neural net with 0 hidden layers using Binary Neurons \n\t\tfloat[] inputs = {1, 0};\n\t\tn.addInputLayer(inputs);\t// add the inputs to the neural net model\n\t\t\n\t\tn.addOutputLayer(1);\t\t// add one output in the output layer\n\t\tn.createConnections(1);\t\t// default connections with weights of 1\n\t\tn.connectInputs(1);\t\t\t// connect inputs to 1st layer using weights of 1\n\t\tn.connectOutputs(1);\t\t// connect last (hidden) layer to output layer using weights of 1\n\t\t\n\t\t\n\t\tJFrame frame = new JFrame(\"Neural Net\");\n\t\tframe.setSize(600, 480);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tNeuralNetPanel np = new NeuralNetPanel(n);\n\t\tframe.add(np);\n\t\tframe.setVisible(true);\n\n\t\t((BinaryNeuron)(n.getLayer(1).get(1))).setThreshold(0.9f);\t// OR gate\n\t\t//((BinaryNeuron)(n.getLayer(1).get(0))).setThreshold(1.5f);\t// AND gate\n\t\t\n\t\tn.forwardPropagate();\n\t\tnp.repaint();\n\n\t}", "public void writeNumberOfInNeurals() {\r\n \r\n inputLayer.setNumberOfNeurals(numberOfInputNeurals);\r\n }", "public void switchBaseLayers() {\n\n\t\tgetViewer().setBaseLayerId(baseLayerName);\n\t}", "protected BackpropNeuron createNeuron(int layer, int index)\n\t{\n\t\tif( layer == 0 )\n\t\t\treturn new InputBackpropNeuron(this, this.activationFunction, this.learningRate);\n\t\telse if(layer >= (this.getLayerCount() - 1))\n\t\t\treturn new OutputBackpropNeuron(this, this.activationFunction, this.learningRate);\n\t\telse\n\t\t\treturn new BackpropNeuron(this, this.activationFunction, this.learningRate);\n\t}", "public static MultiLayerNetwork lenetModel(Integer numLabels) {\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(seed)\n .l2(0.005)\n .activation(Activation.RELU)\n .weightInit(WeightInit.XAVIER)\n .updater(new Nesterovs(0.0001, 0.9))\n .list()\n .layer(0, convInit(\"cnn1\", channels, 50, new int[]{5, 5}, new int[]{1, 1}, new int[]{0, 0}, 0))\n .layer(1, maxPool(\"maxpool1\", new int[]{2, 2}))\n .layer(2, conv5x5(\"cnn2\", 100, new int[]{5, 5}, new int[]{1, 1}, 0))\n .layer(3, maxPool(\"maxool2\", new int[]{2, 2}))\n .layer(4, new DenseLayer.Builder().nOut(500).build())\n .layer(5, new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)\n .nOut(numLabels)\n .activation(Activation.SOFTMAX)\n .build())\n .backprop(true).pretrain(false)\n .setInputType(InputType.convolutional(height, width, channels))\n .build();\n\n return new MultiLayerNetwork(conf);\n\n }", "protected void trainModuleNN(ExperienceReplay<TransitionMemory> experienceReplay, T outputOfInterest,\n\t\t\tRelationManager<T> relMngr, int[] numHidden, int epochs, double lRate, double mRate, double sRate) {\n\n\t\tint outKey = getVectorKey(outputOfInterest);\n\t\tint[] inKeys = getInKeys(outputOfInterest, relMngr);\n\t\t\n\t\tfor(int i = 0; i < epochs; i++) {\n\t\t\tIterator<TransitionMemory> iter = experienceReplay.getBatch().iterator();\n\t\t\tdouble inActivations[] = new double[inKeys.length];\n//\t\t\tdouble err = 0;\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tTransitionMemory tm = iter.next();\n\t\t\t\tdouble[] preStateAndAction = tm.getPreStateAndAction();\n\t\t\t\tdouble[] postState = tm.getPostState();\n\t\t\t\tint j = 0;\n\t\t\t\tfor (int k : inKeys) inActivations[j++] = k >= 0 ? preStateAndAction[k] : 0;\n\t\t\t\tif (neuralNet == null) neuralNet = new FFNeuralNetwork(ActivationFunction.SIGMOID0p5,\n\t\t\t\t\t\tinActivations.length, 1, numHidden);\n\t\t\t\tFFNeuralNetwork.feedForward(neuralNet.getInputNodes(), inActivations);\n\t\t\t\tFFNeuralNetwork.backPropagate(neuralNet.getOutputNodes(), lRate, mRate, sRate, postState[outKey]);\n//\t\t\t\terr += FFNeuralNetwork.getError(new double[] {postState[outKey]}, neuralNet.getOutputNodes());\n\t\t\t}\n//\t\t\tSystem.out.println(i + \"\t\" + err / experienceReplay.getSize());\n\t\t}\n//\t\tSystem.out.println();\n\t\tif (rel2ModuleInput.isEmpty()) {\n\t\t\tArrayList<? extends Node> inputNodes = neuralNet.getInputNodes();\n\t\t\tint j = 0;\n\t\t\tfor (IndirectInput rel : relations) rel2ModuleInput.put(rel, inputNodes.get(j++));\n\t\t}\n\t}", "protected void trainModuleNN(Map<DiscreteState, Double> out1f, int[] numHidden,\n\t\t\tint epochs, double lRate, double mRate, double sRate) {\n\t\tfor(int i = 0; i < epochs; i++) {\n//\t\t\tdouble err = 0;\n\t\t\tfor (Map.Entry<DiscreteState, Double> entry : out1f.entrySet()) {\n\t\t\t\tdouble[] input = entry.getKey().getRawState();\n\t\t\t\tif (neuralNet == null) neuralNet = new FFNeuralNetwork(ActivationFunction.SIGMOID0p5,\n\t\t\t\t\t\tinput.length, 1, numHidden);\n\t\t\t\tFFNeuralNetwork.feedForward(neuralNet.getInputNodes(), input);\n\t\t\t\tFFNeuralNetwork.backPropagate(neuralNet.getOutputNodes(), lRate, mRate, sRate, entry.getValue());\n//\t\t\t\terr += FFNeuralNetwork.getError(new double[] {entry.getValue()}, neuralNet.getOutputNodes());\n\t\t\t}\n//\t\t\tSystem.out.println(i + \"\t\" + err / out1f.size());\n\t\t}\n//\t\tfor (Map.Entry<DiscreteState, Double> entry : out1f.entrySet()) {\n//\t\t\tFFNeuralNetwork.feedForward(neuralNet.getInputNodes(), entry.getKey().getRawState());\n//\t\t\tSystem.out.println(entry.getValue() + \"\tvs\t\" + neuralNet.getOutputNodes().get(0).getActivation());\n//\t\t}\n\t\tif (rel2ModuleInput.isEmpty()) {\n\t\t\tArrayList<? extends Node> inputNodes = neuralNet.getInputNodes();\n\t\t\tint j = 0;\n\t\t\tfor (IndirectInput rel : relations) rel2ModuleInput.put(rel, inputNodes.get(j++));\n\t\t}\n\t}", "public void addNeuron(Neuron neuron, double[] weights) {\r\n\t\tgetNeurons().add(neuron);\r\n\t\tif(prevLayer != null) {\r\n\t\t\tif(weights.length == prevLayer.getNeurons().size() ) { \t//Check that we have the correct number of weights\r\n\t\t\t\tList<Neuron> prevLayerNeurons = prevLayer.getNeurons();\t\t\r\n\t\t\t\tfor(int i = hasBias(); i < prevLayerNeurons.size(); i++) {\t\t//Loop through each neuron in the previous layer \r\n\t\t\t\t\tConnection con = new Connection(prevLayerNeurons.get(i));\r\n\t\t\t\t\tneuron.addConnection(con);\t//Add a connection\r\n\t\t\t\t\tcon.setWeight(weights[i]); //Set the connection weight \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthrow new IllegalArgumentException(\"Unequal number of weights compared to neurons in the previous layer\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public encogNeuralNet() {\n initComponents();\n this.INPUT_NODES=13;\n this.OUTPUT_NODES=31;\n this.shutDown=false;\n this.savedInstance= new File(\"network.csv\");\n this.network = new BasicNetwork();\n }", "public void testConvolution() {\n ConvolutionLayer cl1 = new ConvolutionLayer(28, 28, 32, 5, 1, 1, ActivationFunction.RELU);\r\n cl1.setName(\"Conv1\");\r\n PoolLayer pl1 = new PoolLayer(28, 28, 32, 2, 2, 1);\r\n pl1.setName(\"Pool1\");\r\n ConvolutionLayer cl2 = new ConvolutionLayer(14, 14, 32, 64, 5, 1, 1, ActivationFunction.LEAKYRELU);\r\n cl2.setName(\"Conv2\");\r\n PoolLayer pl2 = new PoolLayer(14, 14, 64, 2, 2, 1);\r\n pl2.setName(\"Pool2\");\r\n Layer full = new Layer(pl2.getNrOfOutputs(), 1, 10, ActivationFunction.CESIGMOID);\r\n full.setName(\"full\");\r\n full.setDropRate(.3f);\r\n\r\n DeepLayer dl = new DeepLayer(new LearningRateConst(LEARNING_RATE), cl1, pl1, cl2, pl2, full);\r\n dl.setCostFunction(new CrossEntropyCostFunction());\r\n\r\n BinImageReader bir = new BinImageReader(\"/data/train-images.idx3-ubyte.bin\");\r\n fmatrix images = bir.getResult();\r\n System.out.println(images.getSizeAsString());\r\n\r\n BinLabelReader blr = new BinLabelReader(\"/data/train-labels.idx1-ubyte.bin\");\r\n fmatrix trainSetLabels = blr.getResult();\r\n System.out.println(trainSetLabels.getSizeAsString());\r\n\r\n Random r = new Random(System.currentTimeMillis());\r\n dl.randomizeWeights(r, -.1f, .1f);\r\n\r\n int maxImage = images.getNrOfColumns();\r\n fmatrix image = new fmatrix(1, images.getNrOfColumns());\r\n fmatrix target = new fmatrix(1, 10);\r\n\r\n System.out.println(image.getSizeAsString());\r\n String weightFolder = \"weights/\" + dl.getTrainingStartTimeAsFolder();\r\n for (int i = 0; i < TRAIN_ITERATIONS; ++i) {\r\n target.reset();\r\n for (int b = 0; b < 1; ++b) {\r\n int nextImage = r.nextInt(maxImage);\r\n images.getRow(nextImage, b, image);\r\n\r\n int digit = (int) trainSetLabels.get(0, nextImage);\r\n target.set(b, digit, 1);\r\n }\r\n dl.train(i, image, target, TrainingMode.BATCH);\r\n// if (i == 0) {\r\n// dl.writeOutputImages();\r\n// }\r\n if (i % BATCH_SIZE == 0) {\r\n dl.adaptWeights(i, BATCH_SIZE);\r\n }\r\n\r\n if (i % WEIGHT_DEBUG_CYCLE == 0) {\r\n dl.writeWeightImages(weightFolder, i);\r\n }\r\n }\r\n\r\n dl.writeWeightImages(weightFolder, TRAIN_ITERATIONS);\r\n testDigitRecognition(dl, 1, r);\r\n }", "public void trainingPreprocessing() {\n neuralNetAndDataSet = new NeuralNetAndDataSet(neuralNetwork, trainingSet);\n trainingController = new TrainingController(neuralNetAndDataSet);\n neuralNetwork.getLearningRule().addListener(this);\n trainingController.setLmsParams(0.7, 0.01, 0);\n LMS learningRule = (LMS) this.neuralNetAndDataSet.getNetwork().getLearningRule();\n if (learningRule instanceof MomentumBackpropagation) {\n ((MomentumBackpropagation) learningRule).setMomentum(0.2);\n }\n }", "static void setExample() throws Exception {\n PetriNet net = new PetriNet(2);\n PetriNet.setNet(net);\n \n int[] tmin = {2, 1};\n int[] tdelta = {-1, 1};\n int[] umin = {1, 2};\n int[] udelta = {-1, 2};\n int[] vmin = {1, 0};\n int[] vdelta = {1, 1};\n m0 = new Marking(new int[]{3, 1});\n mF = new Marking(new int[]{0, 4});\n \n PNTransition t = new PNTransition(tmin, tdelta);\n PNTransition u = new PNTransition(umin, udelta);\n PNTransition v = new PNTransition(vmin, vdelta);\n net.addTransition(t);\n net.addTransition(u);\n // net.addTransition(v);\n }", "public NeuralNetworkForwardPropagation() {\n super(\"Neural-network forward-propagation\");\n }", "public void setLayer(int l)\n\t{\n\t\tlayer = l;\n\t}", "private void updateHiddenLayersErrors() {\r\n\t\t// Back iterate hidden layers\r\n\t\tList<Layer> layers = getNetwork().getLayers();\r\n\t\tfor (int i = layers.size() - 2; i > 0; i--) {\r\n\t\t\tLayer layer = layers.get(i);\r\n\t\t\t// Iterate the neurons of the layer\r\n\t\t\tList<Neuron> neurons = layer.getNeurons();\r\n\t\t\tfor (Neuron neuron : neurons) {\r\n\t\t\t\t// Do update.\r\n\t\t\t\tupdateHiddenLayersErrors(neuron);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public NeuralNet(int hiddenNeurons, double trainingRate, \n\t\t\tint trainingCycles, double minRandomWeight, double maxRandomWeight) {\n\t\tm = new MatrixOps();\n\t\t\n\t\tsetParameters(hiddenNeurons, trainingRate,\n\t\t\t\ttrainingCycles, minRandomWeight, maxRandomWeight);\n\t}", "public void FeedForward() {\r\n\t\tfor (int i = 0; i < Node.length; i++) {\r\n\t\t\tNet = Node[i].Threshold;\r\n\r\n\t\t\tfor (int j = 0; j < Node[i].Weight.length; j++)\r\n\t\t\t\tNet = Net + Input[j] * Node[i].Weight[j];\r\n\r\n\t\t\tNode[i].Output = Sigmoid(Net);\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws Exception {\n final int numRows = 28;\n final int numColumns = 28;\n int outputNum = 10; // number of output classes\n int batchSize = 128; // batch size for each epoch\n int rngSeed = 123; // random number seed for reproducibility\n int numEpochs = 15; // number of epochs to perform\n String modelPath = \"モデルパスを入力\";\n\n //Get the DataSetIterators:\n DataSetIterator mnistTrain = new MnistDataSetIterator(batchSize, true, rngSeed);\n DataSetIterator mnistTest = new MnistDataSetIterator(batchSize, false, rngSeed);\n\n\n System.out.println(\"Build model....\");\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(rngSeed) //include a random seed for reproducibility\n // use stochastic gradient descent as an optimization algorithm\n .updater(new Nesterovs(0.006, 0.9))\n .l2(1e-4)\n .list()\n .layer(new DenseLayer.Builder() //create the first, input layer with xavier initialization\n .nIn(numRows * numColumns)\n .nOut(1000)\n .activation(Activation.RELU)\n .weightInit(WeightInit.XAVIER)\n .build())\n .layer(new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD) //create hidden layer\n .nIn(1000)\n .nOut(outputNum)\n .activation(Activation.SOFTMAX)\n .weightInit(WeightInit.XAVIER)\n .build())\n .build();\n\n\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\n model.init();\n //print the score with every 1 iteration\n UIServer uiServer = UIServer.getInstance();\n InMemoryStatsStorage statsStorage = new InMemoryStatsStorage();\n uiServer.attach(statsStorage);\n model.setListeners(new StatsListener(statsStorage),new ScoreIterationListener(1));\n\n System.out.println(\"Train model....\");\n model.fit(mnistTrain, numEpochs);\n\n\n\n\n System.out.println(\"Evaluate model....\");\n Evaluation eval = model.evaluate(mnistTest);\n System.out.println(eval.stats());\n ModelSerializer.writeModel(model, new File(modelPath), false);\n System.out.println(\"****************Example finished********************\");\n\n }", "private void displayNeuralNetwork() {\n \n float[] inputSignals = this.task.getInputSignalsVector();\n \n float positiveState = network.getNeuralLayer().getNeuron(0).getState(inputSignals);\n float negativeState = network.getNeuralLayer().getNeuron(1).getState(inputSignals);\n \n this.neuralLayerPanel.displayNeuralLayer(network.getNeuralLayer().getNeuron(0).getWeightsVector(),\n positiveState,\n network.getNeuralLayer().getNeuron(1).getWeightsVector(),\n negativeState); \n \n String answer = \"not your color\";\n if (positiveState > negativeState) {\n answer = \"your color\";\n }\n this.answerLabel.setText(answer);\n \n }", "@Override\n public void setLayer(int index, BoardLayerView layer) {\n this.layers.set(index, layer);\n }", "public void setNetworth(int value);", "public void addLayersToGUI() {\n Layer previousActiveLayer = activeLayer;\n\n layerList.forEach(this::addLayerToGUI);\n\n setActiveLayer(previousActiveLayer, AddToHistory.NO);\n }", "public void testConvolution2() {\n ConvolutionLayer cl1 = new ConvolutionLayer(28, 28, 32, 5, 1, 1,ActivationFunction.LEAKYRELU);\r\n cl1.setName(\"Conv1\");\r\n PoolLayer pl1 = new PoolLayer(28, 28, 32, 2, 2,1);\r\n pl1.setName(\"Pool1\");\r\n\r\n FuzzyficationLayer fl = new FuzzyficationLayer(pl1.getNrOfOutputs(), 10, 1);\r\n\r\n Layer full = new Layer(fl.getNrOfOutputs(), 0, 10, ActivationFunction.CESIGMOID);\r\n full.setName(\"full\");\r\n full.setDropRate(.003f);\r\n\r\n DeepLayer dl = new DeepLayer(new LearningRateConst(LEARNING_RATE), cl1, pl1, fl, full);\r\n dl.setCostFunction(new CrossEntropyCostFunction());\r\n\r\n BinImageReader bir = new BinImageReader(\"/data/train-images.idx3-ubyte.bin\");\r\n fmatrix images = bir.getResult();\r\n System.out.println(images.getSizeAsString());\r\n\r\n BinLabelReader blr = new BinLabelReader(\"/data/train-labels.idx1-ubyte.bin\");\r\n fmatrix trainSetLabels = blr.getResult();\r\n System.out.println(trainSetLabels.getSizeAsString());\r\n\r\n Random r = new Random(System.currentTimeMillis());\r\n dl.randomizeWeights(r, -.1f, .1f);\r\n\r\n int maxImage = images.getNrOfColumns();\r\n fmatrix image = new fmatrix(1, images.getNrOfColumns());\r\n fmatrix target = new fmatrix(1, 10);\r\n\r\n System.out.println(image.getSizeAsString());\r\n String weightFolder = \"weights/\" + dl.getTrainingStartTimeAsFolder();\r\n for (int i = 0; i < TRAIN_ITERATIONS; ++i) {\r\n target.reset();\r\n for (int b = 0; b < 1; ++b) {\r\n int nextImage = r.nextInt(maxImage);\r\n images.getRow(nextImage, b, image);\r\n\r\n int digit = (int) trainSetLabels.get(0, nextImage);\r\n target.set(b, digit, 1);\r\n }\r\n dl.train(i, image, target, TrainingMode.BATCH);\r\n// if (i == 0) {\r\n// dl.writeOutputImages();\r\n// }\r\n if (i % BATCH_SIZE == 0) {\r\n dl.adaptWeights(i, BATCH_SIZE);\r\n }\r\n\r\n if (i % WEIGHT_DEBUG_CYCLE == 0) {\r\n dl.writeWeightImages(weightFolder, i);\r\n }\r\n }\r\n dl.writeWeightImages(weightFolder, TRAIN_ITERATIONS);\r\n\r\n DeepLayerWriter dlw = new DeepLayerWriter();\r\n Path export = Paths.get(System.getProperty(\"user.home\"), \".nn\", weightFolder, \"final.nn\");\r\n dlw.writeDeepLayer(export, dl);\r\n testDigitRecognition(dl, 1, r);\r\n }", "private void trainNetwork(long iterations) {\n\t\ttrainer.startTraining(network, iterations);\r\n\r\n\t}", "public void activate() {\n neurons.forEach(Neuron::activate);\n }", "public void adjust(double learningRate, boolean layer){\r\n //Layer false == adjust hiddenLayer\r\n //Layer true == adjust outputLayer\r\n if (layer) {\r\n for (int i = 0; i < outputLayer.length; i++) {\r\n for (int j = 0; j < outputLayer[i].weights.length; j++) {\r\n outputLayer[i].weights[j] -= learningRate*outputLayer[i].dw[j];\r\n }\r\n outputLayer[i].bias -= learningRate*outputLayer[i].db;\r\n }\r\n } else {\r\n for (int i = 0; i < hiddenLayer.length; i++) {\r\n for (int j = 0; j < hiddenLayer[i].weights.length; j++) {\r\n hiddenLayer[i].weights[j] -= learningRate*hiddenLayer[i].dw[j];\r\n }\r\n hiddenLayer[i].bias -= learningRate*hiddenLayer[i].db;\r\n }\r\n }\r\n }", "public Neuron(int l, double b){\r\n\t\tbias=b;\r\n\t\t\r\n\t\tif(l==1)//Make all Brain.INPUTS an Input for a first layer Neuron\r\n\t\t\tfor(int n=0; n<Brain.INPUTS; n++)\r\n\t\t\t\tinputs.add(1);\r\n\t\telse for(int n=0; n<Brain.NEURONSPERLAYER; n++) //Randomly choose to make each Neuron in the previous Layer an Input\r\n\t\t\t\tif(Math.random()>=0.5)\r\n\t\t\t\t\tinputs.add(1);\r\n\t\t\t\telse inputs.add(0);\r\n\t\tif(!inputs.contains(1)) //If no inputs were chosen, randomly select one Neuron from the previous Layer as an Input\r\n\t\t\tinputs.set((int)Math.random()*Brain.NEURONSPERLAYER, 1);\r\n\t\t\r\n\t\tweights= new double[inputs.size()]; //Create an array with a randomly 1 generated weight between -5 and 5 for each Input \r\n\t\tfor(int i=0; i<inputs.size(); i++)\r\n\t\t\tweights[i]=Math.random()*10-5;\r\n\t\t\r\n\t}", "public NeuralNetwork createDefaultNet(InputProvider inputProvider) {\r\n\t\tNeuralNetwork net = new NeuralNetwork();\r\n\t\tInputLayer inputLayer = layerFactory.createDefaultInputLayer(inputProvider);\r\n\t\tcreateAndConnectLayers(inputLayer, 2, inputProvider);\r\n\t\tnet.setInputLayer(inputLayer);\r\n\t\treturn net;\r\n\t}", "private void updateHiddenLayersErrors(Neuron neuron) {\r\n\r\n\t\t// Calculate the neuron error by weighting the errors of the output neurons of the output synapses.\r\n\t\tList<Synapse> outputSynapses = neuron.getOutputSynapses();\r\n\t\tdouble weightedOutputError = 0;\r\n\t\tfor (Synapse outputSynapse : outputSynapses) {\r\n\t\t\t// Output neuron and update.\r\n\t\t\tNeuron outputNeuron = outputSynapse.getOutputNeuron();\r\n\t\t\tdouble error = outputNeuron.getError();\r\n\t\t\tdouble weight = outputSynapse.getWeight();\r\n\t\t\tweightedOutputError += (error * weight);\r\n\t\t}\r\n\r\n\t\t// Back propagate weighted output\r\n\t\tOutputFunction outputFunction = neuron.getOutputFunction();\r\n\t\tdouble input = neuron.getInput();\r\n\t\tdouble derivative = outputFunction.getDerivative(input);\r\n\t\tdouble neuronError = weightedOutputError * derivative;\r\n\t\tneuron.setError(neuronError);\r\n\r\n\t\t// Update neuron weights if applicable\r\n\t\tif (updateWeights) {\r\n\t\t\tupdateNeuronWeights(neuron);\r\n\t\t}\r\n\r\n\t\t// Update bias if applicable\r\n\t\tif (updateBiases) {\r\n\t\t\tupdateNeuronBias(neuron);\r\n\t\t}\r\n\t}", "public void backprop(double[] inputs, FeedForwardNeuralNetwork net, boolean verbose)\n {\n //create variables that will be used later\n int[] sizes = net.getSizes();\n int biggestSize = 0;\n for(int k = 0; k < sizes.length; k++)\n {\n if(sizes[k] > biggestSize)\n {\n biggestSize = sizes[k];\n }\n }\n int hiddenLayers = sizes.length - 2;\n //if input or output wrong size, return\n if(inputs.length != sizes[0])\n {\n System.out.println(\"Invalid number of inputs\");\n return;\n }\n\n double[][] allOutputs = new double[sizes.length][biggestSize];\n double[][] allErrors = new double[sizes.length][biggestSize];\n\n //fill out first layer to temp output\n int lastLayer = sizes[0];\n for(int k = 0; k < lastLayer; k++)\n {\n allOutputs[0][k] = inputs[k];\n }\n\n //for each layer after the input\n for(int k = 1; k < hiddenLayers + 2; k++)\n {\n //for each node in that layer\n for(int a = 0; a < sizes[k]; a++)\n {\n //get sum and get activation function result and its derivative\n double sum = 0;\n for(int t = 0; t < lastLayer; t++)\n {\n sum += allOutputs[k - 1][t] * net.getWeight(k - 1, t, k, a);\n }\n sum += net.getBiasNum() * net.getWeight(-1, 0, k, a);\n if(k != hiddenLayers + 1)\n {\n allOutputs[k][a] = net.applyActivationFunction(sum, net.getHiddenActivationFunction());\n allErrors[k][a] = net.applyActivationFunctionDerivative(sum, net.getHiddenActivationFunction());\n }\n else\n {\n allOutputs[k][a] = net.applyActivationFunction(sum, net.getOutputActivationFunction());\n allErrors[k][a] = net.applyActivationFunctionDerivative(sum, net.getOutputActivationFunction());\n }\n }\n lastLayer = sizes[k];\n }\n\n if(verbose)\n {\n System.out.println(\"Outputs\");\n for(int k = 0; k < maxClusters; k++)\n {\n System.out.print(allOutputs[hiddenLayers + 1][k] + \", \");\n }\n System.out.println();\n }\n double[] expectedOutputs = new double[maxClusters];\n int cluster = 0;\n double max = 0;\n for(int k = 0; k < maxClusters; k++)\n {\n expectedOutputs[k] = allOutputs[hiddenLayers + 1][k];\n if(allOutputs[hiddenLayers + 1][k] > max)\n {\n cluster = k;\n max = allOutputs[hiddenLayers + 1][k];\n }\n }\n if(verbose)\n {\n System.out.println(\"Output \" + cluster + \" will be set to max value\");\n System.out.println();\n }\n\n expectedOutputs[cluster] = 4;\n\n\n //go backward from output to first hidden layer\n for(int k = hiddenLayers + 1; k > 0; k--)\n {\n //for each node in that layer\n for(int a = 0; a < sizes[k]; a++)\n {\n //compute error for not output layer\n if(k != hiddenLayers + 1)\n {\n double temp = allErrors[k][a];\n allErrors[k][a] = 0;\n for(int t = 0; t < sizes[k + 1]; t++)\n {\n allErrors[k][a] += net.getWeight(k, t, k + 1, a) * allErrors[k + 1][t];\n }\n allErrors[k][a] *= temp;\n }\n //compute error for output layer\n else\n {\n allErrors[k][a] *= (expectedOutputs[a] - allOutputs[k][a]);\n }\n\n //for each weight node takes as input\n for(int t = 0; t < sizes[k - 1]; t++)\n {\n //find the delta for the weight and apply\n int index = net.getIndex(k - 1, t, k, a);\n double delta = learningRate * allOutputs[k - 1][t] * allErrors[k][a]\n + momentum * lastDeltas[index];\n\n net.setWeight(k - 1, t, k, a, net.getWeight(k - 1, t, k, a) + delta);\n lastDeltas[index] = delta;\n }\n }\n }\n }", "public void train(double[] inputs, double[] outputsTarget) {\n assert(outputsTarget.length == weights.get(weights.size() - 1).length);\n \n ArrayList<double[]> layersOutputs = new ArrayList<double[]>(); \n classify(inputs, layersOutputs);\n\n // Calculate sensitivities for the output nodes\n int outputNeuronCount = this.weights.get(this.weights.size() - 1).length;\n double[] nextLayerSensitivities = new double[outputNeuronCount];\n assert(layersOutputs.get(layersOutputs.size() - 1).length == outputNeuronCount);\n for (int i = 0; i < outputNeuronCount; i++) {\n nextLayerSensitivities[i] = calculateErrorPartialDerivitive(\n layersOutputs.get(layersOutputs.size() - 1)[i],\n outputsTarget[i]\n ) * calculateActivationDerivitive(layersOutputs.get(layersOutputs.size() - 1)[i]);\n assert(!Double.isNaN(nextLayerSensitivities[i]));\n }\n\n for (int weightsIndex = this.weights.size() - 1; weightsIndex >= 0; weightsIndex--) {\n int previousLayerNeuronCount = this.weights.get(weightsIndex)[0].length;\n int nextLayerNeuronCount = this.weights.get(weightsIndex).length;\n assert(nextLayerSensitivities.length == nextLayerNeuronCount);\n\n double[] previousLayerOutputs = layersOutputs.get(weightsIndex);\n double[] previousLayerSensitivities = new double[previousLayerNeuronCount];\n\n // Iterate over neurons in the previous layer\n for (int j = 0; j < previousLayerNeuronCount; j++) {\n\n // Calculate the sensitivity of this node\n double sensitivity = 0;\n for (int i = 0; i < nextLayerNeuronCount; i++) {\n sensitivity += nextLayerSensitivities[i] * this.weights.get(weightsIndex)[i][j];\n }\n sensitivity *= calculateActivationDerivitive(previousLayerOutputs[j]);\n assert(!Double.isNaN(sensitivity));\n previousLayerSensitivities[j] = sensitivity;\n\n for (int i = 0; i < nextLayerNeuronCount; i++) {\n double weightDelta = learningRate * nextLayerSensitivities[i] * calculateActivation(previousLayerOutputs[j]);\n this.weights.get(weightsIndex)[i][j] += weightDelta;\n assert(!Double.isNaN(this.weights.get(weightsIndex)[i][j]) && !Double.isInfinite(this.weights.get(weightsIndex)[i][j]));\n }\n }\n\n nextLayerSensitivities = previousLayerSensitivities;\n }\n }", "public void setConstrainedDeformationLayers (Vector layers)\n\t{\n\t\tmConstrainedDeformationLayers = layers;\n\t}", "public void addLayer(String layer) {\n layers.add(layer);\n }", "public TwoLayerNN(int nodes) {\n\t\tnumHidden = nodes;\n\t\thiddenWeights = new ArrayList<ArrayList<Double>>();\n\t\tlayerTwoWeights = new ArrayList<Double>();\n\t\trandom = new Random();\n\t\thiddenOutputs = new ArrayList<ArrayList<Double>>();\n\n\t}", "private void setNN(int NN) {\n\t\tCMN.NN = NN;\n\t}", "public void setNetx(Neat neat) {\n\t\t\n\t}", "private void addLayers() throws InitializeLayerException {\n this.targetParcelsLayer = new CadastreChangeTargetCadastreObjectLayer();\n this.getMap().addLayer(targetParcelsLayer);\n }", "public static void train(MultiLayerPerceptron mlp, int epochs){\n for(int i = 0; i < epochs; i++){\n /**\n * Randomize the order of the samples.\n */\n trainingSet.shuffle();\n for(int j = 0; j < trainingSet.getTests().size(); j++){\n ArrayList<Float> actualOutput = mlp.calculateOutput(trainingSet.getInput(j));\n ArrayList<Float> expectedOutput = trainingSet.getOutput(j);\n\n mlp.modifyWeights(actualOutput,expectedOutput);\n }\n }\n }", "public UnsupervisedHebbianNetwork(int inputNeuronsNum, int outputNeuronsNum) {\n\t\tthis.createNetwork(inputNeuronsNum, outputNeuronsNum,\n\t\t\tTransferFunctionType.LINEAR);\n\n\t}", "public void activate() {\n double dotProduct = 0;\n for (Synapse s : super.getSynapsesIn()) {\n dotProduct += s.getNeuronFrom().getOutput() * s.getWeight();\n }\n super.setOutput(sigmoidFunction(dotProduct));\n }", "public void incrementLayer () {\n layer++;\n }", "protected void setupSky() {\r\n\t\t// Change atmosphere SkyGradientLayer for SkyColorLayer\r\n\t\tLayerList layers = getWWD().getModel().getLayers();\r\n\t\tfor (int i = 0; i < layers.size(); i++) {\r\n\t\t\tif (layers.get(i) instanceof SkyGradientLayer) {\r\n\t\t\t\tlayers.set(i, new SkyColorLayer());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void setImage(Layer layer, Image image);", "private void createLayers() {\n mAktieCubeLayers[kUp] = new AktieCubeLayer(AktieCubeLayer.kAxisY);\n mAktieCubeLayers[kDown] = new AktieCubeLayer(AktieCubeLayer.kAxisY);\n mAktieCubeLayers[kLeft] = new AktieCubeLayer(AktieCubeLayer.kAxisX);\n mAktieCubeLayers[kRight] = new AktieCubeLayer(AktieCubeLayer.kAxisX);\n mAktieCubeLayers[kFront] = new AktieCubeLayer(AktieCubeLayer.kAxisZ);\n mAktieCubeLayers[kBack] = new AktieCubeLayer(AktieCubeLayer.kAxisZ);\n mAktieCubeLayers[kMiddle] = new AktieCubeLayer(AktieCubeLayer.kAxisX);\n mAktieCubeLayers[kEquator] = new AktieCubeLayer(AktieCubeLayer.kAxisY);\n mAktieCubeLayers[kSide] = new AktieCubeLayer(AktieCubeLayer.kAxisZ);\n }", "public void writeNumberOfOutNeurals() {\r\n \r\n outputLayer.setNumberOfNeurals(numberOfOutputNeurals);\r\n }", "public void setLayer(Layer layer) {\n _layer = layer;\n setDirty(true);\n }", "public void train()\r\n\t{\r\n\t\tfor(int i=0; i < this.maxEpoch; i++)\r\n\t\t{\r\n\t\t\tfor(Instance temp_example: this.trainingSet)\r\n\t\t\t{\r\n\t\t\t\tdouble O = calculateOutputForInstance(temp_example);\r\n\t\t\t\tdouble T = temp_example.output;\r\n\t\t\t\tdouble err = T - O;\r\n\r\n\t\t\t\t//w_jk (hidden to output)\r\n\t\t\t\tdouble g_p_out = (outputNode.getSum() <= 0) ? 0 : 1;\r\n\t\t\t\tfor(NodeWeightPair hiddenNode: outputNode.parents)\r\n\t\t\t\t{\r\n\t\t\t\t\thiddenNode.set_deltaw_pq(this.learningRate*\r\n\t\t\t\t\t\t\thiddenNode.node.getOutput()*err*g_p_out);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//w_ij (input to hidden)\r\n\t\t\t\tint hid_count =0;\r\n\t\t\t\tfor(Node hiddenNode: hiddenNodes){\r\n\t\t\t\t\tdouble g_p_hid = (hiddenNode.getSum() <= 0) ? 0 : 1;\r\n\t\t\t\t\tif(hiddenNode.getType()==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor(NodeWeightPair inputNode: hiddenNode.parents){\r\n\t\t\t\t\t\t\tdouble a_i = inputNode.node.getOutput();\r\n\t\t\t\t\t\t\tinputNode.set_deltaw_pq\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\tthis.learningRate*\r\n\t\t\t\t\t\t\t\t\ta_i*g_p_hid*(err*\r\n\t\t\t\t\t\t\t\t\toutputNode.parents.get(hid_count).weight*\r\n\t\t\t\t\t\t\t\t\tg_p_out)\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\thid_count++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// for all w_pq, update weights\r\n\t\t\t\tfor(Node hiddenNode: hiddenNodes){\r\n\t\t\t\t\tif(hiddenNode.getType()==2){\r\n\t\t\t\t\t\tfor(NodeWeightPair inputNode: hiddenNode.parents){\r\n\t\t\t\t\t\t\tinputNode.weight += inputNode.get_deltaw_pq();\r\n\t\t\t\t\t\t\tinputNode.set_deltaw_pq(new Double (0.00));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor(NodeWeightPair hiddenNode: outputNode.parents)\r\n\t\t\t\t{\r\n\t\t\t\t\thiddenNode.weight += hiddenNode.get_deltaw_pq();\r\n\t\t\t\t\thiddenNode.set_deltaw_pq(new Double (0.00));\r\n\t\t\t\t}\r\n\r\n\t\t\t} // end of an instance \r\n\t\t} // end of an epoch\r\n\t}", "private void forwardPropagation(int[] trainingData, double[] activationsOfHiddenLayer, double[] outputActivations) {\n\t\tdouble[] hiddenActivations = new double[SIZE_HIDDEN_LAYER];\n\n\t\tfor(int indexHidden = 0; indexHidden < SIZE_HIDDEN_LAYER; indexHidden++) {\n\t\t\thiddenActivations[indexHidden] = 0;\n\t\t\tfor(int indexInput = 0; indexInput < SIZE_INPUT_LAYER; indexInput++) {\n\t\t\t\thiddenActivations[indexHidden] += weightsOfHiddenLayer[indexHidden][indexInput] * trainingData[indexInput];\n\t\t\t}\t\n\t\t\thiddenActivations[indexHidden] += biasOfHiddenLayer[indexHidden];\n//\t\t\t// We then call the activation function \n\t\t\thiddenActivations[indexHidden] = tanh(hiddenActivations[indexHidden]);\n\t\t\tactivationsOfHiddenLayer[indexHidden] = hiddenActivations[indexHidden];\n\n\t\t}\n\t\t\t\t\n\t\tfor(int indexOuput = 0; indexOuput < SIZE_OUTPUT_LAYER; indexOuput++) {\n\t\t\toutputActivations[indexOuput] = 0;\n\t\t\tfor(int indexHidden = 0; indexHidden < SIZE_HIDDEN_LAYER; indexHidden ++) {\n\t\t\t\toutputActivations[indexOuput] += weightsOfOutputLayer[indexOuput][indexHidden] * hiddenActivations[indexHidden];\n\t\t\t}\t\n\t\t\toutputActivations[indexOuput] += biasOfOutputLayer[indexOuput];\n\t\t}\n\t\tsoftmax(outputActivations);\t\n\t}", "public BackPropagationLearningProcess(NeuralNetwork network) {\r\n\t\tsuper(network);\r\n\t}" ]
[ "0.6656685", "0.65688574", "0.64980674", "0.63397205", "0.63051295", "0.6219697", "0.620754", "0.6129296", "0.6084068", "0.6010066", "0.60015947", "0.5997156", "0.59563935", "0.588572", "0.5877819", "0.58089346", "0.5780631", "0.57670563", "0.57668483", "0.5759975", "0.57530445", "0.5725704", "0.57225025", "0.5693253", "0.56890666", "0.56769526", "0.5652858", "0.564302", "0.5642984", "0.5637809", "0.5626252", "0.56107163", "0.55995923", "0.5592226", "0.5584973", "0.55809397", "0.55722016", "0.55575097", "0.5547889", "0.5544513", "0.5540204", "0.5534882", "0.55213153", "0.5502997", "0.5493146", "0.54878426", "0.54825765", "0.54711366", "0.5446325", "0.5443304", "0.5432107", "0.5431853", "0.5426323", "0.54140437", "0.5395632", "0.5388445", "0.537442", "0.53613675", "0.53561956", "0.53516877", "0.53514487", "0.5346638", "0.53463215", "0.534466", "0.53436697", "0.53362256", "0.53316504", "0.5325746", "0.53072715", "0.5291625", "0.5286149", "0.52852994", "0.5279678", "0.5255257", "0.5255252", "0.5248828", "0.524134", "0.5229183", "0.52179897", "0.518718", "0.5182988", "0.51772016", "0.5176268", "0.5169228", "0.5150238", "0.51362246", "0.51290685", "0.5123094", "0.5119428", "0.5112789", "0.5108823", "0.5105733", "0.5104726", "0.5099162", "0.5076969", "0.5063429", "0.5042381", "0.5042342", "0.5015254", "0.5007843" ]
0.6822673
0
=========================================================== Constructors =========================================================== =========================================================== Getter & Setter ===========================================================
public static void setAnimationInterval(final double pAnimationInterval) { MoinRenderer.sAnimationInterval = (long) (pAnimationInterval * MoinRenderer.NANOSECONDSPERSECOND); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private TMCourse() {\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n void init() {\n }", "@Override\n public void init() {}", "@Override\n public void init() {\n }", "@Override\n protected void init() {\n }", "@Override\n public void init() {\n\n }", "public CyanSus() {\n\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "public PSRelation()\n {\n }", "@Override public void init()\n\t\t{\n\t\t}", "@Override\n public void init() {\n }", "protected GeometricObject() \n\t{\n\t\tdateCreated = new java.util.Date();\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "public Cohete() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public void init() {\n \n }", "public Ov_Chipkaart() {\n\t\t\n\t}", "public _355() {\n\n }", "public Pitonyak_09_02() {\r\n }", "private Rekenhulp()\n\t{\n\t}", "public Coche() {\n super();\n }", "public CSSTidier() {\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public RngObject() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "public void init() {\r\n\t\t// to override\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public AirAndPollen() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "private NfkjBasic()\n\t\t{\n\t\t\t\n\t\t}", "public SgaexpedbultoImpl()\n {\n }", "public Libro() {\r\n }", "public mapper3c() { super(); }", "public Clade() {}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public Trening() {\n }", "public JSFOla() {\n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "public contrustor(){\r\n\t}", "@Override\n\t\tprotected void initialise() {\n\n\t\t}", "private void init() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "private Value() {\n\t}", "private IndexBitmapObject() {\n\t}", "public Curso() {\r\n }", "private MApi() {}", "@Override\n public void initialize() {\n \n }", "@Override\n public void initialize() { \n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public Odontologo() {\n }", "@Override\n public void init() {\n\n super.init();\n\n }", "public Chauffeur() {\r\n\t}", "public Rol() {}", "public void init() {\r\n\r\n\t}", "public Chick() {\n\t}", "public void init() {\n\t\t}", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "public Tbdtokhaihq3() {\n super();\n }", "public void init() {\n\t\t\n\t}", "public Livro() {\n\n\t}" ]
[ "0.79039913", "0.7099349", "0.70333666", "0.68820447", "0.68523604", "0.6841289", "0.6835635", "0.6830615", "0.6788705", "0.6781195", "0.67745984", "0.6760455", "0.6743112", "0.6743112", "0.6743112", "0.6720078", "0.6703861", "0.66745126", "0.6673958", "0.6668449", "0.6664658", "0.6664658", "0.6663137", "0.66538143", "0.66538143", "0.66538143", "0.66538143", "0.66538143", "0.66538143", "0.6649119", "0.6649119", "0.6649119", "0.6649119", "0.6649119", "0.66135305", "0.66115594", "0.6601814", "0.65869176", "0.6580812", "0.6578675", "0.65673786", "0.6564755", "0.6552245", "0.6547494", "0.65458", "0.65458", "0.65458", "0.6534003", "0.6534003", "0.65324473", "0.65248024", "0.6516744", "0.65119344", "0.6511273", "0.6508489", "0.64866066", "0.6484223", "0.6478826", "0.6476385", "0.6474623", "0.647371", "0.64701533", "0.64701533", "0.64701533", "0.64562804", "0.64457285", "0.6444131", "0.6444131", "0.6444131", "0.6439368", "0.64259475", "0.6417693", "0.6414029", "0.6414029", "0.6410569", "0.64057565", "0.64048564", "0.6403266", "0.640209", "0.64020574", "0.63995385", "0.6389229", "0.6377471", "0.63771236", "0.6375071", "0.6374919", "0.63748604", "0.6374417", "0.6374386", "0.6374386", "0.6374386", "0.6374386", "0.6374386", "0.6374386", "0.6374386", "0.6374386", "0.6374386", "0.6374386", "0.6369246", "0.63607085", "0.6354163" ]
0.0
-1
=========================================================== Methods for/from SuperClass/Interfaces ===========================================================
@Override public void onSurfaceCreated(final GL10 pGL10, final EGLConfig pEGLConfig) { Moin2dJni.init(this.mScreenWidth, this.mScreenHeight); this.mLastTickInNanoSeconds = System.nanoTime(); if(mlogic != null) { mlogic.onCreate(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public boolean isInterface() { return false; }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public void Interior() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public interface PhrasingContent extends ContentInterface {\r\n\r\n}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "public void interfaceMethod() {\n\t\tSystem.out.println(\"overriden method from interface\");\t\t\r\n\t}", "@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}", "@Override\n protected void checkSubclass() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void type() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public interface BaseObject {\n}", "public interface AbstractC1953c50 {\n}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n void init() {\n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void interfaceMethod() {\n\t\tSystem.out.println(\"childClass - interfaceMethod\");\r\n\t\tSystem.out.println(\"Val of variable from interface: \" + DemoInterface.val );\r\n\t}", "@Override\n public void init() {\n }", "public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }", "@Override\n\tpublic void implements_(JDefinedClass cls) {\n\n\t}", "@Override // opcional\n public void init(){\n\n }", "public interface IOverride extends IMeasurement_descriptor{\n\n\tpublic IRI iri();\n\n}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "public interface BaseItem {\n}", "public interface AbstractC03680oI {\n}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "public interface AbstractC2502fH1 extends IInterface {\n}", "@Override\n public String toString() {\n return (super.toString());\n\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n protected void checkSubclass() {\n }", "public InterfaceAbout() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\r\n\tprotected void checkSubclass() {\n\t}", "@Override\n public String toString () {\n return super.toString();\n }", "@Override\n public void init() {}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "@Override\r\n protected void checkSubclass() {\n }", "public interface Position {}", "private interface Base {\n\t\tString getId();\n\t\tvoid setId(String identifier);\n\t\tboolean isValid();\n\t\tvoid setValid(boolean valid);\n\t}", "public void buildSuperInterfacesInfo() {\n\t\twriter.writeSuperInterfacesInfo();\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "@Override\n\t\tpublic void visit(int version, int access, String name, String signature, String superName, String[] interfaces) \n\t\t{\n\t\t\tsuper.visit(version, Constants.ACC_PUBLIC, className, (String)null, this.superType.getInternalName(), interfaces);\n\t\t}", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "@Override\n public void init() {\n\n super.init();\n\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}" ]
[ "0.66493845", "0.6629024", "0.6452968", "0.642971", "0.63373286", "0.63248324", "0.63248324", "0.62520915", "0.62315", "0.6216611", "0.61964023", "0.61958927", "0.6175072", "0.6166632", "0.61429137", "0.61355686", "0.6113214", "0.61115307", "0.61108357", "0.6107379", "0.6069922", "0.60681385", "0.6065376", "0.6065376", "0.6059947", "0.6057818", "0.60497934", "0.6041445", "0.6036967", "0.6026836", "0.6023866", "0.6013921", "0.6004279", "0.6000575", "0.5985361", "0.5984514", "0.5981644", "0.59810567", "0.5980259", "0.59587705", "0.5947474", "0.5942499", "0.59375465", "0.5935501", "0.59342206", "0.59342206", "0.59342206", "0.59342206", "0.59342206", "0.59342206", "0.59342206", "0.59342206", "0.59342206", "0.59342206", "0.59342206", "0.59342206", "0.59342206", "0.59342206", "0.59342206", "0.59342206", "0.59342206", "0.592891", "0.5926192", "0.5923708", "0.59022397", "0.59022397", "0.59022397", "0.5895244", "0.5890791", "0.5889728", "0.5889728", "0.5889728", "0.5889728", "0.5889728", "0.5889728", "0.5889728", "0.5889728", "0.5889728", "0.5889728", "0.5889728", "0.5889728", "0.5889728", "0.5889728", "0.5882323", "0.5879652", "0.5872507", "0.58546823", "0.5853801", "0.5851837", "0.5850127", "0.5850127", "0.5850127", "0.58495927", "0.584615", "0.5841367", "0.5839545", "0.5839471", "0.58363384", "0.5836092", "0.5830751", "0.58264405" ]
0.0
-1
/ FPS controlling algorithm is not accurate, and it will slow down FPS on some devices. So comment FPS controlling code. / final long nowInNanoSeconds = System.nanoTime(); final long interval = nowInNanoSeconds this.mLastTickInNanoSeconds; should render a frame when onDrawFrame() is called or there is a "ghost"
@Override public void onDrawFrame(final GL10 gl) { Moin2dJni.nativeDraw(); /* // fps controlling if (interval < Cocos2dxRenderer.sAnimationInterval) { try { // because we render it before, so we should sleep twice time interval Thread.sleep((Cocos2dxRenderer.sAnimationInterval - interval) / Cocos2dxRenderer.NANOSECONDSPERMICROSECOND); } catch (final Exception e) { } } this.mLastTickInNanoSeconds = nowInNanoSeconds; */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void fps(Graphics2D g2d) {\n\n long currentRender = System.currentTimeMillis();\n if (lastRender > 0) {\n fpsHistory.add(1000.0f / (currentRender - lastRender));\n if (fpsHistory.size() > 100) {\n fpsHistory.remove(0); // remove oldest\n }\n float avg = 0.0f;\n for (float fps : fpsHistory) {\n avg += fps;\n }\n avg /= fpsHistory.size();\n String str = String.format(\"Average FPS = %.1f , Last Interval = %d ms\",\n avg, (currentRender - lastRender));\n g2d.setColor(Color.CYAN);\n g2d.setFont(g2d.getFont().deriveFont(18.0f));\n int strWidth = g2d.getFontMetrics().stringWidth(str);\n int strHeight = g2d.getFontMetrics().getHeight();\n g2d.drawString(str, (GAME_WIDTH - strWidth) / 2, strHeight + 50);\n }\n lastRender = currentRender;\n\n numOfBulletObject.paintCannonBullet(g2d);\n numOfBulletObject.paintMachineGunBullet(g2d);\n numOfBulletObject.paintHealth(g2d);\n numOfBulletObject.paintLife(g2d);\n }", "public void runAnimation() {\n int fps = 0;\n int frames = 0;\n long totalTime = 0;\n long curTime = System.currentTimeMillis();\n long lastTime = curTime;\n // Start the loop.\n while (true) {\n try {\n // Calculations for FPS.\n lastTime = curTime;\n curTime = System.currentTimeMillis();\n totalTime += curTime - lastTime;\n if (totalTime > 1000) {\n totalTime -= 1000;\n fps = frames;\n frames = 0;\n }\n ++frames;\n // clear back buffer...\n g2d = buffer.createGraphics();\n g2d.setColor(Color.WHITE);\n g2d.fillRect(0, 0, X, Y);\n // Draw entities\n ArrayList<Spawn> living = new ArrayList<Spawn>();\n if (engine != null) {\n living.addAll(engine.getFullState().living);\n }\n for (int i = 0; i < living.size(); i++) {\n g2d.setColor(Color.BLACK);\n Spawn s = living.get(i);\n g2d.fill(new Ellipse2D.Double(s.getX(), s.getY(), s.getRadius() * 2, s.getRadius() * 2));\n }\n for (int i = 0; i < living.size(); i++) {\n g2d.setColor(Color.RED);\n Spawn s = living.get(i);\n g2d.drawLine((int) (s.getCenterX()), (int) (s.getCenterY()), (int) (s.getCenterX() + s.vx()), (int) (s.getCenterY() + s.vy()));\n }\n // display frames per second...\n g2d.setFont(new Font(\"Courier New\", Font.PLAIN, 12));\n g2d.setColor(Color.GREEN);\n g2d.drawString(String.format(\"FPS: %s\", fps), 20, 20);\n // Blit image and flip...\n graphics = b.getDrawGraphics();\n graphics.drawImage(buffer, 0, 0, null);\n if (!b.contentsLost())\n b.show();\n // Let the OS have a little time...\n Thread.sleep(15);\n } catch (InterruptedException e) {\n } finally {\n // release resources\n if (graphics != null)\n graphics.dispose();\n if (g2d != null)\n g2d.dispose();\n }\n }\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate void printFPS() {\r\n\t\tlong now = System.currentTimeMillis();\r\n if(now - lastFrame >= 1000l) {\r\n Log.d(TAG, fps + \" fps\");\r\n fps = 0;\r\n lastFrame = now;\r\n } else {\r\n \tfps++;\r\n }\r\n\t}", "@Override\n\tpublic void run() {\n\t\trequestFocus(); //So window is selected when it opens\n\t\tfps = 0; //Counts current fps\n\t\ttimer = System.currentTimeMillis(); //Keep track of current time in milliseconds, used to display FPS\n\t\tlastTime = System.nanoTime(); //Keep track of the last time the method was called\n\t\ttargetTick = FPS; //Set desired FPS\n\t\td = 0; //Varible used to keep track if it is running at desired FPS/used to compensate\n\t\tinterval = 1000000000/targetTick; //Interval between ticks\n\n\t\twhile(isRunning) {\n\t\t\tnow = System.nanoTime(); //Capture the time now\n\t\t\td += (now - lastTime)/interval; //Calculate d\n\t\t\tlastTime = now; //Update lastTime\n\n\t\t\t//If d is >= 1 we need to render to stay on fps target\n\t\t\twhile(d >= 1) {\n\t\t\t\ttick(); //Call tick method\n\t\t\t\trender(); //Call render method\n\t\t\t\tfps++; //Increment fps\n\t\t\t\td--; //Decrement d\n\t\t\t}\n\n\t\t\t//If the difference between the current system time is greater than 1 second than last time check, print the fps, reset fps to 0, and increase timer by 1 second\n\t\t\tif(System.currentTimeMillis() - timer >= 1000) {\n\t\t\t\tfps = 0; //Set fps to 0\n\t\t\t\ttimer+=1000; //Increase timer by 1 second\n\t\t\t}\n\t\t}\n\t\tstop(); //Stop the game\n\t}", "public void run() {\r\n\t\tint frames = 0;\r\n\t\tdouble unprocessedSeconds = 0;\r\n\t\tlong previousTime = System.nanoTime();\r\n\t\tdouble secondsPerTick = 1 / 60.0;\r\n\t\tint tickCount = 0;\r\n\t\tboolean ticked = false;\r\n\t\t\r\n\t\twhile (running) {\r\n\t\t\tlong currentTime = System.nanoTime();\r\n\t\t\tlong passedTime = currentTime - previousTime;\r\n\t\t\tpreviousTime = currentTime;\r\n\t\t\tunprocessedSeconds += passedTime / 1000000000.0;\r\n\t\t\trequestFocus();//has the window selected when program is lanched\r\n\r\n\t\t\twhile (unprocessedSeconds > secondsPerTick) {\r\n\t\t\t\tunprocessedSeconds -= secondsPerTick;\r\n\t\t\t\tticked = true;\r\n\t\t\t\ttickCount++;\r\n\t\t\t\tif (tickCount % 3 == 0) {//calls on tick 20x/second\r\n\t\t\t\t\ttick();\r\n\t\t\t\t\tnumberOfTicks++;\r\n\t\t\t\t}\r\n\t\t\t\tif (tickCount % 60 == 0) {\r\n\t\t\t\t\t//System.out.println(frames + \"fps\");\r\n\t\t\t\t\tfps = frames;\r\n\t\t\t\t\tpreviousTime += 1000;\r\n\t\t\t\t\tframes = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\trender();\r\n\t\t\tframes++;\r\n\t\t}\r\n\t}", "void doOneFrame(DrawSurface d, double dt);", "public void run(){\n this.requestFocus();\n long lastTime = System.nanoTime();\n double amountOfTicks = 60.0;\n double ns = 1000000000 / amountOfTicks;\n double delta = 0;\n long timer = System.currentTimeMillis();\n int frames = 0;\n\n while(isRunning){\n long now = System.nanoTime();\n delta += (now - lastTime) / ns;\n lastTime = now;\n while(delta >= 1){\n tick();\n delta--;\n }\n render();\n frames++;\n\n if(System.currentTimeMillis() - timer > 1000){\n timer += 1000;\n frames = 0;\n }\n }\n stop();\n }", "void drawCurrentTick();", "public void tick() {\n long elapsed = (System.nanoTime()-startTime)/1000000;\n\n if(elapsed>delay) {\n currentFrame++;\n startTime = System.nanoTime();\n }\n if(currentFrame == images.length){\n currentFrame = 0;\n }\n }", "@Override\n\tpublic void draw(GraphicsContext gc) {\n\t\tif (frameTick > 30) {\n\t\t\tframeTick = 0;\n\t\t\tframeState = (frameState + 1) % 2;\n\t\t}\n\t\tgc.drawImage(imageFrame.get(frameState), position.first - GameCanvas.getCurrentInstance().getStartX(),\n\t\t\t\tposition.second);\n\t\tframeTick++;\n\t}", "public void tick() {\n\t\tmFrameCount++;\n\t\t\n\t\tif (mStopwatch.getElapsedTime() > 1000) {\n\t\t\tmFramesPerSecond = mFrameCount;\n\t\t\tmFrameCount = 0;\n\t\t\t\n\t\t\tmStopwatch.restart();\n\t\t}\n\t}", "@Override\n public void run() {\n long previousTime = System.currentTimeMillis();\n long timeSinceLastTick = 0L;\n long timeSinceLastDisplayFrame = 0L;\n\n final double millisecondsPerDisplayFrame = 1000.0 / DISPLAY_FPS;\n\n while (this.game.isRunning() && !this.game.isGameOver()) {\n long currentTime = System.currentTimeMillis();\n long elapsedTime = currentTime - previousTime;\n timeSinceLastTick += elapsedTime;\n timeSinceLastDisplayFrame += elapsedTime;\n\n if (timeSinceLastTick >= MILLISECONDS_PER_TICK) { // Check if enough time has passed to update the physics.\n this.updatePhysics(); // Perform one 'step' in the game.\n timeSinceLastTick = 0L;\n }\n if (timeSinceLastDisplayFrame >= millisecondsPerDisplayFrame) { // Check if enough time has passed to refresh the display.\n this.game.notifyListeners(timeSinceLastTick); // Tell the asteroids panel that it should refresh.\n timeSinceLastDisplayFrame = 0L;\n }\n\n previousTime = currentTime;\n }\n }", "public void regulateFramerate(){\n\t\tsleepTime = frameInterval - (System.currentTimeMillis()-lastDraw);\n\t\t\n\t\ttry {\n\t\t\tif(sleepTime > 0) {\n\t\t\t\tlong takeOne = sleepTime/2;\n\t\t\t\tThread.sleep(takeOne);\n\t\t\t\t\n\t\t\t\tif(capturedMouse && !mouseLeftScreen && !focusLost) {\n\t\t\t\t\tcurrentMouseX = MouseInfo.getPointerInfo().getLocation().x;\n\t\t\t\t\tcurrentMouseY = MouseInfo.getPointerInfo().getLocation().y; \n\t\t\t\t\t\n\t\t\t\t\tint deltaX = currentMouseX - centerScreenX;\n\t\t\t\t\tint deltaY = currentMouseY - centerScreenY;\n\t\t\t\t\n\t\t\t\t\tmouseX+=deltaX;\n\t\t\t\t\tmouseY+=deltaY;\n\t\t\t\t\t\n\t\t\t\t\tmyRobot.mouseMove(centerScreenX, centerScreenY);\n\t\t\t\t\t\n\t\t\t\t\tif(mouseX < 0)\n\t\t\t\t\t\tmouseX = 0;\n\t\t\t\t\tif(mouseX >= screen_width)\n\t\t\t\t\t\tmouseX = screen_width-1;\n\t\t\t\t\tif(mouseY < 0)\n\t\t\t\t\t\tmouseY = 0;\n\t\t\t\t\tif(mouseY >= screen_height)\n\t\t\t\t\t\tmouseY = screen_height-1;\n\t\t\t\t\t\n\t\t\t\t\tinputHandler.mouse_x = mouseX;\n\t\t\t\t\tinputHandler.mouse_y = mouseY;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(frameIndex %2 == 0 && frameIndex > 3){\n\t\t\t\t\tbf = doubleBuffer;\n\t\t\t\t\t//draw mouse cursor \n\t\t\t\t\ttheGameCursor.updateAndDraw(bufferScreen);\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t}else if(frameIndex != 1 && frameIndex > 3){\n\t\t\t\t\tbf = doubleBuffer2;\n\t\t\t\t\t//draw mouse cursor \n\t\t\t\t\ttheGameCursor.updateAndDraw(buffer2Screen);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(frameIndex > 3)\n\t\t\t\t\tpanel.getGraphics().drawImage(bf, 0, 0, this);\n\t\t\t\t\n\t\t\t\tsleepTime = frameInterval - (System.currentTimeMillis()-lastDraw);\n\t\t\t\tif(sleepTime > 0) \n\t\t\t\t\tThread.sleep(sleepTime);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tlastDraw=System.currentTimeMillis();\n\t}", "public float getFrameRate() { return 1000f/_interval; }", "public static void updateFPS() {\n if (getTime() - lastFPS > 1000) {\n Display.setTitle(\"FPS: \" + fps + \" \");\n fps = 0;\n lastFPS += 1000;\n }\n fps++;\n\n }", "public void run() {\n\t\tlong lastTime = System.nanoTime();\n\t\tlong timer = System.currentTimeMillis();\n\t\tfinal double ns = 1000000000.0/60;\n\t\tdouble delta = 0;\n\t\tint frames = 0;\n\t\tint updates = 0;\n\t\trequestFocus();\n\t\twhile(running){\n\t\t\tlong now = System.nanoTime();\n\t\t\tdelta += (now-lastTime) /ns;\n\t\t\tlastTime = now;\n\t\t\twhile(delta >= 1){//60 times per sec\n\t\t\t\ttick();\n\t\t\t\tupdates++;\n\t\t\t\tdelta--;\n\t\t\t}\n\t\t\trender();//as fast as i can\n\t\t\tframes ++;\n\t\t\tif(System.currentTimeMillis() -timer > 1000){\n\t\t\t\ttimer += 1000;\n\t\t\t\tSystem.out.println(\"Fps:\"+frames+\" Updates:\"+updates);\n\t\t\t\tupdates = 0;\n\t\t\t\tframes = 0;\n\t\t\t\tthis.seconds++;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void run() {\n\t\tinitialise();\n\t\tlong beforeTime, afterTime, deltaTime = 0;\n\t\tlong counter = System.nanoTime() + 1000000000;\n\t\tint maxFPS = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice().getDisplayModes()[0]\n\t\t\t\t.getRefreshRate();\n\t\tif (maxFPS == 0) {\n\t\t\tmaxFPS = 60;\n\t\t}\n\t\tint fps = 0;\n\t\tlong minFrameTime = 1000000000l / maxFPS;\n\t\tdeltaTime = 1;\n\t\tupdate(0);\n\t\twhile (running) {\n\t\t\tbeforeTime = System.nanoTime();\n\t\t\tdraw();\n\t\t\tupdate(deltaTime / 1000000000f);\n\t\t\tafterTime = System.nanoTime();\n\t\t\tdeltaTime = afterTime - beforeTime;\n\t\t\tfps++;\n\t\t\tif (deltaTime < minFrameTime) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep((minFrameTime - deltaTime) / 1000000l);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (System.nanoTime() > counter) {\n\t\t\t\tcounter += 1000000000;\n\t\t\t\tSystem.out.println(fps);\n\t\t\t\tfps = 0;\n\t\t\t}\n\t\t}\n\t\tclose();\n\t}", "public static void run()\r\n\t{\r\n\t\tlong lastTime = System.nanoTime();\r\n\t\tdouble nsPerTick = 1000000000D / 30D;\r\n\t\t\r\n\t\tlong lastTimer = System.currentTimeMillis();\r\n\t\tdouble delta = 0; \r\n\r\n\t\twhile(isRunning)\r\n\t\t{\r\n\t\t\tlong now = System.nanoTime();\r\n\t\t\tdelta += (now - lastTime) / nsPerTick;\r\n\t\t\tlastTime = now;\r\n\t\t\t\r\n\t\t\twhile(delta >= 1)\r\n\t\t\t{\r\n\t\t\t\tdisplay.update();\r\n\t\t\t\tdisplay.render();\r\n\t\t\t\tdelta -= 1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(System.currentTimeMillis() - lastTimer > 1000)\r\n\t\t\t{\r\n\t\t\t\tlastTimer += 1000;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void update() {\n update(Pong.STANDARD_FRAMETIME);\n }", "private void updateAndRender(long deltaMillis) {\n currentState.update(deltaMillis / 1000f); \r\n //Double Buffering (reduce tearing)\r\n prepareGameImage();\r\n currentState.render(gameImage.getGraphics(), this.getWidth(), this.getHeight());\r\n renderGameImage(getGraphics());\r\n }", "public void run() {\n this.requestFocus();\n long lastTime = System.nanoTime();\n double amountOfTicks = 60.0;\n double ns = 1000000000 / amountOfTicks;\n double delta = 0;\n long timer = System.currentTimeMillis();\n int frames = 0;\n while (running) {\n long now = System.nanoTime();\n delta += (now - lastTime) / ns;\n lastTime = now;\n while (delta >= 1) {\n tick();\n delta--;\n }\n if (running) {\n render();\n }\n frames++;\n if (System.currentTimeMillis() - timer > 1000) {\n timer += 1000;\n System.out.println(\"FPS: \" + frames);\n\n frames = 0;\n }\n }\n stop();\n }", "public void run()\n\t{\n\t\tfloat oneFrame = 1000000000.0f / gameFPS;\n\t\t//same but for animation frames\n\t\tfloat oneAnimFrame = 1000000000.0f / animFPS;\n\t\t//current time in nanoseconds\n\t\tlong now = 0;\n\t\t//holds time of last iteration of game loop\n\t\tlong last = System.nanoTime();\n\t\t//how many frames have passed (can be a fraction)\n\t\tfloat delta = 0;\n\t\t//same but for anim frames\n\t\tfloat animDelta = 0;\n\t\t\n\t\t//for counting and displaying only \n\t\tint countFrames = 0;\n\t\tlong lastMilli = System.currentTimeMillis();\n\t\t\n\t\trequestFocus();\n\t\t//game loop\n\t\twhile (playing)\n\t\t{\n\t\t\t\n\t\t\tnow = System.nanoTime();\n\t\t\t//(now - last) time elapsed, divided by oneFrame gives\n\t\t\t//what fraction of a frame has passed\n\t\t\tdelta += (now - last) / oneFrame;\n\t\t\tanimDelta += (now - last) / oneAnimFrame;\n\t\t\tlast = now;\n\t\t\t//keep calling tick for as many frames have passed\n\t\t\t//if it's at least 1\n\t\t\tif (delta >= 1.0f)\n\t\t\t{\n\t\t\t\tcountFrames++;\n\t\t\t\twhile (delta >= 1.0f)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\ttick();\n\t\t\t\t\tdelta--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (animDelta >= 1.0f)\n\t\t\t{\n\t\t\t\twhile (animDelta >= 1.0f)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tanimTick();\n\t\t\t\t\tanimDelta--;\n\t\t\t\t}\n\t\t\t}\n\t\t\trender();\n\t\t\tcountFrames++;\n\t\t\tif (Math.abs(System.currentTimeMillis() - lastMilli) >= 1000)\n\t\t\t{\n\t\t\t\tFPS = countFrames;\n\t\t\t\tcountFrames = 0;\n\t\t\t\tlastMilli = System.currentTimeMillis();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void run() {\n\t\tif (state != 3) {\n\t\t\tthis.requestFocus();\n\t\t\tlong lastTime = System.nanoTime();\n\t\t\tdouble amountOfTicks = 60.0;\n\t\t\tdouble ns = 1000000000 / amountOfTicks;\n\t\t\tdouble delta = 0;\n\t\t\tlong timer = System.currentTimeMillis();\n\t\t\tint frames = 0;\n\t\t\twhile (isRunning) {\n\n\t\t\t\tlong now = System.nanoTime();\n\n\t\t\t\tdelta += (now - lastTime) / ns;\n\t\t\t\tlastTime = now;\n\n\t\t\t\twhile (delta >= 1) {\n\t\t\t\t\ttick();\n\t\t\t\t\tdelta--;\n\t\t\t\t}\n\t\t\t\trender();\n\t\t\t\tframes++;\n\n\t\t\t\tif (System.currentTimeMillis() - timer > 1000) {\n\t\t\t\t\ttimer += 1000;\n\t\t\t\t\tframes = 0;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tstop();\n\n\t\t}\n\n\t}", "public void run()\r\n {\n long lastTime = System.nanoTime();\r\n long timer = System.currentTimeMillis();\r\n // create quotient\r\n final double ns = 1000000000.0 / 60.0;\r\n // difference between start time and current time\r\n double delta = 0;\r\n // counter for frames per second\r\n int frames = 0;\r\n // counter for updates per second\r\n int updates = 0;\r\n\r\n while (running)\r\n {\r\n long now = System.nanoTime();\r\n // add up the times of every loop run and get the value in seconds /\r\n // 60 (basically increase by 1/60th of a second every loop)\r\n delta += (now - lastTime) / ns;\r\n lastTime = now;\r\n // gets called 60 times per second because of delta calculation\r\n while (delta >= 1)\r\n {\r\n update();\r\n updates++;\r\n delta--;\r\n }\r\n\r\n view.render();\r\n frames++;\r\n\r\n // gets called every second\r\n if (System.currentTimeMillis() - timer > 1000)\r\n {\r\n // \"reset\" timer variable\r\n timer += 1000;\r\n System.out.println(updates + \" ups, \" + frames + \" fps\");\r\n view.setTitle(\"| \" + updates + \" ups, \" + frames + \" fps\" + \" |\");\r\n // reset frames and updates variables to start counting from 0\r\n // at the start of every second\r\n frames = 0;\r\n updates = 0;\r\n }\r\n }\r\n }", "public void render(int gameSpeed){\n counterFrames++;\n if (counterFrames*gameSpeed*1000 >= (60 * (delay))){\n setDone();\n }\n }", "@Override\r\n\tpublic void render(){\n\t\tGdx.gl.glClearColor( 0f, 1f, 0f, 1f );\r\n\t\tGdx.gl.glClear( GL20.GL_COLOR_BUFFER_BIT );\r\n\r\n\t\t// output the current FPS\r\n\t\tfpsLogger.log();\r\n\t}", "public void run(){\n\t\tdouble target = 60.0;\n double nsPerTick = 1000000000.0 / target;\n long lastTime = System.nanoTime();\n long timer = System.currentTimeMillis();\n double unprocessed = 0.0;\n int fps = 0;\n int tps = 0;\n boolean canRender = false;\n \n while (running) {\n long now = System.nanoTime();\n unprocessed += (now - lastTime) / nsPerTick;\n lastTime = now;\n \n if(unprocessed >= 1.0){\n tick();\n unprocessed--;\n tps++;\n canRender = true;\n }else canRender = false;\n \n try {\n Thread.sleep(1);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n \n if(canRender){\n //render\n \trender();\n fps++;\n }\n \n if(System.currentTimeMillis() - 1000 > timer){\n timer += 1000;\n System.out.printf(\"FPS: %d | TPS: %d\\n\", fps, tps);\n fps = 0;\n tps = 0;\n }\n \n }\n \n System.exit(0);\n\t}", "@Override\n\tpublic void render(float deltaTime) {\n\t\t\n\t}", "public void draw() {\n\t //FrameRate should only 5 when there is no activity. Otherwise, 60\n if (!EventQueue.getInstance().isTiccing() && System.currentTimeMillis() - lastActive >= 300) {\n noLoop();\n setFrameRate(5);\n println(\"no draw activity\");\n } else{\n \t setFrameRate(60);\n }\n background(255);\n //Process menu data at the beginning\n // Menu menuSing = Menu.getInstance();\n // if ((boolean) menuSing.getControllerValue(\"Button0\")) {\n // KeyMap.getInstance().run('q');\n // }\n\n pushMatrix();\n //Enable scrolling\n translate(0, verticalScroll);\n StringManager.getInstance().draw();\n\n popMatrix();\n\n //if (frameCount % 10 == 0)System.out.println(frameRate);\n\n //Draw menu after\n Menu.getInstance().draw();\n }", "public abstract void renderFrame(Window window, float musicTime);", "public void run() {\n\t\tlong lastLoopTime = System.nanoTime();\n\t\tfinal int TARGET_FPS = 60;\n\t\tfinal long OPTIMAL_TIME = 1000000000 / TARGET_FPS;\n\n\t\t// keep looping round til the game ends\n\t\twhile (true) {\n\t\t\t// work out how long its been since the last update, this\n\t\t\t// will be used to calculate how far the entities should\n\t\t\t// move this loop\n\t\t\tlong now = System.nanoTime();\n\t\t\tlong updateLength = now - lastLoopTime;\n\t\t\tlastLoopTime = now;\n\n\t\t\t// update the frame counter\n\t\t\tlastFpsTime += updateLength;\n\t\t\tfps++;\n\n\t\t\t// update our FPS counter if a second has passed since\n\t\t\t// we last recorded\n\t\t\tif (lastFpsTime >= 1000000000) {\n\t\t\t\tSystem.out.println(\"(FPS: \" + fps + \")\");\n\t\t\t\tlastFpsTime = 0;\n\t\t\t\tfps = 0;\n\t\t\t}\n\n\t\t\t// update the game logic\n\t\t\ttick();\n\n\t\t\t// render\n\t\t\tglWindow.display();\n\n\t\t\t// sleep the current thread for the appropriate amount of time\n\t\t\ttry {\n\t\t\t\tThread.sleep(Math.max(0, (lastLoopTime - System.nanoTime() + OPTIMAL_TIME) / 1000000));\n\t\t\t}\n\t\t\tcatch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void update(long fps) {\n rect.left = rect.left + ((float)xVelocity / fps);\n rect.top = rect.top + ((float)yVelocity / fps);\n rect.right = rect.left + width;\n rect.bottom = rect.top + height;\n }", "private void draw() {\n\t\tgsm.draw(g);\n\t\tg.setColor(Color.WHITE);\n\t\tif (fps < 25)\n\t\t\tg.setColor(Color.RED);\n\t\tg.drawString(\"FPS: \" + fps, 10, 15);\n\t}", "@Override\n public void render(float delta) {\n if(counter>1000) counter = 1;\n super.render(delta);\n myCamera.update();\n myCamera.setCamera(renderer, batch);\n batch.begin();\n backgroundSprite.draw(batch, calculateAlpha()/2);\n batch.end();\n drawCurve();\n drawFlights();\n drawFavouritesAndLegend();\n ab.render();\n clicked = false;\n counter++;\n }", "private void onModuleUpdate() {\n //!\n //! Calculate the initial time of the frame.\n //!\n mTime = GLFW.glfwGetTime();\n\n do {\n //!\n //! Render until the display is not active.\n //!\n onModuleRender(GLFW.glfwGetTime());\n } while (mDisplay.isActive());\n }", "void update() {\n rectToBeDrawn = new Rect((frameNumber * frameSize.x)-1, 0,(frameNumber * frameSize.x + frameSize.x) - 1, frameSize.x);\n\n //now the next frame\n frameNumber++;\n\n //don't try and draw frames that don't exist\n if(frameNumber == numFrames){\n frameNumber = 0;//back to the first frame\n }\n }", "private void m4810f() {\n long startTime = System.currentTimeMillis();\n if (startTime - this.f3855m < this.f3854l) {\n try {\n Thread.sleep((this.f3854l - startTime) + this.f3855m);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n this.f3855m = System.currentTimeMillis();\n synchronized (sBitmap) {\n sByteBuffer.clear();\n sBitmap.copyPixelsToBuffer(sByteBuffer);\n }\n }", "public void doOneFrame(DrawSurface d, double dt) {\n this.gameScreen.drawAllOn(d);\n if (this.counterCurrent > 0) {\n d.setColor(Color.RED);\n d.drawText(d.getWidth() / 2, d.getHeight() / 2, Integer.toString(this.counterCurrent), 50);\n\n }\n if (this.counterCurrent != this.countFrom) {\n sleeper.sleepFor((long) ((this.numOfSeconds / this.countFrom) * 1000));\n }\n this.counterCurrent--;\n\n }", "private void render() {\n\t\tBufferStrategy bs = this.getBufferStrategy();\r\n\t\tif (bs == null) {\r\n\t\t\tcreateBufferStrategy(3);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//Initiates Graphics class using bufferStrategy\r\n\t\tGraphics g = bs.getDrawGraphics();\r\n\t\t\r\n\t\t//displays img on screen\r\n\t\tg.drawImage(img, 0, 0, null);\r\n\t\t\r\n\t\tg.setColor(Color.CYAN);\r\n\t\tg.drawString(fps + \" FPS\", 10, 10);\r\n\t\tg.setFont(new Font(\"Arial\", 0, 45));\r\n\r\n\t\tg.dispose();//clears graphics\r\n\t\tbs.show();//shows graphics\r\n\t}", "@Override\r\n\tpublic void paint(float deltaTime) {\n\t\t\r\n\t}", "public void draw(float dt) {\r\n\r\n\r\n\t\tCharacterModel lead = movementController.getLead();\r\n\t\tcanvas.clear();\r\n\r\n\t\tfloat cameraX = camera.position.x - canvas.getWidth() / 2;\r\n\t\tfloat cameraY = camera.position.y - canvas.getHeight() / 2;\r\n\r\n\t\t// Create the frame buffer if uninitialized\r\n\t\tif (fbo == null) {\r\n\t\t\tfbo = new FrameBuffer(Pixmap.Format.RGBA8888, canvas.getWidth(), canvas.getHeight(), false);\r\n\t\t}\r\n\r\n\t\t// Draw background\r\n\t\tcanvas.beginCustom(GameCanvas.BlendState.NO_PREMULT, GameCanvas.ChannelState.ALL);\r\n//\t\tcanvas.draw(backgroundTexture, Color.WHITE, cameraX, cameraY, canvas.getWidth(), canvas.getHeight());\r\n\t\tbackgroundAnimator.setRegion(backgroundTexture);\r\n\t\tbackgroundAnimator.setFrame((int)backgroundAnimeframe);\r\n\t\tcanvas.draw(backgroundAnimator, Color.WHITE, cameraX, cameraY, canvas.getWidth(), canvas.getHeight());\r\n\t\tcanvas.endCustom();\r\n\r\n\t\t// Create alpha background if uninitialized\r\n\t\tif (alpha_background == null) {\r\n\t\t\talpha_background = createRectangularTexture(canvas.getWidth(), canvas.getHeight());\r\n\t\t}\r\n\r\n\t\tCharacterModel follower = lead.equals(phobia) ? somni : phobia;\r\n\r\n\t\t// Check if switching and update mask drawing\r\n\t\tif (switching) {\r\n\t\t\tif (!holdingHands) {\r\n\t\t\t\t// Apply fade effect for follower (fading away)\r\n\t\t\t\tdrawFadePlatforms(cameraX, cameraY, follower);\r\n\t\t\t}\r\n\r\n\t\t\t// Draw mask for the mask leader\r\n\t\t\tdrawSpiritObjects(cameraX, cameraY, maskWidth, maskHeight, !holdingHands ? 1 : 0, maskLeader);\r\n\r\n\t\t\t// Draw mask for the follower while switching\r\n\t\t\tdrawSpiritObjects(cameraX, cameraY, MIN_MASK_DIMENSIONS.x, MIN_MASK_DIMENSIONS.y, 1, follower);\r\n\r\n\t\t\t// Draw mask for the mask leader to cover follower's\r\n\t\t\tdrawSpiritObjects(cameraX, cameraY, MIN_MASK_DIMENSIONS.x, MIN_MASK_DIMENSIONS.y, 1,\r\n\t\t\t\t\tmaskLeader);\r\n\r\n\t\t\t// Increase mask size\r\n\t\t\tmaskWidth += INCREMENT_AMOUNT;\r\n\t\t\tmaskHeight += INCREMENT_AMOUNT;\r\n\t\t\tif (riftCoversCameraBounds(cameraX, cameraY, maskWidth, maskHeight, maskLeader)) {\r\n\t\t\t\tmaskWidth = MIN_MASK_DIMENSIONS.x;\r\n\t\t\t\tmaskHeight = MIN_MASK_DIMENSIONS.y;\r\n\t\t\t\tswitching = false;\r\n\t\t\t\tmaskLeader = follower;\r\n\t\t\t\tbackgroundTexture = backgroundTexture.equals(backgroundLightTexture) ? backgroundDarkTexture :\r\n\t\t\t\t\t\tbackgroundLightTexture;\r\n\t\t\t\tbackgroundAnimator.setRegion(backgroundTexture);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// Check if shrinking\r\n\t\t\tboolean shrinking = maskWidth > MIN_MASK_DIMENSIONS.x || maskHeight > MIN_MASK_DIMENSIONS.y;\r\n\t\t\tif (shrinking) {\r\n\t\t\t\t// Apply fade away effect for the lead (fading in)\r\n\t\t\t\tif (!holdingHands) {\r\n\t\t\t\t\tdrawFadePlatforms(cameraX, cameraY, lead);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Make sure the rift is still drawn (to carry over the effect)\r\n\t\t\t\tdrawSpiritObjects(cameraX, cameraY, maskWidth, maskHeight, !holdingHands ? 1 : 0, maskLeader);\r\n\r\n\t\t\t\t// Draw mask for the lead while shrinking\r\n\t\t\t\tdrawSpiritObjects(cameraX, cameraY, MIN_MASK_DIMENSIONS.x, MIN_MASK_DIMENSIONS.y,\r\n\t\t\t\t\t\t!holdingHands ? 1 : 0, lead);\r\n\r\n\t\t\t\t// Draw mask for the mask leader to cover follower's\r\n\t\t\t\tdrawSpiritObjects(cameraX, cameraY, MIN_MASK_DIMENSIONS.x, MIN_MASK_DIMENSIONS.y, 1,\r\n\t\t\t\t\t\tmaskLeader);\r\n\t\t\t} else {\r\n\t\t\t\t// Draw lead platform\r\n\t\t\t\tif (!holdingHands) {\r\n\t\t\t\t\tcanvas.begin();\r\n\t\t\t\t\tfor (Obstacle obj : lead.equals(somni) ? lightObjects : darkObjects) {\r\n\t\t\t\t\t\tobj.draw(canvas);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcanvas.end();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Draw mask leader's mask AFTER drawing lead platforms (prevents popping platforms)\r\n\t\t\t\tdrawSpiritObjects(cameraX, cameraY, maskWidth, maskHeight, 2, maskLeader);\r\n\r\n\t\t\t\t// Draw mask for the lead to cover maskLeader's\r\n\t\t\t\tdrawSpiritObjects(cameraX, cameraY, MIN_MASK_DIMENSIONS.x, MIN_MASK_DIMENSIONS.y, 1, lead);\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// Decrease mask size to minimum\r\n\t\t\tmaskWidth -= maskWidth <= MIN_MASK_DIMENSIONS.x ? 0 : INCREMENT_AMOUNT;\r\n\t\t\tmaskHeight -= maskHeight <= MIN_MASK_DIMENSIONS.y ? 0 : INCREMENT_AMOUNT;\r\n\t\t}\r\n\r\n\t\t// Draw light and dark platforms if holding hands\r\n\t\tif (holdingHands) {\r\n\t\t\tcanvas.begin();\r\n\t\t\tfor (Obstacle obj : lead.equals(somni) ? lightObjects : darkObjects) {\r\n\t\t\t\tobj.draw(canvas);\r\n\t\t\t}\r\n\t\t\tcanvas.end();\r\n\t\t\talphaAmount = alphaAmount + alphaIncrement >= 1 ? 1 : alphaAmount + alphaIncrement;\r\n\t\t} else {\r\n\t\t\talphaAmount = alphaAmount - alphaIncrement <= 0 ? 0 : alphaAmount - alphaIncrement;\r\n\t\t\t;\r\n\t\t}\r\n\t\talphaWhite.a = alphaAmount;\r\n\t\tcanvas.begin();\r\n\t\tfor (Obstacle obj : follower.equals(somni) ? lightObjects : darkObjects) {\r\n//\t\t\t((SimpleObstacle) obj).drawWithTint(canvas, alphaWhite);\r\n\t\t\t((PlatformModel) obj).drawWithTint(canvas, alphaWhite);\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\t// Draw shared platforms\r\n\t\tcanvas.begin();\r\n\t\tfor (Obstacle obj : sharedObjects) {\r\n\r\n\t\t\t// Ignore characters which we draw separately\r\n\t\t\tif (!(obj instanceof CharacterModel)) {\r\n\t\t\t\t(obj).draw(canvas);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\t// Draw current model\r\n\t\tcanvas.begin();\r\n\t\tif (holdingHands) {\r\n\t\t\tcombined.draw(canvas, Color.WHITE);\r\n\t\t} else {\r\n\t\t\talphaWhite.a = 0.5f;\r\n\t\t\tfollower.draw(canvas, alphaWhite);\r\n\t\t\tlead.draw(canvas, Color.WHITE);\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\t// Draw sliders if active\r\n\t\tcanvas.begin();\r\n\t\tif (!createdSliders) {\r\n\t\t\tcreateSliders();\r\n\t\t\tcreatedSliders = true;\r\n\t\t}\r\n\r\n\t\tif (slidersActive()) {\r\n\t\t\tstage.draw();\r\n\t\t\tstage.act();\r\n\t\t\tdisplayFont.getData().setScale(.3f, .3f);\r\n\t\t\tlabelStyle.fontColor = lead == phobia ? Color.BLACK : Color.WHITE;\r\n\t\t\tdrawSliders();\r\n\t\t\tGdx.input.setInputProcessor(stage);\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\t// Draw pauseMenu\r\n\t\tcanvas.begin();\r\n\r\n//\t\tif (firstTimeRendered) {\r\n//\t\t\tcreateModalWindow(camera.position.x, camera.position.y);\r\n//\t\t\tfirstTimeRendered = false;\r\n//\t\t}\r\n//\t\tif (firstTimeRenderedWinMenu) {\r\n//\t\t\tcreateWinWindow(camera.position.x, camera.position.y);\r\n//\t\t\tfirstTimeRenderedWinMenu = false;\r\n//\t\t}\r\n//\r\n//\t\tif (firstTimeRenderedFailMenu) {\r\n//\t\t\tcreateFailWindow(camera.position.x, camera.position.y);\r\n//\t\t\tfirstTimeRenderedFailMenu = false;\r\n//\t\t}\r\n\r\n\t\tif (pauseMenuActive()) {\r\n\t\t\tcanvas.draw(blurBackground, Color.BLACK, cameraX, cameraY, canvas.getWidth(), canvas.getWidth());\r\n\t\t\tsetPositionPauseMenu();\r\n\t\t\tfirstPosition = true;\r\n\t\t\tpauseMenuStage.draw();\r\n\t\t\tpauseMenuStage.act(dt);\r\n\r\n\t\t\tif (exitButton.isOver()) {\r\n\t\t\t\tunderline.setSize(exitButton.getWidth() + UNDERLINE_WIDTH_OFFSET, exitButton.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\tunderline.setPosition(exitButton.getX() + UNDERLINE_OFFSETX, exitButton.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\tunderline.setVisible(true);\r\n\t\t\t} else if (resumeButton.isOver()) {\r\n\t\t\t\tunderline.setSize(resumeButton.getWidth() + UNDERLINE_WIDTH_OFFSET, resumeButton.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\tunderline.setPosition(resumeButton.getX() + UNDERLINE_OFFSETX, resumeButton.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\tunderline.setVisible(true);\r\n\t\t\t} else if (restartButton.isOver()) {\r\n\t\t\t\tunderline.setSize(restartButton.getWidth() + UNDERLINE_WIDTH_OFFSET, restartButton.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\tunderline.setPosition(restartButton.getX() + UNDERLINE_OFFSETX, restartButton.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\tunderline.setVisible(true);\r\n\t\t\t} else {\r\n\t\t\t\tunderline.setVisible(false);\r\n\t\t\t}\r\n\t\t\tif (movementController.getAvatar() == somni || movementController.getLead() == somni) {\r\n\t\t\t\tpauseMenu.setBackground(blueRectangle);\r\n\t\t\t\texitButton.getStyle().up = blueExit;\r\n\t\t\t\tresumeButton.getStyle().up = blueResume;\r\n\t\t\t\trestartButton.getStyle().up = blueRestart;\r\n\t\t\t\tunderline.setDrawable(blueUnderline);\r\n\t\t\t\tmusicIcon.setDrawable(blueMusicNote);\r\n\t\t\t\tsoundIcon.setDrawable(blueSound);\r\n\t\t\t\tsliderMusic.getStyle().background = blueSlider;\r\n\t\t\t\tsliderMusic.getStyle().knob = blueKnob;\r\n\t\t\t\tsliderSound.getStyle().background = blueSlider;\r\n\t\t\t\tsliderSound.getStyle().knob = blueKnob;\r\n\t\t\t} else {\r\n\t\t\t\tpauseMenu.setBackground(orangeRectangle);\r\n\t\t\t\texitButton.getStyle().up = orangeExit;\r\n\t\t\t\tresumeButton.getStyle().up = orangeResume;\r\n\t\t\t\trestartButton.getStyle().up = orangeRestart;\r\n\t\t\t\tunderline.setDrawable(orangeUnderline);\r\n\t\t\t\tmusicIcon.setDrawable(orangeMusicNote);\r\n\t\t\t\tsoundIcon.setDrawable(orangeSound);\r\n\t\t\t\tsliderMusic.getStyle().background = orangeSlider;\r\n\t\t\t\tsliderMusic.getStyle().knob = orangeKnob;\r\n\t\t\t\tsliderSound.getStyle().background = orangeSlider;\r\n\t\t\t\tsliderSound.getStyle().knob = orangeKnob;\r\n\t\t\t}\r\n\r\n\t\t\tGdx.input.setInputProcessor(pauseMenuStage);\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\tcanvas.begin();\r\n\t\tif (firstTimeRenderedPauseButton) {\r\n\t\t\tcreatePauseButton();\r\n\t\t\tfirstTimeRenderedPauseButton = false;\r\n\t\t} else {\r\n\t\t\tif (movementController.getAvatar() == somni || movementController.getLead() == somni) {\r\n\t\t\t\tpauseButton.getStyle().up = bluePauseButton;\r\n\t\t\t} else {\r\n\t\t\t\tpauseButton.getStyle().up = orangePauseButton;\r\n\t\t\t}\r\n\t\t\tdrawPauseButton();\r\n\t\t}\r\n\r\n\t\tif (!pauseMenuActive() && gameScreenActive && !slidersActive()) {\r\n\t\t\tGdx.input.setInputProcessor(pauseButtonStage);\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\t// Draw debug if active\r\n\t\tif (isDebug()) {\r\n\t\t\tcanvas.beginDebug();\r\n\t\t\tfor (Obstacle obj : sharedObjects) {\r\n\t\t\t\tobj.drawDebug(canvas);\r\n\t\t\t}\r\n\t\t\tcanvas.endDebug();\r\n\t\t\tcanvas.beginDebug();\r\n\t\t\tfor (Obstacle obj : lightObjects) {\r\n\t\t\t\tobj.drawDebug(canvas);\r\n\t\t\t}\r\n\t\t\tcanvas.endDebug();\r\n\t\t\tcanvas.beginDebug();\r\n\t\t\tfor (Obstacle obj : darkObjects) {\r\n\t\t\t\tobj.drawDebug(canvas);\r\n\t\t\t}\r\n\t\t\tcanvas.endDebug();\r\n\r\n\t\t}\r\n\r\n\t\t// Draw final message when level ends\r\n\t\t// Draw final message when level ends\r\n\t\t//JENNA\r\n\t\tif (isComplete() && !isFailure()) {\r\n\r\n\r\n\t\t\tcanvas.begin();\r\n\t\t\tif (isComplete()) {\r\n\r\n\t\t\t\tsetPositionMenu(winMenu);\r\n\t\t\t\twinMenuStage.draw();\r\n\t\t\t\twinMenuStage.act(dt);\r\n\r\n\t\t\t\tif (exitButtonWin.isOver()) {\r\n\t\t\t\t\tunderlineWinMenu.setSize(exitButtonWin.getWidth() + UNDERLINE_WIDTH_OFFSET, exitButtonWin.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\t\tunderlineWinMenu.setPosition(exitButtonWin.getX() + UNDERLINE_OFFSETX, exitButtonWin.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\t\tunderlineWinMenu.setVisible(true);\r\n\t\t\t\t} else if (advanceButton.isOver()) {\r\n\t\t\t\t\tunderlineWinMenu.setSize(advanceButton.getWidth() + UNDERLINE_WIDTH_OFFSET, advanceButton.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\t\tunderlineWinMenu.setPosition(advanceButton.getX() + UNDERLINE_OFFSETX, advanceButton.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\t\tunderlineWinMenu.setVisible(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tunderlineWinMenu.setVisible(false);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (movementController.getAvatar() == somni || movementController.getLead() == somni) {\r\n\t\t\t\t\twinMenu.setBackground(blueRectangle);\r\n\t\t\t\t\texitButtonWin.getStyle().up = blueExit;\r\n\t\t\t\t\tadvanceButton.getStyle().up = blueNext;\r\n\t\t\t\t\tunderlineWinMenu.setDrawable(blueUnderline);\r\n\t\t\t\t} else {\r\n\t\t\t\t\twinMenu.setBackground(orangeRectangle);\r\n\t\t\t\t\texitButtonWin.getStyle().up = orangeExit;\r\n\t\t\t\t\tadvanceButton.getStyle().up = orangeNext;\r\n\t\t\t\t\tunderlineWinMenu.setDrawable(orangeUnderline);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tGdx.input.setInputProcessor(winMenuStage);\r\n\t\t\t}\r\n\t\t\tcanvas.end();\r\n\r\n\r\n\t\t} else if (isFailure()) {\r\n\r\n\t\t\tcanvas.begin();\r\n\t\t\tif (isFailure()) {\r\n\t\t\t\tsetPositionMenu(failMenu);\r\n\t\t\t\tfailMenuStage.draw();\r\n\t\t\t\tfailMenuStage.act(dt);\r\n\r\n\t\t\t\tif (exitButtonFail.isOver()) {\r\n\t\t\t\t\tunderlineFailMenu.setSize(exitButtonFail.getWidth() + UNDERLINE_WIDTH_OFFSET, exitButtonFail.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\t\tunderlineFailMenu.setPosition(exitButtonFail.getX() + UNDERLINE_OFFSETX, exitButtonFail.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\t\tunderlineFailMenu.setVisible(true);\r\n\t\t\t\t} else if (restartButtonFail.isOver()) {\r\n\t\t\t\t\tunderlineFailMenu.setSize(restartButtonFail.getWidth() + UNDERLINE_WIDTH_OFFSET, restartButtonFail.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\t\tunderlineFailMenu.setPosition(restartButtonFail.getX() + UNDERLINE_OFFSETX, restartButtonFail.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\t\tunderlineFailMenu.setVisible(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tunderlineFailMenu.setVisible(false);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (movementController.getAvatar() == somni || movementController.getLead() == somni) {\r\n\t\t\t\t\tfailMenu.setBackground(blueRectangle);\r\n\t\t\t\t\texitButtonFail.getStyle().up = blueExit;\r\n\t\t\t\t\trestartButtonFail.getStyle().up = blueRestart;\r\n\t\t\t\t\tunderlineFailMenu.setDrawable(blueUnderline);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfailMenu.setBackground(orangeRectangle);\r\n\t\t\t\t\texitButtonFail.getStyle().up = orangeExit;\r\n\t\t\t\t\trestartButtonFail.getStyle().up = orangeRestart;\r\n\t\t\t\t\tunderlineFailMenu.setDrawable(orangeUnderline);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tGdx.input.setInputProcessor(failMenuStage);\r\n\t\t\t}\r\n\t\t\tcanvas.end();\r\n\r\n\r\n\t\t}\r\n\t}", "@Override\n\tpublic void Draw(float delta) {\n\t\t\n\t}", "private void updateTime(){\n currentTime = System.currentTimeMillis();\n float tp = previousTime;\n previousTime = (float)(currentTime - startingTime);\n dt = previousTime - tp;\n fps = 1000f/dt;\n }", "public void start(){\n isRunning = true;\n\n // This is where the magic happens\n Thread loop = new Thread(){\n\t\t\tpublic void run(){\n\t\t final double targetHertz = 30; // target updates per second\n\t\t final double updateTime = 1e9 / targetHertz; // target time between updates\n\t\t final int maxUpdates = 5; // max updates before a render is forced\n\t\t \n\t\t final double targetFps = 60; // target frames per second (fps)\n\t\t final double renderTime = 1e9 / targetFps; // target time between renders\n\t\t \n\t\t double lastUpdate = System.nanoTime();\n\t\t double lastRender = System.nanoTime();\n\n\t\t while (isRunning){\n\t\t \tdouble now = System.nanoTime();\n\t\t \t\n\t\t \tint updates = 0;\n\t\t \twhile (now - lastUpdate > updateTime && updates < maxUpdates){ // Update the game as much as possible before drawing\n\t\t \t\tgamePanel.update();\n\t\t \t\tlastUpdate += updateTime;\n\t\t \t\tupdates++;\n\t\t \t}\n\t\t \t\n\t\t \tif (now - lastUpdate > updateTime){ // Compensate for really long updates\n\t\t \t\tlastUpdate = now - updateTime;\n\t\t \t}\n\t\t \t\n\t\t \t// Draw the game\n\t\t \tgamePanel.repaint();\n\t\t \tlastRender = now;\n\t\t \t\n\t\t \t// kill some time until next draw\n\t\t \t\n\t\t \twhile (now - lastRender < renderTime && now - lastUpdate < updateTime){\n\t\t \t\tThread.yield();\n\t\t \t\t\n\t\t \t\ttry { Thread.sleep(1);} catch (Exception e) { }\n\t\t \t\t\n\t\t \t\tnow = System.nanoTime();\n\t\t \t}\n\t\t }\n\t\t\t}\n\t\t};\n\t\tloop.start();\n }", "private double updateFrameRate(long now) {\n long oldFrameTime = frameTimes[frameTimeIndex];\n frameTimes[frameTimeIndex] = now;\n frameTimeIndex = (frameTimeIndex + 1) % frameTimes.length;\n if (numFrameTimes < frameTimes.length) {\n numFrameTimes++;\n }\n long elapsedNanos = now - oldFrameTime;\n long elapsedNanosPerFrame = elapsedNanos / numFrameTimes;\n double frameRate = 1_000_000_000.0 / elapsedNanosPerFrame;\n return frameRate;\n }", "public void initFPS() {\n FPS = 60;\n targetTime = 1000 / FPS;\n\n gameClock = new NanoClock();\n }", "public void tick()\n {\n if ( --ticksUntilVSync == 0 )\n {\n ticksUntilVSync = ticksUntilVSyncLatch;\n copper.restart();\n irqController.triggerIRQ( IRQController.IRQSource.VBLANK );\n }\n if ( dmaController.isCopperDMAEnabled() )\n {\n copper.tick();\n }\n\n hpos++;\n if ( hpos == 0xd8 ) { // $d8 = 216 = 8 pixel hblank + 200 pixel + 8 pixel hblank\n hpos = 0;\n\n if ( amiga.isNTSC() )\n {\n // toggle long/short line flag, only applicable for NTSC amigas\n longLine ^= 0b1000_0000;\n }\n\n vpos++;\n /*\n | Normal | Interlaced\nPAL | 283 | 567\nNTSC| 241 | 483\n */\n\n if ( isInterlaced() )\n {\n final int maxY = amiga.isPAL() ? 283 : 241;\n if ( vpos >= maxY )\n {\n longFrame = 0x8000;\n }\n }\n\n int maxY;\n if ( amiga.isPAL() )\n {\n maxY = 29 + (isInterlaced() ? 567 : 283);\n }\n else\n {\n maxY = 21 + (isInterlaced() ? 483 : 241);\n }\n if ( vpos == maxY ) {\n vpos = 0;\n longFrame = 0;\n copper.restart();\n }\n }\n }", "@Override\n public void run() {\n try {\n this.init();\n } catch (IOException e) {\n e.printStackTrace();\n }\n int fps = Const.FPS;\n double ticksPerFrame = 1_000_000_000 / fps;\n double delta = 0;\n long now;\n long lastTimeTicked = System.nanoTime();\n\n\n while (isRunning) {\n now = System.nanoTime();\n delta += (now - lastTimeTicked) / ticksPerFrame;\n lastTimeTicked = now;\n if (delta > 0) {\n tick();\n try {\n render();\n } catch (IOException e) {\n e.printStackTrace();\n }\n delta--;\n\n }\n }\n //Calls the stop method to stop everything\n this.stop();\n }", "private void renderGuiFpsCounter (SpriteBatch batch)\n\t{\n\t\tfloat x = cameraGUI.viewportWidth - 55;\n\t\tfloat y = cameraGUI.viewportHeight - 15;\n\t\t\n\t\tint fps = Gdx.graphics.getFramesPerSecond();\n\t\tBitmapFont fpsFont = Assets.instance.fonts.defaultNormal;\n\t\tif (fps > 45)\n\t\t{\n\t\t\t// 45 or more FPS show up in green\n\t\t\tfpsFont.setColor(0, 1, 0, 1);\n\t\t}\n\t\telse if (fps >= 30)\n\t\t{\n\t\t\t// 30 or more FPS show up in yellow\n\t\t\tfpsFont.setColor(1, 1, 0, 1);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// less than 30 fps show up in red\n\t\t\tfpsFont.setColor(1, 0, 0, 1);\n\t\t}\n\t\tfpsFont.draw(batch, \"FPS: \" + fps, x, y);\n\t\tfpsFont.setColor(1, 1, 1, 1); // white\n\t}", "public void processFrame(float deltaTime);", "private void doDraw(Canvas canvas) {\n \tlong now = System.currentTimeMillis();\n \tif (canvas != null) {\n \t\tcanvas.drawColor(Color.BLACK);\n \t\t// Draw the sprite (animation is handled within the AnimatedSprite class) \n \t\tfor(int i = 0; i < particles.length; i++) particles[i].draw(canvas);\n \t}\n mLastTime = now;\n }", "private void updateSimulation(double frameRate) {\n\n GraphicsContext g = canvas.getGraphicsContext2D();\n double w = canvas.getWidth();\n double h = canvas.getHeight();\n double x = w / 2;\n double y = h - 10;\n\n // Clear the canvas\n g.setGlobalAlpha(1.0);\n g.setGlobalBlendMode(BlendMode.SRC_OVER);\n g.setFill(Color.BLACK);\n g.fillRect(0, 0, w, h);\n\n // Generate new particles and them the collection to be drawn.\n particles.addAll(emitter.emit(x, y));\n\n // (Re)draw the particles.\n for (Iterator<Particle> it = particles.iterator(); it.hasNext();) {\n Particle p = it.next();\n\n // Update the particle's position, color and age.\n p.update(frameRate);\n\n // Remove expired particles.\n if (!p.isAlive()) {\n it.remove();\n continue;\n }\n // Draw\n p.render(g);\n }\n fpsLabel.setText(String.format(\"Current frame rate: %.3f\", frameRate));\n countLabel.setText(String.format(\"Particle count: %d\", particles.size()));\n\n }", "protected void gameLoop() {\r\n init();\r\n recalculateViewport();\r\n\r\n long lastTime, lastFPS;\r\n lastTime = lastFPS = System.nanoTime();\r\n currentFramesPerSecond = 0;\r\n\r\n while(!Display.isCloseRequested()) {\r\n long deltaTime = System.nanoTime() - lastTime;\r\n lastTime += deltaTime;\r\n\r\n if(Display.wasResized())\r\n recalculateViewport();\r\n EventManager.getEventManager().processEventQueue();\r\n InputManager.getInputManager().update();\r\n update(deltaTime / 1e9);\r\n\r\n render();\r\n Display.update();\r\n\r\n currentFramesPerSecond++;\r\n if(System.nanoTime() - lastFPS >= 1e9) {\r\n lastFPS += 1e9;\r\n if(displayFPS){\r\n System.out.println(currentFramesPerSecond);\r\n }\r\n context.fps = currentFramesPerSecond;\r\n currentFramesPerSecond = 0;\r\n }//End if\r\n Display.sync(fps);\r\n }//End while\r\n System.exit(0);\r\n }", "public void run() {\n long lasTime = System.nanoTime();//pega o tempo atual do nosso computador em nano segundos, isso da mais precisão nos fps de maneira profissional\n double amountOfTicks = 60.0;//local onde seta o FPS.\n double ns = 1000000000 / amountOfTicks;//calculo para saber o momento certo de atualizar a tela do jogo\n double delta = 0;\n int frames = 0;\n double timer = System.currentTimeMillis();//retorna o tempo do computador, usamos isso para contagem do fps, mas é opcional.\n requestFocus();//Método que foca a tela automaticamente\n while(isRunning){\n long now = System.nanoTime();\n delta+= (now - lasTime) / ns;\n lasTime = now;\n if(delta >= 1) {\n tick();//atualização da tela.\n render();//renderização da tela.\n frames++;\n delta--;\n }\n\n if(System.currentTimeMillis() - timer >= 1000){\n System.out.println(\"FPS: \" + frames);\n frames = 0;\n timer+= 1000;\n }\n\n }\n\n stop();\n }", "@Override\n\tpublic void tick() {\n\t\trenderer.render(this);\n\t}", "public void doOneFrame(DrawSurface d, double dt) {\r\n\r\n gameScreen.drawAllOn(d);\r\n d.setColor(COLOR);\r\n d.drawText(d.getWidth() / 2, d.getHeight() / 2, this.countFrom + \"...\", 32);\r\n\r\n if (this.countFrom < 3) {\r\n this.sleeper.sleepFor(this.displayTime);\r\n }\r\n\r\n if (this.countFrom == 0) {\r\n this.stop = true;\r\n }\r\n\r\n this.countFrom--;\r\n }", "private FPS(){}", "public void tick(){\n\t\ttimer += System.currentTimeMillis() - lastTime;\n\t\tif(timer > speed){\n\t\t\tcurrent = image.next();\n\t\t\ttimer = 0;\n\t\t}\n\t\tlastTime = System.currentTimeMillis();\n\t}", "public void frameForward()\n{\n stop();\n setTime(getTime() + getInterval());\n}", "@Override\n\tpublic void onUpdate(float dt) {\n\t}", "void delayForDesiredFPS(){\n delayMs=(int)Math.round(desiredPeriodMs-(float)getLastDtNs()/1000000);\n if(delayMs<0) delayMs=1;\n try {Thread.currentThread().sleep(delayMs);} catch (java.lang.InterruptedException e) {}\n }", "protected abstract float getFrameTimeNormalAnimation();", "private void calculateDelta() {\n // 60 fps <=> delta ~ 0.016f\n //\n long curTime = SystemClock.elapsedRealtimeNanos();\n delta = (curTime - lastTime) / 1_000_000_000.0f;\n lastTime = curTime;\n }", "public final void calledDuringRender() {\n calledEveryFrame();\n numFrames++;\n }", "private void sync(double lastCallTime) {\r\n\t\tfloat renderInterval = 1f / TARGET_FPS;\r\n\t\tdouble endTime = lastCallTime + renderInterval;\r\n\t\t//while current time is less than allotted time, wait\r\n\t\twhile (System.nanoTime() / 1e9 < endTime) {\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(1);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void update()\n\t{\n\t\t// Place this GameCanvas at the proper location and size\n\t\tthis.setBounds(0, 0, game.getWindow().getWidth(), game.getWindow().getHeight());\n\t\t\n\t\tif (timeCount > game.getFps())\n\t\t\ttimeCount = 0;\n\t\t\n\t\ttimeCount++;\n\t}", "@Override\r\n\tpublic void update(float dt) {\n\r\n\t}", "@Override\n\tpublic void render(float delta) {\n\t\tupdate(delta);\n\t\tdraw(delta);\n\t}", "private void calculateAndDisplayFps() {\n if (fpsTimer.secondHasPassed()) {\n fpsTimer.getElapsedTimeAndUpdate();\n if (window.optionIsTurnedOn(Window.Options.DISPLAY_FPS)) {\n window.setTitle(gameTitle + \" - \" + fps + \" FPS\");\n }\n fps = 0;\n }\n fps++;\n }", "public void render(GameState state) {\n // Render single frame\n do {\n // The following loop ensures that the contents of the drawing buffer\n // are consistent in case the underlying surface was recreated\n do {\n // Get a new graphics context every time through the loop\n // to make sure the strategy is validated\n Graphics2D graphics = (Graphics2D) bufferStrategy.getDrawGraphics();\n try {\n doRendering(graphics, state);\n } finally {\n // Dispose the graphics\n graphics.dispose();\n }\n // Repeat the rendering if the drawing buffer contents were restored\n } while (bufferStrategy.contentsRestored());\n\n // Display the buffer\n bufferStrategy.show();\n // Tell the system to do the drawing NOW;\n // otherwise it can take a few extra ms and will feel jerky!\n Toolkit.getDefaultToolkit().sync();\n\n // Repeat the rendering if the drawing buffer was lost\n } while (bufferStrategy.contentsLost());\n }", "@Override\n public void doFrame(long frameTimeNanos) {\n long now = System.currentTimeMillis();\n\n mVsyncBuffer[mVsyncIndex] = now - mLastVsync;\n\n float sum = 0L;\n mAvailableDataPoints = 0;\n float dropped = 0;\n float missing = 0;\n mPeak = 0;\n\n for (long vsync : mVsyncBuffer) {\n if (vsync <= 0) {\n continue;\n }\n\n sum += vsync;\n mAvailableDataPoints++;\n\n if (vsync > mPeak) {\n mPeak = vsync;\n }\n\n if (vsync > 17) {\n missing++;\n } else if (vsync > 34) {\n dropped++;\n }\n }\n\n // 1 second / total vsync time for 60 frames\n mAverageDuration = sum / mAvailableDataPoints;\n mMissingPercentage = 100 * (missing / mAvailableDataPoints);\n mDroppedPercentage = 100 * (dropped / mAvailableDataPoints);\n mRenderedFrames = mAvailableDataPoints - (missing + dropped);\n mFps = mAvailableDataPoints * (1000 / sum);\n\n mLastVsync = now;\n mVsyncIndex++;\n if (mVsyncIndex >= BUFFER_SIZE) {\n mVsyncIndex = 0;\n }\n\n Choreographer.getInstance().postFrameCallback(this);\n }", "public void draw() {\n\n // Make sure our drawing surface is valid or we crash\n if (ourHolder.getSurface().isValid()) {\n // Lock the canvas ready to draw\n canvas = ourHolder.lockCanvas();\n // Draw the background color\n paint.setTypeface(tf);\n canvas.drawColor(Color.rgb(178,223,219));\n paint.setColor(Color.rgb(255,255,255));\n canvas.drawRect(offsetX, offsetY, width-offsetX, (height-100)-offsetY, paint);\n // Choose the brush color for drawing\n paint.setColor(Color.argb(50,0,0,0));\n paint.setFlags(Paint.ANTI_ALIAS_FLAG);\n // Make the text a bit bigger\n paint.setTextSize(40);\n paint.setStrokeWidth(5);\n paint.setStrokeCap(Paint.Cap.ROUND);\n // Display the current fps on the screen\n canvas.drawText(\"FPS:\" + fps, 20, 40, paint);\n paint.setTextSize(400);\n if(hasTouched == true) {\n if (count < 0) {\n canvas.drawText(0 + \"\", (width / 2) - 100, height / 2, paint);\n } else if(count<=numLines) {\n canvas.drawText(count + \"\", (width / 2) - 100, height / 2, paint);\n }\n } else {\n paint.setTextSize(100);\n canvas.drawText(\"TAP TO START\", (width / 2) - 300, height / 2, paint);\n }\n paint.setColor(Color.rgb(0,150,136));\n\n paint.setColor(color);\n\n canvas.drawCircle(xPosition, yPosition, radius, paint);\n\n paint.setColor(lineColor);\n\n if(isMoving==true && hasHit == false && count>=0) {\n canvas.drawLine(initialX, initialY, endX, endY, paint);\n }\n paint.setColor(Color.rgb(103,58,183));\n\n for(int i=0; i<verts.length; i++) {\n canvas.drawVertices(Canvas.VertexMode.TRIANGLES, verts[0].length, verts[i], 0, null, 0, verticesColors, 0, null, 0, 0, new Paint());\n }\n for (int i=0; i<innerVerts.length; i++) {\n canvas.drawVertices(Canvas.VertexMode.TRIANGLES, innerVerts[0].length, innerVerts[i], 0, null, 0, verticesColors, 0, null, 0, 0, new Paint());\n }\n // Draw everything to the screen\n ourHolder.unlockCanvasAndPost(canvas);\n\n //Display size and width\n\n }\n\n }", "protected void paintComponent(Graphics g) {\n \t\n \tif(refreshRate != 0)//if FPS is set to 0, this will simulate a 'frozen' state\n \tt.setDelay(1000 / refreshRate);//creates desired FPS\n \t//if-else statement used for incrementing and resetting repaintCount, and used for calculating the FPS which is displaye dby fpsPanel.java\n \tif (repaintCount++ > 0) {\n long curTime = System.currentTimeMillis();\n long elapseTime = curTime - startTime;\n rate = ((double)(repaintCount - 1)) / (elapseTime / 1000.0);\n } else {\n startTime = System.currentTimeMillis();\n }\n super.paintComponent(g);\n g.setColor(backColor);//backcolor controls the color of the background\n g.fillRect(0, 0, getWidth(), getHeight());\n g.setColor(objectColor);//objectColor controls the color of the shape\n if(oval)\n \tg.drawArc(x, y, width, height, 0, 360);\n if (rect)\n \tg.drawRect(x, y, width, height);\n if (rectround){\n RoundRectangle2D roundedRectangle = new RoundRectangle2D.Float(x, y, width, height,5,5);\n ((Graphics2D) g).draw(roundedRectangle); \n }\n g.setColor(textColor);//textColor controls the color of the text\n g.setFont(f);\n if (small)\n \tg.drawString(\"(\"+x+\",\"+y+\")\",x-15,y+13);//positioned properly for all small sizes\n if(medium)\n \tg.drawString(\"(\"+x+\",\"+y+\")\",x+1,y+16);//coordinates position properaly for all medium sizes\n if(large)\n \tg.drawString(\"(\"+x+\",\"+y+\")\",x+50,y+25);//coordinates position properly for all large sizes\n \t\n }", "@Override\n\tpublic void update(float deltaTime) {\n\t}", "public void update(float dt){\n currentFrameTime += dt;\n if (currentFrameTime > maxFrameTime) {\n frame++;\n currentFrameTime = 0;\n }\n\n if (frame >= frameCount) {\n frame = 0;\n }\n }", "@Override\n public void onDrawFrame(float frameTime) {\n\n final SXRPlaneEmitter emitter = mRef.get();\n if (null != emitter)\n {\n totalTime += frameTime;\n\n emitter.tickClock(totalTime);\n\n if (emitter.mEnableEmitter) {\n\n mElapsedTime += frameTime;\n if (mElapsedTime > 1.0f) {\n mElapsedTime = 0;\n\n emitter.mParticlePositions = emitter.generateParticlePositions();\n emitter.mParticleVelocities = emitter.generateParticleVelocities();\n emitter.mParticleGenTimes = emitter.generateParticleTimeStamps(totalTime);\n\n emitter.emitWithBurstCheck(emitter.mParticlePositions, emitter.mParticleVelocities,\n emitter.mParticleGenTimes);\n\n emitter.onDrawFrame();\n }\n }\n }\n }", "public abstract void update(float deltaTime);", "public abstract void update(float deltaTime);", "public abstract void update(float deltaTime);", "private double computeFPS(double t)\n {\n\tif (t == 0 || !drawAnimation.value) {\n\t numPrevT = 0;\n\t return 0;\n\t}\n\n\tint which = numPrevT % prevT.length;\n\tdouble tdiff = t - prevT[which];\n\n\tprevT[which] = t;\n\tnumPrevT++;\n\n\t// Only compute frame rate when valid\n\tif (numPrevT <= prevT.length || tdiff <= 0) {\n\t return 0;\n\t}\n\n\treturn prevT.length / tdiff;\n }", "@Override\n\tpublic void update(float dt) {\n\t\t\n\t}", "public void draw(float dt, Graphics g) {\n\t\t// Graphics.gl.glTranslatef(-.25f * Values.RESOLUTIONS[Values.X], -.25f\n\t\t// * Values.RESOLUTIONS[Values.Y], 1);\n\t\t// super.drawNew(g);\n\t\tg.setColor(1);\n\t\tsynchronized (this) {\n\t\t\tdrawBottom(dt, g);\n\t\t\tdrawTop(dt, g, sprites);\n\t\t}\n\t\t// if (Math.random() < .01f) {\n\t\t// color[3] = 0;\n\t\t// }\n\t\t// if (color[3] <= .5f) {\n\t\t// color[3]+=.08f;\n\t\t// g.fadeOldSchoolColorWhite(1, .9f, 0, .3f - color[3]);\n\t\t// } else {\n\t\t// g.fadeOldSchoolColor(color[0], color[1], color[2], color[3]);\n\t\t// }\n\t\tsuper.checkMenu();\n\t\tsuper.draw(dt, g);\n\t}", "@Override\n\tpublic void update(float deltaTime) {\n\t\t\n\t}", "@Override\n public void run() {\n while (true) {\n long currentTime = System.nanoTime();\n\n draw();\n check(currentTime);\n }\n }", "private void draw() {\n frames++;\n MainFrame.singleton().draw();\n }", "public void draw() {\n /* put graphical code here, runs repeatedly at defined framerate in setup, else default at 60fps: */\n if (renderingForce == false) {\n background(255); \n //imageMode(CORNERS);\n image(outputSplat, 0, 0);\n world.draw();\n checkChangeColor();\n }\n}", "@Override\r\n\tpublic void onUpdate()\r\n {\r\n \t//update pos\r\n\t\tthis.prevPosX = this.posX;\r\n this.prevPosY = this.posY;\r\n this.prevPosZ = this.posZ;\r\n \r\n if(host != null)\r\n {\r\n \tupdateHostPosition();\r\n }\r\n \r\n //fade state\r\n switch (this.fadeState)\r\n {\r\n case 0: //fade in\r\n \tthis.fadeTick++;\r\n \tthis.particleAlpha = this.fadeTick * 0.2F;\r\n \t\r\n \tif (this.fadeTick > 5) this.fadeState = 1;\r\n \tbreak;\r\n case 1: //age++\r\n \tthis.playSpeedCount += this.playSpeed;\r\n \tthis.particleAge = this.frameSize * (int)this.playSpeedCount;\r\n \tthis.particleAlpha = 1F;\r\n \tbreak;\r\n case 2: //fade out\r\n \tthis.fadeTick--;\r\n \tthis.particleAlpha = this.fadeTick * 0.2F;\r\n \t\r\n \tif (this.fadeTick < 1)\r\n \t{\r\n \t\tthis.setExpired();\r\n \t\treturn;\r\n \t}\r\n \tbreak;\r\n \tdefault:\r\n \t\tthis.setExpired();\r\n \t\treturn;\r\n }\r\n \r\n //stay at last frame\r\n if (this.particleAge >= particleMaxAge)\r\n {\r\n \t\tthis.particleAge = this.particleMaxAge;\r\n \t\t\r\n \t\t//count stay ticks\r\n \t\tif (this.stayTickCount > this.stayTick)\r\n \t\t{\r\n \t\t\tthis.particleAge = this.particleMaxAge + 1; //next loop flag\r\n \t\t\tthis.stayTickCount = 0;\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tthis.stayTickCount += 1;\r\n \t\t}\r\n \t}\r\n\r\n //loop play\r\n if (this.particleAge > this.particleMaxAge)\r\n {\r\n \t//loop times--\r\n \tif (--this.playTimes <= 0)\r\n \t{\r\n \t\tthis.fadeState = 2; //change to fade out\r\n \t}\r\n \telse\r\n \t{\r\n \t\tthis.particleAge = 0;\r\n \t\tthis.playSpeedCount = 0F;\r\n \t}\r\n }\r\n }", "@Override\n\tpublic void Draw(GL gl, GLU glu, int frame, double dt) {\n\t\t//DrawOval(gl, 0,0, 1,0, 0, 0);\n\n\t\tDrawBraid(gl, x_Start * 100, y_Start * 100, 1, 0, 0, 0);\n\n\n\t}", "boolean render(final CoreGL gl, float deltaTime);", "@Override\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tLibNative.render();\n\t}", "private void gameLoop() {\n\n\t\tlong elapsedTime = 0;\n\t\tlong newTime;\n\t\tlong oldTime = System.nanoTime();\n\t\tlong expectedTime = 1000000000 / 60;\n\t\tdouble delta;\n\n\t\tint frames = 0;\n\t\tlong frameTimer = 0;\n\n\t\twhile (!Display.isCloseRequested() && !gameOver) {\n\n\t\t\t// get new time, find elapsed time, determine delta\n\t\t\tnewTime = System.nanoTime();\n\t\t\telapsedTime = newTime - oldTime;\n\t\t\tdelta = (double)elapsedTime / (double)expectedTime;\n\t\t\toldTime = newTime;\n\n\t\t\t// update frame count\n\t\t\tframes++;\n\t\t\tframeTimer += elapsedTime;\n\n\t\t\t// if a second has passed, print the fps\n\t\t\tif (frameTimer >= 1000000000) {\n\t\t\t\tSystem.out.println(\"FPS: \" + frames);\n\t\t\t\tSystem.out.println(delta);\n\t\t\t\tframeTimer = Math.max(0, frameTimer - 1000000000);\n\t\t\t\tframes = 0;\n\t\t\t}\n\n\t\t\t// update game state\n\t\t\tsoundManager.update();\n\t\t\tstateManager.update(delta);\n\t\t\tstateManager.render();\n\t\t\tgui.update();\n\t\t\tDisplay.update();\t\n\n\t\t\t// sleep until 1/60 of a second has passed\n\t\t\tif (newTime - oldTime < expectedTime) {\n\n\t\t\t\twhile (newTime - oldTime < expectedTime) {\n\n\t\t\t\t\tnewTime = System.nanoTime();\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(0);\n\t\t\t\t\t} catch (InterruptedException e) { } \n\n\t\t\t\t} \n\t\t\t}\n\t\t\telse {\n\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(0);\n\t\t\t\t} catch (InterruptedException e) { }\n\t\t\t}\n\n\t\t}\n\t}", "public void update(long frameNanoDelta);", "@Override\n\tpublic void run() {\n\t\tLog.d(\"Engine\", \"Engine.run start\");\n\n\t\tListIterator<Sprite> iter = null, iterA = null, iterB = null;\n\n\t\tTimer frameTimer = new Timer();\n\t\tint frameCount = 0;\n\t\tint frameRate = 0;\n\t\tlong startTime = 0;\n\t\tlong timeDiff = 0;\n\n\t\twhile (p_running) {\n\t\t\t// Process frame only if not paused\n\t\t\tif (p_paused)\n\t\t\t\tcontinue;\n\n\t\t\t// Calculate frame rate\n\t\t\tframeCount++;\n\t\t\tstartTime = frameTimer.getElapsed();\n\t\t\tif (frameTimer.stopwatch(1000)) {\n\t\t\t\tframeRate = frameCount;\n\t\t\t\tframeCount = 0;\n\n\t\t\t\t// reset touch input count\n\t\t\t\tp_numPoints = 0;\n\t\t\t}\n\n\t\t\t// Call abstract update method in sub-class\n\t\t\tupdate();\n\n\t\t\t/**\n\t\t\t * Test for collisions in the sprite group. Note that this takes\n\t\t\t * place outside of rendering.\n\t\t\t */\n\t\t\titerA = p_group.listIterator();\n\t\t\twhile (iterA.hasNext()) {\n\t\t\t\tSprite sprA = (Sprite) iterA.next();\n\t\t\t\tif (!sprA.getAlive())\n\t\t\t\t\tcontinue;\n\t\t\t\tif (!sprA.getCollidable())\n\t\t\t\t\tcontinue;\n\n\t\t\t\t/*\n\t\t\t\t * Improvement to prevent double collision testing\n\t\t\t\t */\n\t\t\t\tif (sprA.getCollided())\n\t\t\t\t\tcontinue; // skip to next iterator\n\n\t\t\t\t// iterate the list again\n\t\t\t\titerB = p_group.listIterator();\n\t\t\t\twhile (iterB.hasNext()) {\n\t\t\t\t\tSprite sprB = (Sprite) iterB.next();\n\t\t\t\t\tif (!sprB.getAlive())\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tif (!sprB.getCollidable())\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Improvement to prevent double collision testing\n\t\t\t\t\t */\n\t\t\t\t\tif (sprB.getCollided())\n\t\t\t\t\t\tcontinue; // skip to next iterator\n\n\t\t\t\t\t// do not collide with itself\n\t\t\t\t\tif (sprA == sprB)\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Ignore sprites with the same ID? This is an important\n\t\t\t\t\t * consideration. Decide if your game requires it or not.\n\t\t\t\t\t */\n\t\t\t\t\tif (sprA.getIdentifier() == sprB.getIdentifier())\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif (collisionCheck(sprA, sprB)) {\n\t\t\t\t\t\tsprA.setCollided(true);\n\t\t\t\t\t\tsprA.setOffender(sprB);\n\t\t\t\t\t\tsprB.setCollided(true);\n\t\t\t\t\t\tsprB.setOffender(sprA);\n\t\t\t\t\t\tbreak; // exit while\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// begin drawing\n\t\t\tif (beginDrawing()) {\n\n\t\t\t\t// Call abstract draw method in sub-class\n\t\t\t\tdraw();\n\n\t\t\t\t/**\n\t\t\t\t * Draw the group entities with transforms\n\t\t\t\t */\n\t\t\t\titer = p_group.listIterator();\n\t\t\t\twhile (iter.hasNext()) {\n\t\t\t\t\tSprite spr = (Sprite) iter.next();\n\t\t\t\t\tif (spr.getAlive()) {\n\t\t\t\t\t\tspr.animate();\n\t\t\t\t\t\tspr.draw();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Print some engine debug info.\n\t\t\t\t */\n\t\t\t\tint x = p_canvas.getWidth() - 150;\n\t\t\t\tp_canvas.drawText(\"ENGINE\", x, 20, p_paintFont);\n\t\t\t\tp_canvas.drawText(toString(frameRate) + \" FPS\", x, 40,\n\t\t\t\t\t\tp_paintFont);\n\t\t\t\tp_canvas.drawText(\"Pauses: \" + toString(p_pauseCount), x, 60,\n\t\t\t\t\t\tp_paintFont);\n\n\t\t\t\t// done drawing\n\t\t\t\tendDrawing();\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Do some cleanup: collision notification, removing 'dead' sprites\n\t\t\t * from the list.\n\t\t\t */\n\t\t\titer = p_group.listIterator();\n\t\t\tSprite spr = null;\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tspr = (Sprite) iter.next();\n\n\t\t\t\t// remove from list if flagged\n\t\t\t\tif (!spr.getAlive()) {\n\t\t\t\t\titer.remove();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// is collision enabled for this sprite?\n\t\t\t\tif (spr.getCollidable()) {\n\n\t\t\t\t\t// has this sprite collided with anything?\n\t\t\t\t\tif (spr.getCollided()) {\n\n\t\t\t\t\t\t// is the target a valid object?\n\t\t\t\t\t\tif (spr.getOffender() != null) {\n\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * External func call: notify game of collision\n\t\t\t\t\t\t\t * (with validated offender)\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tcollision(spr);\n\n\t\t\t\t\t\t\t// reset offender\n\t\t\t\t\t\t\tspr.setOffender(null);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// reset collided state\n\t\t\t\t\t\tspr.setCollided(false);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Calculate frame update time and sleep if necessary\n\t\t\ttimeDiff = frameTimer.getElapsed() - startTime;\n\t\t\tlong updatePeriod = p_sleepTime - timeDiff;\n\t\t\tif (updatePeriod > 0) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(updatePeriod);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t}\n\t\t\t}\n\n\t\t}// while\n\t\tLog.d(\"Engine\", \"Engine.run end\");\n\t\tSystem.exit(RESULT_OK);\n\t}", "protected abstract void update(double deltaTime);", "@Override\n public void simpleUpdate(float tpf) {\n }", "@Override\n public void simpleUpdate(float tpf) {\n }", "@Override\r\n\tpublic void simpleUpdate(float tpf) {\n\t}", "private void gameLoop() {\n\n looping = true;\n long lastTime = System.currentTimeMillis();\n while (looping) {\n long delta = System.currentTimeMillis() - lastTime;\n if (delta >= 1000/60d) {\n view.render();\n game.update(delta);\n lastTime = System.currentTimeMillis();\n }\n }\n }", "@Override\n\tpublic void render(float delta) {\n\t}", "static public void display(){\n\n elapsedTime = TimerManager.getTime() - startTime;\n\n if (!isDone){\n\n //Animate\n if (TimerManager.getTime()-animTimer > animSpeed){\n animTimer = TimerManager.getTime();\n frame++;\n }\n if (frame > 27){\n frame = 27;\n }\n \n switch (state){\n case 1:\n //Fade in\n alpha = 300 - (int)(elapsedTime/3);\n if (alpha <= 0){\n alpha = 0;\n state = 2;\n startTime = TimerManager.getTime();\n }\n break;\n case 2:\n //Wait a bit\n if (elapsedTime > 2000){\n state = 3;\n startTime = TimerManager.getTime();\n }\n break;\n case 3:\n //Fade out\n alpha = (int)(elapsedTime/4);\n if (alpha >= 255){\n alpha = 255;\n state = 4;\n startTime = TimerManager.getTime();\n isDone = true;\n }\n break;\n }\n \n //Display our sprites\n\n Shapes.begin(Renderer.cameraUI);\n Shapes.setColor(255,255,255,255);\n Shapes.drawBox(0,0,(float)Display.getWidth(),(float)Display.getHeight());\n Shapes.end();\n\n Renderer.startUI();\n\n Renderer.setColor(Color.BLACK);\n Text.draw(0,0,\"State: \"+state);\n Renderer.setColor(Color.WHITE);\n\n Renderer.draw(splashTextures[frame % 28].getRegion(),(float) Display.getWidth()/2 - 128, (float)Display.getHeight()/2-128,256,256);\n\n Renderer.endUI();\n\n Shapes.begin(Renderer.cameraUI);\n Shapes.setColor(0,0,0,Math.min(255,alpha));\n Shapes.drawBox(0,0,(float)Display.getWidth(),(float)Display.getHeight());\n Shapes.end();\n\n }\n }" ]
[ "0.72165734", "0.71212775", "0.7035692", "0.69097406", "0.68871236", "0.6873649", "0.68729496", "0.6840542", "0.68374854", "0.6821388", "0.6792013", "0.67894316", "0.67747027", "0.6761797", "0.67582595", "0.67519426", "0.67501", "0.6720039", "0.6699521", "0.6694306", "0.66709423", "0.66026205", "0.65740436", "0.65583646", "0.65493435", "0.65309167", "0.65255594", "0.6520043", "0.6491263", "0.6472693", "0.6454968", "0.6440404", "0.6421327", "0.6418607", "0.63944876", "0.6384155", "0.63777745", "0.6368494", "0.6355773", "0.63516283", "0.63495773", "0.6342108", "0.63381153", "0.63321435", "0.6327371", "0.62982005", "0.6278411", "0.6277843", "0.62760305", "0.62754875", "0.62714714", "0.6266746", "0.6257576", "0.624972", "0.6245542", "0.62423956", "0.62387645", "0.62303543", "0.6217213", "0.6215172", "0.62026995", "0.61995226", "0.61986613", "0.6190436", "0.61896193", "0.6189527", "0.61763597", "0.61689526", "0.6158655", "0.6155899", "0.61556286", "0.6139701", "0.6137957", "0.6131127", "0.6128373", "0.6107837", "0.6096117", "0.6096117", "0.6096117", "0.60902005", "0.6083957", "0.60817367", "0.60812724", "0.60739696", "0.60733336", "0.60694563", "0.60592043", "0.6057291", "0.60527855", "0.60439557", "0.60426533", "0.6030349", "0.6027598", "0.6027194", "0.60215795", "0.60215795", "0.6018755", "0.6018366", "0.60151374", "0.6013522" ]
0.7697646
0
LocalDateTime localDateTime = LocalDateTime.now(); String localDateTime = "20171130"; Student s1 = new Student("male",23);
private String parseStringtoInt(String welcome,Student s1){ String time = TimeUitl.getTime(s1); String slogan = welcome + time; return slogan; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User(){\n registerDate = new LocalDateTime();\n }", "public TimeStamp(){\n\t\tdateTime = LocalDateTime.now();\n\t}", "public static void main(String[] args) {\n LocalDate date = LocalDate.of(1986, 02, 12);\n LocalTime time = LocalTime.of(12, 30);\n LocalDateTime localDateTime = LocalDateTime.of(date, time);\n System.out.println(localDateTime);\n\n// Exercise 16\n String customizedDate = localDateTime.format(DateTimeFormatter.ofPattern(\"YYYY-MM-dd\"));\n System.out.println(customizedDate);\n LocalDate getDate = LocalDate.parse(customizedDate);\n System.out.println(getDate);\n String customizedTime = localDateTime.format(DateTimeFormatter.ofPattern(\"HH:mm\"));\n System.out.println(customizedTime);\n LocalTime getTime = LocalTime.parse(customizedTime);\n System.out.println(getTime);\n }", "@Test\n public void testSetRegistrationDate1() {\n LocalDateTime now = LocalDateTime.now();\n user1.setRegistrationDate(now);\n assertEquals(\"RegistrationDate should be \" + now.toString(), user1.getRegistrationDate(), now);\n }", "@Test\n\tpublic void t3_localdatetime_main() {\n\t\tLocalDateTime in = K_ZDT.toLocalDateTime();\n\t\t\n\t\t_TestEntityWithLocalDateTime toDb = new _TestEntityWithLocalDateTime();\n\t\ttoDb.setId(new Random().nextLong());\n\t\ttoDb.setUserEntered(in);\n\t\t\n\t\tmongo.save(toDb);\n\t\t\n\t\t_TestEntityWithLocalDateTime fromDb = mongo.findById(toDb.getId(), _TestEntityWithLocalDateTime.class);\n\t\tassertNotNull(fromDb);\n\t\t\n\t\tassertEquals(in, fromDb.getUserEntered());\n\t}", "public static void main(String[] args) {\n\t\tLocalDate localDate = LocalDate.now();\r\n\t\tSystem.out.println(\"Local Date : \" + localDate); // toString()\r\n\t\t\r\n\t\tLocalTime localTime = LocalTime.now();\r\n\t\tSystem.out.println(\"Local Time : \" + localTime);\r\n\t\t\r\n\t\t\r\n\t\tLocalDateTime localDateTime = LocalDateTime.now();\r\n\t\tSystem.out.println(\"Local Date Time : \" + localDateTime);\r\n\t}", "private Person()\r\n\t{\r\n\t\tsuper();\r\n\t\t//created = LocalDateTime.now();\r\n\t\tcreated = Calendar.getInstance().getTime();\r\n\t}", "public static LocalDateTime now(){\n return LocalDateTime.now();\n }", "public User() {\n this.dateRegister = DateTime.now();\n }", "public Student(String nm, int day, int month, int year){\r\n\t\tthis.name = nm;\r\n//\t\tthis.username = createUsername(nm); //creates unique username from Student's name\r\n\r\n\t dateofbirth = LocalDate.of(year, month, day);\r\n\t\tthis.age = getAge();\r\n\t\tStudent.userID = userID++; //ID increments for each new User\r\n\t\t\r\n\t\tthis.username = getUsername();\r\n\t}", "public java.lang.String getTimeStamp(){\r\n return localTimeStamp;\r\n }", "public Timestamp() {\n makeNow();\n }", "public static void main(String[] args) {\n\t\tLocalDateTime currentTime = LocalDateTime.now();\r\n\t\tSystem.out.println(\"Current DateTime: \" + currentTime);\r\n\r\n\t\tLocalDate date1 = currentTime.toLocalDate();\r\n\t\tSystem.out.println(\"date1: \" + date1);\r\n\r\n\t\tMonth month = currentTime.getMonth();\r\n\t\tint day = currentTime.getDayOfMonth();\r\n\t\tint seconds = currentTime.getSecond();\r\n\r\n\t\tSystem.out.println(\"Month: \" + month + \", Day: \" + day + \", Seconds: \" + seconds);\r\n\r\n\t\tLocalDateTime date2 = currentTime.withDayOfMonth(10).withYear(2012);\r\n\t\tSystem.out.println(\"date2: \" + date2);\r\n\r\n\t\t// 12 december 2014\r\n\t\tLocalDate date3 = LocalDate.of(2014, Month.DECEMBER, 12);\r\n\t\tSystem.out.println(\"date3: \" + date3);\r\n\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyyMMdd\");\r\n\t\tSystem.out.println(\"date3 in yyyyMMdd format: \" + date3.format(formatter));\r\n\r\n\t\t// 22 hour 15 minutes\r\n\t\tLocalTime date4 = LocalTime.of(22, 15);\r\n\t\tSystem.out.println(\"date4: \" + date4);\r\n\r\n\t\t// parse a string\r\n\t\tLocalTime date5 = LocalTime.parse(\"20:15:30\");\r\n\t\tSystem.out.println(\"date5: \" + date5);\r\n\r\n\t\t/**\r\n\t\t * Result :\r\n\t\t * \r\n\t\t * Current DateTime: 2020-12-30T15:53:50.256 \r\n\t\t * date1: 2020-12-30 \r\n\t\t * Month: DECEMBER, Day: 30, Seconds: 50 \r\n\t\t * date2: 2012-12-10T15:53:50.256 \r\n\t\t * date3: 2014-12-12 \r\n\t\t * date3 in yyyyMMdd format: 20141212 \r\n\t\t * date4: 22:15 \r\n\t\t * date5: 20:15:30\r\n\t\t */\r\n\t}", "LocalDateTime getCreatedAt();", "Student createStudent();", "LocalDateTime getCreationDate();", "public LocalDateTime getStartDate();", "public LocalDateTime getDateTime() {\n return dateTime;\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tLocalDateTime Idt = LocalDateTime.now();\n\t\t\n\t\tSystem.out.println(Idt); //2021-03-19T23:06:48.913604300\n\t\tSystem.out.println(Idt.toString());//2021-03-19T23:06:48.913604300\n\t\t\n\t\tString time = Idt.toString();\n\t\t\n\t\tSystem.out.println(time.startsWith(\"2021\")); //true\n\t\t\n\t\t\n\t\t\n\t}", "public String generateLocalDateTime() {\n LocalDateTime localDateTime = LocalDateTime.now();\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"yyyyMMddHHmmss\");\n String formatLocalDateTime = localDateTime.format(dateTimeFormatter);\n return formatLocalDateTime;\n }", "public static void specificDateTime() {\n LocalDate date = LocalDate.of(1996, Month.JUNE, 07);\n LocalDate date2 = LocalDate.of(1996, 06, 07);\n System.out.println(\"Specific localDate: \" + date + \", \" + date2);\n\n LocalTime time = LocalTime.of(12, 05);\n // Can specify seconds and nano seconds\n LocalTime time2 = LocalTime.of(12, 05, 10, 10);\n System.out.println(\"Specific localTime: \" + time + \", \" + time2);\n\n // Can create localDateTime with all values or by combining a localDate and\n // localTime\n LocalDateTime dateTime = LocalDateTime.of(date, time);\n LocalDateTime dateTime2 = LocalDateTime.of(1996, Month.JUNE, 07, 12, 05, 10, 10);\n System.out.println(\"Specific localDateTime: \" + dateTime + \", \" + dateTime2);\n\n // Can create zonedDateTime with localDateTime and zoneID\n ZonedDateTime zonedDateTime = ZonedDateTime.of(dateTime, TimeZone.getDefault().toZoneId());\n // Can create with localDate, localTime and zoneID\n ZonedDateTime zonedDateTime2 = ZonedDateTime.of(date, time, TimeZone.getDefault().toZoneId());\n // Can with with all values specified, however no constructor for enum month and\n // must specify seconds and nano-seconds\n ZoneId zone = ZoneId.of(\"US/Eastern\");\n ZoneId defaultZone = TimeZone.getDefault().toZoneId();\n ZonedDateTime zonedDateTime3 = ZonedDateTime.of(1996, 06, 07, 12, 05, 10, 10, defaultZone);\n System.out.println();\n System.out.println(\"Specific Zoned DateTime:\");\n System.out.println(zonedDateTime);\n System.out.println(zonedDateTime2);\n System.out.println(zonedDateTime3);\n }", "public static void main(String[] args) {\r\n\t\tDate now = new Date();\r\n\t\tSimpleDateFormat sdf = \r\n\t\tnew SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\tString str = sdf.format(now);\r\n\tSystem.out.println(str);\r\n\tlong time = now.getTime();\r\n\ttime += 48954644;\r\n\tnow.setTime(time);\r\n\tSystem.out.println(sdf.format(now));\r\n\tDate dat = null;\r\n\ttry {\r\n\t\tdat = sdf.parse(str);\r\n\t} catch (ParseException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n\tSystem.out.println(dat);\r\n\t\r\n\r\n}", "static String createNormalDateTimeString() {\n return NORMAL_STROOM_TIME_FORMATTER.format(ZonedDateTime.now(ZoneOffset.UTC));\n }", "public Member(String firstName, String lastName, String screenName, String emailAddress,\n LocalDateTime dateCreated) {\n this.dateCreated = dateCreated;\n this.firstName = firstName;\n this.lastName = lastName;\n this.screenName = screenName;\n this.emailAddress = emailAddress;\n }", "public LocalDateTime getCreateTime() \n {\n return createTime;\n }", "Student(String name){\n this.name = name;\n }", "public void setCreateTime(LocalDateTime timestamp) \n {\n createTime = timestamp;\n }", "public void setDateOfExamination(java.util.Date param){\n \n this.localDateOfExamination=param;\n \n\n }", "public Sad(){\n\t\tthis.date = new Date(System.currentTimeMillis());\n\t}", "public java.util.Date getDateOfExamination(){\n return localDateOfExamination;\n }", "public Student(String requiredStudentName)\n {\n studentName = requiredStudentName;\n }", "public Student( String name ) {\n sname=name;\n }", "gen.grpc.hospital.examinations.DateTime getDateTime();", "public void m1() {\n\t\tLocalDate dateInIndia = LocalDate.now();\r\n\t\tSystem.out.println(\"Date in India \" +dateInIndia);\r\n\r\n\t\t// Current Date and Time\r\n\t\t\t\tLocalTime timeInIndia = LocalTime.now();\r\n\t\t\t\tSystem.out.println(\"Time in India \" +timeInIndia);\r\n\t\t\r\n\t\t\r\n\t\tZoneId PSTZone = ZoneId.of(\"America/Los_Angeles\");\r\n\t\tLocalDate dateInUS = LocalDate.now(PSTZone);\r\n\t\tSystem.out.println(\"Date in US \" +dateInUS);\r\n\t\t\r\n\t\tLocalTime timeInUS = LocalTime.now(PSTZone);\r\n\t\tSystem.out.println(\"Time in US \" +timeInUS);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "@Test\n public void toStringOk(){\n Date date = new Date(1,Month.january,1970);\n assertEquals(date.toString(),\"1 january 1970\");\n }", "@Test\n\tpublic void t5_localdate_main() {\n\t\tLocalDate in = K_ZDT.toLocalDate();\n\t\t\n\t\t_TestEntityWithLocalDate toDb = new _TestEntityWithLocalDate();\n\t\ttoDb.setId(new Random().nextLong());\n\t\ttoDb.setUserEntered(in);\n\t\t\n\t\tmongo.save(toDb);\n\t\t\n\t\t_TestEntityWithLocalDate fromDb = mongo.findById(toDb.getId(), _TestEntityWithLocalDate.class);\n\t\tassertNotNull(fromDb);\n\t\t\n\t\tassertEquals(in, fromDb.getUserEntered());\n\t}", "public static void main(String args[])\r\n {\r\n Date d=new Date();\r\n System.out.println(\"I am object of :\"+d.getClass().getName());\r\n }", "public static void testDate() {\n\t\tDate oldDate = new Date();\r\n\t\tSystem.out.println(oldDate);\r\n\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tc.set(2000, 0, 17);\r\n\t\tDate oldDate2 = c.getTime();\r\n\t\tSystem.out.println(oldDate2);\r\n\r\n\t\t// Dates created with Java 8\r\n\t\tLocalDateTime newDateTime = LocalDateTime.now();\r\n\t\tLocalDate newDate = LocalDate.now();\r\n\t\tLocalTime newTime = LocalTime.now();\r\n\t\tSystem.out.println(newTime);\r\n\r\n\t\tnewDateTime = LocalDateTime.of(newDate, newTime);\r\n\t\tSystem.out.println(newDateTime);\r\n\r\n\t\tLocalDateTime newDateTime1 = LocalDateTime.of(2015, 12, 1, 10, 2, 3, 4);\r\n\t\tSystem.out.println(newDateTime1);\r\n\r\n\t\tnewDateTime1 = newDateTime1.plusYears(1);\r\n\t\tSystem.out.println(newDateTime1);\r\n\r\n\t\tDateTimeFormatter dtf = DateTimeFormatter\r\n\t\t\t\t.ofLocalizedDateTime(FormatStyle.SHORT);\r\n\t\tSystem.out.println(dtf.format(newDateTime1));\r\n\t\tdtf = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.MEDIUM);\r\n\t\tSystem.out.println(dtf.format(newDateTime1));\r\n\r\n\t\tdtf = DateTimeFormatter.ofPattern(\"MMMM dd yyyy, hh:mm:ss\");\r\n\t\tSystem.out.println(dtf.format(newDateTime1));\r\n\t}", "public static void main(String[] args) {\n LocalDate d = LocalDate.of(1989, Month.APRIL, 1);\r\n System.err.println(d);\r\n LocalTime lt = LocalTime.now();\r\n System.err.println(lt);\r\n }", "public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchalee\";\n grade = 12;\n studentNumber = 2185;\n }", "public Student(String studentId){\n id = studentId;\n }", "public java.util.Date getDate(){\n return localDate;\n }", "public Friend(String id, String name, Double lat, Double lng, Date time){\n String email = \"[email protected]\";\n Date date = new Date();\n SimpleDateFormat dateformat = new SimpleDateFormat(\"dd/MM/yyyy\");\n try {\n date = dateformat.parse(\"01/01/1970\");\n } catch (ParseException e) {\n e.printStackTrace();\n }\n this.id = id;\n this.name = name;\n this.email = email;\n this.dob = date;\n this.latitude = lat;\n this.longitude = lng;\n this.time = time;\n }", "public Student(){\n firstName = \"\";\n lastName = \"\";\n bootcamp = \"\";\n id = 42;\n grade = 1.0;\n }", "public void setDate(java.util.Date param){\n \n this.localDate=param;\n \n\n }", "Student4(int i, String n, int t) {\n id = i;\n name = n;\n age = t;\n\n }", "public Student(String name) {\n this.name = name;\n }", "public String getBeginTime(){return beginTime;}", "public DateTime(Date date,Time12 time)\n {\n\t\tthis.date=date;\n\t\tthis.time=time;\n }", "public Person(String n,int d, int m, int y)\n\t{\n\t\tname=n;\n\t\tdob=new Date(d,m,y);\t\n\t}", "public void setDatetime(LocalDateTime datetime){\n this.datetime = datetime;\n }", "public Purchase_product() {\n initComponents();\n \n// SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n// Date d = new Date();\n// String date=dateFormat.format(d);\n//\n// \n// DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"HH:mm:ss\");\n// LocalDateTime now = LocalDateTime.now();\n// String time = dtf.format(now);\n \n \n }", "private DateTime goodLocalDateTimeUse() {\n LocalDateTime ldt = new LocalDateTime(2020, 6, 2, 8, 0, 0, 0);\n return new DateTime(ldt.getYear(), ldt.getMonthOfYear(), ldt.getDayOfYear(), ldt.getHourOfDay(),\n ldt.getMinuteOfHour(), ldt.getSecondOfMinute(), ldt.getMillisOfSecond(),\n DateTimeZone.forID(\"America/New_York\"))\n .toDateTime(DateTimeZone.forID(\"America/Los_Angeles\"));\n\n }", "long getDateTime();", "public DateTime() {\n setCharacteristic(null);\n setYear(1582);\n setMonth(0);\n setDay(1);\n setHours(0);\n setMinutes(0);\n setSeconds(0);\n }", "public Student(String name) {\n\n this.name = name;\n }", "public void now() {\n localDate = LocalDate.now();\n localDateTime = LocalDateTime.now();\n javaUtilDate = new Date();\n auditEntry = \"NOW\";\n instant = Instant.now();\n }", "public Person (String inName, String inFirstName, LocalDate inDateOfBirth) {\n super(inName);\n this.dateOfBirth = inDateOfBirth;\n this.firstName = inFirstName;\n }", "public LocalDateTime getCreateDate() {\n return createDate;\n }", "public static void main(String[] args) {\n LocalDateTime currentTime = LocalDateTime.now();\n System.out.println(\"Current DateTime: \" + currentTime);\n\n LocalDate date1 = currentTime.toLocalDate();\n System.out.println(\"date : \" + date1);\n\n Month month = currentTime.getMonth();\n int day = currentTime.getDayOfMonth();\n int seconds = currentTime.getSecond();\n int nano = currentTime.getNano();\n\n System.out.println(\"Month: \" + month + \" day: \" + day + \" seconds: \" + seconds + \" nano: \" + nano);\n\n LocalDateTime date2 = currentTime.withDayOfMonth(10).withYear(2012);\n System.out.println(\"date2: \" + date2);\n\n //12 december 2014\n LocalDate date3 = LocalDate.of(2014, Month.DECEMBER, 12);\n System.out.println(\"date3: \" + date3);\n\n //22 hour 15 minutes\n LocalTime date4 = LocalTime.of(22, 15);\n System.out.println(\"date4: \" + date4);\n \n //parse a string\n LocalTime date5 = LocalTime.parse(\"20:15:30\");\n System.out.println(\"date5: \" + date5);\n\n System.out.println(\"\");\n // Get the current date and time\n ZonedDateTime zonedDateTime = ZonedDateTime.parse(\"2007-12-03T10:15:30+05:30[Asia/Karachi]\");\n System.out.println(\"date1: \" + zonedDateTime);\n\n ZoneId id = ZoneId.of(\"Europe/Paris\");\n System.out.println(\"ZoneId: \" + id);\n\n ZoneId currentZone = ZoneId.systemDefault();\n System.out.println(\"CurrentZone: \" + currentZone);\n System.out.println(\"\");\n \n //Get the current date\n LocalDate today = LocalDate.now();\n System.out.println(\"Current date: \" + today);\n\n //add 1 week to the current date\n LocalDate nextWeek = today.plus(1, ChronoUnit.WEEKS);\n System.out.println(\"Next week: \" + nextWeek);\n\n //add 1 month to the current date\n LocalDate nextMonth = today.plus(1, ChronoUnit.MONTHS);\n System.out.println(\"Next month: \" + nextMonth);\n\n //add 1 year to the current date\n LocalDate nextYear = today.plus(1, ChronoUnit.YEARS);\n System.out.println(\"Next year: \" + nextYear);\n\n //add 10 years to the current date\n LocalDate nextDecade = today.plus(1, ChronoUnit.DECADES);\n System.out.println(\"Date after ten year: \" + nextDecade);\n System.out.println(\"\");\n// \n// With Java 8, two specialized classes are introduced to deal with the time differences.\n//\n//Period - It deals with date based amount of time.\n//\n//Duration - It deals with time based amount of time.\n //Get the current date working with Periods\n LocalDate datePeriod = LocalDate.now();\n System.out.println(\"Current date: \" + datePeriod);\n\n //add 1 month to the current date\n LocalDate datePeriod2 = datePeriod.plus(1, ChronoUnit.MONTHS);\n System.out.println(\"Next month: \" + datePeriod2);\n\n Period period = Period.between(datePeriod2, datePeriod);\n System.out.println(\"Period: \" + period);\n\n //work with durations\n LocalTime time1 = LocalTime.now();\n Duration twoHours = Duration.ofHours(2);\n\n LocalTime time2 = time1.plus(twoHours);\n Duration duration = Duration.between(time1, time2);\n\n System.out.println(\"Duration: \" + duration);\n\n// TemporalAdjuster is used to perform the date mathematics.\n// For example, get the \"Second Saturday of the Month\" or \"Next Tuesday\".\n// Let us see them in action.\n// \n System.out.println(\"\");\n//Get the current date\n LocalDate dateArithmatic = LocalDate.now();\n System.out.println(\"Current date: \" + dateArithmatic);\n\n //get the next tuesday\n LocalDate nextTuesday = dateArithmatic.with(TemporalAdjusters.next(DayOfWeek.TUESDAY));\n System.out.println(\"Next Tuesday on : \" + nextTuesday);\n\n //get the second saturday of next month\n LocalDate firstInYear = LocalDate.of(dateArithmatic.getYear(), dateArithmatic.getMonth(), 1);\n LocalDate secondSaturday = firstInYear.with(TemporalAdjusters.nextOrSame(DayOfWeek.SATURDAY))\n .with(TemporalAdjusters.next(DayOfWeek.SATURDAY));\n System.out.println(\"Second Saturday on : \" + secondSaturday);\n\n //Sql date time\n java.util.Date javaDate = new java.util.Date();\n long javaTime = javaDate.getTime();\n System.out.println(\"\\n\\nThe Java Date is: \" + javaDate.toString());\n\n java.sql.Date sqlDate = new java.sql.Date(javaTime);\n System.out.println(\"The SQL DATE is: \" + sqlDate.toString());\n\n java.sql.Time sqlTime = new java.sql.Time(javaTime);\n System.out.println(\"The SQL TIME is: \" + sqlTime.toString());\n\n java.sql.Timestamp sqlTimestamp = new java.sql.Timestamp(javaTime);\n System.out.println(\"The SQL TIMESTAMP is: \" + sqlTimestamp.toString());\n }", "static long getDateTime(){\n return System.currentTimeMillis();\n }", "public LocalDateTime getDateCreated() {\n return dateCreated;\n }", "public LocalDateTime getCreatedDate() {\n return createdDate;\n }", "default LocalDateTime getLocalTime(int year, int month, int day, int hour, int minute, int second) {\n return LocalDateTime.parse(new StringBuilder()\n .append(year).append('-').append(preZero(month)).append('-').append(preZero(day))\n .append('T')\n .append(preZero(hour)).append(':').append(preZero(minute)).append(':').append(preZero(second))\n .toString());\n }", "public Game() {\n this.date = LocalDateTime.now();\n }", "Date getTimeStamp();", "public DateTime(Date date) {\r\n\t\tthis.timeString = YYYY_MMT_DD_T_HH_MM_SS_FORMATTER.format(date);\r\n\t}", "public Student(String fullName,Student_Status stStatus)\n {\n this.fullName = fullName;\n this.stStatus = stStatus;\n }", "public Timestamp() {}", "public Student() \r\n {\r\n studentId = 0;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }", "public DateTime() {\n this((BusinessObject) null);\n }", "public Student() {\n \n }", "public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}", "public Student (String first, String last, String id)\r\n\t{\r\n\t\tthis.firstName = first;\r\n\t\tthis.lastName = last;\r\n\t\tthis.studentId = id;\r\n\t}", "public Student(int studentId) \r\n {\r\n\r\n this.studentId = studentId;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }", "public Visit() {\n\t\t//dateTime = LocalDateTime.now();\n\t}", "private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}", "private DateTime goodLocalDateTimeUse2() {\n LocalDateTime ldt = new LocalDateTime(2020, 6, 2, 8, 0, 0, 0);\n return new DateTime(ldt.getYear(), ldt.getMonthOfYear(), ldt.getDayOfYear(), ldt.getHourOfDay(),\n ldt.getMinuteOfHour(), ldt.getSecondOfMinute(), ldt.getMillisOfSecond(),\n DateTimeZone.getDefault())\n .toDateTime(DateTimeZone.forID(\"America/Los_Angeles\"));\n\n }", "public static void main(String[] args) {\n System.out.println(\"Instant.now(): \" + Instant.now());\n System.out.println(\"LocalDate.now(): \" + LocalDate.now());\n System.out.println(\"LocalTime.now(): \" + LocalTime.now());\n System.out.println(\"LocalDateTime.now(): \" + LocalDateTime.now());\n System.out.println(\"ZonedDateTime.now(): \" + ZonedDateTime.now());\n\n //All output values are using the ISO 8601 standard formatting. For dates, the basic for‐\n //mat is yyyy-MM-dd. For times, the format is hh:mm:ss.sss.\n\n //The of method for the date/time classes\n System.out.println(\"First landing on the Moon:\");\n LocalDate moonLandingDate = LocalDate.of(1969, Month.JULY, 20);\n LocalTime moonLandingTime = LocalTime.of(20, 18);\n System.out.println(\"Date: \" + moonLandingDate);\n System.out.println(\"Time: \" + moonLandingTime);\n System.out.println(\"Neil Armstrong steps onto the surface: \");\n LocalTime walkTime = LocalTime.of(20, 2, 56, 150_000_000);\n LocalDateTime walk = LocalDateTime.of(moonLandingDate, walkTime);\n System.out.println(walk);\n\n Set<String> regionNames = ZoneId.getAvailableZoneIds();\n System.out.println(\"There are \" + regionNames.size() + \" region names\");\n\n //Applying a time zone to a LocalDateTime\n LocalDateTime dateTime = LocalDateTime.of(2017, Month.JULY, 4, 13, 20, 10);\n ZonedDateTime nyc = dateTime.atZone(ZoneId.of(\"America/New_York\"));\n System.out.println(nyc);\n ZonedDateTime london = nyc.withZoneSameInstant(ZoneId.of(\"Europe/London\"));\n System.out.println(london);\n\n //Some methods in the Month enum\n System.out.println(\"Days in Feb in a leap year: \" +\n Month.FEBRUARY.length(true));\n System.out.println(\"Day of year for first day of Aug (leap year): \" +\n Month.AUGUST.firstDayOfYear(true));\n System.out.println(\"Month.of(1): \" + Month.of(1));\n System.out.println(\"Adding two months: \" + Month.JANUARY.plus(2));\n System.out.println(\"Subtracting a month: \" + Month.MARCH.minus(1));\n\n //Creating Dates and Times from Existing Instances\n //Once you’ve created a LocalDate, LocalTime, LocalDateTime, or ZonedDateTime,\n //it can no longer be changed. each returns a new instance, which is a copy of the original with the added\n //amount.\n\n //Using plus methods on LocalDate and LocalTime\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\n LocalDate start = LocalDate.of(2017, Month.FEBRUARY, 2);\n LocalDate end = start.plusDays(3);\n assertEquals(\"2017-02-05\", end.format(formatter));\n end = start.plusWeeks(5);\n assertEquals(\"2017-03-09\", end.format(formatter));\n end = start.plusMonths(7);\n assertEquals(\"2017-09-02\", end.format(formatter));\n end = start.plusYears(2);\n assertEquals(\"2019-02-02\", end.format(formatter));\n\n formatter = DateTimeFormatter.ISO_LOCAL_TIME;\n LocalTime startLocaltime = LocalTime.of(11, 30, 0, 0);\n LocalTime endLocaltime = startLocaltime.plusNanos(1_000_000);\n assertEquals(\"11:30:00.001\", end.format(formatter));\n startLocaltime = startLocaltime.plusSeconds(20);\n assertEquals(\"11:30:20\", end.format(formatter));\n startLocaltime = startLocaltime.plusMinutes(45);\n assertEquals(\"12:15:00\", end.format(formatter));\n startLocaltime = startLocaltime.plusHours(5);\n assertEquals(\"16:30:00\", end.format(formatter));\n\n Period period = Period.of(2, 3, 4); // 2 years, 3 months, 4 days\n LocalDateTime startLocalDateTime = LocalDateTime.of(2017, Month.FEBRUARY, 2, 11, 30);\n LocalDateTime endLocalDateTime = startLocalDateTime.plus(period);\n assertEquals(\"2019-05-06T11:30:00\",\n startLocalDateTime.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n startLocalDateTime = startLocalDateTime.plus(3, ChronoUnit.HALF_DAYS);\n assertEquals(\"2017-02-03T23:30:00\",\n startLocalDateTime.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n startLocalDateTime = startLocalDateTime.minus(period);\n assertEquals(\"2014-10-29T11:30:00\",\n startLocalDateTime.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n startLocalDateTime = startLocalDateTime.minus(2, ChronoUnit.CENTURIES);\n assertEquals(\"1817-02-02T11:30:00\",\n startLocalDateTime.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n startLocalDateTime = startLocalDateTime.plus(3, ChronoUnit.MILLENNIA);\n assertEquals(\"5017-02-02T11:30:00\",\n startLocalDateTime.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n\n LocalDateTime start2 = LocalDateTime.of(2017, Month.FEBRUARY, 2, 11, 30);\n LocalDateTime end2 = start2.withMinute(45);\n assertEquals(\"2017-02-02T11:45:00\",\n start2.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n end2 = start2.withHour(16);\n assertEquals(\"2017-02-02T16:30:00\",\n end2.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n end2 = start2.withDayOfMonth(28);\n assertEquals(\"2017-02-28T11:30:00\",\n end2.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n end2 = start2.withDayOfYear(300);\n assertEquals(\"2017-10-27T11:30:00\",\n end2.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n end2 = start2.withYear(2020);\n assertEquals(\"2020-02-02T11:30:00\",\n end2.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n\n LocalDateTime start3 = LocalDateTime.of(2017, Month.FEBRUARY, 2, 11, 30);\n start3.withDayOfMonth(29);\n\n //Adjusting the month to an invalid value\n LocalDateTime start4 = LocalDateTime.of(2017, Month.JANUARY, 31, 11, 30);\n LocalDateTime end4 = start4.with(ChronoField.MONTH_OF_YEAR, 2);\n assertEquals(\"2017-02-28T11:30:00\",\n end.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME));\n\n\n }", "public void setCreatedTime(LocalDateTime value) {\n set(5, value);\n }", "String getCreated_at();", "public static String createTimeStamp(){\n return new SimpleDateFormat( \"yyyy.MM.dd.HH.mm.ss\").format(new Date());\n }", "public Patient(String n, String type){\n name =\"Brendan\";\n pid = \"01723-X72312-7123\";\n birthDate = new Date();\n nationalID = n;\n sex =\"Female\";\n mothersName = \"Mary\";\n fathersName = \"John\";\n enrolledSchema = new Schema();\n doctype = 1;\n }", "public Date() {\r\n }", "public User(String firstName, String lastName, String userName, String email, String password, LocalDateTime creationDateTime, LocalDateTime updateDateTime) {\n this();\n this.firstName = firstName;\n this.lastName = lastName;\n this.userName = userName;\n this.email = email;\n this.password = password;\n this.creationDateTime = creationDateTime;\n this.updateDateTime = updateDateTime;\n }", "@Test\r\n public void testSimpleDate() {\r\n SimpleDate d1 = new SimpleDate();\r\n }", "Date getTimestamp()\n{\n return time_stamp;\n}", "public Patient(String myLast, String myFirst, int age) {\n this.lastname = myLast;\n this.firstname = myFirst;\n this.age = age;\n }", "public UserImplPart1(int studentId, String yourName, int yourAge,int yourSchoolYear, String yourNationality){\n this.studentId = studentId;\n this.name= yourName;\n this.age = yourAge; \n this.schoolYear= yourSchoolYear;\n this.nationality= yourNationality;\n}", "public Student(){}", "private LocalDateTime nowLocalDateTime() {\n\t\tInstant instantNow = Instant.ofEpochMilli( System.currentTimeMillis() );\n\t\tLocalDateTime nowLocalDateTime = instantNow.atOffset(ZoneOffset.UTC).toLocalDateTime();\n\t\treturn nowLocalDateTime;\n\t}", "public MyDate(){\n this.day = 0;\n this.month = 0;\n this.year = 0;\n }", "public DateTime(final DateTime timeStamp) {\n this(null, timeStamp);\n }", "public LocalDateTime getDate() {\n return date;\n }", "Student4(int i, String n) {\n id = i;\n name = n;\n\n }", "public static StartAt.Now now() {\n return new Now();\n }", "@Test\n\tpublic void t1_date_main() {\n\t\tDate in = Date.from(K_ZDT.toInstant());\n\t\t\n\t\t_TestEntityWithDate toDb = new _TestEntityWithDate();\n\t\ttoDb.setId(new Random().nextLong());\n\t\ttoDb.setUserEntered(in);\n\t\t\n\t\tmongo.save(toDb);\n\t\t\n\t\t_TestEntityWithDate fromDb = mongo.findById(toDb.getId(), _TestEntityWithDate.class);\n\t\tassertNotNull(fromDb);\n\t\t\n\t\tassertEquals(in, fromDb.getUserEntered());\n\t}", "Employee setBirthdate(Date birthdate);", "Time save(Time time);", "public Event(String name, LocalDateTime date) {\n super(name);\n this.date = date;\n }", "public LocalDateTime getLocalDateTime() {\n return this.datetime;\n }" ]
[ "0.69980645", "0.68768114", "0.61888045", "0.61148727", "0.6071131", "0.6062476", "0.6035145", "0.59523106", "0.5943975", "0.5894834", "0.58561796", "0.5830455", "0.5802333", "0.57865447", "0.5753998", "0.57410765", "0.57021004", "0.5700922", "0.5692029", "0.5691002", "0.56707704", "0.5670577", "0.5669941", "0.5669009", "0.56471443", "0.5644219", "0.56441814", "0.56413746", "0.56201226", "0.5609341", "0.5605866", "0.5585909", "0.5584069", "0.55565447", "0.55440044", "0.5540611", "0.552526", "0.55203974", "0.5516846", "0.55074626", "0.550281", "0.5494876", "0.5482697", "0.5481873", "0.5474959", "0.54736084", "0.5468545", "0.54676306", "0.5465659", "0.5463468", "0.5456359", "0.54500943", "0.5438795", "0.5412332", "0.5401244", "0.53997815", "0.5397061", "0.5395806", "0.5392297", "0.5387838", "0.5383484", "0.53802645", "0.5377856", "0.5374524", "0.53725064", "0.53716403", "0.5358342", "0.53522366", "0.53484917", "0.5345878", "0.5345768", "0.53445846", "0.5312544", "0.5308882", "0.53083974", "0.5307892", "0.5302142", "0.530195", "0.5283265", "0.5282604", "0.5281356", "0.5269335", "0.5269221", "0.52686095", "0.5265502", "0.52597415", "0.52540845", "0.5250018", "0.5244084", "0.5243778", "0.52346826", "0.52319354", "0.5231231", "0.5230169", "0.52257395", "0.52208185", "0.5218283", "0.52161586", "0.5208751", "0.52015465", "0.5198981" ]
0.0
-1
Created by hzllb on 2018/11/18.
public interface ItemService { //创建商品 ItemModel createItem(ItemModel itemModel) throws BusinessException; //商品列表浏览 List<ItemModel> listItem(); //商品详情浏览 ItemModel getItemById(Integer id); //验证item及其promo 缓存模型 ItemModel getItemByIdInCache(Integer id); //库存扣减 boolean decreaseStock(Integer itemId, Integer amount) throws BusinessException; //商品销量增加 void increaseSales(Integer itemId, Integer amount) throws BusinessException; //异步更新库存 boolean ansyDecreaseStock(Integer itemId, Integer amount); //库存回滚 boolean increaseStock(Integer itemId, Integer amount) throws BusinessException; //初始化库存流水 String initStockLog(Integer itemId,Integer amount); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n\n \n }", "public final void mo51373a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo38117a() {\n }", "@Override\n public void initialize() {\n \n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n protected void getExras() {\n }", "private void init() {\n }", "@Override\n public void init() {\n }", "@Override\n public void memoria() {\n \n }", "private void init() {\n\n\n\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}" ]
[ "0.61576635", "0.6073874", "0.58615977", "0.5843263", "0.58164984", "0.58164984", "0.5809927", "0.57655454", "0.5763037", "0.57575005", "0.57534254", "0.57534254", "0.57534254", "0.57534254", "0.57534254", "0.57534254", "0.57371575", "0.5728783", "0.57158756", "0.5700782", "0.56980056", "0.56882405", "0.56882405", "0.56882405", "0.56882405", "0.56882405", "0.5670194", "0.56697893", "0.56688595", "0.5668506", "0.564503", "0.5644445", "0.5643871", "0.56135076", "0.56135076", "0.56024295", "0.5601263", "0.5601263", "0.55991787", "0.55991787", "0.55991787", "0.55986494", "0.55903524", "0.55866677", "0.55842644", "0.5583961", "0.5583961", "0.5583961", "0.5572647", "0.5565908", "0.5560465", "0.5542184", "0.55399495", "0.55399495", "0.55399495", "0.553267", "0.55296826", "0.55216604", "0.55211914", "0.5519274", "0.5519274", "0.55181617", "0.55142224", "0.55142224", "0.55142224", "0.55114955", "0.5506052", "0.550173", "0.54996574", "0.5487002", "0.54853296", "0.54762065", "0.54729044", "0.54654056", "0.5465222", "0.5457515", "0.5456768", "0.54527855", "0.54434234", "0.5440961", "0.54406756", "0.54378134", "0.54378134", "0.5433435", "0.5419026", "0.54104394", "0.54104394", "0.54104394", "0.54104394", "0.54104394", "0.54104394", "0.54104394", "0.54104394", "0.54104394", "0.54104394", "0.53960866", "0.5390189", "0.53839177", "0.53828245", "0.536976", "0.53637004" ]
0.0
-1
Constructs a new Paper object.
public Paper(String name, Author author, String data) { this.name = name; this.author = author; this.data = data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Paper() {\r\n }", "public Paper()\r\n\t{\r\n\t\tsuper(0,\"\", \"\");\r\n\t}", "public Paper(double _height, double _width)\n {\n // initialise instance variables\n height = _height;\n width = _width;\n }", "public PaperManager() {\n\t\tthis.papers = new UndirectedGraph<Paper>();\n\t}", "@Override\n\tpublic Paper create(long paperId) {\n\t\tPaper paper = new PaperImpl();\n\n\t\tpaper.setNew(true);\n\t\tpaper.setPrimaryKey(paperId);\n\n\t\tString uuid = PortalUUIDUtil.generate();\n\n\t\tpaper.setUuid(uuid);\n\n\t\tpaper.setCompanyId(companyProvider.getCompanyId());\n\n\t\treturn paper;\n\t}", "public PencilPen() {\n this(10.0);\n }", "public Paper clone() \r\n\t{\r\n\t\tPaper copy = null;\r\n\t\ttry\r\n\t\t{ \r\n\t\t\tcopy = new Paper(this.getId(), new String(this.getTitle()), new String(this.getURI()),\r\n\t\t\t\tthis.year, new String(this.biblio_info), \r\n\t\t\t\tnew String(this.authors), new String(this.url) ); \r\n\t\t}\r\n\t\tcatch (Exception e) { e.printStackTrace(System.out); }\r\n\t\treturn copy;\r\n\t}", "public PaperDTO() {\n }", "P createP();", "public Pencil() {\n\n }", "public Partage() {\n }", "public Printer(){ }", "static MPrintPaper create(String name, boolean landscape) {\n\t\tMPrintPaper pp = new MPrintPaper(Env.getCtx(), 0, null);\n\t\tpp.setName(name);\n\t\tpp.setIsLandscape(landscape);\n\t\tpp.save();\n\t\treturn pp;\n\t}", "public Project() {\n this.name = \"Paper plane\";\n this.description = \" It's made of paper.\";\n }", "public Pencil(double x, double y, double width, double height)\n {\n\n\t//outline of the pencil\n GeneralPath body = new GeneralPath();\n\t\n body.moveTo(200,400);\n body.lineTo(150,350);\n\tbody.lineTo(200,300);\n\tbody.lineTo(600,300);\n\tbody.lineTo(600,400);\n\tbody.lineTo(200,400);\n\tbody.closePath();\n\n\t//vertical line that outlines the lead tip of the pencil\n\tGeneralPath leadLine = new GeneralPath();\n\n\tleadLine.moveTo(162, 362);\n\tleadLine.lineTo(162, 338);\n\n\t//vertical line that separates the tip of the pencil from the rest of the body\n\tGeneralPath tipLine = new GeneralPath();\n\ttipLine.moveTo(200, 400);\n\ttipLine.lineTo(200, 300);\n\t\n\t//vertical line that outlines the eraser\n\tShape eraser = ShapeTransforms.translatedCopyOf(tipLine, 350, 0.0);\n \n // now we put the whole thing together ino a single path.\n GeneralPath wholePencil = new GeneralPath ();\n wholePencil.append(body, false);\n\twholePencil.append(leadLine, false);\n wholePencil.append(tipLine, false);\n\twholePencil.append(eraser, false);\n \n // translate to the origin by subtracting the original upper left x and y\n // then translate to (x,y) by adding x and y\n \n Shape s = ShapeTransforms.translatedCopyOf(wholePencil, -ORIG_ULX + x, -ORIG_ULY + y);\n \n\t// scale to correct height and width\n s = ShapeTransforms.scaledCopyOf(s,\n\t\t\t\t\t width/ORIG_WIDTH,\n\t\t\t\t\t height/ORIG_HEIGHT) ;\n\t \n\t// Use the GeneralPath constructor that takes a shape and returns\n\t// it as a general path to set our instance variable cup\n \n\tthis.set(new GeneralPath(s));\n \n }", "public Paper(int _id, String _title, String _uri, int _year,\r\n\t\tString _biblio_info, String _authors, String _url)\r\n\t{\r\n\t\tsuper(_id, _title, _uri);\r\n\t\tyear = _year;\r\n\t\tbiblio_info = (_biblio_info==null)?\"\":_biblio_info;\r\n\t\tauthors = (_authors==null)?\"\":_authors;\r\n\t\turl = (_url==null)?\"\":_url;\r\n\t\tsummaries = new Item2Vector<Summary>();\r\n\t\tauthorss = new OrderedWeightedItem2Vector<Author>(); \r\n\t}", "public PDRectangle()\n {\n this(0.0f, 0.0f, 0.0f, 0.0f);\n }", "public Puppy() {\n\t\t//TODO\n\t}", "public Pen() {\n color = Color.BLACK;\n stroke = new BasicStroke();\n }", "public Paragraph() {\n \t\tsuper(\"p\");\n \t}", "Prms createPrms();", "public void createPainter(Painter painter);", "protected Drawing createDrawing() {\n return new StandardDrawing();\n }", "public EnlightenedJavaPrinter() {\n\n }", "public Poem(){}", "public QuestionPaper() {\n initComponents();\n setText();\n }", "public Paper(int _id, String _title, String _uri, int _year,\r\n\t\tString _biblio_info, String _authors, String _url, User _user)\r\n\t{\r\n\t\tsuper(_id, _title, _uri, _user);\r\n\t\tyear = _year;\r\n\t\tbiblio_info = (_biblio_info==null)?\"\":_biblio_info;\r\n\t\tauthors = (_authors==null)?\"\":_authors;\r\n\t\turl = (_url==null)?\"\":_url;\r\n\t\tsummaries = new Item2Vector<Summary>();\r\n\t\tauthorss = new OrderedWeightedItem2Vector<Author>(); \r\n\t}", "public Particle() {\n\t}", "public Pile() {\r\n\t\tconstruirePile();\r\n\t}", "public PascalFactoryImpl()\n {\n super();\n }", "public DrawHouse(){\r\n\t\tcanvas = new SketchPad(1000, 1000);\r\n\t\tpen = new DrawingTool(canvas);\r\n\t}", "public Book create(String title,double price, Author author)\r\n {\r\n return new Book(title,price,author);\r\n }", "public void create() {\n PDDocument document = new PDDocument();\n PDPage page = new PDPage();\n document.addPage(page);\n\n // Create a new font object selecting one of the PDF base fonts\n PDFont font = PDType1Font.HELVETICA_BOLD;\n try (document) {\n // Start a new content stream which will \"hold\" the to be created content\n writeDataToDocument(document, page, font);\n // Save the results and ensure that the document is properly closed:\n document.save(\"Hello World.pdf\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n }", "Para createPara();", "public Pencil(String name) {\n this.name = name;\n }", "public ToolPenProvider()\r\n {\r\n super(\"Pen2\", \"/icons/tools/pen.png\", \"/manual/tools/pen.html\");\r\n }", "public GraphicsFactory() {\n\t\tsuper();\n\t}", "public PaperAirplane (int x, int y)\n\t{\n\t\tsuper (x, y);\t//Superclass called to set x and y\n\t\t\n\t\txPoints = new int [3];\t//sets xPoints to have 3 elements\n\t\tyPoints = new int [3];\t//sets yPoints to have 3 elements\n\t\t\n\t\t//Using the getX_Pos () set in the superclass, the following sets the\n\t\t//xDimensions.\n\t\txDimension1 = getX_Pos () - 23;\n\t\txDimension2 = getX_Pos () - 18;\n\t\txDimension3 = getX_Pos () + 22;\n\t\t\n\t\t//Using the getY_Pos () set in the superclass, the following sets the\n\t\t//yDimensions.\n\t\tyDimension1 = getY_Pos() - 2;\n\t\tyDimension2 = getY_Pos() - 17;\n\t\tyDimension3 = getY_Pos() + 5;\n\t\t\n\t\t//The following sets the same dimensions from above, but these never\n\t\t//change and can be used for reconstruction\n\t\trXD1 = getX_Pos () - 23;\n\t\trXD2 = getX_Pos () - 18;\n\t\trXD3 = getX_Pos () + 22;\n\t\trYD1 = getY_Pos() - 2;\n\t\trYD2 = getY_Pos() - 17;\n\t\trYD3 = getY_Pos() + 5;\n\t}", "public Book() {}", "public PosPrinter(String sDevicePrinterName, String sDeviceDrawerName) {\r\n\t\tm_sName = sDevicePrinterName;\r\n\r\n\t\tm_printer = new POSPrinter();\r\n\t\t//\r\n\t\ttry {\r\n\t\t\tm_printer.open(sDevicePrinterName);\r\n\t\t\tm_printer.claim(10000);\r\n\t\t\tm_printer.setDeviceEnabled(true);\r\n\t\t\tm_printer.setMapMode(POSPrinterConst.PTR_MM_METRIC); // unit = 1/100 mm - i.e. 1 cm = 10 mm = 10 * 100 units\r\n\r\n\t\t\t\r\n\t\t} catch (JposException e) {\r\n\t\t\tthrow new RuntimeException(e.getMessage(), e);\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tm_drawer = new CashDrawer();\r\n\t\t\tm_drawer.open(sDevicePrinterName);\r\n\t\t\tm_drawer.claim(10000);\r\n\t\t\tm_drawer.setDeviceEnabled(true);\r\n\t\t} catch (Exception x) {\r\n\t\t\tx.printStackTrace();\r\n\t\t}\r\n\t}", "public PencilPen(final double segmentLength) {\n super(new Color(0x40303030, true), segmentLength);\n }", "public Paragraph(String html) {\n \t\tsuper(\"p\", html);\n \t}", "public Book() {\n\t\t// Default constructor\n\t}", "public Pose() {\n x = 0;\n y = 0;\n heading = 90;\n originalHeading = 90;\n }", "public Pencil(double x, double y) {\n super(x,y,x,y);\n path = new ArrayList<>();\n path.add(new Point2D(x,y));\n }", "public PencilTool() {\n super();\n myPencil = new Path2D.Double(); \n }", "public Rectangle() {\n this(50, 40);\n }", "public PrintGraphicalPage() {\n\tprintJob = PrinterJob.getPrinterJob(); \n\tformat = printJob.getPageFormat(null);\n\tpaper = format.getPaper();\n\tpaper.setImageableArea(0.0, 0.0, format.getPaper().getWidth(), format.getPaper().getHeight());\n\tformat.setPaper(paper);\n\t\n\t\n\t//aset = new HashPrintRequestAttributeSet();\n\t//MediaSizeName newMediaSizeName = new MediaSizeName(300);\n\t//myMediaSize=new MediaSize(80,230,Size2DSyntax.MM, MediaSizeName.PERSONAL_ENVELOPE);\n\t//aset.add(myMediaSize);\n //aset.add(MediaSizeName.ISO_A4);\n\t//resolution = new PrinterResolution(100, 100, PrinterResolution.DPI);\n //aset.add(resolution);\n //aset.add(OrientationRequested.PORTRAIT);\n }", "public PPPieChart(PPSlide slide, double x, double y,\n double width, double height) {\n super(slide, x, y, width, height);\n startAngle = 90;\n }", "public Rectangle () {\n\t\t\n\t}", "private Paragraph() {\n super(IParagraph.TYPE_ID);\n }", "protected Pane(int x, int y, int length, int height) {\r\n this(x, y, length, height, Priority.NORMAL);\r\n }", "public JPDV1(Principal P) {\n this.Princi = P;\n initComponents();\n }", "Paragraph createParagraph();", "public Computer() {\n\t\tparts = new ComputerPart[] { new Mouse(), new Keyboard(), new Monitor() };\n\t}", "public Purp() {\n }", "public PostOffice() {\n }", "public Graph() {\n\t\tthis(new PApplet());\n\t}", "public Poi() {\n }", "Paper addNewPaper(PaperForm form, Long courseId)throws Exception;", "public void addPaper(ConferencePaper pape){\r\n\t\tpapers.add(pape);\r\n\t}", "public static NewPublisherPG newPublisherPG(PublisherPG prototype) {\n return new PublisherPGImpl(prototype);\n }", "protected Pane(int x, int y, int length, int height, @NotNull Priority priority) {\r\n this(Slot.fromXY(x, y), length, height, priority);\r\n }", "public CustomRectangle() { }", "private static Book createFirstBookTest() {\n var book = new Book();\n book.setOriginalPriceNumber(1760);\n book.setDescription(\"52ヘルツのクジラとは―他の鯨が聞き取れない高い周波数で鳴く\");\n book.setCategory(\"トップページ > 本・コミック > 文芸 > 文芸(日本) > 現代小説 \");\n return book;\n }", "public ProducerPlan()\r\n\t{\r\n\t\tgetLogger().info(\"Created: \"+this);\r\n\t}", "protected final MareaPesca createInstance() {\n MareaPesca mareaPesca = new MareaPesca();\n return mareaPesca;\n }", "laptop(int length, int weight, int height, int width) {\r\n this.length = length;\r\n this.weight = weight;\r\n this.height = height;\r\n this.width = width;\r\n }", "public Professor()\n\t{\n\t\t//stuff\n\t}", "public Book() {\n }", "private void createChart() {\n\t\tchartSpace = CTChartSpace.Factory.newInstance();\n\t\tchart = chartSpace.addNewChart();\n\t\tCTPlotArea plotArea = chart.addNewPlotArea();\n\n\t\tplotArea.addNewLayout();\n\t\tchart.addNewPlotVisOnly().setVal(true);\n\n\t\tCTPrintSettings printSettings = chartSpace.addNewPrintSettings();\n\t\tprintSettings.addNewHeaderFooter();\n\n\t\tCTPageMargins pageMargins = printSettings.addNewPageMargins();\n\t\tpageMargins.setB(0.75);\n\t\tpageMargins.setL(0.70);\n\t\tpageMargins.setR(0.70);\n\t\tpageMargins.setT(0.75);\n\t\tpageMargins.setHeader(0.30);\n\t\tpageMargins.setFooter(0.30);\n\t\tprintSettings.addNewPageSetup();\n\t}", "public Prova() {}", "public ParkingSpace() {}", "public Piece(char P) {\r\n\t\tsuper(P);\r\n\t}", "protected DPP createDPP() {\n\t\tDPP dpp = new DPP();\n\t\tdpp.add(null, OP_CREATE, ST_CREATED);\n\t\t// dpp.add(ST_CREATED, ..., ...);\n\t\treturn dpp;\n\t}", "public p7p2() {\n }", "public Paper getPaper(String title) {\n\t\tfor (Paper p : this.papers.getAllVertices().values()) {\n\t\t\tif (p.getTitle().equalsIgnoreCase(title)) {\n\t\t\t\treturn p;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public JasperDesign create()\n\t{\n\t\tJasperDesign design = new JasperDesign();\n\t\tdesign.setName(\"demoReport\");\n\t\tJRDesignQuery query = new JRDesignQuery();\n\t\tquery.setText(\"//*\");\n\t\tquery.setLanguage(\"XPath\");\n\t\tdesign.setQuery(query);\n\t\tdesign.setBottomMargin(72);\n\t\tdesign.setTopMargin(72);\n\t\tdesign.setLeftMargin(72);\n\t\tdesign.setRightMargin(72);\n\t\t\n\t\t//A JRDesignBand can represent different report parts like the DetailBand, the PageHeader/Footer, ...\n\t\tJRDesignBand header = new JRDesignBand();\n\t\theader.setHeight(50);\n\t\t\n\t\t//Example of a dynamic text field\n\t\tJRDesignTextField textField=new JRDesignTextField();\n\t\ttextField.setStretchWithOverflow(true);\n\t\ttextField.setBlankWhenNull(true);\n\t\ttextField.setX(0);\n\t\ttextField.setY(4);\n\t\ttextField.setWidth(100);\n\t\ttextField.setHeight(13);\n\t\ttextField.setKey(\"header\");\n\t\n\t\t//TextField expression\n\t\tJRDesignExpression designExpression=new JRDesignExpression();\n\t\tdesignExpression.setValueClass(String.class);\n\t\tdesignExpression.setText(\"\\\"Welcome to the report.\\\"\");\n\n\t\t//Setting the expression\n\t\ttextField.setExpression(designExpression);\n\t\t\n\t\t//Add element to header band\n\t\theader.getChildren().add(textField);\n\t\t\n\t\t//A band is then set as a part of the report design\n\t\tdesign.setPageHeader(header);\n\t\treturn design;\n\t}", "public PQR() {}", "public Pond(){}", "public PPPieChart(PPSlide slide, double x, double y, double r) {\n this(slide, x - r, y - r, 2 * r, 2 * r);\n }", "Sketch createSketch();", "public Drawing (PApplet parent) {\n\t\tthis.parent = parent;\n\t}", "public Pie()\n\t{\n\t\tthis.setPreferredSize(new Dimension (1000, 1000));\n\t}", "public Graphics create()\r\n\t{\r\n\t\t// System.out.println(\"create\");\r\n\t\treturn null;\r\n\t}", "public PrintableDoc(double margin, double pageWidth, double pageHeight, String fontName, String text)\r\n\t{\r\n\t\tthis.margin = margin;\r\n\t\tthis.pageWidth = pageWidth;\r\n\t\tthis.pageHeight = pageHeight;\r\n\t\tthis.fontName = fontName;\r\n\t\tthis.text = text;\r\n\t}", "public BrowserPresenter create() {\n return new BrowserPresenter(context);\n }", "public PaperAdapter(ArrayList<Paper> papers, int cardViewToInflate, Fragment parentFragment) {\n mPapers = papers;\n mCardViewToInflate = cardViewToInflate;\n mParentFragment = parentFragment;\n }", "public PIMPage()throws IOException\n\t{\n\t\tPageFactory.initElements(driver,this);\n\t\t\n\t}", "public Rectangle() {\n }", "public Rectangle() {\n }", "public static Factory factory() {\n return Document_print::new;\n }", "public Book () {\n\t\tsuper ();\n\t\t_title = \"\";\n\t\t_text = \"\";\n\t\t_publisher = null;\n\t\t_oid = 0;\n\t\t_author = null;\n\t\t_Isbn = \"\";\n\t}", "public Shape() {\n\t\tthis(DEFAULT_X_POS, DEFAULT_Y_POS, DEFAULT_DELTA_X, DEFAULT_DELTA_Y, DEFAULT_WIDTH, DEFAULT_HEIGHT);\n\t}", "public PeriodFactoryImpl() {\n\t\tsuper();\n\t}", "public PapelBean() {\n }", "public SVCustom build(){\n if(this.disks < 1) return new SVCustom();\n SVCustom s = new SVCustom(new Point(100, (int)Math.pow(2, this.disks)*104 - 52));\n int left[] = new int[]{0,1};\n int right[] = new int[]{1,2};\n int bottom[] = new int[]{0,2};\n SierpinskiTriangle t = new SierpinskiTriangle(0,this.disks,this.disks-1, left, right, bottom, buildInitial(this.disks));\n s.setAttribute(\"font-family\", \"Arial\");\n s.addContent(t, \"Triangle\");\n return s;\n }", "public Presentation(String type, int x, int y, int width, int height) {\n this.type = type;\n this.position = new Position(x, y);\n this.size = new Size(width, height);\n }", "protected Shape() {}", "public interface InterfacePaper {\n void addShape(Shape shape);\n void removeShape(Shape shape);\n void editedShape(Shape shape, Shape newShape);\n void drawShapes(GraphicsContext gc);\n ArrayList<Shape> getShapes();\n void clearPaper();\n}" ]
[ "0.8024061", "0.738135", "0.73257357", "0.66506165", "0.63740027", "0.6343583", "0.61811453", "0.6178215", "0.6049529", "0.59721047", "0.57465154", "0.5722991", "0.57122546", "0.5660681", "0.5599058", "0.5582257", "0.55797577", "0.5558105", "0.5499423", "0.5429449", "0.54004997", "0.5390826", "0.53807557", "0.53797996", "0.5353512", "0.53032887", "0.529819", "0.52925766", "0.52867943", "0.52703136", "0.5238258", "0.5230489", "0.5212209", "0.5207634", "0.5199235", "0.51923805", "0.5177907", "0.51682293", "0.51622903", "0.5153929", "0.51475203", "0.5132777", "0.51324964", "0.512883", "0.5092293", "0.5083564", "0.5080406", "0.5079987", "0.50672805", "0.50629246", "0.50611395", "0.5057059", "0.5055659", "0.5026116", "0.5020992", "0.5013723", "0.50129277", "0.49960417", "0.4993683", "0.4989863", "0.49788576", "0.4973165", "0.4969401", "0.49628976", "0.49599716", "0.495984", "0.49587214", "0.49565104", "0.4950981", "0.4950511", "0.49493647", "0.4942836", "0.49314857", "0.4928448", "0.49255222", "0.49239755", "0.49093726", "0.4908504", "0.49074784", "0.49024397", "0.48961222", "0.489295", "0.48923478", "0.48871934", "0.4886958", "0.48836592", "0.48768514", "0.48757818", "0.48750135", "0.48642614", "0.48642614", "0.48539105", "0.4849513", "0.48490608", "0.48489657", "0.48426265", "0.4841199", "0.48390886", "0.48373803", "0.482817" ]
0.5497664
19
Gets the Author of this Paper.
public Author getAuthor() { return this.author; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAuthor() {\n return (String)getAttributeInternal(AUTHOR);\n }", "public java.lang.String getAuthor() {\n return author;\n }", "public java.lang.String getAuthor() {\n return author;\n }", "public IUser getAuthor() {\n\t\treturn message.getAuthor();\n\t}", "public IPerson getAuthor() {\n\t\treturn fAuthor;\n\t}", "public String getAuthor() {\n\t\treturn auth;\n\t}", "public String getAuthor()\r\n {\r\n return (m_author);\r\n }", "public String getAuthor() {\r\n\t\treturn oAuthor;\r\n\t}", "public String getAuthor() {\r\n\t\treturn author;\r\n\t}", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:author\")\n public String getAuthor() {\n return getProperty(AUTHOR);\n }", "public String getAuthor() {\n if (MetadataUGWD_Type.featOkTst && ((MetadataUGWD_Type)jcasType).casFeat_author == null)\n jcasType.jcas.throwFeatMissing(\"author\", \"de.aitools.ie.uima.type.argumentation.MetadataUGWD\");\n return jcasType.ll_cas.ll_getStringValue(addr, ((MetadataUGWD_Type)jcasType).casFeatCode_author);}", "public String getAuthor() {\n return mAuthor;\n }", "@Override\r\n\tpublic String getAuthor() {\n\t\treturn super.getAuthor();\r\n\t}", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "@Override\n\tpublic java.lang.String getAuthor() {\n\t\treturn _news_Blogs.getAuthor();\n\t}", "@Override\n\tpublic long getAuthorId() {\n\t\treturn _scienceApp.getAuthorId();\n\t}", "public Author getAuthor() {\r\n return author;\r\n }", "public String getAuthor() {\r\n return author;\r\n }", "public String getAuthorName() {\n return this.authorName;\n }", "public String getAuthorName() {\n return authorName;\n }", "public String getAuthorName() {\n return authorName;\n }", "@JsonIgnore\n public Person getAuthor()\n {\n if (getFetchOptions() != null && getFetchOptions().hasAuthor())\n {\n return author;\n }\n else\n {\n throw new NotFetchedException(\"Author has not been fetched.\");\n }\n }", "public String getAuthor() { return author_; }", "public String getAuthorName() {\n return mAuthorName;\n }", "public String getAuthorUsername() {\n\t\treturn authorUsername;\n\t}", "@Override\n\tpublic String author() {\n\t\treturn author;\n\t}", "public String getAuthor() {\n\t\treturn null;\r\n\t}", "public String getAuthorId() {\n return authorId;\n }", "public String getAuthor() {\n\t\tint start = \"Author:\".length();\n\t\tint end = author.indexOf('<');\n\t\tString parsed = author.substring(start, end).trim();\n\t\treturn parsed;\n\t}", "public String getAuthor() {\n\t\treturn \"Prasoon, Vikas, Shantanu\";\n\t}", "public User getAuthor() {\n return author;\n }", "public String getAuthor();", "public String getAuthor() {\n\treturn author;\n}", "public String getAuthorisor()\n\t{\n\t\treturn authorisor;\n\t}", "public String getBookAuthor() {\n return bookAuthor;\n }", "public Integer getAuthorId() {\n\t\treturn authorId;\n\t}", "public String getAuthorFullName() {\r\n String fullAuthorName = \"\";\r\n\r\n fullAuthorName = author.getAuthorFullName();\r\n return fullAuthorName;\r\n }", "String getAuthor();", "String getAuthor();", "public String getAuthor() {\n \treturn metricMetadata.getAuthor();\n }", "@Override\n\tpublic String getAuthor() {\n\t\treturn \"\";\n\t}", "public String getAuthor(){\n return author;\n \n }", "public Integer getAuthorId() {\n return authorId;\n }", "public Integer getAuthorId() {\n return authorId;\n }", "String getAuthorName();", "@Override\n public String toString() {\n return getAuthor().getName();\n }", "public String getAuthor()\r\n {\r\n return(\"Judy O'Brien\");\r\n }", "public AuthorChoice getAuthorChoice() {\n\t\treturn authorChoice;\n\t}", "public final native String getAuthor() /*-{\n return this.getAuthor();\n }-*/;", "public String getAuthors() {\n return getProperty(Property.AUTHORS);\n }", "public java.lang.String getAuthor()\n\tthrows java.rmi.RemoteException\n {\n\ttry {\n\t Object $result = ref.invoke(this, $method_getAuthor_0, null, 5683193999863030062L);\n\t return ((java.lang.String) $result);\n\t} catch (java.lang.RuntimeException e) {\n\t throw e;\n\t} catch (java.rmi.RemoteException e) {\n\t throw e;\n\t} catch (java.lang.Exception e) {\n\t throw new java.rmi.UnexpectedException(\"undeclared checked exception\", e);\n\t}\n }", "@ApiModelProperty(value = \"The event author WordPress post ID\")\n public Integer getAuthor() {\n return author;\n }", "private String getAuthor(CloudEntity post) {\n if (post.getCreatedBy() != null) {\n return \" \" + post.getCreatedBy().replaceFirst(\"@.*\", \"\");\n } else {\n return \"<anonymous>\";\n }\n }", "private String getAuthor(CloudEntity post) {\n if (post.getCreatedBy() != null) {\n return \" \" + post.getCreatedBy().replaceFirst(\"@.*\", \"\");\n } else {\n return \"<anonymous>\";\n }\n }", "public abstract String getAuthor();", "public String getCreateAuthor() {\n return createAuthor;\n }", "public IAuthor getAuthor();", "@Schema(description = \"Details of the user who created the worklog.\")\n public AllOfWorklogAuthor getAuthor() {\n return author;\n }", "public String printAuthor(){\n System.out.println();\n return author;\n }", "public String getAutor() {\n\t\treturn autor;\n\t}", "public String getAutor() {\n return autor;\n }", "@ManyToOne\n public Person getAuthor() {\n return author;\n }", "public AuthorParameters getAuthorParameters() {\n\t\treturn authorParameters;\n\t}", "public Player getAuthor(){\n return this.playerAuthor;\n }", "public Author getAuthorProfile(int authorId);", "default String getAuthor() {\r\n\t\treturn \"unknown\";\r\n\t}", "public String getAuthorLastName() {\r\n return author.getLastName();\r\n }", "public static String getSortableAuthor(final Record record)\n\t{\n\t\treturn MarcUtils.getSortableAuthor(record);\n\t}", "public ArrayList<String> getAuthors() {\n\t\treturn authors;\n\t}", "@Override\n\tpublic Author getAuthorWithFetch(Long authorId) {\n\t\treturn getDataP(authorId);\n\t}", "public String getCopyrightOwner() {\n return (String)getAttributeInternal(COPYRIGHTOWNER);\n }", "public Item2Vector<Author> getAuthorss() { return authorss; }", "public String getAuthor(){return author;}", "public List<String> getAuthors() {\n return authors;\n }", "private static String authorLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, NAME_STR, NAME);\n }", "public ParseUser getCreator() {\n try {\n return fetchIfNeeded().getParseUser(\"creator\");\n }\n catch(ParseException e) {\n Log.d(TAG, \"Error in retrieving the creator: \" + e);\n return null;\n }\n }", "public String[] getAuthors() {\n return authors;\n }", "public void getAnAuthor() {\n System.out.println(\"Give author name: \");\n String key = input.next();\n for (Card s: cards) {\n if (s.autherOfBook.equals(key)) {\n System.out.println(s.titleOfBook + \" \" + s.autherOfBook + \" \" + s.subjectOfBook);\n } \n }\n }", "public Subject getOwner()\n {\n return owner;\n }", "public String getScientificNameAuthorship() {\n return scientificNameAuthorship;\n }", "public String getTitleOrAutor() {\n return titleOrAutor;\n }", "public String getAutor(){\n return autorsText;\n }", "public AuthorInfo getAuthorInfo(String name) {\n\t\treturn this.authors.get(name);\n\t}", "public Author[] getAuthors() {\n return authors;\n }", "public Author[] getAuthors() {\n return authors;\n }", "public String getModifiAuthor() {\n return modifiAuthor;\n }", "public Author getById(int id) {\n return null;\n }", "public String getPrincipal() {\n\t\treturn this.principal;\n\t}", "Author findOne(String id);" ]
[ "0.76490366", "0.7599008", "0.7486576", "0.74718434", "0.7418611", "0.74169946", "0.74066865", "0.74028367", "0.7366398", "0.721014", "0.71818155", "0.71754324", "0.7173475", "0.7146099", "0.7146099", "0.7146099", "0.7146099", "0.7146099", "0.7146099", "0.7146099", "0.7146099", "0.7146099", "0.7146099", "0.7146099", "0.7146099", "0.7127763", "0.7127529", "0.70890564", "0.70724404", "0.7050888", "0.7047553", "0.7047553", "0.7044009", "0.69964993", "0.69862795", "0.6884131", "0.6883368", "0.68606657", "0.6856402", "0.68294066", "0.67871964", "0.6771837", "0.6764797", "0.67354065", "0.6707435", "0.66722596", "0.6658757", "0.66382706", "0.6628725", "0.6628725", "0.6543531", "0.6533516", "0.65033877", "0.6470097", "0.6470097", "0.64519256", "0.6442956", "0.63583684", "0.6345122", "0.63379204", "0.6329858", "0.6311941", "0.6286029", "0.62384605", "0.62384605", "0.6238324", "0.62338644", "0.6199687", "0.61563665", "0.60512507", "0.6047263", "0.6047121", "0.60323834", "0.60210997", "0.60153824", "0.59779644", "0.5969622", "0.58837265", "0.58470976", "0.58234113", "0.58064467", "0.5789656", "0.5766087", "0.5764904", "0.57598466", "0.57525784", "0.5722184", "0.56757355", "0.5640845", "0.5632061", "0.5614312", "0.560764", "0.5595435", "0.55831033", "0.5580719", "0.5580719", "0.557895", "0.5578204", "0.5573776", "0.5564176" ]
0.7836103
0
Gets the paper data of this Paper.
public String getData() { return this.data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PData getData() {\n\t\treturn data;\n\t}", "@Override\n\tpublic java.lang.String getPaperValue() {\n\t\treturn _scienceAppPaper.getPaperValue();\n\t}", "public Object data() {\n return this.data;\n }", "public Object getData() {\r\n\t\t\treturn data;\r\n\t\t}", "public Object getData(){\n\t\treturn this.data;\n\t}", "public Object getData() {\n\t\treturn data;\n\t}", "public Object getData()\r\n\t\t{\r\n\t\t\treturn data;\r\n\t\t}", "@Override\n\tpublic long getPaperId() {\n\t\treturn _paper.getPaperId();\n\t}", "public Data getData() {\n return data;\n }", "public Data getData() {\n return data;\n }", "@Override\r\n\t\tpublic Meta_data getData() {\n\t\t\treturn this.data;\r\n\t\t}", "public Map<String, Object> getData() {\n\t\treturn this.data;\n\t}", "public String getPrintData() {\r\n return PrintData;\r\n }", "Object getData() { /* package access */\n\t\treturn data;\n\t}", "public String getData() {\r\n return this.data;\r\n }", "public Object getData() {\n\t\t\treturn null;// this.element;\n\t\t}", "public DataItem getData() {\n return data;\n }", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public String getData() {\n\t\treturn data;\n\t}", "public D getData() {\n return data;\n }", "public D getData() {\n return data;\n }", "public String getData() {\r\n\t\t\treturn data;\r\n\t\t}", "public String getData() {\r\n\t\treturn data;\r\n\t}", "public String getData()\n\t{\n\t\treturn data;\n\t}", "public String getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public String getData() {\n return data;\n }", "public K data()\n {\n\treturn this.data;\n }", "public D getData(){\n\t\treturn data;\n\t}", "public String getData() {\r\n return Data;\r\n }", "public String getData() {\r\n return Data;\r\n }", "public java.lang.String getData() {\r\n return data;\r\n }", "public String getData()\n {\n return data;\n }", "public String getData() {\n\t\treturn getAttribute(DATA_TAG);\n\t}", "public E getData(){\n\t\t\treturn data;\n\t\t}", "public byte[] getData() {\n return this.data;\n }", "public BubbleData getBubbleData() { return (BubbleData)this.mData; }", "public Item getData()\r\n\t{\r\n\t\treturn theItem;\r\n\t}", "public E getData() {\r\n\t\treturn data;\r\n\t}", "public A getData()\n\t{\n\t\treturn data;\n\t}", "public String data() {\n return this.data;\n }", "public ArrayList<ConferencePaper> getPapers(){\r\n\t\treturn papers;\r\n\t}", "public E getData() {\n return data;\n }", "@Override\n public ShipVictoryData getData() {\n ShipVictoryData data = new ShipVictoryData();\n data.setTitle(title);\n data.setDescription(description);\n data.setEvents(PersistentUtility.getData(matchers));\n data.setRequirementMet(requirementMet);\n data.setTotalPoints(totalPoints);\n data.setRequiredPoints(requiredPoints);\n return data;\n }", "@Override\r\n\tpublic E getData() {\n\t\treturn data;\r\n\t}", "public String getData() {\n\treturn data;\n }", "@java.lang.Override\n public godot.wire.Wire.Value getData() {\n return data_ == null ? godot.wire.Wire.Value.getDefaultInstance() : data_;\n }", "public synchronized Object getData() {\n return data;\n }", "@Override\n\tpublic long getPaperSeq() {\n\t\treturn _scienceAppPaper.getPaperSeq();\n\t}", "public DataBead getData() {\r\n\t\treturn dataBead;\r\n\t}", "public byte[] getData() {\n return data;\n }", "public final HashMap<Integer, T> getData() {\n\t\treturn this.data;\n\t}", "public HashMap<Long, String> getData() {\n\t\treturn data;\n\t}", "public final Layers getData()\r\n {\r\n return _theData;\r\n }", "@Override\n public Raster getData() {\n final Rectangle rect = new Rectangle(getMinX(), getMinY(), getWidth(),\n getHeight());\n return getData(rect);\n }", "public T getData()\n\t{\n\t\treturn this.data;\n\t}", "public T getData() {\n return this.data;\n }", "public IData getData() {\n return data;\n }", "public Map<String, String> getData() {\n if (data == null) data = new HashMap<>();\n return data;\n }", "public G getData (){\n return this._data;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getData() {\n return data_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getData() {\n return data_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getData() {\n return data_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getData() {\n return data_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getData() {\n return data_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getData() {\n return data_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getData() {\n return data_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getData() {\n return data_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getData() {\n return data_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getData() {\n return data_;\n }", "public byte[] getData()\n {\n if (m_data == null)\n {\n return null;\n }\n return (byte[]) m_data.clone();\n }", "public JavaScriptObject getData() {\n\t return getDataImpl(getUrl(), getRealHeight(), getRealWidth());\n }", "public double[] getData() {\n return data;\n }", "public E getData()\n {\n return data;\n }", "public E getData()\n {\n return data;\n }", "public Object[] getData() {\n\t\treturn new Object[] { this.textoHtml };\n\t}", "public DerivedWord getData() {\n \treturn this.data;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getData() {\n return data_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getData() {\n return data_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getData() {\n return data_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getData() {\n return data_;\n }", "public byte[] getP() {\n return p;\n }", "public Long getPaperid() {\n return paperid;\n }", "public final DataSet getData() {\n return data;\n }", "public com.google.protobuf.ByteString getData() {\n return data_;\n }", "public com.google.protobuf.ByteString getData() {\n return data_;\n }", "public com.google.protobuf.ByteString getData() {\n return data_;\n }", "public com.google.protobuf.ByteString getData() {\n return data_;\n }", "public com.google.protobuf.ByteString getData() {\n return data_;\n }", "public com.google.protobuf.ByteString getData() {\n return data_;\n }", "public ImageData getImageData() {\n\t\treturn this.data.getImageData();\n\t}", "public byte[] getData() {\n return ByteExtensions.clone(this.data);\n }", "final public Object getDataObject() {\n return this.dataObject;\n }", "@Override\n public Object getData() {\n return outputData;\n }", "public Object getData() {\n if (this.mInvitation != null) return this.mInvitation;\n else if (this.mChatMessageFragment != null) return this.mChatMessageFragment;\n else return null;\n }", "@Accessor(qualifier = \"certificateData\", type = Accessor.Type.GETTER)\n\tpublic String getCertificateData()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(CERTIFICATEDATA);\n\t}", "@ApiStatus.Internal\n @NotNull\n public Map<String, Object> getData() {\n return data;\n }" ]
[ "0.737376", "0.6685799", "0.6599989", "0.65874135", "0.65841025", "0.6566836", "0.6544592", "0.65190506", "0.64906585", "0.64906585", "0.64741355", "0.6416299", "0.64150846", "0.6403593", "0.63661593", "0.63660425", "0.63530046", "0.634215", "0.634215", "0.634215", "0.634215", "0.63357747", "0.63357747", "0.6327286", "0.6324946", "0.6315666", "0.62831604", "0.62831604", "0.62831604", "0.62831604", "0.62715435", "0.6258436", "0.62557626", "0.62557626", "0.624844", "0.6228977", "0.6215736", "0.6214508", "0.62089914", "0.6203514", "0.6197469", "0.6193651", "0.6173231", "0.61711794", "0.6148472", "0.61349434", "0.6133986", "0.61338145", "0.6112712", "0.61112666", "0.61006516", "0.6091965", "0.60775113", "0.60661256", "0.60495853", "0.6043342", "0.6029471", "0.60284024", "0.60268456", "0.60202783", "0.60062134", "0.6004928", "0.5987634", "0.5978826", "0.5978826", "0.5978826", "0.5978826", "0.5967388", "0.5967388", "0.59668815", "0.5966499", "0.5966499", "0.5966499", "0.596458", "0.5963239", "0.59347165", "0.593017", "0.593017", "0.59192926", "0.5918975", "0.59157485", "0.59157485", "0.59157485", "0.59157485", "0.5907472", "0.59066254", "0.5881955", "0.5848702", "0.58484375", "0.58484375", "0.58484375", "0.58484375", "0.58484375", "0.5842249", "0.5841533", "0.584024", "0.5828988", "0.58171374", "0.5815164", "0.5810016" ]
0.6451662
11
Gets the paper reviewed state.
public boolean getReviewed() { return this.reviewed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean isReviewState() {\n return this.isReviewState;\n }", "public Integer getRptstate() {\n return rptstate;\n }", "public String getMyReviewed() {\n return myReviewed;\n }", "public String getReview(){\n\t\treturn this.review;\n\t}", "public String getState() {\n\t\treturn this.state_rep;\n\t}", "public java.lang.String[] getReview() {\n return review;\n }", "public boolean getIsPMReviewed() {\n if (review != null) {\n return review.isPMReviewed();\n } else {\n return false;\n }\n }", "@java.lang.Override\n public com.google.cloud.recommender.v1.RecommendationStateInfo getStateInfo() {\n return stateInfo_ == null\n ? com.google.cloud.recommender.v1.RecommendationStateInfo.getDefaultInstance()\n : stateInfo_;\n }", "public void setReviewedState(boolean new_state) {\n\t\tthis.reviewed = new_state;\n\t}", "public double getReview() {\r\n return review;\r\n }", "public String getSelectedState()\n {\n return rentalModel.getSelectedRental().getStateName();\n }", "public boolean isReviewMode() {\n return mIsReviewMode;\n }", "public List<ReviewType> getReview() {\n\t return this.review;\n\t}", "public String getInspectionResultState() {\n return inspectionResultState;\n }", "public IdeState getIdeState()\r\n\t{\r\n\t\treturn ideState;\r\n\t}", "public String toString() {\n return review;\n }", "public Integer getStatePraise() {\n return statePraise;\n }", "public String getRestorableState()\n {\n RestorableSupport rs = RestorableSupport.newRestorableSupport();\n this.doGetRestorableState(rs, null);\n\n return rs.getStateAsXml();\n }", "public String getReviewText() {\n\t\treturn this.reviewText;\n\t}", "public AeBpelState getState();", "@Override\n public BookStatus getState() {\n return state;\n }", "int getState();", "int getState();", "int getState();", "int getState();", "int getState();", "int getState();", "public String getReviewText() {\n\t\treturn reviewText;\n\t}", "public boolean getState( ) { return state; }", "public List<ReviewStat> getReviewStat() {\n\t\t\treturn reviewRepositorystatR.findReviewStat();\n\t\t}", "public static String getStoryState(){\r\n\t\treturn storyState;\r\n\t}", "public String state() {\n return this.state;\n }", "public String state() {\n return this.state;\n }", "public int getReviewId()\r\n {\r\n return this.reviewId;\r\n }", "public int getReviewValue()\n {\n \treturn m_nReviewValue;\n }", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}", "public java.lang.String getReviewid() {\n return reviewid;\n }", "public String getState() \n\t{\n\t\treturn state;\n\t}", "public int getState();", "public int getState();", "public int getState();", "public int getState();", "public String getState()\n\t{\n\t\treturn state;\n\t}", "public Timestamp getReviewDate() {\n\t\treturn reviewDate;\n\t}", "public State getState()\n\t\t{\n\t\t\treturn ConferenceInfoDocument.this.getState(userElement);\n\t\t}", "public String getReview_id() {\n return this.review_id;\n }", "public AggregationReview getReview() {\n return review;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public String getState() {\r\n\t\treturn state;\t\t\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public String getState() {\r\n\t\treturn state;\r\n\t}", "public Integer getwPrStatus() {\n return wPrStatus;\n }", "public String getState() {\n\t\treturn state;\n\t}", "public int getRenovated() {\n return renovated;\n }", "public boolean getState() {\n\t\treturn state;\n\t}", "public States getPilotState() {\n\t\treturn state;\n\t}", "public Boolean getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState() {\n return state;\n }", "public String getState()\n {\n \treturn state;\n }", "public int getState() {return state;}", "public int getState() {return state;}", "public int getState(){\n\t\treturn state;\n\t}", "public String getState() {\n return this.state;\n }", "public String getState() {\n return this.state;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "@java.lang.Override\n public com.google.cloud.recommender.v1.RecommendationStateInfoOrBuilder getStateInfoOrBuilder() {\n return stateInfo_ == null\n ? com.google.cloud.recommender.v1.RecommendationStateInfo.getDefaultInstance()\n : stateInfo_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public int getState() {\n return state_;\n }", "public String getState() {\n return this.State;\n }", "public String getState() {\n return state;\n }", "public KetchLeader.State getState() {\n\t\treturn state;\n\t}", "public String getState()\r\n\t{\r\n\t\treturn state.getModelObjectAsString();\r\n\t}", "public GameState GetState(){\n\t\treturn this.state;\n\t}", "public GameState getState(){\n\t\tGameState State=new GameState(this.points, this.currentBoard.getState());\n\t\t\n\t\treturn State;\n\t}", "public String getState() { return state; }", "public Integer getPrescriptionstate() {\n return prescriptionstate;\n }" ]
[ "0.7293301", "0.6676641", "0.66729826", "0.6514811", "0.6286874", "0.6284974", "0.62784", "0.61215454", "0.61168927", "0.6107845", "0.60703236", "0.60681343", "0.60343057", "0.59598374", "0.5891109", "0.58824784", "0.5871207", "0.5864205", "0.5840691", "0.5818876", "0.5813546", "0.5791914", "0.5791914", "0.5791914", "0.5791914", "0.5791914", "0.5791914", "0.5788708", "0.5776185", "0.5772998", "0.57646686", "0.57388264", "0.57388264", "0.5736018", "0.57307315", "0.5730507", "0.5730507", "0.57256293", "0.5705837", "0.5704441", "0.5704441", "0.5704441", "0.5704441", "0.57017463", "0.57009506", "0.5694424", "0.56876814", "0.5686389", "0.56861776", "0.56861776", "0.56861776", "0.56861776", "0.56844705", "0.56702024", "0.56702024", "0.56702024", "0.5669612", "0.56577146", "0.5648451", "0.5639912", "0.56270534", "0.5624589", "0.56235677", "0.56235677", "0.56235677", "0.56235677", "0.56235677", "0.56235677", "0.56235677", "0.56235677", "0.56235677", "0.56235677", "0.56235677", "0.56235677", "0.56235677", "0.5622874", "0.5617197", "0.5617197", "0.56129503", "0.56072944", "0.56072944", "0.5604309", "0.56041384", "0.56041384", "0.56041384", "0.56041384", "0.56004", "0.559902", "0.559902", "0.559902", "0.559902", "0.559902", "0.55966854", "0.5596496", "0.5592519", "0.5584851", "0.55848444", "0.5583572", "0.5579113", "0.55778784" ]
0.73552376
0
Sets the Paper's reviewed state.
public void setReviewedState(boolean new_state) { this.reviewed = new_state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReview(final Review review);", "public void setMyReviewed(String myReviewed) {\n this.myReviewed = myReviewed;\n }", "public void setReview(double review) {\r\n this.review = review;\r\n }", "public void setStatus(Review review) {\n\t\tReview old=getById(review.getId());\n\t\told.setStatus(review.getStatus());\n\t\tsaveReview(old);\n\t}", "public void setReviewMode(boolean reviewMode) {\n mIsReviewMode = reviewMode;\n }", "public boolean getReviewed() {\n\t\treturn this.reviewed;\n\t}", "public Boolean isReviewState() {\n return this.isReviewState;\n }", "public void setReview(java.lang.String[] review) {\n this.review = review;\n }", "public void setSpecReview(double specReview) {\r\n this.specReview = specReview;\r\n }", "public void setReview(List<ReviewType> review) {\n\t this.review = review;\n\t}", "public boolean isReviewMode() {\n return mIsReviewMode;\n }", "public void setBooked(Integer booked) {\n this.booked = booked;\n }", "public void setBooked(boolean booked) {\n this.booked = booked;\n }", "public void setRating(int rating);", "public void setReviewButton() {\n if(dbMgr.checkReviewUser(username)) \n btnReviewGame.setVisible(true);\n else\n btnReviewGame.setVisible(false);\n }", "public void setRating(int rating)\n {\n this.rating = rating;\n }", "public void setRating(int rating) {\r\n this.rating = rating;\r\n }", "public void setMyReviewID(int myReviewID) {\n this.myReviewID = myReviewID;\n }", "public void setRptstate(Integer rptstate) {\n this.rptstate = rptstate;\n }", "public void setReviews(Set<Review> reviews) {\n this.reviews = reviews;\n }", "public void setRating(int rating) {\n this.rating = rating;\n }", "public EntityDefinitionModel withIsReviewState(Boolean isReviewState) {\n this.isReviewState = isReviewState;\n return this;\n }", "public void setPenState(boolean state) {\r\n\t\tthis.penState=state;\r\n\t}", "public void setRating(double rating) throws RatingWasAlreadySetExecption {\n if (!isRated) {\n this.rating = rating;\n this.isRated = true;\n } else {\n throw new RatingWasAlreadySetExecption(\"Rating was set on an already rated tweet!\", this, rating);\n }\n\n }", "public void setRating(int rating) {\n\t\tthis.rating = rating;\n\t}", "public void setRating(int rating) {\n this.rating = rating;\n if (this.rating < 0) {\n this.rating = 0;\n }\n }", "public boolean getIsPMReviewed() {\n if (review != null) {\n return review.isPMReviewed();\n } else {\n return false;\n }\n }", "void setDraft(boolean d);", "public void setRating(double rating){\n\t\tthis.rating = rating;\n\t}", "public void setRebateReviewData(PersonReviewData[] rebateReviewData) {\n this.rebateReviewData = rebateReviewData;\n }", "@Override\n public void showReview() {\n }", "public void setReview_id(String review_id) {\n this.review_id = review_id;\n }", "public void rateAndReview(String sEmail, String tEmail, String reviewBody, int rating,boolean flag) {\n\t\t\n\t\tRateAndReview r = new RateAndReview();\n\t\tr.setTutor(tEmail);\n\t\tr.setStudent(sEmail);\n\t\tr.setRating(rating);\n\t\tr.setReviewbody(reviewBody);\n\t\tr.setisPos(flag);\n\t\tr.setReview();\n\t\t\n\t}", "public void setReviews(ArrayList<Review> reviews) {\n\t\tthis.reviews = reviews;\n\t}", "protected void setProved() {\n\t\tproveState = PROVED;\n\t}", "public void setTested(boolean tested) {\n isTested = tested;\n }", "public void setRating(double rating) {\n\t\tthis.rating = rating;\n\t}", "public void setPressed(boolean pressed){\n this.isPressed = pressed;\n }", "public void setRating(Rating rating) {\n double boundedRating = this.boundedRating(rating);\n this.normalisedRating = this.normaliseRating(boundedRating);\n this.ratingCount++;\n }", "public void setReviewList(List<Review> reviewList) {\n this.reviewList = reviewList;\n notifyDataSetChanged();\n }", "public void setHotOrNotRating(int rating) {\r\n this.rating += rating;\r\n ratingCount++;\r\n }", "public String getReview(){\n\t\treturn this.review;\n\t}", "private void setPeerState(long proposedLeader, SyncedLearnerTracker voteSet) {\n ServerState ss = (proposedLeader == self.getMyId()) ? ServerState.LEADING : learningState();\n self.setPeerState(ss);\n if (ss == ServerState.LEADING) {\n leadingVoteSet = voteSet;\n }\n }", "@Override\r\n public void setEvaluation (Evaluation evaluation)\r\n {\r\n setShape(evaluation.shape, evaluation.grade);\r\n }", "public boolean setRating(int newRating) {\n\t\tif (newRating != this.rating && newRating <= 5 && this.rating >= 1) {\n\t\t\tthis.rating = newRating;\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private void setRadioButtonState() {\n if (selectedAnswerOne.equals(\"ONE\")) {\n questionOneAnswerOne.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"TWO\")) {\n questionOneAnswerTwo.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"THREE\")) {\n questionOneAnswerThree.setChecked(true);\n }\n if (selectedAnswerOne.equals(\"FOUR\")) {\n questionOneAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerTwo.equals(\"ONE\")) {\n questionTwoAnswerOne.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"TWO\")) {\n questionTwoAnswerTwo.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"THREE\")) {\n questionTwoAnswerThree.setChecked(true);\n }\n if (selectedAnswerTwo.equals(\"FOUR\")) {\n questionTwoAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerThree.equals(\"ONE\")) {\n questionThreeAnswerOne.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"TWO\")) {\n questionThreeAnswerTwo.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"THREE\")) {\n questionThreeAnswerThree.setChecked(true);\n }\n if (selectedAnswerThree.equals(\"FOUR\")) {\n questionThreeAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFour.equals(\"ONE\")) {\n questionFourAnswerOne.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"TWO\")) {\n questionFourAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"THREE\")) {\n questionFourAnswerThree.setChecked(true);\n }\n if (selectedAnswerFour.equals(\"FOUR\")) {\n questionFourAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerFive.equals(\"ONE\")) {\n questionFiveAnswerOne.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"TWO\")) {\n questionFiveAnswerTwo.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"THREE\")) {\n questionFiveAnswerThree.setChecked(true);\n }\n if (selectedAnswerFive.equals(\"FOUR\")) {\n questionFiveAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSix.equals(\"ONE\")) {\n questionSixAnswerOne.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"TWO\")) {\n questionSixAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"THREE\")) {\n questionSixAnswerThree.setChecked(true);\n }\n if (selectedAnswerSix.equals(\"FOUR\")) {\n questionSixAnswerFour.setChecked(true);\n }\n\n if (selectedAnswerSeven.equals(\"ONE\")) {\n questionSevenAnswerOne.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"TWO\")) {\n questionSevenAnswerTwo.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"THREE\")) {\n questionSevenAnswerThree.setChecked(true);\n }\n if (selectedAnswerSeven.equals(\"FOUR\")) {\n questionSevenAnswerFour.setChecked(true);\n }\n }", "public void ratingNetTrained() {\n useFeedbackCheckBoxMenuItem.setEnabled(true);\n }", "public double setAvg(Review reviewp) {\n\t\tint number=0;\n\t\tint mark=0;\n\t\tdouble br=0;\n\t\tfor(Review review: reviews) {\n\t\t\tif(review.getRestaurant().getName().equals(reviewp.getRestaurant().getName()) &&\n\t\t\t\t\treview.getStatus().equals(ReviewStatus.ACCEPTED)) {\n\t\t\t\t\t\tnumber++;\n\t\t\t\t\t\tmark+=review.getRating();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tif(mark==0) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn mark/number;\n\t}", "public void setBooked(boolean confirmed){\n booked = confirmed;\n }", "public void setRating(Integer rating) {\r\n this.rating = rating;\r\n }", "public String getMyReviewed() {\n return myReviewed;\n }", "public void setReviewType(java.lang.String value);", "public void setHasBeenPicked(Boolean picked)\n {\n if (picked == true)\n {\n hasBeenPicked = true;\n }\n else\n {\n hasBeenPicked = false;\n }\n }", "protected void setSubmitReviewButtonListener() {\n\n submitButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String username = getSharedPreferences(\"appUserPrefs\",MODE_PRIVATE).getString(\"username\",\"\");\n String venueID = pitch.getVenueID();\n String pitchName = pitch.getPitchName();\n PlayerSubmitReview playerSubmitReview = new PlayerSubmitReview(username,\n venueID, pitchName, ratingBar.getRating());\n connectionManager.setNewPitchRating(playerSubmitReview);\n Toast.makeText(instance, \"Pitch reviewed successfully: \" + ratingBar.getRating() ,\n Toast.LENGTH_SHORT).show();\n }\n });\n }", "public void setRating(float r) {\n\t\trating = r;\n\t}", "protected void setCurrentState(boolean currentState) {\n this.currentState = currentState;\n }", "public void setIsAsked(boolean isAnswered) {\n\t\tthis.isAsked = isAnswered;\n\t}", "@Override\r\n\tpublic void updateReview(ReviewVO rvo) {\n\t\tss.update(\"updateReview\", rvo);\r\n\t}", "public boolean setPrayer(Book pray, boolean active) {\n\t\tif (isPrayerOn(pray) == active) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tif (methods.skills.getRealLevel(Skills.PRAYER) < pray.getRequiredLevel()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tmethods.game.openTab(Game.Tab.PRAYER);\n\t\t\tif (methods.game.getTab() == Game.Tab.PRAYER) {\n\t\t\t\tRSComponent component = methods.interfaces.getComponent(PRAYER_INTERFACE, 7)\n\t\t\t\t\t\t.getComponent(pray.getComponentIndex());\n\t\t\t\tif (component.isValid()) {\n\t\t\t\t\tcomponent.doAction(active ? \"Activate\" : \"Deactivate\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn isPrayerOn(pray) == active;\n\t}", "@Activate\r\n protected void activate(final ReviewConfig reviewConfig) {\r\n text = reviewConfig.getText();\r\n demoBoolean = reviewConfig.getBoolean();\r\n selection = reviewConfig.getSelection();\r\n multifield = reviewConfig.getMultifled();\r\n }", "public void setReviewedBy(java.lang.String value);", "public void setRevealed(int revealed) { revealedShips = revealed;}", "@When(\"^Check for review$\")\n\tpublic void check_for_review() throws Throwable {\n\t\twait.WaitForElement(profilepage.getreviewlink(), 70);\n\t\tprofilepage.clickonreviewtab();\n\t}", "public void setReviewRatingStatistics(final ReviewRatingStatistics reviewRatingStatistics);", "@Override\n\tpublic void update(Review object) {\n\t\t\n\t}", "public void setPosted(boolean Posted) {\n\t\tset_Value(\"Posted\", new Boolean(Posted));\n\t}", "public void setReviews(ArrayList<String> reviews) {\n this.reviews = reviews;\n }", "public void setRating(float rating) {\n this.rating = rating;\n }", "public void setRentedShow(RentedShow rentedShow) { fRentedShow = rentedShow; }", "public double getReview() {\r\n return review;\r\n }", "public void setRating(int rating) {\n if (rating > starCount) {\n rating = starCount;\n }\n int lastRating = this.rating;\n this.rating = rating;\n for (int i = 0; i < getChildCount(); i++) {\n ImageView iv = (ImageView) getChildAt(i);\n if (i < rating) {\n iv.setImageResource(checkedStarDrawable);\n } else {\n iv.setImageResource(normalStarDrawable);\n }\n }\n if (listener != null && lastRating != rating) {\n listener.onRatingChanged(rating, starCount);\n }\n }", "public void setPickedUp(boolean pickedUp) {\r\n this.pickedUp = pickedUp;\r\n }", "public void setReviewsList(ArrayList<Review> reviews) {\n this.reviews = reviews;\n }", "public RatingAndReview(double rating, String review){\t\t\n this.rating = rating;\n this.review = review;\n\t}", "public void setRatings(Rating[] ratings) {\n this.ratings = ratings;\n }", "public void setRatedOn(Date ratedOn) {\n\t\tthis.ratedOn = ratedOn;\n\t}", "public void setReviewid(java.lang.String reviewid) {\n this.reviewid = reviewid;\n }", "public void setOn(){\n state = true;\n //System.out.println(\"Se detecto un requerimiento!\");\n\n }", "@Test\n public void testSetRating() {\n final double delta = 0.0;\n final double expectedRating1 = 70.0;\n final double expectedRating2 = 65.0;\n final double expectedRating3 = 85.5;\n movie1.setRating(expectedRating1);\n movie2.setRating(expectedRating2);\n movie3.setRating(expectedRating1);\n movie4.setRating(expectedRating3);\n movie1.setRating(expectedRating2);\n assertEquals(expectedRating2, movie1.getRating(), delta);\n assertEquals(expectedRating2, movie2.getRating(), delta);\n assertEquals(expectedRating1, movie3.getRating(), delta);\n assertEquals(expectedRating3, movie4.getRating(), delta);\n }", "public void newReview(Review review) throws SQLException\n {\n \n \n }", "public void setRating(java.lang.String rating) {\n this.rating = rating;\n }", "public static void setEnemyFive(boolean state)\r\n\t{\r\n\t\tenemyFive = state;\r\n\t}", "public void setPennies(int p)\n {\n\tthis.pennies = p;\n\tchangeChecker();\n }", "public int getReviewId()\r\n {\r\n return this.reviewId;\r\n }", "@Override\n\tpublic void setPaperId(long paperId) {\n\t\t_paper.setPaperId(paperId);\n\t}", "@Override\n public void setState(BookStatus bookStatus) {\n this.state = bookStatus;\n }", "public static void setEnemyFour(boolean state)\r\n\t{\r\n\t\tenemyFour = state;\r\n\t}", "public void setGameDraw() {\n this.gameStarted = false; \n this.winner = 0; \n this.isDraw = true; \n }", "@Override\r\n\tpublic void setSaleAndReviewNum(Product product) {\n\t\tproduct.setSaleCount(OrderItemService.getSaleCount(product.getId()));\r\n\t\tproduct.setReviewCount(reviewService.getCount(product.getId()));\r\n\t}", "@Override\n public void setGameState(GameState gameState) {\n this.gameState = gameState;\n }", "public void set(Applicant applicant) {\n\t\tArrayList<Integer> ratings = applicant.getReferenceRatings();\n\t\tif (ratings.size() == 0) {\n\t\t} else {\n\t\t\tif (ratings.size() == 1) {\n\t\t\t\tref1Rating.setText(ratings.get(0).toString());\n\t\t\t}\n\t\t\tif (ratings.size() == 2) {\n\t\t\t\tref1Rating.setText(ratings.get(0).toString());\n\t\t\t\tref2Rating.setText(ratings.get(1).toString());\n\t\t\t} \n\t\t\tif (ratings.size() >= 3) {\n\t\t\t\tref1Rating.setText(ratings.get(0).toString());\n\t\t\t\tref2Rating.setText(ratings.get(1).toString());\n\t\t\t\tref3Rating.setText(ratings.get(2).toString());\n\t\t\t}\n\t\t}\n\t\tif (applicant.getReviewerRating() != null) {\n\t\t\trevRating.setText(applicant.getReviewerRating().toString());\n\t\t}\n\t\tif (applicant.getReviewerComment() != null && !applicant.getReviewerComment().equals(\"\")) {\n\t\t\trevComment.setText(applicant.getReviewerComment());\n\t\t}\n\t}", "public void setIsAssigned(boolean isAssigned) {\r\n this.isAssigned = isAssigned;\r\n }", "public void setValidated(Player p, boolean value) {\n this.getInstance(p).setValidated(value);\n }", "protected Review() {}", "public void setP(boolean p) {\n\tthis.p = p;\n }", "public String getReview_id() {\n return this.review_id;\n }", "public void setLevelState(ExpertiseLevelState level) {\n this.levelState = level;\n }", "public void setWinner(boolean winner) {\n\t\tthis.winner = winner;\n\t}", "public void setModified(boolean state) {\n //System.out.println(\"setting modified to \" + state);\n //new Exception().printStackTrace();\n current.setModified(state);\n calcModified();\n }", "@Override\n public void setArmed(boolean state) {\n if (!shouldChangeArm(state))\n return;\n this.armed = state;\n changeArmedAppearance(state);\n ((WorkspaceView) canvas).invalidateElement(this);\n }" ]
[ "0.6631197", "0.65714896", "0.6440996", "0.644018", "0.63510954", "0.61637354", "0.6033385", "0.57590187", "0.5644696", "0.5642256", "0.5628952", "0.5625121", "0.5625083", "0.5558206", "0.54589087", "0.54224503", "0.540364", "0.53908783", "0.5385986", "0.5383015", "0.53762436", "0.5360179", "0.53447413", "0.5289674", "0.5282158", "0.52679086", "0.5256084", "0.5250621", "0.5247072", "0.5233874", "0.5189747", "0.5181957", "0.5170687", "0.5166792", "0.51648617", "0.5163663", "0.51574904", "0.5150339", "0.5148392", "0.51412046", "0.5135153", "0.51333916", "0.5132016", "0.5109292", "0.5107387", "0.5092178", "0.5086753", "0.50769216", "0.50710946", "0.5055637", "0.50404954", "0.50334585", "0.5031133", "0.50121284", "0.50070435", "0.5000577", "0.49921167", "0.49917907", "0.49868295", "0.49850947", "0.49669495", "0.49629703", "0.49565914", "0.49559292", "0.4937712", "0.49299508", "0.4921416", "0.49170664", "0.49129498", "0.49111944", "0.4907566", "0.49009162", "0.48948324", "0.48903525", "0.4887888", "0.48826393", "0.4881939", "0.48818353", "0.4879012", "0.4874258", "0.48692223", "0.48661166", "0.48628354", "0.48312187", "0.48302823", "0.48258674", "0.4823738", "0.48230132", "0.48223332", "0.48222172", "0.48218402", "0.48068085", "0.47849008", "0.47831059", "0.47771698", "0.47761846", "0.47680756", "0.476341", "0.4762778", "0.4755521" ]
0.75987035
0
Gets the unique id for this Paper.
public int getID() { return this.data.hashCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic long getPaperId() {\n\t\treturn _paper.getPaperId();\n\t}", "@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _paper.getPrimaryKey();\n\t}", "@Override\n\tpublic java.lang.String getUuid() {\n\t\treturn _paper.getUuid();\n\t}", "@NonNull\n public final synchronized String getId() {\n if (id == null) {\n id = UUID.randomUUID().toString();\n }\n return id;\n }", "public Long getPaperid() {\n return paperid;\n }", "public static String id()\n {\n return _id;\n }", "public String getId() {\n\t\treturn Integer.toString(this.hashCode());\n\t}", "public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }", "public java.lang.String getId() {\n return this._id;\n }", "public String getId() {\n if (id == null)\n return \"\"; //$NON-NLS-1$\n return id;\n }", "public java.lang.String getID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$24);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$12);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$12);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public UUID getID() {\r\n if(!getPayload().has(\"id\")) return null;\r\n return UUID.fromString(getPayload().getString(\"id\"));\r\n }", "public Long getId() {\n return pid;\n }", "public java.lang.String getId() {\r\n return this._id;\r\n }", "public String getUniqueID()\r\n {\r\n return (m_uniqueID);\r\n }", "public java.lang.Integer getId () {\n\t\treturn _id;\n\t}", "public java.lang.String getId() {\n return _id;\n }", "public UUID getIdentifier() {\n\t\treturn this.id;\n\t}", "public Long getId() {\n return this.id.get();\n }", "public static String getUniqueIdentifier() {\r\n UUID uuid = UUID.randomUUID();\r\n return uuid.toString();\r\n }", "@NonNull\n public String getId() {\n return mImpl.getId();\n }", "public String getPId() {\n return (String)getAttributeInternal(PID);\n }", "public final String getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "protected int getUniqueID() {\n\t\treturn uniqueID;\n\t}", "public long getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$6);\n if (target == null)\n {\n return 0L;\n }\n return target.getLongValue();\n }\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public int getID() {\n this.use();\n\n return ID;\n }", "public final Integer getId() {\n\t\treturn this.id;\n\t}", "public String getID() {\n return (id);\n }", "public final long getId() {\r\n return id;\r\n }", "public int getId() {\n if (!this.registered)\n return -1;\n return id;\n }", "public String getId() {\n return getObjectId();\n }", "@Override\n\tpublic org.kisti.edison.science.service.persistence.ScienceAppPaperPK getPrimaryKey() {\n\t\treturn _scienceAppPaper.getPrimaryKey();\n\t}", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "@Override\r\n\tpublic int getID() {\n\t\treturn jID()*100+ID();\r\n\t}", "java.lang.String getID();", "public final int getId() {\n\t\treturn this.accessor.getId();\n\t}", "public Integer getId() {\n return id.get();\n }", "public int getUniqueId() {\r\n\t\treturn uniqueId;\r\n\t}", "@java.lang.Override\n public long getId() {\n return id_;\n }", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public java.lang.String getId () {\n\t\treturn id;\n\t}", "public String getId() {\r\n\t\treturn userId.toString();\r\n\t}", "public int getId() {\n\t\t\treturn id_;\n\t\t}", "public int getId() {\n\t\t\treturn id_;\n\t\t}", "public UUID getId() {\n return mId;\n }", "public java.lang.String getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$4);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public long getId() {\n\t\treturn getTo(true).getId();\n\t}", "public java.lang.String getId () {\r\n\t\treturn id;\r\n\t}", "public UUID getUniqueId ( ) {\n\t\treturn extract ( handle -> handle.getUniqueId ( ) );\n\t}", "public final long getId() {\n return mId;\n }", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "public java.lang.Integer getId () {\n\t\treturn id;\n\t}", "@Override\n\tpublic UUID getUniqueId() {\n\t\treturn uid;\n\t}", "public int getId() {\n//\t\tif (!this.isCard())\n//\t\t\treturn 0;\n\t\treturn id;\n\t}", "public java.lang.String getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ID$0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "UUID getId();", "public long getID() {\n return _id;\n }", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public int getID() {\n return this._id;\n }", "public final String getId() {\n return id;\n }", "public int getId() {\n\t\t\t\treturn id_;\n\t\t\t}", "public int getId() {\n\t\t\t\treturn id_;\n\t\t\t}", "@Override\n\tpublic int getPID() {\n\t\treturn pID;\n\t}", "public long getId() {\n\t\t\treturn id;\n\t\t}", "public String getUniqueID() {\n return this.uniqueID;\n }", "public long getId() {\n\t\treturn(id);\n\t}", "public long getId ()\r\n {\r\n return _id;\r\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }", "public long getId() {\n return id_;\n }" ]
[ "0.7616921", "0.70498526", "0.69064295", "0.6798469", "0.6736007", "0.6731334", "0.67163587", "0.65980065", "0.6597458", "0.65956163", "0.65805614", "0.6563504", "0.6563504", "0.656127", "0.6557357", "0.6551552", "0.65406424", "0.6531756", "0.6526688", "0.6494517", "0.6469144", "0.6466629", "0.6442524", "0.64408183", "0.6437409", "0.643097", "0.643097", "0.643097", "0.643097", "0.643097", "0.643097", "0.643097", "0.6430553", "0.6422527", "0.6418943", "0.6418943", "0.6418943", "0.6418943", "0.6418943", "0.6418943", "0.6418943", "0.6418943", "0.6408826", "0.6406947", "0.6405319", "0.6396999", "0.63954735", "0.63932943", "0.63874626", "0.63827556", "0.6378278", "0.6378278", "0.6378278", "0.6378278", "0.637732", "0.6376332", "0.63724375", "0.6368676", "0.63655263", "0.6359996", "0.63592863", "0.635834", "0.6352226", "0.6350537", "0.6350537", "0.6348911", "0.6346939", "0.6344691", "0.6340551", "0.63388294", "0.6334019", "0.6331842", "0.6331842", "0.6331842", "0.6331842", "0.6331842", "0.6331842", "0.6331842", "0.6331842", "0.6331842", "0.6331842", "0.6331842", "0.63302124", "0.6326431", "0.63192654", "0.6317524", "0.6316894", "0.6315295", "0.63152385", "0.63140976", "0.6313008", "0.6313008", "0.63109654", "0.63060486", "0.62978053", "0.6297666", "0.62974596", "0.6296471", "0.6296471", "0.6296471", "0.6296471" ]
0.0
-1
Created by zhy on 15/6/19.
public interface OnLoginListener { void loginSuccess ( User user ); void loginFailed (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo38117a() {\n }", "private void poetries() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void kk12() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "private void init() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private void m50366E() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n void init() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "@Override\n public void init() {}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void init() {\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "private void init() {\n\n\n\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private void strin() {\n\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void initialize() { \n }", "public void mo12628c() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public void mo21877s() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public void mo55254a() {\n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n public int describeContents() { return 0; }" ]
[ "0.6058316", "0.5984293", "0.5921491", "0.5918009", "0.582021", "0.582021", "0.57767266", "0.57675314", "0.57478774", "0.57387745", "0.57368124", "0.57355887", "0.5734018", "0.5714725", "0.5712438", "0.5712438", "0.5712438", "0.5712438", "0.5712438", "0.57100487", "0.5709215", "0.57046807", "0.5686609", "0.5677903", "0.56599337", "0.56598175", "0.5648869", "0.56484175", "0.5634788", "0.5629552", "0.5625029", "0.5616626", "0.56120354", "0.56081474", "0.56054056", "0.5592907", "0.5585141", "0.55813134", "0.55813134", "0.55813134", "0.5578474", "0.55602", "0.555508", "0.555508", "0.5552459", "0.5552459", "0.5552459", "0.5550082", "0.5550082", "0.5546132", "0.55390155", "0.55321217", "0.5526897", "0.5526897", "0.5526897", "0.55262274", "0.5525127", "0.5525127", "0.5522559", "0.55132985", "0.55076087", "0.54914564", "0.547908", "0.547725", "0.5475085", "0.5474119", "0.5462473", "0.5462473", "0.5462473", "0.5462473", "0.5462473", "0.5462473", "0.5462473", "0.5457723", "0.54532164", "0.5448034", "0.5448034", "0.5448034", "0.5448034", "0.5448034", "0.5448034", "0.5445185", "0.5443236", "0.54410166", "0.54382", "0.5416651", "0.5414257", "0.5412716", "0.541159", "0.5403619", "0.5403619", "0.53788096", "0.53672725", "0.5361281", "0.5358825", "0.535868", "0.5356115", "0.53521746", "0.5351682", "0.53452355", "0.5344223" ]
0.0
-1
Determine whether the header (namespaces, metadata if part of the header) should be visited
default boolean visitHeader() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasHeader();", "default boolean hasHeader() {\n return true;\n }", "boolean isSetHeader();", "public boolean isHeaderParsed();", "boolean isHeader(int position);", "boolean containsHeader(String name);", "public boolean isHeader() {\n\t \treturn this == HEADER;\n\t }", "public boolean isHeader() {\n return isHeader;\n }", "public boolean hasHeader() {\n return hasHeader;\n }", "boolean hasHeading();", "boolean hasHeading();", "boolean hasHeading();", "public abstract boolean isFirstLineHeader();", "@Override\n\tpublic boolean containsHeader(String name) {\n\t\treturn false;\n\t}", "@Override\n public boolean containsHeader(String arg0) {\n return false;\n }", "public void Verify_Expected_Header_Visibility()\r\n\t{\r\n\t\tString Runtime_Header_text=Page_header.getText();\r\n\t\tif(Runtime_Header_text.equals(Exp_page_header))\r\n\t\t\tSystem.out.println(\"Expected Header visible at webpage\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Expected Header not visible at webpage\");\r\n\t}", "abstract protected boolean isHeaderLine(String line);", "public boolean getHeader() {\n return isHeader;\n }", "public boolean hasHeaders() {\n return (mHeaders != null);\n }", "private boolean loadRepositoryHeader() {\r\n\t\ttry {\r\n\t\t\t// annotation with URI: repositoryURL + \"#header\"\r\n\t\t\trepositoryURI = new URI(repURLFld.getText());\r\n\t\t\tURI repHeaderURI = new URI(repositoryURI+\"#header\");\r\n\t\t\t\r\n\t\t\tif (client==null) this.initAnnoteaClient();\r\n\t\t\t\r\n\t\t\t// get annotation using Annotea\r\n\t\t\tSet headerSet = client.findAnnotations(repHeaderURI);\r\n\t\t\tif (headerSet.size()>0) {\r\n\t\t\t\tDescription header = (Description) headerSet.iterator().next();\r\n\t\t\t\tversionDescriptions[0] = header;\r\n\t\t\t\t\r\n\t\t\t\t// parse header description to get author, date, baseOntologyURI\r\n\t\t\t\tthis.repositoryAuthor = header.getAuthor();\r\n\t\t\t\tthis.reposityCreatedDate = header.getCreated();\r\n\t\t\t\tthis.baseOntologyURI = new URI(header.getAnnotatedEntityDefinition());\r\n\t\t\t\t// and headVersionNumber\r\n\t\t\t\tthis.headVersionNumber = Integer.parseInt(header.getBody());\r\n\t\t\t\t\r\n\t\t\t\t// also get actual URL location of annotation\r\n\t\t\t\tthis.repHeaderLoc = header.getLocation();\r\n\t\t\t\t\r\n\t\t\t\t// set UI accordingly\r\n\t\t\t\tthis.repAuthorFld.setText(this.repositoryAuthor);\r\n\t\t\t\tthis.repDateFld.setText(this.reposityCreatedDate);\r\n\t\t\t\tthis.repBaseOntFld.setText(this.baseOntologyURI.toString());\r\n\t\t\t\tthis.toggleRepOptions(false);\r\n\t\t\t\tSystem.out.println(\"Ontology Repository header exists at \"+repHeaderURI);\r\n\t\t\t\treturn true;\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void Verify_Page_Header_Visibility()\r\n\t{\r\n\t\t if(Page_header.isDisplayed())\r\n\t\t\t System.out.println(\"header visible at webpage\");\r\n\t\t else\r\n\t\t\t System.out.println(\"header not visible at webpage\");\r\n\t\t\r\n\t}", "public boolean hasReqHeaders() {\n return fieldSetFlags()[5];\n }", "@Override\n public boolean containsHeader(String name) {\n return this._getHttpServletResponse().containsHeader(name);\n }", "public boolean isPrintHeader()\n\t{\n\t\treturn printHeader;\n\t}", "private boolean inspectHeader() throws UrlCacheException {\n\n\t\tif(header.contains(\"HTTP/1.1 2\")){\n\t\t\treturn true;\n\t\t}\n\t\telse if(header.contains(\"HTTP/1.1 304\"))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tthrow new UrlCacheException();\n\t\t\n\t}", "public boolean isSetHeaders() {\n return this.headers != null;\n }", "public boolean isHeaderFile(String ext);", "private boolean isProgramHeader() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\t// Check if current token matches given syntax.\n\t\tif(theCurrentToken.TokenType == TokenType.IDENTITY)\n\t\t{\n\t\t\t// Update scope key.\n\t\t\ttheSymbolTable.AddToScopeKey(theCurrentToken.TokenValue);\n\t\t\ttheTranslator = new Translator(theCurrentToken.TokenValue);\n\t\t\t\n\t\t\tupdateToken();\n\t\t\tif(theCurrentToken.TokenType == TokenType.IS)\n\t\t\t{\n\t\t\t\t// Update current symbol line number to be end of header. Header of program is position 0 (always).\n\t\t\t\ttheSymbolTable.CURR_SYMBOL.setLineNumber(theCurrentToken.TokenLineNumber);\n\t\t\t\t\n\t\t\t\t// Put symbol in table.\n\t\t\t\ttheTranslator.AddHeaderStrings(\"define i32 @main() {\");\n\t\t\t\ttheSymbolTable.PutSymbolInTable();\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t\telse\n\t\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t}\n\t\telse\n\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\treturn isValid;\n\t}", "@Override\n\tprotected Boolean isHeader(String[] fields) {\n\t\t//check\n return (isValid(fields) && fields[0].equals(\"event\") && fields[1].equals(\"yes\") && fields[2].equals(\"maybe\") && fields[3].equals(\"invited\") && fields[4].equals(\"no\"));\n\t}", "public boolean hasHeading() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasHeading() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "boolean repOk() {\n Set<Node> visited = new HashSet<Node>();\n Node n = header;\n while (n != null) {\n if (!visited.add(n)) {\n return false;\n }\n n = n.next;\n }\n return true;\n }", "public boolean hasHeading() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasHeading() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean hasHeader(String headerName) {\n return nameTable.containsKey(headerName.toLowerCase());\n }", "public boolean containsHeader(String s) {\n\t\treturn false;\n\t}", "public boolean hasHeading() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasHeading() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasFromTag() {\n return fromHeader != null && fromHeader.getTag() != null;\n }", "private boolean parseHeaders() {\n\n // headers have format:\n // key: value CRLF\n\n // the list ends with an empty CRLF\n\n // so you can process headers as long as you have CRLFs\n\n // put each header in this.request.getHeaders()\n\n // return true if you encounter a CRLF on an empty line\n\n // don't forget to consume the used lines from the buffer\n\n return false;\n }", "public boolean isHeaderView(int i) {\n return haveHeaderView() && i == 0;\n }", "Rule Header() {\n // Push 1 HeaderNode onto the value stack\n return Sequence(\n FirstOf(\n Include(),\n CppInclude(),\n Namespace()),\n actions.pushHeaderNode());\n }", "private boolean shouldCleanHeader(String header) {\n for(String skipHeader : CLEAN_HEADERS) {\n if(header.contains(skipHeader)){\n return true;\n }\n }\n return false;\n }", "public boolean isValid() {\n return header.isValid();\n }", "@Override\r\n public boolean hasNext() {\n return returned.next != header;\r\n }", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "public boolean repOK() {\n\t\tif (header == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (header.object_value != null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tRoopsSet visited = new RoopsSet();\n\t\tvisited.add(header);\n\t\tLinkedListNode current = header;\n\n\t\twhile (true) {\n\t\t\tLinkedListNode next = current.next;\n\t\t\tif (next == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (next.previous != current) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tcurrent = next;\n\t\t\tif (!visited.add(next)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (current != header) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (visited.getSize() - 1 != size) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public void forceNotInsideHeader() {\n insideHeader = false;\n }", "PageHeader getPageHeader();", "PageHeader getPageHeader();", "public Map<String, String> readHeader() {\r\n\t\tMap<String, String> headers = null;\r\n\t\tif (advanceToTag(\"Document\")) {\r\n\t\t\tif (advanceToTag(\"Header\")) {\r\n\t\t\t\theaders = this.in.readPropertyBlock();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn headers;\r\n\t}", "public LandingPage doCheckHeaderMenu() {\n if (EXPECTED_HEADER.length != HEADER_MENU.size()) {\n System.out.println(\"Not all headers were found on the page\");\n }\n for (int i = 0; i < HEADER_MENU.toArray().length; i++) {\n HEADER_MENU.get(i).click();\n final String headerName = HEADER_MENU.get(i).getText();\n if (headerName.equals(EXPECTED_HEADER[i])) {\n // exit\n } else {\n // exit\n }\n }\n return this;\n }", "public boolean isIncludeResponseHeaders() {\n return includeResponseHeaders;\n }", "public boolean isHeading() {\n/* 1381 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private boolean isProcedureHeader() throws IOException\n\t{\n\t\t// Initialize return value to false.\n\t\tboolean isValid = false;\n\t\tSymbol aSymbol = new Symbol();\n\t\t\n\t\tif(theCurrentToken.TokenType == TokenType.IDENTITY)\n\t\t{\n\t\t\ttheSymbolTable.AddToScopeKey(theCurrentToken.TokenValue);\n\t\t\ttheSymbolTable.CURR_SYMBOL.setLineNumber(theCurrentToken.TokenLineNumber);\n\t\t\t\n\t\t\tupdateToken();\n\t\t\tif(theCurrentToken.TokenType == TokenType.LEFT_PARENTHESIS)\n\t\t\t{\n\t\t\t\tif(theNextToken.TokenType != TokenType.RIGHT_PARENTHESIS)\n\t\t\t\t{\n\t\t\t\t\tupdateToken();\n\t\t\t\t\tif(isParameterList())\n\t\t\t\t\t{\n\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\tif(theCurrentToken.TokenType == TokenType.RIGHT_PARENTHESIS)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\ttheSymbolTable.CreateSymbolsForProcedureParameters();\n\t\t\t\t\t\t\taSymbol = theSymbolTable.CURR_SYMBOL;\n\t\t\t\t\t\t\ttheSymbolTable.PutSymbolInTable();\n\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tupdateToken();\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// TODO: Revisit.\n\t\t\t\ttheTranslator.HoldIncompleteData();\n\t\t\t\ttheTranslator.ProcedureDeclarationBuilder(theSymbolTable.ReturnScopeKeyForTranslation(), aSymbol);\n\t\t\t\t// TODO: add parameters to proc body.\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "public boolean isValidHeader(ArticleHeader header) {\n // 'Newgroups', 'From' and 'Subject' fields are mandatory\n if (!(header.contains(\"Newsgroups\") && header.contains(\"From\") && header.contains(\"Subject\"))) {\n return false;\n }\n\n return isValidFrom(header.get(\"From\")) && newsgroupValidator.isValidListOfNewsgroupNames(header.get(\"Newsgroups\"));\n }", "public boolean isEmpty()\r\n{\r\n return header == null;\r\n}", "private boolean isDeclaration() throws IOException\n\t{\t\n\t\treturn isGlobalDeclaration();\n\t}", "boolean hasMetaData();", "public boolean isFixedHeaders() {\n return fixedHeaders;\n }", "public Boolean getCanSelectHeaders() {\r\n return getAttributeAsBoolean(\"canSelectHeaders\");\r\n }", "abstract public void header();", "private void checkHeaderGeneration() {\r\n\t\tif (headerGenerated) {\r\n\t\t\tthrow new RuntimeException(\"Header already generated using previous value.\");\r\n\t\t}\r\n\t}", "public boolean validImageHeader() {\n\t\treturn input.validHeader(list.get(0));\n\t}", "public boolean containsHeader(String headerName)\n\t{\n\t\treturn this.headers.containsKey(headerName.toLowerCase());\n\t}", "public boolean isEmpty()\r\n/* 381: */ {\r\n/* 382:552 */ return this.headers.isEmpty();\r\n/* 383: */ }", "@Override\r\n\tpublic void loadHeader() {\n\r\n\t}", "protected boolean isHeadRequest(ActionInvocation actionInvocation) {\n return actionInvocation.method != null && HTTPMethod.HEAD.is(actionInvocation.method.httpMethod);\n }", "boolean isAutomaticHeaderImageEnabled();", "public void testHeaders() {\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset59.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertFalse(JdkUtil.LogEventType.UNKNOWN.toString() + \" collector identified.\",\n jvmRun.getEventTypes().contains(LogEventType.UNKNOWN));\n Assert.assertEquals(\"Event type count not correct.\", 3, jvmRun.getEventTypes().size());\n Assert.assertTrue(JdkUtil.LogEventType.HEADER_COMMAND_LINE_FLAGS.toString() + \" not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.HEADER_COMMAND_LINE_FLAGS));\n Assert.assertTrue(JdkUtil.LogEventType.HEADER_MEMORY.toString() + \" not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.HEADER_MEMORY));\n Assert.assertTrue(JdkUtil.LogEventType.HEADER_VERSION.toString() + \" not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.HEADER_VERSION));\n Assert.assertTrue(Analysis.WARN_EXPLICIT_GC_DISABLED + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_EXPLICIT_GC_DISABLED));\n }", "private void IdentifyHeaderAndFooter() {\n receipt_Header = receipt_lines.length > 0 ? receipt_lines[0] : null;\n receipt_Footer = receipt_lines.length > 1 ? receipt_lines[receipt_lines.length - 1].split(\" \")[0] : null;\n }", "@Deprecated\n/* */ public boolean isHeading() {\n/* 3013 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void visit(Header n){\r\n\t\tif(tempNode.notifyNode().equals(\"Header\")){\r\n\t\t\ttempNode = nodeList.get(sequence);\r\n\t\t\tArrayList<Token> tokenList = tempNode.getTokenList();\r\n\t\t\tString tmp =\"\";\r\n\t\t\tfor(int i=0;i<tempNode.getTokenListSize();i++){\r\n\t\t\t\tvisit(tokenList.get(i));\r\n\t\t\t}\r\n\r\n\t\t\tif(tokenList.size()<1)\r\n\t\t\ttmp = \"<h\"+tempNode.htype+\">\"+\"</h\"+tempNode.htype+\">\";\r\n\t\t\telse\r\n\t\t\ttmp = \"<h\"+tempNode.htype+\">\"+line+\"</h\"+tempNode.htype+\">\";\r\n\t\t\tline = tmp;\r\n\t\t}\r\n\t }", "@Test\n\tpublic void testBadHeaders() {\n\t\tassertNull( SectionHeaderTokenizer.checkLineForSectionHeader( null ) );\n\t\tassertNull( SectionHeaderTokenizer.checkLineForSectionHeader( \"\" ) );\n\t\tassertNull( SectionHeaderTokenizer.checkLineForSectionHeader( \" \" ) );\n\t\tassertNull( SectionHeaderTokenizer.checkLineForSectionHeader( \"A random string\" ) );\n\t\tassertNull( SectionHeaderTokenizer.checkLineForSectionHeader( \"Section: Conveyor System\" ) );\n\t\tassertNull( SectionHeaderTokenizer.checkLineForSectionHeader( \"Section:\" ) );\n\t}", "@Override\r\n public boolean hasPrevious() {\n return returned.prev != header;\r\n }", "@Override\n public boolean getDisplayHeaders() {\n return displayHeaders;\n }", "protected abstract boolean isAddAdapterHeader();", "private void readHeader() {\n version = \"\";\n XmlNode node = _document.SelectSingleNode(\"//ovf:Envelope\", _xmlNS);\n if (node != null) {\n version = node.attributes.get(\"ovf:version\").getValue();\n }\n }", "boolean hasMeta();", "private void initializeKnownHeaders() {\r\n needParceHeader = true;\r\n \r\n addMainHeader(\"city\", getPossibleHeaders(DataLoadPreferences.NH_CITY));\r\n addMainHeader(\"msc\", getPossibleHeaders(DataLoadPreferences.NH_MSC));\r\n addMainHeader(\"bsc\", getPossibleHeaders(DataLoadPreferences.NH_BSC));\r\n addMainIdentityHeader(\"site\", getPossibleHeaders(DataLoadPreferences.NH_SITE));\r\n addMainIdentityHeader(\"sector\", getPossibleHeaders(DataLoadPreferences.NH_SECTOR));\r\n addMainHeader(INeoConstants.PROPERTY_SECTOR_CI, getPossibleHeaders(DataLoadPreferences.NH_SECTOR_CI));\r\n addMainHeader(INeoConstants.PROPERTY_SECTOR_LAC, getPossibleHeaders(DataLoadPreferences.NH_SECTOR_LAC));\r\n addMainHeader(INeoConstants.PROPERTY_LAT_NAME, getPossibleHeaders(DataLoadPreferences.NH_LATITUDE));\r\n addMainHeader(INeoConstants.PROPERTY_LON_NAME, getPossibleHeaders(DataLoadPreferences.NH_LONGITUDE));\r\n // Stop statistics collection for properties we will not save to the sector\r\n addNonDataHeaders(1, mainHeaders);\r\n \r\n // force String types on some risky headers (sometimes these look like integers)\r\n useMapper(1, \"site\", new StringMapper());\r\n useMapper(1, \"sector\", new StringMapper());\r\n \r\n // Known headers that are sector data properties\r\n addKnownHeader(1, \"beamwidth\", getPossibleHeaders(DataLoadPreferences.NH_BEAMWIDTH), false);\r\n addKnownHeader(1, \"azimuth\", getPossibleHeaders(DataLoadPreferences.NH_AZIMUTH), false);\r\n }", "public boolean skipHeader() {\n return skipHeader;\n }", "public abstract String header();", "protected synchronized boolean isHeaderPushed() {\n\t\treturn headerPushed;\n\t}" ]
[ "0.77855617", "0.7196913", "0.70423865", "0.70185107", "0.69353485", "0.693492", "0.683787", "0.6835593", "0.6785251", "0.6711263", "0.6711263", "0.6711263", "0.66394657", "0.6609179", "0.65142447", "0.6423725", "0.6358522", "0.61899257", "0.6161261", "0.6155725", "0.6131932", "0.6053177", "0.60275054", "0.6018067", "0.6012144", "0.59988475", "0.59498596", "0.5932854", "0.5921676", "0.58936507", "0.58936507", "0.5891029", "0.5889214", "0.58665365", "0.5836965", "0.57996666", "0.579564", "0.5790739", "0.5787416", "0.57804185", "0.57593566", "0.5723006", "0.57077354", "0.5666909", "0.56560284", "0.56521505", "0.56521505", "0.56521505", "0.56521505", "0.56521505", "0.56521505", "0.56521505", "0.56521505", "0.56521505", "0.56521505", "0.56521505", "0.56521505", "0.56521505", "0.56521505", "0.56521505", "0.56521505", "0.56521505", "0.56521505", "0.56413555", "0.5599954", "0.5599289", "0.5599289", "0.55518115", "0.54839987", "0.5476663", "0.54639304", "0.545824", "0.5448576", "0.54070437", "0.53922766", "0.53919595", "0.53886503", "0.5385239", "0.53784484", "0.53619707", "0.5356062", "0.5323867", "0.53227615", "0.5319108", "0.53188473", "0.5308847", "0.53078043", "0.5305759", "0.53012145", "0.5297117", "0.52886295", "0.5287202", "0.5285631", "0.5283208", "0.5249931", "0.5239545", "0.5238619", "0.52366245", "0.5236116", "0.52350867" ]
0.7185421
2
Determine whether the mapping content (classes and anything below, metadata if not part of the header) should be visited
default boolean visitContent() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isClassMapping() {\n return !path.isEmpty() && !targetClass.isEmpty()\n && condAttr.isEmpty() && condAttrValue.isEmpty() && source.isEmpty()\n && sourceName.isEmpty() && targetProperty.isEmpty() && targetType.isEmpty();\n }", "default boolean visitElementContent(MappedElementKind targetKind) {\n\t\treturn true;\n\t}", "boolean hasFeedMapping();", "default boolean visitHeader() {\n\t\treturn true;\n\t}", "protected final boolean loadMapping() {\r\n if (_loaded) { return false; }\r\n _loaded = true;\r\n return true;\r\n }", "boolean hasHeader();", "public void user_mappings()\n {\n\t boolean mappingpresent =usermapping.size()>0;\n\t if(mappingpresent)\n\t {\n\t\t // System.out.println(\"User mapping report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"User mapping report is not present\");\n\t }\n }", "private boolean loadJsonBeforeTagInfo(String jRestKey,\n\t HashMap<String, String> hmapBeforeMapping, Definition apiDefinition) {\n\tSystem.out.println(\"Here is the Map\" + hmapBeforeMapping.toString());\n\n\tif (hmapBeforeMapping.containsKey(Constants.gsLangDefKeywordClass)\n\t\t&& hmapBeforeMapping.containsKey(Constants.gsLangDefKeywordMethod)\n\t\t&& hmapBeforeMapping.containsKey(Constants.gsLangDefKeywordConsume)) {\n\t String sClassName = hmapBeforeMapping.get(Constants.gsLangDefKeywordClass);\n\t String sMethodName = hmapBeforeMapping.get(Constants.gsLangDefKeywordMethod);\n\t String sResultUsage = hmapBeforeMapping.get(Constants.gsLangDefKeywordConsume);\n\n\t if (sClassName != null && sMethodName != null && sResultUsage != null) {\n\t\tif (sClassName.length() >= Constants.gshMinFunctionLength) {\n\t\t apiDefinition.setFqcnBefore(sClassName);\n\t\t} else {\n\t\t mLogger.error(Exceptions.gsInvalidFunctionNameGiven);\n\n\t\t return false;\n\t\t}// if (sClassName.length() >= Constants.gshMinFunctionLength)\n\n\t\tif (sMethodName.length() >= Constants.gshMinFunctionLength) {\n\t\t apiDefinition.setBeforeMethod(sMethodName);\n\t\t} else {\n\t\t // Method name too small error\n\t\t mLogger.error(Exceptions.gsInvalidMethodNameGiven);\n\n\t\t return false;\n\t\t}// if (sMethodName.length() >= Constants.gshMinFunctionLength)\n\n\t\tif (sResultUsage.equals(Constants.gsConsumeBeforeFalse)) {\n\t\t apiDefinition.setBeforeUsagePattern(false);\n\t\t} else if (sResultUsage.equals(Constants.gsConsumeBeforeTrue)) {\n\t\t apiDefinition.setBeforeUsagePattern(true);\n\t\t} else {\n\t\t mLogger.error(Exceptions.gsUnknownConsumeValue);\n\n\t\t return false;\n\t\t}// if (sResultUsage.equals(Constants.gsConsumeBeforeFalse))\n\t } else {\n\t\t// Empty values supplied for the keywords Method or Consume\n\t\tmLogger.error(String.format(Exceptions.gsMissingMandatoryValuesInBefore, jRestKey));\n\n\t\treturn false;\n\t }// if (sClassName != null && sMethodName != null && sResultUsage !=\n\t // null)\n\t} else {\n\t // Syntax error\n\t mLogger.error(String.format(Exceptions.gsMissingMandatoryKeywordsInBefore, jRestKey));\n\n\t return false;\n\t}// if (hmapBeforeMapping.containsKey(.... )\n\n\treturn true;\n }", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasMetadata();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "public boolean processPages() {\n\t\tfor (Iterator<SpreadsheetSection> iterator = data.iterator(); iterator.hasNext();) {\n\t\t\tSpreadsheetSection section = (SpreadsheetSection) iterator.next();\n\t\t\tif (section.isProcessed()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tif (!processSectionData(section)) {\n\t\t\t\tlogger.debug(\"Failed to process section \" + section.getSectionHeadingString() + \" for sheet \" + section.getSheetName());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "boolean hasHeading();", "boolean hasHeading();", "boolean hasHeading();", "boolean hasSimpleMap();", "boolean isHeader(int position);", "public boolean isInCache(Class clazz) {\n if (mappingCache == null) {\n return false;\n }\n return mappingCache.indexOf(clazz) != -1;\n }", "boolean hasMeta();", "private static boolean interview(Class<?> clazz) {\r\n\t\tAnnotation[] classAnnotations = clazz.getDeclaredAnnotations();\r\n\t\tif (classAnnotations.length > 0) {\r\n\t\t\tfor (Annotation an : classAnnotations) {\r\n\t\t\t\tif (an instanceof TableMapperAnnotation || an instanceof Table) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "protected void createMappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Package\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which RequirementsPkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which AbstractCapabilityPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::BehavioredClassifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Descendants are mapped to SysML::Blocks::Block, which cannot contain a Package.\\r\\nTherefore, store these AbstractCapabilityPackages in the nearest available package.\",\n\t\t\t \"constraints\", \"Multiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::ownedBehavior\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::BehavioredClassifier::ownedBehavior elements on which StateMachine stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Class\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::NamedElement::clientDependency elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::interfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block cannot contain PhysicalPath\\'s equivalent, hence we find the nearest available package to store them.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::StructuredClassifier::ownedConnector\",\n\t\t\t \"explanation\", \"since PhysicalLink is mapped to uml::Connector\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"should be mapped to uml::Property, but one of its concrete ancestors already is (Property), so avoid redefining it\\r\\nat this level to avoid profile generation issue\",\n\t\t\t \"constraints\", \"information::Property must have as base metaclass uml::Property\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Realization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::ComponentRealization or uml::InterfaceRealization regarding the baseMetaClass of the realized element\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Package\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Interface\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::InterfaceRealization::contract\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceImplementation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::InterfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Usage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::InterfaceRealization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Usage\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::supplier elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Classifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Some elements on which InterfaceAllocation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Realization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::NamedElement\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::DeploymentTarget\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::NamedElement::clientDependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::DeploymentTarget::deployment elements on which AbstractDeployment stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Dependency,could be mapped on uml::Deployment, but dependencies diagram allows to \\\"deploy\\\" more capella element types.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::client elements on which DeploymentTarget stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Connector\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::specific\",\n\t\t\t \"explanation\", \"first need to create ConnectorEnds pointing to the Ports, and then reference them in uml::Connector::end\",\n\t\t\t \"constraints\", \"cardinality must be [2..2]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Elements are contained in the nearest possible parent container.\",\n\t\t\t \"constraints\", \"some elements on which ComponentFunctionalExchangeAllocation stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Connector::end\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::ConnectorEnd\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::role\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::ConnectorEnd::role elements on which PhysicalPort stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::partWithPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Class\",\n\t\t\t \"explanation\", \"_todo_\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"SysML::PortAndFlows::FlowPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\n\t}", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "public boolean isMapped(Identity identity) {\n\t\treturn nodeMap.containsKey(identity);\n\t}", "public void mapHeader(){\r\n\t\tString header = readNextLine();\r\n\t\tif (header == null) return;\r\n\t\t\r\n\t\tString split[] = header.split(Constants.SPLIT_MARK);\r\n\t\tfor (int i=0; i < Constants.HEADER.length; i++){\r\n\t\t\tmapHeader.put(Constants.HEADER[i], Constants.UNKNOWN);\r\n\t\t\tfor (int j = 0; j < split.length; j++){\r\n\t\t\t\tif (Constants.HEADER[i].equals(split[j])){\r\n\t\t\t\t\tmapHeader.put(Constants.HEADER[i], j);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean isHeaderParsed();", "private static boolean hasAnnotatedValue(Graph g){\n Iterator<String> nodeIterator = g.getNodes().keySet().iterator();\n while(nodeIterator.hasNext()){\n GraphNode currentNode = g.getNodes().get(nodeIterator.next());\n if(!currentNode.getType().equals(OPMWTemplate.WORFKLOW_TEMPLATE_PROCESS)&&\n !currentNode.getType().equals(OPMWTemplate.WORFKLOW_TEMPLATE_ARTIFACT)){\n return true;\n }\n }\n return false;\n }", "boolean hasAnnotationMetadata();", "boolean contributesContent() {\n return includedInLastStep() && end >= start;\n }", "boolean hasMetaData();", "default boolean hasHeader() {\n return true;\n }", "boolean repOk() {\n Set<Node> visited = new HashSet<Node>();\n Node n = header;\n while (n != null) {\n if (!visited.add(n)) {\n return false;\n }\n n = n.next;\n }\n return true;\n }", "boolean isContentGenerated();", "public void pump(MappingProcessor mappingProcessor) throws IOException\n {\n LineNumberReader reader =\n new LineNumberReader(\n new BufferedReader(\n new InputStreamReader(\n new FileInputStream(mappingFile), \"UTF-8\")));\n try\n {\n String className = null;\n\n // Read the subsequent class mappings and class member mappings.\n while (true)\n {\n String line = reader.readLine();\n\n if (line == null)\n {\n break;\n }\n\n line = line.trim();\n\n // Is it a non-comment line?\n if (!line.startsWith(\"#\"))\n {\n // Is it a class mapping or a class member mapping?\n if (line.endsWith(\":\"))\n {\n // Process the class mapping and remember the class's\n // old name.\n className = processClassMapping(line, mappingProcessor);\n }\n else if (className != null)\n {\n // Process the class member mapping, in the context of\n // the current old class name.\n processClassMemberMapping(className, line, mappingProcessor);\n }\n }\n }\n }\n catch (IOException ex)\n {\n throw new IOException(\"Can't process mapping file (\" + ex.getMessage() + \")\");\n }\n finally\n {\n try\n {\n reader.close();\n }\n catch (IOException ex)\n {\n // This shouldn't happen.\n }\n }\n }", "@Override\n protected boolean preEmitCheck(SourceXmlSchemaHelper schemaHelper, \n CachedUrl cu, ArticleMetadata thisAM) {\n ArchivalUnit B_au = cu.getArchivalUnit();\n\n // The schema tells us which raw metadata value points to the correct article xml file\n String key_for_filename = schemaHelper.getFilenameXPathKey();\n\n // Use the map created earlier to locate the file from it's relative path\n String full_article_md_file = TarContentsMap.get(thisAM.getRaw(key_for_filename));\n log.debug3(\"full_article_md_file is : \" + thisAM.getRaw(key_for_filename));\n if (full_article_md_file == null) {\n return false;\n }\n\n /*\n * 1. Check for existence of PDF file; otherwise return false & don't emit\n */\n // pdf file has the same name as the xml file, but with \".pdf\" suffix\n\n CachedUrl fileCu = null;\n CachedUrl mdCu = null;;\n try {\n String full_article_pdf = full_article_md_file.substring(0,full_article_md_file.length() - 3) + \"pdf\"; \n fileCu = B_au.makeCachedUrl(full_article_pdf);\n log.debug3(\"Check for existence of \" + full_article_pdf);\n if(fileCu != null && (fileCu.hasContent())) {\n thisAM.put(MetadataField.FIELD_ACCESS_URL, fileCu.getUrl());\n /*\n * 2. Now get the volume, issue and supplement status from the URL\n * key_for_filename looks like this:\n * 03781119/v554i2/S0378111914011998/main.xml\n * we want the second section which could have a v, i, and s component\n * v# or v#-# \n * i# or i#-#\n * s#orLtr\n * will have at least v\n * exs: /v113-115sC/ or /v58i2-3/ or /v117i6/ or /v39sC/ or /v100i8sS/ \n */\n \n Matcher vMat = ISSUE_INFO_PATTERN.matcher(thisAM.getRaw(ElsevierDTD5XmlSchemaHelper.dataset_article_metadata));\n log.debug3(\"checking for volume information from path\");\n if (vMat.matches()) {\n String vol = vMat.group(1);\n String optIss = vMat.group(2);\n String optSup = vMat.group(3);\n log.debug3(\"found volume information: V\" + vol + \"I\" + optIss + \"S\" + optSup);\n thisAM.put(MetadataField.FIELD_VOLUME, vol);\n if( (optIss != null) || (optSup != null)){\n StringBuilder val = new StringBuilder();\n if (optIss != null) {\n val.append(optIss);\n }\n if (optSup != null) {\n val.append(optSup);\n }\n // there is no field equivalent to the suppl used by Elsevier\n thisAM.put(MetadataField.FIELD_ISSUE, val.toString()); \n }\n }\n /* \n * 3. Now get remaining metadata from the article xml file \n */\n mdCu = B_au.makeCachedUrl(full_article_md_file);\n /*\n * This is defensive programming. It's not clear how this could happen.\n * Since we got the full_article_md_file from the map, we know it's in\n * the AU. So an error here is a sign of a big problem.\n */\n if(mdCu == null || !(mdCu.hasContent())) {\n log.siteWarning(\"The stored article XML file is no longer accessible\");\n return true; \n }\n extractRemainingMetadata(thisAM, mdCu);\n return true;\n }\n } finally {\n AuUtil.safeRelease(fileCu);\n AuUtil.safeRelease(mdCu);\n }\n log.debug3(\"No pdf file exists associated with this record - don't emit\");\n return false; \n }", "boolean hasMetadataFields();", "private boolean loadJsonAfterTagInfo(String jRestKey, HashMap<String, String> hmapAfterMapping,\n\t Definition apiDefinition) {\n\tif (hmapAfterMapping.containsKey(Constants.gsLangDefKeywordClass)\n\t\t&& hmapAfterMapping.containsKey(Constants.gsLangDefKeywordMethod)) {\n\t String sClassName = hmapAfterMapping.get(Constants.gsLangDefKeywordClass);\n\t String sMethodName = hmapAfterMapping.get(Constants.gsLangDefKeywordMethod);\n\n\t if (sClassName != null && sMethodName != null) {\n\t\tif (sClassName.length() >= Constants.gshMinFunctionLength) {\n\t\t apiDefinition.setFqcnAfter(sClassName);\n\t\t} else {\n\t\t mLogger.error(Exceptions.gsInvalidFunctionNameGiven);\n\n\t\t return false;\n\t\t}// if (sClassName.length() >= Constants.gshMinFunctionLength)\n\n\t\tif (sMethodName.length() >= Constants.gshMinFunctionLength) {\n\t\t apiDefinition.setAfterMethod(sMethodName);\n\t\t} else {\n\t\t mLogger.error(Exceptions.gsInvalidMethodNameGiven);\n\n\t\t return false;\n\t\t}// if(sMethodName.length() >= Constants.gshMinFunctionLength)\n\t } else {\n\t\t// throw missing values error\n\t\tmLogger.error(String.format(Exceptions.gsMissingMandatoryValuesInAfter, jRestKey));\n\t\treturn false;\n\t }// if (sClassName != null && sMethodName != null)\n\n\t} else {\n\t mLogger.error(String.format(Exceptions.gsMissingMandatoryKeywordsInAfter, jRestKey));\n\t return false;\n\t}// if (hmapAfterMapping.containsKey(Constants.gsLangDefKeywordClass)\n\n\treturn true;\n }", "@Override\r\n\tpublic boolean isStartPage(String target) {\r\n\r\n\t\tif (this.matchedPages.containsKey(target)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tString value = this.checkValue(target, this.startPages);\r\n\t\tif (value == null) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tthis.matchedPages.put(target, value);\r\n\t\treturn false;\r\n\t}", "public abstract AnnotationMap mo30683d();", "boolean hasMappings() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ef in method: android.icu.impl.coll.CollationDataBuilder.hasMappings():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.hasMappings():boolean\");\n }", "@java.lang.Override\n public boolean hasContent() {\n return content_ != null;\n }", "@java.lang.Override\n public boolean hasMetadata() {\n return metadata_ != null;\n }", "@java.lang.Override\n public boolean hasMetadata() {\n return metadata_ != null;\n }", "@java.lang.Override\n public boolean hasMetadata() {\n return metadata_ != null;\n }", "public void mapping() {\n\t\t\n\t}", "@Override\n\tpublic boolean isMetadata() {\n\t\treturn false;\n\t}", "@Override\n public boolean hasMeta() {\n return meta_ != null;\n }", "public boolean hasContent() {\n return fieldSetFlags()[8];\n }", "public boolean isNativeMaps() {\n return internalNative != null;\n }", "boolean canHandlePageClass(Class<? extends Page> pageClazz, PageParameters pageParameters);", "@Override\n\tpublic boolean hasContent() {\n\t\treturn false;\n\t}", "private boolean isMenuPage(Document parsed) {\n boolean isCorrect = false;\n Element heading = parsed.getElementById(\"heading\");\n if (heading == null) {\n return false;\n }\n if (heading.text().equals(DirectoryParser.HEADING_TEST_STRING)) {\n isCorrect = true;\n }\n Elements selected = parsed.getElementsByTag(\"article\");\n if (selected.size() != 1) {\n return false;\n } else {\n Attributes articleAttributes = selected.first().attributes();\n if (articleAttributes.size() != 2) {\n return false;\n }\n if (articleAttributes.asList().contains(new Attribute(\"id\", \"main\"))) {\n if ((articleAttributes.asList().contains(new Attribute(\"class\", \"wholePage\")))) {\n isCorrect = true;\n }\n }\n }\n Element menu = parsed.getElementById(\"sixItems\");\n if (menu == null) {\n return false;\n }\n return isCorrect;\n }", "boolean hasExplicitContentDetectionConfig();", "public boolean hasContent() {\n return fieldSetFlags()[1];\n }", "public boolean hasRelevantRegions() {\n return fieldSetFlags()[6];\n }", "public boolean isHeader() {\n\t \treturn this == HEADER;\n\t }", "@java.lang.Override\n public boolean hasRoute() {\n return stepInfoCase_ == 7;\n }", "boolean hasMetadataJson();", "public boolean hasContentKeys() {\n return fieldSetFlags()[7];\n }", "static boolean AnyMapTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AnyMapTest\")) return false;\n if (!nextTokenIs(b, K_MAP)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeTokens(b, 3, K_MAP, L_PAR, STAR_SIGN, R_PAR);\n p = r; // pin = 3\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "@Override\r\n\tpublic boolean hasHiddenMiniMap() {\n\t\treturn false;\r\n\t}", "boolean supportsMimeMappings();", "private boolean hasDecorations() {\n \t\tsynchronized (fDecorationMapLock) {\n \t\t\treturn !fDecorationsMap.isEmpty();\n \t\t}\n \t}", "@java.lang.Override\n public boolean hasRoute() {\n return stepInfoCase_ == 7;\n }", "@Override\n\tpublic boolean canExtract() {\n\t\treturn false;\n\t}", "public boolean hasAnnotatedBusiness(){\r\n\t\tList bus = this.rootDoc.selectNodes(\"a-business\") ;\r\n\t\t\r\n\t\treturn !bus.isEmpty() ;\r\n\t}", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();" ]
[ "0.6146256", "0.55440784", "0.5483715", "0.54618317", "0.5401735", "0.525554", "0.5235267", "0.5234724", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.51748633", "0.5149632", "0.5149632", "0.5149632", "0.5149632", "0.5149632", "0.5149632", "0.5149632", "0.5120026", "0.509633", "0.509633", "0.509633", "0.50807124", "0.5080499", "0.5059613", "0.5041594", "0.49522156", "0.49436232", "0.49406588", "0.49117368", "0.48954067", "0.48856083", "0.48700082", "0.4856492", "0.48434386", "0.4839906", "0.4834011", "0.48158103", "0.48129377", "0.48125052", "0.4809039", "0.47933245", "0.479204", "0.47907177", "0.478645", "0.47849953", "0.4784593", "0.47777808", "0.47777808", "0.47777808", "0.477367", "0.4773286", "0.47672096", "0.47668597", "0.4762617", "0.4759899", "0.4757001", "0.47437766", "0.47407478", "0.47389266", "0.47307816", "0.47216633", "0.47148305", "0.47086748", "0.470564", "0.47043338", "0.4700688", "0.46889046", "0.46854877", "0.46812394", "0.46796292", "0.4677286", "0.46743518", "0.46743518", "0.46743518", "0.46743518", "0.46743518", "0.46743518", "0.46743518", "0.46743518", "0.46743518", "0.46743518", "0.46743518", "0.46743518", "0.46743518" ]
0.53952163
5
Finish the visitation pass.
default boolean visitEnd() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void finish() {\n }", "void endVisit(Group group);", "public void visitEnd()\n\t{\n\t}", "public void finish() {\n\n\t}", "public void finish() { \n\t\t\n\t}", "protected void finish() {\n }", "public void finish() {}", "protected void finishExecution() {\r\n\r\n\t}", "public void finish(){\n\t\tnotfinish = false;\n\t}", "@Override\n\tpublic void finish() {\n\t\t\n\t}", "@Override\n\tpublic void finish() {\n\n\t}", "@Override\n\tpublic void finish() {\n\n\t}", "@Override\n\tpublic void finish() {\n\n\t}", "void innerFinish() {\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\tclose();\r\n\t\t\t\t\t}", "public void finish(TrackerState state) {\n\t\t\n\t}", "protected void end() {\n isFinished();\n }", "public void finish() {\n PackageManagerActivity.super.finish();\n d a2 = d.a((Context) this);\n Iterator<String> it = this.g.iterator();\n while (it.hasNext()) {\n String next = it.next();\n a2.e(next);\n com.miui.permcenter.a.a.a(next);\n }\n }", "void leituraEnd();", "protected abstract void finish();", "@Override\n public void finish() throws CrawlerException {\n processor.finish();\n }", "protected void end() {\n \n \n }", "void ifDoneFinish() {\r\n\t\t\t\t\t\tif (wip.decrementAndGet() == 0) {\r\n\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t\tclose();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void finish() {\n\n }", "public void finish() {\n printReport();\n printGlobalOpsPerSec();\n }", "public void finish() throws Exception {\n\t\t\n\t}", "public void finish() {\n if (!isFinishing) {\n performFnishWithRequest(true);\n }\n }", "protected void end()\n\t{\n\t}", "void endGeneration();", "private void onFinish() {\r\n\t\t//used for create end html tags\r\n\t\tendHtmlPage(fout);\r\n\r\n\t\t//used for write every thing in html file\r\n\t\tfout.flush();\r\n\t\tfout.close();\r\n\t\t\r\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "public abstract void finish();", "public void finish(){\n }", "protected void end() {\n\r\n\t}", "@Override\n\tpublic void visitEnd() {\n\t\tresultReady = true;\n\t}", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "public void finish();", "public void end() {\n\t\tsigue = false;\n\t}", "public void done() {\n\t\t}", "@Override\n\tpublic void finish() {\n\t\tsuper.finish();\n\t}", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "public void onFinish(ITestContext arg0) {\n\t\t\n\t}", "public void onFinish(ITestContext arg0) {\n\t\t\n\t}", "@Override\n\tpublic void finish() {\n\t\tsuper.finish();\n\t\tSystem.exit(0);\n\t}", "@InnerAccess void visitEnd ()\n\t{\n\t\tclassWriter.visitEnd();\n\t}", "@Override\r\n\tpublic void finish() {\n\t\tsuper.finish();\r\n\t \r\n\t}", "@Override\n\tpublic void finishSuccess() {\n\t\tSystem.err.println(\"finishSuccess\");\n\n\t}", "@Override\r\n\tprotected void processFinish() {\n\r\n\t}", "@Override\r\n\tprotected void processFinish() {\n\r\n\t}", "@Override\r\n\tprotected void processFinish() {\n\r\n\t}", "public void onFinish(ITestContext arg0) {\n\t\t\r\n\t}", "public void onFinish(ITestContext arg0) {\n\t\t\r\n\t}", "public void onFinish(ISuite suite) {\n\n\t}", "@Override\n\tpublic void finish()\n\t{\n\t\tsuper.finish();\n\t}", "@Override\r\n\tpublic void DAGfinished() {\n\t\t\r\n\t}", "public boolean finish() {\n/* 465 */ return finish(false);\n/* */ }", "public static void endStep() {\n\t\tTestNotify.log(GenLogTC() + \"has been tested.\");\n\t}", "public void finish(Node n) {}", "public void finish() {\n latch.countDown();\n }", "protected void finished(){\n if (doFilterUpdate) {\n //runFilterUpdates();\n }\n \n double groupTotalTimeSecs = (System.currentTimeMillis() - (double) groupStartTime) / 1000;\n log.info(\"Job \"+id+\" finished \" /*+ parsedType*/ + \" after \"\n + groupTotalTimeSecs + \" seconds\");\n \n ((DistributedTileBreeder)breeder).jobDone(this);\n }", "@Override\r\n\tpublic void onFinish(ITestContext arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onFinish(ITestContext arg0) {\n\t\t\r\n\t}", "public void finish() {\n System.out.println(name + \": Call explicit destroy()\");\n }" ]
[ "0.73306817", "0.7155794", "0.714167", "0.71378523", "0.7134606", "0.7073065", "0.70672905", "0.6970125", "0.68982667", "0.6892663", "0.68330413", "0.68330413", "0.68330413", "0.67312676", "0.6706383", "0.668997", "0.6680053", "0.66370094", "0.66239053", "0.66206706", "0.6616562", "0.6598957", "0.6590294", "0.65614885", "0.6561286", "0.65517324", "0.6539927", "0.6522532", "0.6490253", "0.6478001", "0.6478001", "0.6478001", "0.6478001", "0.6478001", "0.6478001", "0.6477985", "0.6473836", "0.6449134", "0.64427114", "0.6435205", "0.6435205", "0.6435205", "0.6435205", "0.63822925", "0.6371635", "0.6356267", "0.6350066", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.6337531", "0.63294846", "0.63294846", "0.631635", "0.6316235", "0.6312032", "0.63106143", "0.63092995", "0.63092995", "0.63092995", "0.63054746", "0.63054746", "0.6299105", "0.62957585", "0.6289221", "0.62822056", "0.6281782", "0.62807226", "0.6271535", "0.6266059", "0.62600684", "0.62600684", "0.62197036" ]
0.63020504
89
Determine whether the element content (comment, subelements) should be visited. This is also a notification about all available dst names having been passed on.
default boolean visitElementContent(MappedElementKind targetKind) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default boolean visitContent() {\n\t\treturn true;\n\t}", "public static boolean hasElements() {\n return content.size() > 0;\n }", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "protected boolean isSourceElement() {\n\t\treturn false;\n\t}", "public boolean visit(AllElement node) {\n return visit((CommonCompositorDefinition)node);\n }", "boolean hasExplicitContentDetectionConfig();", "public boolean comesFromDiagramElement() {\n return getOriginalElement() != null;\n }", "protected boolean isStructureKnown() {\n\t\ttry {\n\t\t\treturn ((OpenableElementInfo) getElementInfo()).isStructureKnown();\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean canReproduce() {\r\n ArrayList<Cell> neighbours = getNeighbours(FIRSTLAYER);\r\n\r\n int numOfSameT = 0;\r\n int numOfEmpty = 0;\r\n int numOfFoodC = 0;\r\n\r\n for (Cell cell : neighbours) {\r\n if (isSameType(cell.getInhabit())) {\r\n numOfSameT++;\r\n } else if (cell.getInhabit() == null && isTerrainAccessiable(cell)) {\r\n numOfEmpty++;\r\n } else if (isEdible(cell.getInhabit())) {\r\n numOfFoodC++;\r\n }\r\n }\r\n\r\n return (numOfSameT >= numOfSameTypeNeighbourToReproduce() \r\n && numOfEmpty >= numOfEmptyToReproduce()\r\n && numOfFoodC >= numOfFoodCellToReproduce());\r\n }", "boolean repOk() {\n Set<Node> visited = new HashSet<Node>();\n Node n = header;\n while (n != null) {\n if (!visited.add(n)) {\n return false;\n }\n n = n.next;\n }\n return true;\n }", "public boolean isVisitedBy(String name) {\n\t\tif(name == null) return false;\n\t\t//Sonderfall: wird als interner code für alle Anwender verwendet\n\t\tif(name.equals(\"\")) return true;\n\t\tfor (Visitor visitor : visitors) {\n\t\t\tif(visitor.getName().equals(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean contributesContent() {\n return includedInLastStep() && end >= start;\n }", "public boolean hasChildren(Object element) {\n\t\treturn false;\r\n\t}", "private boolean isWanted(Node n) {\n if (use_All) {\n return true;\n }\n String name = n.getNodeName();\n for (int ix = 0; ix < remove_tags.length; ix++) {\n if (name.compareTo(remove_tags[ix]) == 0) {\n return false;\n }\n }\n for (int ix = 0; ix < add_tags.length; ix++) {\n if (name.compareTo(add_tags[ix]) == 0) {\n return true;\n }\n }\n return false;\n }", "boolean hasIsNodeOf();", "boolean isContentDisplayed();", "public boolean isContentAddressable();", "@Override\n\tpublic boolean okToTraverse(Level3Element ele)\n\t{\n\t\treturn !ubiqueIDs.contains(ele.getUri());\n\t}", "boolean hasChildren();", "boolean isVisited();", "boolean isVisited();", "boolean hasMatchedElements();", "protected boolean isValidElement(Object element) {\r\n\t\treturn element instanceof IRubyProject || element instanceof ISourceFolderRoot;\r\n\t}", "boolean hasContents();", "boolean hasContents();", "@Override\r\n\tpublic boolean isVisited() {\n\t\treturn false;\r\n\t}", "@Override \n public boolean shouldTraverse(Traversal traversal, Exp e, Exp parent) {\n return true; \n }", "private boolean isContentNode(NodePattern node, Set<NodePattern> contentNodes) {\n\t\tfor (EdgePattern outgoing : node.getOutgoings()) {\r\n\t\t\tif (contentNodes.contains(outgoing.getTarget())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Child elements of content elements are always also content elements:\r\n\t\tfor (EdgePattern incoming : node.getIncomings()) {\r\n\t\t\tif (incoming.getType().isContainment() && contentNodes.contains(incoming.getSource())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\treturn false;\r\n\t}", "boolean isValidAndHandleSpecial(String title) {\n\t\tif (skipReportElement) {\n\t\t\tskipReportElement = false;\n\t\t\treturn false;\n\t\t}\n\n\t\tswitch (elementData) {\n\t\tcase NONE:\n\t\t\tbreak;\n\t\tcase CLASS_DOC:\n\t\t\ttest.addProperty(\"Class Documentation\", title);\n\t\t\ttest.setDescription(title);\n\t\t\telementData = NONE;\n\t\t\treturn false;\n\t\tcase TEST_DOC:\n\t\t\ttest.addProperty(\"Test Documentation\", title);\n\t\t\ttest.setDescription(title);\n\t\t\telementData = NONE;\n\t\t\treturn false;\n\t\tcase USER_DOC:\n\t\t\ttest.addProperty(\"User Documentation\", title);\n\t\t\ttest.setDescription(title);\n\t\t\telementData = NONE;\n\t\t\treturn false;\n\t\tcase TEST_BREADCUMBS:\n\t\t\ttest.addProperty(\"Breadcrumb\", title.replace(\"</span>\", \"\"));\n\t\t\telementData = NONE;\n\t\t\t// This also closes the span\n\t\t\tspanTrace--;\n\t\t\treturn false;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tif (StringUtils.isEmpty(title)) {\n\t\t\treturn false;\n\t\t}\n\t\tif (title.contains(SPAN_OPEN_TAG)) {\n\t\t\t// ITAI: This is a ugly hack, When we execute from the IDE there\n\t\t\t// is a missing span close tag, so we\n\t\t\t// Never increase the number of the span trace above one.\n\t\t\tif (!(JSystemProperties.getInstance().isExecutedFromIDE() && spanTrace == 1)) {\n\t\t\t\tspanTrace++;\n\t\t\t}\n\t\t}\n\t\tif (spanTrace > 0) {\n\t\t\t// In span, let's search for that special elements\n\t\t\tswitch (title) {\n\t\t\tcase SPAN_OPEN_CLASS_DOC_TAG:\n\t\t\t\telementData = CLASS_DOC;\n\t\t\t\tskipReportElement = true;\n\t\t\t\tbreak;\n\t\t\tcase SPAN_OPEN_TEST_DOC_TAG:\n\t\t\t\telementData = TEST_DOC;\n\t\t\t\tskipReportElement = true;\n\t\t\t\tbreak;\n\t\t\tcase SPAN_OPEN_USER_DOC_TAG:\n\t\t\t\telementData = USER_DOC;\n\t\t\t\tskipReportElement = true;\n\t\t\t\tbreak;\n\t\t\tcase SPAN_OPEN_BREADCRUMBS_TAG:\n\t\t\t\telementData = TEST_BREADCUMBS;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (title.contains(SPAN_CLOSE_TAG)) {\n\t\t\tspanTrace--;\n\t\t\treturn false;\n\t\t}\n\n\t\t// ITAI: When running from the IDE, there are missing span closing\n\t\t// tags, so we do not increase the span trace after level one. The\n\t\t// result is that the span trace may have a negative value\n\t\treturn spanTrace <= 0;\n\t}", "public final boolean isChildrenLayoutNecessary() {\n return isStatusBitsNonZero(CHILDREN_LAYOUT_NECESSARY_BIT);\n }", "@java.lang.Override\n public boolean hasContent() {\n return content_ != null;\n }", "public void testIsStylePermittedInElement() throws Exception {\n assertFalse(cfg.isStylePermittedInElement(\"test\"));\n assertFalse(cfg.isStylePermittedInElement(\"d1\"));\n assertFalse(cfg.isStylePermittedInElement(\"ind1\"));\n assertFalse(cfg.isStylePermittedInElement(\"ind2\"));\n\n cfg.associateStylisticAndAntiElements(\"test\", \"anti-test\",\n permittedChildren);\n cfg.addDivisibleElementsThatPermitStyles(new String[] {\"d1\"});\n cfg.addIndivisibleElementsThatPermitStyles(\n new String[] {\"ind1\", \"ind2\"});\n\n assertTrue(cfg.isStylePermittedInElement(\"test\"));\n assertTrue(cfg.isStylePermittedInElement(\"d1\"));\n assertTrue(cfg.isStylePermittedInElement(\"ind1\"));\n assertTrue(cfg.isStylePermittedInElement(\"ind2\"));\n\n assertFalse(cfg.isStylePermittedInElement(\"anti-test\"));\n assertFalse(cfg.isStylePermittedInElement(\"child\"));\n assertFalse(cfg.isStylePermittedInElement(\"TEST\"));\n assertFalse(cfg.isStylePermittedInElement(\"D1\"));\n }", "public boolean containsContextNodes();", "protected boolean checkIfAdditionalInfo(NbaDst work) {\n\t\tif (A_WT_TEMP_REINSURANCE.equals(work.getWorkType()) && !work.getNbaSources().isEmpty()) {\n\t\t\tList sources = work.getNbaSources();\n\t\t\tfor(int i=0; i<sources.size();i++) {\n\t\t\t\tNbaSource nbaSource = (NbaSource) work.getNbaSources().get(i);\n\t\t\t\tif(A_ST_REINSURANCE_XML_TRANSACTION.equals(nbaSource.getSourceType())) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean HasContent() {\n return rgbContent != null;\n }", "public boolean canBeSeen()\n {\n if (!this.hasParent() || !this.isVisible())\n {\n return false;\n }\n\n GuiElement element = this;\n\n while (true)\n {\n if (!element.isVisible())\n {\n return false;\n }\n\n GuiElement parent = element.getParent();\n\n if (parent instanceof GuiDelegateElement && ((GuiDelegateElement) parent).delegate != element)\n {\n return false;\n }\n\n if (parent == null)\n {\n break;\n }\n\n element = parent;\n }\n\n return element instanceof GuiBase.GuiRootElement;\n }", "private void scanForLocations(Element elem) {\n \n String location = getLocation(elem);\n if (location != null) {\n locationToElement.put(location, elem);\n DOM.setInnerHTML(elem, \"\");\n } else {\n int len = DOM.getChildCount(elem);\n for (int i = 0; i < len; i++) {\n scanForLocations(DOM.getChild(elem, i));\n }\n }\n }", "private boolean checkSpaceAvailability(Point targetLocation, ICityFragment element) {\r\n //basic constraint:no other things here\r\n\r\n if (city.isAnythingHere(targetLocation, element.getBoundary().width, element.getBoundary().height, element)) {\r\n return false;\r\n }\r\n\r\n //crossroads:at least one road can connected\r\n if (element instanceof Crossroads) {\r\n var crossroad = (Crossroads) element;\r\n\r\n var accessibleRoad = findAccessibleRoads(crossroad, targetLocation);\r\n\r\n if (accessibleRoad == null || accessibleRoad.size() <= 1) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public boolean hasBeenExpanded(Object inNode)\n\t{\n\t\tObject parent = inNode;\n\t\twhile( parent != null)\n\t\t{\n\t\t\tString path = toUrl(inNode);\n\t\t\tif( getExpandedNodes().contains(path) )\n\t\t\t{\n\t\t\t\tparent = getWebTree().getModel().getParent(parent);\n\t\t\t\t//If we get to the root and it is selected still then we are ok!\n\t\t\t\tif( parent == null)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean hasElement();", "@Override\n public boolean accepts(@NotNull PsiElement element, ProcessingContext context) {\n CobolStatement_ statementOfTyped = PsiTreeUtil.getParentOfType(element, CobolStatement_.class);\n\n if (statementOfTyped == null) return false;\n\n PsiElement prevLeaf = element;\n while ((prevLeaf = PsiTreeUtil.prevLeaf(prevLeaf)) != null) {\n // If out of statement boundaries, exit.\n CobolStatement_ statementOfLeaf = PsiTreeUtil.getParentOfType(prevLeaf, CobolStatement_.class);\n\n if (!statementOfTyped.equals(statementOfLeaf)) {\n break;\n }\n\n if (types.contains(prevLeaf.getNode().getElementType())) {\n return true;\n }\n }\n\n return false;\n }", "@Override\r\n\tpublic boolean isAllHit() {\r\n\t\treturn priorityElements.isEmpty();\r\n\t}", "boolean hasChildNodes();", "boolean hasDestination();", "boolean hasDestination();", "public boolean canLayout(ILayoutContext context) {\n\t\tPictogramElement pe = context.getPictogramElement();\r\n\t\tif (!(pe instanceof ContainerShape))\r\n\t\t\treturn false;\r\n\t\tEList<EObject> businessObjects = pe.getLink().getBusinessObjects();\r\n\t\treturn businessObjects.size() == 1 && businessObjects.get(0) instanceof Statement;\r\n\t}", "public boolean finished() {\r\n\t\tboolean allOccupied = true;\r\n\t\tfor (Node n : allNodes.values()) {\r\n\t\t\tif (n.path == 0) {\r\n\t\t\t\tallOccupied = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (allOccupied) {\r\n\r\n\t\t\tfor (Integer path : paths.keySet()) {\r\n\t\t\t\tStack<Node> sn=paths.get(path);\r\n\t\t\t\tNode n = sn.peek();\r\n\t\t\t\tif (!EndPoint.containsValue(n)) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (sn.size() > 1) {\r\n\t\t\t\t\tStack<Node> snBK = (Stack<Node>) sn.clone();\r\n\t\t\t\t\t\r\n\t\t\t\t\tNode n1 = snBK.pop();\r\n\t\t\t\t\twhile (!snBK.isEmpty()) {\r\n\t\t\t\t\t\tif(n1.path!=path)\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\tNode n2= snBK.pop();\r\n\t\t\t\t\t\tif(adjaMatrix[n1.index][n2.index]==0)\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tn1=n2;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t}", "public boolean isApplicableForNode(AbstractNode node);", "public boolean hasBeenVisited() {\n\t\treturn visited; // Replace with your code\n\t}", "@Override\n public boolean shouldRun(Description description) {\n for(Description child : description.getChildren()){\n if(shouldRun(child)){\n return true;\n }\n }\n\n Collection<Class<?>> categories = getCategories(description);\n\n if (allCategoriesAreIncluded()) {\n return categoriesAreNotExcluded(categories);\n }\n\n return categoriesAreNotExcluded(categories)\n && categoriesAreIncluded(categories);\n\n }", "@Override\n\tpublic boolean hasContent() {\n\t\treturn false;\n\t}", "boolean isContentGenerated();", "@Override\n public boolean shouldTraverse(Traversal t, Exp e, Exp parent) {\n return true;\n }", "default boolean isChild(@NotNull Type type, @NotNull Meta element, @NotNull List<Object> parents) {\r\n return false;\r\n }", "private static boolean visitModuleContentEntries(ModuleRootModel rootModel, RootVisitor visitor) {\n for (ContentEntry entry : rootModel.getContentEntries()) {\n VirtualFile rootFile = entry.getFile();\n\n if (rootFile != null && !visitor.visitRoot(rootFile, null, null, true)) return false;\n for (VirtualFile folder : entry.getSourceFolderFiles()) {\n if (!visitor.visitRoot(folder, rootModel.getModule(), null, true)) return false;\n }\n }\n return true;\n }", "boolean isDirected();", "private static boolean AllCellsVisited()\n {\n for (Cell arr[] : cells){\n for (Cell c : arr)\n {\n if (!c.Visited)\n {\n return false;\n }\n }\n }\n return true;\n }", "private boolean check_only_call_relatives(Element element){\n\t\tArrayList<Element> relatives = new ArrayList<Element>();\n\t\tfor(Element elem_called : element.getRefFromThis()){\n\t\t\t//if they are brothers\n\t\t\tif(element.getParentName() != null && elem_called.getParentName() != null && element.getParentName().equals(elem_called.getParentName())){\n\t\t\t\trelatives.add(elem_called);\n\t\t\t}\n\t\t\t//if they are son - father\n\t\t\tif(element.getParentName() != null && element.getParentName().equals(elem_called.getIdentifier())){\n\t\t\t\trelatives.add(elem_called);\n\t\t\t}\t\t\t\n\t\t}\n\t\tif (relatives.size() == element.getRefFromThis().size()){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "boolean isValid() {\n\t\tif (this.nodeImpl != null) {\n\t\t\t\n\t\t\tfor (AbstractImplementationArtifact ia : this.nodeImpl.getImplementationArtifacts()) {\n\t\t\t\tboolean matched = false;\n\t\t\t\tfor (AbstractImplementationArtifact handledIa : this.ias) {\n\t\t\t\t\tif (ia.equals(handledIa)) {\n\t\t\t\t\t\tmatched = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!matched) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t} else {\n\t\t\t\n\t\t\tfor (AbstractImplementationArtifact ia : this.relationImpl.getImplementationArtifacts()) {\n\t\t\t\tboolean matched = false;\n\t\t\t\tfor (AbstractImplementationArtifact handledIa : this.ias) {\n\t\t\t\t\tif (ia.equals(handledIa)) {\n\t\t\t\t\t\tmatched = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!matched) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t}", "@Override\n\tprotected boolean traceDisplayerContentApplicable() {\n\t\treturn true;\n\t}", "private boolean isAllChildCompleted() {\n for (IBlock iBlock : getChildren()) {\n if (iBlock.getType() != BlockType.DISCUSSION && !iBlock.isCompleted()) {\n return false;\n }\n }\n for (IBlock iBlock : getChildren()) {\n if (iBlock.getType() == BlockType.DISCUSSION) {\n iBlock.setCompleted(1);\n }\n }\n return getChildren().size() > 0;\n }", "public boolean hasTargets() {\n return !getAdjacentCharacters().isEmpty();\n }", "boolean hasComments();", "private boolean isPartOfTree(BPMNNodeInterface dat, AbstractModelAdapter model) {\r\n\t\tfor(EdgeInterface e:model.getEdges()) {\r\n\t\t\tif(e.getTarget().equals(dat) && ((BPMNNodeInterface)e.getSource()).isDataObject()) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tif(e.getSource().equals(dat) && ((BPMNNodeInterface)e.getTarget()).isDataObject()) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private static boolean findAssertions(/*@NotNull*/ TreeInfo doc) {\n if (doc.isTyped()) {\n AxisIterator iter = doc.getRootNode().iterateAxis(AxisInfo.DESCENDANT, NodeKindTest.ELEMENT);\n while (true) {\n NodeInfo node = iter.next();\n if (node == null) {\n return false;\n }\n SchemaType type = node.getSchemaType();\n if (type.isComplexType() && ((ComplexType) type).hasAssertions()) {\n return true;\n }\n }\n } else {\n return false;\n }\n }", "public boolean isVisited() {\n return visited;\n }", "public boolean compute() {\n\t\tif(this.startNode.equals(goalNode)) {\r\n\t\t\tSystem.out.println(\"Goal Node Found :)\");\r\n\t\t\tSystem.out.println(startNode);\r\n\t\t}\r\n\t\r\n\t\tQueue<Node> queue = new LinkedList<>();\r\n\t\tArrayList<Node> explored = new ArrayList<>();\r\n\t\tqueue.add(this.startNode);\r\n\t\texplored.add(startNode);\r\n\t\t\r\n\t\t//while queue is not empty\r\n\t\twhile(!queue.isEmpty()) {\r\n\t\t\t//remove and return the first node in the queue\r\n\t\t\tNode current = queue.remove();\r\n\t\t\tif(current.equals(this.goalNode)) {\r\n\t\t\t\tSystem.out.println(\"Explored: \" + explored + \"\\nQueue: \" + queue);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t//dead end\r\n\t\t\t\tif(current.getChildren().isEmpty()){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t//add to queue the children of the current node\r\n\t\t\t\telse {\r\n\t\t\t\t\tqueue.addAll(current.getChildren());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\texplored.add(current);\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isDirected(Position ep) throws InvalidPositionException;", "public boolean isDirected();", "public boolean isDirected();", "@Override\r\n public boolean hasContentModified(ContainerUser context)\r\n {\n return hasDescriptorPropertyChanged(ReportDescriptor.Prop.json.name());\r\n }", "public boolean isVisited()\n\t{\n\t\treturn visited;\n\t}", "public boolean isVisited() {\n return visited;\n }", "@Override\r\n\tpublic boolean results(Element element)\r\n\t{\r\n\t\t// checks whether the x coordinate of the given element lies between the x coordinates of the two positions of this inPartOfBoard-condition\r\n\t\tif(((element.getPosition().getCoordX() >= this.getPosition1().getCoordX()) && (element.getPosition().getCoordX() <= this.getPosition2().getCoordX()))\r\n\t\t\t\t|| ((element.getPosition().getCoordX() <= this.getPosition1().getCoordX()) && (element.getPosition().getCoordX() >= this.getPosition2().getCoordX())))\r\n\t\t{\r\n\t\t\t// checks whether the y coordinate of the given element lies between the y coordinates of the two positions of this inPartOfBoard-condition\r\n\t\t\tif(((element.getPosition().getCoordY() >= this.getPosition1().getCoordY()) && (element.getPosition().getCoordY() <= this.getPosition2().getCoordY()))\r\n\t\t\t\t\t|| ((element.getPosition().getCoordY() <= this.getPosition1().getCoordY()) && (element.getPosition().getCoordY() >= this.getPosition2().getCoordY())))\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean revisar(DigrafoAristaPonderada G) {\n\n // edge-weighted digraph is cyclic\n if (tieneCiclo()) {\n // verify ciclo\n AristaDirigida primero = null, ultimo = null;\n for (AristaDirigida a : ciclo()) {\n if (primero == null) primero = a;\n if (ultimo != null) {\n if (ultimo.hacia() != a.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\",\n ultimo, a);\n return false;\n }\n }\n ultimo = a;\n }\n\n if (ultimo.hacia() != primero.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\", \n ultimo, primero);\n return false;\n }\n }\n\n\n return true;\n }", "default boolean hasChildren() {\n return iterator().hasNext();\n }", "private boolean isComplete() {\n if (this.content.charAt(0) != '<' || this.content.charAt(this.content.length() - 1) != '>') {\n throw new IllegalArgumentException(\"Invalid XML file.\");\n }\n Stack<String> xmlTags = new Stack<>();\n for (int i = 0; i < this.content.length();) {\n String currTag = \"\";\n int j = 0;\n for (j = 0; i + j < this.content.length(); ++j) {\n if (this.content.charAt(i + j) == '>') {\n currTag = this.content.substring(i, i + j + 1);\n break;\n }\n }\n String word = \"\";\n if (currTag.charAt(1) == '/') {\n word = currTag.substring(2, currTag.length() - 1);\n if (!word.equals(xmlTags.peek())) {\n throw new IllegalArgumentException(\"Invalid end tag: should be \"\n + xmlTags.peek() + \", but got \" + word);\n }\n xmlTags.pop();\n if (xmlTags.size() == 0 && i + word.length() + 3 < this.content.length() - 1) {\n throw new IllegalArgumentException(\"Content after root tag.\");\n }\n this.result.add(\"end:\" + word);\n }\n else {\n word = currTag.substring(1, currTag.length() - 1);\n if (checkTag(word)) {\n xmlTags.push(word);\n this.result.add(\"start:\" + word);\n }\n else {\n throw new IllegalArgumentException(\"Invalid tag.\");\n }\n }\n i = i + j + 1;\n for (j = i; j < this.content.length(); ++j) {\n if (this.content.charAt(j) == '<') {\n break;\n }\n }\n word = \"\";\n if (i != j) {\n word = this.content.substring(i, j);\n }\n if (word.length() > 0) {\n this.result.add(\"char:\" + word);\n }\n i = j;\n }\n return xmlTags.empty();\n }", "public boolean hasContent() {\n return fieldSetFlags()[8];\n }", "@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean hasChildren()\n/* */ {\n/* 487 */ return !this.children.isEmpty();\n/* */ }", "public boolean isVisited(){\n return visited;\n }", "protected boolean canDiagramBeCreatedFromElement(IElement pElement)\n {\n boolean canCreate = false;\n if (pElement != null)\n {\n // fix for CR 6417670\n // IDerivationClassifier is also an instance of IRelationship, so return false only if\n // pElement is not of type IDerivationClassifier.\n if (pElement instanceof IDiagram ||\n pElement instanceof ISourceFileArtifact ||\n (pElement instanceof IRelationship && !(pElement instanceof IDerivationClassifier)) )\n {\n return false;\n }\n \n \n // We shouldn't be able to select elements under an interaction and CDFS.\n // Therefore, we should disable the CDFS menu if you select any children\n // of the interaction.\n IElement owner = pElement.getOwner();\n if (owner == null)\n return false;\n if (owner instanceof IInteraction ||\n pElement instanceof IMessage ||\n pElement instanceof ICombinedFragment ||\n pElement instanceof IOperation ||\n pElement instanceof IAttribute)\n {\n // For operations, we have to make sure the operation can be REed\n // in order to support CDFS\n if (pElement instanceof IOperation)\n {\n// canCreate = false;\n// IUMLParsingIntegrator integrator = getUMLParsingIntegrator();\n// boolean canRE = integrator.canOperationBeREed((IOperation) pElement);\n// if (canRE)\n// {\n canCreate = true;\n// }\n }\n }\n else\n {\n canCreate = true;\n }\n }\n return canCreate;\n }", "protected void extract() {\n\t\tfor (ITSState nodeState : doc.iterNodes()) {\n\t\t\tNode node = nodeState.node;\n\t\t\tRuleResolver resolver = resolvers.get(node.getNodeName()); \n\t\t\tif (resolver != null) {\n\t\t\t\tGlobalRule rule = resolver.extractRule(attrReader, parameters, nodeState.node);\n\t\t\t\tapplyRule(resolver, rule);\n\t\t\t}\n\t\t\t\n\t\t\tif (node.getNodeName().equals(\"its:param\")) {\n\t\t\t\tString name = node.getAttributes().getNamedItem(\"name\").getNodeValue();\n\t\t\t\tString value = node.getTextContent();\n\t\t\t\tparameters.add(name, value);\n\t\t\t} else if (attrReader.dialect.isRules(node)) { \n\t\t\t\t// we have external link (xlink:href or link href)\n\t\t\t\tString external = attrReader.dialect.getExternalRules(node);\n\t\t\t\tif (external != null) {\n\t\t\t\t\textractExternalRules(external);\n\t\t\t\t}\n\t\t\t} else if (node.getNodeName().equals(\"script\")) {\n\t\t\t\t// we have embedded\n\t\t\t\tif (node.hasAttributes()) {\n\t\t\t\t\tif (node.getAttributes().getNamedItem(\"type\").getNodeValue().equals(\"application/its+xml\")) {\n\t\t\t\t\t\textractEmbeddedRules(node.getTextContent());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!nodeState.nodePath.contains(\"its:rules\")) {\n\t\t\t\t// unless we're in rules, look at local annotations\n\t\t\t\t// LOCAL\n\t\t\t\textractLocal(nodeState);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// process inheritance\n\t\tfor (ITSState nodeState : doc.iterNodes()) {\n\t\t\t// Elements: handle inheritance \n\t\t\tITSData parentData = getParentState(nodeState);\n\t\t\tif (parentData != null) {\n\t\t\t\t// inherit from parent\n\t\t\t\tITSData thisData = nodeItsData.get(nodeState.nodePath);\n\t\t\t\tif (thisData == null) {\n\t\t\t\t\tthisData = new ITSData();\n\t\t\t\t\tapplyRuleToNode(nodeState.nodePath, thisData);\n\t\t\t\t} \n\t\t\t\tthisData.inherit(parentData);\t\t\t\t\n\t\t\t}\t\n\t\t\t\t\t\t\n\t\t} \n\t\t\n\t\t\n\t}", "public boolean hasContent() {\n return fieldSetFlags()[1];\n }", "boolean isFeedExpanded();", "public boolean isContentPainted() {\r\n return contentPainted;\r\n }", "public final boolean getDescribeVisualChildren()\n {\n return true;\n }", "private void processElement(Element element) {\n\n\t\tprocessBaseAnnotatins(element);\n\n//\t\tSystem.out.println(\" ===> Get all annotations \");\n\n\t\tfor (AnnotationMirror annotationMirror : elementUtils.getAllAnnotationMirrors(element)) {\n//\t\t\tSystem.out.println(\" ===> \" + annotationMirror);\n\t\t\tString annotationName = annotationMirror.getAnnotationType().asElement().toString();\n\t\t\tString annotationPackage = annotationMirror.getAnnotationType().asElement().getEnclosingElement()\n\t\t\t\t\t.toString();\n\n\t\t\tif (!baseAnnotations.contains(annotationName) && !annotationPackage.startsWith(\"java.lang.annotation\")) {\n\t\t\t\tprocessAdditionalAnnotation(annotationMirror);\n\t\t\t}\n\t\t}\n\t}", "public boolean isVisited() {\n\t\treturn visited;\n\t}", "protected DebugRuleElementMatch() {/* intentionally empty block */}", "boolean isAllInDownloadedArea();", "public boolean isConnected() {\n if (this.isEmpty()) return true;\n\n if (this.directed) {\n Deque<Node> toVisit = new LinkedList<>();\n for (Node s : this.nodes.values()) {\n Node current;\n toVisit.addLast(s);\n while (!toVisit.isEmpty()) {\n current = toVisit.removeLast();\n current.setFlag(\"_visited\");\n for (Edge edge : current.getNeighbours()) {\n Node n = edge.getEnd();\n if (!n.getFlag(\"_visited\")) toVisit.addLast(n);\n }\n }\n\n //Check if all nodes have been visited and remove flags\n boolean allVisited = true;\n for (Node n : nodes.values()) {\n allVisited = allVisited && n.getFlag(\"_visited\");\n n.unsetFlag(\"_visited\");\n }\n if (!allVisited) return false;\n }\n return true;\n }\n else {\n //Perform a DFS from a random start node marking nodes as visited\n Node current;\n Deque<Node> toVisit = new LinkedList<>();\n toVisit.addLast(this.nodes.values().iterator().next());\n while (!toVisit.isEmpty()) {\n current = toVisit.removeLast();\n current.setFlag(\"_visited\");\n for (Edge edge : current.getNeighbours()) {\n Node n = edge.getEnd();\n if (!n.getFlag(\"_visited\")) toVisit.addLast(n);\n }\n }\n\n //Check if all nodes have been visited and remove flags\n boolean allVisited = true;\n for (Node n : nodes.values()) {\n allVisited = allVisited && n.getFlag(\"_visited\");\n n.unsetFlag(\"_visited\");\n }\n\n return allVisited;\n }\n }", "@Override\n\tpublic boolean contains(T targetElement) {\n\t\t\n\t\treturn findAgain(targetElement, root);\n\t}", "public boolean validatePageElements() {\n boolean nameCheck = name.isDisplayed() && name.isEnabled();\n boolean emailCheck = email.isDisplayed() && email.isEnabled();\n boolean passwordCheck = password.isDisplayed() && password.isEnabled();\n boolean signupGoogleCheck = signupGoogle.isDisplayed() && signupGoogle.isEnabled();\n boolean signupSlackCheck = signupSlack.isDisplayed() && signupSlack.isEnabled();\n boolean signupOutlookCheck = signupOutlook.isDisplayed() && signupOutlook.isEnabled();\n boolean signupAppleCheck = signupApple.isDisplayed() && signupApple.isEnabled();\n boolean signupFacebookCheck = signupFacebook.isDisplayed() && signupFacebook.isEnabled();\n boolean logoCheck = miroLogo.isDisplayed();\n\n return nameCheck && emailCheck && passwordCheck && signupGoogleCheck && signupSlackCheck && signupOutlookCheck && signupAppleCheck && signupFacebookCheck && logoCheck;\n\n }" ]
[ "0.5736521", "0.5516844", "0.5341943", "0.5341943", "0.5341943", "0.5341943", "0.5341943", "0.5341943", "0.5341943", "0.53333515", "0.5299941", "0.52420795", "0.5202346", "0.5195159", "0.51663095", "0.51339954", "0.5101588", "0.504494", "0.5026084", "0.50231445", "0.4991717", "0.4984624", "0.4977424", "0.495709", "0.49520236", "0.4950198", "0.4950198", "0.4933039", "0.49185807", "0.49123773", "0.49123773", "0.48850965", "0.4879282", "0.48522633", "0.48353544", "0.48333946", "0.48271433", "0.48270902", "0.48044553", "0.4768949", "0.4765981", "0.47541526", "0.47397295", "0.47341758", "0.4730469", "0.47167808", "0.47143233", "0.47047955", "0.46973407", "0.46893618", "0.46893618", "0.46893063", "0.46854362", "0.46845916", "0.46732116", "0.46603143", "0.46600032", "0.46543574", "0.46374124", "0.46333385", "0.46311283", "0.46276495", "0.4626971", "0.46232948", "0.46198544", "0.4618891", "0.4609851", "0.4609187", "0.46004596", "0.45941365", "0.45788127", "0.45777535", "0.45768392", "0.45753723", "0.4567292", "0.4567292", "0.456364", "0.45594546", "0.45586237", "0.45583168", "0.45509395", "0.45478812", "0.45475173", "0.45467797", "0.45397726", "0.453927", "0.45372558", "0.45353213", "0.45339724", "0.4521996", "0.45215827", "0.45159146", "0.45007217", "0.44921702", "0.44918656", "0.44851804", "0.44806677", "0.44663507", "0.44659242", "0.4465451" ]
0.61530423
0
Comment for the specified element (last contentvisited or any parent).
void visitComment(MappedElementKind targetKind, String comment);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void visitElement_comment(org.w3c.dom.Element element) { // <comment>\n // element.getValue();\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n case org.w3c.dom.Node.TEXT_NODE:\n issue.comments.add(((org.w3c.dom.Text)node).getData());\n break;\n }\n }\n }", "@Override\n public void addComment(XmlElement xmlElement) {\n\n }", "@Override\n\tpublic void comment() {\n\t\t\n\t}", "@Override\n public void comment(String comment)\n {\n }", "@PropertySetter(role = COMMENT)\n\t<E extends CtElement> E addComment(CtComment comment);", "void visit(Comment node);", "public abstract String getResolvedDocComment(Element forElement) throws IOException;", "private static Webpage addComments(Webpage webpage, Element element) {\n for (Node node : element.childNodes()) {\n if (node instanceof Comment) {\n webpage.incrementNumComments();\n webpage.addCommentContent(((Comment) node).getData());\n }\n }\n return webpage;\n }", "private void addComment() {\r\n Editor classEditor = null;\r\n try {\r\n classEditor = curClass.getEditor();\r\n } catch (Exception e) {\r\n }\r\n if (classEditor == null) {\r\n System.out.println(\"Can't create Editor for \" + curClass);\r\n return;\r\n }\r\n\r\n int textLen = classEditor.getTextLength();\r\n TextLocation lastLine = classEditor.getTextLocationFromOffset(textLen);\r\n lastLine.setColumn(0);\r\n // The TextLocation now points before the first character of the last line of the current text\r\n // which we'll assume contains the closing } bracket for the class\r\n classEditor.setText(lastLine, lastLine, \"// Comment added by SimpleExtension\\n\");\r\n }", "public static void comment(String comment) {\n openComment();\n Log.write(comment);\n closeComment();\n Log.writeln();\n }", "@Override\n public void addRootComment(XmlElement rootElement) {\n\n }", "@Override\n public String visit(BlockComment n, Object arg) {\n return null;\n }", "public Comment createComment(String data, Element parent);", "public void comment(String data);", "public String getComment() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}", "private void applyComment()\n {\n Map<String, GWikiArtefakt<?>> map = new HashMap<String, GWikiArtefakt<?>>();\n page.collectParts(map);\n GWikiArtefakt<?> artefakt = map.get(\"ChangeComment\");\n if (artefakt instanceof GWikiChangeCommentArtefakt == false) {\n return;\n }\n\n GWikiChangeCommentArtefakt commentArtefakt = (GWikiChangeCommentArtefakt) artefakt;\n String oldText = commentArtefakt.getStorageData();\n String ntext;\n String uname = wikiContext.getWikiWeb().getAuthorization().getCurrentUserName(wikiContext);\n int prevVersion = page.getElementInfo().getProps().getIntValue(GWikiPropKeys.VERSION, 0);\n if (StringUtils.isNotBlank(comment) == true) {\n Date now = new Date();\n ntext = \"{changecomment:modifiedBy=\"\n + uname\n + \"|modifiedAt=\"\n + GWikiProps.date2string(now)\n + \"|version=\"\n + (prevVersion + 1)\n + \"}\\n\"\n + comment\n + \"\\n{changecomment}\\n\"\n + StringUtils.defaultString(oldText);\n } else {\n ntext = oldText;\n }\n ntext = StringUtils.trimToNull(ntext);\n commentArtefakt.setStorageData(ntext);\n }", "Builder addComment(Comment value);", "@Override\n public String visit(JavadocComment n, Object arg) {\n return null;\n }", "public String getComment() {\r\n\t\treturn comment;\r\n\t}", "public void handleComment(HtmlObjects.Comment t)\n {\n }", "public String getComment() {\n return comment ;\n }", "public String getComment() {\n\t\treturn comment;\n\t}", "public String getComment() {\n\t\treturn comment;\n\t}", "public void toCommentAnnotation() {\n if (ir != null) { // can't process if attahced ir is missing.\n List<Annotation> notes = this.ir.getAnnotations();\n int index = notes.indexOf(this);\n if (index >= 0) {\n CommentAnnotation comment =\n new CommentAnnotation(this.toString());\n notes.remove(this);\n comment.ir = ir;\n comment.setOneLiner(true);\n notes.add(index, comment);\n }\n }\n }", "public void setComment(String c) {\n comment = c ;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return comment;\n }", "public String getComment() {\n return this.comment;\n }", "public String getComment()\n {\n return comment;\n }", "public void writeComment(String comment) throws IOException {\r\n deNude();\r\n super.writeComment(comment);\r\n }", "public void setComment(String comment){\n this.comment = comment;\n }", "private void enterComment(String comment) {\n delegationDefaultCreationScreen.commentField.sendKeys(comment);\n }", "public final String getComment() {\n return comment;\n }", "@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public String getComment();", "public void updateCommentProperty(Inspectable object) {\n\n InspectorInterface inspector = null;\n Enumeration e = inspectors.elements();\n while (e.hasMoreElements()) {\n inspector = (InspectorInterface)e.nextElement();\n if (inspector.getInspectedObject()==object)\n inspector.updateComment();\n }\n\n}", "public void setComment(String comment) {\n this.comment = comment;\n }", "public static void closeComment() {\n Log.write(\" -->\");\n }", "Builder addComment(String value);", "public void setComment(String comment) {\n this.comment = comment;\n }", "public void setComment(String comment);", "public void setComment(String comment);", "public static void openComment() {\n Log.write(\"<!-- \");\n }", "JHtmlComment docTag(String tag);", "public void setComment(String comment) {\n this.comment = comment;\n }", "public void setComment(String comment) {\n this.comment = comment;\n }", "public void setComment(String comment)\n {\n this.comment = comment;\n }", "String getComment() {\n//\t\t\tm1();\n\t\t\treturn \"small\";\n\t\t}", "String getComment();", "String getComment();", "private void emitComment() throws SAXException {\n if (wantsComments) {\n if (longStrBufPending != '\\u0000') {\n appendLongStrBuf(longStrBufPending);\n }\n }\n tokenHandler.comment(longStrBuf, longStrBufLen);\n }", "private ICommentedElement createCommented() throws RodinDBException {\n\t\treturn createMachine(\"mch\");\n\t}", "public CrashReport withComment(String comment);", "public java.lang.String getComment() {\r\n return comment;\r\n }", "public String getComment(){\n return this.comment;\n }", "public void handleCfComment(HtmlObjects.CfComment c)\n {\n }", "public String getjComment() {\n return jComment;\n }", "public void dispatchAsComment(LexicalHandler lh) throws SAXException {}", "public java.lang.String getComment() {\n return comment;\n }", "public java.lang.String getComment() {\n return comment;\n }", "public java.lang.String getComment() {\n return comment;\n }", "public static String commentTag(CommentUnit comment) {\n\t\treturn \"\\t\\t\\t<comm cntt=\\\"\" + comment.toString() + \"\\\"/>\\n\";\n\t}", "public String getComment(){\n return comment;\n }", "public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}", "public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}", "@Override\r\n\tpublic void comment(String uname, String content) {\n\t\tSystem.out.println(uname + \"发表评论:\" + content);\r\n\t}", "public String getComment() {\n\t LogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getComment() \" );\n Via via=(Via)sipHeader;\n return via.getComment();\n }", "public String getCommentText() {\r\n\r\n\t\treturn commentText;\r\n\t}", "public void insert(Comment com){\n //@todo implement method\n }", "private static void handleCommentBlock(BlockData data){\n \tBlockData before = BlockData.getBlockData(data.getBeforeId());\n BlockData after = BlockData.getBlockData(data.getAfterId());\n if(before != null){\n \tif(after != null)\n \t\tbefore.setAfterId(after.getBlockID());\n \telse \n \t\tbefore.setAfterId(-1l);\n }\n if(after != null ){\n \tif(before != null)\n \t\tafter.setBeforeId(before.getBlockID());\n \telse \n \t\tafter.setBeforeId(-1l);\n }\n \t\n }", "@Override\r\n\tpublic String getPrintComment() {\n\t\treturn null;\r\n\t}", "public void addComment(CommentInfo comment) {\n \tcomments.add(comment);\n }", "@Override\n public String visit(LineComment n, Object arg) {\n return null;\n }", "protected void printComment(Comment comment, Writer out)\r\n throws IOException {\r\n out.write(\"<!--\");\r\n out.write(comment.getText());\r\n out.write(\"-->\");\r\n }", "public void addComment(String c) {\n comments.add(c);\n }", "public void saveComment(Comment comment) {\n \t\tContentValues values = new ContentValues();\n \n \t\tUser user = comment.getUser();\n \n \t\tString userName = null;\n \n \t\tif (user != null) {\n \t\t\tuserName = user.getUserName();\n \t\t}\n \n \t\tvalues.put(SQLiteHelper.COLUMN_PARENT_ID, comment.getLocalParentId());\n \t\tvalues.put(SQLiteHelper.COLUMN_GLOBALID, comment.getId());\n \t\tvalues.put(SQLiteHelper.COLUMN_PARENT_GLOBALID, comment.getParentId());\n \t\tvalues.put(SQLiteHelper.COLUMN_COMMENT, comment.getContent());\n \t\tvalues.put(SQLiteHelper.COLUMN_USER, userName);\n \n \t\tLog.v(TAG, \"Saving Comment: \" + comment.getContent());\n \n \t\tif (comment.getLocalId() == 0) {\n \t\t\t// Insert\n \t\t\tlong insertId = database.insert(SQLiteHelper.TABLE_COMMENTS, null,\n \t\t\t\t\tvalues);\n \t\t\t// Set local id\n \t\t\tcomment.setLocalId(insertId);\n \n \t\t\tLog.v(TAG, \"Insert\");\n \t\t} else {\n \t\t\tString strFilter = SQLiteHelper.COLUMN_ID + \"=\"\n \t\t\t\t\t+ comment.getLocalId();\n \t\t\tdatabase.update(SQLiteHelper.TABLE_COMMENTS, values, strFilter,\n \t\t\t\t\tnull);\n \n \t\t\tLog.v(TAG, \"Update\");\n \t\t}\n \n \t}", "public String getComment() {\n\t\tif (comment != null)\n\t\t\treturn ProteomeXchangeFilev2_1.COM + TAB\n\t\t\t// + \"comment\" + TAB\n\t\t\t\t\t+ comment;\n\t\treturn null;\n\t}", "public void addComments( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), COMMENTS, value);\r\n\t}", "@Override\n public void addClassComment(InnerClass innerClass, IntrospectedTable introspectedTable, boolean b) {\n }", "@Override\r\n\tpublic Comment getCommentById(long idComment) {\n\t\treturn null;\r\n\t}", "public String get_comment() throws Exception {\n\t\treturn this.comment;\n\t}", "public void setComment(java.lang.String comment) {\r\n this.comment = comment;\r\n }", "@Override\n\tpublic String getComment() {\n\t\treturn model.getComment();\n\t}", "public static void populateComments(OMElement el, List<String> commentList) {\n Iterator it = el.getChildren();\n\n while (it.hasNext()) {\n OMNode child = (OMNode) it.next();\n if (child instanceof OMComment && ((OMComment) child).getValue() != null) {\n commentList.add(((OMComment) child).getValue());\n }\n }\n }", "@Before({PostIntercept.class, UserIntercept.class})\n @ActionKey(\"/api/blog/appendComment\")\n public void appendComment() {\n Integer belongTo = getParaToInt(\"belongTo\"); //MUST\n String content = getPara(\"content\"); //MUST\n String createdBy = getPara(\"createdBy\"); //MUST\n if (belongTo == null || content == null || createdBy == null) {\n mResult.fail(102);\n renderJson(mResult);\n return;\n }\n mResult.success(mCommentService.publish(createdBy, belongTo, content));\n renderJson(mResult);\n }", "@Override\n\tpublic void doComment(LoginDetails loginDetails) {\n\t\tif (loginDetails != null) {\n\t\t\tSystem.out.println(\"boomer Post is commented successfully by \" + loginDetails.getUsername());\n\t\t}\n\t}", "public Comment getDisplayComment() {\n return this;\n }", "@Override\n\t/**\n\t * returns nothing because comments are disabled for classes\n\t * \n\t * @return nothing\n\t */\n\tpublic String getComment() {\n\t\treturn \"\";\n\t}", "public Comment() {\n\t\tthis._id = UUID.randomUUID();\n\t\tthis.timestamp = System.currentTimeMillis();\n\t}", "public void addCommentField(String comment) {\n addCommentField(comment, false);\n }" ]
[ "0.70662683", "0.69239056", "0.6371688", "0.6214308", "0.6190447", "0.61866915", "0.6062385", "0.6033326", "0.59354675", "0.593011", "0.59150773", "0.5867666", "0.5854095", "0.58349776", "0.58260494", "0.5782425", "0.57817405", "0.5765742", "0.57643527", "0.57472515", "0.57125854", "0.5697551", "0.5697551", "0.5661933", "0.56301355", "0.56281483", "0.56281483", "0.56281483", "0.56281483", "0.56281483", "0.56281483", "0.56281483", "0.5565061", "0.55513954", "0.5543334", "0.5537851", "0.5532586", "0.55200773", "0.55134434", "0.55116457", "0.55116457", "0.55116457", "0.55116457", "0.55116457", "0.55116457", "0.5501543", "0.5500306", "0.5493347", "0.54897356", "0.54702914", "0.54596514", "0.54596514", "0.54511577", "0.5445311", "0.54306084", "0.54306084", "0.5422925", "0.5396841", "0.5370593", "0.5370593", "0.5366453", "0.5354056", "0.5347211", "0.53332746", "0.5327642", "0.5316149", "0.53134453", "0.5309416", "0.53071344", "0.53071344", "0.53071344", "0.5304337", "0.5303148", "0.5302423", "0.5302423", "0.5286706", "0.5282939", "0.5281009", "0.52777797", "0.5264573", "0.5263668", "0.5263043", "0.52622193", "0.52588224", "0.52586854", "0.52576214", "0.52559733", "0.52524495", "0.5238044", "0.52361083", "0.52313226", "0.52192295", "0.52142286", "0.5207057", "0.5203952", "0.52025884", "0.5201962", "0.52011055", "0.51840025", "0.5176471" ]
0.59082615
11
Converts an "t1.c1 = t2.c2" expression into two (input, field) pairs.
private static int[][] grab(List<RelNode> leaves, RexNode rex) { switch (rex.getKind()) { case EQUALS: break; default: throw new AssertionError("only equi-join allowed"); } final List<RexNode> operands = ((RexCall) rex).getOperands(); return new int[][] { inputField(leaves, operands.get(0)), inputField(leaves, operands.get(1))}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object visitEqualityExpression(GNode n) {\n Object a, b, result;\n String op;\n boolean mydostring = dostring;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n if (op.equals(\"==\")) {\n result = ((Long) a).equals((Long) b);\n }\n else if (op.equals(\"!=\")) {\n result = ! ((Long) a).equals((Long) b);\n }\n else {\n result = \"\";\n }\n }\n else {\n String sa, sb;\n \n if (a instanceof String) {\n sa = (String) a;\n }\n else if (a instanceof Long) {\n sa = ((Long) a).toString();\n }\n else {\n return null;\n }\n \n if (b instanceof String) {\n sb = (String) b;\n }\n else if (b instanceof Long) {\n sb = ((Long) b).toString();\n }\n else {\n return null;\n }\n \n if (op.equals(\"==\") && sa.equals(sb)) {\n result = mydostring ? \"1\" : B.one();\n }\n else {\n result = parens(sa) + \" \" + op + \" \" + parens(sb);\n }\n }\n \n return result;\n }", "private void stage1_2() {\n\n\t\tString s = \"E $:( 3E0 , 3E0 ) ( $:( 3E0 , 3E0 ) \";\n\n//\t s = SymbolicString.makeConcolicString(s);\n\t\tStringReader sr = new StringReader(s);\n\t\tSystem.out.println(s);\n\t\tFormula formula = new Formula(s);\n\t\tMap<String, Decimal> actual = formula.getVariableValues();\n\t}", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "public static EqQAtom parseExpression(String expression) throws ParseError {\n\t\tif (expression.contains(\"GEN\")) {\n\t\t\tthrow new ParseError(\"EqAtom: not an equality atom\");\n\t\t}\n\t\t\n\t\tint pos1 = expression.indexOf(\"=\");\n\t\tif (pos1==-1) {\n\t\t\tthrow new ParseError(\"EqAtom: not an equality atom\");\n\t\t\n\t\t}\n\t\tString var = expression.substring(0,pos1).trim();\n\t\tString ind = expression.substring(pos1+1).trim();\n\t\t\n\t\treturn new EqQAtom(ind, var);\n\t\t\n\t}", "private static AssignExpr retrieveAssignExpression(Expression expression) {\n return expression.asAssignExpr();\n }", "public static BinaryExpression andAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "private String processStatement() {\n StringBuilder result = new StringBuilder();\n //If the line is an instantiation or assignment statement\n if(line.contains(\"=\")) {\n //We get the parts of string before and after the '=' sign.\n String[] parts = line.split(\"=\");\n //Now we get the first and second part in separate strings.\n String firstPart = parts[0].trim();\n String secondPart = parts[1].trim();\n //Remove unnecessary spaces from the first part of the line.\n firstPart = removeUnnecessarySpaces(firstPart);\n //Split the parts further into single words.\n String[] firstPartWords = firstPart.split(\"\\\\s+\");\n\n //Now, process the first part of the line\n for(int i=0; i<firstPartWords.length; i++) {\n String word = firstPartWords[i];\n //Boolean value to check if this word is the last word\n boolean isLast = i==firstPartWords.length-1;\n //Now process each word\n processWordInFirstPart(word, result, isLast);\n }\n\n //Boolean value to check if this statement has anything to\n //do with objects. If secondPart contains 'new'.\n boolean relatedWithObject = secondPart.contains(\"new \");\n //Now adjust the value of secondPart for assigning.\n secondPart = secondPart.replace(\"new\", \"\");\n secondPart = secondPart.trim();\n\n //Now we have the result after processing the first part of\n //this statement.\n //If there are no spaces in the firstPart string, then this\n //is an assignment statement.\n if(firstPart.indexOf(' ')==-1) {\n if(relatedWithObject) {\n //If the second part of the string contains square and not round\n //brackets, this is not an object but an array.\n if(!secondPart.contains(\"(\") && secondPart.contains(\"[\"))\n result.insert(0,\"The array \").append(\" is initialized to value \").\n append(secondPart);\n //Else, this is obviously an object.\n else\n result.insert(0, \"The object \").append(\" is initialized to value \").\n append(secondPart);\n }\n else {\n //Now, we format the assignment statement.\n //Since there can be more than one assignments in the same\n //line, we add all the parts.\n //Here, \\u2190 is the left arrow in UTF-8.\n char arrow = '\\u2190';\n parts = line.split(\"\\\\s+\");\n result = new StringBuilder();\n for(String part : parts) {\n if(part.equals(\"=\")) {\n result.append(arrow).append(\" \");\n }\n else {\n result.append(part).append(\" \");\n }\n }\n }\n }\n //If this statement is not an assignment statement, then this\n //is an initialization statement.\n else {\n if(relatedWithObject) {\n result.append(\" is created with value \").append(secondPart).append(\".\");\n }\n //If the second part (the value) has something to do\n //with arrays, and not objects.\n else if(hasArrayAsMajorValue(secondPart)) {\n //Then process the second part according to array values.\n result.append(\" is instantiated to value in \").append(processArrayValue(secondPart));\n }\n else {\n result.append(\" is instantiated to value \").append(secondPart).append(\".\");\n }\n }\n }\n //If line does not contain \"=\" sign.\n else {\n //Incrementing statement.\n if(line.contains(\"++\")) {\n int index = line.indexOf('+');\n String variable = line.substring(0,index);\n result.append(\"Variable \").append(variable).append(\" is Incremented.\");\n }\n //Decrementing statement.\n else if(line.contains(\"--\")) {\n int index = line.indexOf('-');\n String variable = line.substring(0,index);\n result.append(\"Variable \").append(variable).append(\" is Decremented.\");\n }\n //If line has a dot operator, it means this line calls a function.\n else if(line.contains(\".\")) {\n String[] parts = line.split(\"\\\\.\");\n String object = parts[0].trim();\n String method = parts[1].trim();\n result.append(\"The function \").append(method).append(\" from object \").\n append(object).append(\" is called.\");\n if(parts.length>2) {\n result = new StringBuilder();\n result.append(removeUnnecessarySpaces(line)).append(\" is performed respectively.\");\n }\n }\n //If the line contains a bracket, it is calling a member method.\n else if(line.contains(\"(\")) {\n result.append(\"The member method \").append(line).append(\" is called.\");\n }\n else {\n String[] words = line.split(\"\\\\s+\");\n for(int i=0; i<words.length; i++) {\n String word = words[i];\n boolean isLast = i==words.length-1;\n processWordInFirstPart(word, result, isLast);\n }\n result.append(\" is declared.\");\n }\n }\n return result.toString();\n }", "public Object parseValue(String expr);", "private Term parseComparison(final boolean required) throws ParseException {\n Term t1 = parseBitwiseOr(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '<') {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.LtD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.LtI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.LtD(t1, t2);\n } else {\n reportTypeErrorN2(\"'<'\");\n }\n } else if (tt == '>') {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.GtD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.GtI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.GtD(t1, t2);\n } else {\n reportTypeErrorN2(\"'>'\");\n }\n } else if (isSpecial(\"==\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.EqD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.EqI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.EqD(t1, t2);\n } else {\n reportTypeErrorN2(\"'=='\");\n }\n } else if (isSpecial(\"!=\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.NEqD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.NEqI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.NEqD(t1, t2);\n } else {\n reportTypeErrorN2(\"'!='\");\n }\n } else if (isSpecial(\"<=\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.LeD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.LeI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.LeD(t1, t2);\n } else {\n reportTypeErrorN2(\"'<='\");\n }\n } else if (isSpecial(\">=\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.GeD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.GeI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.GeD(t1, t2);\n } else {\n reportTypeErrorN2(\"'>='\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public JCExpressionStatement makeAssignment(Tag tag, String varname, JCExpression exp1, JCExpression exp2) {\n return treeMaker.Exec(treeMaker.Assign(treeMaker.Ident(getNameFromString(varname)), treeMaker.Binary(tag, exp1, exp2)));\n }", "protected Expr visitFieldAssign(FieldAssign n) throws SemanticException { \n Position pos = n.position();\n if (n.operator() == Assign.ASSIGN) return n;\n X10Binary_c.Operator op = n.operator().binaryOperator();\n Field left = (Field) n.left();\n Expr right = n.right();\n Type R = left.type();\n if (left.flags().isStatic()) {\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos, left, op, right).type(R));\n return assign(pos, left, Assign.ASSIGN, val);\n }\n Expr e = (Expr) left.target();\n Type E = e.type();\n List<Formal> parms = new ArrayList<Formal>();\n Name xn = Name.make(\"x\");\n LocalDef xDef = xts.localDef(pos, xts.Final(), Types.ref(E), xn);\n Formal x = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, E), xnf.Id(pos, xn)).localDef(xDef);\n parms.add(x);\n Name yn = Name.make(\"y\");\n Type T = right.type();\n LocalDef yDef = xts.localDef(pos, xts.Final(), Types.ref(T), yn);\n Formal y = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, T), xnf.Id(pos, yn)).localDef(yDef);\n parms.add(y);\n Expr lhs = xnf.Field(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(E),\n xnf.Id(pos, left.name().id())).fieldInstance(left.fieldInstance()).type(R);\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos,\n lhs, op, xnf.Local(pos, xnf.Id(pos, yn)).localInstance(yDef.asInstance()).type(T)).type(R));\n Expr res = assign(pos, lhs, Assign.ASSIGN, val);\n Block body = xnf.Block(pos, xnf.Return(pos, res));\n Closure c = synth.makeClosure(pos, R, parms, body, context());\n X10MethodInstance ci = c.closureDef().asType().applyMethod();\n List<Expr> args = new ArrayList<Expr>();\n args.add(0, e);\n args.add(right);\n return xnf.ClosureCall(pos, c, args).closureInstance(ci).type(R);\n }", "private Term parseAssign(final boolean required) throws ParseException {\n Term t1 = parseConditional(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '=') {\n Term t2 = parseAssign(true);\n if (t1 instanceof Term.Ref && ((Term.Ref) t1).getVariable() != null) {\n t1 = new Term.Assign(t1, t2);\n } else {\n reportError(\"Variable expected on the left side of assignment '='.\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public static ArrayList<String> evaluateJoinCondition (Table table1,Table table2,Expression expression)\n\t{\n\t\tArrayList<String> arrayList = new ArrayList<String>();\n\n\t\tHashSet<String> set = extractCond(expression);\n\t\t\n\t\tfor(String s: set)\n\t\t{\n\t\t\tString[] strArr=null;\n\t\t\tif(s.contains(\"=\"))\n\t\t\t{\n\t\t\t\tstrArr=s.split(\"=\");\n\t\t\t\tfor (int i = 0; i < strArr.length; i++) {\n\t\t\t\t\tstrArr[i] = strArr[i].trim();\n\t\t\t\t}\n\t\t\t\tif(!table1.tableName.contains(\"|\"))\n\t\t\t\t{\n\n\t\t\t\t\tif ((strArr[0].split(\"\\\\.\")[0].equalsIgnoreCase(table1.tableName) || strArr[0].split(\"\\\\.\")[0].equalsIgnoreCase(table2.tableName)) &&\n\t\t\t\t\t\t\t(strArr[1].split(\"\\\\.\")[0].equalsIgnoreCase(table1.tableName) || strArr[1].split(\"\\\\.\")[0].equalsIgnoreCase(table2.tableName))){\n\n\t\t\t\t\t\tString FirsttableName=table1.tableName;\n\t\t\t\t\t\tString secondtableName=table2.tableName;\n\t\t\t\t\t\tString attr=strArr[0].substring(strArr[0].indexOf(\".\")+1,strArr[0].length());\n\t\t\t\t\t\tarrayList.add(FirsttableName);\n\t\t\t\t\t\tarrayList.add(secondtableName);\n\t\t\t\t\t\tarrayList.add(attr);\n\t\t\t\t\t\treturn arrayList;\n\n\t\t\t\t\t}\n\n\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString[] newTableName=table1.tableName.trim().split(\"\\\\|\");\n\t\t\t\t\tfor(int i=0;i<newTableName.length;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif((strArr[0].split(\"\\\\.\")[0].equalsIgnoreCase(newTableName[i])&&strArr[1].split(\"\\\\.\")[0].equalsIgnoreCase(table2.tableName))||\n\t\t\t\t\t\t\t\t(strArr[1].split(\"\\\\.\")[0].equalsIgnoreCase(newTableName[i])&&strArr[0].split(\"\\\\.\")[0].equalsIgnoreCase(table2.tableName)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString FirsttableName=newTableName[i];\n\t\t\t\t\t\t\tString secondtableName=table2.tableName;\n\t\t\t\t\t\t\tString attr=strArr[0].substring(strArr[0].indexOf(\".\")+1,strArr[0].length());\n\t\t\t\t\t\t\tarrayList.add(FirsttableName);\n\t\t\t\t\t\t\tarrayList.add(secondtableName);\n\t\t\t\t\t\t\tarrayList.add(attr);\n\t\t\t\t\t\t\treturn arrayList;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t}\n\n\t\treturn arrayList;\n\t}", "public static BinaryExpression addAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public interface AttributeAssignmentExpression extends EObject {\r\n\r\n\tObject toProlog(String type, String variableName, String entityName);\r\n\r\n\tString toPrologExecution();\r\n}", "Expression eqExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = relExpression();\r\n\t\twhile(isKind(OP_EQ, OP_NEQ)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = relExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "@Override\n\tpublic void visit(EqualityNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam fiul stang si fiul drept\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\tString s2 = null;\n\t\tString s1 = null;\n\t\t/**\n\t\t * preluam rezultatele evaluarii celor doi fii\n\t\t */\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\ts1 = Evaluator.variables.get(node.getChild(0).getName());\n\t\t} else {\n\t\t\ts1 = node.getChild(0).getName();\n\t\t}\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ts2 = Evaluator.variables.get(node.getChild(1).getName());\n\t\t} else {\n\t\t\ts2 = node.getChild(1).getName();\n\t\t}\n\n\t\t/**\n\t\t * verificam daca cei doi fii s- au evaluat la aceeasi expresie\n\t\t */\n\t\tif (s1.contentEquals(s2)) {\n\t\t\tnode.setName(\"true\");\n\t\t} else {\n\t\t\tnode.setName(\"false\");\n\t\t}\n\n\t}", "@Override\r\n\tpublic Instruction lexParse(String[] words, LexicalParser lexParser) {\r\n\t\tif (words.length!=3) return null;\r\n\t\t\r\n\t\tif (!words[1].equals(\"=\")) return null;\r\n\t\t\r\n\t\trhs=TermParser.parse(words[2]);\r\n\t\tif (rhs==null) return null;\r\n\t\t\r\n\t\tTerm var=TermParser.parse(words[0]);\r\n\t\tif (var==null) return null;\r\n\t\t\r\n\t\treturn new SimpleAssignment(words[0], rhs);\r\n\t}", "public static BinaryExpression andAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "private static boolean checkEqualsToOperations(String expression, Lexemes lexemes, SymbolTable table) {\n\t\tif (expression.contains(\"==\")) {\n\n\t\t\tString[] arr = expression.split(\"==\");\n\t\t\tint finalIndex = arr.length - 1;\n\n\t\t\tfor (int i = 0; i <= finalIndex; i++) {\n\t\t\t\tString s = arr[i];\n\n\t\t\t\t// check if the current word is a variable\n\t\t\t\tif (table.contains(s)) {\n\t\t\t\t\tint id = table.getIdOfVariable(s);\n\t\t\t\t\tlexemes.insertLexeme(\"ID\", ((Integer) id).toString());\n\t\t\t\t} else {\n\n\t\t\t\t\tif (s.equals(\"true\")) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"CONST_BOOL\", \"true\");\n\t\t\t\t\t} else if (s.equals(\"false\")) {\n\t\t\t\t\t\tlexemes.insertLexeme(\"CONST_BOOL\", \"false\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!checkRelationalOperations(s.trim(), lexemes, table)) return false;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (i < finalIndex) {\n\t\t\t\t\tlexemes.insertLexeme(\"RELOP\", \"==\");\n\t\t\t\t} else if (expression.endsWith(\"==\")) {\n\t\t\t\t\tlexemes.insertLexeme(\"RELOP\", \"==\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\tif (!checkRelationalOperations(expression.trim(), lexemes, table)) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\n\tpublic String visitCompexpr(CompexprContext ctx) {\n\t\t\n\t\tif(ctx.getChildCount()==3)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tif(ctx.getChild(1).getText().equals(\"==\"))\n\t\t\t{\n\t\t\t\treturn \"EQL \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\">=\"))\n\t\t\t{\n\t\t\t\treturn \"GTE \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\"<=\"))\n\t\t\t{\n\t\t\t\treturn \"LTE \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\"<\"))\n\t\t\t{\n\t\t\t\treturn \"LT \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\">\"))\n\t\t\t{\n\t\t\t\treturn \"GT \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t\telse if(ctx.getChild(1).getText().equals(\"~=\"))\n\t\t\t{\n\t\t\t\treturn \"NE \"+visit(ctx.getChild(0)) +\" \"+visit(ctx.getChild(2));\n\t\t\t}\n\t\t}\n\t\telse if(ctx.getChildCount()==1)\n\t\t{\n\t\t\n\t\t\treturn ctx.getChild(0).getText();\n\t\t}\n\t\treturn \"\";\n\t\n\t\t\n\t\t\n\t\t\n\t}", "public static String parseExpressionForOperator(String expression) {\n int space = expression.indexOf(\" \");\n String frac1 = expression.substring(0, space);\n String operator = expression.substring(space + 1, space + 2);\n return operator;\n }", "Object getExpressionValue(ExpressionParams params);", "public Expression substitute(Expression _e1, Expression _e2) {\n\t\t//Util.dump(toString());\n\t\tfor (int i = 0; i < quantificators.length; i++) {\n\t\t\t/*Expression boundExpr = quantificators[i].getBoundVar();\n\t\t\tif (_e.equals(boundExpr)) {\n\t\t\t\treturn this;\n\t\t\t}*/\n\t\t\tquantificators[i].substitute(_e1, _e2);\n\t\t}\n\t\tExpression[] subformula = getSubExpressions();\n\t\tsubformula[0] = subformula[0].substitute(_e1,_e2);\n\t\treturn this;\n\t}", "private String reduceOperation(String op1, String opd, String op2, StringBuffer expr) {\r\n if (opd == null) {\r\n if (op1 == null || op2 == null) {\r\n return null;\r\n } else if (\"AND\".equals(op1) && \"AND\".equals(op2)) {\r\n return \"AND\";\r\n } else {\r\n return \"OR\";\r\n }\r\n } else {\r\n if (op1 != null) {\r\n expr.append(op1).append(\" \");\r\n }\r\n expr.append(opd).append(\" \");\r\n return op2;\r\n }\r\n }", "private String compute(String equ,String op)\n {\n String equation = equ;\n Pattern mdPattern = Pattern.compile(\"(\\\\d+([.]\\\\d+)*)(([\"+op+\"]))(\\\\d+([.]\\\\d+)*)\");\n Matcher matcher\t\t= mdPattern.matcher(equation);\n while(matcher.find())\n {\n String[] arr = null;\n double ans = 0;\n String eq = matcher.group(0);//get form x*y\n if(eq.contains(op))\n {\n arr = eq.split(\"\\\\\"+op);//make arr\n if(op.equals(\"*\"))\n ans = Double.valueOf(arr[0])*Double.valueOf(arr[1]);//compute\n if(op.equals(\"/\"))\n ans = Double.valueOf(arr[0])/Double.valueOf(arr[1]);//compute\n if(op.equals(\"+\"))\n ans = Double.valueOf(arr[0])+Double.valueOf(arr[1]);//compute\n if(op.equals(\"-\"))\n ans = Double.valueOf(arr[0])-Double.valueOf(arr[1]);//compute\n }\n\n equation = matcher.replaceFirst(String.valueOf(ans));//replace in equation\n matcher = mdPattern.matcher(equation);//look for more matches\n }\n return equation;\n }", "private static String[] getTwoExpr(String expr, String op) {\n\t\t\n\t\tString[] exprArr = new String[2]; \n\t\t\n\t\tint commaPos = SyntaxChecker.checkMatchedParansAndReturnNextDelim(expr, op.length() + 1, ',');\n\t\tString expr1 = expr.substring(op.length() + 1, commaPos);\n\t\texprArr[0] = expr1;\n\t\t\n\t\tint endPos = SyntaxChecker.checkMatchedParansAndReturnNextDelim(expr, commaPos + 1, ')');\n\t\tString expr2 = expr.substring(commaPos + 1, endPos);\n\t\texprArr[1] = expr2;\n\t\t\n\t\treturn exprArr;\n\t}", "@Override String toDot() {\r\n switch ( operator ) {\r\n case EQUALS_PREFIX :\r\n case EQUALS :\r\n return left.toDot() + \" = \" + right.toDot();\r\n case NEQ :\r\n return left.toDot() + \" &ne; \" + right.toDot();\r\n case GE : \r\n return left.toDot() + \" &ge; \" + right.toDot();\r\n case GT : \r\n return left.toDot() + \" &gt; \" + right.toDot(); \r\n case LE :\r\n return left.toDot() + \" &le; \" + right.toDot();\r\n case LT : \r\n return left.toDot() + \" &lt; \" + right.toDot();\r\n }\r\n assert false:operator;\r\n return null;\r\n }", "public static BinaryExpression divideAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "protected Element evalAssurance(Assurance ass){\n\t\tRecord r1 = ass.getLeftRecord();\n\t\tRecord r2 = ass.getRightRecord();\n\t\tOperator op = ass.getOperator();\n\t\tElement an = el(\"bpws:assign\");\n\t\tif (r1.getType() == RecordType.FORMULAR)\n\t\t\tan.appendChild(setExpr(r1.getFormular(), \"nswomoxsd:leftValue\"));\n\t\tif (r2.getType() == RecordType.FORMULAR)\n\t\t\tan.appendChild(setExpr(r2.getFormular(), \"nswomoxsd:rightValue\"));\n\t\tan.appendChild(\n\t\t\tsetExpr(\n\t\t\t\tgetMyVarPath(\"/nswomoxsd:leftValue\") + \n\t\t\t\top.value() +\n\t\t\t\tgetMyVarPath(\"nswomoxsd:rightValue\"),\n\t\t\t\t\"nswomoxsd:value\"\n\t\t\t)\n\t\t);\n\t\treturn an;\n\t}", "public Object getExpression();", "private static Expression retrieveAssignExpressionValue(Expression expression) {\n return retrieveAssignExpression(expression).getValue();\n }", "@Override\n public Integer visitAssign(CalculatorParser.AssignContext ctx) {\n String id = ctx.ID().getText(); // id is left-hand side of '='\n int value = visit(ctx.expr()); // compute value of expression on right\n memory.put(id, value); // store it in memory\n return value;\n }", "private String translateExpression(PropertyExpression e) {\n if (e.getObjectExpression() instanceof BinaryExpression) {\n BinaryExpression be = (BinaryExpression) e.getObjectExpression();\n if (be.getOperation().getText().equals(\"[\")) {\n String left = translateExpression(be.getLeftExpression());\n if (left.equals(inputName)) {\n return withInputSuffix(e.getPropertyAsString()) + \"[\" + translateExpression(be.getRightExpression()) + \"]\";\n }\n }\n }\n\n\n String obj = translateExpression(e.getObjectExpression());\n //TODO fix for \"not in main case\"\n //if (obj.equals(outputName) && shaderType.equals(\"vs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(outputName)) return withOutputSuffix(e.getPropertyAsString());\n //TODO fix for \"not in main case\"\n //if (obj.equals(inputName) && shaderType.equals(\"fs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(inputName)) return withInputSuffix(e.getPropertyAsString());\n //if (obj.equals(outputName)) return e.getPropertyAsString();\n //if (obj.equals(inputName)) return e.getPropertyAsString();\n if (obj.equals(\"\")) return e.getPropertyAsString();\n if ((e.getObjectExpression() instanceof BinaryExpression)) return \"(\" + obj + \").\" + e.getPropertyAsString();\n return obj + \".\" + e.getPropertyAsString();\n }", "@Test\r\n public void deriveFromAndAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M&=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH&=9\", \"(long,km^2/h)\");\r\n }", "@Override\n\tpublic List<Component> caseExprBinary(ExprBinary expr) {\n\t\tint sizeInBits = assignTarget.getVariable().getType().getSizeInBits();\n\t\t// Get the Variables\n\t\tVar e1 = ((ExprVar) expr.getE1()).getUse().getVariable();\n\t\tVar e2 = ((ExprVar) expr.getE2()).getUse().getVariable();\n\t\tList<Var> inVars = new ArrayList<Var>();\n\t\tinVars.add(e1);\n\t\tinVars.add(e2);\n\t\t// Component component = null;\n\t\tif (expr.getOp() == OpBinary.BITAND) {\n\t\t\tcurrentComponent = new AndOp();\n\t\t} else if (expr.getOp() == OpBinary.BITOR) {\n\t\t\tcurrentComponent = new OrOp();\n\t\t} else if (expr.getOp() == OpBinary.BITXOR) {\n\t\t\tcurrentComponent = new XorOp();\n\t\t} else if (expr.getOp() == OpBinary.DIV) {\n\t\t\tcurrentComponent = new DivideOp(sizeInBits);\n\t\t} else if (expr.getOp() == OpBinary.DIV_INT) {\n\t\t\tcurrentComponent = new DivideOp(sizeInBits);\n\t\t} else if (expr.getOp() == OpBinary.EQ) {\n\t\t\tcurrentComponent = new EqualsOp();\n\t\t} else if (expr.getOp() == OpBinary.GE) {\n\t\t\tcurrentComponent = new GreaterThanEqualToOp();\n\t\t} else if (expr.getOp() == OpBinary.GT) {\n\t\t\tcurrentComponent = new GreaterThanOp();\n\t\t} else if (expr.getOp() == OpBinary.LE) {\n\t\t\tcurrentComponent = new LessThanEqualToOp();\n\t\t} else if (expr.getOp() == OpBinary.LOGIC_AND) {\n\t\t\tcurrentComponent = new And(2);\n\t\t} else if (expr.getOp() == OpBinary.LOGIC_OR) {\n\t\t\tcurrentComponent = new Or(2);\n\t\t} else if (expr.getOp() == OpBinary.LT) {\n\t\t\tcurrentComponent = new LessThanOp();\n\t\t} else if (expr.getOp() == OpBinary.MINUS) {\n\t\t\tcurrentComponent = new SubtractOp();\n\t\t} else if (expr.getOp() == OpBinary.MOD) {\n\t\t\tcurrentComponent = new ModuloOp();\n\t\t} else if (expr.getOp() == OpBinary.NE) {\n\t\t\tcurrentComponent = new NotEqualsOp();\n\t\t} else if (expr.getOp() == OpBinary.PLUS) {\n\t\t\tcurrentComponent = new AddOp();\n\t\t} else if (expr.getOp() == OpBinary.SHIFT_LEFT) {\n\t\t\tint log2N = MathStuff.log2(sizeInBits);\n\t\t\tcurrentComponent = new LeftShiftOp(log2N);\n\t\t} else if (expr.getOp() == OpBinary.SHIFT_RIGHT) {\n\t\t\tint log2N = MathStuff.log2(sizeInBits);\n\t\t\tcurrentComponent = new RightShiftOp(log2N);\n\t\t} else if (expr.getOp() == OpBinary.TIMES) {\n\t\t\tcurrentComponent = new MultiplyOp(expr.getType().getSizeInBits());\n\t\t}\n\t\t// currentComponent.setNonRemovable();\n\t\tPortUtil.mapInDataPorts(currentComponent, inVars, portDependency,\n\t\t\t\tportGroupDependency);\n\t\treturn null;\n\t}", "Expression getValue();", "Expression getValue();", "private void jetBinopExprStr(){\n\t\tBinopExpr binopExpr = (BinopExpr) rExpr;\n\t\tValue op1 = binopExpr.getOp1();\n\t\tValue op2 = binopExpr.getOp2();\n\t\tZ3Type op1Z3Type = Z3MiscFunctions.v().z3Type(op1.getType());\n\t\tZ3Type op2Z3Type = Z3MiscFunctions.v().z3Type(op2.getType());\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tBinopExprType binopType = Z3MiscFunctions.v().getBinopExprType(binopExpr);\n\t\tswitch(binopType){\n\t\t//[start]ADD\n\t\tcase ADD:\n\t\t\t//add_expr = immediate \"+\" immediate;\n\t\t\t//immediate = constant | local;\n\t\t\t//only Int, Real, String can ADD\n\t\t\t//Exceptional Cases: \"084\" + 42; we exclude them\n\t\t\tassert((op1Z3Type == Z3Type.Z3String && op2Z3Type == Z3Type.Z3String) ||\n\t\t\t\t\t(op1Z3Type != Z3Type.Z3String && op2Z3Type != Z3Type.Z3String));\n\t\t\tif(op1Z3Type == Z3Type.Z3String ){\n\t\t\t\t//( Concat \"te\" y1 )\n\t\t\t\tsb.append(\"( Concat \");\n\t\t\t}else{\n\t\t\t\t//(+ 2 i2)\n\t\t\t\tsb.append(\"(+ \");\n\t\t\t}\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\" )\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end]ADD\n\t\tcase AND:\n\t\t\t//and_expr = immediate \"&\" immediate;\n\t\t\t//TODO\n\t\t\t//assert(false) : \"AND Expr\";\n\t\t\tbreak;\n\t\t//[start] DIV\n\t\tcase DIV:\n\t\t\t//div_expr = immediate \"/\" immediate;\n\t\t\t//(div a b) integer division\n\t\t\t//(/ a b) float division\n\t\t\tif(op1Z3Type == Z3Type.Z3Real || op2Z3Type == Z3Type.Z3Real){\n\t\t\t\tsb.append(\"(/ \");\n\t\t\t}else{\n\t\t\t\tsb.append(\"(div \");\n\t\t\t}\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] DIV\n\t\t//[start] EQ\n\t\tcase EQ:\n\t\t\t//eq_expr = immediate \"==\" immediate;\n\t\t\t//b = r1 == r2\n\t\t\t//(assert (= b (= r1 r2)))\n\t\t\tsb.append(\"(= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] EQ\n\t\t//[start] GE\n\t\tcase GE:\n\t\t\t//ge_expr = immediate \">=\" immediate;\n\t\t\t//b = r1 >= r2\n\t\t\t//(assert (= b (>= r1 r2)))\n\t\t\tsb.append(\"(>= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] GE\n\t\t//[start] GT\n\t\tcase GT:\n\t\t\t//gt_expr = immediate \">\" immediate;\n\t\t\t//b = r1 > r2\n\t\t\t//(assert (= b (> r1 r2)))\n\t\t\tsb.append(\"(> \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] GT\n\t\t//[start] LE\n\t\tcase LE:\n\t\t\t//le_expr = immediate \"<=\" immediate;\n\t\t\t//b = r1 <= r2\n\t\t\t//(assert (= b (<= r1 r2)))\n\t\t\tsb.append(\"(<= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] LE\n\t\t//[start] LT\n\t\tcase LT:\n\t\t\t//lt_expr = immediate \"<\" immediate;\n\t\t\t//b = r1 < r2\n\t\t\t//(assert (= b (< r1 r2)))\n\t\t\tsb.append(\"(< \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] LT\n\t\t//[start] MUL\n\t\tcase MUL:\n\t\t\t//mul_expr = immediate \"*\" immediate;\n\t\t\t//(* op1 op2)\n\t\t\tsb.append(\"(* \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] MUL\n\t\t//[start] NE\n\t\tcase NE:\n\t\t\t//ne_expr = immediate \"!=\" immediate;\n\t\t\t//(not (= op1 op2))\n\t\t\tsb.append(\"(not (= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\"))\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] NE\n\t\tcase OR:\n\t\t\t//or_expr = immediate \"|\" immediate;\n\t\t\t//TODO\n\t\t\tassert(false) : \"OR Expr\";\n\t\t\tbreak;\n\t\t//[start] REM\n\t\tcase REM:\n\t\t\t//rem_expr = immediate \"%\" immediate;\n\t\t\t//(rem op1 op2)\n\t\t\tsb.append(\"(rem \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] REM\n\t\t//[start] SUB\n\t\tcase SUB:\n\t\t\t//sub_expr = immediate \"-\" immediate;\n\t\t\t//(- op1 op2)\n\t\t\tsb.append(\"(- \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] SUB\n\t\t}\n\t}", "public static String parseExpressionForSecondFraction(String expression) {\n int space = expression.indexOf(\" \");\n String frac1 = expression.substring(0, space);\n String operator = expression.substring(space + 1, space + 2);\n int length = expression.length();\n String frac2 = expression.substring(space + 3, length);\n return frac2;\n }", "public char[] evaluateExpression(char[] binaryStr1, String op, char[] binaryStr2) {\n\t\t// TODO: Implement this method.\n\t\treturn binaryStr1;\n\t}", "@Test\n public void testComponentExecutionWithConcatExpressionAndAssignmentOperator() throws ParseException\n {\n ExpressionEvaluator evaluator = new ExpressionEvaluator(\"message = concat(\\\"Good \\\", period)\");\n Map<String, Object> map = new HashMap<>();\n map.put(VARIABLE_PERIOD, MORNING);\n evaluator.evaluate(map, true);\n assertEquals(2, map.size());\n assertEquals(GOOD_MORNING, map.get(\"message\"));\n }", "public static BinaryExpression equal(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "ExpressionInfo getExpressionInfo(ExpressionParams params);", "public Object visitLogicalAndExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n \n if (a instanceof Long && b instanceof Long) {\n return (Long) a & (Long) b;\n }\n else {\n return parens(a) + \" && \" + parens(b);\n }\n }\n else {\n BDD a, b, bdd;\n \n a = ensureBDD(dispatch(n.getGeneric(0)));\n b = ensureBDD(dispatch(n.getGeneric(1)));\n \n bdd = a.andWith(b);\n \n return bdd;\n }\n }", "private static int evaluateExpression(String expression, int number1, int number2){\n if(expression.equals(\"plus\")){\n \treturn (number1 + number2);\n }else if(expression.equals(\"minus\")){\n \treturn (number1 - number2);\n }else if(expression.equals(\"times\")){\n \treturn(number1 * number2);\n }else if(expression.equals(\"divide\")){\n \treturn(number1 / number2);\n }\n return 0;\n \n }", "private Object eval(RelExpr expr) {\n Object res = eval(expr.getExpr().get(0));\n\n if (expr.getExpr().size() == 2) {\n Object res2 = eval(expr.getExpr().get(1));\n String opt = expr.getOpt();\n\n if (\"==\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = ((Double) res).equals(res2);\n } else if (res instanceof String && res2 instanceof String) {\n res = ((String) res).equals(res2);\n } else if (res instanceof Boolean && res2 instanceof Boolean) {\n res = ((Boolean) res).equals(res2);\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else if (\"!=\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = !((Double) res).equals(res2);\n } else if (res instanceof String && res2 instanceof String) {\n res = !((String) res).equals(res2);\n } else if (res instanceof Boolean && res2 instanceof Boolean) {\n res = !((Boolean) res).equals(res2);\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else if (\"<\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res < (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else if (\"<=\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res <= (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else if (\">\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res > (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else if (\">=\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res >= (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: RelExpr error\");\n }\n } else {\n throw new RaydenScriptException(\"Expression error: Invalid operator '\" + opt + \"'.\");\n }\n }\n\n return res;\n }", "public Assignment getOperatorAssignment_2() { return cOperatorAssignment_2; }", "public Object visitBitwiseAndExpression(GNode n) {\n Object a, b, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(1));\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n result = (Long) a & (Long) b;\n }\n else {\n result = parens(a) + \" & \" + parens(b);\n }\n \n return result;\n }", "protected Evaluable parseExpression() throws ParsingException {\n Evaluable sub = parseSubExpression();\n\n while (_token != null &&\n _token.type == TokenType.Operator &&\n \">=<==!=\".indexOf(_token.text) >= 0) {\n\n String op = _token.text;\n\n next(true);\n\n Evaluable sub2 = parseSubExpression();\n\n sub = new OperatorCallExpr(new Evaluable[] { sub, sub2 }, op);\n }\n\n return sub;\n }", "private HashMap<String, String> getNodeInfo(String input) {\n HashMap<String, String> tmp = new HashMap<>();\n /* mark negative value*/\n if (input.charAt(0) == '-')\n input = input.replaceFirst(\"-\", \"!\");\n\n Pattern pattern = Pattern.compile(\"(sin|cos|tan|atan|log10|log2|sqrt|/|\\\\^|\\\\+|\\\\*|-)\");\n Matcher matcher = pattern.matcher(input);\n if (matcher.find()) {\n String op = input.substring(matcher.start(), matcher.end());\n tmp.put(\"operator\", op);\n switch (op) {\n case \"+\":\n case \"-\":\n case \"*\":\n case \"/\":\n case \"^\":\n String[] a = input.split(\"\\\\\" + op);\n tmp.put(\"arg1\", a[0]);\n tmp.put(\"arg2\", a[1]);\n break;\n case \"sin\":\n case \"cos\":\n case \"tan\":\n case \"atan\":\n case \"log10\":\n case \"log2\":\n case \"sqrt\":\n tmp.put(\"arg1\", input.replace(op, \"\"));\n tmp.put(\"arg2\", null);\n break;\n }\n } else {\n tmp.put(\"operator\", input.replaceFirst(\"!\", \"-\"));\n tmp.put(\"arg1\", null);\n tmp.put(\"arg2\", null);\n }\n return tmp;\n }", "Expression createExpression();", "TupleExpr createTupleExpr();", "public HashMap<String,LinkedList<String>> splitWhere() {\n\n LinkedList<String> where = new LinkedList<>(whereClause);\n LinkedList<String> referencingRelations;\n LinkedList<MyRelation> relations;\n String temp;\n optimizedWhere = new HashMap<>();\n\n String whereString = new String(myHelper.getWhereFields(where));\n String[] whereParts = whereString.split(\"(?i)and\");\n\n //Iterates through all the parts divided by \"AND\"\n for (int i=0; i<whereParts.length; i++) {\n\n referencingRelations = new LinkedList<>();\n String symbol = myHelper.getSymbol(whereParts[i]);\n\n if(symbol != null) {\n String[] equationParts = whereParts[i].split(symbol);\n String condition = null;\n\n //For every side of the \"=\" sing.\n for(int j=0; j<equationParts.length; j++) {\n //Removes white spaces if any.\n equationParts[j] = equationParts[j].replaceAll(\"\\\\s\",\"\");\n\n //if there is a referencing table stores the table and and the field used is temporarily stored.\n if(equationParts[j].contains(\".\")) {\n referencingRelations.addLast(equationParts[j].substring(0, equationParts[j].indexOf(\".\")));\n temp = equationParts[j].substring(equationParts[j].indexOf(\".\")+1);\n\n }else {\n //if no \".\" p simeni en ksero se pio relation kamni reference enna to psaxo p to schema !!\n relations = schema.getRelations();\n String name = myHelper.getRelationNameOnField(equationParts[j],relations,newTablesFromCanonical);\n\n //if name is a field name add the table name to the referencing\n if(name != null) {\n referencingRelations.addLast(name);\n temp = equationParts[j];\n }\n else\n temp = equationParts[j].substring(equationParts[j].indexOf(\".\")+1);\n }\n if(j!= equationParts.length-1)\n condition = temp + symbol;\n else condition = condition + temp;\n }\n optimizedWhere.put(condition,referencingRelations);\n }\n }\n return optimizedWhere;\n }", "static Expression decomposeCondition(Expression e,\n HsqlArrayList conditions) {\n\n if (e == null) {\n return Expression.EXPR_TRUE;\n }\n\n Expression arg1 = e.getLeftNode();\n Expression arg2 = e.getRightNode();\n int type = e.getType();\n\n if (type == OpTypes.AND) {\n arg1 = decomposeCondition(arg1, conditions);\n arg2 = decomposeCondition(arg2, conditions);\n\n if (arg1 == Expression.EXPR_TRUE) {\n return arg2;\n }\n\n if (arg2 == Expression.EXPR_TRUE) {\n return arg1;\n }\n\n e.setLeftNode(arg1);\n e.setRightNode(arg2);\n\n return e;\n } else if (type == OpTypes.EQUAL) {\n if (arg1.getType() == OpTypes.ROW\n && arg2.getType() == OpTypes.ROW) {\n for (int i = 0; i < arg1.nodes.length; i++) {\n Expression part = new ExpressionLogical(arg1.nodes[i],\n arg2.nodes[i]);\n\n part.resolveTypes(null, null);\n conditions.add(part);\n }\n\n return Expression.EXPR_TRUE;\n }\n }\n\n if (e != Expression.EXPR_TRUE) {\n conditions.add(e);\n }\n\n return Expression.EXPR_TRUE;\n }", "@SuppressWarnings(\"unchecked\")\n private BooleanFormula makeAssignment(Formula pFormula1, Formula pFormula2) {\n FormulaType<?> pType = mgr.getFormulaType(pFormula1);\n assertWithMessage(\n \"Trying to equalize two formulas %s and %s of different types %s and %s\",\n pFormula1, pFormula2, pType, mgr.getFormulaType(pFormula2))\n .that(mgr.getFormulaType(pFormula1).equals(mgr.getFormulaType(pFormula2)))\n .isTrue();\n if (pType.isBooleanType()) {\n return bmgr.equivalence((BooleanFormula) pFormula1, (BooleanFormula) pFormula2);\n } else if (pType.isIntegerType()) {\n return imgr.equal((IntegerFormula) pFormula1, (IntegerFormula) pFormula2);\n } else if (pType.isRationalType()) {\n return rmgr.equal((RationalFormula) pFormula1, (RationalFormula) pFormula2);\n } else if (pType.isBitvectorType()) {\n return bvmgr.equal((BitvectorFormula) pFormula1, (BitvectorFormula) pFormula2);\n } else if (pType.isFloatingPointType()) {\n return fpmgr.assignment((FloatingPointFormula) pFormula1, (FloatingPointFormula) pFormula2);\n } else if (pType.isArrayType()) {\n @SuppressWarnings(\"rawtypes\")\n ArrayFormula f2 = (ArrayFormula) pFormula2;\n return amgr.equivalence((ArrayFormula<?, ?>) pFormula1, f2);\n }\n throw new IllegalArgumentException(\n \"Cannot make equality of formulas with type \" + pType + \" in the Solver!\");\n }", "@Test\n public void testSubsequentCallsToTheSameComponentWithDifferentVariables() throws ParseException\n {\n ExpressionEvaluator evaluator = new ExpressionEvaluator(EXPRESSION_GOOD_PLUS_PERIOD);\n Map<String, Object> map1 = new HashMap<>();\n Map<String, Object> map2 = new HashMap<>();\n map1.put(VARIABLE_PERIOD, MORNING);\n map2.put(VARIABLE_PERIOD, AFTERNOON);\n assertEquals(GOOD_MORNING, evaluator.evaluate(map1));\n assertEquals(GOOD_AFTERNOON, evaluator.evaluate(map2));\n }", "XExpression getExpression();", "public void evaluate(ContainerValue c1, ContainerValue c2, List<Value> result);", "Syntax.Node ParseAssignment(Token t, Syntax.NodeVar left) throws Exception{\n while (true){\n if(t.type==TokenType.ASSIGNMENT_OPERATOR){\n var right = ParseExpression();\n return new Syntax.AssignmentNode(\":=\", left, right);\n }\n else {\n lexer.putBack(t);\n break;\n //throw new Exception(\"Error in ParseAssignment!!! can't assign it \");\n }\n }\n throw new Exception(\"Error in ParseAssignment!!! \");\n\n }", "private static Expression retrieveParseExpression(String expression) {\n return StaticJavaParser.parseExpression(expression);\n }", "DExpression getExpression();", "private Expr comparison() {\n Expr expr = addition();\n\n while(match(GREATER, GREATER_EQUAL, LESS, LESS_EQUAL)) { // These variable length arguments are real convenient\n Token operator = previous();\n Expr right = addition();\n expr = new Expr.Binary(expr, operator, right);\n }\n\n return expr;\n }", "public Object visitRelationalExpression(GNode n) {\n Object a, b, result;\n String op;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n Long x = (Long) a;\n Long y = (Long) b;\n long zero = 0;\n long one = 1;\n \n if (op.equals(\"<\")) {\n result = x < y ? one : zero;\n }\n else if (op.equals(\"<=\")) {\n result = x <= y ? one : zero;\n }\n else if (op.equals(\">\")) {\n result = x > y ? one : zero;\n }\n else if (op.equals(\">=\")) {\n result = x >= y ? one : zero;\n }\n else {\n result = \"\";\n }\n }\n else {\n result = parens(a) + \" \" + op + \" \" + parens(b);\n }\n \n return result;\n }", "public String convert(ArithmeticExpression expression)\n {\n String expressionString = expression.getExpression();\n String convertedExpression = \"\";\n Stack<String> OpStack = new Stack<>();\n\n int startIndex = 0;\n while(startIndex < expressionString.length())\n {\n if(isOperand(nextToken(expressionString,startIndex)))\n {\n convertedExpression += nextToken(expressionString,startIndex);\n convertedExpression += \" \";\n\n }\n if(Brackets.isLeftBracket(nextToken(expressionString,startIndex)))\n {\n OpStack.push(nextToken(expressionString,startIndex));\n }\n if(Brackets.isRightBracket(nextToken(expressionString,startIndex)))\n {\n String topOp = OpStack.pop();\n while(!Brackets.isLeftBracket(topOp))\n {\n convertedExpression += topOp;\n convertedExpression += \" \";\n topOp = OpStack.pop();\n }\n }\n if(Operator.isOperator(nextToken(expressionString,startIndex)))\n {\n Operator temp = Operator.of(nextToken(expressionString,startIndex));\n if(OpStack.isEmpty())\n {\n OpStack.push(nextToken(expressionString, startIndex));\n }\n else\n {\n Operator topOp = Operator.of(OpStack.peek());\n while (topOp.getRank() <= temp.getRank())\n {\n convertedExpression += OpStack.pop();\n convertedExpression += \" \";\n topOp = Operator.of(OpStack.peek());\n }\n OpStack.push(nextToken(expressionString, startIndex));\n\n }\n }\n if(isOperand(nextToken(expressionString,startIndex)))\n startIndex += nextToken(expressionString,startIndex).length();\n else\n startIndex++;\n }\n while(!OpStack.isEmpty())\n {\n convertedExpression += OpStack.pop();\n convertedExpression += \" \";\n }\n return convertedExpression;\n }", "Expr expr();", "ValueExpression getValueExpression(String attributeName);", "public static BinaryExpression andAssign(Expression expression0, Expression expression1, Method method, LambdaExpression lambdaExpression) { throw Extensions.todo(); }", "private Object eval(SimpleExpr expr) {\n Object res = eval(expr.getExpr().get(0));\n\n for (int i = 1; i < expr.getExpr().size(); i++) {\n Object res2 = eval(expr.getExpr().get(i));\n String opt = expr.getOpt().get(i - 1);\n\n if (\"+\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res + (Double) res2;\n } else if (res instanceof Double && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof Boolean && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof Double) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof Boolean) {\n res = \"\" + res + res2;\n } else {\n throw new RaydenScriptException(\"Expression error: SimpleExpr error\");\n }\n } else if (\"-\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res - (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: SimpleExpr error\");\n }\n } else {\n throw new RaydenScriptException(\"Expression error: Invalid operator '\" + opt + \"'.\");\n }\n }\n\n return res;\n }", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "public T expr(final Expression expression) {\r\n\t\tif (expression.values() == null)\r\n\t\t\treturn expr(expression.expression());\r\n\t\treturn expr(expression.expression(), expression.values()\r\n\t\t\t\t.toArray());\r\n\t}", "protected Expr visitSettableAssign(SettableAssign n) throws SemanticException {\n Position pos = n.position();\n MethodInstance mi = n.methodInstance();\n List<Expr> args = new ArrayList<Expr>(n.index());\n if (n.operator() == Assign.ASSIGN) {\n // FIXME: this changes the order of evaluation, (a,i,v) -> (a,v,i)!\n args.add(0, n.right());\n return xnf.Call(pos, n.array(), xnf.Id(pos, mi.name()),\n args).methodInstance(mi).type(mi.returnType());\n }\n X10Binary_c.Operator op = n.operator().binaryOperator();\n X10Call left = (X10Call) n.left();\n MethodInstance ami = left.methodInstance();\n List<Formal> parms = new ArrayList<Formal>();\n Name xn = Name.make(\"x\");\n LocalDef xDef = xts.localDef(pos, xts.Final(), Types.ref(mi.container()), xn);\n Formal x = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, mi.container()), xnf.Id(pos, xn)).localDef(xDef);\n parms.add(x);\n List<Expr> idx1 = new ArrayList<Expr>();\n int i = 0;\n for (Type t : ami.formalTypes()) {\n Name yn = Name.make(\"y\"+i);\n LocalDef yDef = xts.localDef(pos, xts.Final(), Types.ref(t), yn);\n Formal y = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, t), xnf.Id(pos, yn)).localDef(yDef);\n parms.add(y);\n idx1.add(xnf.Local(pos, xnf.Id(pos, yn)).localInstance(yDef.asInstance()).type(t));\n i++;\n }\n Name zn = Name.make(\"z\");\n Type T = mi.formalTypes().get(0);\n assert (xts.isSubtype(ami.returnType(), T, context()));\n LocalDef zDef = xts.localDef(pos, xts.Final(), Types.ref(T), zn);\n Formal z = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, T), xnf.Id(pos, zn)).localDef(zDef);\n parms.add(z);\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos,\n xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, ami.name()), idx1).methodInstance(ami).type(T),\n op, xnf.Local(pos, xnf.Id(pos, zn)).localInstance(zDef.asInstance()).type(T)).type(T));\n List<Expr> args1 = new ArrayList<Expr>(idx1);\n args1.add(0, val);\n Type ret = mi.returnType();\n Expr res = xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, mi.name()), args1).methodInstance(mi).type(ret);\n // Have to create the appropriate node in case someone defines a set():void\n Block block = ret.isVoid() ?\n xnf.Block(pos, xnf.Eval(pos, res), xnf.Return(pos, xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, ami.name()), idx1).methodInstance(ami).type(T))) :\n xnf.Block(pos, xnf.Return(pos, res));\n Closure c = synth.makeClosure(pos, T, parms, block, context());\n X10MethodInstance ci = c.closureDef().asType().applyMethod();\n args.add(0, n.array());\n args.add(n.right());\n return xnf.ClosureCall(pos, c, args).closureInstance(ci).type(ret);\n }", "private double parseExpression() {\n\t\tdouble value = parseTerm();\n\t\twhile (true) {\n\t\t\tif (token.getType().equals(Token.Type.PLUS)) { // addition\n\t\t\t\ttoken=lexer.getNextToken();\n\t\t\t\tvalue += parseTerm();\n\t\t\t} else if (token.getType().equals(Token.Type.MINUS)) { // subtraction\n\t\t\t\ttoken = lexer.getNextToken();\n\t\t\t\tvalue -= parseTerm();\n\t\t\t} else {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t}\n\t}", "private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }", "public static BinaryExpression assign(Expression left, Expression right) { throw Extensions.todo(); }", "public ComparisonObject getComparisonObject(String [] s1);", "@Test\r\n public void deriveFromBinaryXorAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M^=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH^=9\", \"(long,km^2/h)\");\r\n }", "@Test\r\n public void deriveFromOrAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M|=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH|=9\", \"(long,km^2/h)\");\r\n }", "String getExpression();", "String getExpression();", "public void visit(EqualityExpression n) {\n n.f0.accept(this);\n n.f1.accept(this);\n }", "private Comparison compareValues(SimpleNode first, SimpleNode second) {\n return Objects.equals(first.jjtGetValue(), second.jjtGetValue()) ? Comparison.IS_EQUAL\n : Comparison.notEqual(\"Node values differ: \" + first.jjtGetValue() + \" vs \" + second.jjtGetValue());\n }", "public static BinaryExpression addAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "@Test\n public void test_DivisionWithTwoVariables() {\n Operator add = new Operator(new Constant(10), new Variable(\"x\"), Operator.Operators.ADD);\n Operator min = new Operator(new Constant(12), new Variable(\"y\"), Operator.Operators.MINUS);\n Operator mul = new Operator(add, min, Operator.Operators.MUL);\n Operator add2 = new Operator(new Constant(5), new Variable(\"x\"), Operator.Operators.ADD);\n Operator div = new Operator(mul, add2, Operator.Operators.DIV);\n\n\t\t/* x = 3 y = 2 */\n Context c = new Context();\n c.assign(\"x\", 3);\n c.assign(\"y\", 2);\n\n assertThat(div.evaluate(c), is(16.25));\n }", "@Test\n public void fieldCompare() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n FieldCompare field = (FieldCompare) builder.insertField(FieldType.FIELD_COMPARE, true);\n field.setLeftExpression(\"3\");\n field.setComparisonOperator(\"<\");\n field.setRightExpression(\"2\");\n field.update();\n\n // The COMPARE field displays a \"0\" or a \"1\", depending on its statement's truth.\n // The result of this statement is false so that this field will display a \"0\".\n Assert.assertEquals(\" COMPARE 3 < 2\", field.getFieldCode());\n Assert.assertEquals(\"0\", field.getResult());\n\n builder.writeln();\n\n field = (FieldCompare) builder.insertField(FieldType.FIELD_COMPARE, true);\n field.setLeftExpression(\"5\");\n field.setComparisonOperator(\"=\");\n field.setRightExpression(\"2 + 3\");\n field.update();\n\n // This field displays a \"1\" since the statement is true.\n Assert.assertEquals(\" COMPARE 5 = \\\"2 + 3\\\"\", field.getFieldCode());\n Assert.assertEquals(\"1\", field.getResult());\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.COMPARE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.COMPARE.docx\");\n\n field = (FieldCompare) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_COMPARE, \" COMPARE 3 < 2\", \"0\", field);\n Assert.assertEquals(\"3\", field.getLeftExpression());\n Assert.assertEquals(\"<\", field.getComparisonOperator());\n Assert.assertEquals(\"2\", field.getRightExpression());\n\n field = (FieldCompare) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_COMPARE, \" COMPARE 5 = \\\"2 + 3\\\"\", \"1\", field);\n Assert.assertEquals(\"5\", field.getLeftExpression());\n Assert.assertEquals(\"=\", field.getComparisonOperator());\n Assert.assertEquals(\"\\\"2 + 3\\\"\", field.getRightExpression());\n }", "@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createForTerm(t1);\n PredicateKey k2 = PredicateKey.createForTerm(t2);\n testEquals(k1, k2);\n }", "Expression relExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = addExpression();\r\n\t\twhile(isKind(OP_LT,OP_GT,OP_LE,OP_GE)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = addExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "@Test //ExSkip\n public void fieldEQ() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // An EQ field displays a mathematical equation consisting of one or many elements.\n // Each element takes the following form: [switch][options][arguments].\n // There may be one switch, and several possible options.\n // The arguments are a set of coma-separated values enclosed by round braces.\n\n // Here we use a document builder to insert an EQ field, with an \"\\f\" switch, which corresponds to \"Fraction\".\n // We will pass values 1 and 4 as arguments, and we will not use any options.\n // This field will display a fraction with 1 as the numerator and 4 as the denominator.\n FieldEQ field = insertFieldEQ(builder, \"\\\\f(1,4)\");\n\n Assert.assertEquals(\" EQ \\\\f(1,4)\", field.getFieldCode());\n\n // One EQ field may contain multiple elements placed sequentially.\n // We can also nest elements inside one another by placing the inner elements\n // inside the argument brackets of outer elements.\n // We can find the full list of switches, along with their uses here:\n // https://blogs.msdn.microsoft.com/murrays/2018/01/23/microsoft-word-eq-field/\n\n // Below are applications of nine different EQ field switches that we can use to create different kinds of objects. \n // 1 - Array switch \"\\a\", aligned left, 2 columns, 3 points of horizontal and vertical spacing:\n insertFieldEQ(builder, \"\\\\a \\\\al \\\\co2 \\\\vs3 \\\\hs3(4x,- 4y,-4x,+ y)\");\n\n // 2 - Bracket switch \"\\b\", bracket character \"[\", to enclose the contents in a set of square braces:\n // Note that we are nesting an array inside the brackets, which will altogether look like a matrix in the output.\n insertFieldEQ(builder, \"\\\\b \\\\bc\\\\[ (\\\\a \\\\al \\\\co3 \\\\vs3 \\\\hs3(1,0,0,0,1,0,0,0,1))\");\n\n // 3 - Displacement switch \"\\d\", displacing text \"B\" 30 spaces to the right of \"A\", displaying the gap as an underline:\n insertFieldEQ(builder, \"A \\\\d \\\\fo30 \\\\li() B\");\n\n // 4 - Formula consisting of multiple fractions:\n insertFieldEQ(builder, \"\\\\f(d,dx)(u + v) = \\\\f(du,dx) + \\\\f(dv,dx)\");\n\n // 5 - Integral switch \"\\i\", with a summation symbol:\n insertFieldEQ(builder, \"\\\\i \\\\su(n=1,5,n)\");\n\n // 6 - List switch \"\\l\":\n insertFieldEQ(builder, \"\\\\l(1,1,2,3,n,8,13)\");\n\n // 7 - Radical switch \"\\r\", displaying a cubed root of x:\n insertFieldEQ(builder, \"\\\\r (3,x)\");\n\n // 8 - Subscript/superscript switch \"/s\", first as a superscript and then as a subscript:\n insertFieldEQ(builder, \"\\\\s \\\\up8(Superscript) Text \\\\s \\\\do8(Subscript)\");\n\n // 9 - Box switch \"\\x\", with lines at the top, bottom, left and right of the input:\n insertFieldEQ(builder, \"\\\\x \\\\to \\\\bo \\\\le \\\\ri(5)\");\n\n // Some more complex combinations.\n insertFieldEQ(builder, \"\\\\a \\\\ac \\\\vs1 \\\\co1(lim,n→∞) \\\\b (\\\\f(n,n2 + 12) + \\\\f(n,n2 + 22) + ... + \\\\f(n,n2 + n2))\");\n insertFieldEQ(builder, \"\\\\i (,, \\\\b(\\\\f(x,x2 + 3x + 2))) \\\\s \\\\up10(2)\");\n insertFieldEQ(builder, \"\\\\i \\\\in( tan x, \\\\s \\\\up2(sec x), \\\\b(\\\\r(3) )\\\\s \\\\up4(t) \\\\s \\\\up7(2) dt)\");\n\n doc.save(getArtifactsDir() + \"Field.EQ.docx\");\n testFieldEQ(new Document(getArtifactsDir() + \"Field.EQ.docx\")); //ExSkip\n }", "ExpressionParams getBaseExpressionParams(ExpressionInfo info);", "@Override\n public Expression toExpression()\n {\n return new ComparisonExpression(getType(this.compareType), lvalue.toExpression(), rvalue.toExpression());\n }", "private static String[] assertCondition(String c,int andGroupNo) throws Exception {\n\t\tif (c.trim().equals(\"\")) return new String[0];\n\t\tString h=\"(?<=[\\\\d\\\\w '\\\"])\",t=\"(?=[\\\\d\\\\w '\\\"])\";\n\t\tPattern lessThen=Pattern.compile(h+\"<\"+t),greaterThen=Pattern.compile(h+\">\"+t)\n\t\t\t\t,unequal=Pattern.compile(h+\"\\\\(<>|!=\\\\)\"+t),equal=Pattern.compile(h+\"=\"+t)\n\t\t\t\t,lessEqual=Pattern.compile(h+\"<=\"+t),greaterEqual=Pattern.compile(h+\">=\"+t);\n\t\tint lt=matchCounter(lessThen.matcher(c))\n\t\t\t\t,le=matchCounter(lessEqual.matcher(c))\n\t\t\t\t,gt=matchCounter(greaterThen.matcher(c))\n\t\t\t\t,ge=matchCounter(greaterEqual.matcher(c))\n\t\t\t\t,eq=matchCounter(equal.matcher(c))\n\t\t\t\t,ue = matchCounter(unequal.matcher(c));\n\t\tif((lt+le+ge+gt+eq+ue)==1) {\n\t\t\tString[] res= new String[4],vars=c.split(h+\"=|=|!=|<=|>=|<>|>|<\"+t);\n\t\t\tif (lt==1){ res[0]=\"<\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (le==1){ res[0]=\"<=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (gt==1){ res[0]=\">\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (ge==1){ res[0]=\">=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (eq==1){ res[0]=\"=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (ue==1){ res[0]=\"!=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tres[3]= String.valueOf(andGroupNo);\n\t\t\treturn res;\n\t\t}\n\t\telse throw new Exception(\"Can't determine the condition\");\n\t}", "public Expression determine(String s);", "int parseExpression() {\r\n\t\t\t\tint x = parseTerm();\r\n\t\t\t\tfor (;;) {\r\n\t\t\t\t\tif (eat('+'))\r\n\t\t\t\t\t\tx += parseTerm(); // addition\r\n\t\t\t\t\telse if (eat('-'))\r\n\t\t\t\t\t\tx -= parseTerm(); // subtraction\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn x;\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\tpublic String visitAssignst(AssignstContext ctx) {\n\t\tParseTree cur = ctx.getChild(0);\n\t\tString left = null;\n\t\tString right = null;\n\t\tif(cur == ctx.ID()){\n\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\tRecord id= table.lookup(key);\n\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\tleft = id.getReturnType();\n\t\t}\n\t\telse {left = visit(cur);}\n\t\tright = visit(ctx.getChild(2));\n\t\tif(right.equals(left)){\t\t\t\n\t\t\treturn right;\t\t\t\n\t\t}\n\t\telse throw new RuntimeException(\"Not the same type in left and right of Assign\");\n\t}", "public static BinaryExpression addAssignChecked(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static Temp evalExpression(CommonTree tree){\n\t\t// leaf node, int/float/id\n\n\t\tif (tree.getChildCount() == 0){\n\t\t\tTemp temp = new Temp(temperaryNum++,tree.getType(),tree.getText());\n\t\t\tif (tree.getType() == LittleParser.INTLITERAL){\n\t\t\t\tircode.add(new ThreeOpCode(\"STOREI\",tree.getText(),temp.getName()));\n\t\t\t}\n\t\t\telse if(tree.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\tircode.add(new ThreeOpCode(\"STOREF\",tree.getText(),temp.getName()));\n\t\t\t}\n\t\t\telse{ // look up the variable in the symbol table to set type, use var_name instead of $Tx and recycle $Tx\n\t\t\t\ttemp.setType(allTables.lookupType(temp.getValue().trim()));\n\t\t\t\ttemp.setName(tree.getText());\n\t\t\t\ttemperaryNum--;\n\t\t\t}\n\t\t\treturn temp;\n\t\t}\n\t\t// Not a leaf node, evaluate children expressions\n\t\telse{\n\t\t\t// test for function call\n\t\t\tif (tree.getType() == LittleParser.FUNC_CALL){\n\t\t\t\t// add IR for evaluating the function and return temperary for return value\n\t\t\t\t// after it has been popped off the stack\n\t\t\t\treturn evalFunction(tree);\n\t\t\t}\n\t\t\t//\t\t\tif (tree.getChild(0).getChildCount() == 0 && tree.getChild(1).getChildCount() == 0){\n\t\t\t//\t\t\t\tif ()\n\t\t\t//\t\t\t}\n\t\t\tTemp left = evalExpression((CommonTree) tree.getChild(0));\n\t\t\tTemp right = evalExpression((CommonTree) tree.getChild(1));\n\n\t\t\tTemp temp = new Temp(temperaryNum++,left.getType(), \"EXP\");\n\t\t\tif (tree.getText().contains(\"+\")){ // add\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t} //both parameters\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tircode.add(new ThreeOpCode(\"ADDI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tree.getText().contains(\"-\")){ // subtract\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tircode.add(new ThreeOpCode(\"SUBI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (tree.getText().contains(\"*\")){ // multiply\n\t\t\t\tif (left.getType() == LittleParser.INTLITERAL && right.getType() == LittleParser.INTLITERAL){\n\t\t\t\t\t//System.out.println(\"MULTI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == LittleParser.FLOATLITERAL || right.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"MULTF \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"MULR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"MULTI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"MULI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{ // divide\n\t\t\t\tif (right.getType() == LittleParser.INTLITERAL && left.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"DIVI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (right.getType() == LittleParser.FLOATLITERAL || left.getType() == LittleParser.FLOATLITERAL){\n\t\t\t\t\t//System.out.println(\"DIVF \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVR\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t}\n\t\t\t\telse if (left.getType() == -1 && right.getType() == -1){\n\t\t\t\t\t//System.out.println(left.getName() + \": \" + left.getType() + \" \" + right.getName() + \": \" + right.getType());\n\t\t\t\t\t// need to lookup symbol in main and then global to find type\n\t\t\t\t\tint ltype = allTables.lookupType(left.name);\n\t\t\t\t\tint rtype = allTables.lookupType(right.name);\n\t\t\t\t\tif (ltype == LittleParser.INTLITERAL && rtype == LittleParser.INTLITERAL){\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVR\", left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"DIVI \" + left.getName() + \" \" + right.getName() + \" \"+temp.getName());\n\t\t\t\t\tircode.add(new ThreeOpCode(\"DIVI\",left.getName(),right.getName(),temp.getName()));\n\t\t\t\t\ttemp.setType(LittleParser.INTLITERAL);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn temp;\n\t\t}\n\n\t}", "private String processShorthand() {\n line = line.replace(\" \",\"\");\n StringBuilder result = new StringBuilder();\n StringBuilder variable = new StringBuilder();\n StringBuilder value = new StringBuilder();\n //This is to get the shorthand operator used.\n boolean equalToCrossed = false;\n StringBuilder operate = new StringBuilder();\n for(int i=0; i<line.length(); i++) {\n char ch = line.charAt(i);\n //If the character ch is not a letter nor a digit,\n //and equal-to has not been crossed yet, then ch\n //is part of the operator.\n if(!Character.isLetterOrDigit(ch) && !equalToCrossed)\n operate.append(ch);\n //If the character is not part of the operator\n //and equal-to has not been crossed yet, then this\n //is part of the variable name.\n else if(!equalToCrossed)\n variable.append(ch);\n //Else, the character is part of value\n else\n value.append(ch);\n if(ch=='=')\n equalToCrossed = true;\n }\n String operator = operate.toString();\n result.append(variable);\n switch(operator) {\n case \"+=\" : result.append(\" is added with \"); break;\n case \"-=\" : result.append(\" is decreased by \"); break;\n case \"*=\" : result.append(\" is multiplied with \"); break;\n case \"/=\" : result.append(\" is divided by \"); break;\n case \"^=\" : result.append(\" is XOR'ed with \"); break;\n case \"|=\" : result.append(\" is OR'ed with \"); break;\n case \"&=\" : result.append(\" is AND'ed with \"); break;\n case \"<<=\" : result.append(\" is signed left-bit-shifted by \"); break;\n case \">>=\" : result.append(\" is signed right-bit-shifted by \"); break;\n case \">>>=\" : result.append(\" is unsigned right-bit-shifted by \"); break;\n default : result.append(\" \").append(operator).append(\" \"); break;\n }\n if(hasArrayAsMajorValue(value.toString())) {\n value = new StringBuilder(processArrayValue(value.toString()));\n }\n result.append(\"the value given by \").append(value);\n return result.toString();\n }", "public void inputExpression(String expression, Matrix a, Matrix b) {\n\t\tif(a == null || b == null) return;\n\t\texpression = expression.replaceAll(\"\\\\s+\", \"\");\n\t\tfor(Character c : expression.trim().toCharArray())\n\t\t\tif(!(isOperator(c.toString()) || isNumber(c.toString()) \n\t\t\t\t|| isMatrix(c.toString()) || c == '(' || c == ')')) {\n\t\t\t\tthrow new IllegalArgumentException(INVALID_CHARACTER_MESSAGE);\n\t\t\t}\n\t\tif(characterCount(expression, '(') > characterCount(expression, ')'))\n\t\t\tthrow new IllegalArgumentException(\"Expecting ')'\");\n\t\telse if(characterCount(expression, '(') < characterCount(expression, ')'))\n\t\t\tthrow new IllegalArgumentException(\"Expecting '('\");\n\t\tthis.expression = expression;\n\t\tthis.a = a;\n\t\tthis.b = b;\n\t\t\n\t\tread( toReversePolishNotation( addSpaces(expression) ) );\n\t}" ]
[ "0.5342464", "0.5240359", "0.52112454", "0.5150345", "0.5100042", "0.50636476", "0.49451566", "0.49143812", "0.488724", "0.4883435", "0.48440585", "0.48210636", "0.4785069", "0.47655246", "0.4751292", "0.47408468", "0.4734599", "0.47284812", "0.4718011", "0.4714339", "0.4710176", "0.46913603", "0.46647406", "0.4642616", "0.4622089", "0.46208557", "0.46165082", "0.4609575", "0.46025005", "0.45878077", "0.45604822", "0.45439473", "0.4526435", "0.45216757", "0.45200402", "0.45132312", "0.45116308", "0.45116308", "0.4491892", "0.44876418", "0.44854525", "0.44737586", "0.44701305", "0.4460669", "0.4449416", "0.44326058", "0.4426007", "0.4400618", "0.43979153", "0.4385699", "0.4382549", "0.43812397", "0.4373271", "0.43710914", "0.43597633", "0.4345705", "0.43435985", "0.43428242", "0.43421936", "0.43335798", "0.43320337", "0.43255463", "0.432034", "0.43174827", "0.43162102", "0.43156362", "0.43103045", "0.43072706", "0.4297771", "0.4293391", "0.4293391", "0.4293391", "0.4293391", "0.42856497", "0.4280856", "0.4278115", "0.42778552", "0.42770404", "0.42769793", "0.42671254", "0.42616", "0.42526424", "0.42526424", "0.42487237", "0.42438957", "0.42384315", "0.42380255", "0.42357326", "0.42347133", "0.42337167", "0.42330486", "0.42330208", "0.42318907", "0.4225989", "0.4207608", "0.42048737", "0.4204406", "0.42024037", "0.41987702", "0.41933346", "0.41932586" ]
0.0
-1
Converts an expression into an (input, field) pair.
private static int[] inputField(List<RelNode> leaves, RexNode rex) { if (!(rex instanceof RexInputRef)) { throw new RuntimeException("only equi-join of columns allowed: " + rex); } RexInputRef ref = (RexInputRef) rex; int start = 0; for (int i = 0; i < leaves.size(); i++) { final RelNode leaf = leaves.get(i); final int end = start + leaf.getRowType().getFieldCount(); if (ref.getIndex() < end) { return new int[] {i, ref.getIndex() - start}; } start = end; } throw new AssertionError("input not found"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MemberExpression field(Expression expression, String fieldName) { throw Extensions.todo(); }", "public static MemberExpression field(Expression expression, Field field) { throw Extensions.todo(); }", "private static Expression retrieveParseExpression(String expression) {\n return StaticJavaParser.parseExpression(expression);\n }", "public Object parseValue(String expr);", "public Object getExpression();", "ExpressionInfo getExpressionInfo(ExpressionParams params);", "public static String parseExpressionForOperator(String expression) {\n int space = expression.indexOf(\" \");\n String frac1 = expression.substring(0, space);\n String operator = expression.substring(space + 1, space + 2);\n return operator;\n }", "Object getExpressionValue(ExpressionParams params);", "public static MemberExpression field(Expression expression, Class type, String fieldName) { throw Extensions.todo(); }", "ValueExpression getValueExpression(String attributeName);", "String getExpressionDescription(String expression, ParseType parseType);", "Expression getValue();", "Expression getValue();", "XExpression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "Expression getExpression();", "int parseExpression() {\r\n\t\t\t\tint x = parseTerm();\r\n\t\t\t\tfor (;;) {\r\n\t\t\t\t\tif (eat('+'))\r\n\t\t\t\t\t\tx += parseTerm(); // addition\r\n\t\t\t\t\telse if (eat('-'))\r\n\t\t\t\t\t\tx -= parseTerm(); // subtraction\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn x;\r\n\t\t\t\t}\r\n\t\t\t}", "public T expr(final Expression expression) {\r\n\t\tif (expression.values() == null)\r\n\t\t\treturn expr(expression.expression());\r\n\t\treturn expr(expression.expression(), expression.values()\r\n\t\t\t\t.toArray());\r\n\t}", "DExpression getExpression();", "private double parseExpression() {\n\t\tdouble value = parseTerm();\n\t\twhile (true) {\n\t\t\tif (token.getType().equals(Token.Type.PLUS)) { // addition\n\t\t\t\ttoken=lexer.getNextToken();\n\t\t\t\tvalue += parseTerm();\n\t\t\t} else if (token.getType().equals(Token.Type.MINUS)) { // subtraction\n\t\t\t\ttoken = lexer.getNextToken();\n\t\t\t\tvalue -= parseTerm();\n\t\t\t} else {\n\t\t\t\treturn value;\n\t\t\t}\n\t\t}\n\t}", "String getExpressionDescription(String expression, ParseType parseType, DataType dataType);", "public static Object getFieldValueEx(ExperimentParamResultPair pair,\r\n\t\t\tString fieldName) throws Exception {\r\n\t\tObject object = null;\r\n\r\n\t\tif (ReflectUtil.hasField(pair.getParam(), fieldName)) {\r\n\t\t\tobject = ReflectUtil.getFieldValueEx(pair.getParam(), fieldName);\r\n\t\t} else if (ReflectUtil.hasField(pair.getResult(), fieldName)) {\r\n\t\t\tobject = ReflectUtil.getFieldValueEx(pair.getResult(), fieldName);\r\n\t\t} else {\r\n\t\t\tthrow new Exception(\"field \" + fieldName + \" doesnot exist\");\r\n\t\t}\r\n\t\treturn object;\r\n\t}", "Expression createExpression();", "public void splitExpression(String expression, String op) {\n operator = new arithmetic_op(op);\n expression = expression.trim();\n int index = expression.indexOf(op);\n left = new arithmetic_ex((expression.substring(0, index)).trim());\n right = new arithmetic_ex((expression.substring(index + 1)).trim());\n }", "public static ExpressionTree makeExpression(String function,\n List<Field> inFields,\n Field resultField) {\n List<TreeNode> children = new ArrayList<TreeNode>(inFields.size());\n for (Field field : inFields) {\n children.add(makeField(field));\n }\n\n TreeNode root = makeFunction(function, children, resultField.getType());\n return makeExpression(root, resultField);\n }", "public static MemberExpression propertyOrField(Expression expression, String propertyOfFieldName) { throw Extensions.todo(); }", "Expr expr();", "public final ExpressionJpa getExpression(final ExpressionDAO exprDAO) {\n final ExpressionJpa expr = exprDAO.getNew();\n\n final ExprMap exprMap =\n new ExprMap(marcRecord, work);\n\n // -- titleOfTheExpression\n // ExpressionTitle titles\n expr.getTitles().addAll(exprMap.mapTitles(expr));\n\n // -- formOfExpression\n // ExpressionForm forms\n expr.getForms().addAll(exprMap.mapForms(expr));\n\n // -- dateOfExpression\n // ExpressionDate dates\n expr.getDates().addAll(exprMap.mapDates(expr));\n\n // -- languageOfExpression\n // ExpressionLanguage languages\n expr.getLanguages().addAll(exprMap.mapLanguages(expr));\n\n // -- otherDistinguishingCharacteristic\n // not mapped\n // ExpressionCharacteristic characteristics\n\n // -- extentOfTheExpression\n // ExpressionExtent extents\n expr.getExtents().addAll(exprMap.mapExtents(expr));\n\n // -- summarizationOfContent\n // not mapped\n // ExpressionSummarization summarizations\n\n // -- contextForTheExpression\n // not mapped\n // ExpressionContext contexts\n\n // -- criticalResponseToTheExpression\n // not mapped\n // ExpressionResponse responses\n\n // -- typeOfScore\n // ExpressionScoreType scoreType\n expr.getScoreType().addAll(\n exprMap.mapScoreType(expr));\n\n // -- mediumOfPerformance\n // ExpressionPerformanceMedium performanceMediums\n expr.getPerformanceMediums().addAll(\n exprMap.mapPerformanceMediums(expr));\n\n // -- note\n // ExpressionNote notes\n expr.getNotes().addAll(exprMap.mapNotes(expr));\n\n // -- placeOfPerformance\n // ExpressionPerformancePlace performancePlace\n expr.getPerformancePlace().addAll(exprMap.mapPerformancePlace(expr));\n\n // -- key\n // ExpressionKey keys\n expr.getKeys().addAll(exprMap.mapKeys(expr));\n\n // -- genreFormStyle\n // ExpressionGenre genres\n expr.getGenres().addAll(exprMap.mapGenres(expr));\n\n return expr;\n }", "Expression getExp();", "TupleExpr createTupleExpr();", "public String convert(ArithmeticExpression expression)\n {\n String expressionString = expression.getExpression();\n String convertedExpression = \"\";\n Stack<String> OpStack = new Stack<>();\n\n int startIndex = 0;\n while(startIndex < expressionString.length())\n {\n if(isOperand(nextToken(expressionString,startIndex)))\n {\n convertedExpression += nextToken(expressionString,startIndex);\n convertedExpression += \" \";\n\n }\n if(Brackets.isLeftBracket(nextToken(expressionString,startIndex)))\n {\n OpStack.push(nextToken(expressionString,startIndex));\n }\n if(Brackets.isRightBracket(nextToken(expressionString,startIndex)))\n {\n String topOp = OpStack.pop();\n while(!Brackets.isLeftBracket(topOp))\n {\n convertedExpression += topOp;\n convertedExpression += \" \";\n topOp = OpStack.pop();\n }\n }\n if(Operator.isOperator(nextToken(expressionString,startIndex)))\n {\n Operator temp = Operator.of(nextToken(expressionString,startIndex));\n if(OpStack.isEmpty())\n {\n OpStack.push(nextToken(expressionString, startIndex));\n }\n else\n {\n Operator topOp = Operator.of(OpStack.peek());\n while (topOp.getRank() <= temp.getRank())\n {\n convertedExpression += OpStack.pop();\n convertedExpression += \" \";\n topOp = Operator.of(OpStack.peek());\n }\n OpStack.push(nextToken(expressionString, startIndex));\n\n }\n }\n if(isOperand(nextToken(expressionString,startIndex)))\n startIndex += nextToken(expressionString,startIndex).length();\n else\n startIndex++;\n }\n while(!OpStack.isEmpty())\n {\n convertedExpression += OpStack.pop();\n convertedExpression += \" \";\n }\n return convertedExpression;\n }", "String getExpression();", "String getExpression();", "public static String parseExpressionForSecondFraction(String expression) {\n int space = expression.indexOf(\" \");\n String frac1 = expression.substring(0, space);\n String operator = expression.substring(space + 1, space + 2);\n int length = expression.length();\n String frac2 = expression.substring(space + 3, length);\n return frac2;\n }", "public Expression makeExpression(String input) {\n\t\tmyInput = input;\n\t\tmyCurrentPosition = 0; // NEW LINE\n\t\tExpression result = parseExpression(new HashMap<String, Expression>());\n\t\tskipWhiteSpace();\n\t\tif (notAtEndOfString()) {\n\t\t\tthrow new ParserException(\n\t\t\t\t\t\"Unexpected characters at end of the string: \"\n\t\t\t\t\t\t\t+ myInput.substring(myCurrentPosition),\n\t\t\t\t\tParserException.Type.EXTRA_CHARACTERS);\n\t\t}\n\t\treturn result;\n\t}", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "double parseExpression() {\n double x = parseTerm();\n for (;;) {\n if (eat('+')) x += parseTerm(); // addition\n else if (eat('-')) x -= parseTerm(); // subtraction\n else return x;\n }\n }", "public ExprInfo getExprInfo(ExprNodeDesc expr) {\n return exprInfoMap.get(expr);\n }", "private static AssignExpr retrieveAssignExpression(Expression expression) {\n return expression.asAssignExpr();\n }", "Expr getExpr();", "public static Object parseExpression(String expression) throws OgnlException{\n final Integer currentExpressionMaxLength = Ognl.expressionMaxLength; // Limit access to the volatile variable to a single operation\n if (currentExpressionMaxLength != null && expression != null && expression.length() > currentExpressionMaxLength){\n throw new OgnlException(\n \"Parsing blocked due to security reasons!\",\n new SecurityException(\"This expression exceeded maximum allowed length: \" + expression));\n }\n try{\n OgnlParser parser = new OgnlParser(new StringReader(expression));\n return parser.topLevelExpression();\n }catch (ParseException e){\n throw new ExpressionSyntaxException(expression, e);\n }catch (TokenMgrError e){\n throw new ExpressionSyntaxException(expression, e);\n }\n }", "public String getFieldContent(String fieldExpression)\n\t\t\tthrows XPathExpressionException {\n\t\tNode node = evaluateXPath(inputDoc, fieldExpression);\n\t\treturn node.getTextContent();\n\t}", "private Object parseExpr() throws IOException, FSException{\n\n ETreeNode curNode=null;\n boolean end=false;\n Object val;\n boolean negate=false; //flag for unary minus\n boolean not=false;//flag for unary not.\n boolean prevOp=true;//flag - true if previous value was an operator\n\n while (!end){\n\n switch (tok.ttype) {\n\n\n //the various possible 'values'\n case LexAnn.TT_INTEGER:\n case LexAnn.TT_DOUBLE:\n case LexAnn.TT_STRING:\n case LexAnn.TT_WORD:\n case LexAnn.TT_FUNC:\n case LexAnn.TT_NULL:\n case LexAnn.TT_ARRAY:{\n\n if (!prevOp){\n parseError(\"Expected Operator\");\n } else {\n\n val=null;\n ETreeNode node=new ETreeNode();\n node.type=ETreeNode.E_VAL;\n\n switch (tok.ttype){\n //numbers - just get them\n case LexAnn.TT_INTEGER:{\n val=tok.value;\n break;\n }\n case LexAnn.TT_DOUBLE:{\n val=tok.value;\n break;\n }\n //functions - evaluate them\n case LexAnn.TT_FUNC:{\n String name=(String)tok.value;\n getNextToken();\n val=parseCallFunc(name);\n break;\n }\n //arrays - evaluate them\n case LexAnn.TT_ARRAY:{\n String name=(String)tok.value;\n getNextToken(); //should be a '['\n getNextToken(); //should be the index\n Object index=parseExpr();\n try {\n val=host.getVarEntry(name,index);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n break;\n }\n //variables - resolve them\n case LexAnn.TT_WORD:{\n if (hasVar((String)tok.value)) {\n val=getVar((String)tok.value);\n } else {\n try {\n val=host.getVarEntry((String)tok.value,null);\n } catch (Exception e) {\n parseError(e.getMessage());\n }\n }\n break;\n }\n //strings - just get again\n case LexAnn.TT_STRING:{\n val=tok.value;\n break;\n }\n //null\n case LexAnn.TT_NULL:{\n val=new FSObject(null);\n break;\n }\n }\n\n //unary not\n if (not){\n if (val instanceof Integer){\n if (((Integer)val).intValue()==0){\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n not=false;\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Boolean) {\n if (((FSObject)val).getObject().equals(Boolean.FALSE)) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else if (val instanceof FSObject && ((FSObject)val).getObject() instanceof Integer) {\n if (((Integer)((FSObject)val).getObject()).intValue()==0) {\n val=FS_TRUE;\n } else {\n val=FS_FALSE;\n }\n } else {\n String msg=val.getClass().getName();\n if (val instanceof FSObject) msg=\"FSObject with \"+((FSObject)val).getNullClass().getName();\n parseError(\"Type mismatch for ! \"+msg);\n }\n }\n\n //unary minus\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n node.value=val;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n\n prevOp=false;\n }\n break;\n }\n /*operators - have to be more carefull with these.\n We build an expression tree - inserting the nodes at the right\n points to get a reasonable approximation to correct operator\n precidence*/\n case LexAnn.TT_LEQ:\n case LexAnn.TT_LNEQ:\n case LexAnn.TT_MULT:\n case LexAnn.TT_DIV:\n case LexAnn.TT_MOD:\n case LexAnn.TT_PLUS:\n case LexAnn.TT_MINUS:\n case LexAnn.TT_LGR:\n case LexAnn.TT_LGRE:\n case LexAnn.TT_LLSE:\n case LexAnn.TT_LLS:\n case LexAnn.TT_NOT:\n case LexAnn.TT_LAND:\n case LexAnn.TT_LOR: {\n if (prevOp){\n if (tok.ttype==LexAnn.TT_MINUS){\n negate=true;\n } else if (tok.ttype==LexAnn.TT_NOT){\n not=true;\n } else {\n parseError(\"Expected Expression\");\n }\n } else {\n\n ETreeNode node=new ETreeNode();\n\n node.type=ETreeNode.E_OP;\n node.value=new Integer(tok.ttype);\n\n if (curNode.parent!=null){\n\n int curPrio=getPrio(tok.ttype);\n int parPrio=\n getPrio(((Integer)curNode.parent.value).intValue());\n\n if (curPrio<=parPrio){\n //this nodes parent is the current nodes grandparent\n node.parent=curNode.parent.parent;\n //our nodes left leg is now linked into the current nodes\n //parent\n node.left=curNode.parent;\n //hook into grandparent\n if (curNode.parent.parent!=null){\n curNode.parent.parent.right=node;\n }\n\n //the current nodes parent is now us (because of above)\n curNode.parent=node;\n //set the current node.\n curNode=node;\n } else {\n //current node's parent's right is now us.\n curNode.parent.right=node;\n //our nodes left is the current node.\n node.left=curNode;\n //our nodes parent is the current node's parent.\n node.parent=curNode.parent;\n //curent nodes parent is now us.\n curNode.parent=node;\n //set the current node.\n curNode=node;\n }\n } else {\n //our node's left is the current node\n node.left=curNode;\n //current node's parent is us now\n //we don't have to set our parent, as it is null.\n curNode.parent=node;\n //set current node\n curNode=node;\n }\n prevOp=true;\n }\n break;\n }\n case '(':\n //start of an bracketed expression, recursively call ourself\n //to get a value\n {\n getNextToken();\n val=parseExpr();\n\n if (negate) {\n if (val instanceof Integer){\n val=new Integer(-((Integer)val).intValue());\n } else if (val instanceof Double){\n val=new Double(-((Double)val).doubleValue());\n } else {\n parseError(\"Type mistmatch for unary -\");\n }\n }\n\n ETreeNode node=new ETreeNode();\n node.value=val;\n node.type=ETreeNode.E_VAL;\n\n if (curNode!=null){\n if (curNode.left==null){\n curNode.left=node;\n node.parent=curNode;\n curNode=node;\n\n } else if (curNode.right==null){\n curNode.right=node;\n node.parent=curNode;\n curNode=node;\n\n }\n } else {\n curNode=node;\n }\n prevOp=false;\n break;\n }\n\n default: {\n end=true;\n }\n\n }\n if (!end){\n tok.nextToken();\n }\n }\n\n //find the top of the tree we just built.\n if (curNode==null) parseError(\"Missing Expression\");\n while(curNode.parent!=null){\n curNode=curNode.parent;\n }\n\n\n return evalETree(curNode);\n\n }", "private double processExpression() throws ParsingException {\n double result = processTerm();\n\n while (true) {\n if (tryCaptureChar('+')) {\n result += processTerm();\n } else if (tryCaptureChar('-')) {\n result -= processTerm();\n } else {\n break;\n }\n }\n return result;\n }", "public Object eval(String expression) throws Exception;", "ExpOperand createExpOperand();", "public static ExpressionTree makeExpression(TreeNode root,\n Field resultField) {\n return new ExpressionTree(root, resultField);\n }", "public synchronized double parseExpression() throws InvalidExpressionException { // parse expression within parentheses\r\n\t\tdouble value = parseSubExpression();\r\n\t\twhile (true) {\r\n\t\t\tignorWhiteSpace();\r\n\t\t\tif (singleChar == '+') { // in case of addition\r\n\t\t\t\tnextChar();\r\n\t\t\t\tvalue = value + parseSubExpression();\r\n\t\t\t} else if (singleChar == '-') { // in case of subtraction\r\n\t\t\t\tnextChar();\r\n\t\t\t\tvalue = value - parseSubExpression();\r\n\t\t\t} else {\r\n\t\t\t\treturn value;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static UnaryExpr retrieveUnaryExpression(Expression expression) {\n return expression.asUnaryExpr();\n }", "Expr expr() throws IOException {\n\t\tExpr e = term();\n\t\twhile (look.tag == '+' || look.tag == '-') {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new Arith(tok, e, term());\n\t\t}\n\t\treturn e;\n\t}", "private Expression toExpression() {\n Expression lhs = null, rhs = null;\n if (base instanceof DerefSymbol) {\n lhs = ((DerefSymbol)base).toExpression();\n } else if (base instanceof AccessSymbol) {\n lhs = ((AccessSymbol)base).toExpression();\n } else if (base instanceof Identifier) {\n lhs = new Identifier(base);\n } else {\n PrintTools.printlnStatus(0,\n \"[WARNING] Unexpected access expression type\");\n return null;\n }\n rhs = new Identifier(member);\n return new AccessExpression(lhs, AccessOperator.MEMBER_ACCESS, rhs);\n }", "public static Expression parse(String exp) {\n\t\texp = exp.replace(\" \", \"\");\r\n\t\tchar[] cs = exp.toCharArray();\r\n\t\tint i = 0;\r\n\t\twhile (i < cs.length && !Operator.validOp(cs[i])) {\r\n\t\t\t++i;\r\n\t\t}\r\n\t\tif (i == cs.length)\r\n\t\t\treturn new Expression(Token.parse(exp));\r\n\t\telse {\r\n\t\t\t//to preserve order of operations here, flip order accordingly\r\n\t\t\t//if the operator is * or /\r\n\t\t\treturn new Expression(\r\n\t\t\t\t\tExpression.parse(exp.substring(0,i)),\r\n\t\t\t\t\t(Operator)Token.parse(cs[i]),\r\n\t\t\t\t\tExpression.parse(exp.substring(i+1, exp.length()))\r\n\t\t\t);\r\n\t\t}\r\n\t}", "private static void getExpression()\r\n {\r\n System.out.print(\"Please enter an equation you want changed to postfix and prefix: \");\r\n infix_expression = scanner.nextLine();\r\n }", "public Object eval (Object expression);", "Expr createExpr();", "ExpressionParams getBaseExpressionParams(ExpressionInfo info);", "protected Expr visitFieldAssign(FieldAssign n) throws SemanticException { \n Position pos = n.position();\n if (n.operator() == Assign.ASSIGN) return n;\n X10Binary_c.Operator op = n.operator().binaryOperator();\n Field left = (Field) n.left();\n Expr right = n.right();\n Type R = left.type();\n if (left.flags().isStatic()) {\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos, left, op, right).type(R));\n return assign(pos, left, Assign.ASSIGN, val);\n }\n Expr e = (Expr) left.target();\n Type E = e.type();\n List<Formal> parms = new ArrayList<Formal>();\n Name xn = Name.make(\"x\");\n LocalDef xDef = xts.localDef(pos, xts.Final(), Types.ref(E), xn);\n Formal x = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, E), xnf.Id(pos, xn)).localDef(xDef);\n parms.add(x);\n Name yn = Name.make(\"y\");\n Type T = right.type();\n LocalDef yDef = xts.localDef(pos, xts.Final(), Types.ref(T), yn);\n Formal y = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, T), xnf.Id(pos, yn)).localDef(yDef);\n parms.add(y);\n Expr lhs = xnf.Field(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(E),\n xnf.Id(pos, left.name().id())).fieldInstance(left.fieldInstance()).type(R);\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos,\n lhs, op, xnf.Local(pos, xnf.Id(pos, yn)).localInstance(yDef.asInstance()).type(T)).type(R));\n Expr res = assign(pos, lhs, Assign.ASSIGN, val);\n Block body = xnf.Block(pos, xnf.Return(pos, res));\n Closure c = synth.makeClosure(pos, R, parms, body, context());\n X10MethodInstance ci = c.closureDef().asType().applyMethod();\n List<Expr> args = new ArrayList<Expr>();\n args.add(0, e);\n args.add(right);\n return xnf.ClosureCall(pos, c, args).closureInstance(ci).type(R);\n }", "public FieldTransformer makeFieldTransformer(Value symbol, Stmt stmt, String op) {\n throw new RuntimeException(\"makeFieldTransformer(symbol, stmt) not implemented in factory \"\n + this.getClass().toString());\n }", "private String translateExpression(PropertyExpression e) {\n if (e.getObjectExpression() instanceof BinaryExpression) {\n BinaryExpression be = (BinaryExpression) e.getObjectExpression();\n if (be.getOperation().getText().equals(\"[\")) {\n String left = translateExpression(be.getLeftExpression());\n if (left.equals(inputName)) {\n return withInputSuffix(e.getPropertyAsString()) + \"[\" + translateExpression(be.getRightExpression()) + \"]\";\n }\n }\n }\n\n\n String obj = translateExpression(e.getObjectExpression());\n //TODO fix for \"not in main case\"\n //if (obj.equals(outputName) && shaderType.equals(\"vs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(outputName)) return withOutputSuffix(e.getPropertyAsString());\n //TODO fix for \"not in main case\"\n //if (obj.equals(inputName) && shaderType.equals(\"fs\")) return withOutputSuffix(e.getPropertyAsString());\n if (obj.equals(inputName)) return withInputSuffix(e.getPropertyAsString());\n //if (obj.equals(outputName)) return e.getPropertyAsString();\n //if (obj.equals(inputName)) return e.getPropertyAsString();\n if (obj.equals(\"\")) return e.getPropertyAsString();\n if ((e.getObjectExpression() instanceof BinaryExpression)) return \"(\" + obj + \").\" + e.getPropertyAsString();\n return obj + \".\" + e.getPropertyAsString();\n }", "Rule Field() {\n // Push 1 FieldNode onto the value stack\n return Sequence(\n Optional(FieldID()),\n Optional(FieldReq()),\n FieldType(), // pushes FieldType onto the value stack\n Identifier(), // pushes Identifier onto the value stack\n Optional(Sequence(\"= \", ConstValue())),\n //XsdFieldOptions(),\n Optional(ListSeparator()),\n WhiteSpace(),\n actions.pushFieldNode());\n }", "public interface AttributeAssignmentExpression extends EObject {\r\n\r\n\tObject toProlog(String type, String variableName, String entityName);\r\n\r\n\tString toPrologExecution();\r\n}", "public String getExpressionString ()\n {\n return toStringToken ((String) getValue ());\n }", "private HashMap<String, String> getNodeInfo(String input) {\n HashMap<String, String> tmp = new HashMap<>();\n /* mark negative value*/\n if (input.charAt(0) == '-')\n input = input.replaceFirst(\"-\", \"!\");\n\n Pattern pattern = Pattern.compile(\"(sin|cos|tan|atan|log10|log2|sqrt|/|\\\\^|\\\\+|\\\\*|-)\");\n Matcher matcher = pattern.matcher(input);\n if (matcher.find()) {\n String op = input.substring(matcher.start(), matcher.end());\n tmp.put(\"operator\", op);\n switch (op) {\n case \"+\":\n case \"-\":\n case \"*\":\n case \"/\":\n case \"^\":\n String[] a = input.split(\"\\\\\" + op);\n tmp.put(\"arg1\", a[0]);\n tmp.put(\"arg2\", a[1]);\n break;\n case \"sin\":\n case \"cos\":\n case \"tan\":\n case \"atan\":\n case \"log10\":\n case \"log2\":\n case \"sqrt\":\n tmp.put(\"arg1\", input.replace(op, \"\"));\n tmp.put(\"arg2\", null);\n break;\n }\n } else {\n tmp.put(\"operator\", input.replaceFirst(\"!\", \"-\"));\n tmp.put(\"arg1\", null);\n tmp.put(\"arg2\", null);\n }\n return tmp;\n }", "public double calculate(String expression) {\n\t\tString[] inputs = expression.split(\" \");\n\t if(debug) {\n\t\tSystem.out.print(\"Input array: \");\n\t\tfor(String value : inputs) {\n\t\t\tSystem.out.print(value + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t }\t\n\t\t\n\t\t// Go through the string array and pop operators onto the\n\t\t// operators stack and operands onto the the operands stack\n\t\tfor(String value : inputs) {\n\t\t if(debug) System.out.println(\"Evaluating: \" + value);\n\t\t\tif(value.equals(\"*\") || value.equals(\"/\") || value.equals(\"+\") || value.equals(\"-\")) {\n\t\t\t\t// If stack is empty push onto stack\n\t\t\t\tif(operand.empty()) {\n\t\t\t\t\toperand.push(value);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// If new operator is higher than old push onto\n\t\t\t\t// stack\n\t\t\t\telse if(value.equals(\"*\") || value.equals(\"/\")) {\n\t\t\t\t\tString old = (String)operand.peek();\n\t\t\t\t\tif(old.equals(\"*\")) {\n\t\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\t if(debug) {\n\t\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t\t }\n\t\t\t\t\t \ta = a*b;\n\t\t\t\t\t\toperators.push(a);\n\t\t\t\t\t\told = (String)operand.pop();\n\t\t\t\t\t\toperand.push(value);\n\t\t\t\t\t}\n\t\t\t\t\telse if(old.equals(\"/\")) {\n\t\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\t if(debug) {\n\t\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t\t }\n\t\t\t\t\t \ta = b/a;\n\t\t\t\t\t\toperators.push(a);\n\t\t\t\t\t\told = (String)operand.pop();\n\t\t\t\t\t\toperand.push(value);\n\t\t\t\t\t}\n\t\t\t\t\telse operand.push(value);\n\t\t\t\t}\n\n\t\t\t\t// Else pop old operator and evaluate top two\n\t\t\t\t// elements on operand stack then push new\n\t\t\t\t// operator onto stack\n\t\t\t\telse {\n\t\t\t\t\tdouble a = (Double)operators.pop();\n\t\t\t\t\tdouble b = (Double)operators.pop();\n\t\t\t\t\tString old = (String)operand.pop();\n\t\t\t\t if(debug) {\n\t\t\t\t\tSystem.out.println(a + old + b);\n\t\t\t\t }\n\t\t\t\t\tif(old.equals(\"*\")) a = a*b;\n\t\t\t\t\telse if(old.equals(\"/\")) a = b/a;\n\t\t\t\t\telse if(old.equals(\"+\")) a = a+b;\n\t\t\t\t\telse a = b-a;\n\t\t\t\t\toperators.push(a);\n\t\t\t\t\toperand.push(value);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Put operators into operators stack\n\t\t\telse {\n\t\t\t try {\n\t\t\t\tDouble num = Double.parseDouble(value);\n\t\t\t\toperators.push(num);\n\t\t\t }\n\t\t\t catch(NumberFormatException e) {\n\t\t\t\t System.out.println(\"NumberFormatException: Something besides a number or operator entered\");\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\t// Finish up everything left over in stack\n\t\tString old;\n\t\tdouble a;\n\t\tdouble b;\n\t\twhile(!operand.empty()) {\n\t\t\told = (String)operand.pop();\n\t\t\ta = (Double)operators.pop();\n\t\t\tb = (Double)operators.pop();\n\t\t\tif(old.equals(\"*\")) a = a*b;\n\t\t\telse if(old.equals(\"/\")) a = b/a;\n\t\t\telse if(old.equals(\"+\")) a = a+b;\n\t\t\telse a = b-a;\n\t\t\toperators.push(a);\n\t\t}\n\t\treturn (Double)operators.peek();\n\t}", "private Symbol parse(Expression e) {\n Symbol ret = null;\n if (e instanceof AccessExpression) {\n ret = new AccessSymbol((AccessExpression)e);\n } else if (e instanceof Identifier) {\n ret = ((Identifier)e).getSymbol();\n } else if (e instanceof ArrayAccess) {\n ret = parse(((ArrayAccess)e).getArrayName());\n } else if (e instanceof Typecast) {\n ret = parse((Expression)e.getChildren().get(0));\n ////////////////////////////////////////////////////////////////////////\n // ConditionalExpression, FunctionCall, CommaExpression, and\n // BinaryExpression is not handled in general. Temporarily, the most\n // representative expression is parsed, which may be incorrect, so the\n // high-level passes that uses AccessSymbol must handle these cases\n // properly.\n } else if (e instanceof ConditionalExpression) {\n PrintTools.printlnStatus(1, \"[WARNING] Symbol is obscure for\", e);\n ret = parse(((ConditionalExpression)e).getTrueExpression());\n } else if (e instanceof FunctionCall) {\n PrintTools.printlnStatus(1, \"[WARNING] Symbol is obscure for\", e);\n ret = parse(((FunctionCall)e).getName());\n } else if (e instanceof CommaExpression) {\n PrintTools.printlnStatus(1, \"[WARNING] Symbol is obscure for\", e);\n ret = parse((Expression)e.getChildren().get(\n e.getChildren().size() - 1));\n } else if (e instanceof BinaryExpression) {\n PrintTools.printlnStatus(1, \"[WARNING] Symbol is obscure for\", e);\n ret = parse(((BinaryExpression)e).getLHS());\n ////////////////////////////////////////////////////////////////////////\n } else if (e instanceof UnaryExpression) {\n UnaryOperator op = ((UnaryExpression)e).getOperator();\n Expression ue = ((UnaryExpression)e).getExpression();\n ret = parse(ue);\n if (op == UnaryOperator.DEREFERENCE) {\n ret = new DerefSymbol(ret);\n }\n } else {\n throw new InternalError(\"failed to parse \" + e + \"(\" +\n e.getClass().getName() + \")\");\n }\n return ret;\n }", "private static Expression retrieveAssignExpressionValue(Expression expression) {\n return retrieveAssignExpression(expression).getValue();\n }", "public interface ExpressionVisitor{\n\n void handel(BracketExpression bracketExpression);\n\n void handel(NaturalNumber naturalNumber);\n\n\n void handel(Sum sum);\n void handel(Difference difference);\n void handel(Product product);\n void handel(Quotient quotient);\n\n void handel(VariableExpression variableExpression);\n}", "public default Object expression() {\n\t\treturn info().values().iterator().next();\n\t}", "private static double expressionValue() throws ParseError {\n\n TextIO.skipBlanks(); // Skip past any blanks.\n\n if ( Character.isDigit( TextIO.peek() ) )\n return TextIO.getDouble(); // The expression is made up of only a number.\n\n else if ( TextIO.peek() == '(' ) {\n TextIO.getAnyChar(); // Read the ')'.\n\n double leftOperand = expressionValue(); // Get the value of the left operand of this expression.\n char operator = getOperator(); // Get the operator.\n double rightOperand = expressionValue(); // Get the value of the right operand of this expression.\n\n // We expect a ')' at the end of this expression. If not, throw an error.\n TextIO.skipBlanks();\n\n if ( TextIO.peek() != ')' )\n throw new ParseError( \"Missing right hand parenthesis.\" );\n\n TextIO.getAnyChar(); // Read the ')'.\n\n // Calculate the value of the expression.\n switch ( operator ) {\n case '+': return leftOperand + rightOperand;\n case '-': return leftOperand - rightOperand;\n case '*': return leftOperand * rightOperand;\n case '/': return leftOperand / rightOperand;\n default: return Double.NaN;\n }\n }\n else\n throw new ParseError( \"Unknown character found: \" + TextIO.getAnyChar() );\n\n }", "public static Expression unwrap( Expression expr ) {\n\tType etype = ExpressionInternal.class.cast(expr).type() ;\n\n\tif (etype.equals( _t(\"java.lang.Boolean\")))\n\t return _call( expr, \"booleanValue\", _s(_boolean()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Byte\") ))\n\t return _call( expr, \"byteValue\", _s(_byte()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Character\") ))\n\t return _call( expr, \"charValue\", _s(_char()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Short\") ))\n\t return _call( expr, \"shortValue\", _s(_short()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Integer\") ))\n\t return _call( expr, \"intValue\", _s(_int()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Long\") ))\n\t return _call( expr, \"longValue\", _s(_long()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Float\") ))\n\t return _call( expr, \"floatValue\", _s(_float()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Double\") ))\n\t return _call( expr, \"doubleValue\", _s(_double()) ) ;\n\telse return expr ;\n }", "public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }", "public Type getExpressionType();", "public static Expression reduce(Expression expression) { throw Extensions.todo(); }", "public T evaluate(String expr) {\n List<Token> tokens = ExpressionParser.parse(expr);\n Expression expression = ExpressionBuilder.build(tokens);\n Visitor<T> visitor = new ExpressionVisitor<>();\n return visitor.visit(expression);\n }", "protected SqlExpression getFieldsSqlExpression() {\n\t\tSqlCollectionExpression fields = new SqlCollectionExpression();\n\t\t\n\t\tCollection variables = new HashSet(this.variableToDatabaseMapping.values());\t\t\n\t\tIterator i = variables.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tfields.add(new SqlStringExpression((String) i.next()));\n\t\t}\n\t\treturn fields;\n\t}", "List<Pair<String, Value>> fields();", "public static int calculator(String expression) {\n int res = 0;\n char[] arr = expression.toCharArray();\n Integer operand = null;\n char operator = '+';\n int[] index = new int[1];\n for (int i = 0; i < arr.length; i++) {\n index[0] = i;\n if (!Character.isDigit(arr[i])) {\n operator = arr[i];\n } else {\n operand = getOperand(arr, index);\n i = index[0] - 1;\n if (operator == '+') {\n res = res + operand;\n } else if (operator == '-') {\n res = res - operand;\n }\n }\n }\n return res;\n }", "private Expression addressOf (Expression expression) {\n return expression;\n }", "public Expression getExpression() {\r\n\t\treturn this.expression;\r\n\t}", "private static String[] getTwoExpr(String expr, String op) {\n\t\t\n\t\tString[] exprArr = new String[2]; \n\t\t\n\t\tint commaPos = SyntaxChecker.checkMatchedParansAndReturnNextDelim(expr, op.length() + 1, ',');\n\t\tString expr1 = expr.substring(op.length() + 1, commaPos);\n\t\texprArr[0] = expr1;\n\t\t\n\t\tint endPos = SyntaxChecker.checkMatchedParansAndReturnNextDelim(expr, commaPos + 1, ')');\n\t\tString expr2 = expr.substring(commaPos + 1, endPos);\n\t\texprArr[1] = expr2;\n\t\t\n\t\treturn exprArr;\n\t}", "public void visit (Object expr) {\n\t\t\t\n\t\t\toffset += 2;\n\t\t\t\n\t\t\tif (expr instanceof VariableReferenceExpr) {\n\t\t\t\tvisit ( (VariableReferenceExpr) expr);\n\t\t\t} else if (expr instanceof UnionExpr) {\n\t\t\t\tvisit ( (UnionExpr) expr);\n\t\t\t} else if ( expr instanceof UnaryExpr) {\n\t\t\t\tvisit ( (UnaryExpr) expr);\n\t\t\t} else if ( expr instanceof TextNodeStep ) {\n\t\t\t\tvisit ( (TextNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof RelationalExpr) {\n\t\t\t\tvisit ( (RelationalExpr) expr);\n\t\t\t} else if ( expr instanceof ProcessingInstructionNodeStep) {\n\t\t\t\tvisit ( (ProcessingInstructionNodeStep) expr) ;\n\t\t\t} else if ( expr instanceof Predicate) {\n\t\t\t\tvisit ( (Predicate) expr );\n\t\t\t} else if ( expr instanceof PathExpr) {\n\t\t\t\tvisit ( (PathExpr) expr) ;\n\t\t\t} else if ( expr instanceof NumberExpr) {\n\t\t\t\tvisit ( (NumberExpr) expr);\n\t\t\t} else if ( expr instanceof NameStep) {\n\t\t\t\tvisit ( (NameStep) expr);\n\t\t\t} else if ( expr instanceof MultiplicativeExpr) {\n\t\t\t\tvisit ( (MultiplicativeExpr) expr);\n\t\t\t} else if ( expr instanceof LogicalExpr) {\n\t\t\t\tvisit ( (LogicalExpr) expr);\n\t\t\t} else if ( expr instanceof LocationPath) {\n\t\t\t\tvisit ( (LocationPath) expr);\n\t\t\t} else if ( expr instanceof LiteralExpr) {\n\t\t\t\tvisit ( (LiteralExpr) expr);\n\t\t\t} else if ( expr instanceof FunctionCallExpr) {\n\t\t\t\tvisit ( (FunctionCallExpr) expr);\n\t\t\t} else if ( expr instanceof FilterExpr) {\n\t\t\t\tvisit ( (FilterExpr) expr);\n\t\t\t} else if ( expr instanceof EqualityExpr) {\n\t\t\t\tvisit ( (EqualityExpr) expr);\n\t\t\t} else if ( expr instanceof CommentNodeStep) {\n\t\t\t\tvisit ( (CommentNodeStep)expr);\n\t\t\t} else if ( expr instanceof AllNodeStep) {\n\t\t\t\tvisit ( (AllNodeStep) expr);\n\t\t\t} else if ( expr instanceof AdditiveExpr) {\n\t\t\t\tvisit ( (AdditiveExpr) expr);\n\t\t\t} else if (expr instanceof List) {\n\t\t\t\tvisitList((List)expr);\n\t\t\t} else if (expr != null) {\n\t\t\t\tout(\"Panic: Unknown expression kind {0} \",expr.getClass().getName()); //$NON-NLS-1$\n\t\t\t} else {\n\t\t\t\tout(\"null - unset\");\n\t\t\t}\n\t\t\t\n\t\t\toffset -= 2;\n\t\t}", "EvaluationResult evalExpression(ValueExp expr) { return evalExpression(expr, true); }", "@Override\n\tpublic void parse() throws Exception {\n\t\tLogger.log(\"Parsing expression: \" + getWords().toString(), 4);\n\t\tint wordsSize= getWords().size();\n\t\tString word;\n\t\tint lastSplitIndex = 0;\n\t\tFExpressionSide fExpSide;\n\t\tfExpSideList = new LinkedList<FExpressionSide>();\n\t\tfor(int i=0; i < wordsSize; i++){\n\t\t\tword = getWords().get(i);\n\t\t\t\n\t\t\tif(Operators.INFIX_OPS.contains(word)){\n\t\t\t\tfExpSide = new FExpressionSide(this);\n\t\t\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, i));\n\t\t\t\tfExpSide.setOperator(word);\n\t\t\t\t\n\t\t\t\tlastSplitIndex = i +1;\n\t\t\t\tfExpSideList.add(fExpSide);\n\t\t\t}\n\t\t}\n\t\tfExpSide = new FExpressionSide(this);\n\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, wordsSize));\n\t\tfExpSideList.add(fExpSide);\n\t\t\n\t\tfor(FExpressionSide f : fExpSideList){\n\t\t\tf.parse();\n\t\t}\n\t\t\n\t\t\n\t}", "String getField();", "public Expr getExpression()\n {\n Parser.validateExpr(expression, analysis);\n return expression;\n }", "public String getValue(String expression) {\n return getValue(expression, CastUtils.cast(Collections.emptyMap(), String.class, String.class));\n }", "public static int evaluateExpression(String expression) {\r\n // Create operandStack of ints to store operands\r\n Stack<Integer> operandStack = new Stack<>();\r\n \r\n // Create operatorStack of characters to store operators\r\n Stack<Character> operatorStack = new Stack<>();\r\n \r\n // Insert Blanks\r\n expression = insertBlanks(expression);\r\n \r\n // Extract operands and operators by splitting around blanks\r\n String[] tokens = expression.split(\" \");\r\n \r\n /* Phase 1: Scan tokens\r\n Enhanced for loop, puts every element of tokens in token each time\r\n Like writing token = tokens[i] every time\r\n */\r\n for (String token: tokens) { \r\n if(token.length() == 0) // It's a blank\r\n continue; // Go to the while loop\r\n else if (token.charAt(0) == '+' || token.charAt(0) == '-') {\r\n // process all +, -, *, / in the top of the operator stack\r\n while (!operatorStack.isEmpty() && // While stack isn't empty\r\n (operatorStack.peek() == '+' || // and has an operator on top\r\n operatorStack.peek() == '-' || // Like if you had (2 * 3) + 5 \r\n operatorStack.peek() == '*' || // Or if you had (2 - 3) + 5, do that last no matter what b/c +- is lowest priority\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n // After processing the all the previous operations, push the +- operator onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '*' || token.charAt(0) == '/') {\r\n // Proess all *, / in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '*' ||\r\n operatorStack.peek() == '/' ||\r\n operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the * or / onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if (token.charAt(0) == '^') {\r\n // Proess all ^ in the top of the operator stack\r\n while(!operatorStack.isEmpty() &&\r\n (operatorStack.peek() == '^')) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n //Push the ^ onto the stack\r\n operatorStack.push(token.charAt(0));\r\n }\r\n else if(token.trim().charAt(0) == '(') {\r\n operatorStack.push('(');\r\n } \r\n else if(token.trim().charAt(0) == ')') {\r\n while(operatorStack.peek() != '(') {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n operatorStack.pop(); // pop\r\n }\r\n else {\r\n operandStack.push(new Integer(token));\r\n }\r\n }\r\n // Phase two: process everything left over\r\n while (!operatorStack.isEmpty()) {\r\n processAnOperator(operandStack, operatorStack);\r\n }\r\n \r\n return operandStack.pop(); \r\n }", "public static Expression reduceAndCheck(Expression expression) { throw Extensions.todo(); }", "public void inputExpression(String expression, Matrix a, Matrix b) {\n\t\tif(a == null || b == null) return;\n\t\texpression = expression.replaceAll(\"\\\\s+\", \"\");\n\t\tfor(Character c : expression.trim().toCharArray())\n\t\t\tif(!(isOperator(c.toString()) || isNumber(c.toString()) \n\t\t\t\t|| isMatrix(c.toString()) || c == '(' || c == ')')) {\n\t\t\t\tthrow new IllegalArgumentException(INVALID_CHARACTER_MESSAGE);\n\t\t\t}\n\t\tif(characterCount(expression, '(') > characterCount(expression, ')'))\n\t\t\tthrow new IllegalArgumentException(\"Expecting ')'\");\n\t\telse if(characterCount(expression, '(') < characterCount(expression, ')'))\n\t\t\tthrow new IllegalArgumentException(\"Expecting '('\");\n\t\tthis.expression = expression;\n\t\tthis.a = a;\n\t\tthis.b = b;\n\t\t\n\t\tread( toReversePolishNotation( addSpaces(expression) ) );\n\t}", "public static Node parseExpression(String expression)\n throws OgnlException {\n try {\n OgnlParser parser = new OgnlParser(new StringReader(expression));\n return parser.topLevelExpression();\n } catch (ParseException e) {\n throw new ExpressionSyntaxException(expression, e);\n } catch (TokenMgrError e) {\n throw new ExpressionSyntaxException(expression, e);\n }\n }", "private Object eval(SimpleExpr expr) {\n Object res = eval(expr.getExpr().get(0));\n\n for (int i = 1; i < expr.getExpr().size(); i++) {\n Object res2 = eval(expr.getExpr().get(i));\n String opt = expr.getOpt().get(i - 1);\n\n if (\"+\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res + (Double) res2;\n } else if (res instanceof Double && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof Boolean && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof String) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof Double) {\n res = \"\" + res + res2;\n } else if (res instanceof String && res2 instanceof Boolean) {\n res = \"\" + res + res2;\n } else {\n throw new RaydenScriptException(\"Expression error: SimpleExpr error\");\n }\n } else if (\"-\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res - (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: SimpleExpr error\");\n }\n } else {\n throw new RaydenScriptException(\"Expression error: Invalid operator '\" + opt + \"'.\");\n }\n }\n\n return res;\n }", "@Override\n public String toString() {\n return \"Expression\";\n }", "private int parseExpression(Queue<String> exp) {\n int value = parseTerm(exp);\n while (exp.peek().equals(\"+\") || exp.peek().equals(\"-\")) {\n String op = exp.dequeue().getData().toString();\n if (op.equals(\"+\")) {\n value = value + parseTerm(exp);\n } else {\n value = value - parseTerm(exp);\n }\n }\n return value;\n }", "Expression getBindingExpression();", "public String getExpression() {\n return expression;\n }", "public String getExpression() {\n return expression;\n }", "public String getExpression() {\n return expression;\n }", "public interface Expression {\n\t\n\t/**\n\t * Evaluates an arithmetic expression.\n\t * \n\t * @return the value to which this expression evaluates\n\t */\n\tdouble eval();\n\t\n\t/**\n\t * Creates a String representation of an arithmetic expression.\n\t * \n\t * @return this expression in standard form, suitable for inclusion\n\t * in a program or text document (e.g., \"(2 - 4 * (7 + 2))\"). Note\n\t * that the string can have \"unnecessary\" parentheses as this (toy)\n\t * system does not know about operator precedence. \n\t */\n\tString toString();\n\n}", "public static void getInput() {\n\t\tSystem.out.print(\"Expression y=? \");\n\t\tScanner s = new Scanner(System.in);\n\t\texpression = s.nextLine();\n\t\texpression.toLowerCase();\n\t\tSystem.out.print(\"x? \");\n\t\tx = s.nextDouble();\n\t}" ]
[ "0.5662094", "0.56369483", "0.5527183", "0.5516667", "0.547292", "0.5463401", "0.54598814", "0.53793037", "0.5358582", "0.5281493", "0.52644324", "0.5259598", "0.5259598", "0.52481294", "0.52296615", "0.52296615", "0.52296615", "0.52296615", "0.5209905", "0.5171552", "0.51266724", "0.51250017", "0.51158965", "0.50909156", "0.50802886", "0.50604326", "0.5042342", "0.5041993", "0.5034034", "0.5021716", "0.49607003", "0.49362156", "0.4934615", "0.49220565", "0.49220565", "0.48934218", "0.48851264", "0.48824608", "0.48824608", "0.48518306", "0.48187652", "0.48162547", "0.48154205", "0.47956", "0.47824678", "0.47637644", "0.47536105", "0.4751097", "0.47357264", "0.47319686", "0.4720516", "0.47192556", "0.46927255", "0.4688081", "0.46816227", "0.46661252", "0.46388215", "0.46318263", "0.46254727", "0.45993757", "0.4589034", "0.45824632", "0.45801803", "0.45768243", "0.4556339", "0.45481914", "0.45462584", "0.454345", "0.45414716", "0.45396775", "0.45377263", "0.4537485", "0.45365354", "0.45289028", "0.45285037", "0.4524148", "0.45239615", "0.45173988", "0.45119342", "0.45034027", "0.45009103", "0.44870004", "0.44843596", "0.4483838", "0.44816303", "0.447904", "0.44787613", "0.44779867", "0.44729212", "0.4468053", "0.44619983", "0.44590056", "0.44586208", "0.44492713", "0.4448904", "0.44482157", "0.44414645", "0.44414645", "0.44414645", "0.4438868", "0.4437453" ]
0.0
-1
Split a matrix by grouping rows with the same value in a given column.
private void splitByColumn() throws IOException { List<Integer> columns = mWindow.getSelectedColumns(); if (columns == null || columns.size() == 0) { ModernMessageDialog.createDialog(mWindow, "You must select a column to split on.", MessageDialogType.WARNING); return; } SplitDialog dialog = new SplitDialog(mWindow); dialog.setVisible(true); if (dialog.getStatus() == ModernDialogStatus.CANCEL) { return; } boolean openMatrices = dialog.getLoad(); boolean createZip = dialog.getCreateZip(); DataFrame current = mWindow.getCurrentMatrix(); ListMultiMap<String, Integer> idMap = ArrayListMultiMap.create(); int c = columns.get(0); // first the list of ids for (int i = 0; i < current.getRows(); ++i) { idMap.get(current.getText(i, c)).add(i); } // Clean up the ids List<String> ids = CollectionUtils.sort(idMap.keySet()); List<String> cleanedIds = Stream.of(ids).map(new Function<String, String>() { @Override public String apply(String item) { return item.toLowerCase().replaceAll("\\.[a-z]+$", "").replaceAll("[^a-z0-9\\_\\-]", "_").replaceAll("_+", "_"); } }).toList(); List<DataFrame> matrices = new ArrayList<DataFrame>(ids.size()); for (String id : ids) { System.err.println("split id " + id); matrices.add(DataFrame.createAnnotatableMatrixFromRows(current, idMap.get(id))); } splitByGroup(cleanedIds, matrices, openMatrices, createZip); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static @NotNull Matrix splitMatrix(@NotNull Matrix matrix,\n int indexRowFrom, int indexRowTo, int indexColFrom, int indexColTo) {\n\n assert indexRowTo > indexRowFrom;\n assert indexColTo > indexColFrom;\n\n final int rows = indexRowTo - indexRowFrom;\n final int cols = indexColTo - indexColFrom;\n\n final int[][] result = new int[rows][cols];\n\n for (int i = 0; i < rows; i++) {\n System.arraycopy(matrix.getRow(indexRowFrom + i), indexColFrom, result[i], 0, cols);\n }\n\n return Matrix.fromArray(result);\n\n }", "public ArrayList<String> findDuplicates(String[] column) {\n\t\t\n\t\tHashSet<String> columnEntries = new HashSet<String>();\t\t\n\t\tArrayList<String> duplicates = new ArrayList<String>();\n\t\t\t\t\n\t\tfor(int row = 0; row < column.length; ++row) {\t\n\t\t\t\n\t\t\tif(!columnEntries.add(column[row]) && !column[row].isBlank()){\n\t\t\t\tSystem.out.println(\"Duplicate: \" + column[row]);\n\t\t\t\t\n\t\t\t\tduplicates.add(column[row]);\n\t\t\t}\n\t\t}\n\n\t\treturn duplicates;\n\t}", "private static int[] multRow(int[] column)\n\t{\n\t\tint[] result = new int[column.length];\n\t\t\n\t\tfor(int row=0; row<multCon.length; row++)\n\t\t\tfor(int col=0; col<multCon[row].length; col++)\n\t\t\t\tresult[row] ^= galoisMult(multCon[row][col],column[col]);\n\t\t\n\t\treturn result;\n\t}", "GroupBy groupBy(String... columns);", "public static List<HashSet<Index>> findSetsOfOnes(int[][] twoDArray){\n Matrix matrix = new Matrix(twoDArray);\n List<HashSet<Index>> filtered = new ArrayList<>();\n mapOfOnes = getMapOfOnes(matrix, twoDArray);\n\n // Iterate over the map of indices\n // For each index find it's connected component,\n // then changing it's value to 0 in order to avoid duplications\n // Using auxiliary function: findingConnectedComponent.\n for(Map.Entry<Index, Integer> entry : mapOfOnes.entrySet()) {\n\n if (entry.getValue() == 1) {\n mapOfOnes.put(entry.getKey(), 0);\n HashSet<Index> temp = new HashSet<>(findingConnectedComponent(twoDArray, entry.getKey()));\n filtered.add(temp);\n }\n }\n // Sorting the list\n return filtered.stream()\n .sorted(Comparator.comparing(HashSet::size)).collect(Collectors.toList());\n }", "public ArrayList<Integer> spiralOrder(int[][] matrix) {\n ArrayList<Integer> resultList = new ArrayList<Integer>();\n if (matrix.length == 0 || matrix[0].length == 0) {\n\t\t\treturn resultList;\n\t\t}\n if (matrix.length == 1) {\n\t\t\tfor (int i = 0; i < matrix[0].length; i++) {\n\t\t\t\tresultList.add(matrix[0][i]);\n\t\t\t}\n\t\t\treturn resultList;\n\t\t}\n if (matrix[0].length == 1) {\n\t\t\tfor (int j = 0; j < matrix.length; j++) {\n\t\t\t\tresultList.add(matrix[j][0]);\n\t\t\t}\n\t\t\treturn resultList;\n\t\t}\n int width = matrix[0].length;\n int height = matrix.length;\n int round = Math.min(width, height)/2;\n if (Math.min(width, height) % 2 == 1) {\n\t\t\tround++;\n\t\t}\n for (int i = 0; i < round; i++) {\n \tresultList.add(matrix[i][i]);\n \tif (width > 1) {\n\t\t\t\tfor (int j = 1; j < width; j++) {\n\t\t\t\t\tresultList.add(matrix[i][i+j]);\n\t\t\t\t}\n\t\t\t}\n \tif (height > 1) {\n\t\t\t\tfor (int j = 1; j < height; j++) {\n\t\t\t\t\tresultList.add(matrix[i + j][width - 1 + i]);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n \tif (width > 1) {\n\t\t\t\tfor (int j = width -2; j >= 0; j--) {\n\t\t\t\t\tresultList.add(matrix[height - 1 + i][i + j]);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbreak;\n\t\t\t}\n \tif (height > 1) {\n\t\t\t\tfor (int j = height - 2; j > 0; j--) {\n\t\t\t\t\tresultList.add(matrix[i + j][i]);\n\t\t\t\t}\n\t\t\t}\n \twidth -= 2;\n \theight -= 2;\n }\n return resultList;\n }", "static int[][] getColumns(int[] array){\n int[][] rezultArray = new int[n][n];\n int index = 0;\n for (int i = 0; i < n; i++){\n for (int j = i; j < n * n; j += n){\n rezultArray[i][index++] = array[j];\n }\n index = 0;\n }\n return rezultArray;\n }", "public ArrayList<Integer> spiralOrder(int[][] matrix) {\n ArrayList<Integer> result = new ArrayList<Integer>();\n\t if(matrix == null || matrix.length == 0){\n\t return result;\n\t }\n\t int rowcount = matrix.length;\n\t int colcount = matrix[0].length;\n\t \n\t int[] colStep = {1, 0, -1, 0};\n\t int[] rowStep = {0, 1, 0, -1};\n\t \n\t //TIP: Note the visited row and coloum count\n\t int visitedRow = 0; \n\t int visitedCol = 0;\n\t \n\t int row=0; \n\t int col=0;\n\t \n\t int direction = 0; //0 right, 1 down, 2 left, 3 up\n\t while(true){\n\t boolean colMove = (direction%2==0);\n\t int maxStep = colMove ? colcount - visitedCol : rowcount - visitedRow;\n\t if(maxStep==0){ //TIP: stop when maxStep is out\n\t break;\n\t }\n\t for(int i=0;i<maxStep;i++){\n\t result.add(matrix[row][col]); //TIP: always add the current one\n\t if(i==maxStep-1){ //TIP: most importantly, at the last one, change direction\n\t direction = (direction + 1) % 4;\n\t }\n \t row+=rowStep[direction]; //TIP: but always move forward\n \t col+=colStep[direction];\n\t }\n\t if(colMove){\n\t visitedRow ++;\n\t }else{\n\t visitedCol ++;\n\t }\n\t }\n\t return result;\n\t}", "public void deleteColumn(int column)\n throws JPARSECException {\n \tif (column >= n || column < 0)\n \t\tthrow new JPARSECException(\"invalid column.\");\n double newData[][] = new double[m][n-1];\n\n for (int i=0; i<m; i++)\n {\n \tint jindex = -1;\n for (int j=0; j<n; j++)\n {\n \tif (j != column) {\n \t\tjindex ++;\n \tnewData[i][jindex] = this.data[i][j];\n \t}\n }\n }\n Matrix m = new Matrix(newData);\n this.n = m.n;\n this.data = m.data;\n }", "void ompleBloc(int row, int col) {\r\n int num;\r\n for (int i = 0; i < SRN; i++) {\r\n for (int j = 0; j < SRN; j++) {\r\n do {\r\n num = generadorAleatoris(N);\r\n } while (!comprovaNumerosQuadrant(row, col, num));\r\n\r\n mat[row + i][col + j] = num;\r\n }\r\n }\r\n }", "private static int[] invMultRow(int[] column)\n\t{\n\t\tint[] result = new int[column.length];\n\t\t\n\t\tfor(int row=0; row<invMultCon.length; row++)\n\t\t\tfor(int col=0; col<invMultCon[row].length; col++)\n\t\t\t\tresult[row] ^= galoisMult(invMultCon[row][col],column[col]);\n\t\t\n\t\treturn result;\n\t}", "public int[] getSortedIndices(int column);", "private double[][] SubMatriz(int i,int j,double [][] matriz)\n\t\t{\n\t\t\tdouble [][]temp=new double[matriz.length-1][matriz.length-1];\n\t\t\tint count1 =0;\n\t\t\tint count2 =0;\n\t\t\tfor(int k =0; k<matriz.length;k++){\n\t\t\t\tif(k!=i){\n\t\t\t\t\tcount2 =0;\n\t\t\t\t\tfor(int l =0; l<matriz.length;l++){\n\t\t\t\t\t\tif(l!=j){\n\t\t\t\t\t\t\ttemp[count1][count2]= matriz[k][l];\n\t\t\t\t\t\t\tcount2++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcount1++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\treturn temp;\n\t\t}", "public static ArrayList<Integer> createFeatureHitList(double[] normalizedRow, HashMap<String, ArrayList<double[]>> table, int column) {\n ArrayList<Integer> hitList = new ArrayList<>();\n\n for(String category: table.keySet()) {\n for(double[] row: table.get(category)) {\n if(normalizedRow[column] == row[column]) {\n hitList.add(1);\n } else {\n hitList.add(0);\n }\n }\n }\n\n return hitList;\n }", "boolean comprovaColumna(int j, int num) {\r\n //System.out.println(\"comprovacolumna\"+j+\"Numero:\"+num);\r\n for (int i = 0; i < N; i++) {\r\n if (mat[i][j] == num) {\r\n \r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "public ArrayList<Integer> spiralOrder(int[][] matrix) {\n ArrayList<Integer> re = new ArrayList<Integer>();\n int m = matrix.length-1;\n if(m==-1) return re;\n int n = matrix[0].length-1; \n int i =0;\n while(m>=i && n>=i){\n spiral(matrix, i, i, m, n, re);\n m--;\n n--;\n i++;\n } \n \n return re; \n }", "public List<Integer> spiralOrder(int[][] matrix) {\n List<Integer> result = new ArrayList<>();\n if (matrix.length == 0) {\n return result;\n }\n int rowBegin = 0;\n int colBegin = 0;\n int rowEnd = matrix.length - 1;\n int colEnd = matrix[0].length - 1;\n while (rowBegin <= rowEnd && colBegin <= colEnd) {\n for (int j = colBegin; j <= colEnd; j++) {\n result.add(matrix[rowBegin][j]);\n }\n rowBegin++;\n for (int j = rowBegin; j <= rowEnd; j++) {\n result.add(matrix[j][colEnd]);\n }\n colEnd--;\n if (rowBegin <= rowEnd) {\n // Traverse Left\n for (int j = colEnd; j >= colBegin; j--) {\n result.add(matrix[rowEnd][j]);\n }\n }\n rowEnd--;\n\n if (colBegin <= colEnd) {\n // Traver Up\n for (int j = rowEnd; j >= rowBegin; j--) {\n result.add(matrix[j][colBegin]);\n }\n }\n colBegin++;\n }\n return result;\n\n }", "public List<SquareAbstract> getSquaresWithSameCol(SquareAbstract square){ //passed square won't be in the returned list\n List<SquareAbstract> squareList = new ArrayList<>();\n for(int i = 0; i<squares.size(); i++){\n for(int j = 0; j<squares.get(i).size(); j++){\n if(squares.get(i).get(j) != null)\n if(squares.get(i).get(j).getCol() == square.getCol() && squares.get(i).get(j) != square)\n squareList.add(squares.get(i).get(j));\n\n }\n }\n return squareList;\n }", "@Override\n public ArrayList<int[]> Split()\n {\n double hypervolume_best = -Double.MAX_VALUE;\n int hypervolume_best_i = 0;\n int hypervolume_best_j = 0;\n double hypervolume = 0d;\n\n for( int i = 0; i < Capacity_max + 1; i++)\n {\n for( int j = i + 1; j < Capacity_max + 1; j++)\n {\n hypervolume = 0d;\n double[] point1 = PointMatrix[ Items.get(i)[0] ][ Items.get(i)[1] ];\n double[] point2 = PointMatrix[ Items.get(j)[0] ][ Items.get(j)[1] ];\n\n for(int a = 0; a < Dimensions; a++)\n {\n if( point1[a] > point2[a] )\n hypervolume += Math.log10(point1[a] - point2[a]);\n if( point1[a] < point2[a] )\n hypervolume += Math.log10(point2[a] - point1[a]);\n }\n\n if( hypervolume_best < hypervolume)\n {\n hypervolume_best_i = i;\n hypervolume_best_j = j;\n hypervolume_best = hypervolume;\n }\n }\n }\n\n // Ready the split\n ArrayList<int[]> items_split = new ArrayList<>();\n items_split.addAll(Items);\n\n int point1_x = items_split.get(hypervolume_best_i)[0];\n int point1_y = items_split.get(hypervolume_best_i)[1];\n int point2_x = items_split.get(hypervolume_best_j)[0];\n int point2_y = items_split.get(hypervolume_best_j)[1];\n double[] point1 = PointMatrix[ point1_x ][ point1_y ];\n double[] point2 = PointMatrix[ point2_x ][ point2_y ];\n\n if(hypervolume_best_i > hypervolume_best_j)\n {\n items_split.remove(hypervolume_best_i);\n items_split.remove(hypervolume_best_j);\n }\n else\n {\n items_split.remove(hypervolume_best_j);\n items_split.remove(hypervolume_best_i);\n }\n\n // Create new box with point1\n BoundingBoxLeaf box1 = new BoundingBoxLeaf( PointMatrix, ParentBox, Tree, Depth, point1_x, point1_y );\n\n box1.SetBoxToFit(point1);\n box1.SetCoordsToFit( point1_x, point1_y);\n \n // Reset this box, and add point2\n BoundingBoxLeaf box2 = this;\n \n box2.SetBoxToFit(point2);\n box2.SetCoordsToFit( point2_x, point2_y);\n\n box2.Items.clear();\n box2.Items.add( new int[]{ point2_x, point2_y } );\n\n // Notify parent of split\n ParentBox.InsertBox_internal(box1);\n \n // Add items to the new boxes, up to min capacity\n int[] item_best;\n \n // box1\n while( box1.IsBelowMinCapacity() && !items_split.isEmpty() )\n {\n hypervolume_best = Double.MAX_VALUE;\n item_best = null;\n int index_best = -1;\n \n for(int i = 0; i < items_split.size(); i++ )\n {\n int[] item = items_split.get(i);\n double[] point = PointMatrix[ item[0] ][ item[1] ];\n \n hypervolume = box1.GetHyperVolume( point );\n \n if(hypervolume_best > hypervolume)\n {\n hypervolume_best = hypervolume;\n item_best = item; \n index_best = i;\n }\n \n }\n \n if(item_best != null)\n {\n box1.Items.add( new int[]{ item_best[0], item_best[1] } );\n box1.ExpandBoxToFit( PointMatrix[ item_best[0] ][ item_best[1] ] );\n box1.ExpandCoordsToFit( item_best[0], item_best[1]);\n \n items_split.remove(index_best);\n }\n }\n \n // box2\n while( box2.IsBelowMinCapacity() && !items_split.isEmpty() )\n {\n hypervolume_best = Double.MAX_VALUE;\n item_best = null;\n int index_best = -1;\n \n for(int i = 0; i < items_split.size(); i++ )\n {\n int[] item = items_split.get(i);\n double[] point = PointMatrix[ item[0] ][ item[1] ];\n hypervolume = box1.GetHyperVolume( point );\n \n if(hypervolume_best > hypervolume)\n {\n hypervolume_best = hypervolume;\n item_best = item; \n index_best = i;\n }\n \n }\n \n if(item_best != null)\n {\n box2.Items.add( new int[]{ item_best[0], item_best[1] } );\n box2.ExpandBoxToFit( PointMatrix[ item_best[0] ][ item_best[1] ] );\n box2.ExpandCoordsToFit( item_best[0], item_best[1]);\n \n items_split.remove(index_best);\n }\n }\n \n // return remaining to be reinserted into the tree\n return items_split; \n }", "public static int[][] generateChildMatrix(int[][] parent_matrix, int column, int player){\n int[][] child_copy = new int[ROW][COLUMN];\n //deep copy\n for(int i=0;i<ROW;i++){\n for(int j=0;j<COLUMN;j++){\n child_copy[i][j]=parent_matrix[i][j];\n }\n }\n for(int i=3; i>=0; i--){\n if(child_copy[i][column]==0){\n child_copy[i][column]=player;\n break;\n }\n }\n return child_copy;\n }", "public static void divideRow(float[][] matrix, int row, int dimension){\n\t\tfloat divideValue = matrix[row][row]; // coefficient to divide by\n\t\tif (divideValue == 1) { // don't need to divide out the row if the pivot is already 1\n\t\t\treturn;\n\t\t}\n\tSystem.out.print(\"Dividing row \" + (row+1) + \" by \" + Math.round(divideValue*1000)/1000.0d + \" will give us:\\n\\n\");\n\t\tfor (int i = row; i <= dimension; i++){\n\t\t\tmatrix[row][i] /= divideValue;}\n\t\tprintMatrix(matrix, dimension);\t\n\t}", "private static void BFSinfect(char[][] grid, int row, int column) {\n int rowLength = grid.length;\n int colLength = grid[0].length;\n Deque<Integer> stack = new LinkedList<>();\n stack.addLast(row * colLength + column);\n while (!stack.isEmpty()) {\n int value = stack.pollFirst();\n row = value / colLength;\n column = value % colLength;\n char val = grid[row][column];\n if (val == '1') {\n grid[row][column] = '0';\n if (row + 1 < rowLength) {\n stack.addLast((row + 1) * colLength + column);\n }\n if (column + 1 < colLength) {\n stack.addLast(row * colLength + column + 1);\n }\n if (row - 1 >= 0) {\n stack.addLast((row - 1) * colLength + column);\n }\n if (column - 1 >= 0) {\n stack.addLast(row * colLength + column - 1);\n }\n }\n }\n }", "public static int[][] split(int[] d, int n) {\n\t\tif(n <= 0 || n > d.length || d.length%n != 0) {\n\t\t\treturn new int[0][0];\n\t\t}\n\t\tint[][] res = new int[n][d.length/n];\n\t\tfor(int i = 0, a = 0,b = 0; i < d.length; i++,b++) {\n\t\t\tres[a][b] = d[i];\n\t\t\tif((i+1)%(d.length/n) == 0) {\n\t\t\t\ta++;\n\t\t\t\tb = -1;\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "private IndividualGroupList adaptativeSplitIntoGroups(List<Individual> individuals) \n {\n int individualCount = individuals.size();\n\n IndividualGroupList groups = new IndividualGroupList();\n IndividualGroup group = new IndividualGroup();\n int currentGroupSize = 8;\n \n for (int i = 0; i < individualCount; i++)\n {\n Individual individual = individuals.get(i);\n\n int individualGroupSize = getGroupSize(individual.getPositiveProbability());\n\n if (individualGroupSize != currentGroupSize || group.countIndividuals() == currentGroupSize)\n {\n groups.add(group);\n group = new IndividualGroup();\n currentGroupSize = individualGroupSize;\n }\n\n group.add(individual);\n }\n\n if (group.countIndividuals() > 0)\n groups.add(group);\n \n return groups;\n }", "public boolean verificaLinhaEColuna(int x, int y){\n for(int i = 0; i < 9; i++){\n if(matriz[x][y] == matriz[x][i] && y!=i){\n return false;\n }\n }\n\n for (int j = 0; j < 9; j++){\n if(matriz[x][y] == matriz[j][y] && x!=j){\n return false;\n }\n }\n\n return true;\n }", "private String[] splitListColumn(String column) {\n if (column.trim().equals(\"\")) {\n return EMPTY_STRING_ARRAY;\n } else {\n return column.split(INPUT_LIST_DELIM);\n }\n }", "private boolean columnOkay(int row, int column) throws Exception {\n ArrayList<Integer> clue = puzzle.getColumnClue(column);\n var filledGroups = searchBoard.getFilledGroups(column, TraversalType.COLUMN);\n if(filledGroups.size() > clue.size()) {\n return false;\n }\n int availableSquares = puzzle.getRows()-row-1;\n int tilesRequired;\n if(filledGroups.size() == 0) {\n tilesRequired = clue.size()-1;\n for(int s : clue) {\n tilesRequired += s;\n }\n } else {\n int index = filledGroups.size()-1;\n if(filledGroups.get(index) > clue.get(index)) {\n return false;\n }\n if(searchBoard.getState(row, column) == CellState.EMPTY && !filledGroups.get(index).equals(clue.get(index))) {\n return false;\n }\n tilesRequired = clue.get(index)-filledGroups.get(index);\n tilesRequired += clue.size()-filledGroups.size();\n if(searchBoard.getState(row, column) == CellState.EMPTY) {\n --tilesRequired;\n }\n for(int i = index+1; i < clue.size(); ++i) {\n tilesRequired += clue.get(i);\n }\n }\n return availableSquares >= tilesRequired;\n }", "public boolean splitArraySameAverage(int[] A) {\n\t\tArrays.sort(A);\n int sum = 0;\n for (int a : A) sum += a;\n for (int i = 1; i <= A.length / 2; i++) {\n \tif ((sum * i) % A.length == 0 \n \t\t\t&& existsSubset(A, (sum * i) / A.length, i, 0)) return true;\n }\n return false;\n }", "public static int[][] horizontalSums(int[][] a, int sumToFind){\r\n\t\tint [][]b = new int[a.length][a[0].length] ;\r\n\t\tfor (int r=0;r<a.length;r++) {\r\n\t\t\tfor(int c=0;c<a[0].length;c++){\r\n\t\t\tint sum=0;\r\n\t\t\t//int temp=0;\r\n\t\t\tint temp;\r\n\t\t\t\r\n\t\t\t//int column=0;\r\n\t\t\tfor (temp=c; temp<a[r].length && sum!=sumToFind;temp++){\r\n\t\t\t\tsum=sum+a[r][temp] ; \r\n\t\t\t}\r\n\t\t\tif(sum==sumToFind){\r\n\t\t\t\tfor (int i=c; i<temp;i++) {\r\n\t\t\t\t\tb[r][i]=a[r][i] ;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t}\r\n\t\treturn b ;\r\n\t}", "public static void split(int[][] P, int[][] C, int iB, int jB)\n {\n for(int i1 = 0, i2 = iB; i1 < C.length; i1++, i2++)\n for(int j1 = 0, j2 = jB; j1 < C.length; j1++, j2++)\n C[i1][j1] = P[i2][j2];\n }", "private static ArrayList<ArrayList<Integer>> transposeMatrix(ArrayList<ArrayList<Integer>> matrix){\r\n\t\tint numRows = matrix.size();\r\n\t\tint numCols = matrix.get(0).size();\r\n\t\tArrayList<ArrayList<Integer>> newMat = new ArrayList<ArrayList<Integer>>();\r\n\t\t//Put this in second for-loop to not have to loop twice?\r\n\t\tfor(int i = 0; i < numCols; i++) newMat.add(new ArrayList<Integer>());\r\n\t\tfor(int i = 0; i < numRows; i++){\r\n\t\t\tfor (int j = 0; j < numCols; j++){\r\n\t\t\t\tnewMat.get(j).add(matrix.get(i).get(j));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn newMat;\r\n\t}", "private int[][] subMatrix(int[][] matrix, ArrayList<Integer> indexes) {\n ArrayList<Integer> list = new ArrayList<>();\n int[][] result = new int[matrix.length - indexes.size()][matrix.length - indexes.size()];\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n if (!(indexes.contains(i) || indexes.contains(j))) {\n list.add(matrix[i][j]);\n }\n }\n }\n for (int i = 0; i < matrix.length - indexes.size(); i++) {\n for (int j = 0; j < matrix[i].length - indexes.size(); j++) {\n result[i][j] = list.get(j + (matrix.length - indexes.size()) * i);\n }\n }\n return result;\n }", "public GroupBy column(final String column) {\r\n\t\tcolumns.add(column);\r\n\t\treturn this;\r\n\t}", "public double[] getColumnPackedCopy() {\n double[] vals = new double[m*n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n vals[i+j*m] = data[i][j];\n }\n }\n return vals;\n }", "@NonNull\n Collection<TObj> getColumnItems(int column) {\n Collection<TObj> result = new LinkedList<>();\n for (int count = mData.size(), i = 0; i < count; i++) {\n int key = mData.keyAt(i);\n TObj columnObj = mData.get(key).get(column);\n if (columnObj != null) {\n result.add(columnObj);\n }\n\n }\n return result;\n }", "private double[][] convertArrayToMatrix(ArrayList<String> data, int row, int column) {\n int ct = 0;\n double[][] mat = new double[row][column];\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < column; j++) {\n mat[i][j] = Double.parseDouble(data.get(ct));\n ct++;\n }\n }\n /*for (String s : data) {\n mat[i][j] = Double.parseDouble(s);\n i++;\n if (i == row) {\n i = 0;\n j++;\n }\n if (i == row && j == column) {\n break;\n }\n }*/\n return mat;\n }", "public static PredicateSplit splitPredicate(ScalarOperator predicate) {\n if (predicate == null) {\n return PredicateSplit.of(null, null, null);\n }\n List<ScalarOperator> rangePredicates = Lists.newArrayList();\n RangeExtractor extractor = new RangeExtractor();\n Map<ColumnRefOperator, TreeRangeSet<ConstantOperator>> rangeSet =\n predicate.accept(extractor, new RangeExtractorContext());\n if (rangeSet != null) {\n rangeSet.forEach((column, range) -> rangePredicates.add(rangeSetToExpr(range, column)));\n } else if (extractor.columnEqualityPredicates.isEmpty() && extractor.residualPredicates.isEmpty()) {\n extractor.residualPredicates.add(predicate);\n }\n return PredicateSplit.of(Utils.compoundAnd(extractor.columnEqualityPredicates), Utils.compoundAnd(rangePredicates),\n Utils.compoundAnd(extractor.residualPredicates));\n }", "public VirtualDataSet[] partitionByNominallAttribute(int attributeIndex) {\n\t\t// WRITE YOUR CODE HERE!\n\t\tString [] category = source.getUniqueAttributeValues(attributeIndex); \t\t\t\t\t\t//find unique element to split \n\t\tVirtualDataSet [] partitions = new VirtualDataSet[category.length ]; \t\t\t\t\t\t// determine number of split path \n\t\tAttribute [] subset = new Attribute[source.numAttributes-1]; \n\n\t\tfor(int i =0; i<attributeIndex; i++){\n subset[i] = source.getAttribute(i); \t\t\t\t\t\t\t\t\t\t\t\t\t// create a subset to eliminate the split attribute\n } \n for(int i = attributeIndex+1; i<source.numAttributes; i++){\n subset[i-1] = source.getAttribute(i);\n }\n\n\t\tfor(int i = 0; i < partitions.length;i++){ \n\t\t\tLinkedList<Integer> rows = new LinkedList<Integer> (); \t\t\t\t\t\t\t\t\t// using linkedlist to do collection of split rows \n\t\t\tint count = 0; \n\t\t\tfor(int j = 0; j < source.numRows; j++){ \n\t\t\t\tif(category[i].equals(source.getValueAt(j, attributeIndex))){\n\t\t\t\t\trows.add(j); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add rows that correspond with the current attribute of spliting \n\t\t\t\t\tcount++; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// determine the size of partition rows array \n\t\t\t\t}\n\t\t\t}\n\t\t\tint[] partitionRows = new int[count]; \n\t\t\tfor(int k = 0; k < count; k++){\n\t\t\t\tpartitionRows[k] = rows.poll(); \t\t\t\t\t\t\t\t\t\t\t\t\t// transform from linkedlist to array \n\t\t\t}\n\n\t\t\tpartitions[i] = new VirtualDataSet(source,partitionRows,subset); \t\t\t\t\t\t// send partition to VirtualDataSet constructor \n\n\t\t}\n\t\treturn partitions;\n\n\t\t// for each partition we need 1. orginal rows index[] 2. unique attribute \n\t\t// Where to split \n\t\t// for each path, i have to know the original position of row (1 partition at time)\n\t\t// I need to know rest attribute value and record the unique (this need to be recaculate)\n\t}", "public void split(int[] points, Object[] pieces)\n {\n int point0, point1;\n point0 = 0; point1 = points[0];\n for(int x=0;x<pieces.length;x++)\n {\n pieces[x] = new boolean[point1-point0];\n System.arraycopy(genome,point0,pieces[x],0,point1-point0);\n point0 = point1;\n if (x >=pieces.length-2)\n point1 = genome.length;\n else point1 = points[x+1];\n }\n }", "public static int[] findDiagonalOrder(int[][] matrix){\n if( matrix == null || matrix.length == 0)\n return new int[0];\n int i = 0;\n int j =0;\n int k = 0;\n int size = matrix.length * matrix[0].length;\n int[] result = new int[size];\n boolean moveUp =true;\n while(k< size){\n\n if(moveUp){\n for(;i >=0 && j<= matrix[0].length-1;i--, j++){\n result[k] = matrix[i][j];\n k++;\n }\n // while moving up there are two conditions\n// 1. only row moves beyod 0 th row and column is in range (check for both row and column)\n //2. both row and column moves out ( check for column only)\n //case 1\n if(i<0 && j <= matrix[0].length-1){\n i = 0; // reset row to 0 and move down\n moveUp = !moveUp;\n }\n //case 2\n if(j == matrix[0].length){\n i = i+2; // reset row\n j--; // reduce column and move down\n moveUp = !moveUp;\n }\n\n }\n else\n {\n // moving down increment row and decrement column\n for(;j>=0 && i <= matrix.length - 1; i++, j-- ){\n result[k] = matrix[i][j];\n k++;\n }\n // while moving down there are two cases\n // 1. column goes out but rows in order (we need to check both)\n // 2. both column and row goes out (we can only have row check)\n if(j < 0 && i<= matrix.length-1){\n j = 0;\n moveUp = !moveUp;\n }\n if( i == matrix.length){\n j = j+2;\n i--;\n moveUp = !moveUp;\n }\n\n }\n\n\n }\n return result;\n }", "private static int[][] rotateMartix(int[][] matrix) {\n for(int i=0;i<matrix.length;i++) {\n for(int j=i;j< matrix.length;j++) {\n int tmp=matrix[i][j];\n matrix[i][j]=matrix[j][i];\n matrix[j][i]=tmp;\n }\n }\n //swap columns\n for(int i=0;i<matrix.length;i++){\n int low = 0;\n int high = matrix.length-1;\n\n while(low < high)\n {\n int temp = matrix[i][low];\n matrix[i][low] = matrix[i][high];\n matrix[i][high] = temp;\n\n low++;\n high--;\n }\n }\n return matrix;\n }", "GroupByColumnFull createGroupByColumnFull();", "public static byte[][] split(final byte[] bytes, final int nbSplit) {\n Objects.requireNonNull(bytes);\n if (nbSplit < 1)\n throw new IllegalArgumentException(\"The number of split must be greater than 0!\");\n final int length = bytes.length;\n final float bytesPerChunkRatio = (float) length / nbSplit;\n if (bytesPerChunkRatio < 1.0f) {\n throw new IllegalArgumentException(\"Cannot split a byte, either your data is too small or your number of split too big!\");\n }\n final int bytesPerChunk = (int) Math.floor(bytesPerChunkRatio);\n final byte[] copy = bytes.clone();\n final byte[][] chunks = new byte[nbSplit][];\n for (int i = 0; i < nbSplit; ++i) {\n final int beginPos = Math.toIntExact(bytesPerChunk * i);\n final byte[] chunkBytes;\n if (i == (nbSplit - 1)) {\n // copy to the end of the array in case dataLength divided by nbSplit isn't an integer\n chunkBytes = Arrays.copyOfRange(copy, beginPos, copy.length);\n } else {\n chunkBytes = Arrays.copyOfRange(copy, beginPos, beginPos + bytesPerChunk);\n }\n chunks[i] = chunkBytes;\n }\n return (chunks);\n }", "public int[][] toCloneMatrix(String[] array, int length){\n\t\tint[][] matrix = new int[length][4];\n\t\tfor(int i = 0; i < length; i++){\t\t\n\t\t\tfor(int j = 0; j < 6; j++){\t\n\t\t\t\tif(j == 0){\n\t\t\t\t\tmatrix[i][j] = Integer.valueOf(toWord(array[i])[0]); //matrix[i][0] = array[i][0] CLONE ID\n\t\t\t\t}\n\t\t\t\telse if(j == 1){\n\t\t\t\t\tString temp = toWord(array[i])[1];\n\t\t\t\t\tString[] tempArray = temp.split(\"\\\\.\");\n\t\t\t\t\tmatrix[i][j] = Integer.valueOf(tempArray[0]); //matrix[i][1] = array[i][1] FILE ID\n\t\t\t\t}\n\t\t\t\telse if(j == 2){\n\t\t\t\t\tString temp = toWord(array[i])[1];\n\t\t\t\t\tString[] tempArray = temp.split(\"\\\\.\");\n\t\t\t\t\ttemp = tempArray[1]; //bg-end\n\t\t\t\t\ttempArray = temp.split(\"\\\\-\");\n\t\t\t\t\tmatrix[i][j] = Integer.valueOf(tempArray[0]); //matrix[i][2] = array[i][2] SL\n\t\t\t\t}\n\t\t\t\telse if(j == 3){\n\t\t\t\t\tString temp = toWord(array[i])[1];\n\t\t\t\t\tString[] tempArray = temp.split(\"\\\\.\");\n\t\t\t\t\ttemp = tempArray[1]; //bg-end\n\t\t\t\t\ttempArray = temp.split(\"\\\\-\");\n\t\t\t\t\tmatrix[i][j] = Integer.valueOf(tempArray[1]); //matrix[i][3] = array[i][3] EL\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn matrix;\n\t}", "MapBuilder<K,V> split(long split);", "List<Integer> spiralOrderWalk(int[][] matrix) {\n List<Integer> result = new LinkedList<Integer>();\n int rows = matrix.length;\n if (rows == 0) {\n return result;\n }\n int cols = matrix[0].length;\n int[] dc = new int[] { 1, 0, -1, 0 };\n int[] dr = new int[] { 0, 1, 0, -1 };\n boolean[][] visited = new boolean[rows][cols];\n int dir = 0;\n int r = 0;\n int c = 0;\n while (isInside(r, c, rows, cols) && !visited[r][c]) {\n visited[r][c] = true;\n result.add(matrix[r][c]);\n int nr = r + dr[dir];\n int nc = c + dc[dir];\n if (isInside(nr, nc, rows, cols) && !visited[nr][nc]) {\n r = nr;\n c = nc;\n } else {\n dir = (dir + 1) % 4;\n r += dr[dir];\n c += dc[dir];\n }\n }\n return result;\n }", "private double[] getNeighbors(double[] row) {\n\n double[] neighbors = {0};\n return neighbors;\n }", "public ArrayList<ArrayList<Integer>> sequenceOfGroups(){\n\t\tArrayList<ArrayList<Integer>> tempResult = new ArrayList<ArrayList<Integer>>();\n\t\tArrayList<ArrayList<Integer>> finalResult = new ArrayList<ArrayList<Integer>>();\n\t\ttempResult.add(new ArrayList<Integer>());\n\t\tfor(int i=1;i<=payload.getnumber_of_such_that_predicates();i++) {\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tlist.add(0);\n\t\t\tString str=payload.getsuch_that_predicates().get(i);\n\t\t\tfor(int j=1;j<=payload.getnumber_of_such_that_predicates(); j++) {\n\t\t\t\tif(i!=j && (str.contains(j+\".\") || str.contains(j+\"_\"))) list.add(j);\n\t\t\t}\n\t\t\ttempResult.add(list);\n\t\t}\n\t\t\n\t\tfor(int k=0; k<=payload.getnumber_of_such_that_predicates(); k++) {\n\t\t\t\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int i=0;i<=payload.getnumber_of_such_that_predicates();i++) {\n\t\t\t\tif(tempResult.get(i)!=null && tempResult.get(i).size()==0) {\n\t\t\t\t\ttempResult.set(i,null);\n\t\t\t\t\tlist.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(list.size()==0) break;\n\t\t\tfinalResult.add(list);\n\t\t\tfor(int i=0;i<=payload.getnumber_of_such_that_predicates();i++) {\n\t\t\t\tif(tempResult.get(i)==null) continue;\n\t\t\t\tfor(int j=0; j <list.size(); j++) {\n\t\t\t\t\ttempResult.get(i).remove(Integer.valueOf(list.get(j)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn finalResult;\n\t}", "public boolean isGroupRow (int row)\n\t{\n\t\treturn m_data.isGroupRow(row);\n\t}", "public static int[][] sortRowWise(int m[][]) {\n for (int i = 0; i < m.length; i++) {\n\n // loop for column of matrix\n for (int j = 0; j < m[i].length; j++) {\n\n // loop for comparison and swapping\n for (int k = 0; k < m[i].length - j - 1; k++) {\n if (m[i][k] > m[i][k + 1]) {\n\n // swapping of elements\n int t = m[i][k];\n m[i][k] = m[i][k + 1];\n m[i][k + 1] = t;\n }\n }\n }\n }\n\n // printing the sorted matrix\n for (int i = 0; i < m.length; i++) {\n for (int j = 0; j < m[i].length; j++)\n System.out.print(m[i][j] + \" \");\n System.out.println();\n }\n\n return m;\n }", "public int[][] removeOne(int[][] matrix, int x, int y) {\n while(x < matrix.length){\n if(matrix[x][y] == 1)\n matrix[x][y] = 0;\n x++;\n }\n return matrix;\n }", "private void reduceMatrix( final double[][] matrix )\n\t{\n\n\t\tfor ( int i = 0; i < matrix.length; i++ )\n\t\t{\n\n\t\t\t// find the min value in the row\n\t\t\tdouble minValInRow = Double.MAX_VALUE;\n\t\t\tfor ( int j = 0; j < matrix[ i ].length; j++ )\n\t\t\t{\n\t\t\t\tif ( minValInRow > matrix[ i ][ j ] )\n\t\t\t\t{\n\t\t\t\t\tminValInRow = matrix[ i ][ j ];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// subtract it from all values in the row\n\t\t\tfor ( int j = 0; j < matrix[ i ].length; j++ )\n\t\t\t{\n\t\t\t\tmatrix[ i ][ j ] -= minValInRow;\n\t\t\t}\n\t\t}\n\n\t\tfor ( int i = 0; i < matrix[ 0 ].length; i++ )\n\t\t{\n\t\t\tdouble minValInCol = Double.MAX_VALUE;\n\t\t\tfor ( int j = 0; j < matrix.length; j++ )\n\t\t\t{\n\t\t\t\tif ( minValInCol > matrix[ j ][ i ] )\n\t\t\t\t{\n\t\t\t\t\tminValInCol = matrix[ j ][ i ];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor ( int j = 0; j < matrix.length; j++ )\n\t\t\t{\n\t\t\t\tmatrix[ j ][ i ] -= minValInCol;\n\t\t\t}\n\n\t\t}\n\n\t}", "public static void blockCells(int [][] board, int row, int column){\n\t\tfor (int k=0; k<8; k++) //rows+columns\n\t\t{\n\t\t\t//if (k != row && k != column) \n\t\t\t{\n\t\t\t\tboard [row][k] = 1;\n\t\t\t\tboard [k][column] = 1;\t\t\t\n\t\t\t}\n\t\t}\n\t\tfor (int m=1; m<(8-row)&&m<(8-column); m++) //diagonal\n\t\t{\n\t\t\tboard [row+m][column+m] = 1;\n\t\t}\n\t\tfor (int m=1; m<=row&&m<=column; m++) //diagonal again\n\t\t{\n\t\t\tboard [row-m][column-m] = 1;\n\t\t}\n\t\tfor (int m=1; m<(8-row)&&m<=column; m++) //diagonal again\n\t\t{\n\t\t\tboard [row+m][column-m] = 1;\n\t\t}\n\t\tfor (int m=1; m<=row&&m<(8-column); m++) //diagonal yet again\n\t\t{\n\t\t\tboard [row-m][column+m] = 1;\n\t\t}\n\t\t\tboard [row][column] = 2;\n\t}", "ByteBuffer[] splitByteArray(byte[] b){\n\n int step = b.length / N;\n\n ByteBuffer[] bb = new ByteBuffer[N];\n\n for (int i = 0; i < bb.length; ++i) {\n bb[i] = ByteBuffer.allocate(step);\n bb[i].put(b, i * step, step);\n bb[i].flip(); // needed to prepare ByteBuffer for channel write / get operations\n }\n\n return bb;\n }", "public Matrix getSubMatrix(int[] row, int[] col){\r\n \tint n = row.length;\r\n \tint m = col.length;\r\n \tMatrix subMatrix = new Matrix(n, m);\r\n \tdouble[][] sarray = subMatrix.getArrayReference();\r\n \tfor(int i=0; i<n; i++){\r\n \t\tfor(int j=0; j<m; j++){\r\n \t\tsarray[i][j]= this.matrix[row[i]][col[j]];\r\n \t\t}\r\n \t}\r\n \treturn subMatrix;\r\n \t}", "public static void RepeatedElementsRow(int[][] array) {\n\n }", "public ArrayList<ArrayList<Integer>> subsetsWithDup(int[] num) {\n Arrays.sort(num);\n ArrayList<ArrayList<Integer>> ret = new ArrayList<ArrayList<Integer>>();\n ret.add(new ArrayList<Integer>());\n \n int start = 0;\n for(int i = 0; i < num.length; i++)\n {\n int size = ret.size();\n for(int j = start; j < size; j++)\n {\n ArrayList<Integer> sub = new ArrayList<Integer>(ret.get(j));\n sub.add(num[i]);\n ret.add(sub);\n }\n if(i < num.length - 1 && num[i + 1] == num[i])\n start = size;\n else\n start = 0;\n }\n \n return ret;\n }", "public static ArrayList<String> lessEqual(String tableName, String column, String value){\n\t\tArrayList<String> lessEqRows = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> columns = new ArrayList<ArrayList<String>>();\r\n\t\tint twoColumns = 0;\r\n\t\tfor (int i = 0; i < tables.size(); i++) {\r\n\t\t\tif (tables.get(i).getName().equals(tableName)) {\r\n\t\t\t\tcolumns = tables.get(i).datas;\r\n\t\t\t}\r\n\t\t}\r\n\t\tArrayList<String> column1 = new ArrayList<String>();\r\n\t\tArrayList<String> column2 = new ArrayList<String>();\r\n\t\tfor (int j = 0; j < columns.size(); j++) {\r\n\t\t\tif (value.equals(columns.get(j).get(0))) {\r\n\t\t\t\tcolumn2 = columns.get(j);\r\n\t\t\t\ttwoColumns = 1;\r\n\t\t\t}\r\n\t\t\tif (column.equals(columns.get(j).get(0))) {\r\n\t\t\t\tcolumn1 = columns.get(j);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (twoColumns == 1) {\r\n\t\t\tfor (int k = 2; k < column1.size(); k++) {\r\n\t\t\t\tif (Integer.parseInt(column1.get(k)) <= Integer.parseInt(column2.get(k))) {\r\n\t\t\t\t\tlessEqRows.add(String.valueOf(k));\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor (int k = 2; k < column1.size(); k++) {\r\n\t\t\t\tif (Integer.parseInt(column1.get(k)) <= Integer.parseInt(value)) {\r\n\t\t\t\t\tlessEqRows.add(String.valueOf(k));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lessEqRows;\r\n\t}", "private boolean rowOkay(int row, int column) throws Exception {\n var clue = puzzle.getRowClue(row);\n var filledGroups = searchBoard.getFilledGroups(row, TraversalType.ROW);\n if(filledGroups.size() > clue.size()) {\n return false;\n }\n int availableSquares = puzzle.getColumns()-column-1;\n int tilesRequired;\n if(filledGroups.size() == 0) {\n tilesRequired = clue.size()-1;\n for(int s : clue) {\n tilesRequired += s;\n }\n } else {\n int index = filledGroups.size()-1;\n for(int i = 0; i < index; ++i) {\n if(!filledGroups.get(i).equals(clue.get(i))) {\n return false;\n }\n }\n if(filledGroups.get(index) > clue.get(index)) {\n return false;\n }\n if(searchBoard.getState(row, column) == CellState.EMPTY && !filledGroups.get(index).equals(clue.get(index))) {\n return false;\n }\n tilesRequired = clue.get(index)-filledGroups.get(index);\n tilesRequired += clue.size()-filledGroups.size();\n if(searchBoard.getState(row, column) == CellState.EMPTY) {\n --tilesRequired;\n }\n for(int i = index+1; i < clue.size(); ++i) {\n tilesRequired += clue.get(i);\n }\n }\n return availableSquares >= tilesRequired;\n }", "public static Mat[] split(Mat m, int size) {\n Mat cArr[] = new Mat[3];\n Mat c1 = new Mat(), c2 = new Mat(), c3 = new Mat();\n Mat c1TempDest = new Mat(),c1TempDest2 = new Mat(), c2TempDest = new Mat();\n Mat max=new Mat(size, size, CvType.CV_8UC1, new Scalar(255));\n List<Mat> lRgb = new ArrayList<Mat>(3);\n\n Core.split(m, lRgb);\n Mat R = lRgb.get(0);\n Mat G = lRgb.get(1);\n Mat B = lRgb.get(2);\n\n //C1\n Core.add(R,G,c1TempDest);\n Core.add(c1TempDest, B, c1TempDest2);\n Core.divide(c1TempDest2,new Scalar(3),c1);\n cArr[0] = c1;\n\n //C2\n Mat maxMinusB = new Mat(), maxMinusBPlusR= new Mat();\n Core.subtract(max,B,maxMinusB);\n Core.add(maxMinusB,R,maxMinusBPlusR);\n Core.divide(maxMinusBPlusR,new Scalar(2),c2);\n cArr[1] = c2;\n\n //C3\n Mat maxMinusG = new Mat() , maxMinusGTimes2 = new Mat(), maxMinusGTimes2PlusR = new Mat(), maxMinusGTimes2PlusRPlusB = new Mat();\n Core.subtract(max,G, maxMinusG);\n Core.multiply(maxMinusG, new Scalar(2), maxMinusGTimes2);\n Core.add(maxMinusGTimes2, R, maxMinusGTimes2PlusR);\n Core.add(maxMinusGTimes2PlusR, B, maxMinusGTimes2PlusRPlusB);\n Core.divide(maxMinusGTimes2PlusRPlusB, new Scalar(4), c3);\n cArr[2] = c3;\n return cArr;\n }", "public List<SquareAbstract> getSquaresWithSameRow(SquareAbstract square){\n List<SquareAbstract> squareList = new ArrayList<>(); //TODO this method could be non static in SquareAbstract, invoking a static one here\n for(int i = 0; i<squares.size(); i++){\n for(int j = 0; j<squares.get(i).size(); j++){\n if(squares.get(i).get(j) != null)\n if(squares.get(i).get(j).getRow() == square.getRow() && squares.get(i).get(j) != square)\n squareList.add(squares.get(i).get(j));\n\n }\n }\n return squareList;\n }", "private int[] columnSum(int[][] matrix) {\n int[] result = new int[matrix.length];\n for(int i = 0; i < matrix.length; i++) {\n result[i] = 0;\n for(int j = 0; j < matrix[i].length; j++) {\n result[i] += matrix[i][j];\n }\n }\n return result;\n }", "private static ArrayList<Integer> mergKsort(int[][] arr) {\n\t\tArrayList<Integer> rv = new ArrayList<>();\r\n\t\tPriorityQueue<Pair> pq= new PriorityQueue<>();\r\n\t\t\t\t\r\n\t\tfor (int i=0;i<arr.length;i++) {\r\n\t\tPair p = new Pair(i,0,arr[i][0]);\r\n\t\t\tpq.add(p);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\twhile(pq.size()>0) {\r\n\t\t\tPair p=pq.remove();\r\n\t\t\trv.add(p.val);\r\n\t\t\tp.di++;\r\n\t\t\tif(p.di<arr[p.li].length) {\r\n\t\t\t\tp.val=arr[p.li][p.di];\r\n\t\t\t\tpq.add(p);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn rv;\r\n\r\n\t}", "private int[] genKeys() {\n HashSet<Integer> set = new HashSet<Integer>();\n HashSet<int[]> next = new HashSet<int[]>();\n rowKeys = new HashMap<Integer, Integer>();\n int[] rowKeys2combo = new int[keySize];\n\n // 1st set starts with 0004, 0040, 0400, 4000\n int counter = 0;\n int key;\n for (int i = 0; i < rowSize; i++) {\n int[] temp = new int[rowSize];\n temp[i] = rowSize;\n key = rowCombo2Key(temp);\n rowKeys2combo[counter] = key;\n rowKeys.put(key, counter++);\n set.add(key);\n next.add(temp);\n }\n\n while (next.size() > 0) {\n HashSet<int[]> expand = next;\n next = new HashSet<int[]>();\n for (int[] combo : expand) {\n for (int i = 0; i < rowSize; i++) {\n if (combo[i] > 0) {\n for (int j = 0; j < rowSize; j++) {\n if (i != j) {\n int[] shift = new int[rowSize];\n System.arraycopy(combo, 0, shift, 0, rowSize);\n shift[i] = combo[i] - 1;\n shift[j] = combo[j] + 1;\n key = rowCombo2Key(shift);\n if (!set.contains(key)) {\n rowKeys2combo[counter] = key;\n rowKeys.put(key, counter++);\n set.add(key);\n next.add(shift);\n }\n }\n }\n }\n }\n }\n }\n\n final int splitIdx = counter;\n\n // 2nd set starts with 0003, 0030, 0300, 3000\n for (int i = 0; i < rowSize; i++) {\n int[] temp = new int[rowSize];\n temp[i] = rowSize - 1;\n key = rowCombo2Key(temp);\n rowKeys2combo[counter] = key;\n rowKeys.put(key, counter++);\n set.add(key);\n next.add(temp);\n }\n\n while (next.size() > 0) {\n HashSet<int[]> expand = next;\n next = new HashSet<int[]>();\n for (int[] combo : expand) {\n for (int i = 0; i < rowSize; i++) {\n if (combo[i] > 0) {\n for (int j = 0; j < rowSize; j++) {\n if (i != j) {\n int[] shift = new int[rowSize];\n System.arraycopy(combo, 0, shift, 0, rowSize);\n shift[i] = combo[i] - 1;\n shift[j] = combo[j] + 1;\n key = rowCombo2Key(shift);\n if (!set.contains(key)) {\n rowKeys2combo[counter] = key;\n rowKeys.put(key, counter++);\n set.add(key);\n next.add(shift);\n }\n }\n }\n }\n }\n }\n }\n return genKeyLink(splitIdx, rowKeys2combo);\n }", "@Test\n public void groupByExplodeColumn() throws Exception {\n String sql = \"desc verbose select k1, e1, count(*) from db1.tbl1 lateral view explode_split(k2, \\\",\\\") tmp as e1 \"\n + \"group by k1, e1;\";\n String explainString = UtFrameUtils.getSQLPlanOrErrorMsg(ctx, sql, true);\n // group by node with k1, e1\n Assert.assertTrue(explainString.contains(\"2:AGGREGATE (update finalize)\"));\n Assert.assertTrue(explainString.contains(\"group by: `k1`, `e1`\"));\n // table function node\n Assert.assertTrue(explainString.contains(\"1:TABLE FUNCTION NODE\"));\n Assert.assertTrue(explainString.contains(\"table function: explode_split(`k2`, ',')\"));\n Assert.assertTrue(explainString.contains(\"tuple ids: 0 1\"));\n Assert.assertTrue(explainString.contains(\"TupleDescriptor{id=1, tbl=tmp, byteSize=32, materialized=true}\"));\n Assert.assertTrue(explainString.contains(\"SlotDescriptor{id=1, col=e1, type=VARCHAR(*)}\"));\n // group by tuple\n Assert.assertTrue(explainString.contains(\"TupleDescriptor{id=2, tbl=null, byteSize=32, materialized=true}\"));\n }", "public void setGroup (int col)\n\t{\n\t\tlog.config( \"RModel.setGroup col=\" + col);\n\t\tif (col < 0 || col >= m_data.cols.size())\n\t\t\treturn;\n\t\tInteger ii = new Integer(col);\n\t\tif (!m_data.groups.contains(ii))\n\t\t\tm_data.groups.add(ii);\n\t}", "static ArrayList<Integer> getMajortiy(int arr[]){\n int num1=-1, num2=-1, count1=0, count2=0;\n for(int i:arr){\n if(i==num1) count1++;\n else if(i ==num2) count2++;\n else if(count1==0){\n num1=i;\n count1=1;\n }\n else if(count2==0){\n num2=i;\n count2=1;\n }\n else{\n count1--;\n count2--;\n }\n }\n count1=0; count2=0;\n for(int i:arr){\n if(i==num1) count1++;\n if(i==num2) count2++;\n }\n ArrayList<Integer>res= new ArrayList<>();\n if(count1>arr.length/3) res.add(num1);\n if(count2>arr.length/3) res.add(num2);\n return res;\n\n }", "private static int[][] crossFire(int[][] matrix, int hitRow, int hitCol, int hitWave) {\n for (int row = hitRow - hitWave; row <= hitRow + hitWave; row++)\n {\n if (isInMatrix(row, hitCol, matrix))\n {\n matrix[row][hitCol] = -1;\n }\n }\n\n // Mark destroyed part of the row\n for (int col = hitCol - hitWave; col <= hitCol + hitWave; col++)\n {\n if (isInMatrix(hitRow, col, matrix))\n {\n matrix[hitRow][col] = -1;\n }\n }\n\n // Remove destroyed cells\n for (int i = 0; i < matrix.length; i++)\n {\n // Remove destroyed cells if there is ones\n for (int j = 0; j < matrix[i].length; j++)\n {\n if (matrix[i][j] < 0)\n {\n matrix[i] = Arrays.stream(matrix[i]).filter(n -> n > 0).toArray();\n break;\n }\n }\n\n // Remove empty rows\n if (matrix[i].length < 1)\n {\n int[][] temp = new int[matrix.length-1][];\n int k=0;\n for (int j = 0; j < matrix.length; j++) {\n if (j!=i){\n temp[k++] = matrix[j];\n }\n }\n\n matrix = temp;\n i--;\n }\n }\n\n\n return matrix;\n\n }", "public AVLTree[] split(int x)\r\n\t {\r\n\t\t AVLTree[] splitedTrees = new AVLTree[2];\r\n\t\t splitedTrees[0] = new AVLTree();\r\n\t\t splitedTrees[1] = new AVLTree();\r\n\t\t if(!this.root.isRealNode()) \r\n\t\t\t return splitedTrees;\r\n\t\t \r\n\t\t IAVLNode nodeX = searchFor(this.root, x);\r\n\t\t splitedTrees = splitLoop(nodeX,splitedTrees);\r\n\t\t return splitedTrees;\r\n\t\t \r\n\t\t }", "public boolean isToeplitzMatrix(int[][] matrix) {\n \t\n \t//將i取出作為local variable,使能夠讀取當前行的下一行\n \t//例如當前讀第0行,使得能夠先讀到第1行\n \tint i=0;\n \tList<Integer> list = new ArrayList<>();\n \t\n \t//若矩陣長度<=1 則回傳true\n \tif(matrix.length <= 1)\n \t\treturn true;\n \t/*以行為主走訪\n \t * 走訪第n與n+1行*/\n \t\n \t//因為要讓內層第二個迴圈走訪到最後一行,故最外層走訪0~(列數-1)行\n \tfor(i=0 ; i<matrix[0].length-1 ; i++){\n \t\t//走訪每行的元素,並加到list中\n \t\tfor(int j=0 ; j<matrix.length ; j++){\n \t\t\tlist.add(matrix[j][i]);\n \t\t\t//System.out.println(matrix[j][i]);\n \t\t}\n \t\t//走訪i+1行的元素,並加到list中\n \t\tfor(int k=0 ; k<matrix.length ; k++){\n \t\t\tlist.add(matrix[k][i+1]);\n \t\t\t//System.out.println(matrix[k][i+1]);\n \t\t}\n \t\t\n \t\t/*以[1,2,3,4],[5,1,2,3],[9,5,1,2]為例\n \t\t * 我們以行為主走訪,可得知每次只需要比較前兩筆資料是否與下一行的後兩筆資料相符,就可以判斷是否符合題目要求\n \t\t * 因此將list內元素拿出來做比較,經過上面兩個迴圈的走訪後,第一次list內會有1,5,9,2,1,5這些元素\n \t\t * 只需比較上述矩陣的前兩筆資料是否與後兩筆相同(h+matrix.length+1)就可確認是否符合題目要求\n \t\t*/\n \t\tfor(int h=0 ; h<matrix.length-1 ;h++){\n \t\t\tif(list.get(h) != list.get(h+matrix.length+1)){\n \t\t\t//\tSystem.out.println(list.get(h));\n \t\t\t// System.out.println(list.get(h+matrix.length+1));\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\tlist.clear();\n \t}\n \treturn true;\n }", "public boolean removeK(int row, int col) {\n if (grid[row][col] != -1) {\n return false;\n } else {\n int count = 0;\n for (int i = 0; i < OPTIONS.length; i += 2) {\n int newRow = row + OPTIONS[i];\n int newCol = col + OPTIONS[i + 1];\n if (newRow >= 0 && newRow < rows && newCol >= 0 && newCol < cols) {\n if (grid[newRow][newCol] != -1) {\n grid[newRow][newCol]++;\n count++;\n }\n }\n }\n grid[row][col] = count;\n return true;\n }\n }", "private void setGroupNodeNotProcess(int row, int col) {\n\t\tfor(int i = 0; i <= row; i++) {\n\t\t\tfor(int j = 0; j < MAX_COL; j++) {\n\t\t\t\tif(i == row && j > col) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.inputs[i][j].setWalking(true);\n\t\t\t\t\t// System.out.print(this.inputs[i][j].getNumber() + \", \");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static List<Partition> partition(PointSet points, int m) {\n\t\tPartition A = new Partition();\n\t\tint nFeatures = points.dimension();\n\t\tif(m > points.size())\n\t\t\tthrow new RuntimeException(\"Not enough points to make \" + m + \" partitions\");\n\t\tfor(Point p : points) {\n\t\t\tA.add(p);\n\t\t}\n\t\t\n\t\tList<Partition> S = new ArrayList<>();\n\t\tS.add(A);\n\t\tcalculateDissimilarity(A, nFeatures);\n\t\tint i = 1;\n\t\twhile(i < m) {\n\t\t\tint j = 0;\n\t\t\tfor(int k = 1; k < S.size(); k++)\n\t\t\t\tif(S.get(k).dissimilarity > S.get(j).dissimilarity)\n\t\t\t\t\tj = k;\n\t\t\tPartition Aj = S.get(j);\n\t\t\tPartition Aj1 = new Partition();\n\t\t\tPartition Aj2 = new Partition();\n\t\t\t//partition\n\t\t\tfor(Point p : Aj) {\n\t\t\t\tif(p.feature(Aj.pj) <= Aj.apj + Aj.dissimilarity/2)\n\t\t\t\t\tAj1.add(p);\n\t\t\t\telse\n\t\t\t\t\tAj2.add(p);\n\t\t\t}\n\t\t\tcalculateDissimilarity(Aj1, nFeatures);\n\t\t\tcalculateDissimilarity(Aj2, nFeatures);\n\t\t\tS.remove(Aj);\n\t\t\tS.add(Aj1);\n\t\t\tS.add(Aj2);\n\t\t\ti++;\n\t\t}\n\t\treturn S;\n\t}", "public static List<List<Integer>> findMatrix(List<List<Integer>> a) {\n List<List<Integer>> res = new ArrayList<>();\n for (int i = 0; i < a.size(); i++) {\n List<Integer> rowi = a.get(i);\n List<Integer> temp = new ArrayList<>();\n int prev = 0;\n for (int j = 0; j < rowi.size(); j++) {\n if (i == 0) {\n int curr = rowi.get(j);\n temp.add(prev + curr);\n prev += curr;\n } else {\n int curr = rowi.get(j);\n int lastSum = res.get(i - 1).get(j);\n temp.add(prev + curr + lastSum);\n prev += curr;\n }\n }\n res.add(temp);\n }\n return res;\n }", "static Frame uniqueValuesBy(Frame fr, int columnIndex) {\n Vec vec0 = fr.vec(columnIndex);\n Vec v;\n if (vec0.isCategorical()) {\n v = Vec.makeSeq(0, (long) vec0.domain().length, true);\n v.setDomain(vec0.domain());\n DKV.put(v);\n } else {\n UniqTask t = new UniqTask().doAll(vec0);\n int nUniq = t._uniq.size();\n final AstGroup.G[] uniq = t._uniq.keySet().toArray(new AstGroup.G[nUniq]);\n v = Vec.makeZero(nUniq, vec0.get_type());\n new MRTask() {\n @Override\n public void map(Chunk c) {\n int start = (int) c.start();\n for (int i = 0; i < c._len; ++i) c.set(i, uniq[i + start]._gs[0]);\n }\n }.doAll(v);\n }\n return new Frame(v);\n }", "public static boolean rotateMatrix(int[][] matrix) {\n if (matrix.length == 0 || matrix.length != matrix[0].length) {\n return false;\n }\n int n = matrix.length;\n\n for (int layer = 0; layer < n / 2; layer++) {\n int first = layer;\n int last = n - 1 - layer;\n\n for (int i = first; i < last; i++) {\n int offset = i - first;\n int top = matrix[first][i]; //Save top\n\n //left -> top\n matrix[first][i] = matrix[last - offset][first];\n\n //bottom -> left\n matrix[last - offset][first] = matrix[last][last - offset];\n\n //right -> bottom\n matrix[last][last - offset] = matrix[i][last];\n\n //top -> right\n matrix[i][last] = top; //right <- saved top\n }\n }\n return true;\n }", "@Override\n\tpublic List<Cell> calcNeighbors(int row, int col) {\n\t\tList<Cell> neighborLocs = new ArrayList<>();\n\t\tint shift_constant = 1 - 2*((row+col) % 2);\n\t\tif(!includesDiagonals) {\n\t\t\tfor(int a = col - 1; a <= col + 1; a++) {\n\t\t\t\tif(a == col)\n\t\t\t\t\taddLocation(row + shift_constant,a,neighborLocs);\n\t\t\t\telse \n\t\t\t\t\taddLocation(row,a,neighborLocs);\n\t\t\t}\n\t\t\treturn neighborLocs;\n\t\t}\n\t\tfor(int b = col - 2; b <= col + 2; b++) {\n\t\t\tfor(int a = row; a != row + 2*shift_constant; a += shift_constant) {\n\t\t\t\tif(a == row && b == col)\n\t\t\t\t\tcontinue;\n\t\t\t\taddLocation(a,b,neighborLocs);\n\t\t\t}\n\t\t}\n\t\tfor(int b = col -1; b <= col + 1; b++) {\n\t\t\taddLocation(row - shift_constant,b,neighborLocs);\n\t\t}\n\t\treturn neighborLocs;\n\t}", "@Test\n\tpublic void testEliminationByColumn(){\n\t\tsetBoardUp();\n\t\tColumn col = new Column(board, 1);\n\t\tint[] toBeRemoved = {1, 3, 4};\n\t\tint[] fromCesll = {1, 2, 3, 5, 6, 8};\n\t\talgorithm.applyEliminationInColumn(col);\n\t\tboolean condition = true;\n\t\tfor(int i = 0; i < toBeRemoved.length; i++)\n\t\t\tfor(int j = 0; j < fromCesll.length; j++)\n\t\t\t\tcondition &= !col.cell[fromCesll[j]].possibilities.contains(toBeRemoved[i]);\t\t\n\t\tassertTrue(condition);\n\t}", "public MatrixArray minor(int col){\t\t\r\n\t\tint newN = this.N - 1;\r\n\t\tint[][] matrix = new int[newN][newN];\r\n\t\t\r\n\t\tint i2 = 0;\r\n\t\tfor(int i = 1; i < this.N; i++){\t\t\t\t\t\t\r\n\t\t\tint j2 = 0;\r\n\t\t\tfor (int j = 0; j < this.N; j++){\r\n\t\t\t\tif (j == col) continue;\t\t\t\t\r\n\t\t\t\tmatrix[i2][j2] = this.MA[i][j];\r\n\t\t\t\tj2++;\r\n\t\t\t}\r\n\t\t\ti2++;\r\n\t\t}\t\t\r\n\t\treturn new MatrixArray(matrix);\r\n\t}", "public void setGroup (String columnName)\n\t{\n\t\tsetGroup(getColumnIndex(columnName));\n\t}", "public static void checkPivot(float[][] matrix, int column, int dimension){\n\t\tif (matrix[column][column] != 0){\n\t\t\treturn;\n\t\t}\n\t\tfor (int i = column+1; i < dimension; i++){\n\t\t\tif (matrix[i][column] != 0){\n\t\t\t\trowSwap(matrix, column, i, dimension);\n\t\t\tSystem.out.print(\"Swapping rows \" + (column+1) + \" and \" + (i+1) + \" will give us:\\n\\n\"); \n\t\t\tprintMatrix(matrix, dimension);\n\t\t\treturn;}}\n\t\tSystem.out.print(\"no unique solution\"); // if we made it this far, we couldn't find a non-zero row to swap with so there is no solution\n\t\tSystem.exit(0);\n\t}", "ArrayList<ArrayList<Double>> indication(int column) {\r\n\t\tArrayList<ArrayList<Double>> result = new ArrayList<ArrayList<Double>>();\r\n\t\tresult.add(new ArrayList<Double>());\r\n\t\tresult.add(new ArrayList<Double>());\r\n\t\tfor (int i = 0; i < data.size(); ++i) {\r\n\t\t\tint truthCount = 0;\r\n\t\t\tdouble sumTrue = 0;\r\n\t\t\tdouble sumFalse = 0;\r\n\t\t\tfor (int j = 0; j < data.get(column).size(); ++j) {\r\n\t\t\t\tif (data.get(i).get(j)) {\r\n\t\t\t\t\t++truthCount;\r\n\t\t\t\t\tif (data.get(column).get(j)) {\r\n\t\t\t\t\t\tsumTrue += 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (data.get(column).get(j)) {\r\n\t\t\t\t\t\tsumFalse += 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tresult.get(0).add(sumTrue / truthCount);\r\n\t\t\tresult.get(1).add(sumFalse / (data.get(column).size() - truthCount));\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n public IndividualGroupList splitIndividualsIntoGroups(List<Individual> individuals) \n {\n sortByPositiveProbability(individuals);\n return adaptativeSplitIntoGroups(individuals);\n }", "void segregate0and1(int arr[], int size)\n {\n int left = 0;\n int right = size - 1;\n while(left < right){\n while(arr[left] !=1 && left< right){\n left ++;\n }\n while(arr[right] !=0 && left < right){\n right --;\n }\n if(left != right){\n int tmp = arr[left];\n arr[left] = arr[right];\n arr[right] = tmp;\n left ++;\n right -- ;\n }\n }\n }", "private boolean sameGroup(RowMetaInterface rowMeta, Object[] previous, Object[] rowData) throws KettleValueException\n\t{\n\t\treturn rowMeta.compare(previous, rowData, data.groupnrs)==0;\n\t}", "public static int[][] partitionArray(int[] arr, int size) {\n\t\tint size1 = 0;\n\t\tint sizeLast = size;\n\t\tif (arr.length % size == 0) {\n\t\t\tsize1 = arr.length / size;\n\t\t} else {\n\t\t\tsize1 = arr.length / size + 1;\n\t\t\tsizeLast = arr.length % size;\n\t\t}\n\t\tint[][] result = new int[size1][size];\n\t\tint[] res = null;\n\t\tfor (int j = 0; j < size1; j++) {\n\t\t\tif (j == size1 - 1) {\n\t\t\t\tres = new int[sizeLast];\n\t\t\t} else {\n\t\t\t\tres = new int[size];\n\t\t\t}\n\t\t\tfor (int i = j * size; i <= (j + 1) * size - 1; ++i) {\n\t\t\t\tif (i < arr.length) {\n\t\t\t\t\tres[(i - j * size)] = arr[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult[j] = res;\n\t\t}\n\t\treturn result;\n\t}", "public int splitArray(int[] nums, int m) {\n int n = nums.length;\n int[] prefixSum = new int[n + 1];\n \n for (int i = 0; i < n; i++) {\n prefixSum[i + 1] = prefixSum[i] + nums[i];\n }\n \n return getMinimumLargestSplitSum(prefixSum, 0, m);\n }", "protected ArrayList<ArrayList<String>> method1() {\n\n ArrayList<ArrayList<String>> arr = new ArrayList<ArrayList<String>>();\n ArrayList<String> n_clone = new ArrayList<>(Arrays.asList(input));\n\n // Create equal amount of containers as requested.\n for (int i=0;i<num;i++) {\n arr.add(new ArrayList<String>());\n }\n\n // Iterate through given Array while putting items\n // into the containers you just created.\n Iterator itor = n_clone.iterator();\n int count = 0;\n while (itor.hasNext()) {\n if (count < this.num) {\n arr.get(count).add((String)itor.next());\n count++;\n } else {\n count = 0;\n }\n }\n\n System.out.println(\"Paying no attention to order, the Array - \");\n printArrayList(new ArrayList<>(Arrays.asList(input)));\n System.out.println(\"divided into \" + this.num + \" sections is: \\n\");\n printMatrix(arr);\n\n return arr;\n }", "public VirtualDataSet[] partitionByNumericAttribute(int attributeIndex, int valueIndex) {\n\t\t// WRITE YOUR CODE HERE!\n\n\t\t if(attributes[attributeIndex].getType()==AttributeType.NOMINAL){ \t\t\t\t\t\t\t// avoid passing through nominal value to current method\n return null; \n }\n\t\t\tVirtualDataSet [] partitions = new VirtualDataSet[2]; \t\t\t\t\t\t\t\t\t// creates two split path \n\n\t\t\tdouble split = Double.parseDouble(getValueAt(valueIndex , attributeIndex));\t\t\t// determine the middle number in order to split \n\t\t\t\n\t\t\tLinkedList<Integer> rowsLess = new LinkedList<Integer> (); \t\t\t\t\t\t\t// using linkedlist to do collection of split rows that less than valueIndex value\n\t\t\t\n\t\t\tLinkedList<Integer> rowsMore = new LinkedList<Integer> ();\t\t\t\t\t\t\t\t// using linkedlist to do collection of split rows that less than valueIndex value\n\t\t\t\n\t\t\tint countLess = 0;\n\t\t\tint countMore = 0; \n\n\t\t\tString []arrayOfNums = attributes[attributeIndex].getValues();\n\n\t\t\tfor(int j = 0; j < source.numRows; j++){ \n\t\t\t\t\n\t\t\t\tif(Double.parseDouble(getValueAt(j,attributeIndex)) <= split){ \t\t\t\t// transform from string to integer in order to compare the number smaller than middle number\n\t\t\t\t\t\n\t\t\t\t\trowsLess.add(j);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add rows that correspond with the current attribute of spliting \n\t\t\t\t\tcountLess++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// determine the size of partition rows array \n\t\t\t\t}else if(Double.parseDouble(getValueAt(j,attributeIndex)) > split){\t\t\t// transform from string to integer in order to compare the number bigger than middle number\n\t\t\t\t\t\n\t\t\t\t\trowsMore.add(j); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add rows that correspond with the current attribute of spliting \n\t\t\t\t\tcountMore++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// determine the size of partition rows array \n\t\t\t\t}\n\t\t\t}\n\n\t\t\tint [] partitionRowsLess = new int [countLess]; \t\t\t\t\t\t\t\t\t\t// the collection of rows represents all number that smaller than middle number\n\t\t\tint [] partitionRowsMore = new int [countMore]; \t\t\t\t\t\t\t\t\t\t// the collection of rows represents all number that bigger than middle number\n\t\t\tfor(int k = 0; k < countLess; k++){\n\t\t\t\tpartitionRowsLess[k] = rowsLess.poll(); \t\t\t\t\t\t\t\t\t\t\t// transform from linkedlist to array \n\t\t\t}\n\t\t\tfor(int k = 0; k < countMore; k++){\n\t\t\t\tpartitionRowsMore[k] = rowsMore.poll(); \t\t\t\t\t\t\t\t\t\t\t// transform from linkedlist to array \n\t\t\t}\n\t\t\t\n\t\t\tpartitions[0] = new VirtualDataSet(source,partitionRowsLess, attributes); \t\t\t\t// send partition to VirtualDataSet constructor \n\t\t\tpartitions[1] = new VirtualDataSet(source,partitionRowsMore, attributes); \n\t\t\t\n\n\n\t\t\treturn partitions;\n\t\t\n\t}", "public static ArrayList<String> greaterEqual(String tableName, String column, String value){\n\t\tArrayList<String> greaterEqRows = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> columns = new ArrayList<ArrayList<String>>();\r\n\t\tint twoColumns = 0;\r\n\t\tfor (int i = 0; i < tables.size(); i++) {\r\n\t\t\tif (tables.get(i).getName().equals(tableName)) {\r\n\t\t\t\tcolumns = tables.get(i).datas;\r\n\t\t\t}\r\n\t\t}\r\n\t\tArrayList<String> column1 = new ArrayList<String>();\r\n\t\tArrayList<String> column2 = new ArrayList<String>();\r\n\t\tfor (int j = 0; j < columns.size(); j++) {\r\n\t\t\tif (value.equals(columns.get(j).get(0))) {\r\n\t\t\t\tcolumn2 = columns.get(j);\r\n\t\t\t\ttwoColumns = 1;\r\n\t\t\t}\r\n\t\t\tif (column.equals(columns.get(j).get(0))) {\r\n\t\t\t\tcolumn1 = columns.get(j);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (twoColumns == 1) {\r\n\t\t\tfor (int k = 2; k < column1.size(); k++) {\r\n\t\t\t\tif (Integer.parseInt(column1.get(k)) >= Integer.parseInt(column2.get(k))) {\r\n\t\t\t\t\tgreaterEqRows.add(String.valueOf(k));\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor (int k = 2; k < column1.size(); k++) {\r\n\t\t\t\tif (Integer.parseInt(column1.get(k)) >= Integer.parseInt(value)) {\r\n\t\t\t\t\tgreaterEqRows.add(String.valueOf(k));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn greaterEqRows;\r\n\t}", "private int getColumn() {\n return binaryPartition(column);\n }", "private boolean removeByColRow(char column, int row){\n if(checkColRow(Head, column, row) != null){\n return removeHead();\n }\n CellNode current = Head;\n while(current != null){\n Cell remove = checkColRow(current, column, row);\n if(remove != null){ break; }\n current = current.getNext();\n }\n if(current.getNext() == null) return removeTail(column, row);\n current.getNext().setPrev(current.getPrev());\n current.getPrev().setNext(current.getNext());\n cellSize--;\n return true;\n }", "public static void addHorizontalSeparator(int[][] matrix, int x, int y) {\n\t\tfor (int i = 0; i < 8; ++i) {\n\t\t\tmatrix[x + i][y] = W;\n\t\t}\n\t}", "public static int[][] subMatrix(int[][] a, int startCol, int endCol,\r\n\t\t\tint startRow, int endRow) {\r\n\t\tint rowNum = a.length;\r\n\t\tint colNum = a[0].length;\r\n\t\tint[][] newAarry = new int[endRow - startRow + 1][endCol - startCol + 1];\r\n\t\tint newRow = 0, newCol = 0;\r\n\t\tfor (int i = 0; i < rowNum; i++) {\r\n\t\t\tnewCol = 0;\r\n\t\t\tfor (int j = 0; j < colNum; j++) {\r\n\t\t\t\tif (i >= startRow && i <= endRow && j >= startCol\r\n\t\t\t\t\t\t&& j <= endCol) {\r\n\t\t\t\t\tnewAarry[newRow][newCol] = a[i][j];\r\n\t\t\t\t\tnewCol++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (i >= startRow && i <= endRow) {\r\n\t\t\t\tnewRow++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn newAarry;\r\n\t}", "private List<IAtomContainer> splitMolecule(IAtomContainer atomContainer, IBond bond) throws CDKException, Exception\n {\n \t\n \t//if this bond is in a ring we have to split another bond in this ring where at least one \n //bond is in between. Otherwise we wont have two fragments. Else normal split.\n \n List<IAtomContainer> ret = new ArrayList<IAtomContainer>(); \n \n //get bond energy for splitting this bond\n double currentBondEnergy = getBondEnergy(bond);\n \n \n //bond is in a ring....so we have to split up another bond to break it\n IRingSet rings = allRings.getRings(bond);\n if (rings.getAtomContainerCount() != 0 )\n { \n \t//only traverse one ring!!!!\n \tfor (int i = 0; i < 1; i++) {\n \t\t//get bonds that are connected to the atom....they should not be removed....disabled\n \t\t//List<IBond> atomBondsExclude = rings.get(i).getConnectedBondsList(atom);\n \t\n \t\t\n \t\tfor (IBond bondInRing : rings.getAtomContainer(i).bonds()) {\n \t\t\t//if the bonds are the same...this wont split up the ring\n \t\t\tif(bondInRing == bond)\n \t\t\t\tcontinue;\n \t\t\t\n\n \t\t\t//check for already tried bonds\n \t\t\tBondPair check = new BondPair(bond, bondInRing);\n \t\t\tif (knownBonds.contains(check))\n \t\t\t\tcontinue;\n \t\t\tknownBonds.add(new BondPair(bond,bondInRing));\n \t\t\t \t\t\t\n\t\t\t\n \t\t\tList<IAtomContainer> set = new ArrayList<IAtomContainer>();\n \t\t\tList<List<IBond>> bondListList = new ArrayList<List<IBond>>();\n \tList<Double> fragWeightList = new ArrayList<Double>();\n\n \tfor (IAtom currentAtom : bond.atoms()) {\n \t\tthis.startTraverse = System.currentTimeMillis();\n \t\t//List with bonds in Ring\n \t\t\tList<IBond> partRing = new ArrayList<IBond>();\n \t\t\t//reset the weight because it is computed inside the traverse\n \t\t\tthis.currentFragWeight = 0.0;\n \t\t\t//initialize new atom list\n \t atomList = new ArrayList<IAtom>();\n \t \n \t //clone current atom because a single electron is being added...homolytic cleavage\n \t\tpartRing = traverse(atomContainer, currentAtom, partRing, bond, bondInRing);\n \t\t\n \t\tbondListList.add(partRing);\n \t\tfragWeightList.add(this.currentFragWeight);\n \t\tthis.endTraverse = System.currentTimeMillis() - this.startTraverse;\n this.sumTraverse += this.endTraverse;\n \n this.startAtom = System.currentTimeMillis();\n \n IAtomContainer temp = makeAtomContainer(currentAtom, partRing);\n //set the properties again!\n Map<Object, Object> properties = atomContainer.getProperties();\n temp.setProperties(properties);\n \n \n //*********************************************************\n //BOND ENERGY CALCULATION\n //calculate bond energy\n double currentBondEnergyRing = getBondEnergy(bondInRing);\n \n //*********************************************************\n \n //now set property\n temp = setBondEnergy(temp, (currentBondEnergyRing + currentBondEnergy));\n \n if(lonePairGeneration)\n {\n \t//create the single electron (radical site)\n \tfor (IAtom bondAtom : bond.atoms()) {\n \t\ttemp.addSingleElectron(temp.getAtomNumber(bondAtom));\n \t}\n \tfor (IAtom bondAtom : bondInRing.atoms()) {\n \t\ttemp.addSingleElectron(temp.getAtomNumber(bondAtom));\n \t}\n \t//temp.addSingleElectron(temp.getAtomNumber(currentAtom));\n \t//AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(temp);\n }\n \n set.add(temp);\n \n this.endAtom = System.currentTimeMillis() - this.startAtom;\n this.sumAtom += this.endAtom;\n \n \t}\n \t\t\t\n \t//now maybe add the fragments to the list\n for (int j = 0; j < set.size(); j++) \n {\t \t \n\t //Render.Draw(set.getAtomContainer(j), \"\");\n\t \t if (set.get(j).getAtomCount() > 0 && set.get(j).getBondCount() > 0 && \n\t \t \t\tset.get(j).getAtomCount() != atomContainer.getAtomCount())\n\t \t {\n\t \t \tthis.startMass = System.currentTimeMillis(); \n\t \t\t\n\t \t \t//now check the current mass\n\t \t \tdouble fragMass = getFragmentMass(set.get(j), fragWeightList.get(j));\n\t \t\t//check the weight of the current fragment\n\t \t \tif(!isHeavyEnough(fragMass))\n\t \t\t\tcontinue;\n\t \t\tthis.endMass = System.currentTimeMillis() - this.startMass;\n\t this.sumMass += this.endMass;\n\t \n\t \t \tthis.startIsomorph = System.currentTimeMillis(); \n\t \t //returns true if isomorph\n\t \t \t//set the current sum formula\n\t \t \tIMolecularFormula fragmentFormula = MolecularFormulaManipulator.getMolecularFormula(set.get(j));\n\t \t \tString currentSumFormula = MolecularFormulaManipulator.getString(fragmentFormula);\n\t \t \tif(isIdentical(set.get(j), currentSumFormula))\n\t \t \tcontinue;\n\t \t this.endIsomorph = System.currentTimeMillis() - this.startIsomorph;\n\t this.sumIsomorph += this.endIsomorph;\n\t \n\t if(this.neutralLossAdd)\n\t {\n\t\t //now add neutral losses to it\n\t\t List<IAtomContainer> fragsNL = AddNeutralLosses(set.get(j), fragmentFormula, false);\n\t\t //for now add all fragments to the list TODO\n\t\t ret.addAll(fragsNL);\n\t }\n\t //add the fragment to the return list\n\t \t ret.add(set.get(j));\n\t \t } \n }\n \t\t} \t\t\n\t\t\t}\n }\n else\n {\n \tList<IAtomContainer> set = new ArrayList<IAtomContainer>();\n \tList<List<IBond>> bondListList = new ArrayList<List<IBond>>();\n \tList<Double> fragWeightList = new ArrayList<Double>();\n\n \t//get the atoms from the splitting bond --> create 2 fragments\n \tfor (IAtom currentAtom : bond.atoms()) {\n \t\tList<IBond> part = new ArrayList<IBond>();\n \t\tthis.startTraverse = System.currentTimeMillis();\n \t\t//reset the weight because it is computed inside the traverse\n \t\t\tthis.currentFragWeight = 0.0;\n \t\t\t//initialize new atom list\n \t atomList = new ArrayList<IAtom>();\n \t\tpart = traverse(atomContainer, currentAtom, part, bond);\n \t\tbondListList.add(part); \t\t\n \t\tthis.endTraverse = System.currentTimeMillis() - this.startTraverse;\n this.sumTraverse += this.endTraverse;\n \n \t\t//create Atomcontainer out of bondList\n \t\tthis.startAtom = System.currentTimeMillis(); \n \t\t\n \t\tIAtomContainer temp = makeAtomContainer(currentAtom, part);\n \t\t//set the properties again!\n Map<Object, Object> properties = atomContainer.getProperties();\n temp.setProperties(properties);\n //now calculate the correct weight subtrating the possible neutral loss mass\n \n fragWeightList.add(this.currentFragWeight);\n \n \n \t\t//now set property: BondEnergy!\n temp = setBondEnergy(temp, currentBondEnergy);\n \n if(lonePairGeneration)\n {\n \t//create the single electron (radical site)\n \tfor (IAtom bondAtom : bond.atoms()) {\n \t\ttemp.addSingleElectron(temp.getAtomNumber(bondAtom));\n \t}\n \t//AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(temp);\n }\n set.add(temp);\n \n \t\tthis.endAtom = System.currentTimeMillis() - this.startAtom;\n this.sumAtom += this.endAtom;\n \t}\n \n \n \n //at most 2 new molecules\n for (int i = 0; i < set.size(); i++) \n {\n\t \n\t if (set.get(i).getAtomCount() > 0 && set.get(i).getBondCount() > 0 &&\n\t \t\tset.get(i).getAtomCount() != atomContainer.getAtomCount())\n\t {\n\t \tthis.startMass = System.currentTimeMillis();\n\t \t\n\t \t//now check the current mass\n\t \tdouble fragMass = getFragmentMass(set.get(i), fragWeightList.get(i));\n \t\t//check the weight of the current fragment\n\t \tif(!isHeavyEnough(fragMass))\n \t\t\tcontinue;\n \t\tthis.endMass = System.currentTimeMillis() - this.startMass;\n this.sumMass += this.endMass; \n \n\t \tthis.startIsomorph = System.currentTimeMillis(); \n\t\t //set the current sum formula\n\t \tIMolecularFormula fragmentFormula = MolecularFormulaManipulator.getMolecularFormula(set.get(i));\n\t \tString currentSumFormula = MolecularFormulaManipulator.getString(fragmentFormula);\n\t \t//returns true if isomorph (fast isomorph check)\n\t \tif(isIdentical(set.get(i), currentSumFormula))\n\t\t \tcontinue;\n\t\t this.endIsomorph = System.currentTimeMillis() - this.startIsomorph;\n\t this.sumIsomorph += this.endIsomorph;\n\t \n\t if(this.neutralLossAdd)\n {\n\t\t //now add neutral losses to it\n\t List<IAtomContainer> fragsNL = AddNeutralLosses(set.get(i), fragmentFormula, false);\n\t //for now add all fragments to the list TODO\n\t ret.addAll(fragsNL);\n }\n\t \n\t ret.add(set.get(i));\n\t }\n }\n \n }\n\n return ret;\n }", "public int[][] generateMatrix(int n) {\n\t \n\t int matrix[][] = new int[n][n];\n\t int count = n * n +1;\n int topRow = 0;\n int bottomRow = n-1;\n int leftmostColumn = 0;\n int rightmostColumn = n -1;\n int added = 0;\n\t \n\t \n\t while(leftmostColumn <= rightmostColumn && topRow<= bottomRow && added <= count){\n \n \n \tif(added != count){\n for(int i = leftmostColumn; i <= rightmostColumn;i++){\n \t matrix[topRow][i] = added +1;\n // #arrList.add(matrix[topRow][i]);\n added = added+1;\n /* if(added == count)\n \tbreak;*/\n }\n topRow = topRow +1;\n \t}\n \n \n \tif(added != count){\t\n for(int j = topRow; j <= bottomRow;j++){\n //arrList.add(matrix[j][rightmostColumn]);\n \t matrix[j][rightmostColumn] = added+1;\n added = added+1;\n /*if(added == count)\n \tbreak;*/\n }\n rightmostColumn = rightmostColumn -1;\n \t} \n \t\n \t\n \tif(added != count){\t\n for(int k = rightmostColumn; k >= leftmostColumn; k--){\n \t matrix[bottomRow][k] = added +1;\n //arrList.add(matrix[bottomRow][k]);\n added = added+1;\n /*if(added == count)\n \tbreak;*/\n }\n bottomRow = bottomRow -1;\n \t}\n \t\n \t\n \tif(added != count){\t\n for(int l = bottomRow; l >= topRow ;l--){\n // arrList.add(matrix[l][leftmostColumn]);\n \t matrix[l][leftmostColumn] = added +1;\n added = added+1;\n /*if(added == count)\n \tbreak;*/\n }\n leftmostColumn = leftmostColumn +1;\n \t}\n \n }\n\t \n\t return matrix;\n \n}", "public Matrix subMatrix(int rowRemoved, int colRemoved) {\n\t\tComplexNumber[][] values = new ComplexNumber[M - 1][];\n\t\tint newRow = 0;\n\t\tfor (int row = 0; row < M; row++) {\n\t\t\tif (row != rowRemoved) {\n\t\t\t\tvalues[newRow] = new ComplexNumber[N - 1];\n\t\t\t\tint newCol = 0;\n\t\t\t\tfor (int col = 0; col < N; col++) {\n\t\t\t\t\tif (col != colRemoved) {\n\t\t\t\t\t\tvalues[newRow][newCol] = ROWS[row][col];\n\t\t\t\t\t\tnewCol++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnewRow++;\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(values);\n\t}", "public static ArrayList<Integer> miniGridExtractor(int[][] grid, int maxRow, int maxColumn) {\n\t\tint[] extractedMiniGrid = new int[Utils.SIZE];\n\t\tint totalElementIndex = 0;\n\t\tfor (int rowIndex = maxRow-3; rowIndex < maxRow && rowIndex >= maxRow-3; rowIndex++) {\n\t\t\tint columnIndex = maxColumn - 3;\n\t\t\twhile (columnIndex < maxColumn && columnIndex >= maxColumn-3 && totalElementIndex < Utils.SIZE) {\n\t\t\t\textractedMiniGrid[totalElementIndex] = grid[rowIndex][columnIndex];\n\t\t\t\tcolumnIndex++;\n\t\t\t\ttotalElementIndex++;\n\t\t\t}\n\t\t}\n\t\tArrayList<Integer> extractedMiniGridList = new ArrayList<Integer>(Utils.SIZE);\n\t\tfor (int nextIndex = 0; nextIndex < Utils.SIZE; nextIndex++) {\n\t\t\tif (extractedMiniGrid[nextIndex] != 0) {\n\t\t\t\textractedMiniGridList.add(extractedMiniGrid[nextIndex]);\n\t\t\t}\n\t\t}\n\t\treturn extractedMiniGridList;\n\t}", "public static ArrayList<String> notEqual(String tableName, String column, String value){\n\t\tArrayList<String> notEqualRows = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> columns = new ArrayList<ArrayList<String>>();\r\n\t\tint twoColumns = 0;\r\n\t\tfor (int i = 0; i < tables.size(); i++) {\r\n\t\t\tif (tables.get(i).getName().equals(tableName)) {\r\n\t\t\t\tcolumns = tables.get(i).datas;\r\n\t\t\t}\r\n\t\t}\r\n\t\tArrayList<String> column1 = new ArrayList<String>();\r\n\t\tArrayList<String> column2 = new ArrayList<String>();\r\n\t\tfor (int j = 0; j < columns.size(); j++) {\r\n\t\t\tif (value.equals(columns.get(j).get(0))) {\r\n\t\t\t\tcolumn2 = columns.get(j);\r\n\t\t\t\ttwoColumns = 1;\r\n\t\t\t}\r\n\t\t\tif (column.equals(columns.get(j).get(0))) {\r\n\t\t\t\tcolumn1 = columns.get(j);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (twoColumns == 1) {\r\n\t\t\tfor (int k = 2; k < column1.size(); k++) {\r\n\t\t\t\tif (!column1.get(k).equals(column2.get(k))) {\r\n\t\t\t\t\tnotEqualRows.add(String.valueOf(k));\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor (int k = 2; k < column1.size(); k++) {\r\n\t\t\t\tif (!column1.get(k).equals(value)) {\r\n\t\t\t\t\tnotEqualRows.add(String.valueOf(k));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn notEqualRows;\r\n\t}", "public static int[][] getMatrix(String[] lines, String delimiter) {\n\n int[][] data = new int[lines.length][];\n for(int i = 0; i < lines.length; i++) {\n\n String[] parts = lines[i].split(delimiter);\n int[] row = new int[parts.length];\n for (int j = 0; j < parts.length; j++) {\n row[j] = Integer.parseInt(parts[j]);\n }\n data[i] = row;\n }\n return data;\n }" ]
[ "0.5021803", "0.4976001", "0.4837299", "0.46690604", "0.46469375", "0.45581582", "0.45378008", "0.44916245", "0.4395195", "0.43893847", "0.43386814", "0.4338329", "0.43360776", "0.43144444", "0.4283819", "0.42656896", "0.42640093", "0.42579865", "0.42407697", "0.4240057", "0.42199022", "0.42059323", "0.42017147", "0.41908997", "0.4189971", "0.4188814", "0.41871312", "0.41606092", "0.41562903", "0.41506508", "0.4142123", "0.4134655", "0.41307357", "0.41070384", "0.41059116", "0.40992105", "0.40986216", "0.4096293", "0.4073582", "0.40684283", "0.40640458", "0.4060826", "0.40598845", "0.40426192", "0.40350476", "0.40339032", "0.40297064", "0.4021593", "0.40203097", "0.40195814", "0.40135658", "0.4008172", "0.4005932", "0.40022883", "0.400004", "0.39912683", "0.39893135", "0.39888605", "0.39841625", "0.39724088", "0.39519373", "0.39515346", "0.3941117", "0.39295426", "0.3928774", "0.39283314", "0.39268363", "0.39237493", "0.39198336", "0.39190018", "0.39189613", "0.3916358", "0.39073056", "0.39054397", "0.39003974", "0.38973248", "0.38967863", "0.38903856", "0.38872787", "0.38830948", "0.3877734", "0.38736877", "0.38621247", "0.38510883", "0.38473213", "0.38466913", "0.3845239", "0.38438278", "0.38433617", "0.3841851", "0.38391027", "0.38286972", "0.3828499", "0.38280156", "0.38260472", "0.3819776", "0.38186994", "0.38118926", "0.38049984", "0.38043103" ]
0.5541246
0
get size params to calculate animations
@Override public void onGlobalLayout() { list_h = list.getHeight(); fab_y = fab.getY(); // define new animations and pass them into the AutoHideHelper Animator animShow = ObjectAnimator.ofFloat(null, "y", fab_y); animShow.setDuration(200); animShow.setInterpolator(new AccelerateInterpolator()); Animator animHide = ObjectAnimator.ofFloat(null, "y", list_h); animHide.setDuration(200); animHide.setInterpolator(new DecelerateInterpolator()); hideHelper.setShowAnimation(animShow); hideHelper.setHideAnimation(animHide); // remove listener fab.getViewTreeObserver().removeOnGlobalLayoutListener(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void settings() { size(1200, 800); }", "private String svgSizes(String id) {\n StringBuilder toReturn = new StringBuilder();\n String w;\n String h;\n for (AAction a : model.getSizes(id)) {\n if (model.currentShape(0, id).isRectangle()) {\n w = \"width\";\n h = \"height\";\n } else {\n w = \"rx\";\n h = \"ry\";\n }\n ChangeSize sz = (ChangeSize) a;\n toReturn.append(\" \");\n toReturn.append(\"<animate attributeType=\\\"xml\\\" begin=\\\"\"\n + sz.getStartTime() * speed + \"ms\\\"\" +\n \" dur=\\\"\" + speed * (sz.getEndTime() - sz.getStartTime())\n + \"ms\" + \"\\\" attributeName=\\\"\" + w + \"\\\"\" +\n \" from=\\\"\" + sz.getStartWidth() + \"\\\" to=\\\"\" +\n \"\" + sz.getEndWidth() + \"\\\" fill=\\\"freeze\\\" />\\n\");\n toReturn.append(\" \");\n toReturn.append(\"<animate attributeType=\\\"xml\\\" begin=\\\"\"\n + sz.getStartTime() * speed + \"ms\\\"\" +\n \" dur=\\\"\" + speed * (sz.getEndTime() - sz.getStartTime())\n + \"ms\" + \"\\\" attributeName=\\\"\" + h + \"\\\"\" +\n \" from=\\\"\" + sz.getStartHeight() + \"\\\" to=\\\"\" +\n \"\" + sz.getEndHeight() + \"\\\" fill=\\\"freeze\\\" />\\n\");\n\n }\n return toReturn.toString();\n }", "Dimension getSize();", "Dimension getSize();", "public void size(final int theWidth, final int theHeight);", "public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }", "public void setSize(float width, float height);", "public int getFrameSize();", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().bottom - mAttacher.getDisplayRect().top;\n }", "public float sizeMultiplier();", "double getSize();", "Dimension[] getSizes();", "@Override\n public void settings(){\n size(500, 500);\n }", "public RMSize getSize() { return new RMSize(getWidth(), getHeight()); }", "void setSize(float w, float h) {\n _w = w;\n _h = h;\n }", "private void basicSize(){\n setSize(375,400);\n }", "private void\ngetSize(final float[] hWidth, final float[] hHeight, final float[] hDepth) \n//\n////////////////////////////////////////////////////////////////////////\n{\n hWidth[0] = ( width.isIgnored() ? 1.0f : width.getValue() / 2.0f);\n hHeight[0] = (height.isIgnored() ? 1.0f : height.getValue() / 2.0f);\n hDepth[0] = ( depth.isIgnored() ? 1.0f : depth.getValue() / 2.0f);\n}", "public Dimension3d getSize() {\n return size;\n }", "private void countSizes() {\r\n Double pageWidth = Double.valueOf(pageWidthParameter.getType().getValue().replace(\",\", \".\"));\r\n double pageHeight = Double.valueOf(pageHeightParameter.getType().getValue().replace(\",\", \".\"));\r\n Double max = Math.max(pageWidth, pageHeight);\r\n max /= PAPER_SIZE;\r\n widthSize = (int) (pageWidth / max);\r\n heightSize = (int) (pageHeight / max);\r\n }", "private Parameters setSize(Parameters parameters) {\n\n\t\tLog.d(\"<<picture>>\", \"W:\"+parameters.getPictureSize().width+\"H:\"+parameters.getPictureSize().height);\n\t\tLog.d(\"<<preview>>\", \"W:\"+parameters.getPreviewSize().width+\"H:\"+parameters.getPreviewSize().height);\n\n\t\tint tempWidth = parameters.getPictureSize().width;\n\t\tint tempHeight = parameters.getPictureSize().height;\n\t\tint Result = 0;\n\t\tint Result2 = 0;\n\t\tint picSum = 0;\n\t\tint picSum2 = 0;\n\t\tint soin = 2;\n\n\t\twhile(tempWidth >= soin && tempHeight >= soin){\n\t\t\tResult = tempWidth%soin;\n\t\t\tResult2 = tempHeight%soin;\n\t\t\tif(Result == 0 && Result2 == 0){\n\t\t\t\tpicSum = tempWidth/soin;\n\t\t\t\tpicSum2 = tempHeight/soin;\n\t\t\t\tSystem.out.println(\"PictureWidth :\"+tempWidth+\"/\"+soin+\"���:\"+picSum+\"������:\"+Result);\n\t\t\t\tSystem.out.println(\"PictureHeight :\"+tempHeight+\"/\"+soin+\"���:\"+picSum2+\"������:\"+Result2);\n\t\t\t\ttempWidth = picSum;\n\t\t\t\ttempHeight = picSum2;\n\t\t\t}else {\n\t\t\t\tsoin++;\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"������� \"+picSum+\":\"+picSum2);\n\n\t\tList<Camera.Size> previewSizeList = parameters.getSupportedPreviewSizes();\n\t\tfor (Size size : previewSizeList){\n\t\t\ttempWidth = size.width;\n\t\t\ttempHeight = size.height;\n\t\t\tResult = 0;\n\t\t\tResult2 = 0;\n\t\t\tint preSum = 0;\n\t\t\tint preSum2 = 0;\n\t\t\tsoin = 2;\n\n\t\t\twhile(tempWidth >= soin && tempHeight >= soin){\n\t\t\t\tResult = tempWidth%soin;\n\t\t\t\tResult2 = tempHeight%soin;\n\t\t\t\tif(Result == 0 && Result2 == 0){\n\t\t\t\t\tpreSum = tempWidth/soin;\n\t\t\t\t\tpreSum2 = tempHeight/soin;\n\t\t\t\t\tSystem.out.println(\"PreviewWidth :\"+tempWidth+\"/\"+soin+\"���:\"+preSum+\"������:\"+Result);\n\t\t\t\t\tSystem.out.println(\"PreviewHeight :\"+tempHeight+\"/\"+soin+\"���:\"+preSum2+\"������:\"+Result2);\n\t\t\t\t\ttempWidth = preSum;\n\t\t\t\t\ttempHeight = preSum2;\n\t\t\t\t}else {\n\t\t\t\t\tsoin++;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tSystem.out.println(\"������� \"+preSum+\":\"+preSum2);\n\t\t\tif(picSum == preSum && picSum2 == preSum2){\n\t\t\t\tparameters.setPreviewSize(size.width, size.height);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn parameters;\n\t}", "@Override\r\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tfloat xPad = getPaddingLeft() + getPaddingRight();\r\n\t\tfloat yPad = getPaddingTop() + getPaddingBottom();\r\n\t\tdimension = Math.min(w - xPad, (h - yPad) * 2);\r\n\t\tradius = 60;\r\n\t\tinsideLeft = w / 2 - radius;\r\n\t\tinsideRight = w / 2 + radius;\r\n\t\tinsideTop = dimension - getPaddingBottom() - radius;\r\n\t\tinsideBottom = dimension - getPaddingBottom();\r\n\t\t\r\n//\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), dimension - getPaddingRight(), dimension - getPaddingBottom());\r\n//\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), dimension - getPaddingRight(), dimension/2);\r\n//\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), dimension, dimension);\r\n\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), w-getPaddingRight(), h-getPaddingBottom());\r\n\t\tfloat insideRectDownH = dimension-getPaddingBottom()-getPaddingTop()+150;\r\n//\t\tinsideRect = new RectF(50, 300, 320, insideRectDownH);\r\n\t\tinsideRect = new RectF(w/2-radius, dimension-radius, w/2+radius, dimension+radius);\r\n\t}", "@Override\n public void settings() {\n size(800, 800, P3D);\n }", "public float getSize()\n {\n return size;\n }", "public abstract Dimension getSize();", "protected abstract void setSize();", "float getSize(float[] sizes);", "public void setSize(RMSize aSize) { setSize(aSize.width, aSize.height); }", "int getCurrentSize();", "void setSize(Dimension size);", "@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n w -= getPaddingRight() + getPaddingLeft();\n h -= getPaddingTop() + getPaddingBottom();\n\n int right = w;\n int bottom = h;\n int top = 0;\n int left = 0;\n\n if (mElement != null) {\n // Maintain aspect ratio. Certain kinds of animated drawables\n // get very confused otherwise.\n final int intrinsicWidth = mElement.getIntrinsicWidth();\n final int intrinsicHeight = mElement.getIntrinsicHeight();\n final float intrinsicAspect = (float) intrinsicWidth / intrinsicHeight;\n final float boundAspect = (float) w / h;\n if (intrinsicAspect != boundAspect) {\n if (boundAspect > intrinsicAspect) {\n // New width is larger. Make it smaller to match height.\n final int width = (int) (h * intrinsicAspect);\n left = (w - width) / 2;\n right = left + width;\n } else {\n // New height is larger. Make it smaller to match width.\n final int height = (int) (w * (1 / intrinsicAspect));\n top = (h - height) / 2;\n bottom = top + height;\n }\n }\n mElement.setBounds(left, top, right, bottom);\n }\n\n super.onSizeChanged(w, h, oldw, oldh);\n }", "public void setSize();", "public abstract int getYSize();", "public float getSize() {\n return size;\n }", "private void calcContentSize() {\n }", "public float getSizeX(){return sx;}", "@Override\n\tpublic void setSize(float size) {\n\t\tthis.size = size;\n\t\trxs = new int [ Math.max(Math.round(size/calibration[0]), Math.round(size/calibration[1])) + 1 ];\t\t\n\t\treset();\n\t}", "public void setFrameSize();", "public void showMazeSize(int size);", "public void setSize(double size) \n {\n this.size = size;\n }", "public void setSize(int size) {\n\tthis.sizeNumber = sizeNumber;\r\n}", "public void setSize(int size);", "@Override\n\tpublic void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tmRequiredRadius = (int) (Math.sqrt(w * w + h * h) / 3);\n\t}", "public void settings() {\n size(640, 384);\n }", "private void updateSizeInfo() {\n RelativeLayout drawRegion = (RelativeLayout)findViewById(R.id.drawWindow);\r\n drawW = drawRegion.getWidth();\r\n drawH = drawRegion.getHeight();\r\n getImageFromStorage();\r\n LinearLayout parentWindow = (LinearLayout)findViewById(R.id.parentWindow);\r\n parentWindow.setPadding((drawW - bgImage.getWidth())/2, (drawH - bgImage.getHeight())/2, (drawW - bgImage.getWidth())/2, (drawH - bgImage.getHeight())/2);\r\n parentWindow.invalidate();\r\n }", "public abstract void setSize(Dimension d);", "public int getSetSize(){ return Integer.parseInt(setSize.getText()); }", "private void updateSize() {\n double width = pane.getWidth();\n double height = pane.getHeight();\n\n if(oldWidth == 0) {\n oldWidth = width;\n }\n if(oldHeight == 0) {\n oldHeight = height;\n }\n\n double oldHvalue = pane.getHvalue();\n double oldVvalue = pane.getVvalue();\n if(Double.isNaN(oldVvalue)) {\n oldVvalue = 0;\n }\n if(Double.isNaN(oldHvalue)) {\n oldHvalue = 0;\n }\n\n pane.setVmax(height);\n pane.setHmax(width);\n\n if(grow) {\n renderMapGrow(width, height, curZoom);\n } else {\n renderMap(width, height, curZoom);\n }\n\n pane.setVvalue((height/oldHeight)*oldVvalue);\n pane.setHvalue((width/oldWidth)*oldHvalue);\n\n oldWidth = width;\n oldHeight = height;\n }", "@Override\n public Position getSize() {\n return new Position(this.w, this.h);\n }", "@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }", "public Dimension getSize() { return new Dimension(width,height); }", "public void setHeight(int h){ heightRadius = h; }", "public CommonPopWindow setSize(int width, int height) {\n/* 140 */ this.mWidth = width;\n/* 141 */ this.mHeight = height;\n/* 142 */ return this;\n/* */ }", "public int getTransitionSize() {\n return _transitionSize;\n }", "public void mo5964b() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{0.0f, -((float) C1413m.f5711i.getHeight())}).setDuration(350);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.55f, 0.35f, 0.2f, 0.1f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f}).setDuration(350);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{0.0f, 0.3f, 0.5f, 0.7f, 0.9f, 1.0f}).setDuration(j).start();\n this.f5438qa.getMeasuredHeight();\n this.f5384D.getmImageViewHeight();\n C1413m.m6828a(27, this.f5389I);\n ObjectAnimator.ofFloat(this.f5386F, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5384D, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5385E, \"alpha\", new float[]{0.0f, 1.0f}).setDuration(j).start();\n this.f5384D.getTexView().setText(getResources().getString(R.string.pause));\n this.f5384D.getmImageView().setImageResource(R.drawable.iqoo_buttonanimation);\n this.f5393M = (AnimationDrawable) this.f5384D.getmImageView().getDrawable();\n this.f5393M.start();\n duration.addListener(new C1300Wa(this));\n }", "public double getSize() \n {\n return size;\n }", "@Override\n void setWidthHeight() {\n setWidth(explosions[0].getWidth());\n setHeight(explosions[1].getHeight());\n }", "public double getWidth() {\n return this.size * 2.0; \n }", "public long getAnimDuration() {\n return (long) (Settings.Global.getFloat(this.mContext.getContentResolver(), \"transition_animation_scale\", this.mContext.getResources().getFloat(17105053)) * 336.0f);\n }", "public float getSizeY(){return sy;}", "public float getSize() {\n\t\treturn size;\n\t}", "private void setSize(int s){\n\t\tsize = s;\n\t}", "@Override\r\n public void getSize(final SizeReadyCallback cb) {\n super.getSize(new SizeReadyCallback() {\r\n @Override\r\n public void onSizeReady(int width, int height) {\r\n cb.onSizeReady(displayWidth / 2, displayHeight / 2);\r\n }\r\n });\r\n }", "private AdSize getBannerSize(HashMap args) {\n final int height = (int) args.get(\"height\");\n\n if (height >= 250)\n return AdSize.RECTANGLE_HEIGHT_250;\n if (height >= 90)\n return AdSize.BANNER_HEIGHT_90;\n else\n return AdSize.BANNER_HEIGHT_50;\n }", "public void onSizeChanged(int i, int i2, int i3, int i4) {\n super.onSizeChanged(i, i2, i3, i4);\n int width = getWidth();\n this.f92258f = getHeight();\n this.f92257e = (width - ((int) this.f92259g)) / this.f92253a;\n this.f92254b.setShader(new LinearGradient(0.0f, 0.0f, (float) this.f92257e, (float) this.f92258f, this.f92255c, this.f92256d, Shader.TileMode.CLAMP));\n }", "public void onSizeChanged(int i, int i2, int i3, int i4) {\n super.onSizeChanged(i, i2, i3, i4);\n this.mWidth = i;\n this.mHeight = i2;\n if (this.mDelayed) {\n this.mDelayed = false;\n setController(getController());\n }\n }", "VideoSize getSize() {\n return size;\n }", "public void onSizeChanged(int i, int i2, int i3, int i4) {\n super.onSizeChanged(i, i2, i3, i4);\n if (this.animator == null) {\n if (this.efE) {\n this.efD.aYi();\n } else {\n this.efD.aYm();\n }\n this.animator = this.efD.aYl();\n }\n }", "@Override\n public void run() {\n Log.i(TAG, \"run: width\" + mWidth);\n Log.i(TAG, \"run: height----------\" + mHeight);\n }", "public void sizeOfTiles(int size)\n{\n if(m != null )\n {\n m.getOutputImageManager().setTileSize(size);\n //refresh row shift for new size of tiles\n if(m.getOutputImageManager().getMosaic() != null)\n {\n m.getOutputImageManager().setEvenRowShift(m.getOutputImageManager().getEvenRowShift());\n m.getOutputImageManager().setOddRowShift(m.getOutputImageManager().getOddRowShift());\n m.getOutputImageManager().getMosaic().setHoverIndex(0,0);\n //println(m.getOutputImageManager().getMosaic().getFlipH()[0].length);\n }\n m.getOutputImageManager().setToRerender();\n }\n}", "public int getHeight(){ return heightRadius; }", "public int winSize() { return winSize; }", "public Size(double width, double height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n }", "private void setSize() {\n width = AppConfig.width;\n height = (int) (AppConfig.width * 0.56);\n requestOptions = new RequestOptions()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC);\n \n }", "public Dimension getSize()\n {\n return new Dimension(300, 150);\n }", "public float getMovementAnimationDuration() {\r\n\t\treturn (TILESIZE / getMovementSpeed()) * TARGET_FRAME_DELTA;\r\n\t}", "double getStepSize();", "public void updateParametersPictureSize() {\n if (this.mCameraDevice == null) {\n Log.w(TAG, \"attempting to set picture size without camera device\");\n return;\n }\n String pictureSizeKey;\n this.mCameraSettings.setSizesLocked(false);\n SettingsManager settingsManager = this.mActivity.getSettingsManager();\n if (isCameraFrontFacing()) {\n pictureSizeKey = Keys.KEY_PICTURE_SIZE_FRONT;\n } else {\n pictureSizeKey = Keys.KEY_PICTURE_SIZE_BACK;\n }\n String pictureSize = settingsManager.getString(SettingsManager.SCOPE_GLOBAL, pictureSizeKey, SettingsUtil.getDefaultPictureSize(isCameraFrontFacing()));\n Size size = new Size(960, MotionPictureHelper.FRAME_HEIGHT_9);\n if (isDepthEnabled()) {\n size = SettingsUtil.getBokehPhotoSize(this.mActivity, pictureSize);\n } else {\n size = SettingsUtil.sizeFromString(pictureSize);\n }\n this.mCameraSettings.setPhotoSize(size);\n if (ApiHelper.IS_NEXUS_5) {\n if (ResolutionUtil.NEXUS_5_LARGE_16_BY_9.equals(pictureSize)) {\n this.mShouldResizeTo16x9 = true;\n } else {\n this.mShouldResizeTo16x9 = false;\n }\n }\n if (size != null) {\n Size optimalSize;\n Tag tag;\n Size optimalSize2 = CameraUtil.getOptimalPreviewSize(this.mActivity, this.mCameraCapabilities.getSupportedPreviewSizes(), ((double) size.width()) / ((double) size.height()));\n Size original = this.mCameraSettings.getCurrentPreviewSize();\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Photo module Set preview size \");\n stringBuilder.append(size);\n stringBuilder.append(\" calculate size \");\n stringBuilder.append(optimalSize2);\n stringBuilder.append(\" original size \");\n stringBuilder.append(original);\n android.util.Log.e(\"===++++++=====\", stringBuilder.toString());\n if (isDepthEnabled()) {\n optimalSize = SettingsUtil.getBokehPreviewSize(pictureSize, false);\n } else {\n if ((size.width() == 4160 && size.height() == 1970) || (size.width() == 3264 && size.height() == 1546)) {\n optimalSize2 = new Size(1440, MotionPictureHelper.FRAME_HEIGHT_9);\n }\n optimalSize = optimalSize2;\n this.mActivity.getCameraAppUI().setSurfaceHeight(optimalSize.height());\n this.mActivity.getCameraAppUI().setSurfaceWidth(optimalSize.width());\n }\n this.mUI.setCaptureSize(optimalSize);\n Log.w(TAG, String.format(\"KPI original size is %s, optimal size is %s\", new Object[]{original.toString(), optimalSize.toString()}));\n if (!optimalSize.equals(original)) {\n tag = TAG;\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"setting preview size. optimal: \");\n stringBuilder2.append(optimalSize);\n stringBuilder2.append(\"original: \");\n stringBuilder2.append(original);\n Log.v(tag, stringBuilder2.toString());\n this.mCameraSettings.setPreviewSize(optimalSize);\n this.mCameraDevice.applySettings(this.mCameraSettings);\n this.mCameraSettings = this.mCameraDevice.getSettings();\n if (this.mCameraSettings == null) {\n Log.e(TAG, \"camera setting is null ?\");\n }\n }\n if (!(optimalSize.width() == 0 || optimalSize.height() == 0)) {\n Log.v(TAG, \"updating aspect ratio\");\n this.mUI.updatePreviewAspectRatio(((float) optimalSize.width()) / ((float) optimalSize.height()));\n }\n this.mCameraSettings.setSizesLocked(true);\n tag = TAG;\n StringBuilder stringBuilder3 = new StringBuilder();\n stringBuilder3.append(\"Preview size is \");\n stringBuilder3.append(optimalSize);\n Log.d(tag, stringBuilder3.toString());\n }\n }", "public Point getSize();", "public void setSize(int w, int h){\n this.width = w;\n this.height = h;\n ppuX = (float)width / CAMERA_WIDTH;\n ppuY = (float)height / CAMERA_HEIGHT;\n }", "public abstract float getSquareSize();", "@Test\n public void testAddSizeChange() {\n testAnimation.addShape(r, 1, 100);\n // Instantiate the size change\n size1 = new ScaleShape(r, 50.0, 100.0, 25.0, 100.0);\n size2 = new ScaleShape(r, 25.0, 100.0, 25.0, 13.0);\n testAnimation.addEvent(r, size1, 51, 70);\n testAnimation.addEvent(r, size2, 71, 73);\n\n assertEquals(\"Shapes:\\n\"\n + \"Name: R\\n\"\n + \"Type: rectangle\\n\"\n + \"Min corner: (200.0,200.0), Width: 50.0, Height: 100.0, Color: (1,0,0)\\n\"\n + \"Appears at t=1\\n\"\n + \"Disappears at t=100\\n\"\n + \"\\n\"\n + \"R changes width from 50.0 to 25.0 from time t=51 to t=70\"\n + \"\\nR changes height from 100.0 to 13.0 from time t=71 to t=73\\n\",\n testAnimation.toString());\n }", "Animation getStructure();", "public FireSize getSize() {\n return size;\n }", "public void setSize(double aWidth, double aHeight) { setWidth(aWidth); setHeight(aHeight); }", "private void\ngetSize(float[] hWidth_hHeight_hDepth)\n//\n////////////////////////////////////////////////////////////////////////\n{\n\thWidth_hHeight_hDepth[0] = ( width.isIgnored() ? 1.0f : width.getValue() / 2.0f);\n\thWidth_hHeight_hDepth[1] = (height.isIgnored() ? 1.0f : height.getValue() / 2.0f);\n\thWidth_hHeight_hDepth[2] = ( depth.isIgnored() ? 1.0f : depth.getValue() / 2.0f);\n}", "public void settings() {\r\n\t\tthis.size(PlayGame.WIDTH,PlayGame.HEIGHT);\r\n\t}", "void setStats(double newWidth, double newHeight) {\n width = newWidth;\n height = newHeight;\n }", "@Override\n public Position setSize(double w, double h) {\n return new Position(w, h);\n }", "public Point2D.Float getSize() {\r\n\t\treturn size;\r\n\t}", "@Override\n\tpublic Dimension getSize() \n\t{\n\t\treturn panel.getSize();\n\t}", "public void startQsSizeChangeAnimation(int i, int i2) {\n ValueAnimator valueAnimator = this.mQsSizeChangeAnimator;\n if (valueAnimator != null) {\n i = ((Integer) valueAnimator.getAnimatedValue()).intValue();\n this.mQsSizeChangeAnimator.cancel();\n }\n ValueAnimator ofInt = ValueAnimator.ofInt(new int[]{i, i2});\n this.mQsSizeChangeAnimator = ofInt;\n ofInt.setDuration(300);\n this.mQsSizeChangeAnimator.setInterpolator(Interpolators.FAST_OUT_SLOW_IN);\n this.mQsSizeChangeAnimator.addUpdateListener(new AnimatorUpdateListener() {\n public void onAnimationUpdate(ValueAnimator valueAnimator) {\n NotificationPanelViewController.this.requestScrollerTopPaddingUpdate(false);\n NotificationPanelViewController.this.requestPanelHeightUpdate();\n NotificationPanelViewController.this.mQs.setHeightOverride(((Integer) NotificationPanelViewController.this.mQsSizeChangeAnimator.getAnimatedValue()).intValue());\n }\n });\n this.mQsSizeChangeAnimator.addListener(new AnimatorListenerAdapter() {\n public void onAnimationEnd(Animator animator) {\n NotificationPanelViewController.this.mQsSizeChangeAnimator = null;\n }\n });\n this.mQsSizeChangeAnimator.start();\n }", "public static void initSize(float ratioX, float ratioY) {\n\t\tConfig.ratioX = ratioX;\n\t\tConfig.ratioY = ratioY;\n\t\tConfig.SCREEN_WIDTH = (int) (ImageSize.SCREEN_WIDTH * ratioX);\n\t\tConfig.SCREEN_HEIGHT = (int) (ImageSize.SCREEN_HEIGHT * ratioY);\n\t\tConfig.TOP_TITLE_WIDTH = (int) (ImageSize.TOP_TITLE_WIDTH* ratioX);\n\t\tConfig.TOP_TITLE_HEIGHT = (int) (ImageSize.TOP_TITLE_HEIGHT * ratioX);\n\t\tConfig.GAME_TITLE_WIDTH = (int) (ImageSize.GAME_TITLE_WIDTH* ratioX);\n\t\tConfig.GAME_TITLE_HEIGHT = (int) (ImageSize.GAME_TITLE_HEIGHT * ratioX);\n\t\t\n\t\tConfig.TOP_LOGO_WIDTH = (int) (ImageSize.TOP_LOGO_WIDTH * ratioX);\n\t\tConfig.TOP_LOGO_HEIGHT = (int) (ImageSize.TOP_LOGO_HEIGHT * ratioX);\n\t\tConfig.TOP_BUTTON_WIDTH = (int) (ImageSize.TOP_BUTTON_WIDTH * ratioX);\n\t\tConfig.TOP_BUTTON_WIDTH_VFA = (int) (ImageSize.TOP_BUTTON_WIDTH_VFA * ratioX);\n\t\tConfig.TOP_BUTTON_HEIGHT = (int) (ImageSize.TOP_BUTTON_HEIGHT * ratioX);\n\t\t\n\t\tConfig.TOP_TITLE_Y = (int) (ImageSize.TOP_TITLE_Y* ratioX);\n\t\tConfig.GAME_TITLE_Y = (int) (ImageSize.GAME_TITLE_Y* ratioX);\n\t\tConfig.TOP_START_X = (int) (ImageSize.TOP_START_X * ratioX);\n\t\tConfig.TOP_START1_X = (int) (ImageSize.TOP_START1_X * ratioX);\n\t\tConfig.TOP_START2_X = (int) (ImageSize.TOP_START2_X * ratioX);\n\t\tConfig.TOP_START3_X = (int) (ImageSize.TOP_START3_X * ratioX);\n\t\tConfig.TOP_START_Y = (int) (Config.SCREEN_HEIGHT/2 - ImageSize.TOP_START_FROM_CENTER_Y * ratioX);\n\t\tConfig.TOP_RANKING_Y = Config.TOP_START_Y + Config.TOP_BUTTON_HEIGHT + (int) (ImageSize.TOP_DIS_Y * ratioX);\n\t\t//Config.TOP_MANUAL_Y = Config.TOP_RANKING_Y + Config.TOP_BUTTON_HEIGHT + (int) (ImageSize.TOP_DIS_Y * ratioX);\n\t\tConfig.TOP_MANUAL_Y = Config.TOP_START_Y;\n\t\tConfig.TOP_INFO_Y = Config.TOP_MANUAL_Y + Config.TOP_BUTTON_HEIGHT + (int) (ImageSize.TOP_DIS_Y * ratioX);\n\t\tConfig.TOP_VFA_Y = Config.TOP_INFO_Y + Config.TOP_BUTTON_HEIGHT + (int) (ImageSize.TOP_DIS_Y * ratioX);\n\t\tConfig.RESULT_VFA_Y = Config.TOP_INFO_Y + Config.TOP_BUTTON_HEIGHT + (int) (ImageSize.TOP_DIS_Y * ratioX);\n\t\tConfig.RANKING_SCORES_X = (int) (ImageSize.RANKING_SCORES_X * ratioX);\n\t\tConfig.RANKING_SCORES_Y = (int) (Config.SCREEN_HEIGHT/2 - ImageSize.RANKING_SCORES_FORM_CENTER_Y * ratioX);\n\t\tConfig.RANKING_SCORES_LINE_X = (int) (ImageSize.RANKING_SCORES_LINE_X * ratioX);\n\t\tConfig.RANKING_SCORES_LINE_Y = (int) (Config.SCREEN_HEIGHT/2 - ImageSize.RANKING_SCORES_LINE_FROM_CENTER_Y * ratioX) - 90;\n\t\t\n\t\tConfig.RANKING_SCORES_LINE_WIDTH = (int) (ImageSize.RANKING_SCORES_LINE_WIDTH * ratioX);\n\t\tConfig.RANKING_SCORES_LINE_HEIGH = (int) (ImageSize.RANKING_SCORES_LINE_HEIGH * ratioX);\n\t\tConfig.RANKING_NUMBER_WIDTH = (int) (ImageSize.RANKING_NUMBER_WIDTH * ratioX);\n\t\tConfig.RANKING_NUMBER_HEIGH = (int) (ImageSize.RANKING_NUMBER_HEIGH * ratioX);\n\t\t\n\t\tConfig.RANKING_POINT_WIDTH = (int) (ImageSize.RANKING_POINT_WIDTH * ratioX);\n\t\tConfig.RANKING_POINT_HEIGH = (int) (ImageSize.RANKING_POINT_HEIGH * ratioX);\n\t\t\t\n\t\n\t\tConfig.RANKING_BACK_WIDTH = (int) (ImageSize.RANKING_BACK_WIDTH * ratioX);\n\t\tConfig.RANKING_BACK_HEIGH = (int) (ImageSize.RANKING_BACK_HEIGH * ratioX);\n\t\tConfig.RANKING_BACK_X = (int) (ImageSize.RANKING_BACK_X * ratioX);\n\t\tConfig.RANKING_BACK_Y = (int) (Config.SCREEN_HEIGHT/2 + ImageSize.RANKING_BACK_FROM_CENTER_Y * ratioX);\n\t\t\n\t\tConfig.RANKING_CENTER_WIDTH = (int) (ImageSize.RANKING_CENTER_WIDTH * ratioX);\n\t\tConfig.RANKING_CENTER_HEIGH = (int) (ImageSize.RANKING_CENTER_HEIGH * ratioX);\n\t\tConfig.RANKING_CENTER_X = (int) (ImageSize.RANKING_CENTER_X * ratioX);\n\t\tConfig.RANKING_CENTER_Y = (int) (Config.SCREEN_HEIGHT/2 + ImageSize.RANKING_CENTER__FROM_CENTER_Y * ratioX);\n\t\t\n\t\t\n\t\tConfig.MANUAL_WIDTH = (int) (ImageSize.MANUAL_WIDTH * ratioX);\n\t\tConfig.MANUAL_HEIGHT = (int) (ImageSize.MANUAL_HEIGHT * ratioX);\n\t\tConfig.MANUAL_X = 0;\n\t\tConfig.MANUAL_Y = (Config.SCREEN_HEIGHT - Config.MANUAL_HEIGHT)/2;\n\t\t\n\t\tConfig.MANUAL_STRING_X = (int) (ImageSize.MANUAL_STRING_X * ratioX);\n\t\tConfig.MANUAL_STRING_Y = (int) (ImageSize.MANUAL_STRING_Y * ratioY);\n\t}", "Builder height(VariableAmount height);", "static Dimension frameSize(String env) {\n\t\tString s = System.getProperty(env, \"0\");\n\t\tint x = s.indexOf('x'), high = 600;\n\n\t\tif (x >= 0) {\n\t\t\thigh = Integer.parseInt(s.substring(x + 1));\n\t\t\ts = s.substring(0, x);\n\t\t}\n\t\treturn new Dimension(Integer.parseInt(s), high);\n\t}", "public XYPoint getMapSize();", "int[] getScreenSize() {\n qq scSize = new qq(game.z, game.d, game.e);\n return new int[] { scSize.a(), scSize.b() };\n }", "protected void createDialogSize ()\n {\n }", "void setDimension(double width, double height);", "double getNewHeight();", "public void settings() {\r\n size(750, 550);\r\n }", "public void changeSize()\n {\n //if mouse is on the play button, make it bigger\n if(Greenfoot.mouseMoved(this))\n setImage(\"play button bigger.png\");\n //if mouse is on the background, return play button to regular size\n else if(Greenfoot.mouseMoved(getWorld()))\n setImage(\"play button.png\");\n }" ]
[ "0.6225943", "0.604488", "0.6043537", "0.6043537", "0.6020519", "0.5995025", "0.5875241", "0.5845033", "0.57979834", "0.5795435", "0.57647496", "0.573004", "0.5695681", "0.56947094", "0.5673805", "0.56651384", "0.56562454", "0.56550384", "0.5631789", "0.56234246", "0.558996", "0.5578224", "0.55779207", "0.55777556", "0.5566663", "0.556471", "0.5564635", "0.55640036", "0.5539938", "0.5525805", "0.5521358", "0.5502723", "0.5494571", "0.54835397", "0.5483189", "0.5481799", "0.5476313", "0.5470906", "0.5453692", "0.5444177", "0.54431397", "0.5434993", "0.5433988", "0.5432626", "0.5427802", "0.54247093", "0.5418202", "0.5416175", "0.5413682", "0.5405068", "0.539643", "0.5394989", "0.53859067", "0.5382998", "0.53802204", "0.5378292", "0.5375137", "0.53497905", "0.53369784", "0.53365725", "0.533413", "0.532348", "0.53171366", "0.5306961", "0.530445", "0.53021705", "0.5285363", "0.5285343", "0.5282519", "0.5279551", "0.52780837", "0.5276371", "0.5273415", "0.5272896", "0.5271613", "0.52686334", "0.5268288", "0.52640676", "0.5263387", "0.5261432", "0.5260571", "0.5258807", "0.5255776", "0.5246997", "0.52461964", "0.52374965", "0.5229704", "0.5222467", "0.5221849", "0.5216526", "0.5216148", "0.52154374", "0.52130544", "0.5212235", "0.5211917", "0.5202794", "0.5202782", "0.52027476", "0.5200886", "0.5195231", "0.51926214" ]
0.0
-1
Reader for Germplasm lists
public interface GermplasmListReader { public static final String LABEL_LIST_ID = "LIST ID"; public static final String LABEL_LIST_NAME = "LIST NAME"; public static final String LABEL_LIST_DATE = "LIST DATE"; public static final String LABEL_LIST_TYPE = "LIST TYPE"; public static final String LABEL_LIST_TITLE = "LIST TITLE"; public static final String HEADER_GID = "GID"; public static final String HEADER_ENTRY_CD = "ENTRY CD"; public static final String HEADER_ENTRY_CODE = "ENTRY CODE"; public static final String HEADER_DESIGNATION = "DESIG"; public static final String HEADER_CROSS = "CROSS"; public static final String HEADER_SOURCE = "SOURCE"; public static final String HEADER_UNIQUE_ID = "UNIQUE ID"; public static final String HEADER_ENTRY_ID = "ENTRY"; // Assume that entry values starts at 7 (8) public static final int ROW_HEADER_INDEX = 7; public static final int COLUMN_GID = 0; public static final int COLUMN_ENTRY_CODE = 1; public static final int COLUMN_DESIGNATION = 2; public static final int COLUMN_CROSS = 3; public static final int COLUMN_SOURCE = 4; public static final int COLUMN_UNIQUE_ID = 5; public static final int COLUMN_ENTRY_ID = 6; public static final int MAX_ROW = 2000; /** * Get Germplasm info from a excel file according to Germplasm template * @param fileName The file name including full path FullName * @return GermplasmList object with all entries */ public GermplasmList getGermPlasmList(String fileName) throws Exception; public boolean isValidTemplate(String fileName) throws Exception; public boolean isValidCrossScript(String fileName) throws Exception; /** * Get Germplasm info from database according to Germplasm list id * @param listid ID for germplasm list * @return GermplasmList object with all entries */ public GermplasmList getGermPlasmListFromDB(Integer listid); /** * Assign sheet number where Germplasm list is containted * * @param sheetNumber */ public void setSheetNumberForGermplasm(Integer sheetNumber); /** * Assign sheet namn where Germplasm list is containted * * @param sheetNumber */ public void setSheetNameForGermplasm(String sheetName); /** * Assign the list of factors header to read excel template * @param factorHeader */ public void setEntryFactors(List<Factor> entryFactors); /** * Is it a germplasm template * @param isGermplasmTemplate */ public void setIsGermplasmTemplate(boolean isGermplasmTemplate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<T> readList();", "List<T> read();", "public GermplasmList getGermPlasmList(String fileName) throws Exception;", "public List<List<String>> read () {\n List<List<String>> information = new ArrayList<>();\n try (BufferedReader br = new BufferedReader(new FileReader(path))) {\n int aux = 0;\n while ((line = br.readLine()) != null) {\n String[] data = line.split(split_on);\n List<String> helper = new ArrayList<>();\n helper.add(data[0]);\n helper.add(data[1]);\n information.add(helper);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return information;\n }", "List<BookStoreElement> load(Reader reader);", "private ArrayList<Read> makeReadList() {\r\n\t\tArrayList<Read> rlist=makeReadList2();\r\n\t\tif(mateStream!=null){\r\n\t\t\tListNum<Read> matesln=mateStream.nextList();\r\n\t\t\tArrayList<Read> mates=matesln.list;\r\n\t\t\tif(rlist!=null && mates!=null){\r\n\t\t\t\tint max=Tools.min(rlist.size(), mates.size());\r\n\t\t\t\tfor(int i=0; i<max; i++){\r\n\t\t\t\t\tRead a=rlist.get(i);\r\n\t\t\t\t\tRead b=mates.get(i);\r\n\t\t\t\t\ta.mate=b;\r\n\t\t\t\t\tb.mate=a;\r\n\t\t\t\t\tb.setPairnum(1);\r\n\t\t\t\t}\r\n\t\t\t\tmates.clear();\r\n\t\t\t\tmateStream.returnList(matesln, false);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn rlist;\r\n\t}", "public GermplasmList getGermPlasmListFromDB(Integer listid);", "List<E> read();", "public List<Tailor> read();", "static void read()\n\t\t{\n\n\n\t\t\tString content=new String();\n\t\t\ttry {\n\t\t\t\tFile file=new File(\"Dic.txt\");\n\t\t\t\tScanner scan=new Scanner(file);\n\t\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\t\tcontent=scan.nextLine();\n\t\t\t\t//\tSystem.out.println(content);\n\n\t\t\t\t//\tString [] array=content.split(\" \");\n\t\t\t\t\tlist.add(content.trim());\n\n\t\t\t\t}\n\t\t\t\tscan.close(); \n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\n\n\t\t}", "public abstract List<UIReader> getReaderList();", "@SuppressWarnings(\"unchecked\")\n public List readList() throws IOException {\n List list = new ArrayList();\n Object obj = read();\n while (obj != null) {\n list.add(obj);\n obj = read();\n }\n return list;\n }", "public ArrayList<String> readItem();", "public void readDrugs() {\n\t\tBufferedReader br;\n\t\tString s;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(\"drugs.txt\"));\n\n\t\t\twhile ((s = br.readLine()) != null) {\n\t\t\t\tString[] fields = s.split(\", \");\n\n\t\t\t\tString name = fields[0];\n\t\t\t\tString chemName = fields[1];\n\t\t\t\tString ingredients = fields[2];\n\t\t\t\tString manufComp = fields[3]; // manufacturing company\n\t\t\t\tString type = fields[4];\n\t\t\t\tString conditions = fields[5];\n\t\t\t\tString contra = fields[6]; // contraindications\n\t\t\t\tDrugs drug = new Drugs(name, chemName, ingredients, manufComp, type, conditions, contra);\n\t\t\t\tdrugs.add(drug);\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "public List<String> read()\n\t{\n\t\treturn null;\n\t}", "public List<Stock> readFile() throws IOException\n {\n \t //System.out.println(\"hhh\");\n \t //List<Stock> listStock = mapper.readValue(file, new TypeReference<List<Stock>>() {});\n \t \n \t List<Stock> listStock = mapper.readValue(file, new TypeReference<List<Stock>>(){});\n \t\n\t\treturn listStock;\n }", "public List<String> load();", "List<String[]> readAll();", "private void readFromInternalStorage() {\n ArrayList<GeofenceObjects> returnlist = new ArrayList<>();\n if (!isExternalStorageReadable()) {\n System.out.println(\"not readable\");\n } else {\n returnlist = new ArrayList<>();\n try {\n FileInputStream fis = openFileInput(\"GeoFences\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n returnlist = (ArrayList<GeofenceObjects>) ois.readObject();\n ois.close();\n System.out.println(returnlist);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n currentList = returnlist;\n }", "public static List<List<String>> readFile() {\r\n List<List<String>> out = new ArrayList<>();\r\n File dir = new File(\"./tmp/data\");\r\n dir.mkdirs();\r\n File f = new File(dir, \"storage.txt\");\r\n try {\r\n f.createNewFile();\r\n Scanner s = new Scanner(f);\r\n while (s.hasNext()) {\r\n String[] tokens = s.nextLine().split(\"%%%\");\r\n List<String> tokenss = new ArrayList<>(Arrays.asList(tokens));\r\n out.add(tokenss);\r\n }\r\n return out;\r\n } catch (IOException e) {\r\n throw new Error(\"Something went wrong: \" + e.getMessage());\r\n }\r\n }", "public static List read(String file){\n\t\tLinkedList<String> data =\tnew LinkedList<String>();\n\t\tString dataRow;\n\t\t\n\t\ttry {\n\t\t\t\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\t\n\t\twhile((dataRow = br.readLine())!=null);{\t\n\t\t\tString[] dataRecord = dataRow.split(\",\");\n\t\t\tdata.addAll(dataRecord);\n\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Could not found file\");\n\t\t\te.printStackTrace();\n\t\t}catch (IOException e) {\n\t\tSystem.out.println(\"Could Not read file\");\n\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "public void setReaderToArray(){\n try{\n String client, number = null;\n\n File reader = new File(\"clientFile/clientInfo.txt\");\n\n Scanner scn = new Scanner(reader);\n scn.useDelimiter(\",\");\n\n while(scn.hasNext()){\n number = scn.next();\n client = scn.next();\n\n clientList.add(client + \" - \" + number);\n }\n scn.close();\n }catch (FileNotFoundException exception){\n System.out.println(\"An error occurred.\");\n }\n }", "private void readNeuronListFromFile(String nameNListFile,\n ArrayList<Integer> list, int type) {\n if (nameNListFile == null || nameNListFile.length() == 0) {\n return;\n }\n\n try {\n // read a xml file\n Document doc = new SAXBuilder().build(new File(nameNListFile));\n Element root = doc.getRootElement();\n if ((root != null)\n && ((root.getName() == \"A\" && type == LayoutPanel.ACT)\n || (root.getName() == \"I\" && type == LayoutPanel.INH)\n || (root\n .getName() == \"P\" && type == LayoutPanel.PRB))) {\n list.clear();\n String[] parts = root.getValue().split(\"[ \\n\\r]\");\n\n Dimension size = layoutPanel.getLayoutSize();\n int numNeurons = size.height * size.width;\n for (String part : parts) {\n try {\n int index = Integer.parseInt(part);\n if (index < numNeurons) { // ignore indexes greater than\n // numNeurons\n list.add(index);\n }\n } catch (NumberFormatException e) {\n System.err.println(\"Illegal number :\" + part);\n }\n }\n }\n } catch (JDOMException je) {\n System.err.println(je);\n } catch (IOException ie) {\n System.err.println(ie);\n }\n }", "public static ArrayList readBiblioscapeTagFile(String filename) {\n ArrayList bibitems = new ArrayList();\n File f = new File(filename);\n if (!f.exists() || !f.canRead() || !f.isFile()) {\n System.err.println(\"Error: \" + filename + \" is not a valid file and|or is not readable.\");\n return null;\n }\n \n try {\n BufferedReader in = new BufferedReader(new FileReader(filename));\n String line;\n HashMap hm = new HashMap();\n HashMap lines = new HashMap();\n StringBuffer previousLine = null;\n while ((line = in.readLine()) != null) {\n // entry delimiter -> item complete\n if (line.equals(\"------\")) {\n String[] type = new String[2];\n String[] pages = new String[2];\n String country = null;\n String address = null;\n Vector comments = new Vector();\n // add item\n Object[] l = lines.entrySet().toArray();\n for (int i = 0; i < l.length; ++i) {\n Map.Entry entry = (Map.Entry)l[i];\n if (entry.getKey().equals(\"AU\")) hm.put(\"author\",entry.getValue().toString());\n else if (entry.getKey().equals(\"TI\")) hm.put(\"title\",entry.getValue().toString());\n else if (entry.getKey().equals(\"ST\")) hm.put(\"booktitle\",entry.getValue().toString());\n else if (entry.getKey().equals(\"YP\")) hm.put(\"year\",entry.getValue().toString());\n else if (entry.getKey().equals(\"VL\")) hm.put(\"volume\",entry.getValue().toString());\n else if (entry.getKey().equals(\"NB\")) hm.put(\"number\",entry.getValue().toString());\n else if (entry.getKey().equals(\"PS\")) pages[0] = entry.getValue().toString();\n else if (entry.getKey().equals(\"PE\")) pages[1] = entry.getValue().toString();\n else if (entry.getKey().equals(\"KW\")) hm.put(\"keywords\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"RM\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"RU\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"RT\")) type[0] = entry.getValue().toString();\n else if (entry.getKey().equals(\"SB\")) comments.add(\"Subject: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"SA\")) comments.add(\"Secondary Authors: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"NT\")) hm.put(\"note\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"PP\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"PB\")) hm.put(\"publisher\",entry.getValue().toString());\n else if (entry.getKey().equals(\"TA\")) comments.add(\"Tertiary Authors: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"TT\")) comments.add(\"Tertiary Title: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"ED\")) hm.put(\"edition\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"DP\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"TW\")) type[1] = entry.getValue().toString();\n else if (entry.getKey().equals(\"QA\")) comments.add(\"Quaternary Authors: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"QT\")) comments.add(\"Quaternary Title: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"IS\")) hm.put(\"isbn\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"LA\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"AB\")) hm.put(\"abstract\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"DI\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"DM\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"AV\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"PR\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"LO\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"AD\")) address = entry.getValue().toString();\n else if (entry.getKey().equals(\"LG\")) hm.put(\"language\",entry.getValue().toString());\n else if (entry.getKey().equals(\"CO\")) country = entry.getValue().toString();\n else if (entry.getKey().equals(\"UR\") || entry.getKey().equals(\"AT\")) {\n String s = entry.getValue().toString().trim();\n hm.put(s.startsWith(\"http://\") || s.startsWith(\"ftp://\") ? \"url\" : \"pdf\",\n entry.getValue().toString());\n }\n else if (entry.getKey().equals(\"C1\")) comments.add(\"Custom1: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"C2\")) comments.add(\"Custom2: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"C3\")) comments.add(\"Custom3: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"C4\")) comments.add(\"Custom4: \" + entry.getValue().toString());\n //else if (entry.getKey().equals(\"RD\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"MB\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"C5\")) comments.add(\"Custom5: \" + entry.getValue().toString());\n else if (entry.getKey().equals(\"C6\")) comments.add(\"Custom6: \" + entry.getValue().toString());\n //else if (entry.getKey().equals(\"FA\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"CN\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"DE\")) hm.put(\"annote\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"RP\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"DF\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"RS\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"CA\")) comments.add(\"Categories: \" + entry.getValue().toString());\n //else if (entry.getKey().equals(\"WP\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"TH\")) comments.add(\"Short Title: \" + entry.getValue().toString());\n //else if (entry.getKey().equals(\"WR\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"EW\")) hm.put(\"\",entry.getValue().toString());\n else if (entry.getKey().equals(\"SE\")) hm.put(\"chapter\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"AC\")) hm.put(\"\",entry.getValue().toString());\n //else if (entry.getKey().equals(\"LP\")) hm.put(\"\",entry.getValue().toString());\n }\n \n String bibtexType = \"misc\";\n if (type[1] != null) { // first check TW\n type[1] = type[1].toLowerCase();\n if (type[1].indexOf(\"article\") >= 0) bibtexType = \"article\";\n else if (type[1].indexOf(\"book\") >= 0) bibtexType = \"book\";\n else if (type[1].indexOf(\"conference\") >= 0) bibtexType = \"inproceedings\";\n else if (type[1].indexOf(\"proceedings\") >= 0) bibtexType = \"inproceedings\";\n else if (type[1].indexOf(\"report\") >= 0) bibtexType = \"techreport\";\n else if (type[1].indexOf(\"thesis\") >= 0\n && type[1].indexOf(\"master\") >= 0) bibtexType = \"mastersthesis\";\n else if (type[1].indexOf(\"thesis\") >= 0) bibtexType = \"phdthesis\";\n } else if (type[0] != null) { // check RT\n type[0] = type[0].toLowerCase();\n if (type[0].indexOf(\"article\") >= 0) bibtexType = \"article\";\n else if (type[0].indexOf(\"book\") >= 0) bibtexType = \"book\";\n else if (type[0].indexOf(\"conference\") >= 0) bibtexType = \"inproceedings\";\n else if (type[0].indexOf(\"proceedings\") >= 0) bibtexType = \"inproceedings\";\n else if (type[0].indexOf(\"report\") >= 0) bibtexType = \"techreport\";\n else if (type[0].indexOf(\"thesis\") >= 0\n && type[0].indexOf(\"master\") >= 0) bibtexType = \"mastersthesis\";\n else if (type[0].indexOf(\"thesis\") >= 0) bibtexType = \"phdthesis\";\n }\n \n // concatenate pages\n if (pages[0] != null || pages[1] != null)\n hm.put(\"pages\",(pages[0] != null ? pages[0] : \"\")\n + (pages[1] != null ? \"--\" + pages[1] : \"\"));\n \n // concatenate address and country\n if (address != null)\n hm.put(\"address\",address + (country != null ? \", \" + country : \"\"));\n \n if (comments.size() > 0) { // set comment if present\n StringBuffer s = new StringBuffer();\n for (int i = 0; i < comments.size(); ++i)\n s.append((i > 0 ? \"; \" : \"\")+ comments.elementAt(i).toString());\n hm.put(\"comment\",s.toString());\n }\n BibtexEntry b = new BibtexEntry(\n Globals.DEFAULT_BIBTEXENTRY_ID,\n Globals.getEntryType(bibtexType));\n b.setField(hm);\n bibitems.add(b);\n \n hm.clear();\n lines.clear();\n previousLine = null;\n \n continue;\n }\n // new key\n if (line.startsWith(\"--\") && line.length() >= 7 && line.substring(4,7).equals(\"-- \")) {\n lines.put(line.substring(2,4),previousLine = new StringBuffer(line.substring(7)));\n continue;\n }\n // continuation (folding) of previous line\n if (previousLine == null) // sanity check; should never happen\n return null;\n previousLine.append(line.trim());\n }\n } catch (IOException e) {\n return null;\n }\n \n return bibitems;\n }", "public List<RankList> readInput(String inputFile) {\n/* 661 */ return FeatureManager.readInput(inputFile, mustHaveRelDoc, useSparseRepresentation);\n/* */ }", "public static ArrayList readJStorFile(String filename) {\n ArrayList bibitems = new ArrayList();\n File f = new File(filename);\n if (!f.exists() || !f.canRead() || !f.isFile()) {\n System.err.println(\"Error: \" + filename + \" is not a valid file and|or is not readable.\");\n return null;\n }\n \n String s = \"\";\n try {\n BufferedReader in = new BufferedReader(new FileReader(filename));\n \n while (!s.startsWith(\"Item Type\"))\n s = in.readLine();\n \n mainloop: while ((s = in.readLine()) != null) {\n if (s.equals(\"\"))\n continue;\n if (s.startsWith(\"-----------------------------\"))\n break mainloop;\n String[] fields = s.split(\"\\t\");\n BibtexEntry be = new BibtexEntry(Util.createNeutralId());\n try {\n if (fields[0].equals(\"FLA\"))\n be.setType(BibtexEntryType.getType(\"article\"));\n setIfNecessary(be, \"title\", fields[2]);\n setIfNecessary(be, \"author\", fields[4].replaceAll(\"; \", \" and \"));\n setIfNecessary(be, \"journal\", fields[7]);\n setIfNecessary(be, \"volume\", fields[9]);\n setIfNecessary(be, \"number\", fields[10]);\n String[] datefield = fields[12].split(\" \");\n setIfNecessary(be, \"year\", datefield[datefield.length-1]);\n //for (int i=0; i<fields.length; i++)\n // Util.pr(i+\": \"+fields[i]);\n setIfNecessary(be, \"pages\", fields[13].replaceAll(\"-\", \"--\"));\n setIfNecessary(be, \"url\", fields[14]);\n setIfNecessary(be, \"issn\", fields[15]);\n setIfNecessary(be, \"abstract\", fields[16]);\n setIfNecessary(be, \"keywords\", fields[17]);\n setIfNecessary(be, \"copyright\", fields[21]);\n } catch (ArrayIndexOutOfBoundsException ex) {}\n bibitems.add(be);\n }\n \n } catch (IOException ex) {\n Util.pr(\"Err: \"+s);\n }\n return bibitems;\n }", "private void loadLists() {\n }", "@Override\n\tpublic void readGerant(Gerant g) {\n\t\t\n\t}", "List<T> readAll();", "private ArrayList<Alimento> initLista() {\n try {\n File file = new File(\"C:\\\\Users\\\\Gabri\\\\OneDrive\\\\Ambiente de Trabalho\\\\Calorie\\\\src\\\\Assets\\\\alimentos.txt\");\n FileReader fr = new FileReader(file);\n BufferedReader br = new BufferedReader(fr);\n\n ArrayList<Alimento> lista = new ArrayList<>();\n\n int noLines = Integer.parseInt(br.readLine());\n for(int l=0; l<noLines; l++) {\n String[] alimTks = (br.readLine()).split(\",\");\n\n Alimento alimento = new Alimento(idAlimCounter++,alimTks[0],100,Integer.parseInt(alimTks[1]),Float.parseFloat(alimTks[2]),Float.parseFloat(alimTks[3]),Float.parseFloat(alimTks[4]));\n lista.add(alimento);\n }\n\n return lista;\n }catch (Exception e) {\n System.out.println(\"Sistema - getLista() : \"+e.toString());\n }\n return null;\n }", "public void readWordList() {\n try {\n wordList = XmlStringArrayParser.parse(getAssets().open(Constant.WORDLISTFILE),\n settings.getInt(\"wordMaxLength\", 7));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static List<List<TaggedWord>> getTaggedWordListReader(Reader reader){\n\t\tif(tagger == null)\n\t\t\tInitTagger();\n\t\tList<List<HasWord>> sentences = MaxentTagger.tokenizeText(reader);\n\t\tList<List<TaggedWord>> list = new ArrayList<List<TaggedWord>>();\n\t\tfor (List<HasWord> sentence : sentences) {\n\t\t\tList<TaggedWord> tSentence = tagger.tagSentence(sentence);\n\t\t\tlist.add(tSentence);\n\t\t}\n\t\treturn list;\n\t}", "public static ArrayList readScifinder( String filename)\n {\n \t\tArrayList bibitems=new ArrayList();\n \t\tFile f = new File(filename);\n \n \t\tif(!f.exists() && !f.canRead() && !f.isFile()){\n \t\t\tSystem.err.println(\"Error \" + filename + \" is not a valid file and|or is not readable.\");\n \t\t\treturn null;\n \t\t}\n \t\tStringBuffer sb=new StringBuffer();\n \t\ttry{\n \t\t\tBufferedReader in = new BufferedReader(new FileReader( filename));\n \n \t\t\tString str;\n \t\t\twhile ((str = in.readLine()) != null) {\n \t\t\t\tsb.append(str);\n \t\t\t}\n \t\t\tin.close();\n \n \t\t}\n \t\tcatch(IOException e){return null;}\n \t\tString [] entries=sb.toString().split(\"START_RECORD\");\n \t\tHashMap hm=new HashMap();\n \t\tfor(int i=1; i<entries.length; i++){\n \t\t\tString[] fields = entries[i].split(\"FIELD \");\n \t\t\tString Type=\"\";\n \t\t\thm.clear(); // reset\n \t\t\tfor(int j=0; j<fields.length; j++) if (fields[j].indexOf(\":\") >= 0) {\n \t\t\t\tString tmp[]= new String[2];\n tmp[0] = fields[j].substring(0, fields[j].indexOf(\":\"));\n tmp[1] = fields[j].substring(fields[j].indexOf(\":\")+1);\n \t\t\t\tif(tmp.length > 1){//==2\n \t\t\t\t\tif(tmp[0].equals(\"Author\"))\n \t\t\t\t\t\thm.put( \"author\", tmp[1].replaceAll(\";\",\" and \") );\n \t\t\t\t\telse if(tmp[0].equals(\"Title\"))\n \t\t\t\t\t\thm.put(\"title\",tmp[1]);\n \n \t\t\t\t\telse if(tmp[0].equals(\"Journal Title\"))\n \t\t\t\t\t\thm.put(\"journal\",tmp[1]);\n \n \t\t\t\t\telse if(tmp[0].equals(\"Volume\"))\n \t\t\t\t\thm.put(\"volume\",tmp[1]);\n \t\t\t\telse if(tmp[0].equals(\"Page\"))\n \t\t\t\t\thm.put(\"pages\",tmp[1]);\n \t\t\t\telse if(tmp[0].equals(\"Publication Year\"))\n \t\t\t\t\thm.put(\"year\",tmp[1]);\n \t\t\t\telse if(tmp[0].equals(\"Abstract\"))\n \t\t\t\t\thm.put(\"abstract\",tmp[1]);\n \t\t\t\telse if(tmp[0].equals(\"Supplementary Terms\"))\n \t\t\t\t\thm.put(\"keywords\",tmp[1]);\n \t\t\t\telse if(tmp[0].equals(\"Document Type\"))\n \t\t\t\t\tType=tmp[1].replaceAll(\"Journal\",\"article\");\n \t\t\t}\n \t }\n \n \t BibtexEntry b=new BibtexEntry(Globals.DEFAULT_BIBTEXENTRY_ID,\n \t\t\t\t\t\t\t\t\t Globals.getEntryType(Type)); // id assumes an existing database so don't create one here\n \t b.setField( hm);\n \t bibitems.add( b );\n \n \t}\n \treturn bibitems;\n }", "private ArrayList<Book> readBookCollection() {\n File file = new File(\"books.txt\");\n ArrayList<Book> collection = new ArrayList<Book>();\n try {\n FileReader fileReader = new FileReader(file);\n BufferedReader reader = new BufferedReader(fileReader);\n while (true) {\n String line = reader.readLine();\n if (line == null) break;\n line = line.trim();\n if (line.equals(\"\")) continue; // ignore possible blank lines\n String[] bookInfo = line.split(\" :: \");\n collection.add(new Book(bookInfo[0], bookInfo[1]));\n }\n }\n catch (IOException e) {\n System.out.println(e.getMessage());\n }\n return collection;\n }", "private void readListFromFile() {\n // clear existing list\n if (listArr == null || listArr.size() > 0) {\n listArr = new ArrayList<>();\n }\n\n try {\n Scanner scan = new Scanner(openFileInput(LIST_FILENAME));\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n listArr.add(line);\n }\n\n if (listAdapter != null) {\n listAdapter.notifyDataSetChanged();\n }\n\n } catch (IOException ioe) {\n Log.e(\"ReadListFromFile\", ioe.toString());\n }\n\n }", "private static ArrayList<ArrayList<Integer>> populateListOfInputs() {\n\t\t\n\t\tArrayList<ArrayList<Integer>> listOflist = new ArrayList<ArrayList<Integer>>();\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(filePath);\n\t\t\tBufferedReader br = new BufferedReader(fr);\t\t\n\t\t\t\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t// Remove all spaces, '[' and ']'\n\t\t\t\tString numbers = line.replace(\" \", \"\");\n\t\t\t\tnumbers = numbers.replace(\"[\", \"\");\n\t\t\t\tnumbers = numbers.replace(\"]\", \"\");\n\t\t\t\t\n\t\t\t\tif(line.equals(\"\")) {\n\t\t\t\t\t//if empty line leave it and continue the loop\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\t\t\n\t\t\t\tString[] individualnums = numbers.split(\",\");\n\t\t\t\tfor (int i = 0; i < individualnums.length; i++) {\t\t\t\t\t\n\t\t\t\t\tlist.add(Integer.parseInt(individualnums[i]));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tlistOflist.add(list);\t\t\t\t\n\t\t\t}\t\t\n\t\t\t\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listOflist;\n\t}", "public void stockLoad() {\n try {\n File file = new File(stockPath);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String data = scanner.nextLine();\n String[] userData = data.split(separator);\n Stock stock = new Stock();\n stock.setProductName(userData[0]);\n int stockCountToInt = Integer.parseInt(userData[1]);\n stock.setStockCount(stockCountToInt);\n float priceToFloat = Float.parseFloat(userData[2]);\n stock.setPrice(priceToFloat);\n stock.setBarcode(userData[3]);\n\n stocks.add(stock);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "public List<String> readFileIntoList(String filepath) throws IOException;", "public void genLists() {\n\t}", "private static void readBooksInfo() {\n List<eGenre> arrBook = new ArrayList<>();\n\n // 1 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.ADVENTURE);\n book.add(new Book(1200, arrBook, \"Верн Жюль\", \"Таинственный остров\", 1875));\n arrBook.clear();\n // 2 //\n arrBook.add(eGenre.FANTASY);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(425, arrBook, \"Григоренко Виталий\", \"Иван-душитель\", 1953));\n arrBook.clear();\n // 3 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(360, arrBook, \"Сейгер Райли\", \"Последние Девушки\", 1992));\n arrBook.clear();\n // 4 //\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(385, arrBook, \"Ольга Володарская\", \"То ли ангел, то ли бес\", 1995));\n arrBook.clear();\n // 5 //\n arrBook.add(eGenre.NOVEL);\n arrBook.add(eGenre.ACTION);\n book.add(new Book(180, arrBook, \"Лихэйн Деннис\", \"Закон ночи\", 1944));\n arrBook.clear();\n // 6 //\n arrBook.add(eGenre.NOVEL);\n book.add(new Book(224, arrBook, \"Мураками Харуки\", \"Страна Чудес без тормозов и Конец Света\", 1985));\n arrBook.clear();\n // 7 //\n arrBook.add(eGenre.STORY);\n book.add(new Book(1200, arrBook, \"Джон Хейвуд\", \"Люди Севера: История викингов, 793–1241\", 2017));\n arrBook.clear();\n // 8 //\n arrBook.add(eGenre.ACTION);\n arrBook.add(eGenre.MYSTIC);\n arrBook.add(eGenre.DETECTIVE);\n book.add(new Book(415, arrBook, \"Линдквист Юн\", \"Впусти меня\", 2017));\n arrBook.clear();\n // 9 //\n arrBook.add(eGenre.ACTION);\n book.add(new Book(202, arrBook, \"Сухов Евгений\", \"Таежная месть\", 2016));\n arrBook.clear();\n // 10 //\n arrBook.add(eGenre.DETECTIVE);\n arrBook.add(eGenre.MYSTIC);\n book.add(new Book(231, arrBook, \"Винд Кристиан\", \"Призраки глубин\", 2019));\n arrBook.clear();\n }", "List<Tag> load();", "public void llenDic(){\r\n ArrayList<String> wor= new ArrayList<String>();\r\n ArrayList<Association<String,String> >asociaciones= new ArrayList<Association<String,String>>();\r\n \r\n try {\r\n \r\n arch = new File (\"diccionario.txt\");\r\n fr = new FileReader (arch);\r\n br = new BufferedReader(fr);\r\n\r\n \r\n String lin;\r\n \r\n while((lin=br.readLine())!=null){\r\n wor.add(lin);\r\n }\r\n }\r\n catch(Exception e){\r\n e.printStackTrace();\r\n }finally{\r\n \r\n try{ \r\n if( null != fr ){ \r\n fr.close(); \r\n } \r\n }catch (Exception e2){ \r\n e2.printStackTrace();\r\n }\r\n }\r\n \r\n //Ciclo para separar y obtener la palabra en ingles y español\r\n for(int i=0; i<wor.size()-1;i++){\r\n int lugar=wor.get(i).indexOf(',');\r\n String ing=wor.get(i).substring(0,lugar);\r\n String esp=wor.get(i).substring(lugar+1,wor.get(i).length());\r\n asociaciones.add(new Association(ing, esp));\r\n }\r\n \r\n rz.setValue(asociaciones.get(0));\r\n for (int i=1; i<asociaciones.size(); i++){\r\n insertarNodo(rz, asociaciones.get(i));\r\n }\r\n }", "public static List<TaggedWord> getFlatTaggedWordListReader(Reader reader){\n\t\tif(tagger == null)\n\t\t\tInitTagger();\n\t\tList<List<HasWord>> sentences = MaxentTagger.tokenizeText(reader);\n\t\tList<TaggedWord> list = new ArrayList<TaggedWord>();\n\t\tfor (List<HasWord> sentence : sentences) {\n\t\t\tList<TaggedWord> tSentence = tagger.tagSentence(sentence);\n\t\t\tlist.addAll(tSentence);\n\t\t}\n\t\treturn list;\n\t}", "public static ArrayList<String> getLlistaNoms() throws IOException{\n return ctrl_Persistencia.llistaFitxers(\"@../../Dades\",\"llista\");\n }", "public ArrayList<ArrayList<Character> > reader(java.io.InputStream in) throws IOException{\n String s = \"\";\n int data = in.read();\n while(data!=-1){\n s += String.valueOf((char)data);\n data = in.read();\n }\t\t\t\t\t\t\t\t// s now has the input file stored as a string\n ArrayList<ArrayList<Character> > arr = new ArrayList<>();\n for(int i = 0;i<s.length();){\n ArrayList<Character> a = new ArrayList<>();\n while(s.charAt(i)!='\\n'){\n if((s.charAt(i)-'a'>=0&&s.charAt(i)-'a'<=25)||(s.charAt(i)-'0'>=0&&s.charAt(i)-'0'<=9)){ //taking only alphanumerics\n a.add(s.charAt(i));\n }\n i++;\n }\n arr.add(a);\n i++;\n }\n return arr;\n }", "public static List<List<String>> readCode(String fName){\n List<String> list = Aron.readFileLineByte(fName, 200);\n List<List<String>> list2d = new ArrayList<>();\n\n List<String> line = new ArrayList<>();\n for(String s : list){\n\n if(s.trim().length() > 0){\n line.add(s);\n }else{\n if(line.size() > 0) {\n list2d.add(line);\n line = new ArrayList<>();\n }\n }\n }\n return list2d;\n }", "static void readRecipes() {\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString cvsSplitBy = \",\";\n\t\ttry {\n\n\t\t\tbr = new BufferedReader(new FileReader(inputFileLocation));\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tString[] currentLine = line.split(cvsSplitBy);\n\t\t\t\tRecipe currentRecipe = new Recipe(currentLine[0]);\n\t\t\t\t/*\n\t\t\t\t * String[] recipe=new String[currentLine.length-1];\n\t\t\t\t * System.arraycopy(currentLine,1,recipe,0,recipe.length-2);\n\t\t\t\t */\n\t\t\t\tString[] recipe = java.util.Arrays.copyOfRange(currentLine, 1,\n\t\t\t\t\t\tcurrentLine.length);\n\t\t\t\tArrayList<String> ingredients = new ArrayList<String>();\n\t\t\t\tfor (String a : recipe) {\n\t\t\t\t\tingredients.add(a);\n\t\t\t\t}\n\t\t\t\tcurrentRecipe.setIngredients(ingredients);\n\t\t\t\tRecipes.add(currentRecipe);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "java.util.List<stockFilePT102.StockDocument.Stock> getStockList();", "public byte[] readRawList() throws IOException {\n Buffer buffer = new Buffer(new byte[] { (byte) Type.LIST.code });\n byte[] bytes = readRaw();\n while (bytes != null) {\n buffer.append(bytes);\n bytes = readRaw();\n }\n buffer.append(new byte[] { (byte) Type.MARKER.code });\n return buffer.get();\n }", "public abstract List<T> readObj(String path);", "public void DeserialiseList() throws IOException {\n ObjectInputStream inputStream = null;\n\n try {\n inputStream = new ObjectInputStream(new FileInputStream(\"Warehouses\" + \".dat\"));\n Wlist = (WarehouseList) inputStream.readObject();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n inputStream.close();\n }\n try {\n inputStream = new ObjectInputStream(new FileInputStream(\"Stores\" + \".dat\"));\n Slist = (StoreList) inputStream.readObject();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n inputStream.close();\n }\n\n try {\n inputStream = new ObjectInputStream(new FileInputStream(\"WarehouseAdminList\" + \".dat\"));\n WAlist = (WarehouseAdminList) inputStream.readObject();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n inputStream.close();\n }\n\n try {\n inputStream = new ObjectInputStream(new FileInputStream(\"StoreAdminList\" + \".dat\"));\n SAlist = (StoreAdminList) inputStream.readObject();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n } finally {\n inputStream.close();\n }\n\n }", "LinkedListCelest<celestialBody> createList() {\n\t\tLinkedListCelest<celestialBody> b = new LinkedListCelest<celestialBody>();\r\n\t\tfilehandler f = new filehandler();\r\n\t\tf.openfile(f.path);\r\n\t\tf.GetAtt();\r\n\t\tb.pixeldist = f.distance;\r\n\t\tfor(int i = 2; i< f.g.size(); i++) {\r\n\t\t\tcelestialBody j = new celestialBody();\r\n\t\t\tString [] arr = f.g.get(i).split(\",\");\r\n\t\t\tfor(int g=0; g< arr.length; g++) {\r\n\t\t\t\tswitch(g) {\r\n\t\t\t\tcase 1:j.setName(arr[0]);\r\n\t\t\t\tcase 2: j.setMass(Double.parseDouble(arr[1]));\r\n\t\t\t\tcase 3: j.setXC(Integer.parseInt(arr[2]));\r\n\t\t\t\tcase 4: j.setYC(Integer.parseInt(arr[3]));\r\n\t\t\t\tcase 5: j.setXV(Double.parseDouble(arr[4]));\r\n\t\t\t\tcase 6: j.setYV( Double.parseDouble(arr[5]));\r\n\t\t\t\tcase 7: j.setPixels( Integer.parseInt(arr[6]));\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tb.add(j);\r\n\t\t//b.pixeldist = f.distance;\r\n\t\t}\r\n\t\t\r\n\t\treturn b;\r\n\t}", "public long[] nextWeightList() throws IOException {\n List<Long> l = new ArrayList<Long>();\n long[] w = null;\n long e;\n char first;\n int tt;\n tt = tok.nextToken();\n if (tt == '(') {\n logger.debug(\"weight list\");\n tt = tok.nextToken();\n while (true) {\n if (tt == StreamTokenizer.TT_EOF)\n break;\n if (tt == ')')\n break;\n if (tok.sval != null) {\n first = tok.sval.charAt(0);\n if (digit(first)) {\n e = Long.parseLong(tok.sval);\n l.add(Long.valueOf(e));\n //System.out.println(\"w: \" + e);\n }\n }\n tt = tok.nextToken(); // also comma\n }\n }\n Object[] ol = l.toArray();\n w = new long[ol.length];\n for (int i = 0; i < w.length; i++) {\n w[i] = ((Long) ol[ol.length - i - 1]).longValue();\n }\n return w;\n }", "private static Wine[] read() {\r\n\t\t// We can add files we would like to parse in the following array. We use an array list\r\n\t\t// because it allows us to add dynamically.\r\n\t\tString[] file_adr = { \"data/winemag-data_first150k.txt\", \"data/winemag-data-130k-v2.csv\" };\r\n\t\tArrayList<Wine> arr_list = new ArrayList<Wine>();\r\n\t\t\r\n\t\tint k = 0;\r\n\t\twhile (k < file_adr.length) {\r\n\t\t\tboolean flag = false;\r\n\t\t\tif (file_adr[k].endsWith(\".csv\")) {\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t\tFile f = new File(file_adr[k]);\r\n\t\t\tScanner sc = null;\r\n\t\t\ttry {\r\n\t\t\t\tsc = new Scanner(f, \"UTF-8\");\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tsc.nextLine();\r\n\t\t\tInteger id_count = 0;\r\n\t\t\tif(!flag) {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\r\n\t\t\t\t\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 10) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString variety = st[count+8];\r\n\t\t\t\t\tString winery = st[count+9];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\t\"\",\r\n\t\t\t\t\t\t\t\"\"\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t//System.out.println(arr_list.size());\r\n\t\t\t\t\tid_count = arr_list.size();\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\t//System.out.println(st[0]);\r\n\t\t\t\t\t/*if(Integer.parseInt(st[0]) == 30350) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 12) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString taster_name = st[count+8];\r\n\t\t\t\t\tString taster_handle = st[count+9];\r\n\t\t\t\t\tString variety = st[count+10];\r\n\t\t\t\t\tString winery = st[count+11];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\ttaster_name,\r\n\t\t\t\t\t\t\ttaster_handle\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// We no longer need an array list. we have our size required. Put into an array.\r\n\t\tWine[] array_wines = new Wine[arr_list.size()];\r\n\t\tarray_wines = arr_list.toArray(array_wines);\r\n\t\t\r\n\t\treturn array_wines;\r\n\t\r\n\t}", "public void loadList(String name){\n }", "private void readItems() {\n }", "public ArrayList<String> loadRead() {\n\n\t\tSAVE_FILE = READ_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "private void readAdv(List list, int ver)\n\t\t\tthrows IOException, FileNotFoundException {\n\t}", "@Before\n public void setUp() throws Exception {\n lego = new CSVReader();\n array = lego.getLegoArrayList();\n collection = new NewDoublyLinkedList();\n\n for(String[] number : array){\n String numb = number[0];\n numb = numb.replace(\"\\\"\", \"\");\n collection.add(Integer.parseInt(numb)); //Voegt alle elementen toe aan de newlinkedlist\n }\n }", "@Override\n\tpublic void readAllAGBSources() {\n\t\t\n\t\tAPIController apic = new APIController();\n\t\t\n\t\tString s = apic.getAllAGBSources().toString();\n\t\t\n\t\tString [] sarray = s.split(\"],\");\n\t\t\n\t\tSystem.out.println(\"Alle AGBs der Datenbank: \");\n\t\tSystem.out.println(\" \");\n\t\t\n\t\tfor (int i=0; i<sarray.length; i++)\n\t\t{\n\t\t\tallAGBSources.add(sarray[i]);\n\t\t\t//System.out.println(sarray[i]);\n\t\t}\n\t\t\n\t\t\n\t\tIterator iter = allAGBSources.iterator();\n\t\t\n\t\twhile (iter.hasNext())\n\t\t{\n\t\t\tSystem.out.println(iter.next());\n\t\t}\n\n\t}", "private void loadFromFile(){\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Countbook>>() {}.getType();\n countbookList = gson.fromJson(in, listType);\n } catch (FileNotFoundException e) {\n countbookList = new ArrayList<Countbook>();\n }\n }", "public ArrayList<String> loadToRead() {\n\n\t\tSAVE_FILE = TO_READ_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "public static void main(String[] args) throws IOException, ClassNotFoundException {\n FileInputStream fis =new FileInputStream(\"test.txt\");\n BufferedInputStream bis=new BufferedInputStream(fis);\n ObjectInputStream ois=new ObjectInputStream(bis);\n ArrayList<Goods> list = (ArrayList<Goods>)ois.readObject();\n for (int i = 0; i < list.size(); i++) {\n Goods goods = list.get(i);\n System.out.println(goods);\n }\n\n // Goods goods= (Goods)ois.readObject();\n // System.out.println(goods);\n ois.close();\n\n }", "protected List<String> readFile()\n {\n // Base size 620 for Google KML icons. This might be slow for larger\n // sets.\n List<String> lines = New.list(620);\n try (BufferedReader reader = new BufferedReader(\n new InputStreamReader(getClass().getResourceAsStream(myImageList), StringUtilities.DEFAULT_CHARSET)))\n {\n for (String line = reader.readLine(); line != null; line = reader.readLine())\n {\n lines.add(line);\n }\n }\n catch (IOException e)\n {\n LOGGER.warn(e.getMessage());\n }\n return lines;\n }", "public List<Products> readFile(BufferedReader reader, List<Products> productList) throws IOException {\n\t\tif (null == reader) {\n\t\t\treader = new BufferedReader(new FileReader(FileHandelling.RECORDS_FILE));\n\t\t} else {\n\t\t\tString line;\n\t\t\tProducts products = new Products();\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] temp = line.split(\",\");\n\t\t\t\tproducts = new Products();\n\t\t\t\tproducts.setId(Integer.parseInt(temp[0]));\n\t\t\t\tproducts.setName(temp[1]);\n\t\t\t\tproducts.setBrand(temp[2]);\n\t\t\t\tproducts.setPrice(Float.parseFloat(temp[3]));\n\t\t\t\tproductList.add(products);\n\t\t\t}\n\n\t\t}\n\t\treturn productList;\n\t}", "private static ListOfString readListAndClose(final ILogger aLogger,\r\n final ResultSet aResultSet) {\r\n if (aResultSet==null) return null;\r\n ListOfString r;\r\n if (!moveNext(aLogger, aResultSet)) {\r\n r= new ListOfString();\r\n } else {\r\n r= getRowAsList(aLogger, aResultSet);\r\n }\r\n close(aLogger, aResultSet);\r\n return r;\r\n }", "public reglas(java.io.Reader in) {\n this.zzReader = in;\n }", "public void loadItems() {\n\t\tArrayList<String> lines = readData();\n\t\tfor (int i = 1; i < lines.size(); i++) {\n\t\t\tString line = lines.get(i);\n\t\t\t\n\t\t\tString[] parts = line.split(\",\");\n\t\t\t\n//\t\t\tSystem.out.println(\"Name: \" + parts[0]);\n//\t\t\tSystem.out.println(\"Amount: \" + parts[1]);\n//\t\t\tSystem.out.println(\"Price: \" + parts[2]);\n//\t\t\tSystem.out.println(\"-------\");\n\t\t\t\n\t\t\tString name = parts[0].trim();\n\t\t\tint amount = Integer.parseInt(parts[1].trim());\n\t\t\tdouble price = Double.parseDouble(parts[2].trim());\n\t\t\t\n\t\t\tItem item = new Item(name, amount, price);\n\t\t\titemsInStock.add(item);\n\t\t}\n\t}", "public static < E > ArrayList<E> readArrayList () throws IOException, ClassNotFoundException{\n ArrayList<E> outputArrayList = new ArrayList<E>();\n // åbn inputstreams på al.ser\n FileInputStream fi = new FileInputStream(\"al.ser\");\n ObjectInputStream oi = new ObjectInputStream(fi);\n // cast til arraylist af generisk type\n outputArrayList = (ArrayList<E>) oi.readObject();\n // luk inputstreams og returner\n oi.close();\n fi.close();\n return outputArrayList;\n }", "private void loadCarListings() {\r\n try {\r\n cars = Reader.readCars(new File(CARLISTINGS_FILE));\r\n } catch (IOException e) {\r\n cars = new Cars();\r\n }\r\n }", "public ArrayList<Item> loadItems(String filename) {\n ArrayList<Item> itemsList = new ArrayList<>();\n try {\n File file = new File(filename);\n BufferedReader reader= new BufferedReader(new InputStreamReader(new FileInputStream(file), \"UTF-8\"));\n String line= reader.readLine();\n while (line != null){\n String[] splitedLine = line.split(\"=\");\n String name = splitedLine[0];\n int weight = Integer.parseInt(splitedLine[1]) / 1000; // on convertit en tonnes\n itemsList.add(new Item(name,weight));\n line = reader.readLine();\n }\n reader.close(); //pour arreter la memoire tampon\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n\n return itemsList;\n }", "@NotNull\n @Deprecated\n protected abstract List<? extends ListItem> readItems();", "public static void Reader(String document, ArrayList<String> listSymptoms) throws IOException {\n\t\t\t\tif (document != null) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(document));\n\t\t\t\tString line = br.readLine();\n\t\t\t\twhile ((line = br.readLine()) != null){\n\t\t\t\t\t\n\t\t\t\t\t//see the content of the files in the console \n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t\t\n\t\t\t\t\t// add the symptoms in the list\n\t\t\t\t\tlistSymptoms.add(line);\n\t\t\t }\n\t\t\t\t\t// see the list in the console\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(listSymptoms);\n\t\t\t\t\t\n\t\t\t br.close();\n\t\t\t \n\t\t\t \n\t\t\t\t}\n\t}", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n Gson gson = new Gson();\n Type listFeelingType = new TypeToken<ArrayList<Feeling>>(){}.getType();\n recordedFeelings.clear();\n ArrayList<Feeling> tmp = gson.fromJson(reader, listFeelingType);\n recordedFeelings.addAll(tmp);\n fis.close();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n recordedFeelings = new ArrayList<Feeling>();\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public ListReader(String stop) {\n this.stop = stop;\n ListItemReader r = new ListItemReader();\n r.setListReader(this);\n r.setStop(stop);\n this.reader = r;\n this.seperator = new TextReader(\",\");\n }", "public void read() {\n String line = \"\";\n int counter = 0;\n try {\n input = new BufferedReader(new FileReader(file));\n while (line != null) {\n if (!(line.equals(\"arglebargle\"))) {//not a default\n names.add(line);\n }\n }\n input.close();\n }\n catch (IOException e) {\n }\n }", "@Override\n\tprotected ListEntity parseList(InputStream is) throws Exception {\n\t\tVipStudentList studentList = VipStudentList.parse(is);\n\t\treturn studentList;\n\t}", "private ArrayList<Book> loadBooks(InputStream is) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is));\r\n\t\tStringBuilder jsonFileContent = new StringBuilder();\r\n\t\t//read line by line from file\r\n\t\tString nextLine = null;\r\n\t\twhile ((nextLine = br.readLine()) != null){\r\n\t\t\tjsonFileContent.append(nextLine);\r\n\t\t}\r\n\r\n\t\tGson gson = new Gson();\r\n\t\t//this is a require type definition by the Gson utility so Gson will \r\n\t\t//understand what kind of object representation should the json file match\r\n\t\tType type = new TypeToken<ArrayList<Book>>(){}.getType();\r\n\t\tArrayList<Book> books = gson.fromJson(jsonFileContent.toString(), type);\r\n\t\t//close\r\n\t\tbr.close();\t\r\n\t\treturn books;\r\n\t}", "private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Sub>>(){}.getType();\n subList = gson.fromJson(in, listType);\n\n } catch (FileNotFoundException e) {\n subList = new ArrayList<Sub>();\n }\n }", "public LinkedList InicioListaConstructor(){\n\t\t String sCurrentLine, AreaTrab;\n\t\t LinkedList<String> lista= new LinkedList<String>();\n\t\t boolean flag=true;\n\t\t int contador1, contador3;\n\t\t try{\n\t\t\t BufferedReader leer = new BufferedReader(new FileReader(\"Maq.txt\"));\n\t\t\t contador3=1;\n\t\t\t sCurrentLine = leer.readLine();\n\t\t\t AreaTrab= sCurrentLine;\n\t\t\t lista.add(AreaTrab);\n\t\t\t contador1=1; //Elementos que faltaron por revisar.\n\t\t\t while ((sCurrentLine = leer.readLine()) != null) {\n\t\t\t\t if(flag==true){\n\t\t\t\t\t if(contador1%3==0){\n\t\t \t\t\tif(sCurrentLine.equals(AreaTrab)==false){\n\t\t \t\t\t\tflag=false;\n\t\t \t\t\t}\n\t\t \t\t}else if(contador1%3==1 |contador1%3==2){\n\t\t \t\t\tlista.add(sCurrentLine);\n\t\t \t\t}\n\t\t\t\t\t contador1++;\n\t\t\t\t }\n\t \tcontador3++;\t\n\t \t}\n\t\t\t System.out.println(\"*****\");\n\t\t\t leer.close();\n\t\t\t for(int i=0; i<lista.size(); i++){\n\t\t\t\t System.out.println(lista.get(i));\n\t\t\t }\n\t\t\t System.out.println(\"*****\");\n\t\t\t\t //Quedan elementos:\n\t\t\t lista.add(String.valueOf(contador1));\n\t\t\t lista.add(String.valueOf(contador3));\n\t\t\t\t return lista;\n\t\t\t\n\t\t }catch (IOException e) {\n\t System.out.println(\"File not found\");\n\t return null;\n\t\t }\n\t}", "public BencodeValue decodeList() throws IOException {\n int c = this.getNextIndicator();\n if (c != 'l') {\n throw new BencodeFormatException(\"List begins with 'l', not '\" +\n (char)c + \"'\");\n }\n this.indicator = 0;\n\n List<BencodeValue> result = new ArrayList<BencodeValue>();\n c = this.getNextIndicator();\n while (c != 'e') {\n result.add(this.decode());\n c = this.getNextIndicator();\n }\n this.indicator = 0;\n\n return new BencodeValue(result);\n }", "private List<CellEle> decodeDoc(InputStream path) throws IOException {\n List<CellEle> list = new ArrayList<>();\n\n String content = FileUtil.readFile(inputStream);\n\n Document document = mxXmlUtils.parseXml(content);\n\n Node root = document.getFirstChild();\n Node child = root.getFirstChild();\n while (child != null) {\n CellEle ele = decodeCell(child);\n if (ele != null) {\n list.add(ele);\n }\n child = child.getNextSibling();\n }\n\n return list;\n }", "public static List read(String path) throws IOException {\n\n List<HashMap> rows=new ArrayList<HashMap>();\n\n Configuration conf = NutchConfiguration.create();\n FileSystem fs = FileSystem.get(conf);\n\n Path file = new Path(path);\n\n SequenceFile.Reader reader = new SequenceFile.Reader(conf, SequenceFile.Reader.file(file));\n\n Writable key = (Writable)\n ReflectionUtils.newInstance(reader.getKeyClass(), conf);\n Node value = new Node();\n\n while(reader.next(key, value)) {\n try {\n HashMap<String, String> t_row = getNodeRow(key,value);\n rows.add(t_row);\n }\n catch (Exception e) {\n }\n }\n\n return rows;\n }", "public static ArrayList readData(){\n ArrayList alr = new ArrayList();\n try{\n ArrayList stringArray = (ArrayList)read(filename);\n for (int i = 0; i < stringArray.size(); i++){\n String st = (String)stringArray.get(i);\n StringTokenizer star = new StringTokenizer(st, SEPARATOR);\n int movieID = Integer.parseInt(star.nextToken().trim());\n String email = star.nextToken().trim();\n String comment = star.nextToken().trim();\n Review review = new Review(movieID, email, comment);\n alr.add(review);\n }\n }\n catch (IOException e){\n System.out.println(\"Exception > \" + e.getMessage());\n }\n return alr;\n }", "private ArrayList<String> parseFile(String file_name){ // extract each line from file AS string (stopList)\r\n ArrayList<String> list = new ArrayList<>();\r\n Scanner scanner = null;\r\n try{\r\n scanner = new Scanner(new BufferedReader(new FileReader(file_name)));\r\n while (scanner.hasNextLine())\r\n {\r\n list.add(scanner.nextLine());\r\n }\r\n }\r\n catch (Exception e ){ System.out.println(\"Error reading file -> \"+e.getMessage()); }\r\n finally {\r\n if(scanner != null ){scanner.close();} // close the file\r\n }\r\n return list;\r\n }", "void read() {\n try {\n pre_list = new ArrayList<>();\n suf_list = new ArrayList<>();\n p_name = new ArrayList<>();\n stem_word = new ArrayList<>();\n\n //reading place and town name\n for (File places : place_name.listFiles()) {\n fin = new FileInputStream(places);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n place.add(temp);\n }\n\n }\n\n //reading month name\n for (File mont : month_name.listFiles()) {\n fin = new FileInputStream(mont);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n month.add(temp);\n }\n }\n\n //reading compound words first\n for (File comp_word : com_word_first.listFiles()) {\n fin = new FileInputStream(comp_word);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n comp_first.add(temp);\n }\n }\n //reading next word of the compound\n for (File comp_word_next : com_word_next.listFiles()) {\n fin = new FileInputStream(comp_word_next);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n comp_next.add(temp);\n }\n }\n //reading chi square feature\n for (File entry : chifile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n chiunion.add(temp);\n }\n newunions.clear();\n newunions.addAll(chiunion);\n chiunion.clear();\n chiunion.addAll(newunions);\n chiunion.removeAll(stop_word_list);\n chiunion.removeAll(p_name);\n chiunion.removeAll(month);\n chiunion.removeAll(place);\n }\n //reading short form from abbrivation \n for (File short_list : abbrivation_short.listFiles()) {\n fin = new FileInputStream(short_list);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n shortform.add(temp);\n }\n }\n //reading long form from the abrivation \n for (File long_list : abbrivation_long.listFiles()) {\n fin = new FileInputStream(long_list);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n longform.add(temp);\n }\n }\n //reading file from stop word\n for (File stoplist : stop_word.listFiles()) {\n fin = new FileInputStream(stoplist);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n stop_word_list.add(temp);\n }\n }\n\n //reading person name list\n for (File per_name : person_name.listFiles()) {\n fin = new FileInputStream(per_name);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n p_name.add(temp);\n }\n }\n\n //reading intersection union\n for (File entry : interfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n interunion.add(temp);\n }\n }\n newunions.clear();\n newunions.addAll(interunion);\n interunion.clear();\n interunion.addAll(newunions);\n interunion.removeAll(stop_word_list);\n interunion.removeAll(p_name);\n interunion.removeAll(month);\n interunion.removeAll(place);\n }\n // reading ig union\n for (File entry : igfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n igunion.add(temp);\n }\n }\n for (String str : igunion) {\n int index = igunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n igunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(igunion);\n igunion.clear();\n igunion.addAll(newunions);\n igunion.removeAll(stop_word_list);\n igunion.removeAll(p_name);\n igunion.removeAll(month);\n igunion.removeAll(place);\n }\n //read df uinfion\n for (File entry : dffile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n dfunion.add(temp);\n }\n }\n for (String str : dfunion) {\n int index = dfunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n dfunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(dfunion);\n dfunion.clear();\n dfunion.addAll(newunions);\n dfunion.removeAll(stop_word_list);\n dfunion.removeAll(p_name);\n dfunion.removeAll(month);\n dfunion.removeAll(place);\n }\n //reading unified model\n for (File entry : unionall_3.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n union_3.add(temp);\n }\n }\n for (String str : union_3) {\n int index = union_3.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n union_3.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(union_3);\n union_3.clear();\n union_3.addAll(newunions);\n union_3.removeAll(stop_word_list);\n union_3.removeAll(p_name);\n union_3.removeAll(month);\n union_3.removeAll(place);\n }\n //unified feature for the new model\n for (File entry : unified.listFiles()) {\n\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n newunion.add(temp);\n\n }\n for (String str : newunion) {\n int index = newunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n newunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(newunion);\n newunion.clear();\n newunion.addAll(newunions);\n newunion.removeAll(stop_word_list);\n newunion.removeAll(p_name);\n newunion.removeAll(month);\n newunion.removeAll(place);\n\n // newunion.addAll(newunions);\n }\n // reading test file and predict the class\n for (File entry : test_doc.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n file_test.add(temp);\n\n }\n newunions.clear();\n newunions.addAll(file_test);\n file_test.clear();\n file_test.addAll(newunions);\n file_test.removeAll(stop_word_list);\n file_test.removeAll(p_name);\n file_test.removeAll(month);\n file_test.removeAll(place);\n }\n //reading the whole document under economy class\n for (File entry : economy.listFiles()) {\n fill = new File(economy + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n economydocument[count1] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n economydocument[count1].add(temp);\n if (temp.length() < 2) {\n economydocument[count1].remove(temp);\n }\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n economydocument[count1].remove(temp);\n }\n }\n for (String str : economydocument[count1]) {\n int index = economydocument[count1].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n economydocument[count1].set(index, stem_word.get(i));\n }\n }\n }\n }\n economydocument[count1].removeAll(stop_word_list);\n economydocument[count1].removeAll(p_name);\n economydocument[count1].removeAll(month);\n economydocument[count1].removeAll(place);\n allecofeature.addAll(economydocument[count1]);\n ecofeature.addAll(economydocument[count1]);\n allfeature.addAll(ecofeature);\n all.addAll(allecofeature);\n count1++;\n\n }\n //reading the whole documents under education category \n for (File entry : education.listFiles()) {\n fill = new File(education + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n educationdocument[count2] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n educationdocument[count2].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n educationdocument[count2].remove(temp);\n }\n }\n }\n\n for (String str : educationdocument[count2]) {\n int index = educationdocument[count2].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n educationdocument[count2].set(index, stem_word.get(i));\n }\n }\n }\n educationdocument[count2].removeAll(stop_word_list);\n educationdocument[count2].removeAll(p_name);\n educationdocument[count2].removeAll(month);\n educationdocument[count2].removeAll(place);\n alledufeature.addAll(educationdocument[count2]);\n edufeature.addAll(educationdocument[count2]);\n allfeature.addAll(edufeature);\n all.addAll(alledufeature);\n count2++;\n }\n// //reading all the documents under sport category\n for (File entry : sport.listFiles()) {\n fill = new File(sport + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n sportdocument[count3] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n sportdocument[count3].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n sportdocument[count3].remove(temp);\n }\n }\n }\n\n for (String str : sportdocument[count3]) {\n int index = sportdocument[count3].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n sportdocument[count3].set(index, stem_word.get(i));\n }\n }\n }\n sportdocument[count3].removeAll(stop_word_list);\n sportdocument[count3].removeAll(p_name);\n sportdocument[count3].removeAll(month);\n sportdocument[count3].removeAll(place);\n allspofeature.addAll(sportdocument[count3]);\n spofeature.addAll(sportdocument[count3]);\n allfeature.addAll(spofeature);\n all.addAll(allspofeature);\n count3++;\n }\n\n// //reading all the documents under culture category\n for (File entry : culture.listFiles()) {\n fill = new File(culture + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n culturedocument[count4] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n\n culturedocument[count4].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n culturedocument[count4].remove(temp);\n }\n }\n\n }\n for (String str : culturedocument[count4]) {\n int index = culturedocument[count4].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n culturedocument[count4].set(index, stem_word.get(i));\n }\n }\n }\n culturedocument[count4].removeAll(stop_word_list);\n culturedocument[count4].removeAll(p_name);\n culturedocument[count4].removeAll(month);\n culturedocument[count4].removeAll(place);\n allculfeature.addAll(culturedocument[count4]);\n culfeature.addAll(culturedocument[count4]);\n allfeature.addAll(culfeature);\n all.addAll(allculfeature);\n count4++;\n\n }\n\n// //reading all the documents under accident category\n for (File entry : accident.listFiles()) {\n fill = new File(accident + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n accedentdocument[count5] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n accedentdocument[count5].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n accedentdocument[count5].remove(temp);\n }\n }\n\n }\n\n for (String str : accedentdocument[count5]) {\n int index = accedentdocument[count5].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n accedentdocument[count5].set(index, stem_word.get(i));\n }\n }\n }\n accedentdocument[count5].removeAll(stop_word_list);\n accedentdocument[count5].removeAll(p_name);\n accedentdocument[count5].removeAll(month);\n accedentdocument[count5].removeAll(place);\n allaccfeature.addAll(accedentdocument[count5]);\n accfeature.addAll(accedentdocument[count5]);\n allfeature.addAll(accfeature);\n all.addAll(allaccfeature);\n count5++;\n }\n\n// //reading all the documents under environmental category\n for (File entry : environmntal.listFiles()) {\n fill = new File(environmntal + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n environmntaldocument[count6] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n environmntaldocument[count6].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n environmntaldocument[count6].remove(temp);\n }\n }\n }\n\n for (String str : environmntaldocument[count6]) {\n int index = environmntaldocument[count6].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n environmntaldocument[count6].set(index, stem_word.get(i));\n }\n }\n }\n environmntaldocument[count6].removeAll(stop_word_list);\n environmntaldocument[count6].removeAll(p_name);\n environmntaldocument[count6].removeAll(month);\n environmntaldocument[count6].removeAll(place);\n allenvfeature.addAll(environmntaldocument[count6]);\n envfeature.addAll(environmntaldocument[count6]);\n allfeature.addAll(envfeature);\n all.addAll(allenvfeature);\n count6++;\n }\n\n// //reading all the documents under foreign affairs category\n for (File entry : foreign_affair.listFiles()) {\n fill = new File(foreign_affair + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n foreign_affairdocument[count7] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n foreign_affairdocument[count7].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n foreign_affairdocument[count7].remove(temp);\n }\n }\n\n }\n for (String str : foreign_affairdocument[count7]) {\n int index = foreign_affairdocument[count7].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n foreign_affairdocument[count7].set(index, stem_word.get(i));\n }\n }\n }\n foreign_affairdocument[count7].removeAll(stop_word_list);\n foreign_affairdocument[count7].removeAll(p_name);\n foreign_affairdocument[count7].removeAll(month);\n foreign_affairdocument[count7].removeAll(place);\n alldepfeature.addAll(foreign_affairdocument[count7]);\n depfeature.addAll(foreign_affairdocument[count7]);\n allfeature.addAll(depfeature);\n all.addAll(alldepfeature);\n count7++;\n }\n\n// //reading all the documents under law and justices category\n for (File entry : law_justice.listFiles()) {\n fill = new File(law_justice + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n law_justicedocument[count8] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n law_justicedocument[count8].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n law_justicedocument[count8].remove(temp);\n }\n }\n\n }\n for (String str : law_justicedocument[count8]) {\n int index = law_justicedocument[count8].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n law_justicedocument[count8].set(index, stem_word.get(i));\n }\n }\n }\n law_justicedocument[count8].removeAll(stop_word_list);\n law_justicedocument[count8].removeAll(p_name);\n law_justicedocument[count8].removeAll(month);\n law_justicedocument[count8].removeAll(month);\n alllawfeature.addAll(law_justicedocument[count8]);\n lawfeature.addAll(law_justicedocument[count8]);\n allfeature.addAll(lawfeature);\n all.addAll(alllawfeature);\n count8++;\n }\n\n// //reading all the documents under other category\n for (File entry : agri.listFiles()) {\n fill = new File(agri + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n agriculture[count9] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n agriculture[count9].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n agriculture[count9].remove(temp);\n }\n }\n\n }\n for (String str : agriculture[count9]) {\n int index = agriculture[count9].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n agriculture[count9].set(index, stem_word.get(i));\n }\n }\n }\n agriculture[count9].removeAll(stop_word_list);\n agriculture[count9].removeAll(p_name);\n agriculture[count9].removeAll(month);\n agriculture[count9].removeAll(place);\n allagrifeature.addAll(agriculture[count9]);\n agrifeature.addAll(agriculture[count9]);\n allfeature.addAll(agrifeature);\n all.addAll(allagrifeature);\n count9++;\n }\n //reading all the documents under politics category\n for (File entry : politics.listFiles()) {\n fill = new File(politics + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n politicsdocument[count10] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n politicsdocument[count10].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n politicsdocument[count10].remove(temp);\n }\n }\n }\n for (String str : politicsdocument[count10]) {\n int index = politicsdocument[count10].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n politicsdocument[count10].set(index, stem_word.get(i));\n }\n }\n }\n politicsdocument[count10].removeAll(stop_word_list);\n politicsdocument[count10].removeAll(p_name);\n politicsdocument[count10].removeAll(month);\n politicsdocument[count10].removeAll(place);\n allpolfeature.addAll(politicsdocument[count10]);\n polfeature.addAll(politicsdocument[count10]);\n allfeature.addAll(polfeature);\n all.addAll(allpolfeature);\n count10++;\n }\n //reading all the documents under science and technology category\n for (File entry : science_technology.listFiles()) {\n fill = new File(science_technology + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n science_technologydocument[count12] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n science_technologydocument[count12].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n science_technologydocument[count12].remove(temp);\n }\n }\n\n }\n for (String str : science_technologydocument[count12]) {\n int index = science_technologydocument[count12].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n science_technologydocument[count12].set(index, stem_word.get(i));\n }\n }\n }\n science_technologydocument[count12].removeAll(stop_word_list);\n science_technologydocument[count12].removeAll(p_name);\n science_technologydocument[count12].removeAll(month);\n science_technologydocument[count12].removeAll(place);\n allscifeature.addAll(science_technologydocument[count12]);\n scifeature.addAll(science_technologydocument[count12]);\n allfeature.addAll(scifeature);\n all.addAll(allscifeature);\n count12++;\n\n }\n\n //reading all the documents under health category\n for (File entry : health.listFiles()) {\n fill = new File(health + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n healthdocument[count13] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n healthdocument[count13].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n healthdocument[count13].remove(temp);\n }\n }\n }\n for (String str : healthdocument[count13]) {\n int index = healthdocument[count13].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n healthdocument[count13].set(index, stem_word.get(i));\n }\n }\n }\n healthdocument[count13].removeAll(stop_word_list);\n healthdocument[count13].removeAll(p_name);\n healthdocument[count13].removeAll(month);\n healthdocument[count13].removeAll(place);\n allhelfeature.addAll(healthdocument[count13]);\n helfeature.addAll(healthdocument[count13]);\n allfeature.addAll(helfeature);\n all.addAll(allhelfeature);\n count13++;\n }\n\n //reading all the file of relgion categories \n for (File entry : army_file.listFiles()) {\n fill = new File(army_file + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n army[count14] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n army[count14].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n army[count14].remove(temp);\n }\n }\n\n }\n for (String str : army[count14]) {\n int index = army[count14].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n army[count14].set(index, stem_word.get(i));\n }\n }\n }\n army[count14].removeAll(stop_word_list);\n army[count14].removeAll(p_name);\n army[count14].removeAll(month);\n army[count14].removeAll(place);\n allarmfeature.addAll(army[count14]);\n armfeature.addAll(army[count14]);\n allfeature.addAll(armfeature);\n all.addAll(allarmfeature);\n count14++;\n }\n } catch (Exception ex) {\n System.out.println(\"here\");\n }\n }", "@Override\r\n\tprotected void readImpl()\r\n\t{\r\n\t\t_listId = readD();\r\n\t\tint count = readD();\r\n\t\tif (count <= 0 || count > Config.MAX_ITEM_IN_PACKET || count * BATCH_LENGTH != getByteBuffer().remaining())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t_items = new Item[count];\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tint objectId = readD();\r\n\t\t\tint itemId = readD();\r\n\t\t\tlong cnt = readQ();\r\n\t\t\tif (objectId < 1 || itemId < 1 || cnt < 1)\r\n\t\t\t{\r\n\t\t\t\t_items = null;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t_items[i] = new Item(objectId, itemId, cnt);\r\n\t\t}\r\n\t}", "private ObservableList<Saucer> loadSaucers(){\r\n try {\r\n File file = new File(\"src/data/saucers.txt\");\r\n FileInputStream fis = new FileInputStream(file);\r\n ObjectInputStream input = new ObjectInputStream(fis);\r\n List<Saucer> list = (List<Saucer>) input.readObject();\r\n ObservableList<Saucer> saucers = FXCollections.observableArrayList(list);\r\n\r\n return saucers;\r\n } catch (Exception ex){\r\n ex.printStackTrace();\r\n\r\n return null;\r\n }\r\n }", "protected abstract List<O> parseFileForObservations(Scanner scn);", "private void readItems() {\n // open file\n File file = getFilesDir();\n File todoFile = new File(file, \"scores.txt\");\n // try to find items to add\n try {\n items = new ArrayList<>(FileUtils.readLines(todoFile));\n } catch (IOException e) {\n items = new ArrayList<>();\n }\n }", "public static ArrayList<Stue> getStueData() {\n ArrayList<Stue> fillArray = new ArrayList<>();\n\n try {\n File fileIn = new File(\"Stuedata.txt\");\n\n Scanner in = new Scanner(fileIn);\n\n while (in.hasNext()) {\n Stue stueData = new Stue();\n stueData.idRum = in.next();\n stueData.navn = in.next();\n stueData.motto = in.next();\n stueData.etage = in.next();\n fillArray.add(stueData);\n }\n in.close(); //WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY?\n } catch (IOException i) {\n i.printStackTrace();\n System.exit(0);\n }\n return fillArray;\n }", "public void genLists() {\n\t\tItem noitem = new Item(\"nothing\", \"You don't see that here.\", \"no_item\", \"\", true);\r\n\t\titems.put(noitem.getId(), noitem);\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//DataInputStream in = new DataInputStream(new FileInputStream(ITEM_FILE));\r\n\t\t\tDataInputStream in = new DataInputStream(getClass().getResourceAsStream(ITEM_FILE));\r\n\t\t\ttry {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tItem new_item = Item.readItem(in);\r\n\t\t\t\t\titems.put(new_item.getId(), new_item);\r\n\t\t\t\t}\r\n\t\t\t} catch (EOFException eof) {}\r\n\t\t\tin.close();\r\n\t\t\t\r\n\t\t\tin = new DataInputStream(getClass().getResourceAsStream(ROOM_FILE));\r\n\t\t\ttry {\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tRoom new_room = Room.readRoom(in, items);\r\n\t\t\t\t\trooms.put(new_room.getId(), new_room);\r\n\t\t\t\t}\r\n\t\t\t} catch (EOFException eof) {}\r\n\t\t\tin.close();\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\t\r\n\t\tplayer.setCurrentRoom(getRoom(\"start\"));\r\n\t}", "public void parseFile(String chemin) {\n try {\n XMLReader xr = XMLReaderFactory.createXMLReader();\n CarburantsParser SaxRead = new CarburantsParser();\n\n xr.setContentHandler(SaxRead);\n xr.parse(chemin);\n\n this.listOfLists = SaxRead.getListOfLists();\n\n LOGGER.info(\"Parsing Ok\");\n\n this.notifyObservers();\n\n } catch (Exception e) {\n LOGGER.error(\"Problème lors du parsing : \" + e);\n }\n }", "public interface Reader {\n public List<String> readAllLines();\n}", "private void getDataLists(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\tFile file = new File(path);\n\t\t\tfile.createNewFile();\n\t\t\tBufferedReader fileReader = new BufferedReader(new FileReader(file));\n\t\t\t\n\t\t\tString str = null;\n\t\t\twhile((str = fileReader.readLine()) != null)\n\t\t\t{\n\t\t\t\tthis.dataList.push(str);\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.out.println(\"Failed : data list read\");\n\t\t}\n\t}", "static List<Student> loadStudentList(InputStream in) {\n return new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8))\n .lines()\n .skip(1)\n .map(Student::fromCsv)\n .collect(Collectors.toList());\n }", "private static ArrayList<String> readInventory(Scanner source) {\n\n\t\tArrayList<String> contents = new ArrayList<String>();\n\n\t\twhile (source.hasNext()) {\n\t\t\tString line = source.nextLine();\n\t\t\tcontents.add(line);\n\t\t}\n\n\t\treturn contents;\n\t}", "public static List read(String fileName) throws IOException {\n\tList data = new ArrayList() ;\n Scanner scanner = new Scanner(new FileInputStream(fileName));\n try {\n while (scanner.hasNextLine()){\n data.add(scanner.nextLine());\n }\n }\n finally{\n scanner.close();\n }\n return data;\n }", "public static ArrayList<Medicine> readMedicine()\n {\n ArrayList<Medicine> newMedicine = new ArrayList<>();\n \n \n try\n {\n FileReader fread = new FileReader(\"Medicine.txt\");\n BufferedReader bread = new BufferedReader(fread);\n \n String Med = \"1\";\n\n while ((Med = bread.readLine()) != null) {\n \n Medicine user = new Medicine(Med);\n newMedicine.add(user); \n }\n bread.close();\n fread.close(); \n } \n catch(Exception error)\n {\n System.out.println(\"Error\" + error);\n }\n \n return (newMedicine);\n }", "ArrayList<WordListItem> addDataFromFile(){\n BufferedReader br;\n InputStream inputStream = context.getResources().openRawResource(R.raw.animal_list);\n br = new BufferedReader(\n new InputStreamReader(inputStream, Charset.forName(\"UTF-8\"))\n );\n String currentLine;\n ArrayList<WordListItem> wordListItems = new ArrayList<WordListItem>();\n try {\n while ((currentLine = br.readLine()) != null) {\n String[] tokens = currentLine.split(\";\");\n\n String word = tokens[0];\n String pronunciation = tokens[1];\n String description = tokens[2];\n\n WordListItem wordItem = new WordListItem(word, pronunciation, description);\n wordItem.setImgResNbr(setImgResFromWord(wordItem.getWord().toLowerCase()));\n wordListItems.add(wordItem);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (br != null) br.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n\n return wordListItems;\n }" ]
[ "0.66583455", "0.65756303", "0.6527426", "0.5990799", "0.59230685", "0.59197253", "0.5903963", "0.59027934", "0.58139116", "0.58077633", "0.58063895", "0.57904696", "0.5749051", "0.5722426", "0.5693453", "0.5691369", "0.56467056", "0.56281066", "0.56262916", "0.56232756", "0.55898285", "0.55833846", "0.5579931", "0.55712557", "0.55653423", "0.5562768", "0.5551483", "0.5539031", "0.5532984", "0.5505776", "0.54710466", "0.54671395", "0.5434338", "0.5432824", "0.5421947", "0.5415873", "0.5398503", "0.5386811", "0.53757286", "0.53590786", "0.5353667", "0.5350364", "0.534484", "0.53349704", "0.5318029", "0.5312579", "0.5309427", "0.53061485", "0.53047323", "0.5295352", "0.5293398", "0.5287332", "0.5278574", "0.5277779", "0.5275513", "0.52679396", "0.5261406", "0.5249671", "0.52478546", "0.52374685", "0.523423", "0.5229075", "0.5222683", "0.5218678", "0.5214967", "0.5214905", "0.521212", "0.52112746", "0.52111894", "0.5211031", "0.5206906", "0.519949", "0.5196411", "0.5195073", "0.5193371", "0.5181887", "0.51790386", "0.5168589", "0.5166322", "0.51628244", "0.51602715", "0.51350534", "0.5134627", "0.51325953", "0.51263654", "0.5114237", "0.5108051", "0.51041305", "0.5101293", "0.51001906", "0.50994426", "0.50986475", "0.50842327", "0.50611794", "0.5060014", "0.50533825", "0.5043783", "0.50384927", "0.50343704", "0.503394" ]
0.66452557
1
Get Germplasm info from a excel file according to Germplasm template
public GermplasmList getGermPlasmList(String fileName) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Excel getExcelInst();", "static Multimap<String, String> readELSXFile(String excelFileLoc, String sheetName) throws Exception {\n logger.info(\"Start executing readELSXFile method !!!\");\n\n Multimap<String, String> returnMap = ArrayListMultimap.create();\n Multimap<String, String> tags_to_select = ArrayListMultimap.create();\n Multimap<String, String> manaraFileFixSchemaMultiMap = LinkedListMultimap.create();\n Multimap<String, String> tags_wd_alias_lst = ArrayListMultimap.create();\n InputStream is = new FileInputStream(new File(excelFileLoc));\n\n Workbook workbook = StreamingReader.builder()\n .rowCacheSize(100) // number of rows to keep in memory (defaults to 10)\n .bufferSize(4096) // buffer size to use when reading InputStream to file (defaults to 1024)\n .open(is); // InputStream or File for XLSX file (required)\n\n // TODO: 12/11/2017 handle exception if sheet not present java.lang.NullPointerException\n Sheet sheet = workbook.getSheet(sheetName);\n// Printing process sheet name\n String sheetNm = sheet.getSheetName();\n logger.info(\"WorkBook/Sheet Name : \" + sheetNm);\n if (sheetNm.equals(\"TagNameAliases\")) {\n logger.info(\"Reading TagNameAliases sheet !!!!!!!\");\n for (Row r : sheet) {\n List<String> row = new ArrayList();\n for (Cell c : r) {\n String colVal = c.getStringCellValue();\n// TODO: do we have to take care for the empty/null values coming from columns or we can use directly add command\n if (colVal != null || colVal.length() > 0)\n row.add(colVal);\n else\n row.add(\"\");\n }\n// Removing the header from the excel read\n if (!row.get(0).equals(\"TagNameId\") && !row.get(1).equals(\"TagNameAlias\"))\n tags_wd_alias_lst.put(row.get(0), row.get(1));\n }\n returnMap = tags_wd_alias_lst;\n }\n\n if (sheetNm.equals(\"WWApp_Tags_to_select\")) {\n logger.info(\"Reading WWApp_Tags_to_select sheet !!!!!!!\");\n for (Row r : sheet) {\n List<String> row = new ArrayList();\n for (Cell c : r) {\n String colVal = c.getStringCellValue();\n if (colVal != null || colVal.length() > 0)\n row.add(colVal);\n else\n row.add(\"\");\n }\n if (row.size() == 31) {\n if (row.get(0).equals(\"Manara\") && row.get(28).equals(\"Diagnostic\")) {\n tags_to_select.put(row.get(30), row.get(4));\n }\n }\n }\n returnMap = tags_to_select;\n }\n if (sheetNm.equals(\"TagNames\")) {\n logger.info(\"Reading TagNames sheet !!!!!!!\");\n for (Row r : sheet) {\n List<String> row = new ArrayList();\n for (Cell c : r) {\n String colVal = c.getStringCellValue().replaceAll(\"\\\"\", \"\");\n if (colVal != null || colVal.length() > 0)\n row.add(colVal);\n else\n row.add(\"\");\n }\n if (!row.get(0).equals(\"TagNameId\") && !row.get(1).equals(\"Name\"))\n manaraFileFixSchemaMultiMap.put(row.get(0), row.get(1));\n else {\n// THIS HAS TO BE CHECKED\n manaraFileFixSchemaMultiMap.put(\"0\", \"Timestamp(+11:00)\");\n }\n }\n returnMap = manaraFileFixSchemaMultiMap;\n }\n return returnMap;\n }", "static void demo2() throws EncryptedDocumentException, InvalidFormatException, IOException {\n\n // Use a file\n Workbook wb = WorkbookFactory.create(new File(\"MyExcel.xls\"));\n\n // Use an InputStream, needs more memory\n // Workbook wb = WorkbookFactory.create(new FileInputStream(\"MyExcel.xlsx\"));\n\n Sheet sheet1 = wb.getSheetAt(0);\n for (Row row : sheet1) {\n for (Cell cell : row) {\n CellReference cellRef = new CellReference(row.getRowNum(), cell.getColumnIndex());\n System.out.print(cellRef.formatAsString());\n System.out.print(\" - \");\n\n switch (cell.getCellType()) {\n case Cell.CELL_TYPE_STRING:\n System.out.println(cell.getRichStringCellValue().getString());\n break;\n case Cell.CELL_TYPE_NUMERIC:\n if (DateUtil.isCellDateFormatted(cell)) {\n System.out.println(cell.getDateCellValue());\n } else {\n System.out.println(cell.getNumericCellValue());\n }\n break;\n case Cell.CELL_TYPE_BOOLEAN:\n System.out.println(cell.getBooleanCellValue());\n break;\n case Cell.CELL_TYPE_FORMULA:\n System.out.println(cell.getCellFormula());\n break;\n default:\n System.out.println();\n }\n }\n }\n\n }", "private OSPARRecords parseExcelFile(String excelFilePath) {\n\n\t\ttry {\n\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tbuilder.setPrettyPrinting();\n\t\t\tGson gson = builder.create();\n\t\t\t\n\t\t\t\n\t\t\tOSPARRecords or = new OSPARRecords();\n\n\t\t\tFile file = new File(excelFilePath);\n\t\t\tFileInputStream inputStream = new FileInputStream(new File(excelFilePath));\n\n\t\t\tWorkbook workbook = new HSSFWorkbook(inputStream);\n\t\t\tSheet firstSheet = workbook.getSheetAt(0);\n\n\t\t\tint row = 0;\n\n\t\t\tDataFormatter formatter = new DataFormatter();\n\t\t\t\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\tRow nextRow = firstSheet.getRow(row);\n\n\t\t\t\tif (nextRow == null) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tString value=nextRow.getCell(0)+\"\";\n\t\t\t\t\n\t\t\t\tif (value.equals(\"\")) {\n\t\t\t\t\t\n\t\t\t\t\tString v3=nextRow.getCell(3)+\"\";\n\t\t\t\t\t\n\t\t\t\t\tif (!v3.equals(\"Source/Reference\")) {\n\t\t\t\t\t\tSystem.out.println(excelFilePath+\"\\t\"+or.CasNo+\"\\t\"+v3+\"\\t\"+value);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\trow++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (value.equals(\"null\")) break;\n\t\t\t\t\n\t\t\t\tfloat fvalue=Float.parseFloat(value);\n\t\t\t\tDecimalFormat decform=new DecimalFormat(\"0.0\");\n\t\t\t\tString svalue=decform.format(fvalue);\n\t\t\t\t\n//\t\t\t\tSystem.out.println(or.CasNo+\"\\t\"+svalue);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tdata_field df = createDataField(nextRow);\n\t\t\t\t\n\t\t\t\tif (df.Value.equals(\"\") && df.Source_Reference.equals(\"\")) {\n\t\t\t\t\trow++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\tif (svalue.equals(\"0.0\")) \n\t\t\t\t\tor.Name=df.Value;\n\t\t\t\tif (svalue.equals(\"1.1\"))\n\t\t\t\t\tor.CasNo=convertCAS(df.Value);\n\t\t\t\tif (svalue.equals(\"1.2\"))\n\t\t\t\t\tor.EINECS=df.Value;\n\t\t\t\tif (svalue.equals(\"1.3\"))\n\t\t\t\t\tor.Synonym=df.Value;\n\t\t\t\tif (svalue.equals(\"1.4\"))\n\t\t\t\t\tor.Group_Function=df.Value;\n\t\t\t\tif (svalue.equals(\"1.5\"))\n\t\t\t\t\tor.Initial_Selection=df.Value;\n\t\t\t\tif (svalue.equals(\"1.6\"))\n\t\t\t\t\tor.Prioritized_For_Action=df.Value;\n\n\t\t\t\tif (svalue.equals(\"2.1\"))\n\t\t\t\t\tor.Molecular_weight.add(df);\n\t\t\t\tif (svalue.equals(\"2.2\"))\n\t\t\t\t\tor.Water_Solubility.add(df);\n\t\t\t\tif (svalue.equals(\"2.3\"))\n\t\t\t\t\tor.Vapor_Pressure.add(df);\n\n\t\t\t\tif (svalue.equals(\"3.1\"))\n\t\t\t\t\tor.Abiotic_OH_Oxidation_t1_2_d.add(df);\n\t\t\t\tif (svalue.equals(\"3.2\"))\n\t\t\t\t\tor.Photolysis_t1_2_d.add(df);\n\t\t\t\tif (svalue.equals(\"3.3\"))\n\t\t\t\t\tor.Ready_Biodegradability.add(df);\n\t\t\t\tif (svalue.equals(\"3.4\"))\n\t\t\t\t\tor.Halflife.add(df);\n\t\t\t\tif (svalue.equals(\"3.5\"))\n\t\t\t\t\tor.Inherent_Biodegradability.add(df);\n\t\t\t\tif (svalue.equals(\"3.6\"))\n\t\t\t\t\tor.Biodeg_QSAR.add(df);\n\t\t\t\t\n\t\t\t\tif (svalue.equals(\"4.1\"))\n\t\t\t\t\tor.logKow.add(df);\n\t\t\t\tif (svalue.equals(\"4.2\"))\n\t\t\t\t\tor.Bcf.add(df);\n\n\t\t\t\tif (svalue.equals(\"5.1\"))\n\t\t\t\t\tor.Acute_toxicity_algae.add(df);\n\t\t\t\tif (svalue.equals(\"5.2\"))\n\t\t\t\t\tor.Acute_toxicity_daphnia.add(df);\n\t\t\t\tif (svalue.equals(\"5.3\"))\n\t\t\t\t\tor.Acute_toxicity_fish.add(df);\n\t\t\t\tif (svalue.equals(\"5.4\"))\n\t\t\t\t\tor.Chronic_toxicity_daphnia.add(df);\n\t\t\t\tif (svalue.equals(\"5.5\"))\n\t\t\t\t\tor.Chronic_toxicity_fish.add(df);\n\t\t\t\tif (svalue.equals(\"5.6\"))\n\t\t\t\t\tor.Aquatox_QSAR.add(df);\n\t\t\t\tif (svalue.equals(\"5.7\"))\n\t\t\t\t\tor.Aquatic_toxicity_Other.add(df);\n\n\n\t\t\t\tif (svalue.equals(\"6.1\"))\n\t\t\t\t\tor.Acute_toxicity.add(df);\n\t\t\t\tif (svalue.equals(\"6.2\"))\n\t\t\t\t\tor.Carcinogenicity.add(df);\n\t\t\t\tif (svalue.equals(\"6.3\"))\n\t\t\t\t\tor.Chronic_toxicity.add(df);\n\t\t\t\tif (svalue.equals(\"6.4\"))\n\t\t\t\t\tor.Mutagenicity.add(df);\n\t\t\t\tif (svalue.equals(\"6.5\"))\n\t\t\t\t\tor.Reprotoxicity.add(df);\n\n\n\t\t\t\tif (svalue.equals(\"7.1\"))\n\t\t\t\t\tor.Production_Volume.add(df);\n\t\t\t\tif (svalue.equals(\"7.2\"))\n\t\t\t\t\tor.Use_Industry_Category.add(df);\n\t\t\t\tif (svalue.equals(\"7.3\"))\n\t\t\t\t\tor.Use_in_articles.add(df);\n\t\t\t\tif (svalue.equals(\"7.4\"))\n\t\t\t\t\tor.Environm_Occur_Measured.add(df);\n\t\t\t\tif (svalue.equals(\"7.5\"))\n\t\t\t\t\tor.Environm_Occur_Modelled.add(df);\n\n\t\t\t\tif (svalue.equals(\"8.1\"))\n\t\t\t\t\tor.Dir_67_548_EEC_Classification.add(df);\n\t\t\t\tif (svalue.equals(\"8.2\"))\n\t\t\t\t\tor.Reg_793_93_EEC_Existing_substances.add(df);\n\t\t\t\tif (svalue.equals(\"8.3\"))\n\t\t\t\t\tor.Dir_2000_60_EEC_WFD.add(df);\n\t\t\t\tif (svalue.equals(\"8.4\"))\n\t\t\t\t\tor.Dir_76_769_EEC_M_U.add(df);\n\t\t\t\tif (svalue.equals(\"8.5\"))\n\t\t\t\t\tor.Dir_76_464_EEC_water.add(df);\n\t\t\t\tif (svalue.equals(\"8.6\"))\n\t\t\t\t\tor.Dir_91_414_EEC_ppp.add(df);\n\t\t\t\tif (svalue.equals(\"8.7\"))\n\t\t\t\t\tor.Dir_98_8_EEC_biocid.add(df);\n\n\t\t\t\tif (svalue.equals(\"9.1\"))\n\t\t\t\t\tor.Hazard_assessment_OECD.add(df);\n\t\t\t\tif (svalue.equals(\"9.2\"))\n\t\t\t\t\tor.Other_risk_assessments.add(df);\n\n\t\t\t\trow++;\n\n\t\t\t}\n\n\t\t\tinputStream.close();\n\t\t\treturn or;\n\t\t\t\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public String excelScrFold() throws Exception \r\n\t\r\n\t{\n\t\t\t try{\t\t\t\t \r\n\t\t\t\t InputStream ExcelFileToRead = new FileInputStream(excelFilePath);\r\n\t\t\t\t\tXSSFWorkbook wb = new XSSFWorkbook(ExcelFileToRead);\r\n\t\t\t\t\t//XSSFWorkbook test = new XSSFWorkbook(); \r\n\t\t\t\t XSSFSheet sheet = wb.getSheetAt(0);\r\n\t\t\t\t XSSFRow row,rowvalue;\r\n\t\t\t\t Iterator<Row> rows = sheet.rowIterator();\r\n\t\t\t\t row = sheet.getRow(0);\r\n\t\t\t\t int i=0;\r\n\t\t\t\t int j=0;\r\n\t\t\t\t try {\r\n\t\t\t\t \t\r\n\t\t\t\t\t\t\tif(row.getCell(0).toString().equalsIgnoreCase(\"Release Number=\")){\r\n\t\t\t\t\t\t\tReleaseNum = row.getCell(1).toString().trim();\r\n\t\t\t\t\t\t\t//System.out.println(ReleaseNum);\r\n\t\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Incorrect format\");\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t } \r\n\t\t\t\t\t catch (NullPointerException e) \r\n\t\t\t\t\t {\r\n\t\t\t\t\t \tlogger.info(\"System Error: \"+e.toString());\r\n\t\t\t\t\t } \r\n\t\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t catch(Exception ioe) \r\n\t\t\t {\r\n\t\t\t\t logger.info(\"System Error: \"+ioe.toString());\r\n\t\t\t\t ioe.printStackTrace();\r\n\t\t\t }\t\t\t \r\n\t\t\t return ReleaseNum;\t \r\n\t}", "public static List<InputDto> readXLSXFile(File file) throws Exception {\n List<InputDto> inputDtos = new ArrayList<>();\n\n Integer i = 0;\n InputStream ExcelFileToRead = new FileInputStream(file);\n XSSFWorkbook wb = new XSSFWorkbook(ExcelFileToRead);\n\n XSSFWorkbook test = new XSSFWorkbook();\n\n XSSFSheet sheet = wb.getSheetAt(0);\n XSSFRow row;\n XSSFCell cell;\n\n Iterator rows = sheet.rowIterator();\n// ss = new String[sheet.getLastRowNum()];\n sheet.getLastRowNum();\n while (rows.hasNext()) {\n InputDto input = new InputDto();\n row = (XSSFRow) rows.next();\n Iterator cells = row.cellIterator();\n if (row.getRowNum() == 0) {\n continue; //just skip the rows if row number is 0 or 1\n }\n String s = \"\";\n while (cells.hasNext()) {\n cell = (XSSFCell) cells.next();\n\n if (cell.getCellType() == HSSFCell.CELL_TYPE_STRING) {\n// System.out.print(cell.getStringCellValue() + \" \");\n s += cell.getStringCellValue().trim() + \"|\";\n } else if (cell.getCellType() == HSSFCell.CELL_TYPE_NUMERIC) {\n// System.out.print(cell.getNumericCellValue() + \" \");\n s += cell.getRawValue().trim() + \"|\";\n } else if (cell.getCellType() == HSSFCell.CELL_TYPE_BLANK) {\n// System.out.print(cell.getNumericCellValue() + \" \");\n s += cell.getStringCellValue().trim() + \"|\";\n }\n /*else {\n //U Can Handel Boolean, Formula, Errors\n }*/\n }\n if (!s.equals(\"\") && s.split(\"\\\\|\").length == 8) {\n input.setLoadName(s.split(\"\\\\|\")[6]);\n input.setLoadSize(s.split(\"\\\\|\")[1]);\n input.setLoadDate(s.split(\"\\\\|\")[0]);\n input.setLoadPath(s.split(\"\\\\|\")[4]);\n input.setLoadType(s.split(\"\\\\|\")[2]);\n input.setCicsName(s.split(\"\\\\|\")[5]);\n input.setRowId(s.split(\"\\\\|\")[7]);\n System.out.println(input.getRowId());\n inputDtos.add(input);\n// ss[i] = s;\n\n } else {\n throw new Exception(\"EXCEL DATA IS NOT COMPELETED\");\n }\n i++;\n }\n\n return inputDtos;\n }", "for( int i=0;i<=rowcount;i++)\r\n \r\n {\r\n XSSFRow row=sheet.getRow(i);\r\n XSSFCell cell=row.getCell(0);\r\n String s=cell.toString(); // for reading multiple data types from Excel sheet\r\n System.out.println(s);\r\n \r\n }", "void readExcel(File existedFile) throws Exception;", "public List<Element> getElementFromExcel(String inputFilePath);", "public String read_XL_Data(String path,String sheet,int row,int cell) throws EncryptedDocumentException, FileNotFoundException, IOException \r\n{\r\n\tString data=\"\";\r\n\r\n\tWorkbook wb = WorkbookFactory.create(new FileInputStream(path));\r\n\tdata=wb.getSheet(sheet).getRow(row).getCell(cell).toString();\r\n\t\r\n\treturn data;\r\n}", "private void gerarArquivoExcel() {\n\t\tFile currDir = getPastaParaSalvarArquivo();\n\t\tString path = currDir.getAbsolutePath();\n\t\t// Adiciona ao nome da pasta o nome do arquivo que desejamos utilizar\n\t\tString fileLocation = path.substring(0, path.length()) + \"/relatorio.xls\";\n\t\t\n\t\t// mosta o caminho que exportamos na tela\n\t\ttextField.setText(fileLocation);\n\n\t\t\n\t\t// Criação do arquivo excel\n\t\ttry {\n\t\t\t\n\t\t\t// Diz pro excel que estamos usando portguês\n\t\t\tWorkbookSettings ws = new WorkbookSettings();\n\t\t\tws.setLocale(new Locale(\"pt\", \"BR\"));\n\t\t\t// Cria uma planilha\n\t\t\tWritableWorkbook workbook = Workbook.createWorkbook(new File(fileLocation), ws);\n\t\t\t// Cria uma pasta dentro da planilha\n\t\t\tWritableSheet sheet = workbook.createSheet(\"Pasta 1\", 0);\n\n\t\t\t// Cria um cabeçario para a Planilha\n\t\t\tWritableCellFormat headerFormat = new WritableCellFormat();\n\t\t\tWritableFont font = new WritableFont(WritableFont.ARIAL, 16, WritableFont.BOLD);\n\t\t\theaderFormat.setFont(font);\n\t\t\theaderFormat.setBackground(Colour.LIGHT_BLUE);\n\t\t\theaderFormat.setWrap(true);\n\n\t\t\tLabel headerLabel = new Label(0, 0, \"Nome\", headerFormat);\n\t\t\tsheet.setColumnView(0, 60);\n\t\t\tsheet.addCell(headerLabel);\n\n\t\t\theaderLabel = new Label(1, 0, \"Idade\", headerFormat);\n\t\t\tsheet.setColumnView(0, 40);\n\t\t\tsheet.addCell(headerLabel);\n\n\t\t\t// Cria as celulas com o conteudo\n\t\t\tWritableCellFormat cellFormat = new WritableCellFormat();\n\t\t\tcellFormat.setWrap(true);\n\n\t\t\t// Conteudo tipo texto\n\t\t\tLabel cellLabel = new Label(0, 2, \"Elcio Bonitão\", cellFormat);\n\t\t\tsheet.addCell(cellLabel);\n\t\t\t// Conteudo tipo número (usar jxl.write... para não confundir com java.lang.number...)\n\t\t\tjxl.write.Number cellNumber = new jxl.write.Number(1, 2, 49, cellFormat);\n\t\t\tsheet.addCell(cellNumber);\n\n\t\t\t// Não esquecer de escrever e fechar a planilha\n\t\t\tworkbook.write();\n\t\t\tworkbook.close();\n\n\t\t} catch (IOException e1) {\n\t\t\t// Imprime erro se não conseguir achar o arquivo ou pasta para gravar\n\t\t\te1.printStackTrace();\n\t\t} catch (WriteException e) {\n\t\t\t// exibe erro se acontecer algum tipo de celula de planilha inválida\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Test\n public void ReadTemplateXLSX() throws Exception {\n int expected = 2;\n int actual = 0;\n Workbook book = readTemplateXLSX(\"src\\\\TestSuite\\\\SampleFiles\\\\template_supervisor.xlsx\");\n Sheet sheet = book.getSheetAt(0);\n Iterator<Row> iterator = sheet.iterator();\n\n while (iterator.hasNext()) {\n Row nextRow = iterator.next();\n Iterator<Cell> cellIterator = nextRow.cellIterator();\n\n while (cellIterator.hasNext()) {\n Cell cell = cellIterator.next();\n switch (cell.getCellTypeEnum()) {\n case STRING:\n if (cell.getRichStringCellValue().getString().trim().equals(\"Students Name:\")) {\n actual = nextRow.getRowNum();\n }\n }\n }\n }\n\n Assert.assertEquals(expected, actual);\n }", "private void getExcelData21ZV() throws Exception {\n\t\tlistHeader = new ArrayList<ExcelPromotionHeader>();\n\t\tlistDetail = new ArrayList<ExcelPromotionDetail>();\n\t\tlistUnit = new ArrayList<ExcelPromotionUnit>();\n\t\tmapHeader = new HashMap<String, ExcelPromotionHeader>();\n\t\tmapUnit = new HashMap<String, ExcelPromotionUnit>();\n\t\tmapErrorPromotion = new HashMap<String, String>();\n\t\tmapType = new HashMap<String, String>();\n\t\tmapPromotionMua = new HashMap<String, ListGroupMua>();\n\t\tmapPromotionKM = new HashMap<String, ListGroupKM>();\n\t\tmapMuaKM = new MapMuaKM();\n\t\tmapPromotionTypeCheck = new HashMap<String, String>();\n\t\tlstHeaderError = new ArrayList<CellBean>();\n\t\tlstDetailError = new ArrayList<CellBean>();\n\t\tlistUnitError = new ArrayList<CellBean>();\n\t\tMap<String, Integer> mapCheckHeaderDuplicate = new HashMap<String, Integer>();\n\t\tMap<String, String> mapCheckType = apParamMgr.getMapPromotionType();\n\t\tWorkbook myWorkBook = null;\n\t\tInputStream is = new FileInputStream(excelFile);\n\t\tint MAX_ARRAY = 10000;\n\t\tfinal int NUM_SHEETS = 2;\n\n\t\tif (!is.markSupported()) {\n\t\t\tis = new PushbackInputStream(is, 8);\n\t\t}\n\t\tif (POIFSFileSystem.hasPOIFSHeader(is)) {\n\t\t\tmyWorkBook = new HSSFWorkbook(is);\n\t\t} else if (POIXMLDocument.hasOOXMLHeader(is)) {\n\t\t\tmyWorkBook = new XSSFWorkbook(OPCPackage.open(is));\n\t\t}\n\t\tif (myWorkBook != null) {\n\t\t\tif (myWorkBook.getNumberOfSheets() < NUM_SHEETS) {\n\t\t\t\tthrow new Exception(ERR_NUM_SHEET);\n\t\t\t}\n\t\t\tSheet headerSheet = myWorkBook.getSheetAt(0);\n\t\t\tSheet detailSheet = myWorkBook.getSheetAt(1);\n\t\t\tSheet unitSheet = myWorkBook.getSheetAt(2);\n\t\t\tint iRun = 0;\n\t\t\ttotalItem = 0;\n\t\t\tint maxSizeSheet1 = 12;\n\t\t\tif (headerSheet != null) {\n\t\t\t\tIterator<?> rowIter = headerSheet.rowIterator();\n\t\t\t\twhile (rowIter.hasNext()) {\n\t\t\t\t\tRow myRow = (Row) rowIter.next();\n\t\t\t\t\tif (iRun == 0) {\n\t\t\t\t\t\tiRun++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean isContinue = true;\n\t\t\t\t\t//Kiem tra su hop le cua Row Import\n\t\t\t\t\tfor (int i = 0; i < maxSizeSheet1; i++) {\n\t\t\t\t\t\tif (myRow.getCell(i) != null && !StringUtil.isNullOrEmpty(getCellValueToString(myRow.getCell(i)))) {\n\t\t\t\t\t\t\tisContinue = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isContinue) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExcelPromotionHeader header = new ExcelPromotionHeader();\n\t\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\ttotalItem++;\n\t\t\t\t\t//0\tget promotionCode\n\t\t\t\t\tString promotionCode = \"\";\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionCode = myRow.getCell(0);\n\t\t\t\t\t\tif (cellPromotionCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = cellPromotionCode.getStringCellValue();\n\t\t\t\t\t\t\t//\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = String.valueOf(cellPromotionCode.getNumericCellValue());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpromotionCode = getCellValueToString(cellPromotionCode);\n\t\t\t\t\t\t\tpromotionCode = promotionCode != null ? promotionCode.toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\theader.promotionCode = promotionCode;\n\t\t\t\t\t\t\terrRow.setContent1(promotionCode);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promotionCode)) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã CTKM\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += ValidateUtil.validateField(promotionCode, \"catalog.promotion.import.column.progcode\", 50, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_MAX_LENGTH, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_CODE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (mapCheckHeaderDuplicate.get(promotionCode) != null) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.product.import.duplicate\", mapCheckHeaderDuplicate.get(promotionCode));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmapCheckHeaderDuplicate.put(promotionCode, myRow.getRowNum());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tPromotionProgram existPromotion = promotionProgramMgr.getPromotionProgramByCode(promotionCode);\n\t\t\t\t\t\t\tif (existPromotion != null && !ActiveType.WAITING.equals(existPromotion.getStatus())) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.program.exists\");\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.get.promotion.error\", promotionCode);\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t//\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"ProgCode\");\n\t\t\t\t\t}\n\t\t\t\t\t//1\tget description\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellDescription = myRow.getCell(1);\n\t\t\t\t\t\tif (cellDescription != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString description = getCellValueToString(cellDescription);\n\t\t\t\t\t\t\theader.description = description;\n\t\t\t\t\t\t\terrRow.setContent2(description);\n\t\t\t\t\t\t\tmessageError += ValidateUtil.validateField(description, \"catalog.promotion.import.column.progpescr\", 100, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_MAX_LENGTH, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_NAME);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"ProgDescr\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//2\tget release\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (myRow.getCell(2) != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\terrRow.setContent3(getCellValueToString(myRow.getCell(2)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Release\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//3\tget promotion type\n\t\t\t\t\tString type = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionType = myRow.getCell(3);\n\t\t\t\t\t\tif (cellPromotionType != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\ttype = getCellValueToString(cellPromotionType);\n\t\t\t\t\t\t\ttype = type != null ? type.toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\theader.type = type;\n\t\t\t\t\t\t\terrRow.setContent4(type);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(type)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.type\"));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (mapCheckType.get(type) == null) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.exists.before\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.type\"));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapType.put(header.promotionCode, type);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"ConditionTypeCode\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//4 get format\n\t\t\t\t\t//try {\n\t\t\t\t\t//\tCell cellFormat = myRow.getCell(4);\n\t\t\t\t\t//\tif (cellFormat != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t//\t\tString format = cellFormat.getStringCellValue();\n\t\t\t\t\t//\t\theader.format = format;\n\t\t\t\t\t//\t\terrRow.setContent5(format);\n\t\t\t\t\t//\t}\n\t\t\t\t\t//} catch (Exception e) {\n\t\t\t\t\t//\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"User1\");\n\t\t\t\t\t//}\n\t\t\t\t\t//4 get fromDate\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellFromDate = myRow.getCell(4);\n\t\t\t\t\t\tif (cellFromDate != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif (cellFromDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDate.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellFromDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellFromDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __fromDate = DateUtil.toDateString(cellFromDate.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\tDate fromDate = DateUtil.toDate(__fromDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\theader.fromDate = fromDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (cellFromDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDate.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellFromDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellFromDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __fromDate = DateUtil.toDateString(cellFromDate.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\tDate fromDate = DateUtil.toDate(__fromDate, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\theader.fromDate = fromDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(cellFromDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tString __fromDate = cellFromDate.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(__fromDate)) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tDate fromDate = DateUtil.toDate(__fromDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\theader.fromDate = fromDate;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\terrRow.setContent5(cellFromDate.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.required\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"FromDate\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//5 get toDate\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellToDate = myRow.getCell(5);\n\t\t\t\t\t\tif (cellToDate != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif (cellToDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDate.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellToDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellToDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __toDate = DateUtil.toDateString(cellToDate.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(__toDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\theader.toDate = toDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (cellToDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDate.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellToDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellToDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __toDate = DateUtil.toDateString(cellToDate.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(__toDate, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\theader.toDate = toDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellToDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tString __toDate = cellToDate.getStringCellValue();\n\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(__toDate)) {\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(__toDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.toDate = toDate;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\terrRow.setContent6(cellToDate.getStringCellValue());\n\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (header.fromDate != null && header.toDate != null) {\n\t\t\t\t\t\t\tif (DateUtil.compareDateWithoutTime(header.fromDate, header.toDate) > 0) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.greater.todate\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"ToDate\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t\t//6 Số thông báo CTKM\n\t\t\t\t\t/*\n\t\t\t\t\t * String description =\n\t\t\t\t\t * getCellValueToString(cellDescription); header.description\n\t\t\t\t\t * = description; errRow.setContent2(description);\n\t\t\t\t\t * messageError += ValidateUtil.validateField(description,\n\t\t\t\t\t * \"catalog.promotion.import.column.progpescr\", 100,\n\t\t\t\t\t * ConstantManager.ERR_REQUIRE,\n\t\t\t\t\t * ConstantManager.ERR_MAX_LENGTH,\n\t\t\t\t\t * ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_NAME);\n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\t/*errMsg = ValidateUtil.validateField(promotionName, \"catalog.promotion.name\", 500, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL, ConstantManager.ERR_MAX_LENGTH);\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\t\terrMsg = ValidateUtil.validateField(description, \"common.description\", null, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t}*/\n\t\t\t\t\t\n\t\t\t\t\t// 6 Số thông báo\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellNoticeCode = myRow.getCell(6);\n\t\t\t\t\t\tif (cellNoticeCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString noticeCode = getCellValueToString(cellNoticeCode);\n\t\t\t\t\t\t\tif(noticeCode != null){\n\t\t\t\t\t\t\t\tnoticeCode = noticeCode.trim();\n\t\t\t\t\t\t\t\tnoticeCode = noticeCode.toUpperCase();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmessageError = ValidateUtil.validateField(noticeCode, \"catalog.promotion.noticecode\", 100, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t\t\t/*if(noticeCode.length() > 100){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.notice.code.over.length\")+\"\\n\";\n\t\t\t\t\t\t\t}else*/ \n\t\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(noticeCode)) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.notice.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t}else if(noticeCode != null && noticeCode.trim().length() > 100){\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"catalog.promotion.import.notice.code.incorrect.format\");\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"100\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số thông báo\");\n\t\t\t\t\t\t\t}else if(StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\theader.noticeCode = noticeCode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent7(noticeCode);\n\t\t\t\t\t\t}else if (cellNoticeCode == null) {\n\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.notice.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t} \n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.string\", iRun, \"NoticeCode\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 7 Nhóm/Tên SP hàng bán\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellDesProduct = myRow.getCell(7);\n\t\t\t\t\t\tif (cellDesProduct != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString descProduct = getCellValueToString(cellDesProduct);\n\t\t\t\t\t\t\tif(descProduct != null){\n\t\t\t\t\t\t\t\tdescProduct = descProduct.trim();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//descProduct = descProduct.trim();\n\t\t\t\t\t\t\tmessageError = ValidateUtil.validateField(descProduct, \"catalog.promotion.descriptionproduct\", 1000, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t\t\t/*if(descProduct.length() > 1000){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.desc.product.over.length\")+\"\\n\";\n\t\t\t\t\t\t\t}else*/ \n\t\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(descProduct)) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.description.product.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t}else if(descProduct.trim().length() > 1000){\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"catalog.promotion.import.description.product.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"1000\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Nhóm/Tên SP hàng bán\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\t\tdescProduct = descProduct.trim();\n\t\t\t\t\t\t\t\theader.decriptionProduct = descProduct;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\terrRow.setContent8(descProduct);\n\t\t\t\t\t\t}else if(cellDesProduct == null) {\n\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.description.product.obligate\") + \"\\n\";\n\t\t\t\t\t\t} \n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.string\", iRun, \"DescProduct\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t\t// 8 Mô tả chương trình\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellDescription = myRow.getCell(8);\n\t\t\t\t\t\tif (cellDescription != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString description = getCellValueToString(cellDescription);\n\t\t\t\t\t\t\tif(description != null){\n\t\t\t\t\t\t\t\tdescription = description.trim();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(description != null && description.trim().length() > 1000){\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"catalog.promotion.import.description.program.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"\", iRun, \"Description\");\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"1000\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Mô tả chương trình\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tdescription = description.trim();\n\t\t\t\t\t\t\t\theader.descriptionProgram = description;\n\t\t\t\t\t\t\t\terrRow.setContent9(description);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*else if(cellDescription != null){\n\t\t\t\t\t\t\tString description = getCellValueToString(cellDescription);\n\t\t\t\t\t\t\terrRow.setContent9(description);\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.string\", iRun, \"Description\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//9 Bội số\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellMultiple = myRow.getCell(9);\n\t\t\t\t\t\theader.multiple = 0; \n\t\t\t\t\t\tif (cellMultiple != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString multiple = getCellValueToString(cellMultiple);\n\t\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_PROMO_ALLOW_MULTIPLE\", ApParamType.LIST_PROMO_ALLOW_MULTIPLE);\n\t\t\t\t\t\t\tString strListPromo = apParam != null?apParam.getValue() : \"ZV02,ZV03,ZV05,ZV06,ZV08,ZV09,ZV11,ZV12,ZV13,ZV14,ZV15,ZV16,ZV17,ZV18,ZV20,ZV21,ZV23,ZV24\";\n\t\t\t\t\t\t\tif ((Constant.IS_MULTIPLE.equals(multiple) || Constant.NON_MULTIPLE.equals(multiple)) \n\t\t\t\t\t\t\t\t\t&& strListPromo != null) {\n\t\t\t\t\t\t\t\tstrListPromo = strListPromo.replace(\" \", \"\");\n\t\t\t\t\t\t\t\tstrListPromo = strListPromo.toUpperCase();\n\t\t\t\t\t\t\t\tString[] ListPromoAllow = strListPromo.split(\",\");\n\t\t\t\t\t\t\t\tif (Constant.IS_MULTIPLE.equals(multiple) \n\t\t\t\t\t\t\t\t\t &&\t!Arrays.asList(ListPromoAllow).contains(header.type.toUpperCase())) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(header.type.toUpperCase());\n\t\t\t\t\t\t\t\t\tSystem.out.println(strListPromo);\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.multiple.not.use\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\theader.multiple = Integer.parseInt(multiple.trim());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.multiple.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent10(multiple);\n\t\t\t\t\t\t}/*else if(cellMultiple != null){\n\t\t\t\t\t\t\tString multiple = getCellValueToString(cellMultiple);\n\t\t\t\t\t\t\terrRow.setContent10(multiple);\n\t\t\t\t\t\t}*/\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Multiple\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 10 Tối ưu\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellRecursive = myRow.getCell(10);\n\t\t\t\t\t\theader.recursive = 0;\n\t\t\t\t\t\tif (cellRecursive != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString recursive = getCellValueToString(cellRecursive);\n\t\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_PROMO_ALLOW_RECURSIVE\", ApParamType.LIST_PROMO_ALLOW_RECURSIVE);\n\t\t\t\t\t\t\tString strListPromo = apParam == null? \"ZV02,ZV03,ZV05,ZV06,ZV08,ZV09,ZV11,ZV12,ZV13,ZV14,ZV15,ZV16,ZV17,ZV18,ZV20,ZV21,ZV23,ZV24\":apParam.getValue();\n\t\t\t\t\t\t\tif ((Constant.IS_RECURSIVE.equals(recursive) || Constant.NON_RECURSIVE.equals(recursive)) \n\t\t\t\t\t\t\t\t\t&& strListPromo != null) {\n\t\t\t\t\t\t\t\tstrListPromo = strListPromo.replace(\" \", \"\");\n\t\t\t\t\t\t\t\tString[] listPromoAllow = strListPromo.split(\",\");\n\t\t\t\t\t\t\t\tif (Constant.IS_RECURSIVE.equals(recursive)\t\t\t\n\t\t\t\t\t\t\t\t\t &&\t!Arrays.asList(listPromoAllow).contains(header.type.toUpperCase())) {\n\t\t\t\t\t\t\t\t/*\tSystem.out.println(header.type.toUpperCase());\n\t\t\t\t\t\t\t\t\tSystem.out.println(strListPromo);*/\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.recursive.not.use\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\theader.recursive = Integer.parseInt(recursive.trim());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.recursive.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent11(recursive);\n\t\t\t\t\t\t}/*else if(cellRecursive != null){\n\t\t\t\t\t\t\tString recursive = getCellValueToString(cellRecursive);\n\t\t\t\t\t\t\terrRow.setContent11(recursive);\n\t\t\t\t\t\t}*/\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Recursive\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 9 Loại trả thưởng\n\t\t\t\t/*\ttry {\n\t\t\t\t\t\tCell cellRewardType = myRow.getCell(9);\n\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_ALLOW_REWARD_TYPE\", ApParamType.LIST_ALLOW_REWARD_TYPE);\n\t\t\t\t\t\tString strListAllowReward = apParam.getApParamName();\n\t\t\t\t\t\tstrListAllowReward = strListAllowReward.replace(\" \", \"\");\n\t\t\t\t\t\tString[] listAllowReward = strListAllowReward.split(\",\");\n\t\t\t\t\t\tif (cellRewardType != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\tif (strRewardType != null \n\t\t\t\t\t\t\t\t\t&& (Constant.DISCOUNT_MONEY.equals(strRewardType) || Constant.VOUCHER.equals(strRewardType)) \n\t\t\t\t\t\t\t\t\t&& Arrays.asList(listAllowReward).contains(header.type)) {\n\t\t\t\t\t\t\t\theader.rewardType = Integer.parseInt(strRewardType.trim());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent10(strRewardType);\n\t\t\t\t\t\t}else if(cellRewardType != null){\n\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\terrRow.setContent10(strRewardType);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.number\", iRun, \"RewardType\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 10 Từ ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellFromDateReward = myRow.getCell(10);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellFromDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t} else if (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = cellFromDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_fromDateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(cellFromDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(header.fromApplyDate != null && header.fromDate != null){\n\t\t\t\t\t\t\t\t\t\tint sub = DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate);\n\t\t\t\t\t\t\t\t\t\tif(DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate) > 0){\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.reward.greater.fromdate\")+\"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}else if(cellFromDateReward != null){\n\t\t\t\t\t\t\tString _fromDateReward = getCellValueToString(cellFromDateReward); \n\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"FromDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t\t// 11 Đến ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellToDateReward = myRow.getCell(11);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellToDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_toDateReward);\n\t\t\t\t\t\t\t\t\t} else if (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_toDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _todateReward = cellToDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_todateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong \"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(_todateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDate;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(cellToDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (header.fromApplyDate != null && header.toApplyDate != null) {\n\t\t\t\t\t\t\t\t\t\tif (DateUtil.compareDateWithoutTime(header.fromApplyDate, header.toApplyDate) > 0) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.greater.todate.reward\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellToDateReward != null){\n\t\t\t\t\t\t\tString _todateReward = getCellValueToString(cellToDateReward); \n\t\t\t\t\t\t\terrRow.setContent12(_todateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"ToDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\t// 11 Loại trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\tCell cellRewardType = myRow.getCell(11);\n\t\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_ALLOW_REWARD_TYPE\", ApParamType.LIST_ALLOW_REWARD_TYPE);\n\t\t\t\t\t\t\tString strListAllowReward = apParam.getApParamName();\n\t\t\t\t\t\t\tstrListAllowReward = strListAllowReward.replace(\" \", \"\");\n\t\t\t\t\t\t\tString[] listAllowReward = strListAllowReward.split(\",\");\n\t\t\t\t\t\t\tif (cellRewardType != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\t\tif (strRewardType != null \n\t\t\t\t\t\t\t\t\t&& (Constant.DISCOUNT_MONEY.equals(strRewardType) || Constant.VOUCHER.equals(strRewardType)) \n\t\t\t\t\t\t\t\t\t&& Arrays.asList(listAllowReward).contains(header.type)) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(Constant.DISCOUNT_MONEY.equals(strRewardType) || Constant.VOUCHER.equals(strRewardType)) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\theader.rewardType = Integer.parseInt(strRewardType.trim());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent12(strRewardType);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\t\terrRow.setContent12(strRewardType);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.number\", iRun, \"RewardType\");\n\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 12 Từ ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellFromDateReward = myRow.getCell(12);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellFromDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tif (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = cellFromDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_fromDateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(cellFromDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(header.fromApplyDate != null && header.fromDate != null){\n//\t\t\t\t\t\t\t\t\t\tint sub = DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate);\n\t\t\t\t\t\t\t\t\t\tif(DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate) > 0){\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.reward.greater.fromdate\")+\"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellFromDateReward != null){\n\t\t\t\t\t\t\tString _fromDateReward = getCellValueToString(cellFromDateReward); \n\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"FromDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 11 Đến ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellToDateReward = myRow.getCell(13);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellToDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_toDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_toDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _todateReward = cellToDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_todateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong \"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(_todateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDate;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(cellToDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (header.fromApplyDate != null && header.toApplyDate != null) {\n\t\t\t\t\t\t\t\t\t\tif (DateUtil.compareDateWithoutTime(header.fromApplyDate, header.toApplyDate) > 0) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.greater.todate.reward\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellToDateReward != null){\n\t\t\t\t\t\t\tString _todateReward = getCellValueToString(cellToDateReward); \n\t\t\t\t\t\t\terrRow.setContent14(_todateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"ToDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tlistHeader.add(header);\n\t\t\t\t\t\tmapHeader.put(header.promotionCode, header);\n\t\t\t\t\t} else {\n\t\t\t\t\t\terrRow.setErrMsg(messageError);\n\t\t\t\t\t\tlstHeaderError.add(errRow);\n\t\t\t\t\t\tif (mapErrorPromotion.get(header.promotionCode) == null) {\n\t\t\t\t\t\t\tmapErrorPromotion.put(header.promotionCode, messageError);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tiRun++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Sheet Don vi tham gia\n\t\t\tif (unitSheet != null) {\n\t\t\t\tIterator<?> rowIter = unitSheet.rowIterator();\n\t\t\t\tiRun = 0;\n\t\t\t\tint maxSizeSheet3 = 5;\n\t\t\t\tList<Shop> listShopChild;\n\t\t\t\twhile (rowIter.hasNext()) {\n\t\t\t\t\tRow myRow = (Row) rowIter.next();\n\t\t\t\t\tif (iRun == 0) {\n\t\t\t\t\t\tiRun++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean isContinue = true;\n\t\t\t\t\tfor (int i = 0; i < maxSizeSheet3; i++) {\n\t\t\t\t\t\tif (myRow.getCell(i) != null) {\n\t\t\t\t\t\t\tisContinue = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isContinue) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExcelPromotionUnit unitPromo = new ExcelPromotionUnit();\n\t\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\tBoolean isHasData = false;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString promotionCode = getCellValueToString(myRow.getCell(0));\n\t\t\t\t\t\tString shopCode = getCellValueToString(myRow.getCell(1));\n\t\t\t\t\t\tString quality = getCellValueToString(myRow.getCell(2));\n\t\t\t\t\t\tString totalAmount = getCellValueToString(myRow.getCell(3));\n\t\t\t\t\t\tString amount = getCellValueToString(myRow.getCell(4));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(promotionCode) || !StringUtil.isNullOrEmpty(shopCode) || !StringUtil.isNullOrEmpty(quality)\n\t\t\t\t\t\t\t\t|| !StringUtil.isNullOrEmpty(totalAmount) || !StringUtil.isNullOrEmpty(amount)) {\n\t\t\t\t\t\t\tisHasData = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 1 Mã CTKM\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionCode = myRow.getCell(0);\n\t\t\t\t\t\tif (cellPromotionCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif(isHasData){\n\t\t\t\t\t\t\t\tString promoCode = getCellValueToString(cellPromotionCode);\n\t\t\t\t\t\t\t\tPromotionProgram newPromotionProgram;\n\t\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promoCode)) {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.promotion.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnewPromotionProgram = promotionProgramMgr.getPromotionProgramByCode(promoCode);\n\t\t\t\t\t\t\t\t\tif(newPromotionProgram == null \n\t\t\t\t\t\t\t\t\t\t\t&& mapHeader.get(promoCode) == null){\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.not.init\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tunitPromo.promotionCode = promoCode;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent1(promoCode);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Mã CTKM\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 2 Mã đơn vị\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellUnitCode = myRow.getCell(1);\n\t\t\t\t\t\tif (cellUnitCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif(isHasData){\n\t\t\t\t\t\t\t\tString unitCode = getCellValueToString(cellUnitCode);\n\t\t\t\t\t\t\t\t// Kiem tra ma don vi empty\n\t\t\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(unitCode)){\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.unit.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// Kiem tra don vi ton tai trong he thong\n\t\t\t\t\t\t\t\t\tif(shopMgr.getShopByCode(unitCode) == null){\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.unit.code.not.permission\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t} else if (currentUser != null && currentUser.getShopRoot() != null){ // kiem tra don vi co thuoc quyen quan ly cua user\n\t\t\t\t\t\t\t\t\t\tlistShopChild = promotionProgramMgr.getListChildByShopId(currentUser.getShopRoot().getShopId());\n\t\t\t\t\t\t\t\t\t\t// Kiem tra shop co thuoc quen quan ly cua user dang nhap\n\t\t\t\t\t\t\t\t\t\tboolean isShopMapWithUser = false;\n\t\t\t\t\t\t\t\t\t\tfor(Shop shop: listShopChild){\n\t\t\t\t\t\t\t\t\t\t\t if(unitCode.toLowerCase().equals(shop.getShopCode().toLowerCase())){\n\t\t\t\t\t\t\t\t\t\t\t\t isShopMapWithUser = true;\n\t\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif(!isShopMapWithUser){\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.unit.code.not.permission.by.current.user\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tunitPromo.unitCode = unitCode;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent2(unitCode);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Mã CTKM\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 3 Số suất \n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellQuantityMax = myRow.getCell(2);\n\t\t\t\t\t\tif (cellQuantityMax != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString quantityMax = getCellValueToString(cellQuantityMax);\n\t\t\t\t\t\t\tif(quantityMax != null){\n\t\t\t\t\t\t\t\tquantityMax = quantityMax.trim().replace(\",\", \"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (quantityMax != null && quantityMax.trim().length() <= 9 \n\t\t\t\t\t\t\t\t\t&& StringUtil.isFloat(quantityMax) && Double.parseDouble(quantityMax.trim()) > 0\n\t\t\t\t\t\t\t\t\t&& quantityMax.contains(\".\") == false) {\n\t\t\t\t\t\t\t\tunitPromo.quantityMax = Integer.parseInt(quantityMax.trim().replace(\",\", \"\"));\n\t\t\t\t\t\t\t} else if(quantityMax != null && quantityMax.length() > 9 ){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"9\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số suất\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (StringUtil.isNullOrEmpty(quantityMax) == false) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.quantity.max.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent3(quantityMax);\n\t\t\t\t\t\t}else if(cellQuantityMax != null){\n\t\t\t\t\t\t\t// String quantityMax = getCellValueToString(cellQuantityMax);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Số suất\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 4 Số tiền amountMax\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellAmountMax = myRow.getCell(3);\n\t\t\t\t\t\tif (cellAmountMax != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString amountMax = getCellValueToString(cellAmountMax);\n\t\t\t\t\t\t\tif(amountMax != null){\n\t\t\t\t\t\t\t\tamountMax = amountMax.trim().replace(\",\", \"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (amountMax != null && amountMax.length() <= 9 && StringUtil.isFloat(amountMax) \n\t\t\t\t\t\t\t\t\t&& Double.parseDouble(amountMax.trim()) > 0 && amountMax.contains(\".\") == false) {\n\t\t\t\t\t\t\t\tunitPromo.amountMax = new BigDecimal(amountMax.trim().replace(\",\", \"\"));\n\t\t\t\t\t\t\t} else if(amountMax != null && amountMax.length() > 9){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"9\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số tiền\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (StringUtil.isNullOrEmpty(amountMax) == false) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.amount.max.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent4(amountMax);\n\t\t\t\t\t\t}else if(cellAmountMax != null){\n\t\t\t\t\t\t\tString amountMax = getCellValueToString(cellAmountMax);\n\t\t\t\t\t\t\terrRow.setContent4(amountMax);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Số tiền\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 5 Số lượng numMax\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellNumMax = myRow.getCell(4);\n\t\t\t\t\t\tif (cellNumMax != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString numMax = getCellValueToString(cellNumMax);\n\t\t\t\t\t\t\tnumMax = numMax.trim().replace(\",\", \"\");\n\t\t\t\t\t\t\tif (numMax != null && numMax.length() <= 9 \n\t\t\t\t\t\t\t\t\t&& StringUtil.isFloat(numMax) \n\t\t\t\t\t\t\t\t\t&& Double.parseDouble(numMax.trim()) > 0\n\t\t\t\t\t\t\t\t\t&& numMax.contains(\".\") == false) {\n\t\t\t\t\t\t\t\tunitPromo.numMax = new BigDecimal(numMax.trim().replace(\",\", \"\"));\n\t\t\t\t\t\t\t} else if(numMax != null && numMax.length() > 9){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"9\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số lượng\");\n\t\t\t\t\t\t\t}else if (StringUtil.isNullOrEmpty(numMax) == false) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.num.max.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent5(numMax);\n\t\t\t\t\t\t}else if(cellNumMax != null){\n\t\t\t\t\t\t\tString numMax = getCellValueToString(cellNumMax);\n\t\t\t\t\t\t\terrRow.setContent5(numMax);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\",\n\t\t\t\t\t\t\t\tConfiguration.getResourceString(ConstantManager.VI_LANGUAGE, \"Số lượng\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tlistUnit.add(unitPromo);\n\t\t\t\t\t\tmapUnit.put(unitPromo.promotionCode, unitPromo);\n\t\t\t\t\t}else{\n\t\t\t\t\t\terrRow.setContent6(messageError);\n\t\t\t\t\t\tlistUnitError.add(errRow);\n//\t\t\t\t\t\tif(mapErrorUnit.get(unitPromo.promotionCode) == null){\n//\t\t\t\t\t\t\tmapErrorUnit.put(unitPromo.promotionCode, messageError);\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t/*if (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tlistHeader.add(header);\n\t\t\t\t\t\tmapHeader.put(header.promotionCode, header);\n\t\t\t\t\t} else {\n\t\t\t\t\t\terrRow.setContent13(messageError);\n\t\t\t\t\t\tlstHeaderError.add(errRow);\n\t\t\t\t\t\tif (mapErrorPromotion.get(header.promotionCode) == null) {\n\t\t\t\t\t\t\tmapErrorPromotion.put(header.promotionCode, messageError);\n\t\t\t\t\t\t}\n\t\t\t\t\t}*/\n\n\t\t\t\t\tiRun++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Sheet Co cau KM\n\t\t\t/////\n\t\t\tif (detailSheet != null) {\t\n\t\t\t\tIterator<?> rowIter = detailSheet.rowIterator();\n\t\t\t\tString previousPromotionCode = null;\n\t\t\t\tint typeKM;\n\t\t\t\tMap<String, Integer> mapPromotionType = new HashMap<String, Integer>();\n\t\t\t\tiRun = 0;\n\t\t\t\tMap<String, String[]> mapArrayProduct = new HashMap<String, String[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArraySaleQuantity = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArraySaleAmount = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArrayDiscountAmount = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, Float[]> mapArrayDiscountPercent = new HashMap<String, Float[]>();\n\t\t\t\tMap<String, Integer[]> mapArrayQuantityUnit = new HashMap<String, Integer[]>();\n\t\t\t\tMap<String, String[]> mapArrayFreeProduct = new HashMap<String, String[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArrayFreeQuantity = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, Integer[]> mapArrayFreeQuantityUnit = new HashMap<String, Integer[]>();\n\t\t\t\tMap<String, Boolean[]> mapArrayAndOr = new HashMap<String, Boolean[]>();\n\t\t\t\tMap<String, String[]> mapPromoGroupCode = new HashMap<String, String[]>();\n\t\t\t\tMap<String, String[]> mapPromoGroupName = new HashMap<String, String[]>();\n\t\t\t\tMap<String, String[]> mapPromoLevelCode = new HashMap<String, String[]>();\n//\t\t\t\tMap<String, Integer[]> mapMultiple = new HashMap<String, Integer[]>();\n//\t\t\t\tMap<String, Integer[]> mapRecursive = new HashMap<String, Integer[]>();\n//\t\t\t\tMap<String, Integer[]> mapDkgh = new HashMap<String,Integer[]>();\n\t\t\t\t\n\t\t\t\tLinkedHashMap<String, Integer> lstProductPromo = new LinkedHashMap<String, Integer>();\n\t\t\t\tMap<String, List<Row>> lstRow = new HashMap<String, List<Row>>();\n\t\t\t\tint indexProductPromo = 0;\n\t\t\t\tint maxSizeSheet2 = 12;\n\t\t\t\tPromotionProgram existPromotion = null;\n\t\t\t\twhile (rowIter.hasNext()) {\n\t\t\t\t\tRow myRow = (Row) rowIter.next();\n\t\t\t\t\tif (iRun == 0) {\n\t\t\t\t\t\tiRun++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean isContinue = true;\n\t\t\t\t\t//Kiem tra su hop le cua Row Import\n\t\t\t\t\tfor (int i = 0; i < maxSizeSheet2; i++) {\n\t\t\t\t\t\tif (myRow.getCell(i) != null) {\n\t\t\t\t\t\t\tisContinue = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isContinue) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExcelPromotionDetail detail = new ExcelPromotionDetail();\n\t\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\t//0 get promotionCode\n\t\t\t\t\tString promotionCode = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionCode = myRow.getCell(0);\n\t\t\t\t\t\tif (cellPromotionCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = cellPromotionCode.getStringCellValue();\n\t\t\t\t\t\t\t//\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = String.valueOf(cellPromotionCode.getNumericCellValue());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpromotionCode = getCellValueToString(cellPromotionCode);\n\t\t\t\t\t\t\tpromotionCode = promotionCode != null ? promotionCode.trim().toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promotionCode)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += ValidateUtil.validateField(promotionCode, \"catalog.promotion.import.column.progcode\", 50, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_MAX_LENGTH, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_CODE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\texistPromotion = promotionProgramMgr.getPromotionProgramByCode(promotionCode);\n\t\t\t\t\t\t\tif (existPromotion == null && mapHeader.get(promotionCode) == null) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.not.init\") + \"\\n\";\n\t\t\t\t\t\t\t\t//messageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.program.not.exists\");\n\t\t\t\t\t\t\t\t//messageError += \"\\n\";\n\t\t\t\t\t\t\t\t//else if(existPromotion != null && mapHeader.get(promotionCode) == null){\n\t\t\t\t\t\t\t} else if(existPromotion != null && ActiveType.RUNNING.equals(existPromotion.getStatus())){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.program.exists\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdetail.promotionCode = promotionCode;\n\t\t\t\t\t\t\terrRow.setContent1(promotionCode);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promotionCode)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.code\"));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Mã CTKM\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//1 get type\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (myRow.getCell(1) != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tdetail.type = myRow.getCell(1).getStringCellValue();\n\t\t\t\t\t\t\t//\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tdetail.type = String.valueOf(myRow.getCell(1).getNumericCellValue());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdetail.type = getCellValueToString(myRow.getCell(1));\n\t\t\t\t\t\t\tdetail.type = detail.type != null ? detail.type.trim().toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(detail.type)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (mapCheckType.get(detail.type) == null) {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.exists.before\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.type\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t} else if (mapType.get(promotionCode) == null) {\n\t\t\t\t\t\t\t\t\tif (null != existPromotion && existPromotion.getType().equalsIgnoreCase(detail.type)) {\n\t\t\t\t\t\t\t\t\t\tmapType.put(detail.promotionCode, detail.type);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.type.is.not.same2\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else if (!mapType.get(promotionCode).equals(detail.type)) {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.type.is.not.same2\") + \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent2(getCellValueToString(myRow.getCell(1)));\n\t\t\t\t\t\t}else if(myRow.getCell(1) != null){\n\t\t\t\t\t\t\terrRow.setContent2(getCellValueToString(myRow.getCell(1)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Loại CTKM\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//2 Mã nhóm\n\t\t\t\t\t/*try {\n\t\t\t\t\t\tCell cellGroupCode = myRow.getCell(2);\n\t\t\t\t\t\tString groupCode = null;\n\t\t\t\t\t\tif (cellGroupCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tgroupCode = getCellValueToString(cellGroupCode);\n\t\t\t\t\t\t\tmessageError = ValidateUtil.validateField(noticeCode, \"catalog.promotion.noticecode\", 100, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(groupCode)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoGroupCode = groupCode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent3(groupCode);\n\t\t\t\t\t\t}else if (cellGroupCode != null) {\n\t\t\t\t\t\t\tgroupCode = getCellValueToString(cellGroupCode);\n\t\t\t\t\t\t\terrRow.setContent3(groupCode);\n\t\t\t\t\t\t}else if (cellGroupCode == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Mã nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 3 Tên nhóm\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellGroupName = myRow.getCell(3);\n\t\t\t\t\t\tString groupName = null;\n\t\t\t\t\t\tif (cellGroupName != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tgroupName = getCellValueToString(cellGroupName);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(groupName)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.name.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoGroupName = groupName;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent4(groupName);\n\t\t\t\t\t\t}else if (cellGroupName != null) {\n\t\t\t\t\t\t\tgroupName = getCellValueToString(cellGroupName);\n\t\t\t\t\t\t\terrRow.setContent4(groupName);\n\t\t\t\t\t\t}else if (cellGroupName == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.name.obligate\") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Tên nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 4 Mã mức\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellLevelCode = myRow.getCell(4);\n\t\t\t\t\t\tString levelCode = null;\n\t\t\t\t\t\tif (cellLevelCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tlevelCode = getCellValueToString(cellLevelCode);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(levelCode)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoLevelCode = levelCode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent5(levelCode);\n\t\t\t\t\t\t} else if (cellLevelCode != null) {\n\t\t\t\t\t\t\tlevelCode = getCellValueToString(cellLevelCode);\n\t\t\t\t\t\t\terrRow.setContent5(levelCode);\n\t\t\t\t\t\t}else if (cellLevelCode == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Tên nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\t//5 Tên mức\n\t\t\t\t\t/*try {\n\t\t\t\t\t\tCell cellLevelName = myRow.getCell(5);\n\t\t\t\t\t\tString levelName = null;\n\t\t\t\t\t\tif (cellLevelName != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tlevelName = getCellValueToString(cellLevelName);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(levelName)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.name.obligate \") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoLevelName = levelName;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent6(levelName);\n\t\t\t\t\t\t} else if (cellLevelName == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.name.obligate \") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Tên nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\t//2 get productCode\n\t\t\t\t\tString productCode = \"\";\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 2) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellProductCode = myRow.getCell(2);\n\t\t\t\t\t\t\tif (cellProductCode != null) {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tproductCode = cellProductCode.getStringCellValue();\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tproductCode = String.valueOf(cellProductCode.getNumericCellValue());\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tLogUtility.logError(ex, ex.getMessage());\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tproductCode = getCellValueToString(cellProductCode);\n\t\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(productCode)) {\n\t\t\t\t\t\t\t\t\tProduct product = productMgr.getProductByCode(productCode.trim());\n\t\t\t\t\t\t\t\t\tif (product == null) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.exist.in.db\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.buyproduct.code\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.productCode = productCode.toUpperCase().trim();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã Sản Phẩm Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã Sản Phẩm Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(2) != null) {\n\t\t\t\t\t\t\terrRow.setContent3(getCellValueToString(myRow.getCell(2)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.get.product.error\", productCode);\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//3 getQuantity\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 3) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellQuantity = myRow.getCell(3);\n\t\t\t\t\t\t\tif (cellQuantity != null && cellQuantity.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellQuantity.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal quantity = new BigDecimal(cellQuantity.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (quantity == null || quantity.compareTo(BigDecimal.ZERO) <= 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.saleQuantity = quantity;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(3) != null) {\n\t\t\t\t\t\t\terrRow.setContent4(getCellValueToString(myRow.getCell(3)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//4 get UOM\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 4) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellProductUnit = myRow.getCell(4);\n\t\t\t\t\t\t\tif (cellProductUnit != null && cellProductUnit.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellProductUnit.getCellType() == Cell.CELL_TYPE_STRING) {\n\t\t\t\t\t\t\t\t\tString unit = cellProductUnit.getStringCellValue();\n\t\t\t\t\t\t\t\t\tif (unit == null || StringUtil.isNullOrEmpty(unit)) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (unit.trim().toLowerCase().equals(\"LẺ\".toLowerCase())) {\n\t\t\t\t\t\t\t\t\t\tdetail.productUnit = 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdetail.productUnit = 2;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(4) != null) {\n\t\t\t\t\t\t\terrRow.setContent5(getCellValueToString(myRow.getCell(4)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//5 getAmount\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 5) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellAmount = myRow.getCell(5);\n\t\t\t\t\t\t\tif (cellAmount != null && cellAmount.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellAmount.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal amount = BigDecimal.valueOf(cellAmount.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (amount == null || amount.compareTo(BigDecimal.ZERO) < 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Số Tiền SP Mua\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.saleAmount = amount;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Số Tiền SP Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Số Tiền SP Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(5) != null) {\n\t\t\t\t\t\t\terrRow.setContent6(getCellValueToString(myRow.getCell(5)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Số Tiền SP Mua\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//6 getDiscount Amount\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 6) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellDiscountAmount = myRow.getCell(6);\n\t\t\t\t\t\t\tif (cellDiscountAmount != null && cellDiscountAmount.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellDiscountAmount.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal discountAmount = BigDecimal.valueOf(cellDiscountAmount.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (discountAmount == null || discountAmount.compareTo(BigDecimal.ZERO) < 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Số Tiền SP KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.discountAmount = discountAmount;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Số Tiền SP KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Số Tiền SP KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(6) != null) {\n\t\t\t\t\t\t\terrRow.setContent7(getCellValueToString(myRow.getCell(6)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Số Tiền SP KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//7 get discount percent\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 7) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellDiscountPercent = myRow.getCell(7);\n\t\t\t\t\t\t\tif (cellDiscountPercent != null && cellDiscountPercent.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellDiscountPercent.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tFloat discountPercent = (float) cellDiscountPercent.getNumericCellValue();\n\t\t\t\t\t\t\t\t\tif (discountPercent == null || discountPercent < 0 || discountPercent > 100) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"% KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.discountPercent = discountPercent;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.column.invalid.format.float\", \"% KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"% KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(7) != null) {\n\t\t\t\t\t\t\terrRow.setContent8(getCellValueToString(myRow.getCell(7)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"DiscPer\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//8 get Free product code\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 8) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellFreeProductCode = myRow.getCell(8);\n\t\t\t\t\t\t\tif (cellFreeProductCode != null) {\n\t\t\t\t\t\t\t\tString freeProductCode = getCellValueToString(cellFreeProductCode);\n\t\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(freeProductCode)) {\n\t\t\t\t\t\t\t\t\tProduct freeProduct = productMgr.getProductByCode(freeProductCode.trim());\n\t\t\t\t\t\t\t\t\tif (freeProduct == null) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.exist.in.db\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.disproduct.code\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.freeProductCode = freeProductCode.toUpperCase().trim();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã SP KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(8) != null) {\n\t\t\t\t\t\t\terrRow.setContent9(getCellValueToString(myRow.getCell(8)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Mã SP KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//9 get free Quantity\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 9) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellFreeQuantity = myRow.getCell(9);\n\t\t\t\t\t\t\tif (cellFreeQuantity != null && cellFreeQuantity.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellFreeQuantity.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal freeQuantity = new BigDecimal(cellFreeQuantity.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (freeQuantity == null || freeQuantity.compareTo(BigDecimal.ZERO) < 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Số Lượng KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.freeQuantity = freeQuantity;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Số Lượng KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Số Lượng KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(9) != null) {\n\t\t\t\t\t\t\terrRow.setContent10(getCellValueToString(myRow.getCell(9)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Số Lượng KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//10 get Free UOM\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 10) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellProductUnit = myRow.getCell(10);\n\t\t\t\t\t\t\tif (cellProductUnit != null && cellProductUnit.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellProductUnit.getCellType() == Cell.CELL_TYPE_STRING) {\n\t\t\t\t\t\t\t\t\tString unit = cellProductUnit.getStringCellValue();\n\t\t\t\t\t\t\t\t\tif (unit == null || StringUtil.isNullOrEmpty(unit)) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Đơn Vị Tính cho SP KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (unit.trim().toLowerCase().equals(\"LẺ\".toLowerCase())) {\n\t\t\t\t\t\t\t\t\t\tdetail.freeProductUnit = 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdetail.freeProductUnit = 2;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Đơn Vị Tính cho SP KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(10) != null) {\n\t\t\t\t\t\t\terrRow.setContent11(getCellValueToString(myRow.getCell(10)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Đơn Vị Tính cho SP KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//11 get And Or\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 11) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellAndOrCell = myRow.getCell(11);\n\t\t\t\t\t\t\tif (cellAndOrCell != null) {\n\t\t\t\t\t\t\t\tString value;\n\t\t\t\t\t\t\t\tif (cellAndOrCell.getCellType() != Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tvalue = cellAndOrCell.getStringCellValue();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tvalue = String.valueOf((float) cellAndOrCell.getNumericCellValue());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (\"X\".equals(value.trim().toUpperCase())) {\n\t\t\t\t\t\t\t\t\tdetail.andOr = true;\n\t\t\t\t\t\t\t\t\terrRow.setContent12(value);\n\t\t\t\t\t\t\t\t} else if (\"\".equals(value.trim().toUpperCase())) {\n\t\t\t\t\t\t\t\t\tdetail.andOr = false;\n\t\t\t\t\t\t\t\t\terrRow.setContent12(value);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\terrRow.setContent13(value);\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.read.cell.format.invalid\", iRun, \"AllFreeItemcode\", \"['','X']\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.andOr = false;\n\t\t\t\t\t\t\t\terrRow.setContent12(\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.read.cell.format.invalid\", iRun, \"AllFreeItemcode\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 12 ĐKGH\n\t\t\t\t\t/*try{\n\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_ALLOW_DKGH\", ApParamType.LIST_ALLOW_DKGH);\n\t\t\t\t\t\tString strListPromo = apParam.getApParamName();\n\t\t\t\t\t\tCell cellDKGH = myRow.getCell(17);\n\t\t\t\t\t\tString[] ListAllow = strListPromo.split(\",\");\n\t\t\t\t\t\tif(Arrays.asList(ListAllow).contains(detail.type)){\n\t\t\t\t\t\t\tif(cellDKGH != null && StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\t\tString dkgh = getCellValueToString(cellDKGH);\n\t\t\t\t\t\t\t\tif(dkgh != null \n\t\t\t\t\t\t\t\t\t\t&& (Constant.HAVE_CONDITION.equals(dkgh) || (Constant.NON_CONDITION.equals(dkgh)))){\n\t\t\t\t\t\t\t\t\tdetail.dkgh = Integer.parseInt(dkgh.trim());\n\t\t\t\t\t\t\t\t}else if(dkgh != null){\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.dkgh.incorrect.format\")+\"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent18(dkgh);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellDKGH != null){\n\t\t\t\t\t\t\tString dkgh = getCellValueToString(cellDKGH);\n\t\t\t\t\t\t\terrRow.setContent18(dkgh);\n\t\t\t\t\t\t}\n\t\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"DKGH\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\tif (mapPromotionTypeCheck.get(detail.promotionCode) == null) {\n\t\t\t\t\t\tmapPromotionTypeCheck.put(detail.promotionCode, detail.type);\n\t\t\t\t\t}\n\t\t\t\t\tif (!promotionCode.equals(previousPromotionCode)) {\n\t\t\t\t\t\tif (mapPromotionType.get(detail.promotionCode) != null) {//da ton tai ctkm nay truoc do roi\n\t\t\t\t\t\t\t//typeKM = mapPromotionType.get(detail.promotionCode);//=> lay ra loai cua no thoi\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null\n\t\t\t\t\t\t\t\t\t&& detail.freeQuantity.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 1;//ZV03\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 2;//ZV02\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 3;//ZV01\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null\n\t\t\t\t\t\t\t\t\t&& detail.freeQuantity.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 4;\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 5;\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 6;\n\t\t\t\t\t\t\t} else if (detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null && detail.freeQuantity.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 7;\n\t\t\t\t\t\t\t} else if (detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 8;\n\t\t\t\t\t\t\t} else if (detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 9;\n\t\t\t\t\t\t\t} else if (detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null && detail.freeQuantity.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 10;//ZV24\n\t\t\t\t\t\t\t} else if (detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 11;//ZV23\n\t\t\t\t\t\t\t} else if (detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 12;//ZV22\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttypeKM = -1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapPromotionType.put(detail.promotionCode, typeKM);\n\t\t\t\t\t\t\tpreviousPromotionCode = detail.promotionCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//typeKM = mapPromotionType.get(detail.promotionCode);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tList<Row> lstR = lstRow.get(detail.promotionCode);\n\t\t\t\t\t\tif (lstR == null) {\n\t\t\t\t\t\t\tlstR = new ArrayList<Row>();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmessageError = checkDuplicate(mapType.get(detail.promotionCode), lstR, myRow);\n\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\tlistDetail.add(detail);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstR.add(myRow);\n\t\t\t\t\t\tlstRow.put(detail.promotionCode, lstR);\n\t\t\t\t\t}\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tif (mapArrayProduct.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tString[] arrProduct = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrProduct[iRun] = detail.productCode;\n\t\t\t\t\t\t\tmapArrayProduct.put(detail.promotionCode, arrProduct);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrProduct[iRun] = detail.productCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArraySaleQuantity.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrSaleQuantity[iRun] = detail.saleQuantity;\n\t\t\t\t\t\t\tmapArraySaleQuantity.put(detail.promotionCode, arrSaleQuantity);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrSaleQuantity[iRun] = detail.saleQuantity;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayQuantityUnit.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tInteger[] arrUnit = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.productUnit;\n\t\t\t\t\t\t\tmapArrayQuantityUnit.put(detail.promotionCode, arrUnit);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tInteger[] arrUnit = mapArrayQuantityUnit.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.productUnit;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArraySaleAmount.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleAmount = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrSaleAmount[iRun] = detail.saleAmount;\n\t\t\t\t\t\t\tmapArraySaleAmount.put(detail.promotionCode, arrSaleAmount);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrSaleAmount[iRun] = detail.saleAmount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayFreeProduct.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tString[] arrFreeProduct = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrFreeProduct[iRun] = detail.freeProductCode;\n\t\t\t\t\t\t\tmapArrayFreeProduct.put(detail.promotionCode, arrFreeProduct);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrFreeProduct[iRun] = detail.freeProductCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayFreeQuantityUnit.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tInteger[] arrUnit = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.freeProductUnit;\n\t\t\t\t\t\t\tmapArrayFreeQuantityUnit.put(detail.promotionCode, arrUnit);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tInteger[] arrUnit = mapArrayFreeQuantityUnit.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.freeProductUnit;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayFreeQuantity.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrFreeQuantity[iRun] = detail.freeQuantity;\n\t\t\t\t\t\t\tmapArrayFreeQuantity.put(detail.promotionCode, arrFreeQuantity);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrFreeProduct = mapArrayFreeQuantity.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrFreeProduct[iRun] = detail.freeQuantity;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayDiscountAmount.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrDiscountAmount = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrDiscountAmount[iRun] = detail.discountAmount;\n\t\t\t\t\t\t\tmapArrayDiscountAmount.put(detail.promotionCode, arrDiscountAmount);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrDiscountAmount = mapArrayDiscountAmount.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrDiscountAmount[iRun] = detail.discountAmount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayDiscountPercent.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tFloat[] arrDiscountPercent = new Float[MAX_ARRAY];\n\t\t\t\t\t\t\tarrDiscountPercent[iRun] = detail.discountPercent;\n\t\t\t\t\t\t\tmapArrayDiscountPercent.put(detail.promotionCode, arrDiscountPercent);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tFloat[] arrDiscountPercent = mapArrayDiscountPercent.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrDiscountPercent[iRun] = detail.discountPercent;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayAndOr.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBoolean[] arrAndOr = new Boolean[MAX_ARRAY];\n\t\t\t\t\t\t\tarrAndOr[iRun] = detail.andOr;\n\t\t\t\t\t\t\tmapArrayAndOr.put(detail.promotionCode, arrAndOr);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrAndOr[iRun] = detail.andOr;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Ma nhom\n\t\t\t\t\t\tif(mapPromoGroupCode.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tString[] arrPromoGroupCode = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrPromoGroupCode[iRun] = detail.promoGroupCode;\n\t\t\t\t\t\t\tmapPromoGroupCode.put(detail.promotionCode, arrPromoGroupCode);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tString[] arrPromoGroupCode = mapPromoGroupCode.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrPromoGroupCode[iRun] = detail.promoGroupCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Ten nhom\n\t\t\t\t\t\tif(mapPromoGroupName.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tString[] arrPromoGroupName = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrPromoGroupName[iRun] = detail.promoGroupName;\n\t\t\t\t\t\t\tmapPromoGroupName.put(detail.promotionCode, arrPromoGroupName);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tString[] arrPromoGroupName = mapPromoGroupName.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrPromoGroupName[iRun] = detail.promoGroupName;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Ma muc\n\t\t\t\t\t\tif(mapPromoLevelCode.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tString[] arrayPromoLevelCode = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrayPromoLevelCode[iRun] = detail.promoLevelCode;\n\t\t\t\t\t\t\tmapPromoLevelCode.put(detail.promotionCode, arrayPromoLevelCode);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tString[] arrayPromoLevelCode = mapPromoLevelCode.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrayPromoLevelCode[iRun] = detail.promoLevelCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Bội số\n\t\t\t\t\t\t/*if(mapMultiple.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tInteger[] arrMultiple = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrMultiple[iRun] = detail.multiple;\n\t\t\t\t\t\t\tmapMultiple.put(detail.promotionCode, arrMultiple);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tInteger[] arrMultiple = mapMultiple.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrMultiple[iRun] = detail.multiple;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Tối ưu\n\t\t\t\t\t\tif(mapRecursive.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tInteger[] arrRecursive = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrRecursive[iRun] = detail.recursive;\n\t\t\t\t\t\t\tmapRecursive.put(detail.promotionCode, arrRecursive);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tInteger[] arrRecursive = mapRecursive.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrRecursive[iRun] = detail.recursive;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map ĐKGH\n\t\t\t\t\t\tif(mapDkgh.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tInteger[] arrDkgh = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrDkgh[iRun] = detail.dkgh;\n\t\t\t\t\t\t\tmapDkgh.put(detail.promotionCode, arrDkgh);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tInteger[] arrDkgh = mapDkgh.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrDkgh[iRun] = detail.dkgh;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t*/\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(detail.productCode) && lstProductPromo.get(detail.promotionCode + \"-\" + detail.productCode) == null) {\n\t\t\t\t\t\t\tlstProductPromo.put(detail.promotionCode + \"-\" + detail.productCode, indexProductPromo++);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//error\n\t\t\t\t\t\terrRow.setContent13(messageError);\n\t\t\t\t\t\tlstDetailError.add(errRow);\n\t\t\t\t\t\tif (mapErrorPromotion.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tmapErrorPromotion.put(detail.promotionCode, messageError);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// totalItem++;\n\t\t\t\t\tiRun++;\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * put vao group level\n\t\t\t\t */\n\t\t\t\tString messageError = \"\";\n\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\n\t\t\t\tfor (String promotionProgramCode : mapPromotionType.keySet()) {\n\t\t\t\t\tInteger unit = -1;\n\t\t\t\t\tString[] arrPromoGroupCode = mapPromoGroupCode.get(promotionProgramCode);\n\t\t\t\t\tString[] arrPromoGroupName = mapPromoGroupName.get(promotionProgramCode);\n\t\t\t\t/*\tString[] arrPromoLevelCode = mapPromoLevelCode.get(promotionProgramCode);\n\t\t\t\t\tInteger[] arrMultiple = mapMultiple.get(promotionProgramCode);\n\t\t\t\t\tInteger[] arrRecursive = mapRecursive.get(promotionProgramCode);\t\t*/\t\t\t\n//\t\t\t\t\tInteger[] arrDkgh = mapDkgh.get(promotionProgramCode);\n\t\t\t\t\t\n\t\t\t\t\tif (mapPromotionType.get(promotionProgramCode) == 1) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(1), B(1) dc km ... C(1), D(1)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantityProduct(arrProduct, arrProductUnit, arrSaleQuantity, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleQuantity[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupKM.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 2) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(1), B(1) dc km ... 10.000\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantityProduct(arrProduct, arrProductUnit, arrSaleQuantity, arrAndOr, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleQuantity[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 3) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(1), B(1) dc km ... 10%\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantityProduct(arrProduct, arrProductUnit, arrSaleQuantity, arrAndOr, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleQuantity[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n//\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 4) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(10.000), B(10.000) dc km ... C(1), D(1)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortAmountProduct(arrProduct, arrProductUnit, arrSaleAmount, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleAmount[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 5) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(10.000), B(10.000) dc km ... 10.000\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortAmountProduct(arrProduct, arrProductUnit, arrSaleAmount, arrAndOr, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleAmount[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 6) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(10.000), B(10.000) dc km ... 10%\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortAmountProduct(arrProduct, arrProductUnit, arrSaleAmount, arrAndOr, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleAmount[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 7) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua 10000 dc km ... C(1), D(1)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tsortAmount(arrSaleAmount, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\t\t\t\t\t\tfor (int i = 0; arrSaleAmount != null && i < arrSaleAmount.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleAmount[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 8) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua 10000 dc km ... 10.000\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\tsortAmount(arrSaleAmount, null, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrSaleAmount != null && i < arrSaleAmount.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleAmount[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 9) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua 10000 dc km ... 10%\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\tsortAmount(arrSaleAmount, null, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrSaleAmount != null && i < arrSaleAmount.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleAmount[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t/*\tgroupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 10) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * ZV24\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tsortQuantity(arrSaleQuantity, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\n\t\t\t\t\t\tfor (int i = 0; arrSaleQuantity != null && i < arrSaleQuantity.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleQuantity[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t/*\t\t\tgroupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], null, indexMua++, i, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 11) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * ZV23\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\tsortQuantity(arrSaleQuantity, null, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrSaleQuantity != null && i < arrSaleQuantity.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleQuantity[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t/*\tgroupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t/*\t\tgroupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 12) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * \n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantity(arrSaleQuantity, null, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrSaleQuantity != null && i < arrSaleQuantity.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleQuantity[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\terrRow.setContent14(messageError);\n\t\t\t\t\tlstDetailError.add(errRow);\n\t\t\t\t}\n\t\t\t\tfor (String promotionProgramCode : mapPromotionType.keySet()) {\n\t\t\t\t\tsplitGroup(mapPromotionMua.get(promotionProgramCode), mapPromotionKM.get(promotionProgramCode), mapMuaKM, promotionProgramCode, lstProductPromo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Transactional\n public List<ImportResult> readExcel(MultipartFile file)throws IOException {\n ExcelUtils.Data data= ExcelUtils.readExcel(file.getInputStream(),0);\n List<Map<String,Object>> mapList=data.getRows();\n\n List<ScmCarrierQuote>quotes=new ArrayList<>();\n List<ImportResult>results=new ArrayList<>();\n Integer rowsNum=data.getRowsNum();\n\n //判断模板是否正确\n List<ExcelUtils.Column>columns=data.getColumns();\n boolean template=true;\n if(columns!=null && columns.size()==12) {\n for (ExcelUtils.Column column : columns) {\n String title = column.getTitle();\n if (!(\"承运商编码\".equals(title) || \"始发城市\".equals(title) || \"目的城市\".equals(title) || \"运输方式\".equals(title) || \"计费方式\".equals(title) || \"费用科目\".equals(title) ||\n \"最低收费\".equals(title) || \"最小区间\".equals(title) || \"最大区间\".equals(title) || \"单价\".equals(title) || \"时效\".equals(title) || \"备注\".equals(title))) {\n template=false;\n }\n }\n }else{\n template=false;\n }\n if(!template){\n ImportResult importResult=new ImportResult();\n importResult.setRowIndex(-1);\n importResult.setImportResult(\"异常\");\n importResult.setFailReason(\"模板错误!\");\n results.add(importResult);\n return results;\n }\n //判断是否填入数据\n if(rowsNum>0){\n for(int i=0;i<rowsNum;i++){\n ScmCarrierLine line=new ScmCarrierLine();\n ScmCarrierQuote quote=new ScmCarrierQuote();\n quote.setScmCarrierLine(line);\n quotes.add(quote);\n\n ImportResult importResult=new ImportResult();\n importResult.setRowIndex(i);\n importResult.setImportResult(\"成功\");\n importResult.setFailReason(\"\");\n results.add(importResult);\n }\n }else{\n ImportResult importResult=new ImportResult();\n importResult.setRowIndex(0);\n importResult.setImportResult(\"异常\");\n importResult.setFailReason(\"无数据!\");\n results.add(importResult);\n return results;\n }\n for(Map<String, Object> map:mapList){\n int index = 0;\n for(Map.Entry<String,Object>entry:map.entrySet()){\n if(\"rowIndex\".equals(entry.getKey().trim())){\n index=Integer.parseInt(String.valueOf(entry.getValue()).trim())-1;\n }\n }\n for(Map.Entry<String,Object>entry:map.entrySet()){\n String key=entry.getKey().trim();\n String value=\"\";\n if (!StringUtils.isEmpty(entry.getValue())) {\n value=entry.getValue().toString().trim();\n if(value.matches(\"\\\\d+\\\\.0\")){\n value=value.split(\"\\\\.\")[0];//整数读入时会以.0结尾\n }\n }\n if(\"rowIndex\".equals(key)){\n continue;\n }else if(\"承运商编码\".equals(key)){\n if(StringUtils.isEmpty(value)){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"承运商编码不能为空;\");\n }else{\n ScmCarrier scmCarrier= scmCarrierDao.getByField(\"code\",value);\n if(scmCarrier!=null){\n quotes.get(index).getScmCarrierLine().setCarrierId(scmCarrier.getCarrierId());\n }else{\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"承运商编码不存在;\");\n }\n }\n }else if(\"始发城市\".equals(key)){\n if(StringUtils.isEmpty(value)){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"始发城市不能为空;\");\n }else {\n BaseRegion baseRegion = baseRegionDao.getByField(\"name\", value);\n if (baseRegion != null) {\n quotes.get(index).getScmCarrierLine().setStartCity(value);\n quotes.get(index).getScmCarrierLine().setStartCityId(baseRegion.getRegionId());\n }else{\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"始发城市名称不正确;\");\n }\n }\n }else if(\"目的城市\".equals(key)){\n if(StringUtils.isEmpty(value)){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"目的城市不能为空;\");\n }else {\n BaseRegion baseRegion = baseRegionDao.getByField(\"name\", value);\n if (baseRegion != null) {\n quotes.get(index).getScmCarrierLine().setDestCity(value);\n quotes.get(index).getScmCarrierLine().setDestCityId(baseRegion.getRegionId());\n }else{\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"目的城市名称不正确;\");\n }\n }\n }else if(\"运输方式\".equals(key)){\n if(StringUtils.isEmpty(value)){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"运输方式不能为空;\");\n }else {\n if(!value.matches(\"\\\\d+(\\\\.0)?\")){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"运输方式请填写对应数值;\");\n }else{\n Integer transportType = (int) Double.parseDouble(value);\n if(transportType>9 || transportType<1){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"运输方式不存在的数值;\");\n }else{\n quotes.get(index).getScmCarrierLine().setTransportType(transportType);\n }\n }\n }\n }else if(\"计费方式\".equals(key)){\n if(StringUtils.isEmpty(value)){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"计费方式不能为空;\");\n }else {\n if(!value.matches(\"\\\\d+(\\\\.0)?\")){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"计费方式请填写对应数值;\");\n }else{\n Integer calculateType = (int) Double.parseDouble(value);\n if(calculateType>7 || calculateType<1){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"计费方式不存在的数值;\");\n }else{\n quotes.get(index).setCalculateType(calculateType);\n }\n }\n }\n }else if(\"费用科目\".equals(key)){\n if(StringUtils.isEmpty(value)){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"费用科目不能为空;\");\n }else {\n if (!value.contains(\"应付_\")) {\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"费用科目不正确;\");\n }else{\n BaseExacct baseExacct = baseExacctDao.getByField(\"name\", value);\n if (baseExacct != null) {\n quotes.get(index).setExacctId(baseExacct.getExacctId());\n }else{\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"费用科目不正确;\");\n }\n }\n }\n }else if(\"最低收费\".equals(key)){\n if(StringUtils.isEmpty(value)){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"最低收费不能为空;\");\n }else {\n if (value.matches(\"(\\\\d+)(\\\\.\\\\d+)?\")) {\n quotes.get(index).setMinimumFee(Double.parseDouble(value));\n }else{\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"最低收费格式不正确;\");\n }\n }\n }else if(\"最小区间\".equals(key)){\n if(StringUtils.isEmpty(value)){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"最小区间不能为空;\");\n }else {\n if (value.matches(\"(\\\\d+)(\\\\.\\\\d+)?\")) {\n quotes.get(index).setMinimumCondiction(Double.parseDouble(value));\n }else{\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"最小区间格式不正确;\");\n }\n }\n }else if(\"最大区间\".equals(key)){\n if(!StringUtils.isEmpty(value)) {\n if(value.matches(\"(\\\\d+)(\\\\.\\\\d+)?\")){\n Double minimumCondition=quotes.get(index).getMinimumCondiction();\n Double maxmumCondition=Double.parseDouble(value);\n if(minimumCondition!=null && minimumCondition.compareTo(maxmumCondition)>=0){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"最大区间须大于最小区间;\");\n }else{\n quotes.get(index).setMaxmumCondiction(maxmumCondition);\n }\n }else{\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"最大区间格式不正确;\");\n }\n }\n }else if(\"单价\".equals(key)){\n if(!StringUtils.isEmpty(value)) {\n if(value.matches(\"(\\\\d+)(\\\\.\\\\d+)?\")){\n quotes.get(index).setUnitPrice(Double.parseDouble(value));\n }else{\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"单价格式不正确;\");\n }\n }\n }else if(\"时效\".equals(key)){\n if(StringUtils.isEmpty(value)){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"时效不能为空;\");\n }else {\n if(value.matches(\"[1-9]\\\\d*D\\\\d*\")){\n String[]arr=value.split(\"D\");\n Double timeLine=0.0;\n if(arr.length==1){\n timeLine=Double.parseDouble(arr[0])*24;\n }else if(arr.length==2){\n if(Double.parseDouble(arr[1])>23){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"时效中小时数不能超过23;\");\n }\n timeLine=Double.parseDouble(arr[0])*24+Double.parseDouble(arr[1]);\n }\n quotes.get(index).getScmCarrierLine().setTimeline(timeLine);\n }else{\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"时效格式错误;\");\n }\n }\n }else if(\"备注\".equals(key)){\n if(!StringUtils.isEmpty(value) && value.length()>250){\n results.get(index).setImportResult(\"失败\");\n results.get(index).setFailReason(results.get(index).getFailReason()+\"备注长度不超过250;\");\n }else{\n quotes.get(index).setRemark(value);\n }\n }\n }\n }\n for(int i =0;i<results.size();i++){\n ImportResult result=results.get(i);\n if(\"成功\".equals(result.getImportResult())){\n ScmCarrierQuote quote=quotes.get(i);\n quote.setIsActive(true);\n JsonResult jsonResult=this.createScmCarrier(quote);\n if(!jsonResult.getSuccess()){\n result.setImportResult(\"失败\");\n result.setFailReason(jsonResult.getMessage());\n }\n }\n }\n return results;\n }", "public interface GermplasmListReader {\n public static final String LABEL_LIST_ID = \"LIST ID\";\n public static final String LABEL_LIST_NAME = \"LIST NAME\";\n public static final String LABEL_LIST_DATE = \"LIST DATE\";\n public static final String LABEL_LIST_TYPE = \"LIST TYPE\";\n public static final String LABEL_LIST_TITLE = \"LIST TITLE\";\n\n public static final String HEADER_GID = \"GID\";\n public static final String HEADER_ENTRY_CD = \"ENTRY CD\";\n public static final String HEADER_ENTRY_CODE = \"ENTRY CODE\"; \n public static final String HEADER_DESIGNATION = \"DESIG\";\n public static final String HEADER_CROSS = \"CROSS\";\n public static final String HEADER_SOURCE = \"SOURCE\";\n public static final String HEADER_UNIQUE_ID = \"UNIQUE ID\";\n public static final String HEADER_ENTRY_ID = \"ENTRY\";\n\n // Assume that entry values starts at 7 (8)\n public static final int ROW_HEADER_INDEX = 7;\n\n public static final int COLUMN_GID = 0;\n public static final int COLUMN_ENTRY_CODE = 1;\n public static final int COLUMN_DESIGNATION = 2;\n public static final int COLUMN_CROSS = 3;\n public static final int COLUMN_SOURCE = 4;\n public static final int COLUMN_UNIQUE_ID = 5;\n public static final int COLUMN_ENTRY_ID = 6;\n \n public static final int MAX_ROW = 2000;\n\n\n /**\n * Get Germplasm info from a excel file according to Germplasm template\n * @param fileName The file name including full path FullName\n * @return GermplasmList object with all entries\n */\n public GermplasmList getGermPlasmList(String fileName) throws Exception;\n\n public boolean isValidTemplate(String fileName) throws Exception;\n\n public boolean isValidCrossScript(String fileName) throws Exception;\n\n /**\n * Get Germplasm info from database according to Germplasm list id\n * @param listid ID for germplasm list\n * @return GermplasmList object with all entries\n */\n public GermplasmList getGermPlasmListFromDB(Integer listid);\n\n /**\n * Assign sheet number where Germplasm list is containted\n *\n * @param sheetNumber\n */\n public void setSheetNumberForGermplasm(Integer sheetNumber);\n\n /**\n * Assign sheet namn where Germplasm list is containted\n *\n * @param sheetNumber\n */\n public void setSheetNameForGermplasm(String sheetName);\n \n /**\n * Assign the list of factors header to read excel template\n * @param factorHeader \n */\n public void setEntryFactors(List<Factor> entryFactors);\n \n /**\n * Is it a germplasm template\n * @param isGermplasmTemplate \n */\n public void setIsGermplasmTemplate(boolean isGermplasmTemplate);\n \n}", "private String importExcelPromotionNew() {\n\t\ttry{\n\t\t\tList<List<String>> infoPromotion = new ArrayList<>();\n\t\t\tList<List<String>> infoPromotionDetail = new ArrayList<>();\n\t\t\tList<List<String>> infoPromotionShop = new ArrayList<>();\n\t\t\t\n\t\t\tList<CellBean> infoPromotionError = new ArrayList<>();\n\t\t\tList<CellBean> infoPromotionDetailError = new ArrayList<>();\n\t\t\tList<CellBean> infoPromotionShopError = new ArrayList<>();\n\t\t\tList<PromotionImportNewVO> promotionImportNewErrorVOs = null;\n\t\t\t\n\t\t\tgetDataImportExcelPromotion(infoPromotion, infoPromotionDetail, infoPromotionShop, infoPromotionError, infoPromotionDetailError, infoPromotionShopError);\n\t\t\t// xu ly xuất lỗi\n\t\t\tif (infoPromotionError.size() > 0 || infoPromotionDetailError.size() > 0 || infoPromotionShopError.size() > 0) {\n\t\t\t\treturn WriteFileError(infoPromotionError, infoPromotionDetailError, infoPromotionShopError);\n\t\t\t}\n\t\t\t\n\t\t\tpromotionImportNewErrorVOs = new ArrayList<>();\n\t\t\tList<PromotionImportNewVO> promotionImportNewVOs = convertDataImportExcelPromotion(infoPromotion, infoPromotionDetail, infoPromotionShop, infoPromotionError, infoPromotionDetailError, infoPromotionShopError);\n\t\t\tif(promotionImportNewVOs != null && promotionImportNewVOs.size() > 0) {\n\t\t\t\t// bỏ những CT k hợp le và những CT nằm ngoài các ZV cần xử lý\n\t\t\t\tpromotionImportNewVOs = validatePromotionImport(promotionImportNewVOs, promotionImportNewErrorVOs);\n\t\t\t}\n\t\t\t// sap xep lại cac mức cho CTKM\n\t\t\tpromotionImportNewVOs = sortPromotionImport(promotionImportNewVOs);\n\t\t\t//save\n\t\t\ttotalItem = promotionImportNewErrorVOs.size() + promotionImportNewVOs.size();\n\t\t\tnumFail = promotionImportNewErrorVOs.size();\n\t\t\tif(promotionImportNewVOs != null && promotionImportNewVOs.size() > 0) {\n\t\t\t\tpromotionImportNewErrorVOs = promotionProgramMgr.saveImportPromotionNew(promotionImportNewVOs, promotionImportNewErrorVOs, getLogInfoVO());\n\t\t\t\t// thông tin tra ve\n\t\t\t\tnumFail = promotionImportNewErrorVOs.size();\n\t\t\t\tfor (PromotionImportNewVO promotion : promotionImportNewVOs) {\n\t\t\t\t\tPromotionProgram pp = promotionProgramMgr.getPromotionProgramByCode(promotion.getPromotionCode());\n\t\t\t\t\tif (pp != null) {\n\t\t\t\t\t\tpromotionProgramMgr.updateMD5ValidCode(pp, getLogInfoVO());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// xu ly nêu có loi\n\t\t\tif (promotionImportNewErrorVOs.size() > 0) {\n\t\t\t\tconvertObjectPromotionToCellBean(promotionImportNewErrorVOs, infoPromotionError, infoPromotionDetailError, infoPromotionShopError);\n\t\t\t\tif (infoPromotionError.size() > 0 || infoPromotionDetailError.size() > 0 || infoPromotionShopError.size() > 0) {\n\t\t\t\t\treturn WriteFileError(infoPromotionError, infoPromotionDetailError, infoPromotionShopError);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(Exception ex) {\n\t\t\terrMsg = Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"system.error\");\n\t\t\tLogUtility.logErrorStandard(ex, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.importExcelPromotionNew\"), createLogErrorStandard(actionStartTime));\n\t\t}\t\t\n\t\treturn SUCCESS;\n\t}", "public void readExcel() throws BiffException, IOException {\n\t\tString FilePath = \"C:\\\\Users\\\\Rivak\\\\workspace\\\\dsaAssingment2\\\\Students.xls\";\n\t\tFileInputStream fs = new FileInputStream(FilePath);\n\t\tWorkbook wb = Workbook.getWorkbook(fs);\n\n\t\t// TO get the access to the sheet\n\t\tSheet sh = wb.getSheet(\"Sheet1\");\n\n\t\t// To get the number of rows present in sheet\n\t\tint totalNoOfRows = sh.getRows();\n\n\t\t// To get the number of columns present in sheet\n\t\tint totalNoOfCols = sh.getColumns();\n\n\t\t// add the name of all student into Student list\n\t\tfor (int row = 0; row < totalNoOfRows; row++) {\n\t\t\tStudent.add(sh.getCell(0, row).getContents());\n\t\t}\n\n\t\t// add the branch of all student into the Branches list\n\t\tfor (int row = 0; row < totalNoOfRows; row++) {\n\t\t\tArrayList<String> innerList = new ArrayList<String>();\n\t\t\tfor (int col = 1; col < totalNoOfCols; col++) {\n\t\t\t\tinnerList.add(sh.getCell(col, row).getContents());\n\t\t\t}\n\t\t\tBranches.add(innerList);\n\n\t\t}\n\n\t\t// add all the studentDetails into student class and take object of\n\t\t// perticular student\n\t\tfor (int i = 0; i < totalNoOfRows; i++) {\n\t\t\tString name = Student.get(i);\n\t\t\tArrayList<String> studentBranch = new ArrayList<String>();\n\t\t\tstudentBranch = Branches.get(i);\n\t\t\tStudentDetails.add(this.addStudent(name, studentBranch));\n\t\t}\n\n\t}", "public static void main(String[] args) throws IOException {\nFileInputStream f=new FileInputStream(\"D:\\\\AccuSelenium\\\\Ram\\\\TEST\\\\TestData\\\\LoginData.xls\");\nHSSFWorkbook w=new HSSFWorkbook(f);\nHSSFSheet s=w.getSheet(\"sheet1\");\nSystem.out.println(s.getRow(1));\n}", "public static void main(String[] args) throws UnsupportedEncodingException, FileNotFoundException {\n InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(\"riddles.xls\");\n\t\t\n InputStream is = new FileInputStream(new File(\"C:\\\\Users\\\\sean\\\\workspace\\\\mlymoon\\\\src\\\\main\\\\resources\\\\riddles.xls\"));\n\t\tExcelUtil eu = new ExcelUtil();\n List<Object> ls = eu.importDataFromExcel(new Item(), in, \"riddles.xls\");\n for(Object item : ls){\n \t Item i = (Item) item;\n \t System.out.println(i.getAnswer()+\"##\"+i.getConundrum());\n }\n String[] excelHeader = { \"所属区域(地市)\", \"机房\", \"机架资源情况\", \n \t \"\", \"端口资源情况\", \"机位资源情况\", \"\", \"\", \"设备资源情况\", \n \t \"\", \"\", \"IP资源情况\", \"\", \"\", \"\", \"\", \"网络设备数\" };\n /*ApplicationContext context = \n\t new ClassPathXmlApplicationContext(\"appContext.xml\");\n\t CustomerService customerService = context.getBean(\"customerService\",CustomerService.class);\n List<Customer> customers=customerService.findAll(null, null);\n FileOutputStream fout = new FileOutputStream(\"I:/students.xls\"); \n\t\tExcelUtil eu = new ExcelUtil();\n\t\teu.exportDataToExcel(customers, excelHeader, \"dddddd\", fout);*/\n\t}", "public static void readfile() throws IOException {\n\t\t\n String excelFilePath = \"D:\\\\Docs\\\\Study Docs\\\\11th Semester\\\\CSE400\\\\Works\\\\Database\\\\StudentInfo.xlsx\";\n FileInputStream inputStream = new FileInputStream(new File(excelFilePath));\n \n Workbook workbook = new XSSFWorkbook(inputStream);\n Sheet firstSheet = workbook.getSheetAt(0);\n Iterator<Row> iterator = firstSheet.iterator();\n int flag=0;\n \n while (iterator.hasNext()) {\n Row nextRow = iterator.next();\n Iterator<Cell> cellIterator = nextRow.cellIterator();\n int c=0;\n String cid=\"\",sid=\"\";\n \n while (cellIterator.hasNext()) {\n Cell cell = cellIterator.next();\n if(c==0){//If it is first value\n \tsid=cell.getStringCellValue();\n \tc=1;\n }\n else{//If it is second value\n \tcid=cell.getStringCellValue();\n }\n }\n if(insert_data(sid,cid)==false) flag=1;//Insert to MSaccess\n //System.out.println(sid+\" \"+cid);\n }\n \n workbook.close();\n inputStream.close();\n if(flag==0)JOptionPane.showMessageDialog(null, \"All value imported successfully.\");\n else JOptionPane.showMessageDialog(null, \"Value importing was interrupted.\");\n }", "public static void main(String[] args) throws NullPointerException, Exception {\nFile f = new File(\"C:\\\\Users\\\\Mohit_Shobhit\\\\Music\\\\Book2xlsx.xlsx\");\r\n\tFileInputStream fi= new FileInputStream(f);\r\nXSSFWorkbook xs= new XSSFWorkbook(fi);\r\nXSSFSheet xt=xs.getSheet(\"Sheet1\");\r\n\tint r=xt.getPhysicalNumberOfRows();\r\n\tfor(int i=0;i<=r;i++)\r\n\t{\r\n\t\tXSSFRow xr=xt.getRow(i);\r\n\t\tfor(int j=0;j<xr.getPhysicalNumberOfCells();j++) \r\n\t\t{\r\n\t\t\tXSSFCell x=xr.getCell(j);\r\n\t\t\tSystem.out.println(x.getStringCellValue());\r\n\t\t}\r\n\t}\r\n\t}", "@VTID(8)\n excel.XlCreator getCreator();", "private String getTemplate(String templateFile) throws IOException{\r\n \t\tStringBuffer templateBuffer = new StringBuffer();\r\n \t\tFileReader in;\r\n \t\tint c;\r\n \t\tin = new FileReader(new File(templateFolder,templateFile));\r\n \r\n \t\twhile ((c = in.read()) != -1){\r\n \t\t\ttemplateBuffer.append((char) c);\r\n \t\t}\r\n \r\n \t\tString templateString = templateBuffer.toString();\r\n \t\tif (templateString.indexOf(\"startCell\") == (-1)){\r\n \t\t\treturn templateString;\r\n \t\t}else{\r\n \t\t\ttemplateString = templateString.substring(templateString.indexOf(\"startCell\") + 12, templateString.indexOf(\"<!--endCell\"));\r\n \t\t\treturn templateString;\r\n \t\t}\r\n \t}", "public static void main (String [] args) throws IOException{\nFileInputStream fis = new FileInputStream(\"‪‪C://Users//dell//Desktop//data1.xls\");\r\nWorkbook workbook=WorkbookFactory.create(fis);\r\n\r\nSheet sheet1 = workbook.getSheet(\"Sheet2\");\r\n\r\nRow row0 = sheet1.getRow(0);\r\nCell cell00 = row0.getCell(0);\r\nString cellvalue00 = cell00.getStringCellValue();\r\nSystem.out.println(\"cell value is:\"+cellvalue00);\r\nCell cell01 = row0.getCell(1);\r\nString cellvalue01 = cell01.getStringCellValue();\r\nSystem.out.println(\"cell value is:\"+cellvalue01);\r\nRow row1 = sheet1.getRow(1);\r\nCell cell10 = row1.getCell(0);\r\nString cellvalue10 = cell10.getStringCellValue();\r\nSystem.out.println(\"cell value is:\"+cellvalue10);\r\nCell cell11 = row1.getCell(1);\r\nString cellvalue11 = cell11.getStringCellValue();\r\nSystem.out.println(\"cell value is:\"+cellvalue11);\r\n\r\n\r\n}", "public int readDataFromExcelFile(String TSPFileName, int FileType) {\n\t\t\n\t\tchar ch;\n\t\tString temp = \"\";\n\t\tint index = 0,\n\t\t\t\tj = 0,\n\t\t\t\ttype = 0, //type\n\t\t\t\tm = 0, //number of vehicles\n\t\t\t\tn = 0, //number of customers\n\t\t\t\tt = 0, //number of days(or depots)\n\t\t\t\tD = 0, //maximum duration of route\n\t\t\t\tQ = 0; //maximum load of vehicle\n\t\tint p = 3; //Np neighborhood size\n\n\t\tint depotIndex;\n\n\t\t//Open the requested file\n\t\tXSSFWorkbook workbook = new XSSFWorkbook(); \n\t\tFileInputStream fis;\n\t\tXSSFSheet sheet;\n\t\tXSSFRow curRow;\n\t\tint rowCounter = 0; //initial the row counter\n\n\t\t// FileInputStream fis;\n\t\t// InputStreamReader isr;\n\t\t// BufferedReader br;\n\t\ttry {\n\t\t\tfis = new FileInputStream(TSPFileName);\n\t\t\tworkbook = new XSSFWorkbook(fis);\n\t\t\tsheet = workbook.getSheetAt(0);\n\t\t\tcurRow = sheet.getRow(rowCounter+1); // the 2nd row is the problem data\n\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"readDataFromExcelFile - \"+TSPFileName+\" File is not present\");\n\t\t\treturn 0;\n\t\t}\n\n\t\t\n\n\n\t\t//read in the first line\n\t\ttry {\n\t\t\t//type = (int)curRow.getCell(0).getNumericCellValue();\n\t\t\ttype = 0;\n\t\t\tm = 1; // M is equal to number of vehicles \n\t\t\tcurRow = sheet.getRow(3);\n\t\t\tn = (int)curRow.getCell(1).getNumericCellValue();\n\t\t\tt = 1; // number of depots\n\t\t\tD = 9999999; // Max duration\n\t\t\tQ = 9999999; // Max load\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Line could not be read in\");\n\t\t}\n\n\t\t//Put the problem information into the ProblemInfo class\n\t\t//set the problem info for the problem\n\t\tProblemInfo.numDepots = t; //Set the number of depots to 1 for this problem\n\t\tProblemInfo.fileName = TSPFileName; //name of the file being read in\n\t\tProblemInfo.probType = type; //problem type\n\t\tProblemInfo.noOfVehs = m; //number of vehicles\n\t\tProblemInfo.noOfShips = n; //number of shipments\n\t\tProblemInfo.noOfDays = t; //number of days (horizon) or number of depots \n\t\t\n\n\t\tif (Q == 0) { //if there is no maximum capacity, set it to a very large number\n\t\t\tQ = 999999999;\n\t\t}\n\t\tif (D == 0) { //if there is no travel time, set it to a very large number\n\t\t\tD = 999999999; //if there is not maximum distance, set it to a very large number\n\n\t\t}\n\t\t\n\t\t/** @todo There three variables need to be defined at the beginning of\n\t\t * the method */\n\t\tfloat maxCapacity = Q; //maximum capacity of a vehicle\n\t\tfloat maxDistance = D; //maximum distance of a vehicle\n\t\tString serviceType = \"1\"; //serviceType is the trucktype. Should match with\n\t\t\n\t\t\n\t\t//required truck type\n\t\t//In some problems, different truck types might be present to solve\n\t\t//the problem. For this problem, we assume that there is only one\n\t\t//truck type that is available.\n\t\t//loop through each truck type and store each one in the vector\n\t\tint numTruckTypes = 1;\n\t\tfor (int i = 0; i < numTruckTypes; i++) {\n\t\t\tTSPTruckType truckType = new TSPTruckType(i, maxDistance,\n\t\t\t\t\tmaxCapacity, serviceType);\n\t\t\tProblemInfo.truckTypes.add(truckType);\n\t\t}\n\n\t\t//Some problems tend to have different customer types. In this problem\n\t\t//there is only one customer type. The integer value for the customer type\n\t\t//should match with the integer value for the truck type for the compatibility\n\t\t//check to work\n\t\t//read in the different customer types\n\t\tVector custTypes = new Vector();\n\t\t//Obtain the different customer types\n\t\tfor (int ct = 0; ct < 1; ct++) {\n\t\t\tcustTypes.add(new Integer(1));\n\t\t}\n\n\n\t\t//This section will get the depot x and y for the PTSP and the PTSP.\n\t\tfloat x = 0, //x coordinate\n\t\t\t\ty = 0; //y coordinate\n\t\tint i = 0, //customer number\n\t\t\t\td = 0, //service duration\n\t\t\t\tq = 0, //demand\n\t\t\t\tf = 0, //frequency of visit\n\t\t\t\ta = 0; //number of combinations allowed\n\t\tint runTimes;\n\n\n\t\t//if MDTSP problem, readn in n+t lines\n\t\tif (type == 0) {\n\t\t\trunTimes = n;\n\n\t\t}\n\t\t//if PTSP/PTSP, read in n+1 lines\n\t\telse {\n\t\t\trunTimes = n + 1;\n\t\t\t//This section will get the customers/depots and related information\n\t\t}\n\n\t\ttry {\n\n\t\t\trowCounter = 6; \n//----------------------------------------------------------------FIRST IF=0 XY FILES ONLY\n\t\tif (FileType == 0) {\n\t\t\t\n\t\t\tfor (int k = 0; k < runTimes; k++) {\n\t\t\t\tindex = 0;\n\t\t\t\ttemp = \"\";\n\t\t\t\tcurRow = sheet.getRow(rowCounter);\n\t\n\t\t\t\ttry { // read the current row\n\t\t\t\t\ti = (int)curRow.getCell(0).getNumericCellValue();\n\t\t\t\t\tx = (int)curRow.getCell(1).getNumericCellValue();\n\t\t\t\t\ty = (int)curRow.getCell(2).getNumericCellValue();\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"Line could not be read in line 474\");\n\t\t\t\t}\n\n\t\t\t\tInteger custType = (Integer) custTypes.elementAt(0);\n\t\t\t\tmainShipments.insertShipment(i, x, y, q, d, f, custType.toString()); //\n\t\t\n\t\t\t\trowCounter++; //go to next row \n\t\t\t}// end for\n\t\t\n\t\t\t\t\ti = 0;\n\t\t\t\t\tx = 0;\n\t\t\t\t\ty= 0;\n\n\t\t\t\tTSPDepot depot = new TSPDepot(i, x, y); //n is the number of customers\n\t\t\t\tmainDepots.insertDepotLast(depot);\n\n\t\t\t\t//Each depot has a mainTrucks. The different truck types available are\n\t\t\t\t//inserted into the mainTrucks type. For the TSP, there is only one truck type\n\t\t\t\tdepot = (TSPDepot) mainDepots.getHead().getNext();\n\t\t\t\t\n\t\t\t\tfor (i = 0; i < ProblemInfo.truckTypes.size(); i++) {\n\t\t\t\t\tTSPTruckType ttype = (TSPTruckType) ProblemInfo.truckTypes.\n\t\t\t\t\t\t\telementAt(i);\n\t\t\t\t\tdepot.getMainTrucks().insertTruckLast(new TSPTruck(ttype,\n\t\t\t\t\t\t\tdepot.getXCoord(), depot.getYCoord())); \n\t\t\t\t}\t\t\n\t\t} \n//--------------------------------END X/Y READIN METHOD\n\t\t\n\t\t\n//--------------------------------START 1,2,3,4 TYPE READIN\n\t\tif (FileType == 1 || FileType == 2 || FileType == 3 || FileType == 4) {\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tXSSFRow DimensionRow = sheet.getRow(3);\n\t\t\t\tn = (int)DimensionRow.getCell(1).getNumericCellValue(); //get dimension\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(\"Error Dimension ReadIn\");\n\t\t\t} // End First Try/Catch (Used To Get Dimension For 2D Array)\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tint[][] DataArray = new int[n][n];\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry { //===========START TRY\n\t\t\t\t\n\t\t\t\trowCounter = 7;\n\t\t\t\tcurRow = sheet.getRow(rowCounter);\n\t\t\t\tCell CurrentCell = (Cell)curRow.getCell(0);\n\t\t\t\t\n\t\t\t\tfor(int nRow = 0; nRow < n; nRow++) {\t//Populate 2D Array With Matrices\n\t\t\t\t\t\n\t\t\t\t\tcurRow = sheet.getRow(nRow+7);\n\t\t\t\t\t\n\t\t\t\t\tfor(int nCount = 0; nCount < n; nCount++) {\n\t\t\t\t\t\tCurrentCell = (Cell)curRow.getCell(nCount);\n\t\t\t\t\t\tDataArray[nRow][nCount] = (int) CurrentCell.getNumericCellValue();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tProblemInfo.distanceMatrix = new int[n][n];\n\t\t\t\tProblemInfo.distanceMatrix = DataArray;\n\t\t\t\t\n\t\t\t/*\n\t\t\t\t//PRINT OUT 2D ARRAY \n\t\t\t\tfor(int s = 0; s<n; s++){\n\t\t\t\t for(int w = 0; w<n; w++)\n\t\t\t\t {\n\t\t\t\t System.out.print(DataArray[s][w] + \" \");\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t\t}\n\t\t\t\t\t//END PRINT OUT 2D ARRAY\n\t\t\t\t System.out.println();\n\t\t\t\t System.out.println();\n\n\t\t\t*/\t \n\t\t\t\t}\t//=============END TRY\n\t\t\t\n\n\t\t\t\t\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(\"Error in Initial File Readin Dimension & Row Start\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n//~~~~~~~~ Populate with (n) InsertShipments For Matrices Problems\n\t\t\t\n\t\t\tfor(int TimesToRun = 0; TimesToRun < n-1; TimesToRun++){\t//Times To Run Loop\n\t\t\t\tInteger custType = 1;\n\t\t\t\tmainShipments.insertShipment(TimesToRun, 0, 0, 0, 0, 0, custType.toString());\n\t\t\t\t\n\t\t\t} //End Times To Run Loop\t\t\n\t\t\t\n\t\t\tint ia = 0;\n\t\t\tint xa = 0;\n\t\t\tint ya= 0;\n\n\t\t\tTSPDepot depot = new TSPDepot(ia, xa, ya); //n is the number of customers\n\t\t\tmainDepots.insertDepotLast(depot);\n\t\n\t\t\t//Each depot has a mainTrucks. The different truck types available are\n\t\t\t//inserted into the mainTrucks type. For the TSP, there is only one truck type\n\t\t\tdepot = (TSPDepot) mainDepots.getHead().getNext();\n\t\t\t\n\t\t\tfor (i = 0; i < ProblemInfo.truckTypes.size(); i++) {\n\t\t\t\tTSPTruckType ttype = (TSPTruckType) ProblemInfo.truckTypes.\n\t\t\t\t\t\telementAt(i);\n\t\t\t\tdepot.getMainTrucks().insertTruckLast(new TSPTruck(ttype,\n\t\t\t\t\t\tdepot.getXCoord(), depot.getYCoord())); \n\t\t\t}\t\t\n\t\t}\n//~~~~~~End Populate with (n) InsertShipments\n\n\t\t\t\n\t\t\n\t\t} // end of try\n\t\t\t\t\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"Reading the line\");\n\t\t}\n\n\t\treturn 1;\n\t}", "stockFilePT102.StockHeaderDocument.StockHeader getStockHeader();", "public HSSFWorkbook process(){\r\n\t\tHSSFSheet sheet = templateWorkbook.getSheetAt(0);\r\n\r\n\t\t//write product infmration\r\n\t\torder.putSetToList();\r\n\t\tList<InventoryOrderProduct> orderProducts = order.getProduct_List();\r\n\t\tint totalDataRow = orderProducts.size();\r\n\t\tfor (int i = 0; i < totalDataRow; i++){\r\n\r\n\t\t\tInventoryOrderProduct orderProduct = orderProducts.get(i);\r\n\t\t\tRow row = sheet.createRow(data_row + i);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tProduct product = orderProduct.getProductBarcode().getProduct();\r\n\t\t\trow.createCell(barcode_column).setCellValue(orderProduct.getProductBarcode().getBarcode());\r\n\t\t\t\r\n\t\t\tColor color = orderProduct.getProductBarcode().getColor();\r\n\t\t\tif (color == null)\r\n\t\t\t\trow.createCell(productCode_column).setCellValue(product.getProductCode());\r\n\t\t\telse \r\n\t\t\t\trow.createCell(productCode_column).setCellValue(product.getProductCode() + color.getName());\r\n\t\t\t\r\n\t\t\trow.createCell(unit_column).setCellValue(product.getUnit());\r\n\t\t\tint q = orderProduct.getQuantity();\r\n\t\t\t\r\n\t\t\trow.createCell(quantity_column).setCellValue(orderProduct.getQuantity());\r\n\t\t\trow.createCell(salePrice_column).setCellValue(orderProduct.getSalesPrice());\r\n\t\t\t\r\n\t\t\tString year = product.getYear().getYear();\r\n\t\t\tString quarter = product.getQuarter().getQuarter_Name();\r\n\t\t\tString brandName = product.getBrand().getBrand_Name();\r\n\t\t\t\r\n\t\t\tString productComment = year +\"年\" + brandName + quarter + \"装\";\r\n\t\t\t\t\t\r\n\t\t\t\r\n\t\t\trow.createCell(productComment_column).setCellValue(productComment);\r\n\t\t}\r\n\r\n\t\treturn templateWorkbook;\r\n\t}", "private String IMO_read_file() throws Exception {\n\t\t CSVReader reader = new CSVReader(new FileReader(System.getProperty(\"user.dir\") + \"\\\\src\\\\main\\\\resources\\\\FileUploadData\\\\test_IMO.csv\"));\n\t\t \n\t\t // this will load content into list\n\t\t List<String[]> li=reader.readAll();\n\t\t System.out.println(\"Total rows which we have is \"+li.size());\n\t\t \n\t\t // create Iterator reference\n\t\t Iterator<String[]>i1= li.iterator();\n\t\t \n\t\t // Iterate all values \n\t\t while(i1.hasNext()){\n\t\t \n\t\t String[] str=i1.next();\n\t\t \n\t\t \n\t\t for(int i=0;i<str.length;i++)\n\t\t{\n\t\t \n\t\t System.out.print(\" IMO \"+str[i]);\n\t\t \n\t\t}\n\t\t System.out.println(\" \");\n\t\t imo_from_spreadsheet = str[0]; \n\t\t\t System.out.println(\"IMO \" + imo_from_spreadsheet); \n\t\t \n\t\t}\n\t\n\t\treturn imo_from_spreadsheet;\n\t\t \n\t }", "public static int create(EcoSystem system){\n \n \n XSSFWorkbook workbook = new XSSFWorkbook();\n XSSFSheet sheet = workbook.createSheet(\"Customer Details\");\n\n //Custom font style for header\n CellStyle cellStyle = sheet.getWorkbook().createCellStyle();\n Font font = sheet.getWorkbook().createFont();\n font.setBold(true);\n cellStyle.setFont(font);\n \n int rowCount = 0;\n int columnCount1 = 0;\n \n //Creating header row\n \n String s[] = {\"CUSTOMER ID\",\"CUSTOMER NAME\",\"CONTACT NO.\",\"EMAIL ID\",\"USAGE(Gallons)\",\"BILLING DATE\",\"TOTAL BILL($)\"};\n Row row1 = sheet.createRow(++rowCount);\n for(String s1 : s){\n Cell header = row1.createCell(++columnCount1);\n header.setCellValue(s1);\n header.setCellStyle(cellStyle);\n }\n \n \n \n for(Network network : system.getNetworkList()){\n for(Enterprise enterprise : network.getEnterpriseDirectory().getEnterpriseList()){\n if(enterprise instanceof WaterEnterprise){\n for(Organization organization : enterprise.getOrganizationDirectory().getOrganizationList()){\n if(organization instanceof CustomerOrganization){\n for(Employee employee : organization.getEmployeeDirectory().getEmployeeList()){\n Customer customer = (Customer) employee;\n Row row = sheet.createRow(++rowCount);\n int columnCount = 0;\n for(int i = 0 ; i<7 ; i++ ){\n Cell cell = row.createCell(++columnCount);\n if(i==0){\n cell.setCellValue(customer.getId());\n }\n else if(i == 1){\n cell.setCellValue(customer.getName());\n }\n else if(i == 2){\n cell.setCellValue(customer.getContactNo());\n }\n else if(i == 3){\n cell.setCellValue(customer.getEmailId());\n }\n else if(i == 4){\n cell.setCellValue(customer.getTotalUsageVolume());\n }\n else if(i == 5){\n if(customer.getBillingDate() != null)\n cell.setCellValue(String.valueOf(customer.getBillingDate()));\n else\n cell.setCellValue(\"Bill Not yet available\");\n }\n else if(i == 6){\n if(customer.getTotalBill() != 0)\n cell.setCellValue(customer.getTotalBill());\n else\n cell.setCellValue(\"Bill Not yet available\");\n }\n }\n }\n }\n }\n }\n }\n }\n \n \n try (FileOutputStream outputStream = new FileOutputStream(\"Customer_details.xlsx\")) {\n workbook.write(outputStream);\n } catch (FileNotFoundException ex) {\n JOptionPane.showMessageDialog(null, \"File not found\");\n return 0;\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(null, \"IOException\");\n return 0;\n }\n return 1;\n }", "private int create(int row) throws FileNotFoundException {\n\t\tXSSFRow row0 = in.createRow(row);\r\n\t\tXSSFCell cell0row0 = row0.createCell(0);\r\n\t\t\r\n\t\tcell0row0.setCellValue(\"col_lookupName\");\r\n\r\n\t\tXSSFCell cell1row0 = row0.createCell(1);\r\n\t\t\r\n\t\tcell1row0.setCellValue(\"col_lookupType\");\r\n\r\nXSSFCell cell2row0 = row0.createCell(2);\r\n\t\t\r\n\t\tcell2row0.setCellValue(\"col_lookupTable\");\r\n\t\t\r\n\t\t\r\nXSSFCell cell3row0 = row0.createCell(3);\r\n\t\t\r\n\t\tcell3row0.setCellValue(\"col_lookupColumn\");\r\n\t\t\r\n\t\t\r\nXSSFCell cell4row0 = row0.createCell(4);\r\n\t\t\r\n\t\tcell4row0.setCellValue(\"\");\t\r\n\t\t\r\nXSSFCell cell5row0 = row0.createCell(5);\r\n\t\t\r\n\t\tcell5row0.setCellValue(\"\");\t\r\n\t\t\r\nXSSFCell cell6row0 = row0.createCell(6);\r\n\t\t\r\ncell6row0.setCellValue(\"Col_Constraints\");\r\n\r\n\r\nXSSFCell cell7row0 = row0.createCell(7);\r\n\r\ncell7row0.setCellValue(\"\");\r\n\r\n\r\n\r\nXSSFCell cell8row0 = row0.createCell(8);\r\n\r\ncell8row0.setCellValue(\"\");\r\n\r\n\t\t\r\n\t\r\nXSSFCell cell9row0 = row0.createCell(9);\r\n\r\ncell9row0.setCellValue(\"\");\r\n\r\n\r\nXSSFCell cell10row0 = row0.createCell(10);\r\n\r\ncell10row0.setCellValue(\"Col_Pagination\");\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t// Placing column headings below the row.\r\n\t\tXSSFRow row1 = in.createRow(1);\r\n\t\tXSSFCell cell3row1 = row1.createCell(3);\r\n\t\t\r\n\t\tcell3row1.setCellValue(\"Col_desplayName\");\r\n\r\n\t\tXSSFCell cell4row1 = row1.createCell(4);\r\n\t\t\r\n\t\tcell4row1.setCellValue(\"Col_columnName\");\r\n\r\n\t\tXSSFCell cell5row1 = row1.createCell(5);\r\n\t\r\n\t\tcell5row1.setCellValue(\"Col_searchable\");\r\n\r\n\t\tXSSFCell cell6row1 = row1.createCell(6);\r\n\t\r\n\t\tcell6row1.setCellValue(\"Col_constraintColumn\");\r\n\r\n\t\tXSSFCell cell7row1 = row1.createCell(7);\r\n\t\t\r\n\t\tcell7row1.setCellValue(\"Col_constraintOperator\");\r\n\r\n\t\tXSSFCell cell8row1 = row1.createCell(8);\r\n\t\t\r\n\t\tcell8row1.setCellValue(\"Col_constraintValue\");\r\n\r\n\t\tXSSFCell cell9row1 = row1.createCell(9);\r\n\t\t\r\n\t\tcell9row1.setCellValue(\"Col_parameterName\");\r\n\r\n\t\tXSSFCell cell10row1 = row1.createCell(10);\r\n\t\t\r\n\t\tcell10row1.setCellValue(\"Col_allowed\");\r\n\t\t\r\n\t\t\r\nXSSFCell cell11row1 = row1.createCell(11);\r\n\t\t\r\n\t\tcell11row1.setCellValue(\"Col_recordsPerPage\");\r\n\t\t\r\n\t\t\r\n\t\tin.addMergedRegion(new CellRangeAddress(0,0,3,5));\r\n\t\tin.addMergedRegion(new CellRangeAddress(0,0,6,9));\r\n\t\tin.addMergedRegion(new CellRangeAddress(0,0,10,11));\r\n\t\t\r\n\t\t\r\n\t\tin.autoSizeColumn(0);\r\n\t\tin.autoSizeColumn(1);\r\n\t\tin.autoSizeColumn(2);\r\n\t\tin.autoSizeColumn(3);\r\n\t\tin.autoSizeColumn(4);\r\n\t\tin.autoSizeColumn(5);\r\n\t\tin.autoSizeColumn(6);\r\n\t\tin.autoSizeColumn(7);\r\n\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t FileOutputStream outputStream = new FileOutputStream(\"D://jsonFormatRAHULKADYANbyRAHULKADYAN.xlsx\");\r\n try {\r\n\t\t\tworkbook.write(outputStream);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n /* try {\r\n\t//\t\tworkbook.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}*/\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\treturn row;\r\n\t}", "public static void main(String[] args) throws IOException {\n\r\n\t\tFile src = new File(\"C:\\\\Users\\\\new\\\\workspace\\\\FirstTestNGProject\\\\TestData\\\\InputData.xlsx\");\r\n\t\tFileInputStream fis = new FileInputStream(src);\r\n\t\tXSSFWorkbook wb = new XSSFWorkbook(fis);\r\n\t\tXSSFSheet sheet1 = wb.getSheetAt(0);\r\n\t\tint rowcount = sheet1.getLastRowNum();\r\n\t\tfor(int i=0;i<rowcount;i++){\r\n\t\t\tString data0 = sheet1.getRow(i).getCell(0).getStringCellValue();\r\n\t\t\tSystem.out.print(data0+\" \");\r\n\t\twb.close();\r\n\t}\r\n}", "public String readDataFromExcel1(String path,int sheetPosition, int row1, int cell1) {\r\n\t File file = new File(path);\r\n\t FileInputStream fis = null;\r\n\ttry {\r\n\tfis = new FileInputStream(file);\r\n\t} catch (FileNotFoundException e) {\r\n\t// TODO Auto-generated catch block\r\n\te.printStackTrace();\r\n\t}\r\n\t try {\r\n\tworkbook = new XSSFWorkbook(fis);\r\n\t} catch (IOException e) {\r\n\t// TODO Auto-generated catch block\r\n\te.printStackTrace();\r\n\t}\r\n\t XSSFSheet sheet = workbook.getSheetAt(sheetPosition);\r\n\t XSSFRow row = sheet.getRow(row1);\r\n\t String text = row.getCell(cell1).getStringCellValue();\r\n\t return text;\r\n\r\n\t}", "private static void johnTestMapping() {\n\n String format = \"EXCEL\";\n String inputfile = \"sampledata/biocode_template_short.xls\";\n String sqliteLocation = \"jdbc:sqlite:/tmp/ms_tmp/biocode_template.sqlite\";\n String D2RQmappingfile = \"file:sampledata/biocode_template_mapping.n3\";\n String outputfile = \"/tmp/ms_tmp/biocode_template.nt\";\n\n\n ReaderManager readerManager = new ReaderManager();\n try {\n readerManager.loadReaders();\n\n TabularDataReader tdr = readerManager.openFile(inputfile,format);\n TabularDataConverter tdc = new TabularDataConverter(tdr, sqliteLocation);\n\n tdc.convert();\n tdr.closeFile();\n\n Model model = new ModelD2RQ(FileUtils.toURL(D2RQmappingfile),FileUtils.langN3, \"urn:x-biscicol:\");\n FileOutputStream fileOutputStream = new FileOutputStream(outputfile);\n\n System.out.println(\"Writing output to \" + outputfile);\n model.write(fileOutputStream, FileUtils.langN3);\n fileOutputStream.close();\n\n printN3(model);\n\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException {\n\t\t\nFile f = new File(\"C:\\\\Users\\\\Vinoth kumar\\\\eclipse-workspace\\\\ExcelProject\\\\Excel\\\\sample_Excel.xlsx\");\n\t// to get into the file\nFileInputStream fin = new FileInputStream(f);\n\t//to get into the workbook\nWorkbook w = new XSSFWorkbook(fin);\n//to get into the sheet\n Sheet sheet = w.getSheet(\"Sheet1\");\n//to get into the row\nRow row = sheet.getRow(1);\n//to get into the cell\nCell cell = row.getCell(1);\nSystem.out.println(cell);\n // int physicalNumberOfRows=sheet.getPhysicalNumberOfRows();\n // System.out.println(\"number of rows:\" +physicalNumberOfRows);\n\n // int physicalNumberOfCells = row.getPhysicalNumberOfCells();\n // System.out.println(\"number of cells:\"+physicalNumberOfCells);\n\n // to print all the value of a particular cell in all the rows\n\nfor (int i = 0; i < sheet.getPhysicalNumberOfRows(); i++) {\n\tRow row2 = sheet.getRow(i);\n\tCell cell2 =row2.getCell(2);\n\tSystem.out.println(cell2);\n}\n// to print all the values in a row\nfor (int i = 0; i < sheet.getPhysicalNumberOfRows(); i++) {\n\tCell cell2 = row.getCell(i);\n\tSystem.out.println(cell2);\n\t\n}\n// to print all the values in a sheet\nfor (int i = 0; i < sheet.getPhysicalNumberOfRows(); i++) {\n\tRow row2 = sheet.getRow(i);\nfor (int j = 0; j < row2.getPhysicalNumberOfCells(); j++) {\n\tCell cell2 = row2.getCell(j);\n\tSystem.out.println(cell2);\n\t}\n\t\n}\n\n\n\t}", "public void parsingExcel() {\n theresFile = new File(pathTo).exists();\n if (theresFile) {\n try {\n FileInputStream myxls = new FileInputStream(pathTo);\n Workbook workbook = WorkbookFactory.create(myxls);\n //getting the sheet at index zero\n Sheet sheet = workbook.getSheetAt(0);\n int lastRow = sheet.getLastRowNum();\n System.out.println(\"currentID: \" + currentID);\n Row row2 = sheet.createRow(lastRow + 1);\n Data data = new Data(currentID++, jTextField1.getText(), jTextField2.getText(),\n jTextFieldModel.getText(), jTextFieldSerialN.getText(),\n Integer.parseInt(jTextFieldComments.getText()), jTextAreaDescription.getText());\n\n for (int i = 0; i < 7; i++) {\n Cell cell4 = row2.createCell(i);\n switch (i) {\n case 0:\n cell4.setCellValue(data.getID());\n break;\n case 1:\n cell4.setCellValue((String) data.getName());\n break;\n case 2:\n cell4.setCellValue((String) data.getDevice());\n break;\n case 3:\n cell4.setCellValue((String) data.getDeviceModel());\n break;\n case 4:\n cell4.setCellValue((String) data.getSerialNumber());\n break;\n case 5:\n cell4.setCellValue((int) data.getOptional());\n break;\n case 6:\n cell4.setCellValue((String) data.getDecription());\n break;\n }\n\n }\n FileOutputStream outputStream = new FileOutputStream(pathTo);\n workbook.write(outputStream);\n workbook.close();\n } catch (IOException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n } catch (EncryptedDocumentException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n if (jTextFieldComments.getText().equals(\"\") || jTextFieldComments.getText().equals(null)) {\n JOptionPane.showMessageDialog(null, \"Morate uneti količinu\");\n } else {\n try {\n Data data = new Data(1, jTextField1.getText(), jTextField2.getText(),\n jTextFieldModel.getText(), jTextFieldSerialN.getText(),\n Integer.parseInt(jTextFieldComments.getText()), jTextAreaDescription.getText());\n writtingExcelFile(makingExcelWorkbook(data));\n } catch (FileNotFoundException ex) {\n Logger.getLogger(MainWindow.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n\n// try {\n// FileInputStream myxls = new FileInputStream(pathTo);\n// HSSFWorkbook studentsSheet = new HSSFWorkbook(myxls);\n// HSSFSheet worksheet = studentsSheet.getSheetAt(0);\n// int lastRow = worksheet.getLastRowNum();\n// System.out.println(lastRow);\n// Row row = worksheet.createRow(++lastRow);\n// row.createCell(1).setCellValue(\"Dr.Hola\");\n// myxls.close();\n// FileOutputStream output_file =new FileOutputStream(new File(\"poi-testt.xls\")); \n// //write changes\n// studentsSheet.write(output_file);\n// output_file.close();\n// System.out.println(\" is successfully written\");\n// } catch (Exception e) {\n// }\n }", "public static void Read() throws IOException {\n\t\tFile file = new File(\"C:\\\\Users\\\\villu\\\\Documents\\\\Book12.xlsx\");\n\t\tFileInputStream excel= new FileInputStream(file);\n\t\tXSSFWorkbook workbook= new XSSFWorkbook(excel);\n\t\tXSSFSheet sheet= workbook.getSheetAt(0);\n\t\tIterator<Row> rowIterator=sheet.iterator();\n\t\twhile(rowIterator.hasNext()) {\n\t\t\tRow rowvalue=rowIterator.next();\n\t\t\tIterator<Cell> columnIterator=rowvalue.cellIterator();\n\t\t\tint i = 1;\n\t\t\twhile(columnIterator.hasNext()) \n\t\t\t{\n\t\t\t\tif(i==1) {\n\t\t\t\t\tFirst_Name.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\t\t\t\telse if(i==2)\n\t\t\t\t{\n\t\t\t\t\tMiddle_Name.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\t\t\t\telse if(i==3)\n\t\t\t\t{\n\t\t\t\t\tLast_Name.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\t\t\t\telse if(i==4)\n\t\t\t\t{\n\t\t\t\t\tUser_Name.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\t\t\t\telse if(i==5)\n\t\t\t\t{\n\t\t\t\t\tEmployee_Id.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\t\t\t\telse if(i==6)\n\t\t\t\t{\n\t\t\t\t\tPassword.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\t\t\t\telse if(i==7)\n\t\t\t\t{\n\t\t\t\t\tGender.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tMarital_Status.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t}workbook.close();\n\t\n}", "public abstract String getImportFromFileTemplate( );", "public static HashMap<String, String> readFromExcel() throws IOException, WriteException, BiffException {\n\t\t\t\tList<String> keyList = new ArrayList<String>(); \r\n\t\t\t\tList<String> list = new ArrayList<String>(); \r\n\t\t\t\tHashMap<String, String> map = new HashMap<String, String>(); \r\n\t\t\t\tString str = null;\r\n\t\t\t\r\n\t\t\t\ttry\r\n\t\t {\r\n\t\t File f1=new File(\"//ecs-9844/DoNotDelete/JenkinsData/input.xls\");\r\n\t\t //the excel sheet which contains data\r\n\t\t WorkbookSettings ws=new WorkbookSettings();\r\n\t\t ws.setLocale(new Locale(\"er\",\"ER\"));\r\n\t\t Workbook workbook=Workbook.getWorkbook(f1,ws);\r\n\t\t Sheet readsheet=workbook.getSheet(0);\r\n\t\t //Loop to read the KEYS from Excel i.e, 1st column of the Excel\r\n\t\t for(int i=0;i<readsheet.getColumns();i++) {\r\n\t\t \tstr=readsheet.getCell(i,0).getContents().toString();\r\n\t\t \tlist.add(str);\r\n\t\t }\r\n\t\t \tkeyList.addAll(list);\r\n\t\t \t// Hardcoding the first map (key, value) values \r\n\t\t \tmap.put(keyList.get(0), readsheet.getCell(0, 1).getContents().toString());\r\n\t\t \t// Loop to read TEST DATA from the Excel\r\n\t\t for(int i=1;i<readsheet.getRows();i++) {\r\n\t\t for(int j=1;j<readsheet.getColumns();j++) {\t\r\n\t\t str=readsheet.getCell(j,i).getContents().toString();\r\n\t\t list.add(str);\r\n\t\t System.out.println(str);\r\n\t\t map.put(keyList.get(j),str); \r\n\t\t \t}\r\n\t\t }\r\n\t\t //Print the map(key, value) \r\n\t\t System.out.println(\"Print map\");\r\n\t\t System.out.println(map);\r\n\t\t \r\n\t\t }\r\n\t\t catch(IOException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\r\n\t\t catch(BiffException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t } catch (Exception e) {\r\n\t\t e.printStackTrace(); \r\n\t\t }\r\n\t\t\t\t\treturn map;\r\n\t}", "public static String getSampleLocation(int rowNum){\n\t\tFileInputStream file = null;\n\t\tWorkbook wb = null;\n\t\ttry {\n\t\t\tfile = new FileInputStream(new File(SAMPLE_DATA_LOCATION));\n\t\t\ttry {\n\t\t\t\twb = new XSSFWorkbook(file);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tSheet sheet1 = wb.getSheetAt(0);\n\t\t//this cell refers to the value from column B in that row\n\t\tCell cell = sheet1.getRow(rowNum).getCell(1);\n\t\treturn cell.getRichStringCellValue().getString();\n\t}", "public String importExcel() throws Exception {\n\t\tresetToken(result);\n\t\t//Kiem tra tap tin hop le\n\t\terrMsg = ValidateUtil.validateExcelFile(excelFile, excelFileContentType);\n\t\tif (!StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\tisError = true;\n\t\t\treturn SUCCESS;\n\t\t}\n\t\treturn importExcel21ZV();\n\t}", "private static List<rowdata> readExcelSheet(Sheet sheet) {\n\n List<rowdata> rowdataList = new ArrayList<>();\n\n if (sheet != null) {\n int rowNos = sheet.getLastRowNum();// 得到excel的总记录条数\n\n for (int i = 1; i <= rowNos; i++) {// 遍历行\n try {\n Row row = sheet.getRow(i);\n if (row != null) {\n Cell cell = row.getCell(0);\n if (cell != null) {\n cell.setCellType(CellType.STRING);\n rowdata rda = new rowdata();\n rda.CodeAll = cell.getStringCellValue();\n rda.no1 = rda.CodeAll.substring(0, 2);\n\n String[] allarr = StringUtils.split(rda.CodeAll, \"-\");\n String dotpart = allarr[1];\n\n String[] arr = StringUtils.split(dotpart, \".\");\n rda.no2 = arr[0];\n rda.no3 = arr[1];\n rda.no4 = arr[2];\n if (arr.length > 3)\n rda.no5 = arr[3];\n\n // System.out.print(cell.getStringCellValue() + \" \");\n rowdataList.add(rda);\n System.out.println(\"当前正在处理的记录是\" + i + \"/\" + rowNos + rda.CodeAll + \"分解后的结果\" + rda.no1 + rda.no2 + rda.no3 + rda.no4 + rda.no5);\n }\n }\n }\n catch (Exception ex)\n {\n System.out.println(\"当前正在处理的记录是\" + i );\n }\n }\n }\n\n\n return rowdataList;\n }", "@DISPID(149)\n @PropGet\n excel.XlCreator getCreator();", "@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();", "@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();", "@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();", "@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();", "public static String getCellDataFromExcel(String path,String sheetname,int rownum,int cellnum) throws EncryptedDocumentException, InvalidFormatException, FileNotFoundException, IOException\r\n\t\t{\r\n\t\t\tWorkbook wb = WorkbookFactory.create(new FileInputStream(path));\r\n\t\t\treturn wb.getSheet(sheetname).getRow(rownum).getCell(cellnum).toString();\r\n\t\t}", "@VTID(15)\n excel.Range getLocation();", "@VTID(8)\r\n excel.XlCreator getCreator();", "public interface Excel {\n public void loadExcel(String filePath);\n\n public String getCellValue(Cell cell);\n\n public void init();\n}", "private static byte[] postProcess(byte[] excel) {\n try (ByteArrayInputStream is = new ByteArrayInputStream(excel)) {\n try (ByteArrayOutputStream os = new ByteArrayOutputStream()) {\n JxlsHelper jxlsHelper = JxlsHelper.getInstance();\n Transformer transformer = jxlsHelper.createTransformer(is, os);\n if (transformer instanceof PoiTransformer) {\n try(Workbook workbook = ((PoiTransformer) transformer).getWorkbook()) {\n Sheet sheet = workbook.getSheetAt(0);\n List<CellData> list = transformer.getCommentedCells();\n for (CellData cellData : list) {\n /**\n * FIXME: hois:autoheight comments are left in output file\n */\n if (cellData.getCellComment().contains(\"hois:autoheight\")) {\n Row row = sheet.getRow(cellData.getRow());\n if (row != null) {\n Cell cell = row.getCell(cellData.getCol());\n if (cell != null) {\n cell.setCellComment(null);\n cell.getCellStyle().setWrapText(true);\n row.setHeight((short) -1);\n }\n }\n }\n }\n }\n jxlsHelper.processTemplate(new Context(), transformer);\n excel = os.toByteArray();\n }\n\n }\n } catch (@SuppressWarnings(\"unused\") Throwable e) {\n //XXX: On exception initial excel is returned\n }\n\n return excel;\n }", "private void process(String rowString) {\r\n\r\n //split to array\r\n data = rowString.split(\",\");\r\n len=data.length;\r\n\r\n //get xlsx sheet file name\r\n buildFileName();\r\n\r\n System.out.println(unitName.toString());\r\n\r\n excel();\r\n\r\n }", "public Map<String, Object[]> loadMarksheet(String filePath) {\n int keyCounter = 0;\n Map<String, Object[]> map = new TreeMap<String, Object[]>();\n\n try {\n FileInputStream fis = new FileInputStream(new File(filePath)); //can generate file not found \n try { //nesteed try\n\n// Workbook workbook = WorkbookFactory.create(fis);//new HSSFWorkbook(fis);\n Workbook workbook = new XSSFWorkbook(fis);\n // Sheet sheet = workbook.getSheetAt(0); //can generate sheet not available exception \n // HSSFSheet sheet = (HSSFSheet)workbook.getSheetAt(0);\n XSSFSheet sheet = (XSSFSheet) workbook.getSheetAt(0);\n LinkedList node = new LinkedList();\n\n for (Iterator<Row> row = sheet.rowIterator(); row.hasNext();) {\n XSSFRow r = (XSSFRow) row.next();\n// HSSFRow r =(HSSFRow) row.next();\n for (Iterator<Cell> cell = r.cellIterator(); cell.hasNext();) {\n // HSSFCell c = (HSSFCell)cell.next();\n XSSFCell c = (XSSFCell) cell.next();\n node.add(c.getRichStringCellValue());\n }//end of inner for each loop\n map.put(\"rec\" + keyCounter++, node.toArray());\n }//end of for loop \n }//end of nested try\n catch (Exception ex) { //nested catch block \n return null;\n }//end of the nested catch block ;\n\n }//end of the outter try block \n catch (Exception ex) {\n System.out.println(ex);\n }//end of the outer catch block \n return map;\n\n }", "public interface IMxlFile {\n String getBaseName();\n\n List<MxlAnnotation> getAnnotations();\n\n MxlText getText();\n\n String getRawData();\n}", "@Override\n\tpublic Map<String,Object> exinExcel(Map<String, Object> map) {\n\t\tMap<String,Object> resultmap = new HashMap<String, Object>();\n\t\tint result = 0;\n\t\tExinExcel exin = new ExinExcel();\n\t\tList<List<Object>> list = exin.exinExcel(map.get(\"filename\").toString(), (InputStream) map.get(\"content\"));\n\t\tint i = 0, error = 0;\n\t\tif (list.size() > 3) {\n\t\t\tresult = 0;\n\t\t\tresultmap.put(\"total\", list.size()-3);\n\t\t\tresultmap.put(\"returncode\", \"success\");\n\t\t\tfor (List<Object> bis : list) {\n\t\t\t\tif(i<=2){ //跳过前三行\n\t\t\t\t\ti++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\ttry{\n\t\t\t\t\tERM_EmergencyResInstrumentEntity yjzb = new ERM_EmergencyResInstrumentEntity();\n\t\t\t\t\tTimestamp t = DateUtils.getSysTimestamp();\n\t\t\t\t\tyjzb.setS1(t);\n\t\t\t\t\tyjzb.setS2(t);\n\t\t\t\t\tyjzb.setS3(0);\n\t\t\t\t\tif(map.get(\"usertype\").equals(\"1\")){\n\t\t\t\t\t\tyjzb.setQyid(Long.valueOf(map.get(\"qyid\").toString()));\n\t\t\t\t\t}\n\t\t\t\t\tyjzb.setUserid(Long.parseLong(UserUtil.getCurrentUser().getId().toString()));\n\t\t\t\t\tyjzb.setM1(bis.get(0).toString());\n\t\t\t\t\tyjzb.setM2(bis.get(1).toString());\n\t\t\t\t\tyjzb.setM3(bis.get(2).toString());\n\t\t\t\t\tif(bis.get(3).toString()!=null&&bis.get(3).toString()!=\"\"){\n\t\t\t\t\t\tyjzb.setM4(Float.parseFloat(bis.get(3).toString()));\n\t\t\t\t\t}\n\t\t\t\t\tyjzb.setM5(bis.get(4).toString());\n\t\t\t\t\tif(bis.get(5).toString()!=null&&bis.get(5).toString()!=\"\"){\n\t\t\t\t\t\tyjzb.setM6(Float.parseFloat(bis.get(5).toString()));\n\t\t\t\t\t}\n\t\t\t\t\tif(bis.get(6).toString()!=null&&bis.get(6).toString()!=\"\"){\n\t\t\t\t\t\tyjzb.setM7(Float.parseFloat(bis.get(6).toString()));\n\t\t\t\t\t}\n\t\t\t\t\tyjzb.setM8(bis.get(7).toString());\n\t\t\t\t\tyjzb.setM9(bis.get(8).toString());\n\t\t\t\t\tyjzb.setM10(bis.get(9).toString());\n\t\t\t\t\tyjzb.setM11(bis.get(10).toString());\n\t\t\t\t\tyjzb.setM13(bis.get(11).toString());\n\t\t\t\t\termYjzbDao.addInfo(yjzb);\n\t\t\t\t\tresult++;\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\terror++;\n\t\t\t\t}\n\t\t\t\tresultmap.put(\"success\",result);\n\t\t\t\tresultmap.put(\"error\", error);\n\t\t\t}\n\t\t}else if(list.size()==3){\n\t\t\tresultmap.put(\"success\",result);\n\t\t\tresultmap.put(\"error\", error);\n\t\t\tresultmap.put(\"returncode\", \"warn\");\n\t\t}else if(list.size()<3){\n\t\t\tresultmap.put(\"success\",result);\n\t\t\tresultmap.put(\"error\", error);\n\t\t\tresultmap.put(\"returncode\", \"ext\");\n\t\t}\n\t\tif(Integer.valueOf(resultmap.get(\"success\").toString())==0){\n\t\t\tresultmap.put(\"returncode\", \"warn\");\n\t\t}\n\t\treturn resultmap;\n\n\t}", "public void processInput(Exchange exchange) {\n String fileName = (String) exchange.getIn().getHeaders().get(Exchange.FILE_NAME);\n logger.info(\"fileProcessing:{}\",fileName);\n try {\n List<DailyReconcilationRecord> dailyReconcilationRecordList = (List<DailyReconcilationRecord>)exchange.getIn().getBody();\n try (XSSFWorkbook xssfWorkbook = new XSSFWorkbook()) {\n XSSFSheet lasSheet = xssfWorkbook.createSheet(ReCAPConstants.DAILY_RR_LAS);\n xssfWorkbook.setSheetOrder(ReCAPConstants.DAILY_RR_LAS, 0);\n int i = 0;\n setColumnWidthForSheet(lasSheet);\n CellStyle cellStyle = xssfWorkbook.createCellStyle();\n cellStyle.setAlignment(HorizontalAlignment.LEFT);\n logger.info(\"started creating las sheet\");\n for (DailyReconcilationRecord dailyReconcilationRecord : dailyReconcilationRecordList) {\n XSSFRow row = lasSheet.createRow(i);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getRequestId(), 0);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getBarcode(), 1);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getCustomerCode(), 2);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getStopCode(), 3);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getPatronId(), 4);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getCreateDate(), 5);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getLastUpdatedDate(), 6);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getRequestingInst(), 7);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getOwningInst(), 8);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getDeliveryMethod(), 9);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getStatus(), 10);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getErrorCode(), 11);\n createCell(xssfWorkbook, row,cellStyle, dailyReconcilationRecord.getErrorNote(), 12);\n i++; \n }\n logger.info(\"completed creating las sheet\");\n Sheet readLasSheet = xssfWorkbook.getSheetAt(0);\n XSSFSheet scsbSheet = xssfWorkbook.createSheet(ReCAPConstants.DAILY_RR_SCSB);\n xssfWorkbook.setSheetOrder(ReCAPConstants.DAILY_RR_SCSB, 1);\n createHeader(scsbSheet);\n XSSFCellStyle dateCellStyle = getXssfCellStyleForDate(xssfWorkbook);\n logger.info(\"started creating scsb sheet\");\n for (int j = 1; j <= readLasSheet.getLastRowNum(); j++) {\n readValuesFromLasSheet(xssfWorkbook, readLasSheet, scsbSheet, dateCellStyle, j);\n }\n logger.info(\"completed creating scsb sheet\");\n compareLasAndScsbSheets(xssfWorkbook,cellStyle);\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(ReCAPConstants.DAILY_RR_FILE_DATE_FORMAT);\n FileOutputStream fileOutputStream = new FileOutputStream(filePath + \"/\" + ReCAPConstants.DAILY_RR + simpleDateFormat.format(new Date()) + \".xlsx\");\n xssfWorkbook.write(fileOutputStream);\n fileOutputStream.flush();\n fileOutputStream.close();\n logger.info(\"total number of sheets created {}\",xssfWorkbook.getNumberOfSheets());\n camelContext.startRoute(ReCAPConstants.DAILY_RR_FS_ROUTE_ID);\n logger.info(\"started \"+ReCAPConstants.DAILY_RR_FS_ROUTE_ID);\n }\n }\n catch (Exception e){\n logger.error(ReCAPConstants.LOG_ERROR + e);\n }\n logger.info(\"fileProcessed:{}\",fileName);\n }", "private void loadInformation(){\n\t\ttry{\n\t\t\tFileReader fr = new FileReader(\"SpaceProgramGaussDistribution.txt\");\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tScanner sc = new Scanner(br);\n\t\t\t\n\t\t\tString info = \"\";\n\t\t\t\n\t\t\twhile(sc.hasNextLine()){\n\t\t\t\tinfo += sc.nextLine();\n\t\t\t}\n\t\t\t\n\t\t\tString split[] = info.split(\"#\");\n\t\t\t\n\t\t\tfor(int i = 0; i < split.length; i++){\n\t\t\t\tpopulationInfo += split[i]+\"\\n\";\n\t\t\t}\n\t\t\tsc.close();\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"File not found: SpaceProgramGaussDistribution.txt\");\n\t\t}\n\t}", "@Test\n public void test(){\n ExcelUtil qa3Sheet = new ExcelUtil(\"src/test/resources/Vytrack testusers.xlsx\", \"QA3-short\");\n // 1 based , not 0 based\n int rowCount = qa3Sheet.rowCount();\n // 1 based, not 0 based\n int colCount = qa3Sheet.columnCount();\n System.out.println(\"rowCount = \" + rowCount);\n System.out.println(\"colCount = \" + colCount);\n\n List<String> columnsNames = qa3Sheet.getColumnsNames();\n System.out.println(\"columnsNames = \" + columnsNames);\n // 0 based, get specific cell value based on index\n String cellData = qa3Sheet.getCellData(2, 3);\n System.out.println(\"cellData = \" + cellData);\n\n // get all table values in a list\n List<Map<String, String>> dataList = qa3Sheet.getDataList();\n\n System.out.println(dataList.get(5).get(\"firstname\"));\n\n String[][] dataArray = qa3Sheet.getDataArray();\n\n System.out.println(dataArray[1][1]);\n\n }", "public List<FileRow> getExcel_file() {\r\n\t\treturn excel_file;\r\n\t}", "public String get(String content)\n {\n String nValue = \"\";\n \n try {\n FileInputStream input;\n if(Global.dataFile ==null)\n {\n input = new FileInputStream(Global.workDir+\"\\\\TestData\\\\licensing.xls\");\n }\n else if((Global.dataFile.equals(\"\")))\n {\n input = new FileInputStream(Global.workDir+\"\\\\TestData\\\\licensing.xls\");\n }\n else\n {\n input = new FileInputStream(Global.dataFile);\n }\n HSSFWorkbook wb = new HSSFWorkbook(input);\n HSSFSheet sheet = wb.getSheetAt(0);\n nValue = findValue(sheet, content);\n return nValue;\n } catch (Exception e) {\n // TODO Auto-generated catch block\n// e.printStackTrace();\n return nValue=\"\";\n } \n }", "stockFilePT102.StockFileDocument.StockFile getStockFile();", "public static void main(String[] args) throws IOException {\n\t\tFile file = new File(\"C:\\\\Users\\\\Leonardo\\\\git\\\\repository5\\\\HandleExcelWithApachePoi\\\\src\\\\arquivo_excel.xls\");\r\n\t\t\r\n\t\tif (!file.exists()) {\r\n\t\t\tfile.createNewFile();\r\n\t\t}\r\n\t\t\r\n\t\tPessoa p1 = new Pessoa();\r\n\t\tp1.setEmail(\"[email protected]\");\r\n\t\tp1.setIdade(50);\r\n\t\tp1.setNome(\"Ricardo Edigio\");\r\n\t\t\r\n\t\tPessoa p2 = new Pessoa();\r\n\t\tp2.setEmail(\"[email protected]\");\r\n\t\tp2.setIdade(40);\r\n\t\tp2.setNome(\"Marcos Tadeu\");\r\n\t\t\r\n\t\tPessoa p3 = new Pessoa();\r\n\t\tp3.setEmail(\"[email protected]\");\r\n\t\tp3.setIdade(30);\r\n\t\tp3.setNome(\"Maria Julia\");\r\n\t\t\r\n\t\tList<Pessoa> pessoas = new ArrayList<Pessoa>();\r\n\t\tpessoas.add(p1);\r\n\t\tpessoas.add(p2);\r\n\t\tpessoas.add(p3);\r\n\t\t\r\n\t\t\r\n\t\tHSSFWorkbook hssfWorkbook = new HSSFWorkbook(); /*escrever na planilha*/\r\n\t\tHSSFSheet linhasPessoa = hssfWorkbook.createSheet(\"Planilha de pessoas\"); /*criar planilha*/\r\n\t\t\r\n\t\tint nlinha = 0;\r\n\t\tfor (Pessoa p : pessoas) {\r\n\t\t\tRow linha = linhasPessoa.createRow(nlinha ++); /*criando a linha na planilha*/\r\n\t\t\t\r\n\t\t\tint celula = 0;\r\n\t\t\t\r\n\t\t\tCell celNome = linha.createCell(celula ++); /*celula 1*/\r\n\t\t\tcelNome.setCellValue(p.getNome());\r\n\t\t\t\r\n\t\t\tCell celEmail = linha.createCell(celula ++); /*celula 2*/\r\n\t\t\tcelEmail.setCellValue(p.getEmail());\r\n\t\t\t\r\n\t\t\tCell celIdade = linha.createCell(celula ++); /*celula 3*/\r\n\t\t\tcelIdade.setCellValue(p.getIdade());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tFileOutputStream saida = new FileOutputStream(file);\r\n\t\thssfWorkbook.write(saida);\r\n\t\t\r\n\t\tsaida.flush();\r\n\t\tsaida.close();\r\n\t\t\r\n\t\tSystem.out.println(\"Planilha Criada com Sucesso!\");\r\n\t\t\r\n\t}", "void readData(File file) {\n // Common Place?--\n // Bool--\n List<DirectoryEntry>directoryEntries = new ArrayList<DirectoryEntry>();\n List<String>directoryTypes = new ArrayList<String>();\n try {\n FileInputStream excelFile = new FileInputStream(file);\n Workbook workbook = new XSSFWorkbook(excelFile);\n Sheet datatypeSheet = workbook.getSheetAt(0);\n Iterator<Row> iterator = datatypeSheet.iterator();\n\n int rowCnt=0;\n while (iterator.hasNext()) {\n Row currentRow = iterator.next();\n\n // skip the first 3 rows\n rowCnt++;\n if(rowCnt<=3) {\n continue ;\n }\n\n\n // iterate over cells on the row\n int columnCnt=0;\n String name = null;\n String phoneNumber = null;\n String starCodePattern = null;\n String categoryTab = null;\n\n Iterator<Cell> columnIterator = currentRow.iterator();\n while (columnIterator.hasNext()) {\n Cell currentCell = columnIterator.next();\n\n //getCellTypeEnum shown as deprecated for version 3.15\n //getCellTypeEnum ill be renamed to getCellType starting from version 4.0\n String value = \"\";\n if (currentCell.getCellTypeEnum() == CellType.STRING) {\n value = currentCell.getStringCellValue();\n } else if (currentCell.getCellTypeEnum() == CellType.NUMERIC) {\n value = \"\" + currentCell.getNumericCellValue();\n }\n\n columnCnt++;\n switch(columnCnt) {\n case 1:\n name = value;\n break;\n case 2:\n phoneNumber = value;\n break;\n case 3:\n starCodePattern = value;\n break;\n case 4:\n categoryTab = value;\n if( !directoryTypes.contains(categoryTab) ) {\n directoryTypes.add(categoryTab);\n }\n break;\n }\n }\n\n if(StringUtils.isNotBlank(name)) {\n directoryEntries.add(new DirectoryEntry(name, phoneNumber, starCodePattern, categoryTab));\n data.add(new DirectoryEntry(name, phoneNumber, starCodePattern, categoryTab));\n }\n }\n\n workbook.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void exportXLS() {\n\t\t// Create a Workbook\n\t\tWorkbook workbook = new HSSFWorkbook(); // new HSSFWorkbook() for\n\t\t\t\t\t\t\t\t\t\t\t\t// generating `.xls` file\n\n\t\t/*\n\t\t * CreationHelper helps us create instances of various things like DataFormat,\n\t\t * Hyperlink, RichTextString etc, in a format (HSSF, XSSF) independent way\n\t\t */\n\t\tCreationHelper createHelper = workbook.getCreationHelper();\n\n\t\t// Create a Sheet\n\t\tSheet sheet = workbook.createSheet(\"العقود\");\n\n\t\t// Create a Font for styling header cells\n\t\tFont headerFont = workbook.createFont();\n\t\theaderFont.setBold(true);\n\t\theaderFont.setFontHeightInPoints((short) 14);\n\t\theaderFont.setColor(IndexedColors.RED.getIndex());\n\n\t\t// Create a CellStyle with the font\n\t\tCellStyle headerCellStyle = workbook.createCellStyle();\n\t\theaderCellStyle.setFont(headerFont);\n\n\t\t// Create a Row\n\t\tRow headerRow = sheet.createRow(0);\n\n\t\tString[] columns = { \"الرقم\", \"رقم العقد \", \"تاريخ البداية\", \"تاريخ النهاية\", \"المستثمر\", \"حالة الفاتورة\" };\n\t\t// Create cells\n\t\tfor (int i = 0; i < columns.length; i++) {\n\t\t\tCell cell = headerRow.createCell(i);\n\t\t\tcell.setCellValue(columns[i]);\n\t\t\tcell.setCellStyle(headerCellStyle);\n\t\t}\n\n\t\t// Create Cell Style for formatting Date\n\t\tCellStyle dateCellStyle = workbook.createCellStyle();\n\t\tdateCellStyle.setDataFormat(createHelper.createDataFormat().getFormat(\"dd-MM-yyyy\"));\n\n\t\t// Create Other rows and cells with employees data\n\t\tint rowNum = 1;\n\t\tint num = 1;\n//\t\tfor (ContractDirect contObj : contractsDirectList) {\n//\t\t\tRow row = sheet.createRow(rowNum++);\n//\t\t\trow.createCell(0).setCellValue(num);\n//\t\t\trow.createCell(1).setCellValue(contObj.getContractNum());\n//\n//\t\t\tif (!tableHigriMode) {\n//\t\t\t\tCell date1 = row.createCell(2);\n//\t\t\t\tdate1.setCellValue(contObj.getStartContDate());\n//\t\t\t\tdate1.setCellStyle(dateCellStyle);\n//\t\t\t\tCell date2 = row.createCell(3);\n//\t\t\t\tdate2.setCellValue(contObj.getEndContDate());\n//\t\t\t\tdate2.setCellStyle(dateCellStyle);\n//\t\t\t} else {\n//\t\t\t\tCell date1 = row.createCell(2);\n//\t\t\t\tdate1.setCellValue(contObj.getStartDate());\n//\t\t\t\tdate1.setCellStyle(dateCellStyle);\n//\t\t\t\tCell date2 = row.createCell(3);\n//\t\t\t\tdate2.setCellValue(contObj.getEndDate());\n//\t\t\t\tdate2.setCellStyle(dateCellStyle);\n//\t\t\t}\n//\n//\t\t\tInvestor inv = (Investor) dataAccessService.findEntityById(Investor.class, contObj.getInvestorId());\n//\t\t\trow.createCell(4).setCellValue(inv.getName());\n//\t\t\trow.createCell(5).setCellValue(contObj.getPayStatusName());\n//\t\t\tnum++;\n//\t\t}\n\n\t\t// Resize all columns to fit the content size\n\t\tfor (int i = 0; i < columns.length; i++) {\n\t\t\tsheet.autoSizeColumn(i);\n\t\t}\n\n\t\t// Write the output to a file\n\n\t\ttry {\n\t\t\tString path = \"D:/العقود.xls\";\n\t\t\tFileOutputStream fileOut = new FileOutputStream(path);\n\t\t\tworkbook.write(fileOut);\n\t\t\tfileOut.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\n\t\t\tworkbook.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Closing the workbook\n\n\t}", "private static void showExcel(Experiment e1, ArrayList<Institution> bank) {\n\n\n\n\t\tfinal String INPUT_DIR=\"D:/Users/atsushi/Desktop/実験結果/\";\n\t\tWorkbook book=null;\n\n\t\ttry{\n\t\t\tbook = new HSSFWorkbook();\n\t\t\tFileOutputStream fileOut=new FileOutputStream(\"workbook.xls\");\n\t\t\tString safename=WorkbookUtil.createSafeSheetName(\"[OutPut]\");\n\t\t\tString safename1=WorkbookUtil.createSafeSheetName(\"[Bank]\");\n\t\t\tString safename2=WorkbookUtil.createSafeSheetName(\"[Firm]\");\n\t\t\tSheet sheet1=book.createSheet(safename);\n\t\t\tSheet sheet2=book.createSheet(safename1);\n\t\t\tSheet sheet3=book.createSheet(safename2);\n\t\t\tCreationHelper createHelper=book.getCreationHelper();\n\n\t\t\t//100タームごとに改行\n\t\t\tint rowterm=e1.getTerm()/100+1;\n\t\t\tint term=e1.getTerm();\n\t\t\tint xterm=100;\n\t\t\tint a=0,b=xterm-1;\n\t\t\t//if(e1.getTerm()>100) {xterm=100;a=0;b=xterm-1;}else {xterm=0;a=0;b=e1.getTerm()-1;}\n\t\t\tfor(int x=0;x<rowterm;x++){\n\t\t\tRow row = sheet1.createRow((short)x);//行\n\t\t\tRow row1=sheet1.createRow((short)(x+rowterm+2));\n\t\t\tRow row2=sheet1.createRow((short)(x+rowterm*2+2));\n\t\t\tRow row3=sheet1.createRow((short)(x+rowterm*3+2));\n\t\t\tRow row4=sheet1.createRow((short)(x+rowterm*4+2));\n\t\t\tRow row5=sheet1.createRow((short)(x+rowterm*5+2));\n\t\t\tRow row6=sheet1.createRow((short)(x+rowterm*6+2));\n\t\t\tRow row7=sheet1.createRow((short)(x+rowterm*7+2));\n\t\t\tRow row8=sheet1.createRow((short)(x+rowterm*8+2));\n\t\t\tRow row9=sheet1.createRow((short)(x+rowterm*9+2));\n\t\t\tRow row10=sheet1.createRow((short)(x+rowterm*10+2));\n\t\t\tRow row11=sheet1.createRow((short)(x+rowterm*11+2));\n\t\t\tRow row12=sheet1.createRow((short)(x+rowterm*12+2));\n\t\t\tRow row13=sheet1.createRow((short)(x+rowterm*11+2));\n\n\t\t\tint j=0;\n\t\t\tfor(j=a;j<=b;j++){\n\t\t\trow.createCell(j-(x*xterm)).setCellValue(e1.getAgrregateOP(j));\n\t\t\trow1.createCell(j-(x*xterm)).setCellValue(e1.getGrowthRateOP(j));\n\t\t\trow2.createCell(j-(x*xterm)).setCellValue(e1.getFailedFirm(j));\n\t\t\trow3.createCell(j-(x*xterm)).setCellValue(e1.getFailedFirmrate(j));\n\t\t\trow4.createCell(j-(x*xterm)).setCellValue(e1.getBadLoan(j));\n\t\t\trow5.createCell(j-(x*xterm)).setCellValue(e1.getAVGInterest(j));\n\t\t\trow6.createCell(j-(x*xterm)).setCellValue(e1.getMoneyStock(j));\n\t\t\trow7.createCell(j-(x*xterm)).setCellValue(e1.getCreditMoney(j));\n\t\t\trow8.createCell(j-(x*xterm)).setCellValue(e1.getResidual(j));\n\t\t\trow9.createCell(j-(x*xterm)).setCellValue(e1.getGrossDemand(j));\n\t\t\trow10.createCell(j-(x*xterm)).setCellValue(e1.getGrossSupply(j));\n\t\t\trow11.createCell(j-(x*xterm)).setCellValue(e1.getRejectFinancing(j));\n\n\n\t\t //cell.setCellValue(createHelper.createRichTextString(\"sample String\"));\n\t\t\t}\n\t\t\t/*\n\t\t\tfor(j=a;j<e1.getAliveBank();j++) {\n\t\t\t\trowx.createCell(j-(x*e1.getAliveBank())).setCellValue(e1.getBankCAR(j));\n\t\t\t}*/\n\t\t\tif(term>100){\n\t\t\tif(term-1>xterm+j){\n\t\t\t\tif(term-j-1>xterm){\n\t\t\t\t\ta=j;b=j+xterm-1;\n\t\t\t\t}}else{\n\t\t\t\t\ta=j;\n\t\t\t\t\tb=term-1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t}\n\n\t\t\t//企業list\n\t\t\te1.setSortFirmK();\n\t\t\tint rowfirm=e1.getalivefirm()/100;\n\t\t\tint firmnode=e1.getalivefirm();\n\t\t\tint fn=100;\n\t\t\tint c=0,d=fn-1;\n\t\t\tint t=0;\n\n\t\t\tRow row00= sheet3.createRow((short)t);\n\t\t\trow00.createCell(0).setCellValue(\"総資産\");\n\t\t\tRow row02=sheet3.createRow((short)t+15);\n\t\t\trow02.createCell(0).setCellValue(\"取引先\");\n\t\t\tRow row04=sheet3.createRow((short)t+30);\n\t\t\trow04.createCell(0).setCellValue(\"Leverage\");\n\t\t\tRow row06=sheet3.createRow((short)t+45);\n\t\t\trow06.createCell(0).setCellValue(\"ChoiveLeverage\");\n\t\t\tRow row08=sheet3.createRow((short)t+60);\n\t\t\trow08.createCell(0).setCellValue(\"RejectOrder\");\n\t\t\tRow row010=sheet3.createRow((short)t+75);\n\t\t\trow010.createCell(0).setCellValue(\"NonBuffer\");\n\t\t\t\tfor(int x=0;x<rowfirm;x++){\n\t\t\t\t/*\n\t\t\t\t\tRow row0= sheet3.createRow((short)x);\n\t\t\t\t\trow0.createCell(0).setCellValue(\"総資産\");\n\t\t\t\t\t*/\n\t\t\t\t\tRow row1 = sheet3.createRow((short)x+1);//行\n\t\t\t\t\tRow row3 = sheet3.createRow((short)x+16);\n\t\t\t\t\tRow row5 = sheet3.createRow((short)x+31);\n\t\t\t\t\tRow row7 = sheet3.createRow((short)x+46);\n\t\t\t\t\tRow row9 =sheet3.createRow((short)x+61);\n\t\t\t\t\tRow row11 =sheet3.createRow((short)x+76);\n\t\t\t\tint j=0;\n\t\t\t\tfor(j=c;j<=d;j++){\n\t\t\t\t\t//System.out.print(d);\n\t\t\t\t\trow1.createCell(j-(x*fn)).setCellValue(e1.getFirmK(j));\n\t\t\t\t\trow3.createCell(j-(x*fn)).setCellValue(e1.getFirmCandidateNum(j));\n\t\t\t\t\trow5.createCell(j-(x*fn)).setCellValue(e1.getFirmLeverage(j));\n\t\t\t\t\trow7.createCell(j-(x*fn)).setCellValue(e1.getFirmnextLeverage(j));\n\t\t\t\t\trow9.createCell(j-(x*fn)).setCellValue(e1.getFirmRejectOrderNum(j));\n\t\t\t\t\trow11.createCell(j-(x*fn)).setCellValue(e1.getFirmNonBufferNum(j));\n\t\t\t\t}\n\n\t\t\t\tif(firmnode-1>fn+j){\n\t\t\t\t\tif(firmnode-j-1>fn){\n\t\t\t\t\t\tc=j;d=j+fn-1;\n\t\t\t\t\t}}else{\n\t\t\t\t\t\tc=j;\n\t\t\t\t\t\td=firmnode-1;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\t/*\n\t\t\t\tif(rowfirm==0) {\n\t\t\t\t\tint x=0;\n\t\t\t\t\tRow row0= sheet3.createRow((short)x);\n\t\t\t\t\trow0.createCell(0).setCellValue(\"総資産\");\n\t\t\t\t\tRow row1 = sheet3.createRow((short)x);//行\n\t\t\t\t\tRow row2=sheet3.createRow((short)x+15);\n\t\t\t\t\trow2.createCell(0).setCellValue(\"取引先\");\n\t\t\t\t\tRow row3 = sheet3.createRow((short)x);\n\t\t\t\t\tRow row4=sheet3.createRow((short)x+30);\n\t\t\t\t\trow4.createCell(0).setCellValue(\"Leverate\");\n\t\t\t\t\tRow row5 = sheet3.createRow((short)x);\n\t\t\t\t\tRow row6=sheet3.createRow((short)x+45);\n\t\t\t\t\trow6.createCell(0).setCellValue(\"ChoiveLeverage\");\n\t\t\t\t\tRow row7 = sheet3.createRow((short)x);\n\t\t\t\t\t//Row row8 = sheet3.createRow((short)x);\n\t\t\t\t\t//Row row9=sheet3.createRow((short)x+20);\n\t\t\t\tfor(int i=0;i<firmnode;i++) {\n\t\t\t\t\trow1.createCell(i).setCellValue(e1.getFirmK(i));\n\t\t\t\t\trow3.createCell(i).setCellValue(e1.getFirmCandidateNum(i));\n\t\t\t\t\trow5.createCell(i).setCellValue(e1.getFirmLeverage(i));\n\t\t\t\t\trow7.createCell(i).setCellValue(e1.getFirmnextLeverage(i));\n\t\t\t\t\t//row4.createCell(i).setCellValue(e1.getFirmLevNowEvalue(i));\n\t\t\t\t}\n\t\t\t\t}\n*/\n\n\t\t\t//銀行リスト\n\n\t\t\tint banknode=e1.getAliveBank();\n\n\t\t\tfor(int x=0;x<1;x++) {\n\t\t\tRow row0=sheet2.createRow((short)x);\n\t\t\tRow row1=sheet2.createRow((short)x+2);\n\t\t\trow1.createCell(0).setCellValue(\"CAR\");\n\t\t\tRow row2=sheet2.createRow((short)x+3);\n\t\t\tRow row3=sheet2.createRow((short)x+4);\n\t\t\trow3.createCell(0).setCellValue(\"企業への貸付:IBloan:IBborrow\");\n\t\t\tRow row4=sheet2.createRow((short)x+5);\n\t\t\tRow row5=sheet2.createRow((short)x+6);\n\t\t\tRow row6=sheet2.createRow((short)x+7);\n\t\t\tRow row7=sheet2.createRow((short)x+8);\n\t\t\trow7.createCell(0).setCellValue(\"銀行資産規模K\");\n\t\t\tRow row8=sheet2.createRow((short)x+9);\n\t\t\tRow row9=sheet2.createRow((short)x+10);\n\t\t\trow9.createCell(0).setCellValue(\"銀行buffer\");\n\t\t\tRow row10=sheet2.createRow((short)x+11);\n\t\t\tRow row11=sheet2.createRow((short)x+12);\n\t\t\trow11.createCell(0).setCellValue(\"銀行総badloan\");\n\t\t\tRow row12=sheet2.createRow((short)x+13);\n\t\t\tRow row13=sheet2.createRow((short)x+14);\n\t\t\trow13.createCell(0).setCellValue(\"銀行residual\");\n\t\t\tRow row14=sheet2.createRow((short)x+15);\n\t\t\tRow row15=sheet2.createRow((short)x+16);\n\t\t\trow15.createCell(0).setCellValue(\"銀行総LFlistsize\");\n\t\t\tRow row16=sheet2.createRow((short)x+17);\n\t\t\tRow row17=sheet2.createRow((short)x+18);\n\t\t\trow17.createCell(0).setCellValue(\"銀行市場性資産\");\n\t\t\tRow row18=sheet2.createRow((short)x+19);\n\t\t\tRow row19=sheet2.createRow((short)x+20);\n\t\t\trow19.createCell(0).setCellValue(\"ClientNumber\");\n\t\t\tRow row20=sheet2.createRow((short)x+21);\n\n\t\t\tfor(int i=0;i<banknode;i++) {\n\t\t\trow0.createCell(i).setCellValue(e1.getBankId(i));\n\t\t\trow2.createCell(i).setCellValue(e1.getBankCAR(i));\n\t\t\trow4.createCell(i).setCellValue(e1.getBankLf(i));\n\t\t\trow5.createCell(i).setCellValue(e1.getBankLb(i));\n\t\t\trow6.createCell(i).setCellValue(e1.getBankBb(i));\n\t\t\trow8.createCell(i).setCellValue(e1.getBankK(i));\n\t\t\trow10.createCell(i).setCellValue(e1.getBankBuffer(i));\n\t\t\trow12.createCell(i).setCellValue(e1.getBankGrossBadLoan(i));\n\t\t\trow14.createCell(i).setCellValue(e1.getBankResidual(i));\n\t\t\trow16.createCell(i).setCellValue(e1.getBankLFSize(i));\n\t\t\trow18.createCell(i).setCellValue(e1.getBankLiqAsset(i));\n\t\t\trow20.createCell(i).setCellValue(e1.getBankClientNum(i));\n\t\t\t}\n\t\t\t/*\n\t\t\tfor(int i=0;i<bank.get(0).levlist.size();i++) {\n\t\t\t\trow18.createCell(i).setCellValue(e1.getBanklevlevelvalue(i));\n\t\t\t}\n\t\t\t*/\n\n\n\n\n\n\t\t\t}\n\t\t book.write(fileOut);\n\t\t //fileOut.close();\n\n\t\t // 1つ目のセルを作成 ※行と同じく、0からスタート\n\t\t //Cell a1 = row.createCell(0); // Excel上、「A1」の場所\n\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}finally{\n\n\n\t\t}\n\n\n\t}", "private void importData() {\n Sheet sheet;\n Row row;\n int lastRowNum;\n // Discover how many sheets there are in the workbook....\n int numSheets = this.workbook.getNumberOfSheets();\n // and then iterate through them.\n for (int i = 0; i < numSheets; i++) {\n\n // Get a reference to a sheet and check to see if it contains\n // any rows.\n sheet = this.workbook.getSheetAt(i);\n if (sheet.getPhysicalNumberOfRows() > 0) {\n lastRowNum = sheet.getLastRowNum();\n for (int j = 1; j <= lastRowNum; j++) {\n row = sheet.getRow(j);\n this.rowToRenddet(row);\n }\n }\n }\n }", "protected HSSFWorkbook getTemplateSource(String url, HttpServletRequest request) throws Exception {\r\n\t\tLocalizedResourceHelper helper = new LocalizedResourceHelper(getApplicationContext());\r\n\t\tLocale userLocale = RequestContextUtils.getLocale(request);\r\n\t\tResource inputFile = helper.findLocalizedResource(url, EXTENSION, userLocale);\r\n\r\n\t\t// Create the Excel document from the source.\r\n\t\tif (logger.isDebugEnabled()) {\r\n\t\t\tlogger.debug(\"Loading Excel workbook from \" + inputFile);\r\n\t\t}\r\n\t\tPOIFSFileSystem fs = new POIFSFileSystem(inputFile.getInputStream());\r\n\t\treturn new HSSFWorkbook(fs);\r\n\t}", "private void generarListaData() throws FileStructureException {\n CarmasTimbresTemp timbre = null;\n HSSFWorkbook workbook = null;\n HSSFSheet sheet = null;\n Iterator<Row> rowIterator = null;\n Row row = null;\n DataFormatter formatter = new DataFormatter(Locale.getDefault());\n listaData.clear();\n InputStream inputStream = null;\n try {\n if (this.file != null) {\n inputStream = this.file.getInputStream();\n workbook = new HSSFWorkbook(inputStream);\n sheet = workbook.getSheetAt(0);\n rowIterator = sheet.iterator();\n while (rowIterator.hasNext()) {\n row = rowIterator.next();\n if (row.getRowNum() == 0) {\n validarEstructura(row);\n } else if (row != null) {\n if (!isEmptyRow(row)) {\n timbre = new CarmasTimbresTemp();\n timbre.setCajero(formatter.formatCellValue(row.getCell(0)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setProvdiasgteMaq(formatter.formatCellValue(row.getCell(1)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setProvdiasgteLin(formatter.formatCellValue(row.getCell(2)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setDiferencias(formatter.formatCellValue(row.getCell(3)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setObservacion(row.getCell(4) == null ? \"\" : row.getCell(4).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setOcca(formatter.formatCellValue(row.getCell(5)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setAumento(formatter.formatCellValue(row.getCell(6)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setDisminucion(formatter.formatCellValue(row.getCell(7)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setSobrante(formatter.formatCellValue(row.getCell(8)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setFaltante(formatter.formatCellValue(row.getCell(9)).replaceAll(\"\\\\D+\", \"\"));\n timbre.setNovedad(row.getCell(10) == null ? \"\" : row.getCell(10).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setAsignadoA(row.getCell(11) == null ? \"\" : row.getCell(11).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setProveedor(row.getCell(12) == null ? \"\" : row.getCell(12).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setClasificacion(row.getCell(13) == null ? \"\" : row.getCell(13).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n timbre.setTipificacionTransportadora(row.getCell(14) == null ? \"\" : row.getCell(14).toString().toUpperCase().replaceAll(\"\\\\^[a-zA-Z0-9]+$\", \"\"));\n listaData.add(timbre);\n }\n }\n }\n }\n } catch (OfficeXmlFileException ex) {\n abrirModal(\"SARA\", \"Formato Invalido\", ex);\n } catch (IOException ex) {\n abrirModal(\"SARA\", \"Seleccione archivo\", ex);\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException ex) {\n Logger.getLogger(CargarTimbresMasivosBean.class.getName()).log(Level.SEVERE, null, ex);\n inputStream = null;\n }\n }\n }\n }", "@DISPID(149)\n @PropGet\n com.exceljava.com4j.excel.XlCreator getCreator();", "@Test\n public String[][] readExcelFile() throws BiffException, IOException, RowsExceededException, WriteException {\n\t Workbook book = Workbook.getWorkbook(new File(\"./src/test/BlogData.xls\"));\n\t Sheet sheet = book.getSheet(\"Blogs\");\n\t \n\t /*\n\t blogs[1][0] = sheet.getCell(0,1).getContents();\n\t System.out.println(\"Blog title\" + blogs[1][0].toString());\n\t \n\t blogs[1][1] = sheet.getCell(1,1).getContents();\n\t System.out.println(\"Blog body\" + blogs[1][1].toString());\n\t */\n\t \n\t for (int row=0; row<=4; row++) {\n\t\t \n\t\t for(int col=0; col<=1; col++) {\n\t\t\t \n\t\t\t blogs[row][col] = sheet.getCell(col, row).getContents();\n\t\t\t \n\t\t }\n\t }\n\t \n\t \n\t \n\t for (int row=0; row<=4; row++) {\n\t\t\t\n\t\t System.out.println(blogs[row][0].toString() +\":\" +blogs[row][1].toString());\n\t }\n\t \n\t book.close();\n\t \n\t return blogs;\n\t \n\t \n\t /*\n\t * Write to excel sheet\n\t WritableWorkbook newbook = Workbook.createWorkbook(new File(\"./src/test/NewExcel.xls\"));\n\t WritableSheet sheet = newbook.createSheet(\"Master\", 0);\n\t \n\t Label l1 = new Label(0,0,\"One\");\n\t \n\t sheet.addCell(l1);\n\t \n\t newbook.write();\n\t newbook.close();\n\t */\n\t \n\t /*\n\t * Modify excel sheet\n\t \n\t Workbook oldCopy = Workbook.getWorkbook(new File(\"./src/test/Sample_DD.xls\"));\n\t \n\t WritableWorkbook newCopy = Workbook.createWorkbook(new File(\"./src/test/New_Sample_DD.xls\"), oldCopy);\n\t \n\t WritableSheet sheet1 = newCopy.getSheet(0);\n\t \n\t Label l2 = new Label(2,2,\"Friends\");\n\t \n\t sheet1.addCell(l2);\n\t \n\t newCopy.write();\n\t \n\t oldCopy.close();\n\t newCopy.close();\n\t */\n\t \n }", "public org.paradyne.lib.ireportV2.ReportGenerator getReport(org.paradyne.lib.ireportV2.ReportGenerator rg, TaxChallan bean){\r\n\t\ttry {\r\n\t\t\tint toYear=Integer.parseInt(bean.getYear().substring(2))+1;\r\n\t\t\tString toYearStr =\"\";\r\n\t\t\tif(toYear < 10){\r\n\t\t\t\ttoYearStr = \"0\"+toYear;\r\n\t\t\t}else {\r\n\t\t\t\ttoYearStr =\"\"+toYear;\r\n\t\t\t}\r\n\t\t\tString assesmentYear = bean.getYear()+ \"-\"+ toYearStr;\r\n\t\t\tTableDataSet subtitleName = new TableDataSet();\r\n\t\t\tObject obj[][] = new Object[1][3];\r\n\t\t\t\r\n\t\t\tobj[0][0] = \"* Important : Please see notes \\noverleaf before filling up the challan\";\r\n\t\t\tobj[0][1] = \"T.D.S./TCS TAX CHALLAN\";\r\n\t\t\tobj[0][2] = \"Single Copy (to be sent to the ZAO)\";\r\n\t\t\tsubtitleName.setData(obj);\r\n\t\t\tsubtitleName.setCellAlignment(new int[] { 0, 1, 0 });\r\n\t\t\tsubtitleName.setCellWidth(new int[] { 30, 40, 30 });\r\n\t\t\tsubtitleName.setBorderDetail(3);\r\n\t\t\tsubtitleName.setHeaderTable(true);\r\n\t\t\trg.addTableToDoc(subtitleName);\r\n\t\t\t\r\n\t\t\tTableDataSet heading1 = new TableDataSet();\r\n\t\t\theading1.setData(new Object[][] { {\r\n\t\t\t\t\t\t\t\"CHALLAN NO./ \\nITNS \\n281\\n\\n\"+bean.getChallanNo(),\r\n\t\t\t\t\t\t\t\"Tax Applicable (Tick One)*\\nTAX DEDUCTED/COLLECTED AT SOURCE FROM\\n\\n(0020) COMPANY [__] \\t\\t\\t\\t(0021) NON-COMPANY [__] \\n\\n DEDUCTEES \\t\\t\\t\\t\\t\\t\\t DEDUCTEES\",\r\n\t\t\t\t\t\t\t\"Assesment Year \\n\\n\"+assesmentYear }});\r\n\t\t\theading1.setCellAlignment(new int[] { 1, 1, 1 });\r\n\t\t\theading1.setCellWidth(new int[] { 20, 60, 20 });\r\n\t\t\theading1.setBorderDetail(3);\r\n\t\t\trg.addTableToDoc(heading1);\r\n\t\t\t\r\n\t\t\tObject divAddress[][]=getSqlModel().getSingleResult(\"SELECT HRMS_DIVISION.DIV_NAME, NVL(HRMS_DIVISION.DIV_ADDRESS1,' '), NVL(HRMS_DIVISION.DIV_ADDRESS2,' '), NVL(HRMS_DIVISION.DIV_ADDRESS3,' '), NVL(HRMS_DIVISION.DIV_TANNO,' '), \"\r\n\t\t\t\t\t+\" HRMS_DIVISION.DIV_TELEPHONE, HRMS_DIVISION.DIV_PINCODE FROM HRMS_DIVISION WHERE HRMS_DIVISION.DIV_ID=\"+bean.getDivId());\r\n\t\t\t\r\n\t\t\tObject [][] empDataObj = new Object[4][1];\r\n \t\tempDataObj[0][0] = \"Tax Deduction Account No. (T.A.N.)\\n\"+divAddress[0][4];;\r\n \t\tempDataObj[1][0] = \"Full Name\\n\"+divAddress[0][0];\r\n \t\tempDataObj[2][0] = \"Complete Address with City & State\\n\"+divAddress[0][1]+\"\\n\"+\"\"+divAddress[0][2]+\"\\n\"+\"\"+divAddress[0][3];\r\n \t\tempDataObj[3][0] = \"Tel. No. : \"+checkNull(\"\"+divAddress[0][5])+\"\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\" +\r\n \t\t\t\t\"\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t Pin : \"+checkNull(\"\"+divAddress[0][6]);\r\n \t\t\r\n \t\t\r\n \t\tTableDataSet empData = new TableDataSet();\r\n\t\t\tempData.setData(empDataObj);\r\n\t\t\tempData.setCellAlignment(new int[] { 0 });\r\n\t\t\tempData.setCellWidth(new int[] { 100 });\r\n\t\t\tempData.setBorderDetail(3);\r\n\t\t\trg.addTableToDoc(empData);\r\n \t\t\r\n \t\tTableDataSet table1 = new TableDataSet();\r\n \t\ttable1.setData(new Object[][] { { \"Type of Payment\", \"Code * \" } });\r\n \t\ttable1.setCellAlignment(new int[] { 0, 2});\r\n \t\ttable1.setCellWidth(new int[] { 50, 50 });\r\n \t\ttable1.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tTableDataSet table2 = new TableDataSet();\r\n\t\t\ttable2.setData(new Object[][] { {\"(Tick One)\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\" +\r\n\t\t\t\t\t\"\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(Please see overleaf)\" +\r\n\t\t\t\t\t\"\\n\\n\\n \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tTDS/TCS Payable by Taxpayer\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t (200)\" +\r\n\t\t\t\t\t\"\\n\\n\\n \\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t TDS/TCS Regular Assessment (Raised by I.T. Deptt.)\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t(400)\\n\"}});\r\n\t\t\ttable2.setCellAlignment(new int[] {0});\r\n\t\t\ttable2.setCellWidth(new int[] { 100 });\r\n\t\t\ttable2.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map2 = rg.joinTableDataSet(table1, table2, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table3 = new TableDataSet();\r\n\t\t\ttable3.setData(new Object[][] { { \"DETAILS OF PAYMENTS\",\"Amount (in Rs. Only)\" }});\r\n\t\t\ttable3.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable3.setCellWidth(new int[] { 50, 50});\r\n\t\t\ttable3.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map3 = rg.joinTableDataSet(map2, table3, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table4 = new TableDataSet();\r\n\t\t\ttable4.setData(new Object[][] { {\"Income Tax\",bean.getTax()},\r\n\t\t\t\t\t{\"Surcharge\",bean.getSurcharge()},\r\n\t\t\t\t\t{\"Education Cess\",bean.getEduCess()},\r\n\t\t\t\t\t{\"Interest\",bean.getIntAmt()},\r\n\t\t\t\t\t{\"Penalty\",bean.getOthrAmt()},\r\n\t\t\t\t\t{\"Total\",bean.getTotalTax()},\r\n\t\t\t\t\t{\"Total (in words)\",\"\"}});\r\n\t\t\ttable4.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable4.setCellWidth(new int[] { 30, 70});\r\n\t\t\ttable4.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map4 = rg.joinTableDataSet(map3, table4, false, 100);\r\n\t\t\t\r\n\t\t\tString numberString [] = convert(Integer.parseInt(bean.getTotalTax().trim().replace(\".00\",\"\"))).split(\",\");\r\n\t\t\t\r\n\t\t\tObject totalInWord [][]= new Object [2][6];\r\n\t\t\ttotalInWord [0][0] = \"CRORE\";\r\n\t\t\ttotalInWord [0][1] = \"LACS\";\r\n\t\t\ttotalInWord [0][2] = \"THOUSAND\";\r\n\t\t\ttotalInWord [0][3] = \"HUNDRED\";\r\n\t\t\ttotalInWord [0][4] = \"TENS\";\r\n\t\t\ttotalInWord [0][5] = \"UNITS\";\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < numberString.length; i++) {\r\n\t\t\t\tif(numberString[i].equalsIgnoreCase(\"zero\")){\r\n\t\t\t\t\ttotalInWord [1][i] = \"Nil\";\r\n\t\t\t\t} else { \r\n\t\t\t\t\ttotalInWord [1][i] = numberString[i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tTableDataSet table5 = new TableDataSet();\r\n\t\t\ttable5.setData(totalInWord);\r\n\t\t\ttable5.setCellAlignment(new int[] { 1, 1, 1, 1, 1, 1});\r\n\t\t\ttable5.setCellWidth(new int[] { 15, 15, 15, 15, 15, 15});\r\n\t\t\ttable5.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map5 = rg.joinTableDataSet(map4, table5, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table6 = new TableDataSet();\r\n\t\t\ttable6.setData(new Object[][] { {\"Paid in Cash/Debit to A/c /Cheque No.\"+bean.getChequeNo(), \"\", \"Dated\", bean.getChequeDate() }});\r\n\t\t\ttable6.setCellAlignment(new int[] { 1, 1, 1, 1});\r\n\t\t\ttable6.setCellWidth(new int[] { 50, 15, 20, 15});\r\n\t\t\ttable6.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map6 = rg.joinTableDataSet(map5, table6, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table7 = new TableDataSet();\r\n\t\t\ttable7.setData(new Object[][] { {\"Drawn on\", bean.getBank()}});\r\n\t\t\ttable7.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable7.setCellWidth(new int[] { 50,50});\r\n\t\t\ttable7.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map7 = rg.joinTableDataSet(map6, table7, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table8 = new TableDataSet();\r\n\t\t\ttable8.setData(new Object[][] { {\"(Name of the Bank and Branch)\"}});\r\n\t\t\ttable8.setCellAlignment(new int[] { 2});\r\n\t\t\ttable8.setCellWidth(new int[] { 100 });\r\n\t\t\ttable8.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map8 = rg.joinTableDataSet(map7, table8, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table9 = new TableDataSet();\r\n\t\t\ttable9.setData(new Object[][] { {\"Date\", \"\"}});\r\n\t\t\ttable9.setCellAlignment(new int[] { 0, 0});\r\n\t\t\ttable9.setCellWidth(new int[] { 60, 40});\r\n\t\t\ttable9.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map9 = rg.joinTableDataSet(map8, table9, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table10 = new TableDataSet();\r\n\t\t\ttable10.setData(new Object[][] { {\"Signature of person making payment\"}});\r\n\t\t\ttable10.setCellAlignment(new int[] { 2 });\r\n\t\t\ttable10.setCellWidth(new int[] { 100});\r\n\t\t\ttable10.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map10 = rg.joinTableDataSet(map9, table10, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table11 = new TableDataSet();\r\n\t\t\ttable11.setData(new Object[][] { {\"Taxpayers Counterfoil (To be filled up by taxpayer)\"}});\r\n\t\t\ttable11.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable11.setCellWidth(new int[] { 100});\r\n\t\t\ttable11.setBodyFontDetails(Font.FontFamily.HELVETICA, 8, Font.BOLD, new BaseColor(0, 0, 0));\r\n\t\t\ttable11.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map11 = rg.joinTableDataSet(map10, table11, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table12 = new TableDataSet();\r\n\t\t\ttable12.setData(new Object[][] { {\"TAN \"+divAddress[0][4]+\"\\n\\nReceived from \"+divAddress[0][0]}});\r\n\t\t\ttable12.setCellAlignment(new int[] { 0 });\r\n\t\t\ttable12.setCellWidth(new int[] { 100});\r\n\t\t\ttable12.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map12 = rg.joinTableDataSet(map11, table12, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table13 = new TableDataSet();\r\n\t\t\ttable13.setData(new Object[][] { {\"(Name)\"}});\r\n\t\t\ttable13.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable13.setCellWidth(new int[] { 100 });\r\n\t\t\ttable13.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map13 = rg.joinTableDataSet(map12, table13, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table14 = new TableDataSet();\r\n\t\t\ttable14.setData(new Object[][] { {\"Cash/ Debit to A/c /Cheque No. :\"+bean.getChequeNo()+\"For Rs.\"+bean.getTotalTax().replace(\".00\", \"\")+\"/-\"}});\r\n\t\t\ttable14.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable14.setCellWidth(new int[] { 100 });\r\n\t\t\ttable14.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map14 = rg.joinTableDataSet(map13, table14, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table15 = new TableDataSet();\r\n\t\t\ttable15.setData(new Object[][] { {\"Rs. (in words)\", Utility.convert(Integer.parseInt(bean.getTotalTax().trim().replace(\".00\", \"\")))}, {\"Drawn on\", bean.getBank()}});\r\n\t\t\ttable15.setCellAlignment(new int[] { 0, 1 });\r\n\t\t\ttable15.setCellWidth(new int[] { 30, 70 });\r\n\t\t\ttable15.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map15 = rg.joinTableDataSet(map14, table15, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table16 = new TableDataSet();\r\n\t\t\ttable16.setData(new Object[][] { {\"(Name of the Bank and Branch)\"}, \r\n\t\t\t\t\t{\"Company/Non-Company Deductees\"}, \r\n\t\t\t\t\t{\"on account of Tax Deducted at Source (TDS)/Tax Collected at Source (TCS) from____(Fill up Code)\"},\r\n\t\t\t\t\t{\"(Strike out whichever is not applicable)\"}});\r\n\t\t\ttable16.setCellAlignment(new int[] { 1 });\r\n\t\t\ttable16.setCellWidth(new int[] { 100 });\r\n\t\t\ttable16.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map16 = rg.joinTableDataSet(map15, table16, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table17 = new TableDataSet();\r\n\t\t\ttable17.setData(new Object[][] { {\"\\nfor the Assessment Year : \"+assesmentYear}});\r\n\t\t\ttable17.setCellAlignment(new int[] { 0});\r\n\t\t\ttable17.setCellWidth(new int[] { 100 });\r\n\t\t\ttable17.setBorderDetail(3);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map17 = rg.joinTableDataSet(map16, table17, false, 100);\r\n\t\t\t\r\n\t\t\tTableDataSet table18 = new TableDataSet();\r\n\t\t\ttable18.setData(new Object[][] { {\"\\n\\n\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\tFOR USE IN RECEIVING BANK \\n\\n\\n\\n\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\tDebit to A/c/Cheque credited on\\n\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tDD-MM-YY\\n\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tSPACE FOR BANK SEAL\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nRs.\"}});\r\n\t\t\ttable18.setCellAlignment(new int[] { 0 });\r\n\t\t\ttable18.setCellWidth(new int[] {100});\r\n\t\t\ttable18.setBorderDetail(3);\r\n\r\n\t\t\tTableDataSet table19 = new TableDataSet();\r\n\t\t\ttable19.setData(new Object[][] { {\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\tSPACE FOR BANK SEAL\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\nRs.\"}});\r\n\t\t\ttable19.setCellAlignment(new int[] { 0 });\r\n\t\t\ttable19.setCellWidth(new int[] {100});\r\n\t\t\ttable19.setBorderDetail(3);\r\n\t\t\t//rg.addTableToDoc(table11);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map18 = rg.joinTableDataSet(table18, table19, false, 100);\r\n\t\t\t\r\n\t\t\tHashMap<String ,Object> map19 = rg.joinTableDataSet(map17, map18, true, 70);\r\n\t\t\t\r\n\t\t\trg.addTableToDoc(map19);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn rg;\r\n\t}", "public static List<List<String>> readXls(HSSFSheet decompteSheet) {\n //remise a zero de la liste data\n List<List<String>> data = new ArrayList<>();\n\n for (Row row : decompteSheet) {\n //saut de la premiere ligne\n if (row.getRowNum() == 0)\n continue;\n\n List<String> dataLine = new ArrayList<>();\n for (Cell cell : row) {\n try {\n switch (cell.getColumnIndex()) {\n //recuperation de la date\n case 0:\n dataLine.add(new SimpleDateFormat(\"dd/MM/yyyy\").format(cell.getDateCellValue()));\n break;\n //recuperation des donnees textes\n case 1:\n dataLine.add(cell.getStringCellValue());\n break;\n //recuparation des donnees numeriques\n default:\n dataLine.add(String.valueOf(cell.getNumericCellValue()));\n break;\n }\n } catch (Exception e) {\n e.printStackTrace();\n Erreur.creerFichierErreur(e.getMessage()+\"\\n\"\n + decompteSheet.getSheetName() +\" \"+ Column.getLetterFromInt(cell.getColumnIndex()) + (cell.getRowIndex() + 1));\n }\n }\n data.add(dataLine);\n }\n\n return data;\n }", "public static void getData() throws Exception {\n\t\tString filepath = \"F:\\\\Selenium Practice\\\\Framework\\\\TestData\\\\TestData.xlsx\";\n\t\tFile f = new File(filepath);\n\t\tFileInputStream str = new FileInputStream(f);\n\t\tWorkbook w = new XSSFWorkbook(str);\n\t\tSheet sh = w.getSheet(\"TestData\");\n\t\tfor (int i = 0; i < sh.getPhysicalNumberOfRows(); i++) {\n\t\t\tRow r = sh.getRow(i);\n\t\t\tfor (int j = 0; j < r.getPhysicalNumberOfCells(); j++) {\n\t\t\t\tCell c = r.getCell(j);\n\t\t\t\tint ct = c.getCellType();\n\t\t\t\tString name = \"\";\n\t\t\t\tswitch (ct) {\n\t\t\t\tcase Cell.CELL_TYPE_NUMERIC:\n\t\t\t\t\tif (ct == 0) {\n\t\t\t\t\t\tif (DateUtil.isCellDateFormatted(c)) {\n\t\t\t\t\t\t\tSimpleDateFormat form = new SimpleDateFormat(\"dd-MMM-yy\");\n\t\t\t\t\t\t\tname = form.format(c.getDateCellValue());\n\t\t\t\t\t\t\tSystem.out.println(name);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdouble d = c.getNumericCellValue();\n\t\t\t\t\t\t\tlong l = (long) d;\n\t\t\t\t\t\t\tname = String.valueOf(l);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase Cell.CELL_TYPE_STRING:\n\t\t\t\t\tif (ct == 1) {\n\t\t\t\t\t\tname = c.getStringCellValue();\n\t\t\t\t\t\tSystem.out.println(name);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "public ArrayList<String> ModifBaseDescriptif(String nameWord){\n \n String uriWord = rootImportFiles + nameWord;\n String idActuel = null;\n Boolean erreur = false;\n int countUnderscore = 0;\n int countRows = 0;\n ArrayList<ArrayList<String>> docListe = new ArrayList<ArrayList<String>> (); //Création d'un format indicé\n ArrayList<String> returnListe = new ArrayList<String> ();\n returnListe.add(\"\");\n \n try {\n //Importer le word\n FileInputStream fis = new FileInputStream(uriWord);\n XWPFDocument doc = new XWPFDocument(OPCPackage.open(fis));\n List<XWPFTable> table = doc.getTables(); //on extrait tous les tableaux \n \n //Extraction des informations dans un format rigoureux et indicé\n for (XWPFTable xwpfTable : table) { \n //On se trouve dans un tableau particulier. On en extrait les lignes\n countRows = 0;\n String chaineDescription = \"\";\n String chaineParagraph = \"\";\n String runStyle = \"\";\n String testingRunStyle = \"\";\n Boolean first = true;\n ArrayList<String> tableau = new ArrayList<String>();\n List<XWPFTableRow> row = xwpfTable.getRows(); \n for (XWPFTableRow xwpfTableRow : row) { \n List<XWPFTableCell> cell = xwpfTableRow.getTableCells();\n //on extrait les cellules (même si on en a qu'une par ligne)\n for (XWPFTableCell xwpfTableCell : cell) { \n if(xwpfTableCell!=null) { \n if(countRows != 4){ //on est pas dans une description, pas besoin de traiter les styles\n tableau.add(xwpfTableCell.getText());\n }\n else{\n //on est dans une description. On extrait les styles\n for (XWPFParagraph paragraph : xwpfTableCell.getParagraphs()) {\n \n chaineParagraph = \"\";\n runStyle = \"\";\n \n first = true;\n for (XWPFRun run : paragraph.getRuns()) { //on extrait les runs\n \n testingRunStyle = \"normal\";\n \n //on test les textures\n if(!run.isBold() && run.getUnderline().toString().equals(\"SINGLE\") && !run.isItalic())\n testingRunStyle = \"u\";\n if(!run.isBold() && run.getUnderline().toString().equals(\"DASH\") && !run.isItalic())\n testingRunStyle = \"underlinedash\";\n if(!run.isBold() && run.getUnderline().toString().equals(\"NONE\") && run.isItalic())\n testingRunStyle = \"i\";\n if(!run.isBold() && run.getUnderline().toString().equals(\"SINGLE\") && run.isItalic())\n testingRunStyle = \"italic_underline\";\n if(run.isBold() && run.getUnderline().toString().equals(\"NONE\") && !run.isItalic())\n testingRunStyle = \"b\";\n if(run.isBold() && run.getUnderline().toString().equals(\"SINGLE\") && !run.isItalic())\n testingRunStyle = \"bold_underline\";\n if(run.isBold() && run.getUnderline().toString().equals(\"NONE\") && run.isItalic())\n testingRunStyle = \"bold_italic\";\n if(run.isBold() && run.getUnderline().toString().equals(\"SINGLE\") && run.isItalic())\n testingRunStyle = \"bold_underline_italic\";\n \n //on test les couleurs\n if(\"FF0000\".equals(run.getColor()))\n testingRunStyle = \"colorred\";\n if(\"E36C0A\".equals(run.getColor()))\n testingRunStyle = \"colororange\";\n if(\"00B050\".equals(run.getColor()))\n testingRunStyle = \"colorgreen\";\n if(\"0070C0\".equals(run.getColor()))\n testingRunStyle = \"colorblue\";\n \n //on test les surlignages\n if(\"yellow\".equals(run.getTextHightlightColor().toString()))\n testingRunStyle = \"highlightyellow\";\n if(\"cyan\".equals(run.getTextHightlightColor().toString()))\n testingRunStyle = \"highlightcyan\";\n if(\"red\".equals(run.getTextHightlightColor().toString()))\n testingRunStyle = \"highlightred\";\n if(\"green\".equals(run.getTextHightlightColor().toString()))\n testingRunStyle = \"highlightgreen\";\n if(\"magenta\".equals(run.getTextHightlightColor().toString()))\n testingRunStyle = \"highlightmagenta\";\n if(\"lightGray\".equals(run.getTextHightlightColor().toString()))\n testingRunStyle = \"highlightgrey\";\n\n \n //si le style est différent de celui d'avant, on ferme le style d'avant et on ouvre le suivant\n if(!runStyle.equals(testingRunStyle)){\n //s'il y avait un style avant, on le ferme\n if(!first)\n chaineParagraph += \"</\"+runStyle+\">\";\n \n chaineParagraph += \"<\"+testingRunStyle+\">\"; //on ouvre la nouvelle balise de style\n chaineParagraph += run.text();\n runStyle = testingRunStyle;\n }\n else{\n chaineParagraph+= run.text();\n }\n first = false;\n } \n if(!\"\".equals(runStyle))\n chaineParagraph += \"</\"+runStyle+\">\"; //on ferme la dernière balise\n \n if(\"bullet\".equals(paragraph.getNumFmt())){\n chaineDescription += \"<li>\"+chaineParagraph+\"</li>\"; //verif si fermante\n }\n else{ \n chaineDescription += \"<p>\"+chaineParagraph+\"</p>\";\n }\n //chaineDescription += chaineParagraph;\n }\n \n tableau.add(chaineDescription); \n }\n }\n }\n countRows++;\n }\n docListe.add(tableau);\n \n } \n } catch(IOException | InvalidFormatException ex) {\n erreur = true;\n returnListe.set(0, \"Erreur système: l'API POI ne parvient pas à extraire les données\");\n }\n \n //si on a réussi à extraire les données du word, on peut démarrer l'exploitation des données\n if(!erreur){\n //on parcourt la liste des objets\n for(int i = 0; i < docListe.size(); i++){\n //on extrait l'identifiant et on déduit le type d'objet\n idActuel = docListe.get(i).get(0);\n //on compte le nombre de \"_\" dans l'ID\n countUnderscore = 0;\n for (int j = 0; j < idActuel.length(); j++) {\n if (idActuel.charAt(j) == '_') \n countUnderscore++;\n }\n\n JpaUtil.creerContextePersistance();\n try {\n if(countUnderscore < 4){\n if(docListe.get(i).get(1).equals(\"SUPPR\")){ //on traite les suppressions\n //on ajoute à la liste de sortie les idnetifiant à supprimer\n returnListe.add(idActuel);\n }\n else{ //on procède à l'insertion d'un \"titre\" dans la BD\n switch(countUnderscore){\n case 0: //on importe un chapitre en BD\n Chapitre chapitre = null;\n chapitre = chapitreDao.ChercherParId(idActuel);\n JpaUtil.ouvrirTransaction();\n if(chapitre == null){ //on crée le chapitre\n chapitre = new Chapitre(idActuel, docListe.get(i).get(1));\n chapitreDao.Creer(chapitre);\n }\n else{ //on modifie l'intitule du chapitre\n chapitre.setIntituleChapitre(docListe.get(i).get(1));\n chapitreDao.Update(chapitre);\n } \n JpaUtil.validerTransaction();\n break;\n case 1: //on importe une categorie en BD\n Categorie categorie = null;\n categorie = categorieDao.ChercherParId(idActuel); //idActuel est l'identifiant de l'objet que l'on traite\n JpaUtil.ouvrirTransaction();\n if(categorie == null){ //on crée la categorie\n categorie = new Categorie(idActuel, docListe.get(i).get(1));\n categorieDao.Creer(categorie); \n //on va chercher le chapitre parent pour update listeCategorie\n Chapitre chapitreParent = chapitreDao.ChercherParId(idActuel.substring(0, idActuel.lastIndexOf('_'))); //on prend idActuel et on retire le dernier _ et ce qu'il y a derrière\n List<Categorie> listeCategorie = chapitreParent.getListCategorie();\n listeCategorie.add(categorie);\n chapitreParent.setListCategorie(listeCategorie);\n chapitreDao.Update(chapitreParent);\n } else { //on modifie l'initule de la categorie\n categorie.setIntituleCategorie(docListe.get(i).get(1));\n categorieDao.Update(categorie);\n } \n JpaUtil.validerTransaction();\n break; \n\n case 2: //on importe une categorie en BD\n Famille famille = null;\n famille = familleDao.ChercherParId(idActuel);\n JpaUtil.ouvrirTransaction();\n if(famille == null){ //on crée la famille\n famille = new Famille(idActuel, docListe.get(i).get(1));\n familleDao.Creer(famille);\n //on va chercher la categorie parent pour update listeFamille\n Categorie categorieParent = categorieDao.ChercherParId(idActuel.substring(0, idActuel.lastIndexOf('_'))); //on prend idActuel et on retire le dernier _ et ce qu'il y a derrière\n List<Famille> listeFamille = categorieParent.getListeFamille();\n listeFamille.add(famille);\n categorieParent.setListeFamille(listeFamille);\n categorieDao.Update(categorieParent);\n }\n else{ //on modifie l'intitule de la famille\n famille.setIntituleFamille(docListe.get(i).get(1));\n familleDao.Update(famille);\n } \n JpaUtil.validerTransaction();\n break; \n case 3: //on importe une sousFamille en BD\n SousFamille sousFamille = null;\n sousFamille = sousFamilleDao.ChercherParId(idActuel);\n JpaUtil.ouvrirTransaction();\n if(sousFamille == null){ //on crée la sousFamille\n sousFamille = new SousFamille(idActuel, docListe.get(i).get(1));\n sousFamilleDao.Creer(sousFamille);\n //on va chercher la famille parent pour update listeSousFamille\n Famille familleParent = familleDao.ChercherParId(idActuel.substring(0, idActuel.lastIndexOf('_'))); //on prend idActuel et on retire le dernier _ et ce qu'il y a derrière\n List<SousFamille> listeSousFamille = familleParent.getListSousFamille();\n listeSousFamille.add(sousFamille);\n familleParent.setListSousFamille(listeSousFamille);\n familleDao.Update(familleParent);\n }\n else{ //on modifie l'intitule de la sousFamille\n sousFamille.setIntituleSousFamille(docListe.get(i).get(1));\n sousFamilleDao.Update(sousFamille);\n } \n JpaUtil.validerTransaction();\n break;\n }\n }\n }\n //on procède au traitement d'un descriptif\n else{\n //on traite les ajouts\n if(docListe.get(i).get(1).equals(\"AJOUT\")){\n switch(docListe.get(i).get(2)){\n case \"OUVRAGE\":\n Ouvrage ouvrage = null;\n ouvrage = (Ouvrage) descriptifDao.ChercherParId(idActuel);\n JpaUtil.ouvrirTransaction();\n if(ouvrage == null){ //on crée le chapitre\n ouvrage = new Ouvrage(idActuel, docListe.get(i).get(3), docListe.get(i).get(4), docListe.get(i).get(5), docListe.get(i).get(6));\n descriptifDao.Creer(ouvrage);\n //on va chercher la sousFamille parent pour update listeDescriptif\n SousFamille sousFamilleParent = sousFamilleDao.ChercherParId(idActuel.substring(0, idActuel.lastIndexOf('_'))); //on prend idActuel et on retire le dernier _ et ce qu'il y a derrière\n List<Descriptif> listeDescriptif = sousFamilleParent.getListDescriptif();\n listeDescriptif.add(ouvrage);\n sousFamilleParent.setListDescriptif(listeDescriptif);\n sousFamilleDao.Update(sousFamilleParent);\n }\n else{ //on modifie le titre du chapitre\n ouvrage.setNomDescriptif(docListe.get(i).get(3));\n ouvrage.setDescription(docListe.get(i).get(4));\n ouvrage.setCourteDescription(docListe.get(i).get(5));\n descriptifDao.Update(ouvrage);\n } \n JpaUtil.validerTransaction();\n break;\n case \"GENERIQUE\":\n Generique generique = null;\n generique = (Generique) descriptifDao.ChercherParId(idActuel);\n JpaUtil.ouvrirTransaction();\n if(generique == null){ //on crée le chapitre\n generique = new Generique(idActuel, docListe.get(i).get(3), docListe.get(i).get(4), docListe.get(i).get(5));\n descriptifDao.Creer(generique);\n //on va chercher la sousFamille parent pour update listeDescriptif\n SousFamille sousFamilleParent2 = sousFamilleDao.ChercherParId(idActuel.substring(0, idActuel.lastIndexOf('_'))); //on prend idActuel et on retire le dernier _ et ce qu'il y a derrière\n List<Descriptif> listeDescriptif2 = sousFamilleParent2.getListDescriptif();\n listeDescriptif2.add(generique);\n sousFamilleParent2.setListDescriptif(listeDescriptif2);\n sousFamilleDao.Update(sousFamilleParent2);\n }\n else{ //on modifie le titre du chapitre\n generique.setNomDescriptif(docListe.get(i).get(3));\n generique.setDescription(docListe.get(i).get(4));\n generique.setCourteDescription(docListe.get(i).get(5));\n descriptifDao.Update(generique);\n } \n JpaUtil.validerTransaction();\n break; \n case \"PRESTATION\": \n Prestation prestation = null;\n prestation = prestationDao.ChercherParId(idActuel);\n JpaUtil.ouvrirTransaction();\n if(prestation == null){ //on crée la prestation\n prestation = new Prestation(idActuel, docListe.get(i).get(3), docListe.get(i).get(4), docListe.get(i).get(5), docListe.get(i).get(6));\n prestationDao.Creer(prestation);\n //on va chercher l'ouvrage parent pour update listeprestation\n Ouvrage ouvrageParent = (Ouvrage) descriptifDao.ChercherParId(idActuel.substring(0, idActuel.lastIndexOf('_'))); //on prend idActuel et on retire le dernier _ et ce qu'il y a derrière\n List<Prestation> listePrestation = ouvrageParent.getListePrestation();\n listePrestation.add(prestation);\n ouvrageParent.setListePrestation(listePrestation);\n descriptifDao.Update(ouvrageParent);\n }\n else{ //on modifie le titre de la prestation\n prestation.setNomDescriptif(docListe.get(i).get(3));\n prestation.setDescription(docListe.get(i).get(4));\n prestation.setCourteDescription(docListe.get(i).get(5));\n prestationDao.Update(prestation);\n } \n JpaUtil.validerTransaction();\n break;\n }\n }\n //on traite les suppressions\n else{\n //on ajoute à la liste de sortie les idnetifiant à supprimer\n returnListe.add(idActuel);\n }\n } \n } catch(Exception ex){\n returnListe.set(0, \"Problème d'insertion dans la base de donnée (problème de format?). ID: \"+idActuel);\n erreur = true;\n } finally {\n JpaUtil.fermerContextePersistance(); \n }\n }\n }\n \n if(!erreur){\n returnListe.set(0, \"Succes\");\n }\n \n return returnListe;\n }", "public static void main(String[] args) throws Exception {\n\t\tFileInputStream f1 =new FileInputStream(\"C:\\\\Users\\\\Praveen\\\\eclipse-workspace\\\\SRYA\\\\EXEMAVEN\\\\target\\\\read.xlsx\");\n\t\tWorkbook w1 = new XSSFWorkbook(f1);\n\t\tSheet s1 = w1.getSheet(\"sheet1\");\n\t\tint r1 = s1.getLastRowNum();\n\t\tfor (int i = 1; i <=r1 ; i++) {\n\t\t\tString s2 = s1.getRow(i).getCell(0).getStringCellValue();\n\t\t\tString s3 = s1.getRow(i).getCell(1).getStringCellValue();\n\t\t\tString s4 = s1.getRow(i).getCell(2).getStringCellValue();\n\t\t\tSystem.out.println(s2);\n\t\t\tSystem.out.println(s3);\n\t\t\tSystem.out.println(s4);\n\t\t}\n\t}", "@Test\r\n\tpublic void startup(){\r\n\tExcelutil e=new Excelutil(\"E://EmpData.xlsx\", \"Sheet1\");\r\n\t\r\n\tString strdata=e.stringdata(1, 1);\r\n\tSystem.out.println(strdata);\r\n\tdouble numdata1=e.numdata(1, 0);\r\n\tSystem.out.println(numdata1);\r\n\te.rowcount();\r\n\te.colcount();\r\n}", "@SuppressWarnings(\"resource\")\n\tpublic String init_excel(String excel_name_with_extension, Integer sheet_index_starting_from_0, Integer row_index_starting_from_0, Integer column_index_starting_from_0)\n\t\t\tthrows Exception {\n\n\t\tString folderPath = \"src//test//resources//TestData//\"; // keep excel in this folder path\n\t\tString element_Image = System.getProperty(\"user.dir\") + File.separator + folderPath + excel_name_with_extension;\n\n\t\tFile file = new File(element_Image);\n\t\tFileInputStream fis = new FileInputStream(file); // this contains raw data from the excel\n\t\tXSSFWorkbook workbook = new XSSFWorkbook(fis); // creating workbook\n\t\tXSSFSheet sheet = workbook.getSheetAt(sheet_index_starting_from_0); // getting the sheet from workbook\n\n\t\tString cellValue = sheet.getRow(row_index_starting_from_0).getCell(column_index_starting_from_0).getStringCellValue(); // fetching data from the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// sheet\n\t\treturn cellValue;\n\t}", "public static void main(String[] args) throws IOException, InvalidFormatException {\n Workbook workbook = WorkbookFactory.create(new File(SAMPLE_XLSX_FILE_PATH));\r\n\r\n // Retrieving the number of sheets in the Workbook\r\n System.out.println(\"Workbook has \" + workbook.getNumberOfSheets() + \" Sheets : \");\r\n\r\n /*\r\n =============================================================\r\n Iterating over all the sheets in the workbook (Multiple ways)\r\n =============================================================\r\n */\r\n\r\n // 1. You can obtain a sheetIterator and iterate over it\r\n Iterator<Sheet> sheetIterator = workbook.sheetIterator();\r\n System.out.println(\"Retrieving Sheets using Iterator\");\r\n while (sheetIterator.hasNext()) {\r\n Sheet sheet = sheetIterator.next();\r\n System.out.println(\"=> \" + sheet.getSheetName());\r\n int noOfRows = sheet.getLastRowNum();\r\n System.out.println(\"Number of Rows are \" + \"\" + noOfRows);\r\n }\r\n\r\n\r\n\r\n /*\r\n ==================================================================\r\n Iterating over all the rows and columns in a Sheet (Multiple ways)\r\n ==================================================================\r\n */\r\n \r\n // Getting the Sheet at index zero\r\n Sheet sheet = workbook.getSheetAt(0);\r\n\r\n // Create a DataFormatter to format and get each cell's value as String\r\n DataFormatter dataFormatter = new DataFormatter();\r\n\r\n // 1. You can obtain a rowIterator and columnIterator and iterate over them\r\n System.out.println(\"\\n\\nIterating over Rows and Columns using Iterator\\n\");\r\n Iterator<Row> rowIterator = sheet.rowIterator();\r\n int noOfColumns=0;\r\n \r\n while (rowIterator.hasNext()) {\r\n Row row =(Row) rowIterator.next();\r\n\r\n // Now let's iterate over the columns of the current row\r\n Iterator<Cell> cellIterator = row.cellIterator();\r\n \r\n while (cellIterator.hasNext()) {\r\n Cell cell = cellIterator.next();\r\n String cellValue = dataFormatter.formatCellValue(cell);\r\n System.out.print(cellValue + \"\\t\");\r\n \r\n }\r\n System.out.println();\r\n\r\n noOfColumns=row.getLastCellNum();\r\n //System.out.println(\"Number of Columns are ******* \" + \"\" + noOfColumns);\r\n }\r\n \r\n int noOfRows = sheet.getLastRowNum();\r\n System.out.println(\"Number of Rows are \" + \"\" + noOfRows);\r\n System.out.println(\"Number of Columns are \" + \"\" + noOfColumns);\r\n \r\n \r\n \r\n \r\n \r\n // Getting the Sheet at index zero\r\n Sheet sheet1 = workbook.getSheetAt(1);\r\n System.out.println(\"\\n\\nName of Sheet:\"+ sheet1);\r\n\r\n // Create a DataFormatter to format and get each cell's value as String\r\n DataFormatter dataFormatter1 = new DataFormatter();\r\n\r\n // 1. You can obtain a rowIterator and columnIterator and iterate over them\r\n System.out.println(\"\\nIterating over Rows and Columns using Iterator\\n\");\r\n Iterator<Row> rowIterator1 = sheet1.rowIterator();\r\n int noOfColumns1=0;\r\n \r\n while (rowIterator1.hasNext()) {\r\n Row row =(Row) rowIterator1.next();\r\n\r\n // Now let's iterate over the columns of the current row\r\n Iterator<Cell> cellIterator = row.cellIterator();\r\n \r\n while (cellIterator.hasNext()) {\r\n Cell cell = cellIterator.next();\r\n String cellValue = dataFormatter1.formatCellValue(cell);\r\n System.out.print(cellValue + \"\\t\");\r\n \r\n }\r\n System.out.println();\r\n\r\n noOfColumns1=row.getLastCellNum();\r\n //System.out.println(\"Number of Columns are ******* \" + \"\" + noOfColumns);\r\n }\r\n \r\n int noOfRows1 = sheet1.getLastRowNum();\r\n System.out.println(\"Number of Rows are \" + \"\" + noOfRows1);\r\n System.out.println(\"Number of Columns are \" + \"\" + noOfColumns1);\r\n \r\n \r\n \r\n \r\n \r\n // Getting the Sheet at index zero\r\n Sheet sheet11 = workbook.getSheetAt(2);\r\n System.out.println(\"\\n\\nName of Sheet:\"+ sheet11);\r\n \r\n // Create a DataFormatter to format and get each cell's value as String\r\n DataFormatter dataFormatter11 = new DataFormatter();\r\n\r\n // You can obtain a rowIterator and columnIterator and iterate over them\r\n System.out.println(\"\\n\\nIterating over Rows and Columns using Iterator\\n\");\r\n Iterator<Row> rowIterator11 = sheet11.rowIterator();\r\n int noOfColumns11=0;\r\n \r\n while (rowIterator11.hasNext()) {\r\n Row row =(Row) rowIterator11.next();\r\n\r\n // Now let's iterate over the columns of the current row\r\n Iterator<Cell> cellIterator = row.cellIterator();\r\n \r\n while (cellIterator.hasNext()) {\r\n Cell cell = cellIterator.next();\r\n String cellValue = dataFormatter11.formatCellValue(cell);\r\n System.out.print(cellValue + \"\\t\");\r\n \r\n }\r\n System.out.println();\r\n\r\n noOfColumns11=row.getLastCellNum();\r\n //System.out.println(\"Number of Columns are ******* \" + \"\" + noOfColumns);\r\n }\r\n \r\n int noOfRows11 = sheet11.getLastRowNum();\r\n System.out.println(\"Number of Rows are \" + \"\" + noOfRows11);\r\n System.out.println(\"Number of Columns are \" + \"\" + noOfColumns11);\r\n // Closing the workbook\r\n workbook.close();\r\n }", "public Map<String, Map<String,Map<String,String>>> getXlsxContent() throws Docx4JException {\n\t\t// List the parts by walking the rels tree\n\t\tRelationshipsPart rp \t= xlsxPkg.getRelationshipsPart();\n\t\tStringBuilder sb \t\t= new StringBuilder();\n\t\ttraverseRelationships(xlsxPkg, rp, sb, \" \");\n\t\tMap<String,Map<String,Map<String,String>>> allSheets\t= new LinkedHashMap<String,Map<String,Map<String,String>>>();\n\t\tMap<String,Map<String,String>> allSheetContent\t\t\t= new LinkedHashMap<String,Map<String,String>>();\n\t\t// Now lets print the cell content\n\t\tint i = 0;\n\t\tfor(WorksheetPart sheet: worksheets) {\n\t\t\ti++;\n\t\t\tWorksheet ws \t= sheet.getJaxbElement();\n\t\t\tSheetData data \t= ws.getSheetData();\n\t\t\tint rowNbr\t\t=0;\n\t\t\tfor (Row r : data.getRow() ) {\n\t\t\t\tMap<String,String> sheetContent\t\t\t\t\t\t\t= new LinkedHashMap<String,String>();\n\t\t\t\tfor (Cell c : r.getC() ) {\n\t\t\t\t\tif (c.getT().equals(STCellType.S)) {\n\t\t\t\t\t\tCTXstringWhitespace lineContent = sharedStrings.getJaxbElement().getSi().get(Integer.parseInt(c.getV())).getT();\n\t\t\t\t\t\tsheetContent.put(c.getR(),lineContent.getValue());\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// TODO: handle other cell types\n\t\t\t\t\t\tsheetContent.put(c.getR(),c.getV());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tallSheetContent.put(String.valueOf(rowNbr),sheetContent);\n\t\t\t\trowNbr++;\n\t\t\t}\n\t\t\tallSheets.put(\"Sheet_\"+i,allSheetContent);\n\t\t}\n\t\treturn allSheets;\n\t}", "public static void main(String[] args) throws Exception {\n File source= new File(\"C:/Development/DataFiles/LoginData.xlsx\");\r\n FileInputStream fis = new FileInputStream(source);\r\n XSSFWorkbook wb = new XSSFWorkbook(fis);\r\n\tXSSFSheet sh = wb.getSheetAt(0);\r\n//\tString data0= sh.getRow(1).getCell(1).getStringCellValue();\r\n//\tSystem.out.println( data0);\r\n\tint rowcount=sh.getLastRowNum();\r\n\t//string colcount=sh.col\r\n\t//System.out.println( colcount);\r\n/*\tfor (int i=0;i<=rowcount;i++)\r\n\t{\r\n\t\tString data1= sh.getRow(i).getCell(0).getStringCellValue();\r\n\t\tif (data1==\"end\")\r\n\t\t\t{\r\n\t\t\t\t\tsh.getRow(i+1);\r\n\t\t\t}\r\n\t\t\r\n\t\tSystem.out.println(data1);\r\n\t\tSystem.out.println();\r\n\t}*/\r\n\t\r\n\tfor (@SuppressWarnings(\"rawtypes\") org.apache.poi.ss.usermodel.Sheet sh1 : wb ) {\r\n for (Row row : sh) {\r\n for (Cell cell : row) {\r\n // Do something here\r\n }\r\n }\r\n }\r\n\twb.close();\r\n\t}", "private void fill() {\r\n\t\tmap = new TreeMap<String, String>();\r\n\t\tlist = new ArrayList<String>();\r\n\t\ttry {\r\n\r\n\t\t\tFileInputStream ExcelFileToRead = new FileInputStream(\"V:\\\\Public\\\\Venatorx Employee and Conference Room Phone List.xlsx\");\r\n\r\n\t\t\tXSSFWorkbook wb = new XSSFWorkbook(ExcelFileToRead);\r\n\t\t\tXSSFSheet sheet = wb.getSheetAt(0);\r\n\t\t\tXSSFRow row; \r\n\t\t\tXSSFCell cell;\r\n\t\t\t\r\n\t\t\tarr = new String[9];\r\n\t\t\tIterator<Row> rows = sheet.rowIterator();\r\n\t\t\tString temp = \"\";\r\n\t\t\r\n\t\t\twhile (temp.equals(\"\"))\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\trow=(XSSFRow) rows.next();\r\n\t\t\t\tIterator<Cell> cells = row.cellIterator();\r\n\t\t\t\tfor (int i = 0; i < 9; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tcell=(XSSFCell) cells.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (cell.getCellType() == XSSFCell.CELL_TYPE_STRING)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString check = cell.getStringCellValue();\r\n\t\t\t\t\t\tif(check.equals(\"First Name\")) {\r\n\t\t\t\t\t\t\ttemp = \"First\";\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tarr[i] = cell.getStringCellValue();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//System.out.println(arr[i]);\r\n\t\t\t\t\t\t//System.out.print(cell.getStringCellValue()+\", \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(cell.getCellType() == XSSFCell.CELL_TYPE_NUMERIC)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tCell tempCell = cell;\r\n\t\t\t\t\t\tDataFormatter formatter = new DataFormatter();\r\n\t\t\t\t\t\tString strValue = formatter.formatCellValue(tempCell);\r\n\t\t\t\t\t\tarr[i] = strValue;\r\n\t\t\t\t\t\t//System.out.println(arr[i]);\r\n\t\t\t\t\t\t//System.out.print(cell.getNumericCellValue()+\", \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if((i == 0) && (cell.getCellType() == XSSFCell.CELL_TYPE_BLANK)) {\r\n\t\t\t\t\t\ttemp = \"Final line\";\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString unknown = \"Unknown\";\r\n\t\t\t\t\t\tarr[i] = unknown;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(temp.equals(\"Final line\")) {\r\n\t\t\t\t\ttemp = \"\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse if(temp.equals(\"First\")) {\r\n\t\t\t\t\ttemp = \"\";\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t\r\n\t\t\t\t\tString name = arr[0].trim() + \" \" + arr[1].trim();\r\n\t\t\t\t\tString accreditions = arr[2].trim();\r\n\t\t\t\t\tString title = arr[3].trim();\r\n\t\t\t\t\tString extension = arr[4].trim();\r\n\t\t\t\t\tString directNumber = arr[5].trim();\r\n\t\t\t\t\tString cellNumber = arr[6].trim();\r\n\t\t\t\t\tString email = arr[7].trim();\r\n\t\t\t\t\tString location = arr[8].trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\tString info = accreditions + \":\" + title + \":\" + extension + \":\" + directNumber + \":\" + cellNumber + \":\" + email + \":\" + location;\r\n\t\t\t\t\t//System.out.println(name + info);\r\n\t\t\t\t\tmap.put(name, info);\r\n\t\t\t\t\t//set.add(name);\r\n\t\t\t\t\tlist.add(name);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr = new String[9];\r\n\t\t\t\t\t//System.out.println();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t \r\n\t\t } catch (FileNotFoundException e2) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te2.printStackTrace();\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public Object[][] getExcelData(String excelLoc) throws EncryptedDocumentException, InvalidFormatException, IOException {\r\n\t\t\r\n\t\tInputStream inputStream = null;\r\n\t\t \r\n\t\tinputStream = new FileInputStream(new File(excelLoc));\r\n\t\tWorkbook wb = WorkbookFactory.create(inputStream);\r\n\t\tSheet sheet = wb.getSheetAt(0);\r\n\t\t int lastRowNum = sheet.getLastRowNum() ;\r\n\t\t int lastCellNum = sheet.getRow(0).getLastCellNum();\r\n\t\t Object[][] obj = new Object[lastRowNum][1];\r\n\r\n\t\t for (int i = 0; i < lastRowNum; i++) {\r\n\t\t Map<Object, Object> datamap = new HashMap<Object, Object>();\r\n\t\t for (int j = 0; j < lastCellNum; j++) {\r\n\t\t datamap.put(sheet.getRow(0).getCell(j).toString(), sheet.getRow(i+1).getCell(j).toString());\r\n\t\t }\r\n\t\t obj[i][0] = datamap;\r\n\r\n\t\t }\r\n\t\t return obj;\r\n\t\t }", "public void loadAgente(String nro_documento) throws IOException{\n readExcel data = new readExcel();\n int idSQL = 52001;\n String param = \"&PDocumento=\"+nro_documento+\"&PNombreArchivo=Agente\";\n ArrayList<ArrayList<String>> resultados = data.getArrayList(idSQL, param);\n int finY = resultados.size();\n for(int i=1;i<finY;i++){\n IdAgente.add(resultados.get(i).get(0));\n Documento.add(resultados.get(i).get(1));\n ApellidoNombre.add(resultados.get(i).get(2));\n Sexo.add(resultados.get(i).get(3));\n }\n }", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\tpublic static void createMigrationInputFiles()\n\t{\n\t\t@SuppressWarnings({ \"rawtypes\" })\n\t\tMultiValueMap structureMap = new MultiValueMap(); // MultiValueMap for adding child item rows for every parentId\n\n\t\ttry\n\t\t{\n\t\t\tWorkbook workbook = new XSSFWorkbook(EXCEL_FILE);\n\t\t\tSheet datatypeSheet = workbook.getSheetAt(0);\n\n\t\t\tint linkDocCount = 0, linkDwgCount = 0, linkPurchSpecCount = 0, linkMadeFromCount = 0, engParts = 0, altPartsCount = 0;\n\n\t\t\tList<String> serviceItemsList = new ArrayList<String>();\n\t\t\tList<String> engItemsList = new ArrayList<String>();\n\n\t\t\t// Skipping top two rows\n\t\t\tIterator<Row> rowIterator = datatypeSheet.iterator();\n\t\t\tif (rowIterator.hasNext())\n\t\t\t\trowIterator.next();\n\t\t\tif (rowIterator.hasNext())\n\t\t\t\trowIterator.next();\n\n\t\t\t// Reading the rows one by one\n\t\t\twhile (rowIterator.hasNext())\n\t\t\t{\n\t\t\t\tcurrentRow = rowIterator.next();\n\t\t\t\tString tierType = BLANK;\n\t\t\t\tif (v(TIER_TYPE) != null && v(TIER_TYPE).trim().length() != 0\n\t\t\t\t\t\t&& !v(TIER_TYPE).trim().isEmpty())\n\t\t\t\t{\n\t\t\t\t\ttierType = v(TIER_TYPE).replace(SEMICOLON_SPACE, COMMA);\n\t\t\t\t\ttierType = tierType.replace(SPACE_SEMICOLON, COMMA);\n\t\t\t\t\ttierType = tierType.replace(SEMICOLON, COMMA);\n\t\t\t\t}\n\n\t\t\t\tString engineFamily = BLANK;\n\t\t\t\tif (v(ENGINE_FAMILY) != null && v(ENGINE_FAMILY).trim().length() != 0\n\t\t\t\t\t\t&& !v(ENGINE_FAMILY).trim().isEmpty())\n\t\t\t\t{\n\t\t\t\t\tengineFamily = v(ENGINE_FAMILY).replace(SEMICOLON_SPACE, COMMA);\n\t\t\t\t\tengineFamily = engineFamily.replace(SPACE_SEMICOLON, COMMA);\n\t\t\t\t\tengineFamily = engineFamily.replace(SEMICOLON, COMMA);\n\t\t\t\t\t/*\n\t\t\t\t\tengineFamily = v(ENGINE_FAMILY).replace(SPACE, BLANK);\n\t\t\t\t\tengineFamily = engineFamily.replace(SEMICOLON, COMMA);*/\n\t\t\t\t}\n\n\t\t\t\tString componentId = BLANK;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (v(SERVICE_CMP_ID) != null && v(SERVICE_CMP_ID).trim().length() != 0\n\t\t\t\t\t\t\t&& !v(SERVICE_CMP_ID).trim().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\t/*System.out.println(currentRow.getCell(SERVICE_CMP_ID)\n\t\t\t\t\t\t\t\t.getRichStringCellValue()); */\n\t\t\t\t\t\tcomponentId = (currentRow.getCell(SERVICE_CMP_ID).getRichStringCellValue())\n\t\t\t\t\t\t\t\t.toString();\n\t\t\t\t\t\tcomponentId = componentId.replace(SEMICOLON_SPACE, COMMA);\n\t\t\t\t\t\tcomponentId = componentId.replace(SPACE_SEMICOLON, COMMA);\n\t\t\t\t\t\tcomponentId = componentId.replace(SEMICOLON, COMMA);\n\t\t\t\t\t\t//System.out.println(componentId);\n\t\t\t\t\t}\n\t\t\t\t} catch (IllegalStateException e)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"\\nError : Item \" + v(ITEM_ID)\n\t\t\t\t\t\t\t+ \" has invalid Component ID formula.\");\n\t\t\t\t\tLOG_WRITER.write(\"\\nError : Item \" + v(ITEM_ID)\n\t\t\t\t\t\t\t+ \" has invalid Component ID formula.\");\n\t\t\t\t}\n\n\t\t\t\tString catalogNum = BLANK;\n\t\t\t\tif (v(CATALOG_ITEM) != null && v(CATALOG_ITEM).trim().length() != 0\n\t\t\t\t\t\t&& !v(CATALOG_ITEM).trim().isEmpty())\n\t\t\t\t{\n\t\t\t\t\tcatalogNum = v(CATALOG_ITEM).replace(SPACE, BLANK);\n\t\t\t\t\tcatalogNum = catalogNum.replace(SEMICOLON, COMMA);\n\t\t\t\t}\n\t\t\t\t//convertRowToPipeDelimited(currentRow);\n\t\t\t\t//if it is for Service Part\n\t\t\t\tif (v(LINE_TYPE).equals(NEW_SERVICE_PART))\n\t\t\t\t{\n\t\t\t\t\t/* Check for the revision field */\n\t\t\t\t\tString revision_id = DEFAULT_REVISION_ID;\n\t\t\t\t\tif (v(REVISION) != null && v(REVISION).trim().length() != 0\n\t\t\t\t\t\t\t&& !v(REVISION).trim().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\trevision_id = v(REVISION).replace(SPACE, BLANK);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Service Part Writer */\n\n\t\t\t\t\tif (!serviceItemsList.contains(v(ITEM_ID)))\n\t\t\t\t\t{\n\t\t\t\t\t\tSERVICE_PART_WRITER\n\t\t\t\t\t\t\t\t.write(v(ITEM_ID)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(ITEM_NAME)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ revision_id\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ TYPE_REAL_NAME\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ ((v(UOM) == null || v(UOM).trim().length() == 0\n\t\t\t\t\t\t\t\t\t\t\t\t|| v(UOM).trim().isEmpty() || v(UOM)\n\t\t\t\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(EACH)) ? BLANK : v(UOM).trim())\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(IP_CLASS)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(OBJ_WEIGHT)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(OBJ_WEIGHT_UOM)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ v(ENG_PRODUCT_LINE)\n\t\t\t\t\t\t\t\t\t\t+ DEL\n\t\t\t\t\t\t\t\t\t\t+ ((v(DATA_MODEL).contains(MODEL_BASED)) ? MB\n\t\t\t\t\t\t\t\t\t\t\t\t: ((v(DATA_MODEL).contains(MODEL_CENTRIC)) ? MC\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: BLANK)\n\n\t\t\t\t\t\t\t\t\t\t)\n\n\t\t\t\t\t\t\t\t\t\t+ DEL + v(ECCN) + DEL + v(ECCN_SOURCE) + DEL + v(OBJ_EVI)\n\t\t\t\t\t\t\t\t\t\t+ DEL + v(CTQ) + DEL + v(CCC) + DEL + v(ECC) + DEL + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(HOMOLOGATION) + DEL + v(CRITICAL_PART) + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(ENG_MAKE_BUY) + NEW_LINE);\n\n\t\t\t\t\t\t/* Service Form Update Writer */\n\t\t\t\t\t\tSERVICE_FORM_WRITER\n\t\t\t\t\t\t\t\t.write(v(ITEM_NAME) + DEL + v(ITEM_ID) + DEL + componentId + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(SERVICEABLE) + DEL + v(REPAIRABLE) + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(SERIALIZED) + DEL + v(POS_TRACKED) + DEL\n\t\t\t\t\t\t\t\t\t\t+ v(SERVICE_ITEM_TYPE) + DEL + tierType + DEL\n\t\t\t\t\t\t\t\t\t\t+ engineFamily + DEL + catalogNum + NEW_LINE);\n\n\t\t\t\t\t\t/* Service Parts' Owning Group update */\n\t\t\t\t\t\tSP_GROUP_ID_WRITER.write(v(ITEM_ID) + NEW_LINE);\n\n\t\t\t\t\t\t/* Relate Service Parts to Document */\n\t\t\t\t\t\tif (v(LINK_DOC) != null && v(LINK_DOC).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_DOC).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSP_ATTACHMENT_WRITER.write(v(ITEM_ID) + DEL + revision_id + DEL\n\t\t\t\t\t\t\t\t\t+ v(LINK_DOC) + DEL + SP_DOC_RELATION_NAME + NEW_LINE);\n\t\t\t\t\t\t\tlinkDocCount++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* Relate Service Parts to Drawing */\n\t\t\t\t\t\tif (v(LINK_DWG) != null && v(LINK_DWG).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_DWG).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSP_ATTACHMENT_WRITER.write(v(ITEM_ID) + DEL + revision_id + DEL\n\t\t\t\t\t\t\t\t\t+ v(LINK_DWG) + DEL + SP_DWG_RELATION_NAME + NEW_LINE);\n\t\t\t\t\t\t\tlinkDwgCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/* Relate Service Parts to Purchase Specifications */\n\t\t\t\t\t\tif (v(LINK_PURCHSPEC) != null && v(LINK_PURCHSPEC).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_PURCHSPEC).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSP_ATTACHMENT_WRITER.write(v(ITEM_ID) + DEL + revision_id + DEL\n\t\t\t\t\t\t\t\t\t+ v(LINK_PURCHSPEC) + DEL + SP_PURCHSPEC_RELATION_NAME\n\t\t\t\t\t\t\t\t\t+ NEW_LINE);\n\t\t\t\t\t\t\tlinkPurchSpecCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/* Relate Service Parts to MadeFrom */\n\t\t\t\t\t\tif (v(LINK_MADEFROM) != null && v(LINK_MADEFROM).trim().length() != 0\n\t\t\t\t\t\t\t\t&& !v(LINK_MADEFROM).isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tMADE_FROM_RELATION_WRITER.write(v(ITEM_ID) + DEL + v(LINK_MADEFROM)\n\t\t\t\t\t\t\t\t\t+ DEL + SP_MADEFROM_RELATION_NAME + NEW_LINE);\n\t\t\t\t\t\t\tlinkMadeFromCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tserviceItemsList.add(v(ITEM_ID));\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG_WRITER.write(DUPLICATE_ENTRY + v(ITEM_ID));\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\telse if (v(LINE_TYPE).equals(EXISTING_ENG_PART))\n\t\t\t\t{\n\t\t\t\t\t/* EngParts' Service Form Creation - ITEM_ID will be used as the Service Form's NAME */\n\t\t\t\t\tif (!engItemsList.contains(v(ITEM_ID)))\n\t\t\t\t\t{\n\t\t\t\t\t\tEP_SERVICE_FORM_WRITER.write(v(ITEM_NAME) + DEL + componentId + DEL\n\t\t\t\t\t\t\t\t+ v(SERVICEABLE) + DEL + v(REPAIRABLE) + DEL + v(SERIALIZED) + DEL\n\t\t\t\t\t\t\t\t+ v(POS_TRACKED) + DEL + v(SERVICE_ITEM_TYPE) + DEL + tierType\n\t\t\t\t\t\t\t\t+ DEL + engineFamily + DEL + catalogNum + DEL + v(ITEM_ID)\n\t\t\t\t\t\t\t\t+ NEW_LINE);\n\t\t\t\t\t\tengParts++;\n\t\t\t\t\t\tengItemsList.add(v(ITEM_ID));\n\t\t\t\t\t} else\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG_WRITER.write(DUPLICATE_ENTRY + v(ITEM_ID));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/*\tAdd child item rows for each assembly */\n\t\t\t\tif (v(PARENT_ID) != null && v(PARENT_ID).trim().length() != 0\n\t\t\t\t\t\t&& !v(PARENT_ID).isEmpty())\n\t\t\t\t{\n\t\t\t\t\tstructureMap.put(v(PARENT_ID), currentRow.getRowNum());\n\t\t\t\t\t/*\tSTRUCTURE_WRITER.write(v(PARENT_ID) + DEL + v(ITEM_ID) + DEL + v(QTY) + DEL\n\t\t\t\t\t\t\t\t+ v(SEQ) + NEW_LINE); - can not write it here, as the same parent might come again later. IPS_DATA_UPLOAD fails if the parent has existing BVR with -bom mode. */\n\t\t\t\t}\n\n\t\t\t\t/* Global Alternate */\n\t\t\t\tString globalAltStr = v(GLOBAL_ALT);\n\t\t\t\tif (globalAltStr != null && !globalAltStr.trim().isEmpty()\n\t\t\t\t\t\t&& globalAltStr.trim().length() != 0)\n\t\t\t\t{\n\t\t\t\t\tglobalAltStr = globalAltStr.replace(SPACE, BLANK);\n\t\t\t\t\tString globalAltArray[] = globalAltStr.split(SEMICOLON);\n\t\t\t\t\tfor (int i = 0; i < globalAltArray.length; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSP_GLOBAL_ALT_WRITER.write(v(ITEM_ID) + DEL + globalAltArray[i].trim()\n\t\t\t\t\t\t\t\t+ NEW_LINE);\n\t\t\t\t\t\taltPartsCount++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tLOG_WRITER.write(TOTAL_SERVICE_PARTS + serviceItemsList.size() + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_DOCUMENTS_TO_ATTACH + linkDocCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_DRAWINGS_TO_ATTACH + linkDwgCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_PURCHSPEC_TO_ATTACH + linkPurchSpecCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_MADEFROM_TO_ATTACH + linkMadeFromCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_ALTERNATE_PARTS_TO_ADD + altPartsCount + NEW_LINE);\n\t\t\tLOG_WRITER.write(TOTAL_ENG_PARTS_FOR_SERVICE_FORM_CREATON + engParts + NEW_LINE);\n\t\t\tLOG_WRITER.write(LINE_SEPERATOR);\n\n\t\t\t/* Write Structures */\n\t\t\tLOG_WRITER.write(STRUCTURE_START_TIME + new java.util.Date() + NEW_LINE);\n\t\t\tSet<String> parentIDs = structureMap.keySet();\n\t\t\tIterator parentIDsIterator = parentIDs.iterator();\n\t\t\tLOG_WRITER.write(TOTAL_STRUCTURES + parentIDs.size() + NEW_LINE);\n\t\t\t/*PS_STRUCTURE_WRITER.write(NEW_LINE + HASH_SIGN + TOTAL_STRUCTURES + parentIDs.size()\n\t\t\t\t\t+ NEW_LINE);*/\n\t\t\twhile (parentIDsIterator.hasNext())\n\t\t\t{\n\t\t\t\tObject parentID = parentIDsIterator.next();\n\n\t\t\t\t/*PS_STRUCTURE_WRITER.write(NEW_LINE + parentID + DEL + DEFAULT_REVISION_ID + DEL\n\t\t\t\t\t\t+ TYPE_REAL_NAME + DEL + ZERO + NEW_LINE);*/\n\n\t\t\t\tCollection childRows = (Collection) structureMap.get(parentID);\n\t\t\t\tIterator childRowsIterator = childRows.iterator();\n\t\t\t\twhile (childRowsIterator.hasNext())\n\t\t\t\t{\n\t\t\t\t\tRow cRow = datatypeSheet.getRow((int) childRowsIterator.next());\n\t\t\t\t\t/*PS_STRUCTURE_WRITER.write(rv(cRow, ITEM_ID) + DEL + DEFAULT_REVISION_ID + DEL\n\t\t\t\t\t\t\t+ TYPE_REAL_NAME + DEL + ONE + DEL + rv(cRow, SEQ) + DEL\n\t\t\t\t\t\t\t+ rv(cRow, QTY) + NEW_LINE);*/\n\t\t\t\t\tSTRUCTURE_WRITER.write(parentID + DEL + rv(cRow, ITEM_ID) + DEL + rv(cRow, QTY)\n\t\t\t\t\t\t\t+ DEL + rv(cRow, SEQ) + NEW_LINE);\n\t\t\t\t}\n\t\t\t}\n\t\t\tLOG_WRITER.write(STRUCTURE_END_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\tworkbook.close();\n\t\t} catch (FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(EXCEPTION + e.getMessage());\n\t\t} catch (IOException e)\n\t\t{\n\t\t\tSystem.out.println(EXCEPTION + e.getMessage());\n\t\t} finally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (SERVICE_PART_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSERVICE_PART_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SERVICE_FORM_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSERVICE_FORM_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (EP_SERVICE_FORM_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tEP_SERVICE_FORM_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SP_GLOBAL_ALT_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSP_GLOBAL_ALT_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SP_GROUP_ID_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSP_GROUP_ID_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (SP_ATTACHMENT_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSP_ATTACHMENT_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (MADE_FROM_RELATION_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tMADE_FROM_RELATION_WRITER.close();\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\tif (PS_STRUCTURE_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tPS_STRUCTURE_WRITER.close();\n\t\t\t\t}*/\n\t\t\t\tif (STRUCTURE_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tSTRUCTURE_WRITER.close();\n\t\t\t\t}\n\t\t\t\tif (LOG_WRITER != null)\n\t\t\t\t{\n\t\t\t\t\tLOG_WRITER.write(END_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\t\t\tSystem.out.println(END_TIME + new java.util.Date() + LINE_SEPERATOR);\n\t\t\t\t\tLOG_WRITER.close();\n\t\t\t\t}\n\n\t\t\t} catch (IOException ex)\n\t\t\t{\n\t\t\t\tSystem.out.println(EXCEPTION + ex.getMessage());\n\t\t\t}\n\t\t}\n\t}", "public String getCellData(String sheetName, int colNum, int rowNum) {\n try {\n int index = excelWorkbook.getSheetIndex(sheetName);\n excelSheet = excelWorkbook.getSheetAt(index);\n row = excelSheet.getRow(rowNum);\n cell = row.getCell(colNum);\n if (cell.getCellType() == CellType.STRING)\n return cell.getStringCellValue();\n else if (cell.getCellType() == CellType.NUMERIC\n || cell.getCellType() == CellType.FORMULA) {\n String cellText = String.valueOf(cell.getNumericCellValue());\n return cellText;\n } else if (cell.getCellType() == CellType.STRING) {\n return \"\";\n\n } else\n return String.valueOf(cell.getBooleanCellValue());\n\n } catch (Exception e) {\n e.printStackTrace();\n return \"row \" + rowNum + \" or column \" + colNum\n + \" does not exist in xls\";\n }\n }", "public static void main(String[] args) throws Exception {\n\n insureExcelType(\"F:/AAA/QP2-04 附录 A 产品申请表 10.xlsx\");\n// String cellValueAt = getCellValueAt(15,8);\n// String cellValueAt1 = getCellValueAt(29,10);\n// String cellValueAt2 = getCellValueAt(30,10);\n// System.out.println(cellValueAt);\n// System.out.println(cellValueAt1);\n// System.out.println(cellValueAt2);\n\n// setCellValueAt(16, 10, new Date());\n// fileOutPut(\"F:/\",\"yyy.xlsx\");\n\n\n String path = \"F:\\\\壁纸\\\\timg (3).jpg\";\n setImg(path, 30, 34, 0, 4);\n\n// String cellValueAt = getCellValueAt(1, 27, 5);\n// System.out.println(cellValueAt);\n// setCellValueAt(1, 28, 5, new Date());\n fileOutPut(\"F:/\",\"yyy.xlsx\");\n\n }", "private void initExcelReport() {\n DocumentItem documentItem = new DocumentItem(\"Source Node ID\", \"File Name\", \"Target Destination Folder\", \"Target Node ID\", null, \"Target Node Status\", \"Message\", null, null);\n ExcelUtil.addMigrationRow(jobParameters.getMigrationReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n ExcelUtil.addErrorRow(jobParameters.getErrorReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n }", "public static void main(String[] args) throws IOException {\n\t\t\r\n\t\tFile fw = new File(\"C:\\\\Files\\\\work.xlsx\");//create file object\r\n\t\t//FileInputStream f = new FileInputStream(fw);//to create connection first create reader.\r\n\t\tXSSFWorkbook wb = new XSSFWorkbook(new FileInputStream(fw));//to go workbook we are using this class\r\n\t\t//XSSFSheet sht = new XSSFSheet();//to go to sheet\r\n\t\t//below line is for getting that sheet\r\n\t\tXSSFSheet sht1 = wb.getSheet(\"Test\");\r\n\t\tXSSFRow row = sht1.getRow(0);\r\nint a = row.getLastCellNum();\r\n\tSystem.out.println(a);\r\n\tfor(int i=0; i<=a ; i++) {\r\n\t\t\r\n\t\tint s = row.getFirstCellNum();\r\n\t\tSystem.out.println(s);\r\n\t\t\r\n\t\t}\r\n\t}", "@DataProvider\n\tpublic String[][] getExcelData() throws InvalidFormatException, IOException {\n\t\tReadExcel read = new ReadExcel();\n\t\treturn read.getCellData(\"Testdata/FOE.xlsx\", \"sheet1\");\n\t }", "public String ReadDatafromExcel(String SheetName,int ColumnNumber,int RowNumber)\n\t{\n\t\tString value;\n\t\t DataFormatter formatter = new DataFormatter();\n\t\tsheet = workbook.getSheet(SheetName); \n\t row = sheet.getRow(RowNumber);\n\t Cell cell=row.getCell(ColumnNumber);\n //value=row.getCell(ColumnNumber).getStringCellValue().toString();\n value = formatter.formatCellValue(cell);\n \t\treturn value;\n\t}", "public String getCellData(String sheetName,int colNum,int rowNum){\n\t\ttry{\n\t\t\tif(rowNum <=0)\n\t\t\t\treturn \"\";\n\t\t\n\t\tint index = workbook.getSheetIndex(sheetName);\n\n\t\tif(index==-1)\n\t\t\treturn \"\";\n\t\t\n\t\n\t\tsheet = workbook.getSheetAt(index);\n\t\trow = sheet.getRow(rowNum-1);\n\t\tif(row==null)\n\t\t\treturn \"\";\n\t\tcell = row.getCell(colNum);\n\t\tif(cell==null)\n\t\t\treturn \"\";\n\t\t\n\t if(cell.getCellType()==Cell.CELL_TYPE_STRING)\n\t\t return cell.getStringCellValue();\n\t else if(cell.getCellType()==Cell.CELL_TYPE_NUMERIC || cell.getCellType()==Cell.CELL_TYPE_FORMULA ){\n\t\t \n\t\t String cellText = String.valueOf(cell.getNumericCellValue());\n\t\t if (HSSFDateUtil.isCellDateFormatted(cell)) {\n\t // format in form of M/D/YY\n\t\t\t double d = cell.getNumericCellValue();\n\n\t\t\t Calendar cal =Calendar.getInstance();\n\t\t\t cal.setTime(HSSFDateUtil.getJavaDate(d));\n\t cellText =\n\t (String.valueOf(cal.get(Calendar.YEAR))).substring(2);\n\t cellText = cal.get(Calendar.MONTH)+1 + \"/\" +\n\t cal.get(Calendar.DAY_OF_MONTH) + \"/\" +\n\t cellText;\n\t \n\t // System.out.println(cellText);\n\n\t }\n\n\t\t \n\t\t \n\t\t return cellText;\n\t }else if(cell.getCellType()==Cell.CELL_TYPE_BLANK)\n\t return \"\";\n\t else \n\t\t return String.valueOf(cell.getBooleanCellValue());\n\t\t}\n\t\tcatch(Exception e){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\treturn \"row \"+rowNum+\" or column \"+colNum +\" does not exist in xls\";\n\t\t}\n\t}", "@Override\n\tpublic Result<String> excelImport(MultipartFile file, HttpServletRequest req, HttpServletResponse resp) {\n\t\treturn null;\n\t}", "public String getCellData(String sheetname, String colName, int rowNum) {\r\n\t\ttry {\r\n\t\t\tint col_Num = -1;\r\n\t\t\tsheet = workbook.getSheet(sheetname);\r\n\t\t\trow = sheet.getRow(0); \t\r\n\t\t\tfor(int i=0; i<row.getLastCellNum(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tif(row.getCell(i).getStringCellValue().trim().equalsIgnoreCase(colName)) \r\n\t\t\t\t\tcol_Num = i;\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t row = sheet.getRow(rowNum-1);\r\n\t\t cell = row.getCell(col_Num);\r\n\t\t\t\r\n\t\t \r\n\t\t if(cell.getCellType() == CellType.STRING) \r\n\t\t\t \r\n\t\treturn cell.getStringCellValue();\r\n\t\t \r\n\t\telse if (cell.getCellTypeEnum() == CellType.NUMERIC || cell.getCellTypeEnum() == CellType.FORMULA) {\r\n\t\t\t\r\n\t\t\tString cellValue =String.valueOf(cell.getNumericCellValue());\r\n\t\t\tif (HSSFDateUtil.isCellDateFormatted(cell)) {\r\n\t\t\t\tDateFormat df = new SimpleDateFormat(\"dd/mm/yyyy\");\r\n\t\t\t\tDate date = cell.getDateCellValue();\r\n\t\t\t\tcellValue = df.format(date);\r\n\t\t\t}\r\n\t\t\treturn cellValue;\r\n\t\t}else if (cell.getCellTypeEnum() == CellType.BLANK)\r\n\t\t\treturn \"\";\r\n\t\telse \r\n\t\t\t\r\n\t\t // return cell.getStringCellValue();\r\n\t\t return String.valueOf(cell.getBooleanCellValue());\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"row \"+rowNum+\" or columnName \"+colName +\" does not exist in Excel\";\r\n\t\t\t \r\n\t }\r\n\t}", "public static void read(String path) throws IOException {\r\n File inputWorkbook = new File(path);\r\n Workbook w;\r\n WorkbookSettings ws=new WorkbookSettings();\r\n ws.setEncoding(\"Cp1252\");\t\t\t// encoder so that special characters remains the same\r\n Cell c1,c2,c3,c4,c5;\r\n int s1;\r\n String s2,s3,s4,s5;\r\n try {\r\n w = Workbook.getWorkbook(inputWorkbook,ws);\r\n // Get the first sheet\r\n Sheet sheet = w.getSheet(0);\r\n \r\n for(int i=0;i<sheet.getRows();i++){\t\t\t// iteration contiues untill the last row\r\n \tc1=sheet.getCell(0,i);\t\t\t\t\t// fetch data from cell of 0th column and ith row\r\n \ts1=Integer.parseInt(c1.getContents());\r\n \tc2=sheet.getCell(1, i);\r\n \ts2=c2.getContents();\r\n \tc3=sheet.getCell(2, i);\r\n \ts3=c3.getContents();\r\n \tc4=sheet.getCell(3, i);\r\n \ts4=c4.getContents();\r\n \tc5=sheet.getCell(4, i);\r\n \ts5=c5.getContents();\r\n // \tSystem.out.println(s1+\"\\t\"+s2+\"\\t\"+s3+\"\\t\"+s4+\"\\t\"+s5);\r\n \tOperations.add(s1, s2, s3, s4, s5);\r\n \t\r\n }\r\n JOptionPane.showMessageDialog(null,\"Inserted Successfully\");\r\n\r\n } catch (Exception e) {\r\n \tJOptionPane.showMessageDialog(null,\"Error :: \\n\"+e.getMessage());\r\n }\r\n }", "@SuppressWarnings(\"null\")\r\n\tpublic static List<WorkParameter> readXls(String path, int startRow, int readSize) throws IOException {\r\n\t\tSystem.out.println(Common.PROCESSING + path);\r\n\t\tInputStream is = new FileInputStream(path);\r\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tHSSFWorkbook hssfWorkbook = new HSSFWorkbook(is);\r\n\t\tList<WorkParameter> list = new ArrayList<WorkParameter>();\r\n\t\t// Read the Sheet\r\n\t\tfor (int numSheet = 0; numSheet < hssfWorkbook.getNumberOfSheets(); numSheet++) {\r\n\t\t\tHSSFSheet hssfSheet = hssfWorkbook.getSheetAt(numSheet);\r\n\t\t\tif (hssfSheet == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t// Read the Row\r\n\t\t\tint endRow = Math.min(hssfSheet.getLastRowNum(), startRow + readSize - 1);\r\n\t\t\tfor (int rowNum = startRow; rowNum <= endRow; rowNum++) {\r\n\t\t\t\tSystem.out.println(rowNum);\r\n\t\t\t\tHSSFRow hssfRow = hssfSheet.getRow(rowNum);\r\n\t\t\t\tif (hssfRow != null) {\r\n\t\t\t\t\t// String province =\r\n\t\t\t\t\t// hssfRow.getCell(0).getStringCellValue();\r\n\t\t\t\t\t// String city = hssfRow.getCell(1).getStringCellValue();\r\n\t\t\t\t\t// String region = hssfRow.getCell(2).getStringCellValue();\r\n\t\t\t\t\t// String network = hssfRow.getCell(3).getStringCellValue();\r\n\t\t\t\t\t// double ci = hssfRow.getCell(4).getNumericCellValue();\r\n\t\t\t\t\t// double cid = hssfRow.getCell(5).getNumericCellValue();\r\n\t\t\t\t\t// double lac = hssfRow.getCell(6).getNumericCellValue();\r\n\t\t\t\t\t// double enodeb = hssfRow.getCell(7).getNumericCellValue();\r\n\t\t\t\t\t// if (network != null && network.equals(\"移动4G\"))\r\n\t\t\t\t\t// ci = 256 * enodeb + cid;\r\n\t\t\t\t\t// String freqChannel = null;\r\n\t\t\t\t\t// if (hssfRow.getCell(8).getCellType() ==\r\n\t\t\t\t\t// HSSFCell.CELL_TYPE_NUMERIC)\r\n\t\t\t\t\t// freqChannel = String.valueOf((int)\r\n\t\t\t\t\t// (hssfRow.getCell(8).getNumericCellValue()));\r\n\t\t\t\t\t// else if (hssfRow.getCell(8).getCellType() ==\r\n\t\t\t\t\t// HSSFCell.CELL_TYPE_STRING)\r\n\t\t\t\t\t// freqChannel = hssfRow.getCell(8).getStringCellValue();\r\n\t\t\t\t\t//\r\n\t\t\t\t\t// String cellNameEng =\r\n\t\t\t\t\t// hssfRow.getCell(9).getStringCellValue();\r\n\t\t\t\t\t// String cellNameCh =\r\n\t\t\t\t\t// hssfRow.getCell(10).getStringCellValue();\r\n\t\t\t\t\t// String cellAddress =\r\n\t\t\t\t\t// hssfRow.getCell(11).getStringCellValue();\r\n\t\t\t\t\t// double longitude =\r\n\t\t\t\t\t// hssfRow.getCell(12).getNumericCellValue();\r\n\t\t\t\t\t// double latitude =\r\n\t\t\t\t\t// hssfRow.getCell(13).getNumericCellValue();\r\n\t\t\t\t\t// String belonging =\r\n\t\t\t\t\t// hssfRow.getCell(14).getStringCellValue();\r\n\t\t\t\t\t// String scene = hssfRow.getCell(15).getStringCellValue();\r\n\t\t\t\t\t// String converageType =\r\n\t\t\t\t\t// hssfRow.getCell(16).getStringCellValue();\r\n\t\t\t\t\t//\r\n\t\t\t\t\t// WorkParameter workParameter = new WorkParameter();\r\n\t\t\t\t\t// workParameter.setProvince(province);\r\n\t\t\t\t\t// workParameter.setCity(city);\r\n\t\t\t\t\t// workParameter.setRegion(region);\r\n\t\t\t\t\t// workParameter.setNetwork(network);\r\n\t\t\t\t\t// workParameter.setCi((int) ci);\r\n\t\t\t\t\t// workParameter.setWpcid((int) cid);\r\n\t\t\t\t\t// workParameter.setLac((int) lac);\r\n\t\t\t\t\t// workParameter.setEnodeb((int) enodeb);\r\n\t\t\t\t\t// workParameter.setFreqChannel(freqChannel);\r\n\t\t\t\t\t// workParameter.setCellNameEng(cellNameEng);\r\n\t\t\t\t\t// workParameter.setCellNameCh(cellNameCh);\r\n\t\t\t\t\t// workParameter.setCellAddress(cellAddress);\r\n\t\t\t\t\t// workParameter.setLongitude(longitude);\r\n\t\t\t\t\t// workParameter.setLatitude(latitude);\r\n\t\t\t\t\t// workParameter.setBelonging(belonging);\r\n\t\t\t\t\t// workParameter.setScene(scene);\r\n\t\t\t\t\t// workParameter.setConverageType(converageType);\r\n\t\t\t\t\t// if (converageType != null && converageType.equals(\"室内\"))\r\n\t\t\t\t\t// {\r\n\t\t\t\t\t// workParameter.setIsIndoor(1);\r\n\t\t\t\t\t// } else {\r\n\t\t\t\t\t// workParameter.setIsIndoor(0);\r\n\t\t\t\t\t// }\r\n\t\t\t\t\tWorkParameter wp = parse2WorkParameter(hssfRow);\r\n\t\t\t\t\tlist.add(wp);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public String getDataFromExcel(String pathName, String SheetName,int rowNo,int cellNo) {\n\t\tString value=null;\n\t\ttry {\n\t\t\tFile file=new File(pathName);\n\t\t\tFileInputStream inputStream=new FileInputStream(file);\n\t\t\tWorkbook book=new XSSFWorkbook(inputStream);\n\t\t\tSheet sheet = book.getSheet(SheetName);\n\t\t\tRow row = sheet.getRow(rowNo);\n\t\t\tCell cell = row.getCell(cellNo);\n\t\t\tint cellType = cell.getCellType();\n\t\t\tif (cellType==1) {\n\t\t\t\tvalue = cell.getStringCellValue();\n\t\t\t}\n\t\t\telse if (DateUtil.isCellDateFormatted(cell)) {\n\t\t\t\tDate dateCellValue = cell.getDateCellValue();\n\t\t\t\tSimpleDateFormat dateFormat=new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t\t\tvalue=dateFormat.format(dateCellValue);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdouble numericCellValue = cell.getNumericCellValue();\n\t\t\t\tlong l=(long)numericCellValue;\n\t\t\t\tvalue = String.valueOf(l);\n\t\t\t}\t\t\t\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn value;\n\t}", "public String initialize(){\n \n invoiceSheet = workbook.getSheetAt(0);\n \n if(!isValid | invoiceSheet==null) {\n initialized = false;\n return \"Workbook is not valid/checked\";\n }\n String errors = \"\";\n \n //Get company name\n cell = invoiceSheet.getRow(1).getCell(4);\n companyName = getStringCellValue(cell);\n if (companyName == null) errors += \"|Null company name at row 2 Col 6|\";\n \n //Get charged account name\n cell = invoiceSheet.getRow(1).getCell(11);\n chargedAccountName = getStringCellValue(cell);\n if (chargedAccountName == null) \n errors += \"|Null account name at row 2 Col 12|\";\n \n //Get charged account number\n cell = invoiceSheet.getRow(2).getCell(11);\n if (cell.getCellTypeEnum() != CellType.FORMULA) {\n chargedAccountNumber = null;\n errors += \"|Null account number at row 3 Col 12|\";\n } else {\n holder = getRawCellValue(cell);\n if (holder instanceof Double){\n chargedAccountNumber = String.format(\"%.0f\", (Double) holder);\n } else {\n chargedAccountNumber = holder.getClass().getName();\n errors += \"|Account number at row 3 Col 12 are not numbers|\";\n }\n }\n \n //Get number of invoices\n cell = invoiceSheet.getRow(1).getCell(25);\n if (cell.getCellTypeEnum() != CellType.FORMULA) {\n numberOfInvoices = 0;\n errors += \"|Null number of invoice row 2 Col 26|\";\n } else {\n holder = getRawCellValue(cell);\n if (holder instanceof Double){\n Double numInvoices = (Double) holder;\n numberOfInvoices = numInvoices.intValue();\n } else {\n numberOfInvoices = 0;\n errors += \"|number of invoice row 2 Col 26 are not numbers|\";\n }\n }\n \n //Get from date and to date\n cell = invoiceSheet.getRow(1).getCell(18);\n if (cell.getCellTypeEnum() != CellType.NUMERIC){\n fromDate = null;\n errors += \"|Null from date at row 2 Col 19|\";\n } else {\n Date date = cell.getDateCellValue();\n fromDate = sdf.format(date);\n }\n \n cell = invoiceSheet.getRow(2).getCell(18);\n if (cell.getCellTypeEnum() != CellType.NUMERIC){\n toDate = null;\n errors += \"|Null at date at row 3 Col 19|\";\n } else {\n Date date = cell.getDateCellValue();\n toDate = sdf.format(date);\n }\n \n /*\n 0 - row numebr\n 1 - transaction date\n 2 - Account number\n 3 - Account name\n 4 - Expense Description\n 5 - Payee/Vendor name\n 6 - Reference number\n 7 - Location\n 8 - Payment Method\n 9 - Amount (Excluding tax)\n 10 - Tax Code\n 11 - Amount (Including tax)\n 12 - Memo\n 13 - Line filled (1 for automation. 0 for manual)\n */\n lineItems = new String[200][14];\n lineItemsCount = 0;\n for (int i = 0; i < 200; i++){\n lineSuccess = true;\n rowNumber = i + lineStart;\n row = invoiceSheet.getRow(rowNumber);\n if (row == null) {\n errors += \"|Unexpected row number encountered for line items|\";\n break;\n }\n \n \n // transaction date\n cell = row.getCell(1);\n if (cell==null || cell.getCellTypeEnum() != CellType.NUMERIC) {\n break;\n } else if (cell.getNumericCellValue()>40000.0){\n Date date = cell.getDateCellValue();\n lineItems[i][1] = sdf.format(date);\n } else {\n lineItems[i][1] = cell.getNumericCellValue();\n lineSuccess = false;\n } \n \n // row number\n lineItems[i][0] = (i+1)+\"\";\n \n // acount Number\n cell = row.getCell(3);\n if (cell==null || cell.getCellTypeEnum() != CellType.FORMULA) {\n lineSuccess = false;\n lineItems[i][2] = \"not formmula\";\n } else {\n holder = getRawCellValue(cell);\n if (holder instanceof Double) {\n accountNumber = (Double) getRawCellValue(cell);\n lineItems[i][2] = String.format(\"%.0f\", accountNumber);\n } else {\n lineSuccess = false;\n lineItems[i][2] = \"not numbers: \" + \n holder.getClass().getName();\n }\n }\n \n // account name\n cell = row.getCell(5);\n if (cell==null || cell.getCellTypeEnum() != CellType.STRING){\n lineSuccess = false;\n } else {\n lineItems[i][3] = getStringCellValue(cell);\n }\n \n // expense description\n cell = row.getCell(7);\n if (cell!=null){\n lineItems[i][4] = getStringCellValue(cell);\n }\n \n // payee/vendor name\n cell = row.getCell(11);\n if (cell==null|| cell.getCellTypeEnum() != CellType.STRING){\n lineSuccess = false;\n } else {\n lineItems[i][5] = getStringCellValue(cell);\n }\n \n // reference number\n cell = row.getCell(13);\n if (cell!=null){\n lineItems[i][6] = getStringCellValue(cell);\n } else {\n lineItems[i][6] = \"\";\n }\n \n // location\n cell = row.getCell(15);\n if (cell!=null){\n lineItems[i][7] = getStringCellValue(cell);\n } else {\n lineItems[i][7] = \"\";\n }\n \n // payment method\n cell = row.getCell(17);\n if (cell==null|| cell.getCellTypeEnum() != CellType.STRING){\n lineSuccess = false;\n } else {\n lineItems[i][8] = getStringCellValue(cell);\n }\n \n // amount excluding tax\n cell = row.getCell(19);\n if (cell==null || cell.getCellTypeEnum() != CellType.NUMERIC) {\n lineSuccess = false;\n } else {\n amount = (Double) getRawCellValue(cell);\n if (amount>0){\n lineItems[i][9] = amount.toString();\n } else {\n lineItems[i][9] = amount.toString();\n lineSuccess = false;\n }\n }\n \n // tax code\n cell = row.getCell(21);\n if (cell==null|| cell.getCellTypeEnum() != CellType.STRING){\n lineSuccess = false;\n } else {\n lineItems[i][10] = getStringCellValue(cell);\n } \n \n // amount including tax\n cell = row.getCell(23);\n if (cell==null || cell.getCellTypeEnum() != CellType.FORMULA) {\n lineSuccess = false;\n } else {\n amount = (Double) getRawCellValue(cell);\n if (amount>0){\n lineItems[i][11] = amount.toString();\n } else {\n lineItems[i][11] = amount.toString();\n lineSuccess = false;\n }\n }\n \n // memo\n cell = row.getCell(25);\n if (cell!=null){\n lineItems[i][12] = getStringCellValue(cell);\n } else {\n lineItems[i][12] = null;\n } \n /*\n Sets the value of the last array in the row to 1 if line is valid\n and 0 if not valid\n */\n lineItems[i][13] = (lineSuccess) ? \"1\":\"0\";\n if (lineSuccess) lineItemsCount += 1;\n }\n \n /* \n //Number of invoices should be equal to size of lineItems\n private Object[][] lineItems;*/\n if (!errors.equals(\"\")){\n initialized = false;\n return errors;\n } else{\n initialized = true;\n return \"Success\";\n }\n }", "public void test47889() {\n XSSFWorkbook wb = (XSSFWorkbook)_testDataProvider.openSampleWorkbook(\"47889.xlsx\");\n XSSFSheet sh = wb.getSheetAt(0);\n \n XSSFCell cell;\n \n //try a string cell\n cell = sh.getRow(0).getCell(0);\n assertEquals(XSSFCell.CELL_TYPE_STRING, cell.getCellType());\n assertEquals(\"a\", cell.getStringCellValue());\n assertEquals(\"a\", cell.toString());\n //Gnumeric produces spreadsheets without styles\n //make sure we return null for that instead of throwing OutOfBounds\n assertEquals(null, cell.getCellStyle());\n \n //try a numeric cell\n cell = sh.getRow(1).getCell(0);\n assertEquals(XSSFCell.CELL_TYPE_NUMERIC, cell.getCellType());\n assertEquals(1.0, cell.getNumericCellValue());\n assertEquals(\"1.0\", cell.toString());\n //Gnumeric produces spreadsheets without styles\n //make sure we return null for that instead of throwing OutOfBounds\n assertEquals(null, cell.getCellStyle());\n }", "@SuppressWarnings({ \"resource\", \"deprecation\" })\n\tpublic String fetch_data_from_excel(String excel_name_with_extension, String sheet_name, String parent_cell, String target_row, String target_column)\n\t\t\tthrows Exception {\n\n\t\tArrayList<String> column_header = new ArrayList<String>();\n\t\tArrayList<String> row_header = new ArrayList<String>();\n\t\t\n\t\tString cellValue = null;\n\n\t\tString folderPath = \"src//test//resources//TestData//\"; // keep excel in this folder path\n\t\tString element_Image = System.getProperty(\"user.dir\") + File.separator + folderPath + excel_name_with_extension;\n\n\t\tFile file = new File(element_Image);\n\t\tFileInputStream fis = new FileInputStream(file); // this contains raw data from the excel\n\t\tXSSFWorkbook workbook = new XSSFWorkbook(fis); // creating workbook\n\n\t\tInteger sheets = workbook.getNumberOfSheets(); // gives count of total number of sheets\n\n\t\tfor (Integer i = 0; i < sheets; i++) {\n\t\t\tif (workbook.getSheetName(i).equalsIgnoreCase(sheet_name)) {\n\t\t\t\tXSSFSheet sheet = workbook.getSheetAt(i); // getting the sheet from workbook\n\n\t\t\t\t// identify required column by scanning the entire 1st row\n\t\t\t\tIterator<Row> rows = sheet.iterator(); // sheet is collection of rows\n\t\t\t\tRow firstRow = rows.next();\n\t\t\t\tIterator<Cell> cell = firstRow.cellIterator(); // row is collection of cells\n\n\t\t\t\tInteger column;\n\n\t\t\t\twhile (cell.hasNext()) {\n\t\t\t\t\tCell cellElement = cell.next();\n\n\t\t\t\t\tif (cellElement.getCellTypeEnum() == CellType.STRING) {\n\t\t\t\t\t\tcolumn_header.add(cellElement.getStringCellValue());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcolumn_header.add(NumberToTextConverter.toText(cellElement.getNumericCellValue()));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tcolumn = column_header.indexOf(parent_cell);\n\n\t\t\t\tIterator<Row> rows2 = sheet.iterator();\n\n\t\t\t\twhile (rows2.hasNext()) {\n\t\t\t\t\tRow r = rows2.next();\n\t\t\t\t\tif (r.getCell(column).getCellTypeEnum() == CellType.STRING) {\n\t\t\t\t\t\trow_header.add(r.getCell(column).getStringCellValue());\n\t\t\t\t\t} else {\n\t\t\t\t\t\trow_header.add(NumberToTextConverter.toText(r.getCell(column).getNumericCellValue()));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tInteger row_index = row_header.indexOf(target_row);\n\t\t\t\tInteger column_index = column_header.indexOf(target_column);\n\n\t\t\t\tif (sheet.getRow(row_index).getCell(column_index).getCellTypeEnum() == CellType.STRING) {\n\t\t\t\t\tcellValue = sheet.getRow(row_index).getCell(column_index).getStringCellValue();\n\t\t\t\t} else {\n\t\t\t\t\tcellValue = NumberToTextConverter\n\t\t\t\t\t\t\t.toText(sheet.getRow(row_index).getCell(column_index).getNumericCellValue());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn cellValue;\n\t}", "public void getRowCount() {\n\n try {\n\n String FILE = \"src/test/resources/Datasheet.xlsx\";\n String SHEET_NAME = \"Master\";\n XSSFWorkbook workbook = new XSSFWorkbook();\n\n }catch (Exception exp)\n {\n exp.printStackTrace();\n System.out.println(exp.getMessage());\n System.out.println(exp.getCause());\n }\n }", "public String getSsxl() {\n return ssxl;\n }" ]
[ "0.6127885", "0.59209156", "0.5904709", "0.58538055", "0.5834612", "0.5833018", "0.5725948", "0.5724045", "0.5694941", "0.5686313", "0.56795615", "0.56730205", "0.56600696", "0.5648181", "0.5588552", "0.5564787", "0.5523887", "0.5516797", "0.5514377", "0.54930353", "0.54444456", "0.5441331", "0.54344887", "0.5432047", "0.5408713", "0.538941", "0.53772765", "0.53630805", "0.53341395", "0.53323203", "0.53154844", "0.53128844", "0.52895135", "0.52747774", "0.52531594", "0.52364373", "0.5227258", "0.5223944", "0.5207417", "0.5203607", "0.5200517", "0.5199862", "0.519855", "0.519855", "0.519855", "0.519855", "0.5169651", "0.5163746", "0.5159742", "0.5154712", "0.51538366", "0.5151777", "0.51420873", "0.51387817", "0.51313233", "0.5119728", "0.51191294", "0.5113729", "0.5106711", "0.51006776", "0.51006335", "0.5099279", "0.5093357", "0.50846046", "0.50802076", "0.50648946", "0.5059769", "0.50578946", "0.5051857", "0.5050615", "0.50497454", "0.50486046", "0.50477904", "0.50430375", "0.50404215", "0.50386685", "0.5035809", "0.5034065", "0.50278664", "0.502387", "0.5021812", "0.5010976", "0.50073814", "0.5001729", "0.49959913", "0.49818602", "0.49802276", "0.49791428", "0.49778125", "0.49732548", "0.49728164", "0.4972573", "0.49685434", "0.4958928", "0.49556908", "0.49555302", "0.49542853", "0.49464053", "0.49406046", "0.49316725", "0.4931447" ]
0.0
-1
Get Germplasm info from database according to Germplasm list id
public GermplasmList getGermPlasmListFromDB(Integer listid);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Sale> saleListGenre() {\n List<Sale> saleList = new ArrayList<Sale>();\n\n try {\n conn = DBConnection.getConnection();\n stm = conn.createStatement();\n result = stm.executeQuery(\"SELECT * FROM disquera.sale \\n\"\n + \"join disquera.genre on sale.id_genre=genre.id_genre\");\n //result_album = stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.artist on sale.id_artist=artist.id_artist\");\n //result_artist=stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.artist on sale.id_artist=artist.id_artist\");\n while (result.next()) {\n Sale newSale = new Sale();\n newSale.setId_sale(result.getInt(1));\n newSale.setId_album(result.getInt(4));\n newSale.setId_user(result.getInt(5));\n newSale.setId_genre(result.getInt(6));\n //newSale.setSongName(result.getString(10));\n //newSale.setAlbumName(result_album.getString(8));\n newSale.setGenre(result.getString(8));\n\n System.out.println(\"\\n\\n Received data: \\n Id: \" + newSale.getId_sale() + \"\\nPrecio: \" + newSale.getPrice());\n saleList.add(newSale);\n /*\n System.out.println(\"No existe un usuario con esa contraseña\");\n conn.close();\n return null;\n */\n }\n result.close();\n stm.close();\n conn.close();\n } catch (SQLException ex) {\n ex.getStackTrace();\n return null;\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DAOGenre.class.getName()).log(Level.SEVERE, null, ex);\n }\n return saleList;\n }", "public G obtener(Long id) throws AppException;", "@Override\n\tpublic List getListByResId(Integer resid) {\n\t\tString sql = \"select g.resid from GroupFunres g where resid = '\" + resid + \"'\";\n\t\tList list = this.queryForList(sql);\n\t\tList idList=new ArrayList();\n\t\tif (list != null && list.size() > 0) {\n\t\t\tfor(int i=0;i<list.size();i++){\n\t\t\t\tidList.add(list.get(i));\n\t\t\t}\n\t\t\treturn idList;\n\t\t}\n\t\treturn null;\n\t}", "public int getIdLibro()\n {\n return id;\n }", "@Override\n\tpublic List<Map<String, Object>> findInfoById(long id) {\n\t\treturn gwgyDataDao.findInfoById(id);\n\t}", "public Gerant getInfos(int id) {\n\t\tConnection con = null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tGerant retour = null;\n\t\t\n\t\ttry {\n\t\t\tcon = DriverManager.getConnection(URL, LOGIN, PASS);\n\t\t\tps = con.prepareStatement(\"SELECT * FROM gerant WHERE idGerant = ? \");\n\t\t\tps.setInt(1, id);\n\t\t\t\n\t\t\trs = ps.executeQuery();\n\t\t\t\n\t\t\tif(rs.next()) {\n\t\t\t\tretour = new Gerant(\n\t\t\t\t\t\trs.getInt(\"idGerant\"),\n\t\t\t\t\t\trs.getString(\"email\"),\n\t\t\t\t\t\trs.getString(\"mdp\"),\n\t\t\t\t\t\trs.getString(\"status\")\n\t\t\t\t\t\t);\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception ee) {\n\t\t\tee.printStackTrace();\n\t\t} finally {\n\t\t\t// fermeture du ResultSet, du PreparedStatement et de la Connexion\n\t\t\ttry {\n\t\t\t\tif (rs != null)\n\t\t\t\t\trs.close();\n\t\t\t} catch (Exception ignore) {\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (ps != null)\n\t\t\t\t\tps.close();\n\t\t\t} catch (Exception ignore) {\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (con != null)\n\t\t\t\t\tcon.close();\n\t\t\t} catch (Exception ignore) {\n\t\t\t}\n\t\t}\n\t\treturn retour;\n\t}", "public ArrayList<ArrayList<String>> getMember(int idGroupe) throws RemoteException {\r\n\t\t\t\r\n\t\t\tArrayList<ArrayList<String>> list = new ArrayList<ArrayList<String>>();\r\n\t\t\t\r\n\t\t String requete = \"Select e_id, e_nom, e_prenom from etudiant, groupeassoc Where ga_idGroupe = \" + idGroupe +\r\n\t\t \t\t\t\t \" and ga_idetudiant = e_id\";\r\n\t\t System.out.println(\"requete : \" + requete);\r\n\t\t \r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t String[] line = null;\r\n\r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \tArrayList <String> etud = new ArrayList <String>();\r\n\t\t \t\r\n\t\t \tString concat;\r\n\t\t \tline = data.nextElement();\r\n\t\t \tetud.add(line[1]);\r\n\t\t \tconcat = line[2] + \" \" + line[3];\r\n\t\t \tetud.add(concat);\r\n\t\t \tlist.add(etud);\r\n\t\t }\r\n\t\t \r\n\t\t return list;\r\n\t\t}", "public String FindById(int id) throws SQLException{\n\t\t\tString req =\"Select NomGroupe from Groupe where ID_Groupe= ? \";\n\t\t\tPreparedStatement ps=DBConfig.getInstance().getConn().prepareStatement(req);\n\t\t\tps.setInt(1,id);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\trs.next();\n\t\t\treturn rs.getString(1);\t\n\t\t\t\n\t\t}", "public List<Kateggorija> getSviGlumci() {\n List<Kateggorija> glumci=null;\n try {\n glumci= getDaoKateggorija().queryForAll();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return glumci;\n }", "public String getGID(long id) {\n Log.d(TAG, \"getGID(): Start\");\n final Cursor c = mDb.getReadableDatabase().rawQuery(\n \"select \" + RundenZielTbl.GID +\n \" from \" + RundenZielTbl.TABLE_NAME +\n \" where \" + RundenZielTbl.ID + \"=\" + String.valueOf(id) +\n \";\",\n null);\n if (!c.moveToFirst()) {\n Log.d(TAG, \"getGID(): Kein Parcour gespeichert\");\n return null;\n }\n Log.d(TAG, \"getGID(): Anzahl gespeicherten Parcours - \" + c.getCount());\n String getGID = c.getString(0);\n c.close();\n return getGID;\n }", "public String getGeslacht(){\n try {\n Connection con = Main.getConnection();\n PreparedStatement st = con.prepareStatement(\"SELECT geslacht FROM Spelers WHERE idcode = ?\");\n st.setInt(1, Integer.parseInt(spelerIDField.getText()));\n ResultSet rs = st.executeQuery();\n if (rs.next()) {\n String geslacht = rs.getString(\"geslacht\");\n System.out.println(geslacht);\n return geslacht;\n }\n\n }catch(Exception e){\n System.out.println(e);\n System.out.println(\"ERROR: er is een probleem met de database (geslacht)\");\n }\n\n return \"poepieScheetje\";}", "public Listing getListingByIsbn(int id) throws SQLException;", "String getSlingId();", "private void getScholsFromDatabase() {\n schols = new Select().all().from(Scholarship.class).execute();\n }", "@Query(\"select lg from LigneCommande lg where lg.personne.id=?1\")\r\n\t\tList<LigneCommande> findAllLigneCommandeParPersonneId(Long id);", "public List<String> Garsonkullanici(int masa_no) throws SQLException {\n ArrayList<Integer> kull = new ArrayList<>();\r\n ArrayList<String> kullad = new ArrayList<>();\r\n sqlsorgular.baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n\r\n String sorgu = \"select kullanici_no from ilisk_masa where masa_no=\" + masa_no + \";\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n\r\n while (rs.next()) {\r\n kull.add(rs.getInt(1));\r\n }\r\n System.out.println(kull);\r\n } catch (Exception e) {\r\n System.out.println(\"Garson kullanicisini alirken hata olustu\");\r\n\r\n }\r\n\r\n for (Integer kullanici_no : kull) {\r\n String deger = \" \";\r\n String sorgu2 = \"select kullanici_adi from kullanicilar where kullanici_no=\" + kullanici_no + \" and durum='GARSON';\";\r\n try {\r\n ps = vb.con.prepareStatement(sorgu2);\r\n rs = ps.executeQuery(sorgu2);\r\n while (rs.next()) {\r\n deger = rs.getString(1);\r\n\r\n if (deger != null) {\r\n kullad.add(deger);\r\n }\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Garson kullanici Alinirken hata oldu\");\r\n }\r\n\r\n System.out.println(kullad);\r\n\r\n }\r\n vb.con.close();\r\n return kullad;\r\n\r\n }", "public ArrayList<String> getListrEpcm_Num() throws SQLException, ClassNotFoundException {\r\n //SQL query\r\n String sql = \"SELECT rEpcm_Num FROM AUTREPCM\";\r\n //New listrEpcm_Num ArrayList \r\n ArrayList<String> listrEpcm_Num = new ArrayList<String>();\r\n\r\n try {\r\n dbCon.psmt = dbCon.getConnect().prepareStatement(sql);\r\n //Create ResultSet \r\n dbCon.rs = dbCon.psmt.executeQuery();\r\n if(dbCon.rs == null){\r\n lg.error(\"method getListAutcarnm(): ResultSet = null\");\r\n return listrEpcm_Num;\r\n }\r\n //Get id into string\r\n while(dbCon.rs.next()) {\r\n listrEpcm_Num.add(dbCon.rs.getString(1).trim());\r\n }\r\n return listrEpcm_Num;\r\n }catch(Exception tt) {\r\n \r\n // Call Log4j for logging\r\n StackTraceElement stackTraceElement[] = tt.getStackTrace();\r\n for (int i = 0; i < stackTraceElement.length; i++) {\r\n lg.warn(stackTraceElement[i].getClassName());\r\n lg.warn(stackTraceElement[i].getFileName());\r\n lg.warn(stackTraceElement[i].getLineNumber());\r\n lg.warn(stackTraceElement[i].getMethodName());\r\n \r\n }\r\n \r\n throw new SQLException();\r\n \r\n }finally {\r\n if((dbCon.psmt != null) && (dbCon.getConnect() != null)){\r\n try {\r\n //Close PreparedStatement\r\n dbCon.psmt.close();\r\n //Close connect\r\n dbCon.getConnect().close();\r\n } catch (SQLException e) {\r\n lg.error(\"The PreparedStatement or Connection not close \");\r\n }\r\n } else {\r\n // do something\r\n }\r\n }\r\n \r\n }", "public void addGenre() {\n ResultSet result = null;\n try {\n result = server.executeStatement(\"SELECT genreID FROM productiongenre WHERE prodID = \" + \"'\" + getId() + \"'\" + \";\");\n if(result.next())\n genre = result.getString(\"genreID\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public List<String> listSamithiByCooperativeId(Long id);", "@Override\n\tpublic LidPOJO findLid(int id) throws SQLException {\n \tConnection connect = getConnection();\n\n\t\tString queryString = \"SELECT * FROM leden WHERE id = \" + id;\n\t\tResultSet res = getConnection().prepareStatement(queryString).executeQuery();\n\t\tLidPOJO lid = new LidPOJO();\n\t\twhile (res.next()) {\n\t\t\tlid = new LidPOJO(res.getString(\"naam\"), res.getString(\"achternaam\"), res.getInt(\"leeftijd\"), res.getInt(\"teamcode\"), res.getString(\"pasw\"));\n\t\t\tlid.setId(res.getInt(\"id\"));\n\t\t}\n\t\tconnect.close();\n\t\treturn lid;\n }", "public Integer getIdLocacion();", "public List<SpotLightOpcion> obtenerSpoltLight(String clave) throws Exception;", "@Override\r\n\tpublic List getStudentList(String id) {\n\t\tList orderlineList = new ArrayList();\r\n\t\t\r\n\t\tSystem.out.println(id);\r\n\t\t\r\n\t\tConnection conn = null;\r\n\t\t\r\n\t\tStatement stmt = null;\r\n\t\t\r\n\t\tResultSet rs = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\t\r\n\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/gwap\",\"root\",\"\");\r\n\t\t\t\r\n\t\t\tstmt = conn.createStatement();\r\n\t\t\t\r\n\t\t\tstmt.execute(\"set names 'gbk'\");\r\n\t\t\t\r\n\t\t\trs = stmt.executeQuery(\"select product.name,cost,amount,paystyle from orders,orderline,product,payway where orders.orderid=orderline.orderid and orderline.productid=product.productid and orders.paywayid=payway.paywayid and orders.orderid='\"+id+\"'\");\r\n\t\t\t\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tOrderlineproduct orderline = new Orderlineproduct();\r\n\t\t\t\torderline.setProductname(rs.getString(\"product.name\"));\r\n\t\t\t\torderline.setProductprice(rs.getString(\"cost\"));\r\n\t\t\t\torderline.setCount(rs.getString(\"amount\"));\r\n\t\t\t\torderline.setPayway(rs.getString(\"paystyle\"));\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\torderlineList.add(orderline);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t\tthrow new RuntimeException(\"error when querying product \",e);\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\trs.close();\r\n\t\t\t\tstmt.close();\r\n\t\t\t\tconn.close();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t\t\tthrow new RuntimeException(\"error when querying product \",e);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn orderlineList;\r\n\t}", "Jugador consultarGanador();", "public List<String> listSelectedSamithiById(Long id);", "public KListObject<KAssurer_lecon> chargerListeRDVEleve(int id){\r\n\t\tint idAgenda;\r\n\t\t\r\n\t\tKListObject<KAssurer_lecon> Kliste =new KListObject<KAssurer_lecon>(KAssurer_lecon.class);\r\n\t\tKAssurer_lecon lecon = null;\r\n\t\tKListObject<KAgenda> Kliste1 =new KListObject<KAgenda>(KAgenda.class);\r\n\t\tKliste1.loadFromDb(BDD.db,\"select * from agenda where id in (select idAgenda from assurer_lecon where ideleve =\"+id+\") \" +\r\n\t\t\t\t\"order by date_agenda asc, heure_agenda asc\");\r\n\t\t\r\n\t\tfor(int i = 0; i<Kliste1.count(); i++){\r\n\t\t\tidAgenda = ((Integer)Kliste1.get(i).getId());\r\n\t\t\tlecon = new KAssurer_lecon();\r\n\t\t\ttry {\r\n\t\t\t\tlecon.loadOne(BDD.db,\" idAgenda = \"+idAgenda+\" and idEleve =\"+id);\r\n\t\t\t\tKliste.add(lecon);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace(); \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn Kliste;\r\n\t}", "public Info_laboral findByID(int cod){\n ConexionBD con = new ConexionBD();\n Connection c = con.conOracle();\n Info_laboral IL = new Info_laboral();\n try{\n CallableStatement cs = c.prepareCall(\"{? = call F_BUSNOMINFO(?)}\");\n cs.registerOutParameter(1, Types.VARCHAR);\n cs.setInt(2, cod);\n cs.execute();\n //IL.setId(cod);\n //IL.setJefe(cs.getString(1));\n System.out.println(cs.getString(1));\n con.CerrarCon();\n return IL;\n }catch(SQLException e){\n System.out.println(\"erorrrr findbyid \"+e);\n con.CerrarCon();\n return null;\n }\n \n }", "public ArrayList<ArrayList<Integer>> selectForQuoiEntre(int id) throws DAOException;", "@Override\n public ResultSet getByID(String id) throws SQLException {\n return db.getConnection().createStatement().executeQuery(\"select * from comic where idcomic=\"+id);\n }", "private List<Germplasm> getGermplasmByType(int typeid) {\n\t\tBrowseGermplasmManagerImpl mgr = new BrowseGermplasmManagerImpl();\n\t\treturn (List<Germplasm>) mgr.getGermplasmByType(typeid);\n\t}", "public ArrayList<Integer> getIdGroupe (int idProjet) throws RemoteException {\r\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\r\n\t\t\t\r\n\t\t String requete = \"Select a_idgroupe from association where a_idprojet = \" + idProjet;\r\n\t\t System.out.println(\"requete : \" + requete);\r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t String[] line = null;\r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \tline = data.nextElement();\r\n\t\t \tlist.add(Integer.parseInt(line[1]));\r\n\t\t }\r\n\r\n\t\t return list;\t\r\n\t\t}", "String getBusi_id();", "@RequestMapping(value=\"/list/groupe/{id}\", method=RequestMethod.GET)\r\n\tpublic HashMap<String, Object> getJuridictionGroupeByGroupe(@PathVariable int id){\r\n\t\t\r\n\t\tHashMap<String, Object> h= new HashMap<String, Object>();\r\n\t\tGroupe g = gRep.findOne(id);\r\n\t\tif (g == null) {\r\n\t\t\th.put(\"message\", \"Le groupe n'existe pas.\");\r\n\t\t\th.put(\"status\", -1);\r\n\t\t\treturn h;\r\n\t\t}\r\n\t\tList<JuridictionGroupe> jGroupes = jGRep.findByGroupe(g);\r\n\t\th.put(\"message\", \"success\");\r\n\t\th.put(\"list_juridiction_groupe\", jGroupes);\r\n\t\th.put(\"status\", 0);\r\n\t\treturn h;\r\n\t}", "Object getDados(long id);", "public List<Sale> saleListSong() {\n List<Sale> saleList = new ArrayList<Sale>();\n\n try {\n conn = DBConnection.getConnection();\n stm = conn.createStatement();\n result = stm.executeQuery(\"SELECT * FROM disquera.sale \"\n + \"join disquera.song on sale.id_song=song.id_song \"\n + \"join disquera.artist on song.id_artist=artist.id_artist \"\n + \"join disquera.album on song.id_album=album.id_album\");\n //result_album = stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.album on sale.id_album=album.id_album\");\n //result_artist=stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.artist on sale.id_artist=artist.id_artist\");\n while (result.next()) {\n Sale newSale = new Sale();\n newSale.setId_sale(result.getInt(1));\n newSale.setId_song(result.getInt(2));\n newSale.setPrice(result.getDouble(3));\n newSale.setId_album(result.getInt(4));\n newSale.setId_user(result.getInt(5));\n newSale.setId_genre(result.getInt(6));\n newSale.setSongName(result.getString(10));\n newSale.setArtistName(result.getString(14));\n newSale.setAlbumName(result.getString(20));\n\n System.out.println(\"\\n\\n Received data: \\n Id: \" + newSale.getId_sale() + \"\\nPrecio: \" + newSale.getPrice());\n saleList.add(newSale);\n /*\n System.out.println(\"No existe un usuario con esa contraseña\");\n conn.close();\n return null;\n */\n }\n result.close();\n stm.close();\n conn.close();\n } catch (SQLException ex) {\n ex.getStackTrace();\n return null;\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DAOGenre.class.getName()).log(Level.SEVERE, null, ex);\n }\n return saleList;\n }", "public java.lang.Integer getGrse_id();", "public ArrayList <String>GroupePers(Personne p1) throws SQLException{\n\t\t\tArrayList <String> groupe = new ArrayList<String>();\n\t\t\tString req =\"Select NomGroupe from Groupe where NomComptePers= ?\";\n\t\t\tPreparedStatement ps=DBConfig.getInstance().getConn().prepareStatement(req);\n\t\t\tps.setString(1,p1.getNomComptePers());\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\t\n\t\t\t\tgroupe.add(rs.getString(1));\n\t\t\t}\n\t\t\treturn groupe;\n\t\t\t\n\t\t}", "private static ArrayList<String> getGenre(String songID) throws SQLException {\n ArrayList<String> genres = new ArrayList<>();\n genreStatement = conn.createStatement();\n genreResultSet = genreStatement.executeQuery(\"SELECT * FROM genre, trackGenre WHERE trackGenre.track_id = '\" + songID + \"' AND trackGenre.genre = genre.name;\");\n while (genreResultSet.next()){\n genres.add(genreResultSet.getString(\"name\"));\n }\n return genres;\n }", "Basicinfo selectByPrimaryKey(String taxregcode);", "public LinkedList<GeneralProduct> loadGeneralProducts(Integer branch_id) {\n LinkedList<GeneralProduct> generalProducts = new LinkedList<>();\n try {\n List<GeneralProductDTO> generalProductDTOS = general_product_dao.dao.queryBuilder().where().eq(\"branch_id\", branch_id).query();\n if (generalProductDTOS != null && !generalProductDTOS.isEmpty()) {\n for (GeneralProductDTO dto : generalProductDTOS) {\n GeneralProduct generalProduct = find_GeneralProduct(dto.getGPID(), branch_id);\n if (generalProduct != null) {\n generalProducts.add(generalProduct);\n }\n }\n }\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n return generalProducts;\n }", "public void getDetail(int id) {\n\t\t\n\t}", "public ArrayList getModeleDetalii(int id) {\n c = db.rawQuery(\"select md.denumire, md.poza, cr.denumire, mc.denumire, md.anul, md.cai_putere, md.capacitate_cilindrica, bg.denumire, cb.denumire from modele md join caroserii cr on md.cri_id=cr.id join marci mc on md.mci_id=mc.id join buget bg on md.bgt_id=bg.id join combustibil cb on md.cbl_id=cb.id where md.id=\" + id , new String[]{});\n ArrayList lista = new ArrayList();\n while (c.moveToNext()) {\n String model=c.getString(0);\n String poza=c.getString(1);\n String caroserie = c.getString(2);\n String marca = c.getString(3);\n String anul = c.getString(4);\n String cai_putere = c.getString(5);\n String capacitate_cilindrica = c.getString(6);\n String buget = c.getString(7);\n String combustibil = c.getString(8);\n lista.add(model);\n lista.add(poza);\n lista.add(caroserie);\n lista.add(buget);\n lista.add(combustibil);\n lista.add(marca);\n lista.add(anul);\n lista.add(cai_putere);\n lista.add(capacitate_cilindrica);\n }\n return lista;\n }", "int getSnId();", "int getSnId();", "int getSnId();", "int getSnId();", "@Override\n\tpublic ArrayList<Risposta> getRisposte(int id) {\n\t\tDB db = getDB();\n\t\tArrayList<Risposta> risposte = new ArrayList<Risposta>();\n\t\tMap<Long, Risposta> list = db.getTreeMap(\"risposte\");\n\t\tfor(Map.Entry<Long, Risposta> risposta : list.entrySet())\n\t\t\tif(risposta.getValue() instanceof Risposta) {\n\t\t\t\tif(risposta.getValue().getDomandaID() == id)\n\t\t\t\t\trisposte.add((Risposta)risposta.getValue());\n\t\t\t}\n\t\treturn risposte;\n\t}", "public ArrayList consultaID(){\n ArrayList<Object> iduser = new ArrayList<Object>();\n\n sSQL = \"SELECT usuario.idusuario from usuario where usuario.idtipo_user='3'\";\n\n try {\n Statement st = cn.createStatement();\n ResultSet rs = st.executeQuery(sSQL);\n while (rs.next()) {\n iduser.add(rs.getInt(\"usuario.idusuario\"));\n\n }\n \n \n return iduser;\n } catch (Exception e) {\n \n System.out.println(\"consultando usuarios registrados para la seleccion del representante\");\n return null;\n \n }\n }", "public ArrayList<HashMap<String, String>> getdisp(String idped) {\n ArrayList<HashMap<String, String>> wordList;\n //crea lista\n wordList = new ArrayList<HashMap<String, String>>();\n\n ///////QUERY DE DISPOSITIVOS\n String selectQuery = \"SELECT code_scan,name,description,comments,latitude,longitude,time_install,fk_order_id,photos, price, warranty FROM things where fk_order_id = '\"+idped+\"'\";\n SQLiteDatabase database = this.getWritableDatabase();\n Cursor cursor = database.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()) {\n do {\n HashMap<String, String> map = new HashMap<String, String>();\n map.put(\"code_scan\", cursor.getString(0));\n map.put(\"name\", cursor.getString(1));\n map.put(\"description\", cursor.getString(2));\n map.put(\"comments\", cursor.getString(3));\n map.put(\"latitude\", cursor.getString(4));\n map.put(\"longitude\", cursor.getString(5));\n map.put(\"time_install\", cursor.getString(6));\n map.put(\"fk_order_id\", cursor.getString(7));\n map.put(\"photos\", cursor.getString(8));\n map.put(\"price\", cursor.getString(9));\n map.put(\"warranty\", cursor.getString(10));\n\n wordList.add(map);\n } while (cursor.moveToNext());\n }\n database.close();\n return wordList;\n }", "Clothes getById(int id);", "public String getlbr_NFeID();", "public String getlbr_NFeID();", "public void Found_project_from_DATABASE(int id){\n print_pro();\n// return project;\n }", "public void loadGroup(){ \n\t\t try {\n\n\t\t\t\tConnection con = DBConnection.connect();\n\n\t\t\t\tString query=\"select * from Student_Groups \";\n\t\t\t\tPreparedStatement pst=con.prepareStatement(query);\n\t\t\t\tResultSet rs=pst.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tString name =rs.getString(\"G_ID\");\n\t\t\t\t\tgroupId.addItem(name);\n\t\t\t\t\t \n\t\t\t\t}\n\n\t\t\t\tcon.close();\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n}", "public Salle getSalleById(final Long id);", "@Override\n\tpublic LidPOJO findLidByName(String naam) throws SQLException {\n \tConnection connect = getConnection();\n\n\t\tString queryString = \"SELECT * FROM leden WHERE naam = \" + naam;\n\t\tResultSet res = getConnection().prepareStatement(queryString).executeQuery();\n\t\tLidPOJO lid = new LidPOJO();\n\t\twhile (res.next()) {\n\t\t\tlid = new LidPOJO(res.getString(\"naam\"), res.getString(\"achternaam\"), res.getInt(\"leeftijd\"), res.getInt(\"teamcode\"), res.getString(\"pasw\"));\n\t\t}\n\t\tconnect.close();\n\t\treturn lid;\n }", "GirlInfo selectByPrimaryKey(Integer id);", "private List<Produto> retornaProduto (Long cod){\n \n Query q = entityManager.createNamedQuery(\"Produto.findByCodigo\");\n q.setParameter(\"codigo\", cod);\n List <Produto> p = q.getResultList();\n return p; \n}", "public static ArrayList<Job> getJobByRecruiter(int id)\n {\n conn = DatabaseConnectionPostgre.connection();\n try {\n ArrayList<Job> returnValue = new ArrayList<>();\n\n stmt = conn.createStatement();\n String sql = String.format(\n \"SELECT * FROM job NATURAL JOIN recruiter NATURAL JOIN location WHERE recruiter_id = %d;\",\n id\n );\n ResultSet rs = stmt.executeQuery(sql);\n while(rs.next()) {\n returnValue.add(new Job(\n rs.getInt(\"job_id\"),\n rs.getString(\"job_name\"),\n new Recruiter(\n rs.getInt(\"recruiter_id\"),\n rs.getString(\"name\"),\n rs.getString(\"email\"),\n rs.getString(\"phone_number\"),\n new Location(\n rs.getString(\"province\"),\n rs.getString(\"city\"),\n rs.getString(\"description\")\n )\n ),\n rs.getInt(\"fee\"),\n JobCategory.valueOf(rs.getString(\"category\"))\n ));\n }\n rs.close();\n stmt.close();\n conn.close();\n return returnValue;\n } catch (Exception e) {\n System.err.println(e.getClass().getName()+\": \"+ e.getMessage());\n return null;\n }\n }", "@Override\n\tpublic List<Student> queryByGid(int gid) {\n\t\treturn sDao.queryByGid(gid);\n\t}", "private void getAllIds() {\n try {\n ArrayList<String> NicNumber = GuestController.getAllIdNumbers();\n for (String nic : NicNumber) {\n combo_nic.addItem(nic);\n\n }\n } catch (Exception ex) {\n Logger.getLogger(ModifyRoomReservation.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public ArrayList<GameItemSingle> getCasualGameWhitPackageID(){\n\n ArrayList<GameItemSingle> data=new ArrayList<>();\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \"+DATABASE_TABLE_SINGLE_PAGE + \" WHERE _type LIKE \" + \" '%casual_games%'\"+ \" AND acf_android_app_url LIKE 'c%'\" +\n \" ;\",null);\n StringBuffer stringBuffer = new StringBuffer();\n GameItemSingle singlePageItem = null;\n while (cursor.moveToNext()) {\n\n singlePageItem= new GameItemSingle();\n String id = cursor.getString(cursor.getColumnIndexOrThrow(\"id\"));\n String title = cursor.getString(cursor.getColumnIndexOrThrow(\"title_rendered\"));\n String content = cursor.getString(cursor.getColumnIndexOrThrow(\"content_rendered\"));\n String date = cursor.getString(cursor.getColumnIndexOrThrow(\"date\"));\n String app_icon= cursor.getString(cursor.getColumnIndexOrThrow(\"app_icon_image\"));\n singlePageItem.setTitle_rendered(title);\n singlePageItem.setContent_rendered(content);\n singlePageItem.set_date(date);\n singlePageItem.setApp_icon(app_icon);\n singlePageItem.set_id(id);\n\n stringBuffer.append(singlePageItem);\n data.add(singlePageItem);\n }\n\n\n return data;\n }", "public List<Brands> LoadBrandsById(int BrandId) {\n Brands brands = null;\n List<Brands> brandsList = new ArrayList<>();\n try {\n Connection connection = DBConnection.getConnectionToDatabase();\n // String sql = \"SELECT * FROM `humusam_root`.`Users` WHERE UserEmail=\" + email;\n String sql = \"SELECT * FROM `brands` WHERE BrandId=\" + BrandId;\n Statement statment = connection.createStatement();\n ResultSet set = statment.executeQuery(sql);\n ListBrands(brandsList, set);\n } catch (SQLException exception) {\n System.out.println(\"sqlException in Application in LoadAllBrands Section : \" + exception);\n exception.printStackTrace();\n }\n\n return brandsList;\n }", "public static void getProduto(){\r\n try {\r\n PreparedStatement stmn = connection.prepareStatement(\"select id_produto, codigo, produto.descricao pd,preco, grupo.descricao gd from produto inner join grupo on grupo.id_grupo = produto.idgrupo order by codigo\");\r\n ResultSet result = stmn.executeQuery();\r\n\r\n System.out.println(\"id|codigo|descricao|preco|grupo\");\r\n while (result.next()){\r\n long id_produto = result.getLong(\"id_produto\");\r\n String codigo = result.getString(\"codigo\");\r\n String pd = result.getString(\"pd\");\r\n String preco = result.getString(\"preco\");\r\n String gd = result.getString(\"gd\");\r\n\r\n\r\n\r\n System.out.println(id_produto+\"\\t\"+codigo+\"\\t\"+pd+\"\\t\"+preco+\"\\t\"+gd);\r\n }\r\n\r\n }catch (Exception throwables){\r\n throwables.printStackTrace();\r\n }\r\n\r\n }", "public AllergenDB getAllergenDB(long id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(AllergenDB.TABLE_NAME,\n new String[]{AllergenDB.COLUMN_ID, AllergenDB.COLUMN_ALLERGEN, AllergenDB.COLUMN_TIMESTAMP},\n AllergenDB.COLUMN_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n\n if (cursor != null)\n cursor.moveToFirst();\n\n // prepare allergen object\n AllergenDB allergen = new AllergenDB(\n cursor.getInt(cursor.getColumnIndex(AllergenDB.COLUMN_ID)),\n cursor.getString(cursor.getColumnIndex(AllergenDB.COLUMN_ALLERGEN)),\n cursor.getString(cursor.getColumnIndex(AllergenDB.COLUMN_TIMESTAMP)));\n\n // close the db connection\n cursor.close();\n\n return allergen;\n }", "TLinkman selectByPrimaryKey(Integer linkid);", "@Override\n\tpublic List getIdListByGroupId(Integer groupId) {\n\t\tString sql = \"select g.resid from GroupFunres g where groupid = '\" + groupId + \"'\";\n\t\tList list = this.queryForList(sql);\n\t\tList idList=new ArrayList();\n\t\tif (list != null && list.size() > 0) {\n\t\t\tfor(int i=0;i<list.size();i++){\n\t\t\t\tidList.add(list.get(i));\n\t\t\t}\n\t\t\treturn idList;\n\t\t}\n\t\treturn null;\n\t}", "List<Info> getBookInfoById(Long infoId) throws Exception;", "public GermplasmList getGermPlasmList(String fileName) throws Exception;", "Module getById(Long identifier) throws DBException;", "public Socio getSocioInfo() {\n\n ArrayList<Socio> listaSocio = new ArrayList<Socio>();\n // iniciando a conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado e preparando listagem para pegar Socio\");\n Statement stmt = null;\n\n try {\n stmt = connection.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM socio\");\n\n // Incluindo Socios na listaSocios que vai ser retornada\n while (rs.next()) {\n Socio socio = new Socio(rs.getString(\"nomeSocio\"), rs.getString(\"matSocio\"), rs.getString(\"blocoSocio\"), rs.getString(\"funcaoSocio\"),rs.getInt(\"idSocio\"));\n listaSocio.add(socio);\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n \n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n\n Socio socioMax = new Socio();\n\n socioMax = listaSocio.get(0);\n\n //Se houver mais de um socio na lista vai procurar o de maior ID\n if(listaSocio.size()-1 > 0){\n\n for(int i=0; i<= listaSocio.size()-1; i++){\n\n Socio socio = new Socio();\n socio = listaSocio.get(i);\n\n if(socio.getId()>= socioMax.getId() ){\n socioMax = socio;\n }\n\n }\n\n }\n //Se não pega o primeiro\n else {\n socioMax = listaSocio.get(0);\n\n }\n\n System.out.println(socioMax.getId());\n\n //Retorna o socio de maior ID, logo o ultimo inserido.\n return socioMax;\n }", "@Override\n\tpublic Grade findById(Integer gid) {\n\t\tGradeDAO gradeDAO= (GradeDAO)ObjectFactory.getObject(\"gradeDAO\");\n\t\treturn gradeDAO.selectById(gid);\n\t}", "ProSchoolWare selectByPrimaryKey(String id);", "public ArrayList<VideogameEntry> getList(String id) throws Exception{\n ArrayList<VideogameEntry> videogames = new ArrayList<VideogameEntry>();\n Connection cn;\n PreparedStatement st;\n ResultSet rs;\n \n this.openConnection();\n cn = this.getConnection();\n st = cn.prepareStatement(\"SELECT Elements.name,VideogameEntries.videogameList_id, VideogameEntries.entry_id,VideogameEntries.videogame_id, VideogameEntries.valoration, VideogameEntries.status_in_list\\n\" +\n\"FROM VideogameEntries\\n\" +\n\"INNER JOIN Elements ON Elements.element_id = VideogameEntries.videogame_id WHERE VideogameEntries.videogameList_id= ?\");\n \n st.setString(1,id);\n rs = st.executeQuery();\n \n while(rs.next()){\n VideogameEntry entry = new VideogameEntry();\n entry.setEntryID(String.valueOf(rs.getString(\"entry_id\")));\n entry.setListID(id);\n entry.setName(rs.getString(\"name\"));\n entry.setStatus(rs.getString(\"status_in_list\"));\n entry.setValoration(rs.getInt(\"valoration\"));\n \n entry.setVideogameID(String.valueOf(rs.getInt(\"videogame_id\")));\n \n videogames.add(entry);\n \n }\n \n this.closeConnection();\n \n return videogames;\n }", "JModuleInfo queryById(long id);", "organize_infoBean selectByPrimaryKey(Integer id);", "public String id2placa(String lst_id) {\n \n ArrayList<Movil> lst_movil = MovilBD.select();\n String arr_id[] = lst_id.split(\",\");\n String lst_placa = \"\";\n \n for (String id : arr_id) { \n for (Movil m : lst_movil) {\n String id_m = \"\" + m.getId();\n if (id_m.equals(id)) {\n String placa = \"'\" + m.getPlaca() + \"'\";\n lst_placa += (lst_placa == \"\") ? placa : \",\" + placa;\n break;\n }\n }\n }\n \n return lst_placa;\n }", "Ltsprojectpo selectByPrimaryKey(Long id);", "@Override\n\tpublic Goods selectOne(int id) {\n\t\tString sql=\"select g_id gid,gt_id gtid,g_name gname,g_date gdate,g_picture gpicture,g_price gprice,g_star gstar,g_info ginfo,gpic1 gpic1,gpic2 gpic2,gpic3 gpic3,gpic4 gpic4 from goods where g_id=?\";\n\t\tList list=queryAll(sql,Goods.class,new Object[]{id});\n\t\treturn (Goods) list.get(0);\n\t}", "@Override\n public ArrayList<League> select(String id) {\n return null;\n }", "public List<tipoDetalle> obtenerDetallesBD(){\n List<tipoDetalle> detalles=new ArrayList<>();\n try{\n //Obteniendo el ID del auto desde la activity de Mostrar_datos\n String idAuto;\n Bundle extras=getIntent().getExtras();\n if(extras!=null)\n {\n idAuto=extras.getString(\"id_auto\");\n Log.e(\"auto\",\"el auto id es= \"+idAuto);\n ResultSet rs = (ResultSet) TNT.mostrarDetalles(idAuto);\n while (rs.next()){\n detalles.add(new tipoDetalle(rs.getString(\"id\"), rs.getString(\"nombre\"), rs.getString(\"fecha_entrada\"), rs.getString(\"fecha_salida\"), rs.getString(\"fecha_terminacion\"), rs.getString(\"estado\"), rs.getString(\"descripcion\"), rs.getString(\"costo\")));\n }\n }\n }catch(SQLException e){\n Toast.makeText(getApplicationContext(),e.getMessage(),Toast.LENGTH_SHORT).show();\n }\n return detalles;\n }", "public static ArrayList<SalesManBean> getSallesman(int doId) {\r\n\t\tResultSet rs = null;\r\n\t\tSystem.out.println(\"CustomerBAL.get_do_salesman(?)\");\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tdateFormat.format(new Date());\r\n\t\tSalesManBean bean = null;\r\n\t\tArrayList<SalesManBean> SallesmanList = new ArrayList<SalesManBean>();\r\n\t\tint salesman_id, latecustomer, totalSales;\r\n\t\tdouble monthlyIncome;\r\n\t\tString sallesman_name, cnicNo, address, district, phone;\r\n\t\tDate datejoin;\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\t\t\tif (con != null) {\r\n\t\t\t\t// Begin Stored Procedure Calling -- Jetander\r\n\t\t\t\tCallableStatement prepareCall = con\r\n\t\t\t\t\t\t.prepareCall(\"{call get_do_salesman(?)}\");\r\n\t\t\t\tprepareCall.setInt(1, doId);\r\n\t\t\t\trs = prepareCall.executeQuery();\r\n\t\t\t\twhile (rs.next()) {\r\n\t\t\t\t\tsallesman_name = rs.getString(1);\r\n\t\t\t\t\tcnicNo = rs.getString(2);\r\n\t\t\t\t\taddress = rs.getString(3);\r\n\t\t\t\t\tdistrict = rs.getString(4);\r\n\t\t\t\t\taddress = rs.getString(5);\r\n\t\t\t\t\tmonthlyIncome = rs.getDouble(6);\r\n\t\t\t\t\tdatejoin = rs.getDate(7);\r\n\t\t\t\t\t// System.err.println(\"Date of Joining \" + datejoin);\r\n\t\t\t\t\tphone = rs.getString(8);\r\n\t\t\t\t\tsalesman_id = rs.getInt(9);\r\n\t\t\t\t\tlatecustomer = rs.getInt(10);\r\n\t\t\t\t\ttotalSales = rs.getInt(11);\r\n\t\t\t\t\t// end procedure call.\r\n\t\t\t\t\tbean = new SalesManBean();\r\n\t\t\t\t\tbean.setName(sallesman_name);\r\n\t\t\t\t\tbean.setCnic(cnicNo);\r\n\t\t\t\t\tbean.setAddress(address);\r\n\t\t\t\t\tbean.setDistrict(district);\r\n\t\t\t\t\tbean.setDatejoin(datejoin);\r\n\t\t\t\t\tbean.setSallery(monthlyIncome);\r\n\t\t\t\t\tbean.setPhone_number(phone);\r\n\t\t\t\t\tbean.setSalesmanId(salesman_id);\r\n\t\t\t\t\tbean.setLateCustomer(latecustomer);\r\n\t\t\t\t\tbean.setTotalSales(totalSales);\r\n\t\t\t\t\tbean.setFoname(rs.getString(\"fo_name\"));\r\n\t\t\t\t\tSallesmanList.add(bean);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(\"\", e);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn SallesmanList;\r\n\t}", "int getListSnId(int index);", "List<String> getList(String id);", "public String getLid ()\n {\n return this.lid;\n }", "@Override\n\tpublic ArrayList<Object> getList() {\n\t\tSession session = HibernateUtil.getSession();\n\t\tsession.beginTransaction();\n\t\tString hsql=\"from hibernate.pojo.GmSite as site where site.display='true'\";\n\t\tQuery query = session.createQuery(hsql);\n\t\tsession.getTransaction().commit();\n\t\tArrayList<Object> list = new ArrayList<Object>();\n\t\tlist = (ArrayList<Object>) query.list();\n\t\t\n\t\tsession.close();\n\t\treturn list;\n\t}", "BpmInstanciaHistorica selectByPrimaryKey(Long idreg);", "public EntityAisle getByMatricule(int matricule ){\n\n\n DatabaseHelper databaseHelper = DatabaseHelper.getInstance(this.mExecutionContext);\n SQLiteDatabase sqLiteDatabase = databaseHelper.getReadableDatabase();\n\n EntityAisle result = null;\n\n Cursor cursor = null;\n try {\n\n cursor = sqLiteDatabase.query(ConfigDAO.TABLE_AISLE, null, ConfigDAO.COLUMN_RAYON_ID +\" = \" + matricule , null, null, null, null, null);\n\n /**\n // If you want to execute raw query then uncomment below 2 lines. And comment out above line.\n\n String SELECT_QUERY = String.format(\"SELECT %s, %s, %s, %s, %s FROM %s\", Config.COLUMN_Employee_ID, Config.COLUMN_Employee_NAME, Config.COLUMN_Employee_REGISTRATION, Config.COLUMN_Employee_EMAIL, Config.COLUMN_Employee_PHONE, Config.TABLE_Employee);\n cursor = sqLiteDatabase.rawQuery(SELECT_QUERY, null);\n */\n\n if(cursor!=null)\n if(cursor.moveToFirst()){\n List<EntityAisle> AisleList = new ArrayList<>();\n do {\n int id = cursor.getInt(cursor.getColumnIndex(ConfigDAO.COLUMN_RAYON_ID));\n String name = cursor.getString(cursor.getColumnIndex(ConfigDAO.COLUMN_RAYON_NAME));\n\n\n\n AisleList.add(new EntityAisle(id, name));\n } while (cursor.moveToNext());\n result = AisleList.get(0);\n return result;\n }\n } catch (Exception e){\n Log.i(TAG, \"getAllAisle: \"+e.getMessage());\n Toast.makeText(this.mExecutionContext, \"Operation failed\", Toast.LENGTH_SHORT).show();\n } finally {\n if(cursor!=null)\n cursor.close();\n sqLiteDatabase.close();\n }\n\n return result;\n }", "public List<Registration> getRegistrateById(int id1) throws Exception {\n\t\tList<Registration> list = new ArrayList<Registration>();\n\t\tconn=DBUtil.getConnection();\n\t\tString sql =\"select * from registration where id=?\";\n\t\tps =conn.prepareStatement(sql);\n\t\tps.setInt(1, id1);\n\t\trs= ps.executeQuery();\n\t\twhile (rs.next()) {\n\t\t\tint id = rs.getInt(\"id\");\n\t\t\tint group_id = rs.getInt(\"group_id\");\n\t\t\tString name = rs.getString(\"name\");\n\t\t\tString birthday = rs.getString(\"birthday\");\n\t\t\tString sex = rs.getString(\"sex\");\n\t\t\tString address = rs.getString(\"address\");\n\t\t\tString idCard = rs.getString(\"idCard\");\n\t\t\tString marriage = rs.getString(\"marriage\");\n\t\t\tString nationa = rs.getString(\"nationa\");\n\t\t\tString phone_number = rs.getString(\"phone_number\");\n\t\t\tString date = rs.getString(\"date\");\n\t\t\tString reservation_date = rs.getString(\"reservation_date\");\n\t\t\tString physical_examination = rs.getString(\"physical_examination\");\n\t\t\tString combo = rs.getString(\"combo\");\n\t\t\tString comments = rs.getString(\"comments\");\n\n\t\t\tRegistration registration = new Registration(id, group_id, name, sex, birthday,\n\t\t\t\t\t idCard, address, marriage, nationa,\n\t\t\t\t\t reservation_date, phone_number, date,\n\t\t\t\t\t physical_examination, combo, comments);\n\t\t\tlist.add(registration);\n\t\t}\n\t\treturn list;\n\t}", "public ArrayList<Integer> getGroupMembersIds(int idGroupe) throws RemoteException {\r\n\t\t\t\r\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\r\n\t\t\t\r\n\t\t String requete = \"SELECT ga_idEtudiant FROM GroupeAssoc WHERE ga_idGroupe =\" + idGroupe;\r\n\t\t \r\n\t\t System.out.println(\"requete : \" + requete);\r\n\t\t \r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \t\r\n\t\t \tlist.add(Integer.parseInt((data.getColumnValue(\"ga_idEtudiant\"))));\r\n\t\t }\r\n\t\t \r\n\t\t return list;\r\n\t\t}", "List<CustomerOrderBroadbandASID> selectCustomerOrderBroadbandASID(CustomerOrderBroadbandASID cobasid);", "public LibroVO VerLibro(int id) {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tLibroDAO OwlDAO = new LibroDAO();\n\t\t\tLibroVO resultado = new LibroVO();\n\t\t\tresultado = OwlDAO.obtenerlibro(id, mysql);\n\t\t\tif (resultado.getId() == -1) {\n\t\t\t\tmysql.disconnect();\n\t\t\t\treturn null;\n\n\t\t\t} else {\n\t\t\t\tmysql.disconnect();\n\t\t\t\treturn resultado;\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t\treturn null;\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}", "public ArrayList<Info_laboral> findAll(){\n ConexionBD con = new ConexionBD();\n Connection c = con.conOracle();\n\n ArrayList<Info_laboral> eeg = new ArrayList();\n\n try{\n ResultSet gs = con.ejecutaCon(\" Select * from Info_laboral\"); \n while(gs.next()){\n \n Estudios_Egresado ee=new Estudios_Egresado();\n Info_laboral i =new Info_laboral();\n Egresado eg = new Egresado();\n Estudios es = new Estudios();\n \n i.setId(gs.getInt(1));\n i.setJefe(gs.getString(2));\n i.setCargo(gs.getString(3));\n i.setFuncion(gs.getString(4));\n i.setFecha_ini(gs.getDate(5));\n i.setFecha_fin(gs.getDate(6));\n i.setMotivo_retiro(gs.getString(7));\n eg.setId(gs.getLong(8));\n i.setId_egresado(eg);\n i.setPerfil(gs.getString(9));\n \n eeg.add(i);\n }\n }catch(SQLException e){\n System.out.println(\"error \"+e);\n return null;\n }\n return eeg;\n }", "private ArrayList<String> getNuclideLibraryListFromLscMdb() {\n\t\tArrayList<String> alNuclideLibraryList = new ArrayList<String>();\n\t\ttry {\n\t\t\tString query = \"select Nuclide\"\n\t\t\t\t\t+ \" from NuclideLibraryNuclides where LibraryFile = ?;\";\n\t\t\tPreparedStatement ps = lscConnection.getInstance().getConnection()\n\t\t\t\t\t.prepareStatement(query);\n\t\t\tps.setString(1, nuclidesLibrary);\n\t\t\tps.execute();\n\t\t\tResultSet rs = ps.getResultSet();\n\t\t\tString nuclide;\n\t\t\twhile (rs.next()) {\n\t\t\t\tnuclide = rs.getString(\"Nuclide\");\n\t\t\t\talNuclideLibraryList.add(nuclide);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tSystem.out.println(\"getNuclideLibraryList error\");\n\t\t}\n\t\treturn alNuclideLibraryList;\n\t}", "public String getDenumireCombustibil(String id){\n c = db.rawQuery(\"select denumire from combustibil where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }", "public List<DaftarhunianDtl> getDaftarhunianDtl(int no) {\n //return daftarhunianDtls.stream().filter(t -> t.getId().equals(id)).findFirst().get();\n String s = String.valueOf(no);\n// String[] as = {s};\n// return daftarhunianDtlRepository.findOne(s); //ambil banyak row: bukan satu row.\n List<DaftarhunianDtl> daftarhunianDtls = new ArrayList<>();\n// daftarhunianDtlRepository.findByNoTrx(as).forEach(daftarhunianDtls::add);\n daftarhunianDtlRepository.findByNoTrx(s).forEach(daftarhunianDtls::add); \n //\n //Query query = createNamedQuery(\"DaftarhunianDtl.findByNoTrx\");\n //\n \n return daftarhunianDtls;\n }", "public Local_Prova getByIdLocal_Prova(Integer id);", "List<Videogioco> retriveByGenere(String genere);", "public List<Ve> getAllVe(long idKhachHang);", "public List<Multa> getLista(String id) throws SQLException {\n // Prepara conexão p/ receber o comando SQL\n String sql = \"SELECT * FROM multa WHERE id_multa like ?\";\n PreparedStatement stmt = this.conexao.prepareStatement(sql);\n stmt.setString(1, id);\n\n // Recebe o resultado da consulta SQL\n ResultSet rs = stmt.executeQuery();\n\n List<Multa> lista = new ArrayList<>();\n\n // Enquanto existir registros, pega os valores do ReultSet e vai adicionando na lista\n while (rs.next()) {\n // A cada loop, é instanciado um novo objeto, p/ servir de ponte no envio de registros p/ a lista\n Multa m = new Multa();\n\n // \"c\" -> Registro novo - .setNome recebe o campo do banco de String \"nome\" \n m.setId_multa(Integer.valueOf(rs.getString(\"id_multa\")));\n m.setId_cliente(Integer.valueOf(rs.getString(\"id_cliente\")));\n m.setDescricao(rs.getString(\"descricao\"));\n m.setValor(Float.valueOf(rs.getString(\"valor\")));\n\n // Adiciona o registro na lista\n lista.add(m);\n }\n\n // Fecha a conexão com o BD\n rs.close();\n stmt.close();\n\n // Retorna a lista de registros, gerados pela consulta\n return lista;\n }" ]
[ "0.61095184", "0.59021235", "0.58953816", "0.58236605", "0.5779459", "0.5778944", "0.57786393", "0.5766475", "0.57361656", "0.573091", "0.57068145", "0.57014954", "0.5694239", "0.56928134", "0.5688169", "0.565708", "0.56545043", "0.56514496", "0.5633581", "0.5630816", "0.5617877", "0.5599202", "0.5597106", "0.5592975", "0.55890816", "0.557527", "0.5561637", "0.5555261", "0.5550581", "0.5547647", "0.55430466", "0.55353504", "0.5515809", "0.5501408", "0.5491227", "0.5485093", "0.54729116", "0.54674727", "0.5460348", "0.5459322", "0.5451215", "0.54494405", "0.5449273", "0.5449273", "0.5449273", "0.5449273", "0.54459405", "0.54448444", "0.54428893", "0.54386747", "0.5436096", "0.5436096", "0.5433471", "0.5430559", "0.5429855", "0.54278237", "0.5425731", "0.5424258", "0.5415949", "0.54147357", "0.5413206", "0.53955746", "0.5390429", "0.53875273", "0.53810513", "0.53777754", "0.53692955", "0.536905", "0.5368258", "0.5365552", "0.5362655", "0.536261", "0.5360553", "0.5360274", "0.53499514", "0.534558", "0.53386503", "0.5328928", "0.53240365", "0.53234166", "0.5323013", "0.5319636", "0.53189117", "0.5318676", "0.53186363", "0.5316188", "0.5301444", "0.5299243", "0.5294775", "0.5291446", "0.5290654", "0.5279508", "0.5278844", "0.5275707", "0.5274479", "0.52734315", "0.52699685", "0.5267332", "0.5266124", "0.5263718" ]
0.75408316
0
Assign sheet number where Germplasm list is containted
public void setSheetNumberForGermplasm(Integer sheetNumber);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSheetNumber(int number){\n this.sheetNumber = number;\n }", "public int getSheetNumber(){\n return sheetNumber;\n }", "public void setSheetId(long value) {\r\n this.sheetId = value;\r\n }", "public int getSheetIndex() {\r\n return sheetIndex;\r\n }", "public void setSheetNameForGermplasm(String sheetName);", "public void setSheetName(int arg0, String arg1) {\n\n\t}", "public long getSheetId() {\r\n return sheetId;\r\n }", "public void setSheetOrder(String arg0, int arg1) {\n\n\t}", "public int getSheetIndex(String arg0) {\n\t\treturn 0;\n\t}", "public int getSheetIndex(Sheet arg0) {\n\t\treturn 0;\n\t}", "public void setSheetName(String name){\n this.sheetName = name;\n }", "public int getActiveSheetIndex() {\n\t\treturn 0;\n\t}", "public String getSheetName(){\n return sheetName;\n }", "public int getNumberOfSheets() {\n\t\treturn 0;\n\t}", "public void setSheetIndex(int sheetIndex) {\r\n this.sheetIndex = sheetIndex;\r\n }", "ISheet getSheet(int index);", "public final String getName() {\n/* 231 */ return \"sheet-collate\";\n/* */ }", "public void setBalanceSheet(String balanceSheet) {\n\n this.balanceSheet = balanceSheet;\n }", "public String getSheetName(int arg0) {\n\t\treturn null;\n\t}", "int getSheetCount();", "public void setActiveSheet(int arg0) {\n\n\t}", "public int getSheetOrder() {\n return sheetOrder;\n }", "public Sheet getSheetAt(int arg0) {\n\t\treturn null;\n\t}", "ISheet addSheet();", "public String getSheetName() {\n return sheetName;\n }", "public String getUs1120sheet() {\n\n return this.us1120sheet;\n }", "public void setUs1120sheet(String us1120sheet) {\n\n this.us1120sheet = us1120sheet;\n }", "public StrColumn getSheetId() {\n return delegate.getColumn(\"sheet_id\", DelegatingStrColumn::new);\n }", "private boolean initSpreadsheet()\n {\n boolean bOk = true;\n XSpreadsheets aSheets = maSpreadsheetDoc.getSheets();\n try\n {\n XIndexAccess aSheetsIA = (XIndexAccess) UnoRuntime.queryInterface( XIndexAccess.class, aSheets );\n maSheet = (XSpreadsheet) UnoRuntime.queryInterface(XSpreadsheet.class, aSheetsIA.getByIndex( 0 ));\n\n // enter some values in B3:B11\n for( int iCounter=1; iCounter < 10; iCounter++ )\n {\n XCell aCell = maSheet.getCellByPosition( 1, 1 + iCounter );\n aCell.setValue( (double) iCounter );\n }\n }\n catch( Exception ex )\n {\n System.err.println( \"Couldn't initialize Spreadsheet Document: \" + ex );\n ex.printStackTrace();\n bOk = false;\n }\n return bOk;\n }", "public void setSheetSelected(int posSheet) {\n try {\n workbook.setActiveSheet(posSheet);\n } catch (IllegalArgumentException ex) {\n workbook.setActiveSheet(0);\n }\n }", "public void setSheetOrder(int sheetOrder) {\n this.sheetOrder = sheetOrder;\n }", "public static SheetDef getSheetDef(long sheetDefNum) throws Exception {\n //No need to check RemotingRole; no call to db.\n SheetDef sheetdef = null;\n for (int i = 0;i < SheetDefC.getListt().Count;i++)\n {\n if (SheetDefC.getListt()[i].SheetDefNum == sheetDefNum)\n {\n sheetdef = SheetDefC.getListt()[i].Copy();\n break;\n }\n \n }\n //if sheetdef is null, it will crash, just as it should.\n getFieldsAndParameters(sheetdef);\n return sheetdef;\n }", "public void setWHStationNumberGroup(int num)\n\t{\n\t\tsetGroup(_Prefix + HardZone.WHSTATIONNUMBER.toString(), num);\n\t}", "ISheet getSheet(String name);", "public void createDropDownListValidateFromSpreadSheet(String range, int firstRow, int lastRow, int firstCol, int lastCol, Sheet shet) {\n Name namedRange = workbook.createName();\n Random rd = new Random();\n String refName = (\"List\" + rd.nextInt()).toString().replace(\"-\", \"\");\n namedRange.setNameName(refName);\n// namedRange.setRefersToFormula(\"'Sheet1'!$A$1:$A$3\");\n namedRange.setRefersToFormula(range);\n DVConstraint dvConstraint = DVConstraint.createFormulaListConstraint(refName);\n CellRangeAddressList addressList = new CellRangeAddressList(\n firstRow, lastRow, firstCol, lastCol);\n HSSFDataValidation dataValidation = new HSSFDataValidation(addressList, dvConstraint);\n dataValidation.setSuppressDropDownArrow(false);\n HSSFSheet sh = (HSSFSheet) shet;\n sh.addValidationData(dataValidation);\n }", "public String getUs1120sheetName() {\n\n return this.us1120sheetName;\n }", "public void removeSheetAt(int arg0) {\n\n\t}", "private void setComponentsOfIndex() {\n\t\tint t = this.numbersIdex + 1;\n\t\tif (t == NUMBEROFEACHCARD) {\n\t\t\tthis.numbersIdex = 0;\n\t\t\tsetColorIndex();\n\t\t} else {\n\t\t\tthis.numbersIdex = t;\n\t\t}\n\t}", "private void onOK() {\n rowNumber = (Integer) spinner1.getValue();\n sheetName = sheetsName[comboBox1.getSelectedIndex()];\n dispose();\n }", "@Autowired(required=false)\n public void setSheetsByName(Map<String,Sheet> map) {\n this.sheetsByName = map;\n }", "public Sheet cloneSheet(int arg0) {\n\t\treturn null;\n\t}", "public void setCellNum(Integer cellNum) {\n this.cellNum = cellNum;\n }", "private static void setSource(Spreadsheet ss) {\r\n \t\tss.setAttribute(KEY_SRC_SHEET, ss.getSelectedSheet());\r\n \t\tss.setAttribute(KEY_SRC_RANGE, ss.getSelection());\r\n \t\t\r\n \t\tRect sel = ss.getSelection();\r\n \t\tif (sel.getBottom() >= ss.getMaxrows())\r\n \t\t\tsel.setBottom(ss.getMaxrows() - 1);\r\n \t\tif (sel.getRight() >= ss.getMaxcolumns())\r\n \t\t\tsel.setRight(ss.getMaxcolumns() - 1);\r\n \t\tss.setHighlight(sel);\r\n \t\tss.smartUpdate(\"copysrc\", true);\r\n \t}", "public void addNewIDtoCells() {\n\t\t//Get iterator to all the rows in current sheet\n\t\tIterator<Row> rowIteratorA = cells.iterator();\n\t\t\n\t\trowIteratorA.next();//Ignore the column names. We actually know it.\n\t\tRow row = null;\n\t\tint previousValue = -1;\n\t\tdouble key = -1;\n\t\t//For each row we will read the info. 12\n\t\twhile(rowIteratorA.hasNext()){\n\t\t\trow = rowIteratorA.next();\n\t\t\tdouble currentValue = Math.round(row.getCell(CELLQUERY).getNumericCellValue()*100)/100;\n\t\t\t//System.out.println(i++);\n\t\t\tif(currentValue!=previousValue){\n\t\t\t\tif(table.containsKey(currentValue))\n\t\t\t\t\tkey=table.get(currentValue);\n\t\t\t\telse\n\t\t\t\t\tkey=-1;\n\t\t\t}\n\t\t\trow.createCell(CELLKEY);\n\t\t\trow.getCell(CELLKEY).setCellValue(key);\n\t\t\tif(key==-1){\n\t\t\t\tSystem.err.println(\"Error: Value \"+currentValue+\" was not found in the matching table\");\n\t\t\t}\n\t\t}\n\t\tFileOutputStream dataFileOut;\n\t\ttry {\n\t\t\tdataFileOut = new FileOutputStream(\n\t\t\t\t\tcellsFile.getAbsolutePath().replace(\".xlsx\", \"out.xlsx\"));\n\t\t\t//System.out.println(dataFileOut+\" \"+cellsWorkbook);\n\t\t\t\n\t\t\tcellsWorkbook.write(dataFileOut);\n\t\t\tdataFileOut.flush();\n\t\t\tdataFileOut.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void setSBLNO(int value) {\n this.sblno = value;\n }", "private void addNumber(WritableSheet sheet, int column, int row, Double amt)\n\t\t\t\tthrows WriteException, RowsExceededException {\n\t\t\tNumber headingNumberFormat;\n\t\t\theadingNumberFormat = new Number(column, row, amt, numberFormat);\n\t\t\tsheet.addCell(headingNumberFormat);\n\t\t}", "void assignRange() {\n rangeIndex = (int) Math.floor(value / step);\n }", "public void initParamIndexes(Sheet sheet) {\r\n paramIndexes = new HashMap<String, Integer>();\r\n for (int rowNum = 0; rowNum <= sheet.getLastRowNum(); rowNum++) {\r\n Row row = sheet.getRow(rowNum);\r\n if (row == null) {\r\n continue;\r\n }\r\n List<String> headers = new ArrayList<String>();\r\n for (int cellNum = 0; cellNum <= 7; cellNum++) {\r\n headers.add(getCellValue(row.getCell(cellNum)));\r\n }\r\n\r\n int match = 0;\r\n for (String head : headers) {\r\n if (\"Small\".equals(head) || \"Mainstream\".equals(head) || \"Large\".equals(head)\r\n || \"Startup Priority\".equals(head) || \"Operating System\".equals(head) || \"Services\".equals(head)\r\n || \"vCPU\".equals(head) || \"vRAM\".equals(head)) {\r\n match++;\r\n }\r\n }\r\n // Decide column headers\r\n if (match > 5) {\r\n columnHeaders = rowNum;\r\n\r\n // get required parameter indexes\r\n for (int cellNum = 0; cellNum < row.getLastCellNum(); cellNum++) {\r\n String cellValue = getCellValue(row.getCell(cellNum));\r\n if (cellValue != null) {\r\n cellValue = cellValue.trim();\r\n if (ReadFile.parametersToCompare.containsKey(cellValue)\r\n && !paramIndexes.containsKey(cellValue)) {\r\n paramIndexes.put(cellValue, cellNum);\r\n } else if (cellValue.contains(\"DB Flashback\")) {\r\n paramIndexes.put(\"DB Flashback\", cellNum);\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n }\r\n\r\n }", "void createWorkSheet() {\n wb = new HSSFWorkbook();\n for (int SheetNumber = 0; SheetNumber < keywords.length - 1; SheetNumber++) {\n sheet[SheetNumber] = wb.createSheet(keywords[SheetNumber]);\n // Create row at index zero ( Top Row)\n HSSFRow row = sheet[SheetNumber].createRow((short) 0);\n String[] headers = {\"Title\", \"Category\", \"Developer\", \"Description\", \"Release Date\", \"currentVersionReleaseDate\", \"Version\", \"Website\", \"Rating Counts\", \"Average User Rating\", \"Average User Rating For Current Version\", \"Market URL\", \"Size\"};\n for (int i = 0; i <= 12; i++) {\n\n HSSFCell cell = row.createCell((short) i);\n cell.setCellType(HSSFCell.CELL_TYPE_STRING);\n cell.setCellValue(headers[i]);\n excelFileCreated = false;\n }\n }\n }", "void setLocationCells(ArrayList<String> loc){\r\n locationCells = loc;\r\n }", "public void current_num() {\n\t\tcourse_current_num=Integer.toString(list.size());\n\t\t}", "public void set_AllSpreadIndexToZero(){\r\n\tGRASS=0; \r\n\tTIMBER=0;\r\n}", "static void drawCellID() { // draws a cross at each cell centre\n\t\tfloat xc,yc;\n\t\t//GeneralPath path = new GeneralPath();\n\t\tif (currentStage[currentSlice-1]>1)\n\t\t{\n\t\t\tfor (int i=0;i<pop.N;i++)\n\t\t\t{\n\t\t\t\txc = (float) ( (Balloon)(pop.BallList.get(i)) ).x0;\n\t\t\t\tyc = (float) ( (Balloon)(pop.BallList.get(i)) ).y0;\n\t\t\t\tfloat arm = 5;\n\n\t\t\t\t// Label Cell number\n\t\t\t\tTextRoi TROI = new TextRoi((int)xc, (int)yc, (\"\"+i),new Font(\"SansSerif\", Font.BOLD, 12));\n\t\t\t\tTROI.setNonScalable(false);\n\t\t\t\tOL.add(TROI);\n\t\t\t}\n\t\t}\n\t}", "public void createMarksheet() {\n }", "public void setRowNumber(int number){\r\n\t\trowNumber = number;\r\n\t}", "public void setRowNumber(int number){\r\n\t\trowNumber = number;\r\n\t}", "public void setSheetName(String sheetName) {\n this.sheetName = sheetName;\n }", "@Override\r\n\tpublic String getGridText()\r\n\t{\r\n\t\t// TODO Auto-generated method stub\\\r\n\t\tString sheet = \"\";\r\n\t\tfor(int i = 0; i <= 20; i++) { //20 rows\r\n\t\t\tfor(char j = 'A'; j <= 'L';j++) { //A through L\r\n\t\t\t\tif(i == 0) { //Creates row headers\r\n\t\t\t\t\tif(j == 'A') { // Creates letter headers\r\n\t\t\t\t\t\tsheet += \" |\"; //pads for headers\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tsheet += String.format(\"%-10c|\",j);\r\n\t\t\t\t} else{\r\n\t\t\t\t\tif(j == 'A') {\r\n\t\t\t\t\t\tsheet += String.format(\"%-3d|\", i);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsheet += cells[i-1][j-'A'].abbreviatedCellText() + \"|\"; \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//enters new row\r\n\t\t\tsheet += \"\\n\";\r\n\t\t}\r\n\t\t//prints sheet\r\n\t\treturn sheet;\r\n\t}", "private void setSheet(String sheet, double width, double height) {\n setImage(new Image(getClass().getResource(sheet).toExternalForm()), width, height);\n }", "private ExporterIndicatorFTS_XLSX buildSheets(final List<DataSerie> dss) {\n\t\tExporterIndicatorFTS_XLSX previous = null;\n\t\tfor (final DataSerie ds : dss) {\n\t\t\tExporterIndicatorFTS_XLSX aSheet = null;\n\t\t\tif (previous == null) {\n\t\t\t\taSheet = new ExporterIndicatorFTS_XLSX(this, ds.getIndicatorCode(), ds.getIndicatorCode());\n\t\t\t} else {\n\t\t\t\taSheet = new ExporterIndicatorFTS_XLSX(previous, ds.getIndicatorCode(), ds.getIndicatorCode());\n\t\t\t}\n\t\t\tprevious = aSheet;\n\t\t}\n\t\treturn previous;\n\t}", "private void setStrandNum(int token) { this.strand = Strand.forValue(token); }", "private void loadSheet() {\n\t\ttry {\n\t\t\tBufferedImage image = ImageIO.read(SpriteSheet.class\n\t\t\t\t\t.getResource(path));\n\t\t\tint w = image.getWidth();\n\t\t\tint h = image.getHeight();\n\t\t\timage.getRGB(0, 0, w, h, sheetPixles, 0, w);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void compareLasAndScsbSheets(XSSFWorkbook xssfWorkbook,CellStyle cellStyle) {\n logger.info(\"started comparing las and scsb sheets\");\n XSSFSheet sheet1 = xssfWorkbook.getSheetAt(0);\n XSSFSheet sheet2 = xssfWorkbook.getSheetAt(1);\n XSSFSheet sheet3 = xssfWorkbook.createSheet(ReCAPConstants.DAILY_RR_COMPARISON);\n xssfWorkbook.setSheetOrder(ReCAPConstants.DAILY_RR_COMPARISON,2);\n createHeaderForCompareSheet(sheet3);\n compareTwoSheets(sheet1, sheet2, sheet3,xssfWorkbook,cellStyle);\n logger.info(\"completed comparing las and scsb sheets\");\n }", "public void renumberCells() {\r\n int num = 1;\r\n for (Cell cell : cells) {\r\n cell.updateCellNum(num);\r\n num++;\r\n }\r\n }", "private static String[][] sudokuByIDSheetInit(String[][] sudokuByID_table) {\n\t//======================================================================================================================//\n\t//======================================================================================================================//\n\t//======================================================================================================================//\n\t\t\n\t\t\t\t\t\t\t\t\t/*----------------- sudokuByID SHEET ------------------------*/\n\t\t\t\n\t//======================================================================================================================//\n\t//======================================================================================================================//\n\t//======================================================================================================================//\n\t//======================================================================================================================//\n\t\t\n\t\t\n\t\treturn sudokuByID_table;\n\t\t\n}", "void setListingPosition(int module, int line)\n {\n\t\tpropertyPut(LIST_MODULE, module);\n\t\tpropertyPut(LIST_LINE, line);\n\n // if we are running under emacs then dump out our new location\n if (m_fullnameOption)\n {\n SourceFile f = m_fileInfo.getFile(module);\n if (f != null)\n {\n StringBuilder sb = new StringBuilder();\n appendFullnamePosition(sb, f, line);\n sb.append('\\n'); // not sure why this is needed but it seems to address some emacs bugs\n out(sb.toString());\n }\n }\n\t}", "public static void SampleProgram() throws SmartsheetException{\n Token token = new Token();\n token.setAccessToken(\"INSERT_YOUR_TOKEN_HERE\");\n\n // Use the Smartsheet Builder to create a Smartsheet\n Smartsheet smartsheet = new SmartsheetBuilder().setAccessToken(token.getAccessToken()).build();\n\n // Get home with Source Inclusion parameter\n Home home = smartsheet.homeResources().getHome(EnumSet.of(SourceInclusion.SOURCE));\n\n // List home folders\n List<Folder> homeFolders = home.getFolders();\n for(Folder folder : homeFolders){\n System.out.println(\"folder:\"+folder.getName());\n }\n\n //List Sheets with Source Inclusion parameters and null Pagination parameters\n PagedResult<Sheet> homeSheets = smartsheet.sheetResources().listSheets(EnumSet.of(SourceInclusion.SOURCE), null);\n for(Sheet sheet : homeSheets.getData()){\n System.out.println(\"sheet: \" + sheet.getName());\n }\n\n // Create folder in home\n Folder folder = new Folder.CreateFolderBuilder().setName(\"New Folder\").build();\n folder = smartsheet.homeResources().folderResources().createFolder(folder);\n System.out.println(\"Folder ID: \" + folder.getId() + \", Folder Name: \" + folder.getName());\n\n // Setup checkbox Column Object\n Column checkboxColumn = new Column.AddColumnToSheetBuilder()\n .setType(ColumnType.CHECKBOX)\n .setTitle(\"Finished\")\n .build();\n // Setup text Column Object\n Column textColumn = new Column.AddColumnToSheetBuilder()\n .setPrimary(true)\n .setTitle(\"To Do List\")\n .setType(ColumnType.TEXT_NUMBER)\n .build();\n\n // Add the 2 Columns (flag & text) to a new Sheet Object\n Sheet sheet = new Sheet.CreateSheetBuilder()\n .setName(\"New Sheet\")\n .setColumns(Arrays.asList(checkboxColumn, textColumn))\n .build();\n\n // Send the request to create the sheet @ Smartsheet\n sheet = smartsheet.sheetResources().createSheet(sheet);\n }", "public void setNumGruppoPacchetti(int numGruppoPacchetti);", "public static String get_cell_style_id(){\r\n\t\t_cell_style_id ++;\r\n\t\treturn \"cond_ce\" + _cell_style_id;\r\n\t}", "public static void getnumberofrow() {\n\t\tString dataFilePath = \"Resources/[3DBroadCastSales]-Script_Result.xlsx\";\n\t\tFile datafile = new File(dataFilePath);\n\t\tString fullpath = datafile.getAbsolutePath();\n\t\tSheet firstSheet = null;\n\t\ttry {\n\t\t\tSystem.out.println(\"full path \" + datafile.getAbsolutePath() + \" con \" + datafile.getCanonicalPath());\n\t\t\tFileInputStream inputStream = new FileInputStream(new File(fullpath));\n\t\t\tWorkbook workbook = new XSSFWorkbook(inputStream);\n\t\t\tfirstSheet = workbook.getSheetAt(1);\n\t\t\tint noofrow = firstSheet.getLastRowNum();\n\t\t\tSystem.out.println(\"Number of rows :\" + noofrow);\n\t\t\tinputStream.close();\n\t\t\tfor (int i = 1; i < noofrow; i++) {\n\t\t\t\tSheetResultcellupdatetoskipped(i);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t}\n\n\t}", "org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGssExportedNameType insertNewGssExportedName(int i);", "private void initSpreadSheet()\n {\n if (documentFile != null && (documentFile.getName().endsWith(\".docx\") || documentFile.getName().endsWith(\".odt\")))\n {\n setIsSpreadsheet(false);\n }\n else\n {\n setIsSpreadsheet(true);\n }\n }", "public int getSsNum() {\n return ssNum;\n }", "public ArrayList<String> getData(String testcaseName) throws IOException\n{\n//fileInputStream argument\nArrayList<String> a=new ArrayList<String>();\n\nFileInputStream fis=new FileInputStream(\"D://TestCases.xlsx\");\nXSSFWorkbook workbook=new XSSFWorkbook(fis);\n\nint sheets=workbook.getNumberOfSheets();\n}", "public void registriereNummer (int nr) {\n this.nr = nr;\n }", "public Sheet createSheet() {\n\t\treturn null;\n\t}", "public interface GermplasmListReader {\n public static final String LABEL_LIST_ID = \"LIST ID\";\n public static final String LABEL_LIST_NAME = \"LIST NAME\";\n public static final String LABEL_LIST_DATE = \"LIST DATE\";\n public static final String LABEL_LIST_TYPE = \"LIST TYPE\";\n public static final String LABEL_LIST_TITLE = \"LIST TITLE\";\n\n public static final String HEADER_GID = \"GID\";\n public static final String HEADER_ENTRY_CD = \"ENTRY CD\";\n public static final String HEADER_ENTRY_CODE = \"ENTRY CODE\"; \n public static final String HEADER_DESIGNATION = \"DESIG\";\n public static final String HEADER_CROSS = \"CROSS\";\n public static final String HEADER_SOURCE = \"SOURCE\";\n public static final String HEADER_UNIQUE_ID = \"UNIQUE ID\";\n public static final String HEADER_ENTRY_ID = \"ENTRY\";\n\n // Assume that entry values starts at 7 (8)\n public static final int ROW_HEADER_INDEX = 7;\n\n public static final int COLUMN_GID = 0;\n public static final int COLUMN_ENTRY_CODE = 1;\n public static final int COLUMN_DESIGNATION = 2;\n public static final int COLUMN_CROSS = 3;\n public static final int COLUMN_SOURCE = 4;\n public static final int COLUMN_UNIQUE_ID = 5;\n public static final int COLUMN_ENTRY_ID = 6;\n \n public static final int MAX_ROW = 2000;\n\n\n /**\n * Get Germplasm info from a excel file according to Germplasm template\n * @param fileName The file name including full path FullName\n * @return GermplasmList object with all entries\n */\n public GermplasmList getGermPlasmList(String fileName) throws Exception;\n\n public boolean isValidTemplate(String fileName) throws Exception;\n\n public boolean isValidCrossScript(String fileName) throws Exception;\n\n /**\n * Get Germplasm info from database according to Germplasm list id\n * @param listid ID for germplasm list\n * @return GermplasmList object with all entries\n */\n public GermplasmList getGermPlasmListFromDB(Integer listid);\n\n /**\n * Assign sheet number where Germplasm list is containted\n *\n * @param sheetNumber\n */\n public void setSheetNumberForGermplasm(Integer sheetNumber);\n\n /**\n * Assign sheet namn where Germplasm list is containted\n *\n * @param sheetNumber\n */\n public void setSheetNameForGermplasm(String sheetName);\n \n /**\n * Assign the list of factors header to read excel template\n * @param factorHeader \n */\n public void setEntryFactors(List<Factor> entryFactors);\n \n /**\n * Is it a germplasm template\n * @param isGermplasmTemplate \n */\n public void setIsGermplasmTemplate(boolean isGermplasmTemplate);\n \n}", "public void printSheet(ArrayList<ArrayList<String>> sheetData)\n\t {\n\t\t Iterator<ArrayList<String>> rowIterator= sheetData.iterator();\n\t\t ArrayList<String> headers = rowIterator.next();\t//First row is header\n\t\t int rowCounter = 1;\n\t\t while(rowIterator.hasNext())\n\t\t {\n\t\t\t ArrayList<String> nextRow = rowIterator.next();\n\t\t\t System.out.println(\"\\n---Record \" + rowCounter + \" ---\");\n\t\t\t printHeadersAndData(headers, nextRow);\n\t\t\t rowCounter++;\n\t\t }\n\t }", "@Override\n\tpublic Sheet getSheet() {\n\t\treturn null;\n\t}", "int getCellid();", "public void setSheetVisibility(int arg0, SheetVisibility arg1) {\n\n\t}", "public NavigableMap<String,List<String>> getSheetsNamesBySurt() {\n return this.sheetNamesBySurt;\n }", "public void setPositionnum(Integer positionnum) {\n\t\tthis.positionnum = positionnum;\n\t}", "@VTID(16)\n void setLocation(\n excel.Range rhs);", "public ExcelSheet(HSSFWorkbook wb, String _sheetName) {\n\t\t// create a sheet with the provided name \n\t\t// in the provided workbook\n\t\t// limit to the 31 first characters\n\t\tif (_sheetName.length() > 31) {\n\t\t\tthis.SheetName = _sheetName.substring(0, 31);\n\t\t} else {\n\t\t\tthis.SheetName = _sheetName;\n\t\t}\n\t\tsheet = wb.createSheet(SuppressForbiddenChar(this.SheetName));\n\t\trowIndex = 0 ;\n\t\tcellStyles = new CellStyles(wb);\n\t}", "public void set_AllSpreadIndexToOne(){\r\n\t//test to see if the fuel moistures are greater than 33 percent.\r\n\t//if they are, set their index value to 1\r\n\tif ((FFM>33)){ // fine fuel greater than 33?\r\n\t\tGRASS=0; \r\n\t\tTIMBER=0;\r\n\t}else{\r\n\t\tTIMBER=1;\r\n\t}\r\n}", "private void setupSpalteID() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteID.setCellValueFactory(new PropertyValueFactory<>(\"idExtern\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteID.setCellFactory(EditCell.<ArbeitspaketTableData>forTableColumn());\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteID.setOnEditCommit(event -> {\r\n\t\t\tfinal String value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setIdExtern(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "private void setNumber(final int pos, final String number) {\n\t\tif (pos < 0 || pos >= this.objects.size()) {\n\t\t\tPreferences.this.objects.add(number);\n\t\t} else {\n\t\t\tPreferences.this.objects.set(pos, number);\n\t\t}\n\t\tPreferences.this.adapter.notifyDataSetChanged();\n\t}", "public void setStartBankGroup(int num)\n\t{\n\t\tsetGroup(_Prefix + HardZone.STARTBANK.toString(), num);\n\t}", "public static List<SheetDef> getCustomForType(SheetTypeEnum sheettype) throws Exception {\n //No need to check RemotingRole; no call to db.\n List<SheetDef> retVal = new List<SheetDef>();\n for (int i = 0;i < SheetDefC.getListt().Count;i++)\n {\n if (SheetDefC.getListt()[i].SheetType == sheettype)\n {\n retVal.Add(SheetDefC.getListt()[i].Copy());\n }\n \n }\n return retVal;\n }", "private static void setCellData(HSSFSheet sheet, List<String[]> autoList) {\n\t\tif(autoList == null || autoList.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\tint rownum = 1;\n\t\tfor (String[] autoRow : autoList) {\n\t\t\tRow excelRow = sheet.createRow(rownum++);\n\t\t\tfor (int i = 0; i < autoRow.length; i++) {\n\t\t\t\tif(autoRow[i] != null && !autoRow[i].isEmpty()) {\n\t\t\t\t\texcelRow.createCell(i).setCellValue(autoRow[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Sheet getSheet(String arg0) {\n\t\treturn null;\n\t}", "protected SheetCollate(int paramInt) {\n/* 182 */ super(paramInt);\n/* */ }", "@Override\r\n\tpublic void changeNumber(String name, String newNumber) {\n\t\tfor (Entry e : array[name.toUpperCase().charAt(0) - 'A']) {\r\n\t\t\tif (e.name == name) {\r\n\t\t\t\te.setNumber(newNumber);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Sheet getSheet()\n {\n return ( cells != null & cells.length >= 1\n & cells[0] != null & cells[0].length >= 1\n & cells[0][0] != null\n ? cells[0][0].getSheet() : null );\n }", "public void setElement(Pair<Integer, Integer> cell, int n){\n\t\tnumbers[cell.getFirst()][cell.getSecond()] = n;\n\t}", "private void initSpreadsheet() {\r\n fluSpreadsheet = Keikai.newClient(Configuration.LOCAL_KEIKAI_SERVER); //connect to keikai server\r\n //pass target element's id and get keikai script URI\r\n String scriptUri = fluSpreadsheet.getURI(spreadsheetBlock.getUuid());\r\n //load the initial script to getUpdateRunner spreadsheet at the client\r\n Script initialScript = new Script();\r\n initialScript.setSrc(scriptUri);\r\n initialScript.setDefer(true);\r\n initialScript.setAsync(true);\r\n initialScript.setPage(getPage());\r\n\r\n String fileName = \"swineFlu.xlsx\";\r\n File file = new File(WebApps.getCurrent().getRealPath(Configuration.DEMO_BOOK_PATH), fileName);\r\n final Desktop desktop = getPage().getDesktop();\r\n try {\r\n fluSpreadsheet.importAndReplace(fileName, file);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "void setNumber(int row, int col, int num){\n board[row][col].setNumber(num);\n }", "List<? extends ISheet> getSheetList();", "public Sheet() {\n gearRatio = 4;\n }" ]
[ "0.7073443", "0.6706119", "0.6385697", "0.6078202", "0.58790773", "0.5877302", "0.57841885", "0.56655097", "0.5652945", "0.5621458", "0.56052643", "0.5542779", "0.5450374", "0.54325575", "0.54051465", "0.53669107", "0.53512603", "0.53362536", "0.53142077", "0.5309092", "0.5307863", "0.52981716", "0.5253196", "0.5214274", "0.5162634", "0.51353693", "0.51032805", "0.5099164", "0.5085853", "0.50515246", "0.50463426", "0.5021664", "0.4984005", "0.4939297", "0.49390256", "0.4928076", "0.49205175", "0.49155855", "0.48921692", "0.48765254", "0.48631337", "0.4825575", "0.48169458", "0.47858936", "0.4775192", "0.477464", "0.4773386", "0.47685033", "0.47592625", "0.47582147", "0.47466356", "0.4740598", "0.47226852", "0.47221488", "0.47163048", "0.47163048", "0.47161475", "0.47158343", "0.4713748", "0.47086984", "0.4703416", "0.4679805", "0.4675937", "0.4674745", "0.4658476", "0.46442103", "0.46332806", "0.4628109", "0.46241724", "0.4621922", "0.46184176", "0.46080595", "0.4600056", "0.4599928", "0.45976013", "0.4597584", "0.45937327", "0.4592419", "0.4588629", "0.45795202", "0.45747134", "0.45721456", "0.4568715", "0.45582607", "0.45542496", "0.45532456", "0.4552569", "0.45408368", "0.4539773", "0.45378605", "0.45355478", "0.4528575", "0.45116046", "0.4504946", "0.4504862", "0.45048273", "0.45026773", "0.45007974", "0.4497461", "0.44963044" ]
0.733486
0
Assign sheet namn where Germplasm list is containted
public void setSheetNameForGermplasm(String sheetName);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSheetName(String name){\n this.sheetName = name;\n }", "public String getSheetName(){\n return sheetName;\n }", "public void setSheetName(int arg0, String arg1) {\n\n\t}", "public final String getName() {\n/* 231 */ return \"sheet-collate\";\n/* */ }", "public void setSheetNumberForGermplasm(Integer sheetNumber);", "public String getSheetName() {\n return sheetName;\n }", "public void setSheetNumber(int number){\n this.sheetNumber = number;\n }", "ISheet getSheet(String name);", "public String getSheetName(int arg0) {\n\t\treturn null;\n\t}", "ISheet addSheet();", "public int getSheetNumber(){\n return sheetNumber;\n }", "public void setSheetName(String sheetName) {\n this.sheetName = sheetName;\n }", "public NavigableMap<String,List<String>> getSheetsNamesBySurt() {\n return this.sheetNamesBySurt;\n }", "private void updateDisplayName() {\n String path;\n FileObject webRoot = ProjectWebRootQuery.getWebRoot(styleSheet);\n if(webRoot == null) {\n path = styleSheet.getNameExt();\n } else {\n path = FileUtil.getRelativePath(webRoot, styleSheet);\n }\n setDisplayName(path);\n }", "public String getUs1120sheetName() {\n\n return this.us1120sheetName;\n }", "public int getSheetIndex() {\r\n return sheetIndex;\r\n }", "public void setSheetId(long value) {\r\n this.sheetId = value;\r\n }", "ISheet getSheet(int index);", "@Autowired(required=false)\n public void setSheetsByName(Map<String,Sheet> map) {\n this.sheetsByName = map;\n }", "static String getSheetName(String mandantName,String location)\n {\n StringBuilder b = new StringBuilder(mandantName);\n String shortLoc = location.substring(0,Math.min(location.length(),\n maxSheetNameLength/2)); /* up to maxlen/2 chars for location */\n if(b.length()+1+shortLoc.length()>maxSheetNameLength)\n {\n b.replace(maxSheetNameLength-shortLoc.length(),\n maxSheetNameLength,shortLoc);\n b.setCharAt(maxSheetNameLength-1-shortLoc.length(),'_');\n if(b.length()>maxSheetNameLength) b.delete(maxSheetNameLength,b.length());\n }\n else\n {\n b.append('_').append(shortLoc);\n }\n return WorkbookUtil.createSafeSheetName(b.toString());\n }", "public void setSheetOrder(String arg0, int arg1) {\n\n\t}", "public void createDropDownListValidateFromSpreadSheet(String range, int firstRow, int lastRow, int firstCol, int lastCol, Sheet shet) {\n Name namedRange = workbook.createName();\n Random rd = new Random();\n String refName = (\"List\" + rd.nextInt()).toString().replace(\"-\", \"\");\n namedRange.setNameName(refName);\n// namedRange.setRefersToFormula(\"'Sheet1'!$A$1:$A$3\");\n namedRange.setRefersToFormula(range);\n DVConstraint dvConstraint = DVConstraint.createFormulaListConstraint(refName);\n CellRangeAddressList addressList = new CellRangeAddressList(\n firstRow, lastRow, firstCol, lastCol);\n HSSFDataValidation dataValidation = new HSSFDataValidation(addressList, dvConstraint);\n dataValidation.setSuppressDropDownArrow(false);\n HSSFSheet sh = (HSSFSheet) shet;\n sh.addValidationData(dataValidation);\n }", "private void setExcelName(String excelName) {\n this.excelName = excelName;\n }", "public void setBalanceSheet(String balanceSheet) {\n\n this.balanceSheet = balanceSheet;\n }", "public String getBalanceSheetName() {\n\n return this.balanceSheetName;\n }", "public SpreadSheet getSpreadSheet(String name){\n\t\tfor (SpreadSheet s : getBubbleSpreadsheetSet()) {\n\t\t\tif (s.getName().equals(name))\n\t\t\t\treturn s;\n\t\t}\n\t\treturn null;\n\t}", "private void initializeNamesMap (Workspace[] wss) {\n // fill name mapping with proper values\n namesMap = new HashMap(wss.length * 2);\n for (int i = 0; i < wss.length; i++) {\n // create new string for each display name to be able to search\n // using '==' operator in findProgrammaticName(String displayName) method\n namesMap.put(wss[i].getName(), new String(wss[i].getDisplayName()));;\n }\n }", "public void setSheetIndex(int sheetIndex) {\r\n this.sheetIndex = sheetIndex;\r\n }", "@Override\n protected Sheet createSheet() {\n Sheet sheet = Sheet.createDefault();\n // Create a set of properties\n Sheet.Set set = Sheet.createPropertiesSet();\n\n set.put(getNameProperty());\n set.put(getMajorProperty());\n set.put(getMinorProperty());\n set.put(getPatchProperty());\n set.put(getDescriptionProperty());\n set.put( getGitProperty());\n set.put( getBranchProperty());\n\n // Add the set of properties to the sheet\n sheet.put(set);\n\n return sheet;\n }", "@Test\n void renameSheetWithNamedRangeReferringToUnicodeSheetName() throws IOException {\n String unicodeName = \"Sheet\\u30FB201\";\n String asciiName = \"Sheet 1\";\n String rangeName = \"test_named_range\";\n try (Workbook wb1 = _testDataProvider.createWorkbook()) {\n wb1.createSheet(unicodeName);\n\n Name name1 = wb1.createName();\n name1.setNameName(rangeName);\n name1.setRefersToFormula(\"'\"+unicodeName+\"'!A1:A6\");\n\n wb1.setSheetName(0, asciiName);\n assertEquals(asciiName, name1.getSheetName());\n\n try (Workbook wb2 = _testDataProvider.writeOutAndReadBack(wb1)) {\n Name name2 = wb2.getName(rangeName);\n assertNotNull(name2);\n // Eventually this will be updated, but currently we don't update the sheet name\n assertEquals(asciiName, name2.getSheetName());\n }\n }\n }", "public void renameTabs(){\n\t\tfor(int i =0;i<nbTabs;i++){\n\t\t\tif(!tabs.getTitleAt(i).equals(\"Exemples\"))\n\t\t\t\ttabs.setTitleAt(i,(\"Génération\"+(i+1)));\n\t\t}\n\t}", "void createWorkSheet() {\n wb = new HSSFWorkbook();\n for (int SheetNumber = 0; SheetNumber < keywords.length - 1; SheetNumber++) {\n sheet[SheetNumber] = wb.createSheet(keywords[SheetNumber]);\n // Create row at index zero ( Top Row)\n HSSFRow row = sheet[SheetNumber].createRow((short) 0);\n String[] headers = {\"Title\", \"Category\", \"Developer\", \"Description\", \"Release Date\", \"currentVersionReleaseDate\", \"Version\", \"Website\", \"Rating Counts\", \"Average User Rating\", \"Average User Rating For Current Version\", \"Market URL\", \"Size\"};\n for (int i = 0; i <= 12; i++) {\n\n HSSFCell cell = row.createCell((short) i);\n cell.setCellType(HSSFCell.CELL_TYPE_STRING);\n cell.setCellValue(headers[i]);\n excelFileCreated = false;\n }\n }\n }", "public int getSheetIndex(String arg0) {\n\t\treturn 0;\n\t}", "public Sheet createSheet() {\n\t\treturn null;\n\t}", "public long getSheetId() {\r\n return sheetId;\r\n }", "public Map<String,Sheet> getSheetsByName() {\n return this.sheetsByName;\n }", "org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGssExportedNameType insertNewGssExportedName(int i);", "@Override\n\tpublic void enableStyleSheetsForSet(String name) {\n\t\tif (name == null || name.length() == 0) {\n\t\t\treturn;\n\t\t}\n\t\tIterator<LinkStyleDefiner> links = linkedStyle.iterator();\n\t\twhile (links.hasNext()) {\n\t\t\tCSSStyleSheet sheet = links.next().getSheet();\n\t\t\tString title;\n\t\t\tif (sheet != null && (title = sheet.getTitle()) != null && title.length() > 0\n\t\t\t\t\t&& title.equals(name)) {\n\t\t\t\tsheet.setDisabled(false);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic String getGridText()\r\n\t{\r\n\t\t// TODO Auto-generated method stub\\\r\n\t\tString sheet = \"\";\r\n\t\tfor(int i = 0; i <= 20; i++) { //20 rows\r\n\t\t\tfor(char j = 'A'; j <= 'L';j++) { //A through L\r\n\t\t\t\tif(i == 0) { //Creates row headers\r\n\t\t\t\t\tif(j == 'A') { // Creates letter headers\r\n\t\t\t\t\t\tsheet += \" |\"; //pads for headers\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tsheet += String.format(\"%-10c|\",j);\r\n\t\t\t\t} else{\r\n\t\t\t\t\tif(j == 'A') {\r\n\t\t\t\t\t\tsheet += String.format(\"%-3d|\", i);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsheet += cells[i-1][j-'A'].abbreviatedCellText() + \"|\"; \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//enters new row\r\n\t\t\tsheet += \"\\n\";\r\n\t\t}\r\n\t\t//prints sheet\r\n\t\treturn sheet;\r\n\t}", "public void setBalanceSheetName(String balanceSheetName) {\n\n this.balanceSheetName = balanceSheetName;\n }", "public String getUs1120sheet() {\n\n return this.us1120sheet;\n }", "List<? extends ISheet> getSheetList();", "public int getNumberOfSheets() {\n\t\treturn 0;\n\t}", "String getSlingName();", "public void loadSheet(String sheetName) {\n\t\tsheet = excelWBook.getSheet(sheetName);\n\t}", "@Override\n public String setName(int numSat, SatelliteSystem sys) {\n return super.setName(numSat, sys);\n }", "SpreadSheet() {\n /* Taene Onwane Windowz wa andazeye an*/\n super(\"My Basic SpreadSheet \"+namC+\", Spring 2011, University of Kurdistan-MOHSENmirzay\");\n setSize(1100, 700);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n /*ezafe kardane menu wa item haye an*/\n setJMenuBar(jmb);\n jmb.add(jmFile); jmb.add(jmEdit); jmb.add(jmFunction);\n jmFile.add(jmiNew); jmFile.add(jmiOpen); jmFile.add(jmiSave); jmFile.add(jmiSaveAs); jmFile.add(jmiExit);\n jmEdit.add(jmiCut); jmEdit.add(jmiCopy); jmEdit.add(jmiPaste); jmEdit.addSeparator(); jmEdit.add(jmiSelAll);\n jmFunction.add(jmiMax); jmFunction.add(jmiMin); jmFunction.add(jmiSum); jmFunction.add(jmiAve); jmFunction.add(jmiCount);\n /*ezafe kardane khate zirin baraye menu ha wa item ha*/\n jmFile.setMnemonic('F'); jmEdit.setMnemonic('E'); jmFunction.setMnemonic('u'); jmiSelAll.setMnemonic('l');\n jmiNew.setMnemonic('N'); jmiOpen.setMnemonic('O'); jmiSave.setMnemonic('S'); jmiSaveAs.setMnemonic('A'); jmiExit.setMnemonic('E');\n jmiMax.setMnemonic('M'); jmiMin.setMnemonic('i'); jmiSum.setMnemonic('S'); jmiAve.setMnemonic('A'); jmiCount.setMnemonic('C');\n /*ezafe kardane Item Popupmenu baraye klike RAST*/\n jpm.add(jpmiCut);\n jpm.add(jpmiCopy);\n jpm.add(jpmiPaste);\n /*ezafe kardane Listener be meno ha jahat fa'al sazi events*/\n jmiNew.addActionListener(new AL(1));\n jmiOpen.addActionListener(new AL(2));\n jmiSave.addActionListener(new AL(3));\n jmiSaveAs.addActionListener(new AL(4));\n jmiExit.addActionListener(new AL(5));\n jmiCut.addActionListener(new AL(6));\n jmiCopy.addActionListener(new AL(7));\n jmiPaste.addActionListener(new AL(8));\n jmiSelAll.addActionListener(new AL(14));\n jpmiCut.addActionListener(new AL(6));\n jpmiCopy.addActionListener(new AL(7));\n jpmiPaste.addActionListener(new AL(8));\n jmiMax.addActionListener(new AL(9));\n jmiMin.addActionListener(new AL(10));\n jmiSum.addActionListener(new AL(11));\n jmiAve.addActionListener(new AL(12));\n jmiCount.addActionListener(new AL(13));\n jmFile.addMouseListener(new ML());\n jmFile.addFocusListener(new FL());\n jmFile.addKeyListener(new KL());\n jmEdit.addMouseListener(new ML());\n jmEdit.addFocusListener(new FL());\n jmEdit.addKeyListener(new KL());\n jmFunction.addMouseListener(new ML());\n jmFunction.addFocusListener(new FL());\n jmFunction.addKeyListener(new KL());\n /* ezafe kardane khanehaye Excel be Panel barname*/\n for(int i=0; i<30; i++)\n for(int j=0; j<26; j++){\n jtf[i][j]=new JTextField();\n jtf[i][j].setEnabled(false);\n jtf[i][j].addMouseListener(new ML(i,j));\n jtf[i][j].addFocusListener(new FL(i,j));\n jtf[i][j].addKeyListener(new KL(i, j));\n jtf[i][j].addMouseMotionListener(new MML(i,j));\n jtf[i][j].setToolTipText(\"cell[\"+i+\"]\"+\"[\"+j+\"]\");\n jtf[i][j].setDisabledTextColor(Color.red);\n jtf[i][j].add(jpm);\n jp.add(jtf[i][j]);\n }\n /* Fa'al sazi Windowse marbut be barname*/\n addKeyListener(new KL());\n jp.addKeyListener(new KL());\n getContentPane().add(scp);\n setVisible(true);\n }", "private void onOK() {\n rowNumber = (Integer) spinner1.getValue();\n sheetName = sheetsName[comboBox1.getSelectedIndex()];\n dispose();\n }", "public void createMarksheet() {\n }", "@Override\n\tpublic Sheet getSheet() {\n\t\treturn null;\n\t}", "public void setGroupList() {\n \n String path = \".\"; //curent folder\n String files; //files name\n File folder = new File(path); // get the folfer\n File[] listOfFiles = folder.listFiles(); //list of files\n for (int i = 0; i < listOfFiles.length; i++) {//this loop go trough the folder\n if (listOfFiles[i].isFile()) {\n files = listOfFiles[i].getName();\n if (files.endsWith(\".xls\") || files.endsWith(\".XLS\")) {//filter all the xls file\n if(!files.equalsIgnoreCase(\".xls\")){\n // add a new objet CompoundBook in a our xlsBook\n xlsBook.add(new CompoundBook(files));\n //add only the name of the file without the .xls extension\n groups.add(files.substring(0, files.lastIndexOf(\".\")));\n }\n }\n }\n }\n gList.setListData(groups); // set the group List on the GUI\n }", "public ExcelSheet(HSSFWorkbook wb, String _sheetName) {\n\t\t// create a sheet with the provided name \n\t\t// in the provided workbook\n\t\t// limit to the 31 first characters\n\t\tif (_sheetName.length() > 31) {\n\t\t\tthis.SheetName = _sheetName.substring(0, 31);\n\t\t} else {\n\t\t\tthis.SheetName = _sheetName;\n\t\t}\n\t\tsheet = wb.createSheet(SuppressForbiddenChar(this.SheetName));\n\t\trowIndex = 0 ;\n\t\tcellStyles = new CellStyles(wb);\n\t}", "public static List<SheetDef> getCustomForType(SheetTypeEnum sheettype) throws Exception {\n //No need to check RemotingRole; no call to db.\n List<SheetDef> retVal = new List<SheetDef>();\n for (int i = 0;i < SheetDefC.getListt().Count;i++)\n {\n if (SheetDefC.getListt()[i].SheetType == sheettype)\n {\n retVal.Add(SheetDefC.getListt()[i].Copy());\n }\n \n }\n return retVal;\n }", "public void setUs1120sheet(String us1120sheet) {\n\n this.us1120sheet = us1120sheet;\n }", "public void actionPerformed(ActionEvent e) {\n String filename = JOptionPane.showInputDialog(null, \"Create a new group : \", \"Add a new coumpond\", 1);\n \n if (filename != null) {\n JOptionPane.showMessageDialog(null, \"You created the group : \" + filename, \"File created\", 1);\n //Create a new .xls file\n File file = new File(filename + \".xls\");\n CompoundBook.initEmptySheet(filename+\".xls\", 9);\n CompoundBook book = new CompoundBook(filename+\".xls\");\n //add the new group our xlsBook (objec) and the group list \n xlsBook.add(book); \n groups.add(filename);\n gList.setListData(groups);\n /*\n * To actually create a file specified by a\n * pathname, use boolean createNewFile() method of\n * Java File class.\n *\n * This method creates a new empty file specified if\n * the file with same name does not exists.\n *\n * This method returns true if the file with the\n * same name did not exist and it was created\n * successfully, false otherwise.\n */\n\n boolean blnCreated = false;\n try {\n blnCreated = file.createNewFile();\n } catch (IOException ioe) {\n System.out.println(\"Error while creating a new empty file :\" + ioe);\n }\n if (blnCreated) {\n JOptionPane.showMessageDialog(null, \"You created the file: \" + filename+\".xls\",\n \"Roseindia.net\", 1);\n }\n /*\n * If you run the same program 2 times, first time\n * it should return true. But when we run it second\n * time, it returns false because file was already\n * exist.\n */\n //System.out.println(\"Was file \" + file.getPath() + \" created ? : \" + blnCreated);\n\n }\n \n \n \n gAddActionPerformed(e);\n }", "public Sheet getSheet(String arg0) {\n\t\treturn null;\n\t}", "public void setActiveSheet(int arg0) {\n\n\t}", "@Override\n public void onApplicationEvent(ApplicationEvent event) {\n if(event instanceof ContextRefreshedEvent) {\n for(Sheet s: sheetsByName.values()) {\n s.prime(); // exception if Sheet can't target overridable properties\n }\n // log warning for any sheets named but not present\n HashSet<String> allSheetNames = new HashSet<String>();\n for(DecideRuledSheetAssociation assoc : ruleAssociations) {\n allSheetNames.addAll(assoc.getTargetSheetNames());\n }\n for(List<String> names : sheetNamesBySurt.values()) {\n allSheetNames.addAll(names);\n }\n for(String name : allSheetNames) {\n if(!sheetsByName.containsKey(name)) {\n logger.warning(\"sheet '\"+name+\"' referenced but absent\");\n }\n }\n }\n }", "public Sheet createSheet(String arg0) {\n\t\treturn null;\n\t}", "public int getSheetIndex(Sheet arg0) {\n\t\treturn 0;\n\t}", "public static void SampleProgram() throws SmartsheetException{\n Token token = new Token();\n token.setAccessToken(\"INSERT_YOUR_TOKEN_HERE\");\n\n // Use the Smartsheet Builder to create a Smartsheet\n Smartsheet smartsheet = new SmartsheetBuilder().setAccessToken(token.getAccessToken()).build();\n\n // Get home with Source Inclusion parameter\n Home home = smartsheet.homeResources().getHome(EnumSet.of(SourceInclusion.SOURCE));\n\n // List home folders\n List<Folder> homeFolders = home.getFolders();\n for(Folder folder : homeFolders){\n System.out.println(\"folder:\"+folder.getName());\n }\n\n //List Sheets with Source Inclusion parameters and null Pagination parameters\n PagedResult<Sheet> homeSheets = smartsheet.sheetResources().listSheets(EnumSet.of(SourceInclusion.SOURCE), null);\n for(Sheet sheet : homeSheets.getData()){\n System.out.println(\"sheet: \" + sheet.getName());\n }\n\n // Create folder in home\n Folder folder = new Folder.CreateFolderBuilder().setName(\"New Folder\").build();\n folder = smartsheet.homeResources().folderResources().createFolder(folder);\n System.out.println(\"Folder ID: \" + folder.getId() + \", Folder Name: \" + folder.getName());\n\n // Setup checkbox Column Object\n Column checkboxColumn = new Column.AddColumnToSheetBuilder()\n .setType(ColumnType.CHECKBOX)\n .setTitle(\"Finished\")\n .build();\n // Setup text Column Object\n Column textColumn = new Column.AddColumnToSheetBuilder()\n .setPrimary(true)\n .setTitle(\"To Do List\")\n .setType(ColumnType.TEXT_NUMBER)\n .build();\n\n // Add the 2 Columns (flag & text) to a new Sheet Object\n Sheet sheet = new Sheet.CreateSheetBuilder()\n .setName(\"New Sheet\")\n .setColumns(Arrays.asList(checkboxColumn, textColumn))\n .build();\n\n // Send the request to create the sheet @ Smartsheet\n sheet = smartsheet.sheetResources().createSheet(sheet);\n }", "public int getActiveSheetIndex() {\n\t\treturn 0;\n\t}", "private void initSpreadSheet()\n {\n if (documentFile != null && (documentFile.getName().endsWith(\".docx\") || documentFile.getName().endsWith(\".odt\")))\n {\n setIsSpreadsheet(false);\n }\n else\n {\n setIsSpreadsheet(true);\n }\n }", "private void setSheet(String sheet, double width, double height) {\n setImage(new Image(getClass().getResource(sheet).toExternalForm()), width, height);\n }", "int getSheetCount();", "public void setCellname(String cellname) {\r\n this.cellname = cellname;\r\n }", "private static Spreadsheet findSpreadsheet(RubyProject rubyProject, String sheetName) {\r\n \t\tfor (RubyProjectElement rubyElement : rubyProject.getRubyElementsInternal()) {\r\n \t\t\tif (rubyElement.getFileExtension().equals(\"uss\")) {\r\n \t\t\t\tif (rubyElement.getName().equals(sheetName)) {\r\n \t\t\t\t\treturn (Spreadsheet)rubyElement;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn null;\r\n \t}", "@Override\n\tpublic void setSelectedStyleSheetSet(String name) {\n\t\tif (name == null || (name.length() > 0 && !getStyleSheetSets().contains(name))) {\n\t\t\treturn;\n\t\t}\n\t\tIterator<LinkStyleDefiner> links = linkedStyle.iterator();\n\t\twhile (links.hasNext()) {\n\t\t\tString title;\n\t\t\tCSSStyleSheet sheet = links.next().getSheet();\n\t\t\tif (sheet != null && (title = sheet.getTitle()) != null && title.length() != 0) {\n\t\t\t\tif (title.equalsIgnoreCase(name)) {\n\t\t\t\t\tsheet.setDisabled(false);\n\t\t\t\t\tlastStyleSheetSet = name;\n\t\t\t\t} else {\n\t\t\t\t\tsheet.setDisabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public SpriteSheetSplitter setName(String name) {\n this.name = name;\n return this;\n }", "public void compareLasAndScsbSheets(XSSFWorkbook xssfWorkbook,CellStyle cellStyle) {\n logger.info(\"started comparing las and scsb sheets\");\n XSSFSheet sheet1 = xssfWorkbook.getSheetAt(0);\n XSSFSheet sheet2 = xssfWorkbook.getSheetAt(1);\n XSSFSheet sheet3 = xssfWorkbook.createSheet(ReCAPConstants.DAILY_RR_COMPARISON);\n xssfWorkbook.setSheetOrder(ReCAPConstants.DAILY_RR_COMPARISON,2);\n createHeaderForCompareSheet(sheet3);\n compareTwoSheets(sheet1, sheet2, sheet3,xssfWorkbook,cellStyle);\n logger.info(\"completed comparing las and scsb sheets\");\n }", "private void loadSheet() {\n\t\ttry {\n\t\t\tBufferedImage image = ImageIO.read(SpriteSheet.class\n\t\t\t\t\t.getResource(path));\n\t\t\tint w = image.getWidth();\n\t\t\tint h = image.getHeight();\n\t\t\timage.getRGB(0, 0, w, h, sheetPixles, 0, w);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void WriteFileName(MestraFile mestraFile) {\n\t\tHSSFRow row = sheet.createRow((short)rowIndex++);\n\n\t\t// Create a cell and put a value in it.\n\t\tint cellIndex = 0;\n\t\tHSSFCell cell = row.createCell(cellIndex++);\n\n\t\tHSSFRichTextString strRT = new HSSFRichTextString(mestraFile.getStrFileType());\n\t\tcell.setCellValue(strRT);\n\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\n\t\tcell = row.createCell(cellIndex++);\n\t\tString FileName = \"file:\\\\\" + mestraFile.getLongFileName();\n\t\tstrRT = new HSSFRichTextString(FileName);\n\t\tcell.setCellValue(strRT);\n\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\n\t\tif (mestraFile.isWordExtractionFailed()) {\n\t\t\tcell = row.createCell(cellIndex++);\n\t\t\tString ErrorMessage = \"Word Extraction Failed!\";\n\t\t\tstrRT = new HSSFRichTextString(ErrorMessage);\n\t\t\tcell.setCellValue(strRT);\n\t\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightRedBackGroundCellStyle));\n\t\t}\n\n\t\t//cell = row.createCell((short)cellIndex++);\n\t\t//String formulae = \"HYPERLINK(file://\"+ mestraFile.getLongFileName()+\")\";\n\t\t//cell.setCellType(HSSFCell.CELL_TYPE_FORMULA);\n\t\t//cell.setCellFormula(formulae);\n\n\t\t// if the file is a SSS we add a row listing all the CSCI impacted by the SSS Requirements\n\t\tif\t(mestraFile.IsSSS()) {\n\n\t\t\trow = sheet.createRow((short)rowIndex++);\n\t\t\tcellIndex = 0;\n\t\t\tcell = row.createCell(cellIndex++);\n\t\t\tstrRT = new HSSFRichTextString(\"Impacted CSCI List\");\n\t\t\tcell.setCellValue(strRT);\n\t\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\n\t\t\tif (mestraFile.getSSS_FileAllocationList() != null) {\n\t\t\t\t\n\t\t\t\tIterator<Map.Entry<String, CSCI_Allocation>> Iter = mestraFile.getSSS_FileAllocationList().iterator();\n\t\t\t\twhile (Iter.hasNext()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcell = row.createCell(cellIndex++);\n\t\t\t\t\t\t\n\t\t\t\t\t\tMap.Entry<String, CSCI_Allocation> entry = Iter.next();\n\t\t\t\t\t\tCSCI_Allocation aCSCI_Allocation = entry.getValue();\n\n\t\t\t\t\t\tstrRT = new HSSFRichTextString(aCSCI_Allocation.getCSCI_Name());\n\t\t\t\t\t\tcell.setCellValue(strRT);\n\t\t\t\t\t\t// check if the CSCI exists in the configuration file\n\t\t\t\t\t\tif (aCSCI_Allocation.isCSCI_NameExisting() == false) {\n\t\t\t\t\t\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightYellowBackGroundCellStyle));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch (RuntimeException e) {\n\t\t\t\t\t\tlogger.log(Level.SEVERE , e.getLocalizedMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\t\n\t\t\t}\n\n\t\t\trow = sheet.createRow((short)rowIndex++);\n\t\t\tcellIndex = 0;\n\t\t\tcell = row.createCell(cellIndex++);\n\t\t\tstrRT = new HSSFRichTextString(\"Nbr ref\");\n\t\t\tcell.setCellValue(strRT);\n\t\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\n\t\t\tif (mestraFile.getSSS_FileAllocationList() != null) {\n\t\t\t\t\n\t\t\t\tIterator<Map.Entry<String, CSCI_Allocation>> Iter = mestraFile.getSSS_FileAllocationList().iterator();\n\t\t\t\twhile (Iter.hasNext()) {\n\n\t\t\t\t\tMap.Entry<String, CSCI_Allocation> entry = Iter.next();\n\t\t\t\t\tCSCI_Allocation aCSCI_Allocation = entry.getValue();\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcell = row.createCell(cellIndex++);\n\t\t\t\t\t\tint NbrRef = aCSCI_Allocation.getNbrReferences();\n\t\t\t\t\t\tcell.setCellValue(NbrRef);\n\t\t\t\t\t\tcell.setCellStyle(cellStyles.getCellStyle(CellStylesEnum.ArialEightCellStyle));\n\t\t\t\t\t}\n\t\t\t\t\tcatch (RuntimeException e) {\n\t\t\t\t\t\tlogger.log(Level.SEVERE , e.getLocalizedMessage());\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "public void setSheetSelected(int posSheet) {\n try {\n workbook.setActiveSheet(posSheet);\n } catch (IllegalArgumentException ex) {\n workbook.setActiveSheet(0);\n }\n }", "public void printSheet(ArrayList<ArrayList<String>> sheetData)\n\t {\n\t\t Iterator<ArrayList<String>> rowIterator= sheetData.iterator();\n\t\t ArrayList<String> headers = rowIterator.next();\t//First row is header\n\t\t int rowCounter = 1;\n\t\t while(rowIterator.hasNext())\n\t\t {\n\t\t\t ArrayList<String> nextRow = rowIterator.next();\n\t\t\t System.out.println(\"\\n---Record \" + rowCounter + \" ---\");\n\t\t\t printHeadersAndData(headers, nextRow);\n\t\t\t rowCounter++;\n\t\t }\n\t }", "private void setLandscapeName(){\n \t\tLog.i(TAG, \"setLandscapeName() called\");\n \t\tnamelandtext.setText(provide.getCurItem().getName());\n \t}", "public void creatTemplate(Sheet sheet, String title) {\n\n String label1 = \"TẬP ĐOÀN VIỄN THÔNG QUÂN ĐỘI\";\n String label2 = \"TỔNG CÔNG TY VIỄN THÔNG VIETTEL\";\n String label3 = \"CỘNG HOÀ XÃ HỘI CHỦ NGHĨA VIỆT NAM\";\n String label4 = \"Độc Lập - Tự Do - Hạnh Phúc\";\n\n createCellObject(sheet, 0, 0, label1, getCsSubTitle());\n createCellObject(sheet, 0, 1, label2, getCsCenterNoboderBoldweight());\n createCellObject(sheet, 5, 0, label3, getCsSubTitle());\n createCellObject(sheet, 5, 1, label4, getCsCenterNoboderBoldweight());\n createCellObject(sheet, 1, 4, title, getCsTitle());\n\n ExcelWriterUtils.mergeCells(sheet, 0, 0, 0, 2);\n ExcelWriterUtils.mergeCells(sheet, 1, 1, 0, 2);\n ExcelWriterUtils.mergeCells(sheet, 0, 0, 5, 8);\n ExcelWriterUtils.mergeCells(sheet, 1, 1, 5, 8);\n ExcelWriterUtils.mergeCells(sheet, 4, 4, 1, 6);\n\n setRowHeight(sheet, 4, 630);\n }", "public static void setExcelFileSheet(String sheetName) throws IOException {\n\t testDataExcelPath = currentDir+\"\\\\src\\\\example\\\\trademeSellAndBuy\\\\testData\\\\\";\n\t // Open the Excel file\n FileInputStream excelFile = new FileInputStream(new File(testDataExcelPath + testDataExcelFileName));\n excelWBook = new XSSFWorkbook(excelFile);\n excelWSheet = (XSSFSheet) excelWBook.getSheet(sheetName);\n }", "void onActionFromExport() {\n\t\ttry {\n\t\t\tHSSFWorkbook document = new HSSFWorkbook();\n\t\t\tHSSFSheet sheet = ReportUtil.createSheet(document);\n\n\t\t\tsheet.setMargin((short) 0, 0.5);\n\t\t\tReportUtil.setColumnWidths(sheet, 0, 0.5, 1, 0.5, 2, 2, 3, 2, 3, 2, 4, 3, 5, 2, 6, 2, 7, 2, 8, 3, 9, 3, 10,\n\t\t\t\t\t3, 11, 2, 12, 2);\n\n\t\t\tMap<String, HSSFCellStyle> styles = ReportUtil.createStyles(document);\n\n\t\t\tint sheetNumber = 0;\n\t\t\tint rowIndex = 1;\n\t\t\tint colIndex = 1;\n\t\t\tLong index = 1L;\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2, messages.get(\"empList\"), styles.get(\"title\"), 5);\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, ++rowIndex, 1,\n\t\t\t\t\tmessages.get(\"date\") + \": \" + format.format(new Date()), styles.get(\"plain-left-wrap\"), 5);\n\t\t\trowIndex += 2;\n\n\t\t\t/* column headers */\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 1, messages.get(\"number-label\"),\n\t\t\t\t\tstyles.get(\"header-wrap\"));\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2, messages.get(\"firstname-label\"),\n\t\t\t\t\tstyles.get(\"header-wrap\"));\n\n\t\t\tif (lastname) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"lastname-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (origin1) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"persuasion-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (register) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"register-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (status) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"status-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (gender) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"gender-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (occ) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"occupation-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (birthday) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"birthDate-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (phoneNo) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"phoneNo-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (email) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"email-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (org) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"organization-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (appointment) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"appointment-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegree) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цэргийн цол\", styles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegreeStatus) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цолны статус\",\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegreeDate) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цол авсан огноо\",\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (TotalWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"TotalOrgWorkedYear-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (StateWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"stateWorkedYear-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"courtOrgTotalWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtMilitaryWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"CourtMilitaryWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtSimpleWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"CourtSimpleWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (familyCount) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"familyCount-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (childCount) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"childCount-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tReportUtil.setRowHeight(sheet, rowIndex, 3);\n\n\t\t\trowIndex++;\n\t\t\tif (listEmployee != null)\n\t\t\t\tfor (Employee empDTO : listEmployee) {\n\n\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\tlistEmployee.indexOf(empDTO) + 1 + \"\", styles.get(\"plain-left-wrap-border\"));\n\n\t\t\t\t\tif (lastname) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getLastname() != null) ? empDTO.getLastname() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++, empDTO.getFirstName(),\n\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\n\t\t\t\t\tif (origin1) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getOrigin().getName() != null) ? empDTO.getOrigin().getName() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (register) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getRegisterNo() != null) ? empDTO.getRegisterNo() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (status) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getEmployeeStatus() != null) ? empDTO.getEmployeeStatus().name() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (gender) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\tmessages.get((empDTO.getGender() != null) ? empDTO.getGender().toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (occ) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getOccupation() != null) ? empDTO.getOccupation().getName() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (birthday) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getBirthDate() != null) ? format.format(empDTO.getBirthDate()) : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (phoneNo) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getPhoneNo() != null) ? empDTO.getPhoneNo() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (email) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.geteMail() != null) ? empDTO.geteMail() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (org) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getOrganization() != null) ? empDTO.getOrganization().getName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (appointment) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getAppointment() != null) ? empDTO.getAppointment().getAppointmentName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegree) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? dao.getEmployeeMilitary(empDTO.getId()).getMilitary().getMilitaryName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegreeStatus) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? dao.getEmployeeMilitary(empDTO.getId()).getDegreeStatus().name() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegreeDate) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? format.format(dao.getEmployeeMilitary(empDTO.getId()).getOlgosonOgnoo())\n\t\t\t\t\t\t\t\t\t\t: \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (TotalWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getTotalOrgWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getTotalOrgWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\tif (StateWorkedYear) {\n\t\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t\t((getStateWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t\t? getStateWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (CourtWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtOrgTotalWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtOrgTotalWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (CourtMilitaryWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtMilitaryWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtMilitaryWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (CourtSimpleWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtSimpleWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtSimpleWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (familyCount) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex,\n\t\t\t\t\t\t\t\tcolIndex++, ((getFamilyCountExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getFamilyCountExport(empDTO.getId()) : \"0\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (childCount) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex,\n\t\t\t\t\t\t\t\tcolIndex++, ((getChildCountExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getChildCountExport(empDTO.getId()) : \"0\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tReportUtil.setRowHeight(sheet, rowIndex, 3);\n\t\t\t\t\trowIndex++;\n\t\t\t\t\tindex++;\n\t\t\t\t\tcolIndex = 1;\n\n\t\t\t\t}\n\n\t\t\trowIndex += 2;\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 1,\n\t\t\t\t\t\"ТАЙЛАН ГАРГАСАН: \" + \"..................................... / \"\n\t\t\t\t\t\t\t+ loginState.getEmployee().getLastname().charAt(0) + \".\"\n\t\t\t\t\t\t\t+ loginState.getEmployee().getFirstName() + \" /\",\n\t\t\t\t\tstyles.get(\"plain-left-wrap\"), 8);\n\t\t\trowIndex++;\n\n\t\t\tOutputStream out = response.getOutputStream(\"application/vnd.ms-excel\");\n\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"employeeList.xls\\\"\");\n\n\t\t\tdocument.write(out);\n\t\t\tout.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Sheet getSheetAt(int arg0) {\n\t\treturn null;\n\t}", "public boolean addSheet(String sheetname)\n\t{\t\t\n\t\tFileOutputStream fileOut;\n\t\ttry \n\t\t{\n\t\t\t workbook.createSheet(sheetname);\t\n\t\t\t fileOut = new FileOutputStream(path);\n\t\t\t workbook.write(fileOut);\n\t\t fileOut.close();\t\t \n\t\t} \n\t\tcatch (Exception e) \n\t\t{\t\t\t\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private void createLabel(WritableSheet sheet)\n throws WriteException {\n WritableFont times10pt = new WritableFont(WritableFont.TIMES, 10);\n // Define the cell format\n times = new WritableCellFormat(times10pt);\n // Lets automatically wrap the cells\n times.setWrap(true);\n\n // create create a bold font with unterlines\n WritableFont times10ptBoldUnderline = new WritableFont(\n WritableFont.TIMES, 10, WritableFont.BOLD, true,\n UnderlineStyle.SINGLE);\n timesBoldUnderline = new WritableCellFormat(times10ptBoldUnderline);\n // Lets automatically wrap the cells\n timesBoldUnderline.setWrap(true);\n\n CellView cv = new CellView();\n cv.setFormat(times);\n cv.setFormat(timesBoldUnderline);\n cv.setAutosize(true);\n\n// addCaption(sheet, 3, 0, mExcelObject.getHourActivity()); // ชั่วโมง\n\n // Write a few headers\n// addCaption(sheet, 0, 0, \"ชื่อกิจกรรม \"+mExcelObject.getActivityName()); // ชื่อกิจกรรม\n// addCaption(sheet, 1, 0, \"วันที่จัด \"+mExcelObject.getTimeStart()); // วันที่จัด\n// addCaption(sheet, 2, 0, \"สถานที่่่ \"+mExcelObject.getLocationName()); // สถานที่\n\n\n\n\n\n addCaption(sheet, 0, 1, \"ลำดับ\");\n addCaption(sheet, 1, 1, \"ชื่อผู้ปกครอง\");\n addCaption(sheet, 2, 1, \"ชื่อเด็กนักเรียน\");\n //addCaption(sheet, 3, 1, \"ระดับชั้น\");\n // addCaption(sheet, 4, 1, \"เวลามารับ\");\n\n\n\n\n\n }", "private static void addHeading(Sheet sheet) throws IOException {\r\n sheet.ensureRowCount(4);\r\n sheet.ensureColumnCount(10);\r\n sheet.getCellAt(\"A1\").setValue(\"income\");\r\n sheet.getCellAt(\"A2\").setValue(\"expense\");\r\n sheet.getCellAt(\"A3\").setValue(\"sum\");\r\n sheet.getCellAt(\"B1\").setValue(0.0);\r\n sheet.getCellAt(\"B2\").setValue(0.0);\r\n sheet.getCellAt(\"B3\").setValue(0.0);\r\n sheet.getCellAt(\"A4\").setValue(\"id\");\r\n sheet.getCellAt(\"B4\").setValue(\"amount\");\r\n sheet.getCellAt(\"C4\").setValue(\"date\");\r\n sheet.getCellAt(\"D4\").setValue(\"info\");\r\n }", "private static void setSource(Spreadsheet ss) {\r\n \t\tss.setAttribute(KEY_SRC_SHEET, ss.getSelectedSheet());\r\n \t\tss.setAttribute(KEY_SRC_RANGE, ss.getSelection());\r\n \t\t\r\n \t\tRect sel = ss.getSelection();\r\n \t\tif (sel.getBottom() >= ss.getMaxrows())\r\n \t\t\tsel.setBottom(ss.getMaxrows() - 1);\r\n \t\tif (sel.getRight() >= ss.getMaxcolumns())\r\n \t\t\tsel.setRight(ss.getMaxcolumns() - 1);\r\n \t\tss.setHighlight(sel);\r\n \t\tss.smartUpdate(\"copysrc\", true);\r\n \t}", "void setLocationCells(ArrayList<String> loc){\r\n locationCells = loc;\r\n }", "org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGssExportedNameType addNewGssExportedName();", "public String getStyleSheetName()\n {\n return _styleSheetName;\n }", "public void printAllSpreadSheets() {\n\t\tif(getBubbleSpreadsheetSet().isEmpty())\n\t\t\tSystem.out.println(\"0 Spreadsheets in Bubbledocs\");\n\t\tfor (SpreadSheet f : getBubbleSpreadsheetSet()) {\n\t\t\tSystem.out.println(f);\n\t\t}\n\t}", "public static SheetDef getSheetDef(long sheetDefNum) throws Exception {\n //No need to check RemotingRole; no call to db.\n SheetDef sheetdef = null;\n for (int i = 0;i < SheetDefC.getListt().Count;i++)\n {\n if (SheetDefC.getListt()[i].SheetDefNum == sheetDefNum)\n {\n sheetdef = SheetDefC.getListt()[i].Copy();\n break;\n }\n \n }\n //if sheetdef is null, it will crash, just as it should.\n getFieldsAndParameters(sheetdef);\n return sheetdef;\n }", "public ArrayList<String> getData(String testcaseName) throws IOException\n{\n//fileInputStream argument\nArrayList<String> a=new ArrayList<String>();\n\nFileInputStream fis=new FileInputStream(\"D://TestCases.xlsx\");\nXSSFWorkbook workbook=new XSSFWorkbook(fis);\n\nint sheets=workbook.getNumberOfSheets();\n}", "public void setUs1120sheetName(String us1120sheetName) {\n\n this.us1120sheetName = us1120sheetName;\n }", "void xsetName(org.openxmlformats.schemas.drawingml.x2006.main.STGeomGuideName name);", "public boolean defIsSheetExist(String sSheetName){\n\t\tint iIndex=workbook.getSheetIndex(sSheetName.toUpperCase());\n\t\t\n\t\t//checking whether sheet is exits\n\t\t\tif(iIndex==-1){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse{\n\t\t\treturn true;\n\t\t\t}\n\t}", "public void rename(String title) {\n setTitle(title);\n xlList.setChanged();\n }", "private void createYourListsTitle() {\n\t\tjlYourLists = new JLabel(\"PLAYLISTS\");\t\t\n\t\tjlYourLists.setFont(new java.awt.Font(\"Century Gothic\",0, 17));\n\t\tjlYourLists.setForeground(new Color(250,250,250));\n\t}", "public void setSheetVisibility(int arg0, SheetVisibility arg1) {\n\n\t}", "public Sheet getOrCreateSheet(String name) {\n Sheet sheet = sheetsByName.get(name); \n if(sheet==null) {\n sheet = new Sheet(); \n sheet.setBeanFactory(beanFactory);\n sheet.setName(name); \n sheet.setMap(new HashMap<String, Object>());\n sheetsByName.put(name, sheet);\n }\n return sheet;\n }", "public String getCellname() {\r\n return cellname;\r\n }", "public void setName(String n) {\r\n this.weekName = n;\r\n }", "private void initialize() {\r\n\t\tjLabel = new JLabel();\r\n\t\tsuper.setName(aplicacion.getI18nString(\"SelectSheetLayerPrintPanel.Name\"));\r\n\t\tjava.awt.GridBagConstraints gridBagConstraints1 = new GridBagConstraints();\r\n\t\tjava.awt.GridBagConstraints gridBagConstraints2 = new GridBagConstraints();\r\n\t\tthis.setLayout(new GridBagLayout());\r\n\t\tthis.setSize(365, 274);\r\n\t\tgridBagConstraints1.gridx = 0;\r\n\t\tgridBagConstraints1.gridy = 0;\r\n\t\tgridBagConstraints1.anchor = java.awt.GridBagConstraints.EAST;\r\n\t\tgridBagConstraints1.insets = new java.awt.Insets(0,34,0,0);\r\n\t\tgridBagConstraints2.gridwidth = 2;\r\n\t\tgridBagConstraints2.insets = new java.awt.Insets(0,0,0,40);\r\n\t\tthis.add(jLabel, gridBagConstraints1);\r\n\t\tthis.add(getJComboBox(), gridBagConstraints2);\r\n\t\tjLabel.setText(aplicacion.getI18nString(\"cbSheetLayer\")+\": \");\r\n\t\tgridBagConstraints2.gridx = 1;\r\n\t\tgridBagConstraints2.gridy = 0;\r\n\t\tgridBagConstraints2.weightx = 1.0;\r\n\t\tgridBagConstraints2.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n \r\n\t}", "private ExporterIndicatorFTS_XLSX buildSheets(final List<DataSerie> dss) {\n\t\tExporterIndicatorFTS_XLSX previous = null;\n\t\tfor (final DataSerie ds : dss) {\n\t\t\tExporterIndicatorFTS_XLSX aSheet = null;\n\t\t\tif (previous == null) {\n\t\t\t\taSheet = new ExporterIndicatorFTS_XLSX(this, ds.getIndicatorCode(), ds.getIndicatorCode());\n\t\t\t} else {\n\t\t\t\taSheet = new ExporterIndicatorFTS_XLSX(previous, ds.getIndicatorCode(), ds.getIndicatorCode());\n\t\t\t}\n\t\t\tprevious = aSheet;\n\t\t}\n\t\treturn previous;\n\t}" ]
[ "0.6726639", "0.65566355", "0.6527555", "0.64096755", "0.63714445", "0.62591374", "0.61728394", "0.5854983", "0.57582694", "0.57491475", "0.57428116", "0.56130344", "0.5533135", "0.55329657", "0.5424447", "0.54069597", "0.5405722", "0.5396781", "0.5310514", "0.5276774", "0.5272277", "0.52664745", "0.52506226", "0.52380586", "0.52108663", "0.51705354", "0.5169336", "0.516836", "0.5166035", "0.5131472", "0.51204216", "0.51185316", "0.5110865", "0.5098712", "0.50788504", "0.50766206", "0.5076401", "0.5072673", "0.5043232", "0.50350463", "0.5028437", "0.5023928", "0.50214416", "0.50187767", "0.50105935", "0.49887618", "0.4983982", "0.49733868", "0.49693096", "0.49625447", "0.4923669", "0.49224457", "0.49214303", "0.49206573", "0.49181375", "0.49174234", "0.4907643", "0.48999292", "0.48984087", "0.48928335", "0.4880704", "0.487289", "0.48719528", "0.48710623", "0.4864706", "0.48625", "0.48623624", "0.48357892", "0.48309863", "0.48195505", "0.4814965", "0.48128048", "0.48082572", "0.4801272", "0.47935975", "0.4785409", "0.4782927", "0.47765195", "0.4776303", "0.4764314", "0.4760224", "0.47552508", "0.47527516", "0.475187", "0.47456974", "0.47452757", "0.4745173", "0.47402894", "0.4733447", "0.47321767", "0.47284815", "0.47251236", "0.4721102", "0.47168434", "0.4701715", "0.46993774", "0.4690459", "0.4687553", "0.4673727", "0.46634424" ]
0.7169205
0
Assign the list of factors header to read excel template
public void setEntryFactors(List<Factor> entryFactors);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createHeaders(WritableSheet sheet)\r\n\t\t\tthrows WriteException {\n\t\taddHeader(sheet, 0, 0, reportProperties.getProperty(\"header1\"));\r\n\t\taddHeader(sheet, 1, 0, reportProperties.getProperty(\"header2\"));\r\n\t\taddHeader(sheet, 2, 0, reportProperties.getProperty(\"header3\"));\r\n\t\taddHeader(sheet, 3, 0, reportProperties.getProperty(\"header4\"));\r\n\t\t\r\n\r\n\t}", "private static void addHeading(Sheet sheet) throws IOException {\r\n sheet.ensureRowCount(4);\r\n sheet.ensureColumnCount(10);\r\n sheet.getCellAt(\"A1\").setValue(\"income\");\r\n sheet.getCellAt(\"A2\").setValue(\"expense\");\r\n sheet.getCellAt(\"A3\").setValue(\"sum\");\r\n sheet.getCellAt(\"B1\").setValue(0.0);\r\n sheet.getCellAt(\"B2\").setValue(0.0);\r\n sheet.getCellAt(\"B3\").setValue(0.0);\r\n sheet.getCellAt(\"A4\").setValue(\"id\");\r\n sheet.getCellAt(\"B4\").setValue(\"amount\");\r\n sheet.getCellAt(\"C4\").setValue(\"date\");\r\n sheet.getCellAt(\"D4\").setValue(\"info\");\r\n }", "private void populateHeaders (String[] entries) {\n header.clear();\n\n if (entries != null) {\n for (String entry : entries) {\n header.add(entry);\n }\n\n/* for (int i = header.size(); i < nbOfColumns; i++) {\n header.add(\"\");\n }*/\n } else {\n for (int i = 1; i < nbOfColumns + 1; i++) {\n header.add(\"Column\" + i);\n }\n }\n }", "private void setHeaders(List<String> a){\n\t\tFont hfont = wb.createFont();\n\t\thfont.setBold(true);\n\t\tCellStyle cs = wb.createCellStyle();\n\t\tcs.setFont(hfont);\n\n\t\tRow r=s.createRow(rowcount++);\n\t\tCell c;\n\t\tint colcount=1;\n\n\t\tc = r.createCell(0);\n\t\tc.setCellStyle(cs);\n\t\tc.setCellValue(\"Group\");\n\n\t\tfor(String e :a){\n\t\t\tif(!isSel(e))\n\t\t\t\tcontinue;\n\t\t\tc = r.createCell(colcount++);\n\t\t\tc.setCellStyle(cs);\n\t\t\tc.setCellValue(e);\n\t\t}\n\t}", "private void initializeKnownHeaders() {\r\n needParceHeader = true;\r\n \r\n addMainHeader(\"city\", getPossibleHeaders(DataLoadPreferences.NH_CITY));\r\n addMainHeader(\"msc\", getPossibleHeaders(DataLoadPreferences.NH_MSC));\r\n addMainHeader(\"bsc\", getPossibleHeaders(DataLoadPreferences.NH_BSC));\r\n addMainIdentityHeader(\"site\", getPossibleHeaders(DataLoadPreferences.NH_SITE));\r\n addMainIdentityHeader(\"sector\", getPossibleHeaders(DataLoadPreferences.NH_SECTOR));\r\n addMainHeader(INeoConstants.PROPERTY_SECTOR_CI, getPossibleHeaders(DataLoadPreferences.NH_SECTOR_CI));\r\n addMainHeader(INeoConstants.PROPERTY_SECTOR_LAC, getPossibleHeaders(DataLoadPreferences.NH_SECTOR_LAC));\r\n addMainHeader(INeoConstants.PROPERTY_LAT_NAME, getPossibleHeaders(DataLoadPreferences.NH_LATITUDE));\r\n addMainHeader(INeoConstants.PROPERTY_LON_NAME, getPossibleHeaders(DataLoadPreferences.NH_LONGITUDE));\r\n // Stop statistics collection for properties we will not save to the sector\r\n addNonDataHeaders(1, mainHeaders);\r\n \r\n // force String types on some risky headers (sometimes these look like integers)\r\n useMapper(1, \"site\", new StringMapper());\r\n useMapper(1, \"sector\", new StringMapper());\r\n \r\n // Known headers that are sector data properties\r\n addKnownHeader(1, \"beamwidth\", getPossibleHeaders(DataLoadPreferences.NH_BEAMWIDTH), false);\r\n addKnownHeader(1, \"azimuth\", getPossibleHeaders(DataLoadPreferences.NH_AZIMUTH), false);\r\n }", "private void addHeaderForSummary(Workbook p_workBook, Sheet p_sheet)\n {\n int col = 0;\n int row = SUMMARY_HEADER_ROW;\n Row summaryHeaderRow = getRow(p_sheet, row);\n\n Cell cell_A = getCell(summaryHeaderRow, col);\n cell_A.setCellValue(m_bundle.getString(\"lb_company\"));\n cell_A.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_B = getCell(summaryHeaderRow, col);\n cell_B.setCellValue(m_bundle.getString(\"lb_job_id\"));\n cell_B.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_C = getCell(summaryHeaderRow, col);\n cell_C.setCellValue(m_bundle.getString(\"lb_job_name\"));\n cell_C.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 30 * 256);\n col++;\n\n Cell cell_D = getCell(summaryHeaderRow, col);\n cell_D.setCellValue(m_bundle.getString(\"lb_language\"));\n cell_D.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_E = getCell(summaryHeaderRow, col);\n cell_E.setCellValue(m_bundle.getString(\"lb_workflow_state\"));\n cell_E.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_F = getCell(summaryHeaderRow, col);\n cell_F.setCellValue(m_bundle.getString(\"lb_mt_word_count\"));\n cell_F.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n if (usePerplexity)\n {\n Cell cell = getCell(summaryHeaderRow, col);\n cell.setCellValue(m_bundle.getString(\"lb_perplexity_wordcount\"));\n cell.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n }\n\n Cell cell_G = getCell(summaryHeaderRow, col);\n cell_G.setCellValue(m_bundle.getString(\"lb_total_word_count\"));\n cell_G.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_H = getCell(summaryHeaderRow, col);\n cell_H.setCellValue(m_bundle.getString(\"lb_average_edit_distance\"));\n cell_H.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 30 * 256);\n col++;\n\n Cell cell_I = getCell(summaryHeaderRow, col);\n cell_I.setCellValue(m_bundle.getString(\"lb_translation_error_rate\"));\n cell_I.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n\n Cell cell_J = getCell(summaryHeaderRow, col);\n cell_J.setCellValue(m_bundle.getString(\"lb_engine_name\"));\n cell_J.setCellStyle(m_style.getHeaderStyle());\n p_sheet.setColumnWidth(col, 20 * 256);\n col++;\n }", "private void addHeader(WritableSheet sheet, int rowNumber,\n AssessmentFilling assessment,\n Locale locale) throws IOException,\n WriteException {\n sheet.setRowView(rowNumber, 500, false);\n WritableCellFormat headerCellFormat = buildHeaderCellFormat();\n Label labelCell = null;\n int columnNumber = 0;\n sheet.addCell(new Label(columnNumber, rowNumber,\n messageSource.getMessage(\"StudentIdentifier\", null,\n \"?StudentIdentifier?\", locale), headerCellFormat));\n columnNumber++;\n sheet.addCell(new Label(columnNumber, rowNumber,\n messageSource.getMessage(\"FirstName\", null, \"?FirstName?\",\n locale),\n headerCellFormat));\n columnNumber++;\n sheet.addCell(new Label(columnNumber, rowNumber,\n messageSource.getMessage(\"LastName\", null, \"?LastName?\", locale),\n headerCellFormat));\n columnNumber++;\n int questionNumber = 0;\n List<QuestionFilling> orderedQuestions = new LinkedList<QuestionFilling>(assessment.getQuestions());\n Collections.sort(orderedQuestions, new QuestionFillingOriginalComparator());\n for (QuestionFilling question : orderedQuestions) {\n if (question instanceof ClosedQuestionFilling) {\n labelCell = new Label(columnNumber, rowNumber,\n messageSource.getMessage(\"Question\", null, \"?Question?\",\n locale) + (questionNumber + 1) + \"\\n\"+question.getTitle(), headerCellFormat);\n sheet.addCell(labelCell);\n columnNumber++;\n } else if (question instanceof OpenQuestionFilling) {\n labelCell = new Label(columnNumber, rowNumber,\n messageSource.getMessage(\"Question\", null, \"?Question?\",\n locale) + (questionNumber + 1) + \"\\n\"+question.getTitle(), headerCellFormat);\n sheet.addCell(labelCell);\n sheet.setColumnView(columnNumber, 60);\n sheet.mergeCells(columnNumber, rowNumber,\n columnNumber + 1, rowNumber);\n columnNumber += 2;\n }\n questionNumber++;\n }\n labelCell = new Label(columnNumber, rowNumber,\n messageSource.getMessage(\"Sum\", null, \"?Sum?\", locale),\n headerCellFormat);\n sheet.addCell(labelCell);\n columnNumber++;\n }", "void createWorkSheet() {\n wb = new HSSFWorkbook();\n for (int SheetNumber = 0; SheetNumber < keywords.length - 1; SheetNumber++) {\n sheet[SheetNumber] = wb.createSheet(keywords[SheetNumber]);\n // Create row at index zero ( Top Row)\n HSSFRow row = sheet[SheetNumber].createRow((short) 0);\n String[] headers = {\"Title\", \"Category\", \"Developer\", \"Description\", \"Release Date\", \"currentVersionReleaseDate\", \"Version\", \"Website\", \"Rating Counts\", \"Average User Rating\", \"Average User Rating For Current Version\", \"Market URL\", \"Size\"};\n for (int i = 0; i <= 12; i++) {\n\n HSSFCell cell = row.createCell((short) i);\n cell.setCellType(HSSFCell.CELL_TYPE_STRING);\n cell.setCellValue(headers[i]);\n excelFileCreated = false;\n }\n }\n }", "public ByteArrayInputStream ClassificationDataToExcel(ArrayList<MaterialData> material_datas) throws IOException {\n\n\t\tMaterialData currentData = new MaterialData();\n\t\tMaterialData previousData = new MaterialData();\n\t\tboolean firstRow = true;\n\t\tint rowIdx = 0;\n\n\t\ttry (Workbook workbook = new XSSFWorkbook(); ByteArrayOutputStream out = new ByteArrayOutputStream();) {\n\t\t\tSheet sheet = workbook.createSheet(\"Result\");\n\n\t\t\tfor (int i = 0; i < material_datas.size(); i++) {\n\n\t\t\t\tMaterialData materialData = material_datas.get(i);\n\t\t\t\tcurrentData = materialData;\n\n//\t\t\t\tSystem.out.println(\" previous data\" + previousData.getMaterialId());\n//\t\t\t\tSystem.out.println(\" current data\" + currentData.getMaterialId());\n\n\t\t\t\t/**\n\t\t\t\t * 1. Check if currentData is not equal to previousData true -> 1.1.a Check if\n\t\t\t\t * the read row is first ->true --> 1.a.i Build the Header ->false --> 1.a.ii\n\t\t\t\t * Build the Section 3 (previous data)\n\t\t\t\t */\n\n\t\t\t\tif (!(currentData.getMaterialId()).equals(previousData.getMaterialId())) {\n\t\t\t\t\tif (firstRow) {\n\t\t\t\t\t\tfirstRow = false;\n//\t\t\t\t\t\tSystem.out.println(\"Building header\");\n\t\t\t\t\t\tArrayList<String> headerResultRowData = new ArrayList<String>();\n\t\t\t\t\t\theaderResultRowData = buildHeader.header();\n\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\tint colIdx = 0;\n\t\t\t\t\t\tfor (String rowData : headerResultRowData) {\n\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t}\n\t\t\t\t\t\theaderResultRowData.clear();\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n//\t\t\t\t\t\tSystem.out.println(\"Building section 3\");\n\t\t\t\t\t\tArrayList<ArrayList<String>> section3Data = new ArrayList<ArrayList<String>>();\n\t\t\t\t\t\tsection3Data = buildSection3.section3(previousData);\n\t\t\t\t\t\tfor (ArrayList<String> resultRowData : section3Data) {\n\t\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\t\tint colIdx = 0;\n\t\t\t\t\t\t\tfor (String rowData : resultRowData) {\n\t\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsection3Data.clear();\n\t\t\t\t\t\t\n//\t\t\t\t\t\tSystem.out.println(\"Building header\");\n\t\t\t\t\t\tArrayList<String> headerResultRowData = new ArrayList<String>();\n\t\t\t\t\t\theaderResultRowData = buildHeader.header();\n\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\tint colIdx = 0;\n\t\t\t\t\t\tfor (String rowData : headerResultRowData) {\n\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t}\n\t\t\t\t\t\theaderResultRowData.clear();\n\t\t\t\t\t}\n\n\t\t\t\t\t/**\n\t\t\t\t\t * 1.1.b Build the Section 1 (current data) \n\t\t\t\t\t * 1.1.c Build the Section 2 (current data)\n\t\t\t\t\t */\n\n//\t\t\t\t\tSystem.out.println(\"Building section 1\");\n\t\t\t\t\tArrayList<ArrayList<String>> section1Data = new ArrayList<ArrayList<String>>();\n\t\t\t\t\tsection1Data = buildSection1.section1(currentData);\n\t\t\t\t\tfor (ArrayList<String> resultRowData : section1Data) {\n\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\tint colIdx = 0;\n\n\t\t\t\t\t\tfor (String rowData : resultRowData) {\n\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsection1Data.clear();\n\n//\t\t\t\t\tSystem.out.println(\"Building section 2\");\n\t\t\t\t\tArrayList<ArrayList<String>> section2Data = new ArrayList<ArrayList<String>>();\n\t\t\t\t\tsection2Data = buildSection2.section2(currentData);\n\t\t\t\t\tfor (ArrayList<String> resultRowData : section2Data) {\n\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\tint colIdx = 0;\n\t\t\t\t\t\tfor (String rowData : resultRowData) {\n\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsection2Data.clear();\n\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * 1. Check if currentData is not equal to previousData false -> 1.2.a Build\n\t\t\t\t * Section 2(current data)\n\t\t\t\t */\n\n\t\t\t\telse {\n\n//\t\t\t\t\tSystem.out.println(\"Building section 2\");\n\t\t\t\t\tArrayList<ArrayList<String>> section2Data = new ArrayList<ArrayList<String>>();\n\t\t\t\t\tsection2Data = buildSection2.section2(currentData);\n\t\t\t\t\tfor (ArrayList<String> resultRowData : section2Data) {\n\t\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\t\t\tint colIdx = 0;\n\t\t\t\t\t\tfor (String rowData : resultRowData) {\n\t\t\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsection2Data.clear();\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * 2. Set previous data = current data\n\t\t\t\t */\n\t\t\t\tpreviousData = currentData;\n\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * 3. If EOF -> Build Section 3 (previous data) [last element]\n\t\t\t */\n\n//\t\t\tSystem.out.println(\"Building section 3\");\n\t\t\tArrayList<ArrayList<String>> section3Data = new ArrayList<ArrayList<String>>();\n\t\t\tsection3Data = buildSection3.section3(previousData);\n\t\t\tfor (ArrayList<String> resultRowData : section3Data) {\n\t\t\t\tRow row = sheet.createRow(rowIdx++);\n\t\t\t\tint colIdx = 0;\n\t\t\t\tfor (String rowData : resultRowData) {\n\t\t\t\t\trow.createCell(colIdx++).setCellValue(rowData);\n\t\t\t\t}\n\t\t\t}\n\t\t\tsection3Data.clear();\n\n\t\t\tworkbook.write(out);\n\t\t\treturn new ByteArrayInputStream(out.toByteArray());\n\t\t}\n\t}", "private void readHeader(){ \n Set<Object> tmpAttr = headerFile.keySet();\n Object[] attributes = tmpAttr.toArray(new Object[tmpAttr.size()]);\n \n Object[][] dataArray = new Object[attributes.length][2];\n for (int ndx = 0; ndx < attributes.length; ndx++) {\n dataArray[ndx][0] = attributes[ndx];\n dataArray[ndx][1] = headerFile.get(attributes[ndx]);\n if (attributes[ndx].toString().equals(\"Description\"))\n Description = headerFile.get(attributes[ndx]);\n }\n data = dataArray;\n }", "private void initRowHeaders() {\n TableColumn aColumn = jTable1.getColumnModel().getColumn(0);\n TableCellRenderer aRenderer = jTable1.getTableHeader().getDefaultRenderer();\n if (aRenderer == null) {\n System.out.println(\" Aouch !\");\n aColumn = jTable1.getColumnModel().getColumn(0);\n aRenderer = aColumn.getHeaderRenderer();\n if (aRenderer == null) {\n System.out.println(\" Aouch Aouch !\");\n // System.exit(3);\n exitForm(null);\n }\n }\n Component aComponent = aRenderer.getTableCellRendererComponent(jTable1, aColumn.getHeaderValue(), false, false, -1, 0);\n aFont = aComponent.getFont();\n aBackground = aComponent.getBackground();\n aForeground = aComponent.getForeground();\n\n border = (Border) UIManager.getDefaults().get(\"TableHeader.cellBorder\");\n insets = border.getBorderInsets(jTable1.getTableHeader());\n metrics = jTable1.getFontMetrics(aFont);\n }", "private void initialiseHeader()\n\t{\n\t ListHead head = null;\n\n\t head = super.getListHead();\n\n\t //init only once\n\t if (head != null)\n\t {\n\t \treturn;\n\t }\n\n\t head = new ListHead();\n\n\t // render list head\n\t if (this.getItemRenderer() instanceof WListItemRenderer)\n\t {\n\t \t((WListItemRenderer)this.getItemRenderer()).renderListHead(head);\n\t }\n\t else\n\t {\n\t \tthrow new ApplicationException(\"Rendering of the ListHead is unsupported for \"\n\t \t\t\t+ this.getItemRenderer().getClass().getSimpleName());\n\t }\n\n\t //attach the listhead\n\t head.setParent(this);\n\n\t return;\n\t}", "private void addHeader(Section catPart) throws BadElementException, IOException{\r\n PdfPTable header = new PdfPTable(1);\r\n PdfPCell c = new PdfPCell(Image.getInstance(\"res/brandogredninglogo.png\"));\r\n c.setBackgroundColor(COLOR_BLUE);\r\n //c.setBorderColor(BaseColor.RED);\r\n header.setHeaderRows(0);\r\n header.addCell(c);\r\n header.setWidthPercentage(100.0f);\r\n \r\n catPart.add(header);\r\n }", "private void arrangeFactors() {\n List<Condition> tempTrialConditions = new ArrayList<Condition>();\n List<Condition> tempStudyConditions = new ArrayList<Condition>();\n List<ibfb.domain.core.Factor> tempFactors = new ArrayList<ibfb.domain.core.Factor>();\n\n // conditions\n for (Condition cond : workbookStudy.getConditions()) {\n if (hasLabel(cond.getLabel(), Workbook.STUDY)) {\n cond.setLabel(Workbook.STUDY);\n tempStudyConditions.add(cond);\n }\n }\n for (Condition cond : workbookStudy.getStudyConditions()) {\n if (hasLabel(cond.getLabel(), Workbook.STUDY)) {\n cond.setLabel(Workbook.STUDY);\n tempStudyConditions.add(cond);\n }\n }\n\n // study conditions\n for (Condition cond : workbookStudy.getConditions()) {\n //if (hasLabel(cond.getLabel(), Workbook.TRIAL_LABEL)) {\n if (hasLabel(cond.getLabel(), workbookStudy.getTrialLabel())) {\n\n cond.setLabel(workbookStudy.getTrialLabel());\n tempTrialConditions.add(cond);\n }\n }\n for (Condition cond : workbookStudy.getStudyConditions()) {\n // if (hasLabel(cond.getLabel(), Workbook.TRIAL_LABEL)) {\n if (hasLabel(cond.getLabel(), workbookStudy.getTrialLabel())) {\n cond.setLabel(workbookStudy.getTrialLabel());\n tempTrialConditions.add(cond);\n }\n }\n\n // factors (ENTRY)\n for (Condition cond : workbookStudy.getStudyConditions()) {\n //if (hasLabel(cond.getLabel(), Workbook.TRIAL_LABEL)) {\n if (hasLabel(cond.getLabel(), workbookStudy.getTrialLabel())) {\n //tempFactors.add(getFactor(cond, Workbook.ENTRY_LABEL));\n tempFactors.add(getFactor(cond, workbookStudy.getTrialLabel()));\n }\n }\n\n for (Condition cond : workbookStudy.getConditions()) {\n //if (hasLabel(cond.getLabel(), Workbook.ENTRY_LABEL)) {\n if (hasLabel(cond.getLabel(), workbookStudy.getEntryLabel())) {\n //tempFactors.add(getFactor(cond, Workbook.ENTRY_LABEL));\n tempFactors.add(getFactor(cond, workbookStudy.getEntryLabel()));\n }\n }\n for (ibfb.domain.core.Factor factor : workbookStudy.getFactors()) {\n //if (hasLabel(factor.getLabel(), Workbook.ENTRY_LABEL)) {\n if (hasLabel(factor.getLabel(), workbookStudy.getEntryLabel())) {\n tempFactors.add(factor);\n }\n }\n\n // Factors (plot)\n for (Condition cond : workbookStudy.getStudyConditions()) {\n //if (hasLabel(cond.getLabel(), Workbook.PLOT_LABEL)) {\n if (hasLabel(cond.getLabel(), workbookStudy.getPlotLabel())) {\n //tempFactors.add(getFactor(cond, Workbook.PLOT_LABEL));\n tempFactors.add(getFactor(cond, workbookStudy.getPlotLabel()));\n }\n }\n for (Condition cond : workbookStudy.getConditions()) {\n //if (hasLabel(cond.getLabel(), Workbook.PLOT_LABEL)) {\n if (hasLabel(cond.getLabel(), workbookStudy.getPlotLabel())) {\n //tempFactors.add(getFactor(cond, Workbook.PLOT_LABEL));\n tempFactors.add(getFactor(cond, workbookStudy.getPlotLabel()));\n }\n }\n\n for (ibfb.domain.core.Factor factor : workbookStudy.getFactors()) {\n //if (hasLabel(factor.getLabel(), Workbook.PLOT_LABEL)) {\n if (hasLabel(factor.getLabel(), workbookStudy.getPlotLabel())) {\n tempFactors.add(factor);\n /*} else if (factor.getLabel() != null && workbookStudy.getOtherLabels().contains(factor.getLabel())) {\n tempFactors.add(factor);\n */\n }\n }\n\n for (ibfb.domain.core.Factor factor : workbookStudy.getFactors()) {\n //if (hasLabel(factor.getLabel(), Workbook.PLOT_LABEL)) {\n if (factor.getLabel() != null \n && !hasLabel(factor.getLabel(), Workbook.STUDY)\n && !hasLabel(factor.getLabel(), workbookStudy.getEntryLabel())\n && !hasLabel(factor.getLabel(), workbookStudy.getPlotLabel())\n && !hasLabel(factor.getLabel(), workbookStudy.getTrialLabel())) {\n tempFactors.add(factor);\n }\n }\n\n workbookStudy.setStudyConditions(tempStudyConditions);\n workbookStudy.setConditions(tempTrialConditions);\n workbookStudy.setFactors(tempFactors);\n }", "private int createRowHeader(HSSFSheet sheet, int i) {\r\n\r\n\t\ti++;\r\n\t\tHSSFRow row = sheet.createRow((short) i);\r\n\r\n\t\trow.createCell((short) 0).setCellValue(\"\");\r\n\t\trow.createCell((short) 1).setCellValue(\"Process\");\r\n\t\trow.createCell((short) 2).setCellValue(\"Date last ran\");\r\n\t\trow.createCell((short) 3).setCellValue(\"\");\r\n\t\trow.createCell((short) 4).setCellValue(\"Sent\");\r\n\t\trow.createCell((short) 5).setCellValue(\"Amount\");\r\n\t\ti++;\r\n\r\n\t\trow = sheet.createRow((short) i);\r\n\t\trow.createCell((short) 0).setCellValue(\"\");\r\n\t\ti++;\r\n\t\treturn i;\r\n\t}", "@RequestMapping(\"/findingRate/downloadExcel/format\")\r\n\t@ResponseBody\r\n\tpublic String excelFormatDownload(\r\n\t\t\t@RequestParam(value = \"headingVal\") String headingVal,Principal principal){\r\n\t\t\r\n\t\tString retVal = \"-1\";\r\n\t\tString fileName = principal.getName()+new java.util.Date().getTime()+\".xls\";\r\n\t\tString filePath = uploadDirecotryPath + File.separator +\"excelfilecontent\" + File.separator;\r\n\t\tString tempHeadVal[] = headingVal.split(\",\");\r\n\t\t\r\n\t\t try {\r\n\t String filename = filePath+fileName;\r\n\t HSSFWorkbook workbook = new HSSFWorkbook();\r\n\t HSSFSheet sheet = workbook.createSheet(\"FirstSheet\"); \r\n\r\n\t HSSFRow rowhead = sheet.createRow((short)0);\r\n\t for(int i=0;i<tempHeadVal.length;i++){\r\n\t \t rowhead.createCell(i).setCellValue(tempHeadVal[i].toString());\r\n\t }\r\n\t \r\n\t FileOutputStream fileOut = new FileOutputStream(filename);\r\n\t workbook.write(fileOut);\r\n\t fileOut.close();\r\n\t workbook.close();\r\n\t retVal = fileName;\r\n\t } catch ( Exception ex ) {\r\n\t System.out.println(ex);\r\n\t retVal = \"-2\";\r\n\t }\r\n\t\t\r\n\t\treturn retVal;\r\n\t}", "@Override\n public void setHeaderIndices() {\n }", "@Override\n\tprotected void buildExcelDocument(Map<String, Object> model,\n\t\t\tHSSFWorkbook workbook, HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tDate date = new Date();\n\t\tString filename = Tools.date2Str(date, \"yyyyMMddHHmmss\");\n\t\tHSSFSheet sheet;\n\t\tHSSFCell cell;\n\t\tresponse.setContentType(\"application/octet-stream\");\n\t\tresponse.setHeader(\"Content-Disposition\", \"attachment;filename=\"+filename+\".xls\");\n\t\tsheet = workbook.createSheet(\"sheet1\");\n\t\t\n\t\t//第一行表头\n\t\tPageData pdHead = (PageData) model.get(\"pdHead\");\n\t\t//第二行标题\n\t\tList<String> titles = (List<String>) model.get(\"titles\");\n\t\tint row = 0;\n\t\t\n\t\tif(StringUtil.isNotEmpty(pdHead)) {\n\t\t\tHSSFCellStyle headerStyle = workbook.createCellStyle(); //标题样式\n\t\t\theaderStyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\n\t\t\theaderStyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);\n\t\t\tHSSFFont headerFont = workbook.createFont();\t//标题字体\n\t\t\theaderFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\n\t\t\theaderFont.setFontHeightInPoints((short)11);\n\t\t\theaderStyle.setFont(headerFont);\n\t\t\t\n\t\t\tCellRangeAddress region = new CellRangeAddress(row, row, (short) 0, (short) titles.size()); \n\t\t\t\n\t\t\tString title = pdHead.getString(\"name\");\n\t\t\tcell = getCell(sheet, row, 0);\n\t\t\tcell.setCellStyle(headerStyle);\n\t\t\tsetText(cell,title);\n\t\t\tshort height=25*18*2;\n\t\t\tsheet.getRow(row).setHeight(height);\n\t\t\tsheet.addMergedRegion(region);\n\t\t\t\n\t\t\trow = 1;\n\t\t}\n\t\t\n\t\t\n\t\tint len = titles.size();\n\t\tHSSFCellStyle headerStyle = workbook.createCellStyle(); //标题样式\n\t\theaderStyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\n\t\theaderStyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);\n\t\tHSSFFont headerFont = workbook.createFont();\t//标题字体\n\t\theaderFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\n\t\theaderFont.setFontHeightInPoints((short)11);\n\t\theaderStyle.setFont(headerFont);\n\t\tshort width = 20,height=25*20;\n\t\tsheet.setDefaultColumnWidth(width);\n\t\tfor(int i=0; i<len; i++){ //设置标题\n\t\t\tString title = titles.get(i);\n\t\t\tcell = getCell(sheet, row, i);\n\t\t\tcell.setCellStyle(headerStyle);\n\t\t\tsetText(cell,title);\n\t\t}\n\t\t\n\t\tsheet.getRow(row).setHeight(height);\n\t\t\n\t\tHSSFCellStyle contentStyle = workbook.createCellStyle(); //内容样式\n\t\tcontentStyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\n\t\tList<PageData> varList = (List<PageData>) model.get(\"varList\");\n\t\tint varCount = varList.size();\n\t\tfor(int i=0; i<varCount; i++){\n\t\t\trow++;\n\t\t\tPageData vpd = varList.get(i);\n\t\t\tfor(int j=0;j<len;j++){\n\t\t\t\tString varstr = vpd.get(\"var\"+(j+1)).toString() != null ? vpd.get(\"var\"+(j+1)).toString() : \"\";\n\n\n\t\t\t\tcell = getCell(sheet, row, j);\n\t\t\t\tcell.setCellStyle(contentStyle);\n\t\t\t\tsetText(cell,varstr);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void getExcelData21ZV() throws Exception {\n\t\tlistHeader = new ArrayList<ExcelPromotionHeader>();\n\t\tlistDetail = new ArrayList<ExcelPromotionDetail>();\n\t\tlistUnit = new ArrayList<ExcelPromotionUnit>();\n\t\tmapHeader = new HashMap<String, ExcelPromotionHeader>();\n\t\tmapUnit = new HashMap<String, ExcelPromotionUnit>();\n\t\tmapErrorPromotion = new HashMap<String, String>();\n\t\tmapType = new HashMap<String, String>();\n\t\tmapPromotionMua = new HashMap<String, ListGroupMua>();\n\t\tmapPromotionKM = new HashMap<String, ListGroupKM>();\n\t\tmapMuaKM = new MapMuaKM();\n\t\tmapPromotionTypeCheck = new HashMap<String, String>();\n\t\tlstHeaderError = new ArrayList<CellBean>();\n\t\tlstDetailError = new ArrayList<CellBean>();\n\t\tlistUnitError = new ArrayList<CellBean>();\n\t\tMap<String, Integer> mapCheckHeaderDuplicate = new HashMap<String, Integer>();\n\t\tMap<String, String> mapCheckType = apParamMgr.getMapPromotionType();\n\t\tWorkbook myWorkBook = null;\n\t\tInputStream is = new FileInputStream(excelFile);\n\t\tint MAX_ARRAY = 10000;\n\t\tfinal int NUM_SHEETS = 2;\n\n\t\tif (!is.markSupported()) {\n\t\t\tis = new PushbackInputStream(is, 8);\n\t\t}\n\t\tif (POIFSFileSystem.hasPOIFSHeader(is)) {\n\t\t\tmyWorkBook = new HSSFWorkbook(is);\n\t\t} else if (POIXMLDocument.hasOOXMLHeader(is)) {\n\t\t\tmyWorkBook = new XSSFWorkbook(OPCPackage.open(is));\n\t\t}\n\t\tif (myWorkBook != null) {\n\t\t\tif (myWorkBook.getNumberOfSheets() < NUM_SHEETS) {\n\t\t\t\tthrow new Exception(ERR_NUM_SHEET);\n\t\t\t}\n\t\t\tSheet headerSheet = myWorkBook.getSheetAt(0);\n\t\t\tSheet detailSheet = myWorkBook.getSheetAt(1);\n\t\t\tSheet unitSheet = myWorkBook.getSheetAt(2);\n\t\t\tint iRun = 0;\n\t\t\ttotalItem = 0;\n\t\t\tint maxSizeSheet1 = 12;\n\t\t\tif (headerSheet != null) {\n\t\t\t\tIterator<?> rowIter = headerSheet.rowIterator();\n\t\t\t\twhile (rowIter.hasNext()) {\n\t\t\t\t\tRow myRow = (Row) rowIter.next();\n\t\t\t\t\tif (iRun == 0) {\n\t\t\t\t\t\tiRun++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean isContinue = true;\n\t\t\t\t\t//Kiem tra su hop le cua Row Import\n\t\t\t\t\tfor (int i = 0; i < maxSizeSheet1; i++) {\n\t\t\t\t\t\tif (myRow.getCell(i) != null && !StringUtil.isNullOrEmpty(getCellValueToString(myRow.getCell(i)))) {\n\t\t\t\t\t\t\tisContinue = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isContinue) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExcelPromotionHeader header = new ExcelPromotionHeader();\n\t\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\ttotalItem++;\n\t\t\t\t\t//0\tget promotionCode\n\t\t\t\t\tString promotionCode = \"\";\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionCode = myRow.getCell(0);\n\t\t\t\t\t\tif (cellPromotionCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = cellPromotionCode.getStringCellValue();\n\t\t\t\t\t\t\t//\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = String.valueOf(cellPromotionCode.getNumericCellValue());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpromotionCode = getCellValueToString(cellPromotionCode);\n\t\t\t\t\t\t\tpromotionCode = promotionCode != null ? promotionCode.toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\theader.promotionCode = promotionCode;\n\t\t\t\t\t\t\terrRow.setContent1(promotionCode);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promotionCode)) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã CTKM\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += ValidateUtil.validateField(promotionCode, \"catalog.promotion.import.column.progcode\", 50, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_MAX_LENGTH, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_CODE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (mapCheckHeaderDuplicate.get(promotionCode) != null) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.product.import.duplicate\", mapCheckHeaderDuplicate.get(promotionCode));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmapCheckHeaderDuplicate.put(promotionCode, myRow.getRowNum());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tPromotionProgram existPromotion = promotionProgramMgr.getPromotionProgramByCode(promotionCode);\n\t\t\t\t\t\t\tif (existPromotion != null && !ActiveType.WAITING.equals(existPromotion.getStatus())) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.program.exists\");\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.get.promotion.error\", promotionCode);\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t//\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"ProgCode\");\n\t\t\t\t\t}\n\t\t\t\t\t//1\tget description\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellDescription = myRow.getCell(1);\n\t\t\t\t\t\tif (cellDescription != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString description = getCellValueToString(cellDescription);\n\t\t\t\t\t\t\theader.description = description;\n\t\t\t\t\t\t\terrRow.setContent2(description);\n\t\t\t\t\t\t\tmessageError += ValidateUtil.validateField(description, \"catalog.promotion.import.column.progpescr\", 100, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_MAX_LENGTH, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_NAME);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"ProgDescr\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//2\tget release\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (myRow.getCell(2) != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\terrRow.setContent3(getCellValueToString(myRow.getCell(2)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Release\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//3\tget promotion type\n\t\t\t\t\tString type = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionType = myRow.getCell(3);\n\t\t\t\t\t\tif (cellPromotionType != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\ttype = getCellValueToString(cellPromotionType);\n\t\t\t\t\t\t\ttype = type != null ? type.toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\theader.type = type;\n\t\t\t\t\t\t\terrRow.setContent4(type);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(type)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.type\"));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (mapCheckType.get(type) == null) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.exists.before\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.type\"));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapType.put(header.promotionCode, type);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"ConditionTypeCode\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//4 get format\n\t\t\t\t\t//try {\n\t\t\t\t\t//\tCell cellFormat = myRow.getCell(4);\n\t\t\t\t\t//\tif (cellFormat != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t//\t\tString format = cellFormat.getStringCellValue();\n\t\t\t\t\t//\t\theader.format = format;\n\t\t\t\t\t//\t\terrRow.setContent5(format);\n\t\t\t\t\t//\t}\n\t\t\t\t\t//} catch (Exception e) {\n\t\t\t\t\t//\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"User1\");\n\t\t\t\t\t//}\n\t\t\t\t\t//4 get fromDate\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellFromDate = myRow.getCell(4);\n\t\t\t\t\t\tif (cellFromDate != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif (cellFromDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDate.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellFromDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellFromDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __fromDate = DateUtil.toDateString(cellFromDate.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\tDate fromDate = DateUtil.toDate(__fromDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\theader.fromDate = fromDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (cellFromDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDate.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellFromDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellFromDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __fromDate = DateUtil.toDateString(cellFromDate.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\tDate fromDate = DateUtil.toDate(__fromDate, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\theader.fromDate = fromDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(cellFromDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tString __fromDate = cellFromDate.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(__fromDate)) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tDate fromDate = DateUtil.toDate(__fromDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\theader.fromDate = fromDate;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent5(__fromDate);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\terrRow.setContent5(cellFromDate.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.required\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"FromDate\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//5 get toDate\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellToDate = myRow.getCell(5);\n\t\t\t\t\t\tif (cellToDate != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif (cellToDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDate.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellToDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellToDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __toDate = DateUtil.toDateString(cellToDate.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(__toDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\theader.toDate = toDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (cellToDate.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDate.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellToDate.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\tif (cellToDate.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\tString __toDate = DateUtil.toDateString(cellToDate.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(__toDate, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\theader.toDate = toDate;\n\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellToDate.getStringCellValue())) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tString __toDate = cellToDate.getStringCellValue();\n\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(__toDate)) {\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(__toDate, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.toDate = toDate;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent6(__toDate);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\terrRow.setContent6(cellToDate.getStringCellValue());\n\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (header.fromDate != null && header.toDate != null) {\n\t\t\t\t\t\t\tif (DateUtil.compareDateWithoutTime(header.fromDate, header.toDate) > 0) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.greater.todate\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"ToDate\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t\t//6 Số thông báo CTKM\n\t\t\t\t\t/*\n\t\t\t\t\t * String description =\n\t\t\t\t\t * getCellValueToString(cellDescription); header.description\n\t\t\t\t\t * = description; errRow.setContent2(description);\n\t\t\t\t\t * messageError += ValidateUtil.validateField(description,\n\t\t\t\t\t * \"catalog.promotion.import.column.progpescr\", 100,\n\t\t\t\t\t * ConstantManager.ERR_REQUIRE,\n\t\t\t\t\t * ConstantManager.ERR_MAX_LENGTH,\n\t\t\t\t\t * ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_NAME);\n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\t/*errMsg = ValidateUtil.validateField(promotionName, \"catalog.promotion.name\", 500, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL, ConstantManager.ERR_MAX_LENGTH);\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(errMsg)) {\n\t\t\t\t\t\terrMsg = ValidateUtil.validateField(description, \"common.description\", null, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t}*/\n\t\t\t\t\t\n\t\t\t\t\t// 6 Số thông báo\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellNoticeCode = myRow.getCell(6);\n\t\t\t\t\t\tif (cellNoticeCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString noticeCode = getCellValueToString(cellNoticeCode);\n\t\t\t\t\t\t\tif(noticeCode != null){\n\t\t\t\t\t\t\t\tnoticeCode = noticeCode.trim();\n\t\t\t\t\t\t\t\tnoticeCode = noticeCode.toUpperCase();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmessageError = ValidateUtil.validateField(noticeCode, \"catalog.promotion.noticecode\", 100, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t\t\t/*if(noticeCode.length() > 100){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.notice.code.over.length\")+\"\\n\";\n\t\t\t\t\t\t\t}else*/ \n\t\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(noticeCode)) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.notice.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t}else if(noticeCode != null && noticeCode.trim().length() > 100){\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"catalog.promotion.import.notice.code.incorrect.format\");\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"100\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số thông báo\");\n\t\t\t\t\t\t\t}else if(StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\theader.noticeCode = noticeCode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent7(noticeCode);\n\t\t\t\t\t\t}else if (cellNoticeCode == null) {\n\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.notice.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t} \n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.string\", iRun, \"NoticeCode\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 7 Nhóm/Tên SP hàng bán\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellDesProduct = myRow.getCell(7);\n\t\t\t\t\t\tif (cellDesProduct != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString descProduct = getCellValueToString(cellDesProduct);\n\t\t\t\t\t\t\tif(descProduct != null){\n\t\t\t\t\t\t\t\tdescProduct = descProduct.trim();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//descProduct = descProduct.trim();\n\t\t\t\t\t\t\tmessageError = ValidateUtil.validateField(descProduct, \"catalog.promotion.descriptionproduct\", 1000, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t\t\t/*if(descProduct.length() > 1000){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.desc.product.over.length\")+\"\\n\";\n\t\t\t\t\t\t\t}else*/ \n\t\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(descProduct)) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.description.product.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t}else if(descProduct.trim().length() > 1000){\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"catalog.promotion.import.description.product.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"1000\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Nhóm/Tên SP hàng bán\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\t\tdescProduct = descProduct.trim();\n\t\t\t\t\t\t\t\theader.decriptionProduct = descProduct;\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\terrRow.setContent8(descProduct);\n\t\t\t\t\t\t}else if(cellDesProduct == null) {\n\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.description.product.obligate\") + \"\\n\";\n\t\t\t\t\t\t} \n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.string\", iRun, \"DescProduct\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t\t// 8 Mô tả chương trình\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellDescription = myRow.getCell(8);\n\t\t\t\t\t\tif (cellDescription != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString description = getCellValueToString(cellDescription);\n\t\t\t\t\t\t\tif(description != null){\n\t\t\t\t\t\t\t\tdescription = description.trim();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(description != null && description.trim().length() > 1000){\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"catalog.promotion.import.description.program.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t\t//messageError += R.getResource(\"\", iRun, \"Description\");\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"1000\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Mô tả chương trình\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tdescription = description.trim();\n\t\t\t\t\t\t\t\theader.descriptionProgram = description;\n\t\t\t\t\t\t\t\terrRow.setContent9(description);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*else if(cellDescription != null){\n\t\t\t\t\t\t\tString description = getCellValueToString(cellDescription);\n\t\t\t\t\t\t\terrRow.setContent9(description);\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.string\", iRun, \"Description\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//9 Bội số\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellMultiple = myRow.getCell(9);\n\t\t\t\t\t\theader.multiple = 0; \n\t\t\t\t\t\tif (cellMultiple != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString multiple = getCellValueToString(cellMultiple);\n\t\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_PROMO_ALLOW_MULTIPLE\", ApParamType.LIST_PROMO_ALLOW_MULTIPLE);\n\t\t\t\t\t\t\tString strListPromo = apParam != null?apParam.getValue() : \"ZV02,ZV03,ZV05,ZV06,ZV08,ZV09,ZV11,ZV12,ZV13,ZV14,ZV15,ZV16,ZV17,ZV18,ZV20,ZV21,ZV23,ZV24\";\n\t\t\t\t\t\t\tif ((Constant.IS_MULTIPLE.equals(multiple) || Constant.NON_MULTIPLE.equals(multiple)) \n\t\t\t\t\t\t\t\t\t&& strListPromo != null) {\n\t\t\t\t\t\t\t\tstrListPromo = strListPromo.replace(\" \", \"\");\n\t\t\t\t\t\t\t\tstrListPromo = strListPromo.toUpperCase();\n\t\t\t\t\t\t\t\tString[] ListPromoAllow = strListPromo.split(\",\");\n\t\t\t\t\t\t\t\tif (Constant.IS_MULTIPLE.equals(multiple) \n\t\t\t\t\t\t\t\t\t &&\t!Arrays.asList(ListPromoAllow).contains(header.type.toUpperCase())) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(header.type.toUpperCase());\n\t\t\t\t\t\t\t\t\tSystem.out.println(strListPromo);\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.multiple.not.use\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\theader.multiple = Integer.parseInt(multiple.trim());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.multiple.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent10(multiple);\n\t\t\t\t\t\t}/*else if(cellMultiple != null){\n\t\t\t\t\t\t\tString multiple = getCellValueToString(cellMultiple);\n\t\t\t\t\t\t\terrRow.setContent10(multiple);\n\t\t\t\t\t\t}*/\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Multiple\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 10 Tối ưu\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellRecursive = myRow.getCell(10);\n\t\t\t\t\t\theader.recursive = 0;\n\t\t\t\t\t\tif (cellRecursive != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString recursive = getCellValueToString(cellRecursive);\n\t\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_PROMO_ALLOW_RECURSIVE\", ApParamType.LIST_PROMO_ALLOW_RECURSIVE);\n\t\t\t\t\t\t\tString strListPromo = apParam == null? \"ZV02,ZV03,ZV05,ZV06,ZV08,ZV09,ZV11,ZV12,ZV13,ZV14,ZV15,ZV16,ZV17,ZV18,ZV20,ZV21,ZV23,ZV24\":apParam.getValue();\n\t\t\t\t\t\t\tif ((Constant.IS_RECURSIVE.equals(recursive) || Constant.NON_RECURSIVE.equals(recursive)) \n\t\t\t\t\t\t\t\t\t&& strListPromo != null) {\n\t\t\t\t\t\t\t\tstrListPromo = strListPromo.replace(\" \", \"\");\n\t\t\t\t\t\t\t\tString[] listPromoAllow = strListPromo.split(\",\");\n\t\t\t\t\t\t\t\tif (Constant.IS_RECURSIVE.equals(recursive)\t\t\t\n\t\t\t\t\t\t\t\t\t &&\t!Arrays.asList(listPromoAllow).contains(header.type.toUpperCase())) {\n\t\t\t\t\t\t\t\t/*\tSystem.out.println(header.type.toUpperCase());\n\t\t\t\t\t\t\t\t\tSystem.out.println(strListPromo);*/\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.recursive.not.use\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\theader.recursive = Integer.parseInt(recursive.trim());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.recursive.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent11(recursive);\n\t\t\t\t\t\t}/*else if(cellRecursive != null){\n\t\t\t\t\t\t\tString recursive = getCellValueToString(cellRecursive);\n\t\t\t\t\t\t\terrRow.setContent11(recursive);\n\t\t\t\t\t\t}*/\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Recursive\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 9 Loại trả thưởng\n\t\t\t\t/*\ttry {\n\t\t\t\t\t\tCell cellRewardType = myRow.getCell(9);\n\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_ALLOW_REWARD_TYPE\", ApParamType.LIST_ALLOW_REWARD_TYPE);\n\t\t\t\t\t\tString strListAllowReward = apParam.getApParamName();\n\t\t\t\t\t\tstrListAllowReward = strListAllowReward.replace(\" \", \"\");\n\t\t\t\t\t\tString[] listAllowReward = strListAllowReward.split(\",\");\n\t\t\t\t\t\tif (cellRewardType != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\tif (strRewardType != null \n\t\t\t\t\t\t\t\t\t&& (Constant.DISCOUNT_MONEY.equals(strRewardType) || Constant.VOUCHER.equals(strRewardType)) \n\t\t\t\t\t\t\t\t\t&& Arrays.asList(listAllowReward).contains(header.type)) {\n\t\t\t\t\t\t\t\theader.rewardType = Integer.parseInt(strRewardType.trim());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent10(strRewardType);\n\t\t\t\t\t\t}else if(cellRewardType != null){\n\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\terrRow.setContent10(strRewardType);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.number\", iRun, \"RewardType\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 10 Từ ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellFromDateReward = myRow.getCell(10);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellFromDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t} else if (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = cellFromDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_fromDateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent11(cellFromDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(header.fromApplyDate != null && header.fromDate != null){\n\t\t\t\t\t\t\t\t\t\tint sub = DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate);\n\t\t\t\t\t\t\t\t\t\tif(DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate) > 0){\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.reward.greater.fromdate\")+\"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}else if(cellFromDateReward != null){\n\t\t\t\t\t\t\tString _fromDateReward = getCellValueToString(cellFromDateReward); \n\t\t\t\t\t\t\terrRow.setContent11(_fromDateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"FromDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t\t// 11 Đến ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellToDateReward = myRow.getCell(11);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellToDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_toDateReward);\n\t\t\t\t\t\t\t\t\t} else if (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_toDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _todateReward = cellToDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_todateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong \"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(_todateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDate;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent12(cellToDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (header.fromApplyDate != null && header.toApplyDate != null) {\n\t\t\t\t\t\t\t\t\t\tif (DateUtil.compareDateWithoutTime(header.fromApplyDate, header.toApplyDate) > 0) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.greater.todate.reward\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellToDateReward != null){\n\t\t\t\t\t\t\tString _todateReward = getCellValueToString(cellToDateReward); \n\t\t\t\t\t\t\terrRow.setContent12(_todateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"ToDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\t// 11 Loại trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\t\tCell cellRewardType = myRow.getCell(11);\n\t\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_ALLOW_REWARD_TYPE\", ApParamType.LIST_ALLOW_REWARD_TYPE);\n\t\t\t\t\t\t\tString strListAllowReward = apParam.getApParamName();\n\t\t\t\t\t\t\tstrListAllowReward = strListAllowReward.replace(\" \", \"\");\n\t\t\t\t\t\t\tString[] listAllowReward = strListAllowReward.split(\",\");\n\t\t\t\t\t\t\tif (cellRewardType != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\t\tif (strRewardType != null \n\t\t\t\t\t\t\t\t\t&& (Constant.DISCOUNT_MONEY.equals(strRewardType) || Constant.VOUCHER.equals(strRewardType)) \n\t\t\t\t\t\t\t\t\t&& Arrays.asList(listAllowReward).contains(header.type)) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif(Constant.DISCOUNT_MONEY.equals(strRewardType) || Constant.VOUCHER.equals(strRewardType)) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\theader.rewardType = Integer.parseInt(strRewardType.trim());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent12(strRewardType);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString strRewardType = getCellValueToString(cellRewardType);\n\t\t\t\t\t\t\t\terrRow.setContent12(strRewardType);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.number\", iRun, \"RewardType\");\n\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 12 Từ ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellFromDateReward = myRow.getCell(12);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellFromDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tif (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (cellFromDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellFromDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellFromDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellFromDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = DateUtil.toDateString(cellFromDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellFromDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _fromDateReward = cellFromDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_fromDateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate fromDateReward = DateUtil.toDate(_fromDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.fromApplyDate = fromDateReward;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.tuNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent13(cellFromDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif(header.fromApplyDate != null && header.fromDate != null){\n//\t\t\t\t\t\t\t\t\t\tint sub = DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate);\n\t\t\t\t\t\t\t\t\t\tif(DateUtil.compareDateWithoutTime(header.fromDate,header.fromApplyDate) > 0){\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.reward.greater.fromdate\")+\"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellFromDateReward != null){\n\t\t\t\t\t\t\tString _fromDateReward = getCellValueToString(cellFromDateReward); \n\t\t\t\t\t\t\terrRow.setContent13(_fromDateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"FromDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 11 Đến ngày trả thưởng\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellToDateReward = myRow.getCell(13);\n\t\t\t\t\t\tif (Constant.VOUCHER.equals(header.rewardType+\"\")) {\n\t\t\t\t\t\t\tif (cellToDateReward != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t\tif (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.HSSF_DATE_FORMAT_M_D_YY.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || !StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_toDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (cellToDateReward.getCellType() == Cell.CELL_TYPE_NUMERIC && cellToDateReward.getCellStyle() != null && DateUtil.DATE_FORMAT_VISIT.equals(cellToDateReward.getCellStyle().getDataFormatString())) {\n\t\t\t\t\t\t\t\t\t\tif (cellToDateReward.getDateCellValue() != null || StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\t\tString _toDateReward = DateUtil.toDateString(cellToDateReward.getDateCellValue(), DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\tDate toDateReward = DateUtil.toDate(_toDateReward, DateUtil.DATE_FORMAT_VISIT);\n\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDateReward;\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_toDateReward);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(cellToDateReward.getStringCellValue())) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tString _todateReward = cellToDateReward.getStringCellValue();\n\t\t\t\t\t\t\t\t\t\t\tif (DateUtil.checkInvalidFormatDate(_todateReward)) {\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong \"));\n\t\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tDate toDate = DateUtil.toDate(_todateReward, DateUtil.DATE_FORMAT_DDMMYYYY);\n\t\t\t\t\t\t\t\t\t\t\t\theader.toApplyDate = toDate;\n\t\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(_todateReward);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.invalid.format.date\", R.getResource(\"imp.epx.tuyen.clmn.denNgay.traThuong\"));\n\t\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t\t\terrRow.setContent14(cellToDateReward.getStringCellValue());\n\t\t\t\t\t\t\t\t\t\t\tLogUtility.logError(e1, e1.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (header.fromApplyDate != null && header.toApplyDate != null) {\n\t\t\t\t\t\t\t\t\t\tif (DateUtil.compareDateWithoutTime(header.fromApplyDate, header.toApplyDate) > 0) {\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"common.fromdate.greater.todate.reward\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellToDateReward != null){\n\t\t\t\t\t\t\tString _todateReward = getCellValueToString(cellToDateReward); \n\t\t\t\t\t\t\terrRow.setContent14(_todateReward);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.cant.read.cell.date\", iRun, \"ToDateReward\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tlistHeader.add(header);\n\t\t\t\t\t\tmapHeader.put(header.promotionCode, header);\n\t\t\t\t\t} else {\n\t\t\t\t\t\terrRow.setErrMsg(messageError);\n\t\t\t\t\t\tlstHeaderError.add(errRow);\n\t\t\t\t\t\tif (mapErrorPromotion.get(header.promotionCode) == null) {\n\t\t\t\t\t\t\tmapErrorPromotion.put(header.promotionCode, messageError);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tiRun++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Sheet Don vi tham gia\n\t\t\tif (unitSheet != null) {\n\t\t\t\tIterator<?> rowIter = unitSheet.rowIterator();\n\t\t\t\tiRun = 0;\n\t\t\t\tint maxSizeSheet3 = 5;\n\t\t\t\tList<Shop> listShopChild;\n\t\t\t\twhile (rowIter.hasNext()) {\n\t\t\t\t\tRow myRow = (Row) rowIter.next();\n\t\t\t\t\tif (iRun == 0) {\n\t\t\t\t\t\tiRun++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean isContinue = true;\n\t\t\t\t\tfor (int i = 0; i < maxSizeSheet3; i++) {\n\t\t\t\t\t\tif (myRow.getCell(i) != null) {\n\t\t\t\t\t\t\tisContinue = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isContinue) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExcelPromotionUnit unitPromo = new ExcelPromotionUnit();\n\t\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\tBoolean isHasData = false;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString promotionCode = getCellValueToString(myRow.getCell(0));\n\t\t\t\t\t\tString shopCode = getCellValueToString(myRow.getCell(1));\n\t\t\t\t\t\tString quality = getCellValueToString(myRow.getCell(2));\n\t\t\t\t\t\tString totalAmount = getCellValueToString(myRow.getCell(3));\n\t\t\t\t\t\tString amount = getCellValueToString(myRow.getCell(4));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(promotionCode) || !StringUtil.isNullOrEmpty(shopCode) || !StringUtil.isNullOrEmpty(quality)\n\t\t\t\t\t\t\t\t|| !StringUtil.isNullOrEmpty(totalAmount) || !StringUtil.isNullOrEmpty(amount)) {\n\t\t\t\t\t\t\tisHasData = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 1 Mã CTKM\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionCode = myRow.getCell(0);\n\t\t\t\t\t\tif (cellPromotionCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif(isHasData){\n\t\t\t\t\t\t\t\tString promoCode = getCellValueToString(cellPromotionCode);\n\t\t\t\t\t\t\t\tPromotionProgram newPromotionProgram;\n\t\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promoCode)) {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.promotion.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnewPromotionProgram = promotionProgramMgr.getPromotionProgramByCode(promoCode);\n\t\t\t\t\t\t\t\t\tif(newPromotionProgram == null \n\t\t\t\t\t\t\t\t\t\t\t&& mapHeader.get(promoCode) == null){\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.not.init\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tunitPromo.promotionCode = promoCode;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent1(promoCode);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Mã CTKM\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 2 Mã đơn vị\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellUnitCode = myRow.getCell(1);\n\t\t\t\t\t\tif (cellUnitCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tif(isHasData){\n\t\t\t\t\t\t\t\tString unitCode = getCellValueToString(cellUnitCode);\n\t\t\t\t\t\t\t\t// Kiem tra ma don vi empty\n\t\t\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(unitCode)){\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.unit.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// Kiem tra don vi ton tai trong he thong\n\t\t\t\t\t\t\t\t\tif(shopMgr.getShopByCode(unitCode) == null){\n\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.unit.code.not.permission\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t} else if (currentUser != null && currentUser.getShopRoot() != null){ // kiem tra don vi co thuoc quyen quan ly cua user\n\t\t\t\t\t\t\t\t\t\tlistShopChild = promotionProgramMgr.getListChildByShopId(currentUser.getShopRoot().getShopId());\n\t\t\t\t\t\t\t\t\t\t// Kiem tra shop co thuoc quen quan ly cua user dang nhap\n\t\t\t\t\t\t\t\t\t\tboolean isShopMapWithUser = false;\n\t\t\t\t\t\t\t\t\t\tfor(Shop shop: listShopChild){\n\t\t\t\t\t\t\t\t\t\t\t if(unitCode.toLowerCase().equals(shop.getShopCode().toLowerCase())){\n\t\t\t\t\t\t\t\t\t\t\t\t isShopMapWithUser = true;\n\t\t\t\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif(!isShopMapWithUser){\n\t\t\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.unit.code.not.permission.by.current.user\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tunitPromo.unitCode = unitCode;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent2(unitCode);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Mã CTKM\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 3 Số suất \n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellQuantityMax = myRow.getCell(2);\n\t\t\t\t\t\tif (cellQuantityMax != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString quantityMax = getCellValueToString(cellQuantityMax);\n\t\t\t\t\t\t\tif(quantityMax != null){\n\t\t\t\t\t\t\t\tquantityMax = quantityMax.trim().replace(\",\", \"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (quantityMax != null && quantityMax.trim().length() <= 9 \n\t\t\t\t\t\t\t\t\t&& StringUtil.isFloat(quantityMax) && Double.parseDouble(quantityMax.trim()) > 0\n\t\t\t\t\t\t\t\t\t&& quantityMax.contains(\".\") == false) {\n\t\t\t\t\t\t\t\tunitPromo.quantityMax = Integer.parseInt(quantityMax.trim().replace(\",\", \"\"));\n\t\t\t\t\t\t\t} else if(quantityMax != null && quantityMax.length() > 9 ){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"9\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số suất\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (StringUtil.isNullOrEmpty(quantityMax) == false) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.quantity.max.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent3(quantityMax);\n\t\t\t\t\t\t}else if(cellQuantityMax != null){\n\t\t\t\t\t\t\t// String quantityMax = getCellValueToString(cellQuantityMax);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Số suất\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 4 Số tiền amountMax\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellAmountMax = myRow.getCell(3);\n\t\t\t\t\t\tif (cellAmountMax != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString amountMax = getCellValueToString(cellAmountMax);\n\t\t\t\t\t\t\tif(amountMax != null){\n\t\t\t\t\t\t\t\tamountMax = amountMax.trim().replace(\",\", \"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (amountMax != null && amountMax.length() <= 9 && StringUtil.isFloat(amountMax) \n\t\t\t\t\t\t\t\t\t&& Double.parseDouble(amountMax.trim()) > 0 && amountMax.contains(\".\") == false) {\n\t\t\t\t\t\t\t\tunitPromo.amountMax = new BigDecimal(amountMax.trim().replace(\",\", \"\"));\n\t\t\t\t\t\t\t} else if(amountMax != null && amountMax.length() > 9){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"9\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số tiền\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (StringUtil.isNullOrEmpty(amountMax) == false) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.amount.max.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent4(amountMax);\n\t\t\t\t\t\t}else if(cellAmountMax != null){\n\t\t\t\t\t\t\tString amountMax = getCellValueToString(cellAmountMax);\n\t\t\t\t\t\t\terrRow.setContent4(amountMax);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"Số tiền\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 5 Số lượng numMax\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellNumMax = myRow.getCell(4);\n\t\t\t\t\t\tif (cellNumMax != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tString numMax = getCellValueToString(cellNumMax);\n\t\t\t\t\t\t\tnumMax = numMax.trim().replace(\",\", \"\");\n\t\t\t\t\t\t\tif (numMax != null && numMax.length() <= 9 \n\t\t\t\t\t\t\t\t\t&& StringUtil.isFloat(numMax) \n\t\t\t\t\t\t\t\t\t&& Double.parseDouble(numMax.trim()) > 0\n\t\t\t\t\t\t\t\t\t&& numMax.contains(\".\") == false) {\n\t\t\t\t\t\t\t\tunitPromo.numMax = new BigDecimal(numMax.trim().replace(\",\", \"\"));\n\t\t\t\t\t\t\t} else if(numMax != null && numMax.length() > 9){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.over.max.length\") + \"\\n\";\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%max%\", \"9\");\n\t\t\t\t\t\t\t\tmessageError = messageError.replaceAll(\"%colName%\", \"Số lượng\");\n\t\t\t\t\t\t\t}else if (StringUtil.isNullOrEmpty(numMax) == false) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.num.max.incorrect.format\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent5(numMax);\n\t\t\t\t\t\t}else if(cellNumMax != null){\n\t\t\t\t\t\t\tString numMax = getCellValueToString(cellNumMax);\n\t\t\t\t\t\t\terrRow.setContent5(numMax);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\",\n\t\t\t\t\t\t\t\tConfiguration.getResourceString(ConstantManager.VI_LANGUAGE, \"Số lượng\"));\n\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tlistUnit.add(unitPromo);\n\t\t\t\t\t\tmapUnit.put(unitPromo.promotionCode, unitPromo);\n\t\t\t\t\t}else{\n\t\t\t\t\t\terrRow.setContent6(messageError);\n\t\t\t\t\t\tlistUnitError.add(errRow);\n//\t\t\t\t\t\tif(mapErrorUnit.get(unitPromo.promotionCode) == null){\n//\t\t\t\t\t\t\tmapErrorUnit.put(unitPromo.promotionCode, messageError);\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t/*if (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tlistHeader.add(header);\n\t\t\t\t\t\tmapHeader.put(header.promotionCode, header);\n\t\t\t\t\t} else {\n\t\t\t\t\t\terrRow.setContent13(messageError);\n\t\t\t\t\t\tlstHeaderError.add(errRow);\n\t\t\t\t\t\tif (mapErrorPromotion.get(header.promotionCode) == null) {\n\t\t\t\t\t\t\tmapErrorPromotion.put(header.promotionCode, messageError);\n\t\t\t\t\t\t}\n\t\t\t\t\t}*/\n\n\t\t\t\t\tiRun++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Sheet Co cau KM\n\t\t\t/////\n\t\t\tif (detailSheet != null) {\t\n\t\t\t\tIterator<?> rowIter = detailSheet.rowIterator();\n\t\t\t\tString previousPromotionCode = null;\n\t\t\t\tint typeKM;\n\t\t\t\tMap<String, Integer> mapPromotionType = new HashMap<String, Integer>();\n\t\t\t\tiRun = 0;\n\t\t\t\tMap<String, String[]> mapArrayProduct = new HashMap<String, String[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArraySaleQuantity = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArraySaleAmount = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArrayDiscountAmount = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, Float[]> mapArrayDiscountPercent = new HashMap<String, Float[]>();\n\t\t\t\tMap<String, Integer[]> mapArrayQuantityUnit = new HashMap<String, Integer[]>();\n\t\t\t\tMap<String, String[]> mapArrayFreeProduct = new HashMap<String, String[]>();\n\t\t\t\tMap<String, BigDecimal[]> mapArrayFreeQuantity = new HashMap<String, BigDecimal[]>();\n\t\t\t\tMap<String, Integer[]> mapArrayFreeQuantityUnit = new HashMap<String, Integer[]>();\n\t\t\t\tMap<String, Boolean[]> mapArrayAndOr = new HashMap<String, Boolean[]>();\n\t\t\t\tMap<String, String[]> mapPromoGroupCode = new HashMap<String, String[]>();\n\t\t\t\tMap<String, String[]> mapPromoGroupName = new HashMap<String, String[]>();\n\t\t\t\tMap<String, String[]> mapPromoLevelCode = new HashMap<String, String[]>();\n//\t\t\t\tMap<String, Integer[]> mapMultiple = new HashMap<String, Integer[]>();\n//\t\t\t\tMap<String, Integer[]> mapRecursive = new HashMap<String, Integer[]>();\n//\t\t\t\tMap<String, Integer[]> mapDkgh = new HashMap<String,Integer[]>();\n\t\t\t\t\n\t\t\t\tLinkedHashMap<String, Integer> lstProductPromo = new LinkedHashMap<String, Integer>();\n\t\t\t\tMap<String, List<Row>> lstRow = new HashMap<String, List<Row>>();\n\t\t\t\tint indexProductPromo = 0;\n\t\t\t\tint maxSizeSheet2 = 12;\n\t\t\t\tPromotionProgram existPromotion = null;\n\t\t\t\twhile (rowIter.hasNext()) {\n\t\t\t\t\tRow myRow = (Row) rowIter.next();\n\t\t\t\t\tif (iRun == 0) {\n\t\t\t\t\t\tiRun++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tboolean isContinue = true;\n\t\t\t\t\t//Kiem tra su hop le cua Row Import\n\t\t\t\t\tfor (int i = 0; i < maxSizeSheet2; i++) {\n\t\t\t\t\t\tif (myRow.getCell(i) != null) {\n\t\t\t\t\t\t\tisContinue = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (isContinue) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExcelPromotionDetail detail = new ExcelPromotionDetail();\n\t\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\t//0 get promotionCode\n\t\t\t\t\tString promotionCode = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellPromotionCode = myRow.getCell(0);\n\t\t\t\t\t\tif (cellPromotionCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = cellPromotionCode.getStringCellValue();\n\t\t\t\t\t\t\t//\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tpromotionCode = String.valueOf(cellPromotionCode.getNumericCellValue());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t\t\t\tpromotionCode = getCellValueToString(cellPromotionCode);\n\t\t\t\t\t\t\tpromotionCode = promotionCode != null ? promotionCode.trim().toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promotionCode)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += ValidateUtil.validateField(promotionCode, \"catalog.promotion.import.column.progcode\", 50, ConstantManager.ERR_REQUIRE, ConstantManager.ERR_MAX_LENGTH, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_CODE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\texistPromotion = promotionProgramMgr.getPromotionProgramByCode(promotionCode);\n\t\t\t\t\t\t\tif (existPromotion == null && mapHeader.get(promotionCode) == null) {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.not.init\") + \"\\n\";\n\t\t\t\t\t\t\t\t//messageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.program.not.exists\");\n\t\t\t\t\t\t\t\t//messageError += \"\\n\";\n\t\t\t\t\t\t\t\t//else if(existPromotion != null && mapHeader.get(promotionCode) == null){\n\t\t\t\t\t\t\t} else if(existPromotion != null && ActiveType.RUNNING.equals(existPromotion.getStatus())){\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.program.exists\") + \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdetail.promotionCode = promotionCode;\n\t\t\t\t\t\t\terrRow.setContent1(promotionCode);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(promotionCode)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.required\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.code\"));\n\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Mã CTKM\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//1 get type\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (myRow.getCell(1) != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tdetail.type = myRow.getCell(1).getStringCellValue();\n\t\t\t\t\t\t\t//\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tdetail.type = String.valueOf(myRow.getCell(1).getNumericCellValue());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t\t\t//\t\t\t\t\t\t}\n\t\t\t\t\t\t\tdetail.type = getCellValueToString(myRow.getCell(1));\n\t\t\t\t\t\t\tdetail.type = detail.type != null ? detail.type.trim().toUpperCase().trim() : \"\";\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(detail.type)) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (mapCheckType.get(detail.type) == null) {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.exists.before\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.type\"));\n\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t} else if (mapType.get(promotionCode) == null) {\n\t\t\t\t\t\t\t\t\tif (null != existPromotion && existPromotion.getType().equalsIgnoreCase(detail.type)) {\n\t\t\t\t\t\t\t\t\t\tmapType.put(detail.promotionCode, detail.type);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.type.is.not.same2\") + \"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else if (!mapType.get(promotionCode).equals(detail.type)) {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.type.is.not.same2\") + \"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent2(getCellValueToString(myRow.getCell(1)));\n\t\t\t\t\t\t}else if(myRow.getCell(1) != null){\n\t\t\t\t\t\t\terrRow.setContent2(getCellValueToString(myRow.getCell(1)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Loại CTKM\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//2 Mã nhóm\n\t\t\t\t\t/*try {\n\t\t\t\t\t\tCell cellGroupCode = myRow.getCell(2);\n\t\t\t\t\t\tString groupCode = null;\n\t\t\t\t\t\tif (cellGroupCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tgroupCode = getCellValueToString(cellGroupCode);\n\t\t\t\t\t\t\tmessageError = ValidateUtil.validateField(noticeCode, \"catalog.promotion.noticecode\", 100, ConstantManager.ERR_EXIST_SPECIAL_CHAR_IN_SPECIAL);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(groupCode)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoGroupCode = groupCode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent3(groupCode);\n\t\t\t\t\t\t}else if (cellGroupCode != null) {\n\t\t\t\t\t\t\tgroupCode = getCellValueToString(cellGroupCode);\n\t\t\t\t\t\t\terrRow.setContent3(groupCode);\n\t\t\t\t\t\t}else if (cellGroupCode == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Mã nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 3 Tên nhóm\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellGroupName = myRow.getCell(3);\n\t\t\t\t\t\tString groupName = null;\n\t\t\t\t\t\tif (cellGroupName != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tgroupName = getCellValueToString(cellGroupName);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(groupName)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.name.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoGroupName = groupName;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent4(groupName);\n\t\t\t\t\t\t}else if (cellGroupName != null) {\n\t\t\t\t\t\t\tgroupName = getCellValueToString(cellGroupName);\n\t\t\t\t\t\t\terrRow.setContent4(groupName);\n\t\t\t\t\t\t}else if (cellGroupName == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.group.name.obligate\") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Tên nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t// 4 Mã mức\n\t\t\t\t\ttry {\n\t\t\t\t\t\tCell cellLevelCode = myRow.getCell(4);\n\t\t\t\t\t\tString levelCode = null;\n\t\t\t\t\t\tif (cellLevelCode != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tlevelCode = getCellValueToString(cellLevelCode);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(levelCode)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoLevelCode = levelCode;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent5(levelCode);\n\t\t\t\t\t\t} else if (cellLevelCode != null) {\n\t\t\t\t\t\t\tlevelCode = getCellValueToString(cellLevelCode);\n\t\t\t\t\t\t\terrRow.setContent5(levelCode);\n\t\t\t\t\t\t}else if (cellLevelCode == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.code.obligate\") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Tên nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\t//5 Tên mức\n\t\t\t\t\t/*try {\n\t\t\t\t\t\tCell cellLevelName = myRow.getCell(5);\n\t\t\t\t\t\tString levelName = null;\n\t\t\t\t\t\tif (cellLevelName != null && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tlevelName = getCellValueToString(cellLevelName);\n\t\t\t\t\t\t\tif (StringUtil.isNullOrEmpty(levelName)) {\n\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.name.obligate \") + \"\\n\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.promoLevelName = levelName;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\terrRow.setContent6(levelName);\n\t\t\t\t\t\t} else if (cellLevelName == null) {\n\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.promotion.level.name.obligate \") + \"\\n\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Tên nhóm\") + \"\\n\";\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\t//2 get productCode\n\t\t\t\t\tString productCode = \"\";\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 2) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellProductCode = myRow.getCell(2);\n\t\t\t\t\t\t\tif (cellProductCode != null) {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tproductCode = cellProductCode.getStringCellValue();\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tproductCode = String.valueOf(cellProductCode.getNumericCellValue());\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\tLogUtility.logError(ex, ex.getMessage());\n\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tproductCode = getCellValueToString(cellProductCode);\n\t\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(productCode)) {\n\t\t\t\t\t\t\t\t\tProduct product = productMgr.getProductByCode(productCode.trim());\n\t\t\t\t\t\t\t\t\tif (product == null) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.exist.in.db\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.buyproduct.code\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.productCode = productCode.toUpperCase().trim();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã Sản Phẩm Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã Sản Phẩm Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(2) != null) {\n\t\t\t\t\t\t\terrRow.setContent3(getCellValueToString(myRow.getCell(2)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.get.product.error\", productCode);\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//3 getQuantity\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 3) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellQuantity = myRow.getCell(3);\n\t\t\t\t\t\t\tif (cellQuantity != null && cellQuantity.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellQuantity.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal quantity = new BigDecimal(cellQuantity.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (quantity == null || quantity.compareTo(BigDecimal.ZERO) <= 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.saleQuantity = quantity;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(3) != null) {\n\t\t\t\t\t\t\terrRow.setContent4(getCellValueToString(myRow.getCell(3)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"SL Sản Phẩm Mua\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//4 get UOM\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 4) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellProductUnit = myRow.getCell(4);\n\t\t\t\t\t\t\tif (cellProductUnit != null && cellProductUnit.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellProductUnit.getCellType() == Cell.CELL_TYPE_STRING) {\n\t\t\t\t\t\t\t\t\tString unit = cellProductUnit.getStringCellValue();\n\t\t\t\t\t\t\t\t\tif (unit == null || StringUtil.isNullOrEmpty(unit)) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (unit.trim().toLowerCase().equals(\"LẺ\".toLowerCase())) {\n\t\t\t\t\t\t\t\t\t\tdetail.productUnit = 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdetail.productUnit = 2;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(4) != null) {\n\t\t\t\t\t\t\terrRow.setContent5(getCellValueToString(myRow.getCell(4)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Đơn Vị Tính Cho SP Mua\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//5 getAmount\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 5) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellAmount = myRow.getCell(5);\n\t\t\t\t\t\t\tif (cellAmount != null && cellAmount.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellAmount.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal amount = BigDecimal.valueOf(cellAmount.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (amount == null || amount.compareTo(BigDecimal.ZERO) < 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Số Tiền SP Mua\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.saleAmount = amount;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Số Tiền SP Mua\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Số Tiền SP Mua\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(5) != null) {\n\t\t\t\t\t\t\terrRow.setContent6(getCellValueToString(myRow.getCell(5)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Số Tiền SP Mua\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//6 getDiscount Amount\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 6) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellDiscountAmount = myRow.getCell(6);\n\t\t\t\t\t\t\tif (cellDiscountAmount != null && cellDiscountAmount.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellDiscountAmount.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal discountAmount = BigDecimal.valueOf(cellDiscountAmount.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (discountAmount == null || discountAmount.compareTo(BigDecimal.ZERO) < 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Số Tiền SP KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.discountAmount = discountAmount;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Số Tiền SP KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Số Tiền SP KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(6) != null) {\n\t\t\t\t\t\t\terrRow.setContent7(getCellValueToString(myRow.getCell(6)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Số Tiền SP KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//7 get discount percent\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 7) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellDiscountPercent = myRow.getCell(7);\n\t\t\t\t\t\t\tif (cellDiscountPercent != null && cellDiscountPercent.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellDiscountPercent.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tFloat discountPercent = (float) cellDiscountPercent.getNumericCellValue();\n\t\t\t\t\t\t\t\t\tif (discountPercent == null || discountPercent < 0 || discountPercent > 100) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"% KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.discountPercent = discountPercent;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.column.invalid.format.float\", \"% KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"% KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(7) != null) {\n\t\t\t\t\t\t\terrRow.setContent8(getCellValueToString(myRow.getCell(7)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"DiscPer\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//8 get Free product code\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 8) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellFreeProductCode = myRow.getCell(8);\n\t\t\t\t\t\t\tif (cellFreeProductCode != null) {\n\t\t\t\t\t\t\t\tString freeProductCode = getCellValueToString(cellFreeProductCode);\n\t\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(freeProductCode)) {\n\t\t\t\t\t\t\t\t\tProduct freeProduct = productMgr.getProductByCode(freeProductCode.trim());\n\t\t\t\t\t\t\t\t\tif (freeProduct == null) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.exist.in.db\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.disproduct.code\"));\n\t\t\t\t\t\t\t\t\t\tmessageError += \"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.freeProductCode = freeProductCode.toUpperCase().trim();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Mã SP KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(8) != null) {\n\t\t\t\t\t\t\terrRow.setContent9(getCellValueToString(myRow.getCell(8)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Mã SP KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//9 get free Quantity\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 9) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellFreeQuantity = myRow.getCell(9);\n\t\t\t\t\t\t\tif (cellFreeQuantity != null && cellFreeQuantity.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellFreeQuantity.getCellType() == Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tBigDecimal freeQuantity = new BigDecimal(cellFreeQuantity.getNumericCellValue());\n\t\t\t\t\t\t\t\t\tif (freeQuantity == null || freeQuantity.compareTo(BigDecimal.ZERO) < 0) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Số Lượng KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tdetail.freeQuantity = freeQuantity;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Số Lượng KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.null\", \"Số Lượng KM\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(9) != null) {\n\t\t\t\t\t\t\terrRow.setContent10(getCellValueToString(myRow.getCell(9)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"Số Lượng KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//10 get Free UOM\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 10) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellProductUnit = myRow.getCell(10);\n\t\t\t\t\t\t\tif (cellProductUnit != null && cellProductUnit.getCellType() != Cell.CELL_TYPE_BLANK) {\n\t\t\t\t\t\t\t\tif (cellProductUnit.getCellType() == Cell.CELL_TYPE_STRING) {\n\t\t\t\t\t\t\t\t\tString unit = cellProductUnit.getStringCellValue();\n\t\t\t\t\t\t\t\t\tif (unit == null || StringUtil.isNullOrEmpty(unit)) {\n\t\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"common.not.date\", \"Đơn Vị Tính cho SP KM\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tif (unit.trim().toLowerCase().equals(\"LẺ\".toLowerCase())) {\n\t\t\t\t\t\t\t\t\t\tdetail.freeProductUnit = 1;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdetail.freeProductUnit = 2;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.column.invalid.format.number\", \"Đơn Vị Tính cho SP KM\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (myRow.getCell(10) != null) {\n\t\t\t\t\t\t\terrRow.setContent11(getCellValueToString(myRow.getCell(10)));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.string\", iRun, \"Đơn Vị Tính cho SP KM\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t//11 get And Or\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (checkColumnNecessary(detail.type, 11) && StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\t\tCell cellAndOrCell = myRow.getCell(11);\n\t\t\t\t\t\t\tif (cellAndOrCell != null) {\n\t\t\t\t\t\t\t\tString value;\n\t\t\t\t\t\t\t\tif (cellAndOrCell.getCellType() != Cell.CELL_TYPE_NUMERIC) {\n\t\t\t\t\t\t\t\t\tvalue = cellAndOrCell.getStringCellValue();\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tvalue = String.valueOf((float) cellAndOrCell.getNumericCellValue());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (\"X\".equals(value.trim().toUpperCase())) {\n\t\t\t\t\t\t\t\t\tdetail.andOr = true;\n\t\t\t\t\t\t\t\t\terrRow.setContent12(value);\n\t\t\t\t\t\t\t\t} else if (\"\".equals(value.trim().toUpperCase())) {\n\t\t\t\t\t\t\t\t\tdetail.andOr = false;\n\t\t\t\t\t\t\t\t\terrRow.setContent12(value);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\terrRow.setContent13(value);\n\t\t\t\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.read.cell.format.invalid\", iRun, \"AllFreeItemcode\", \"['','X']\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdetail.andOr = false;\n\t\t\t\t\t\t\t\terrRow.setContent12(\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.read.cell.format.invalid\", iRun, \"AllFreeItemcode\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// 12 ĐKGH\n\t\t\t\t\t/*try{\n\t\t\t\t\t\tApParam apParam = apParamMgr.getApParamByCode(\"LIST_ALLOW_DKGH\", ApParamType.LIST_ALLOW_DKGH);\n\t\t\t\t\t\tString strListPromo = apParam.getApParamName();\n\t\t\t\t\t\tCell cellDKGH = myRow.getCell(17);\n\t\t\t\t\t\tString[] ListAllow = strListPromo.split(\",\");\n\t\t\t\t\t\tif(Arrays.asList(ListAllow).contains(detail.type)){\n\t\t\t\t\t\t\tif(cellDKGH != null && StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\t\tString dkgh = getCellValueToString(cellDKGH);\n\t\t\t\t\t\t\t\tif(dkgh != null \n\t\t\t\t\t\t\t\t\t\t&& (Constant.HAVE_CONDITION.equals(dkgh) || (Constant.NON_CONDITION.equals(dkgh)))){\n\t\t\t\t\t\t\t\t\tdetail.dkgh = Integer.parseInt(dkgh.trim());\n\t\t\t\t\t\t\t\t}else if(dkgh != null){\n\t\t\t\t\t\t\t\t\tmessageError += R.getResource(\"catalog.promotion.import.dkgh.incorrect.format\")+\"\\n\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\terrRow.setContent18(dkgh);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(cellDKGH != null){\n\t\t\t\t\t\t\tString dkgh = getCellValueToString(cellDKGH);\n\t\t\t\t\t\t\terrRow.setContent18(dkgh);\n\t\t\t\t\t\t}\n\t\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t\tmessageError += Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"catalog.promotion.import.cant.read.cell.number\", iRun, \"DKGH\", \"['','X']\");\n\t\t\t\t\t\tLogUtility.logError(e, e.getMessage());\n\t\t\t\t\t}*/\n\t\t\t\t\tif (mapPromotionTypeCheck.get(detail.promotionCode) == null) {\n\t\t\t\t\t\tmapPromotionTypeCheck.put(detail.promotionCode, detail.type);\n\t\t\t\t\t}\n\t\t\t\t\tif (!promotionCode.equals(previousPromotionCode)) {\n\t\t\t\t\t\tif (mapPromotionType.get(detail.promotionCode) != null) {//da ton tai ctkm nay truoc do roi\n\t\t\t\t\t\t\t//typeKM = mapPromotionType.get(detail.promotionCode);//=> lay ra loai cua no thoi\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null\n\t\t\t\t\t\t\t\t\t&& detail.freeQuantity.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 1;//ZV03\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 2;//ZV02\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 3;//ZV01\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null\n\t\t\t\t\t\t\t\t\t&& detail.freeQuantity.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 4;\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 5;\n\t\t\t\t\t\t\t} else if (!StringUtil.isNullOrEmpty(detail.productCode) && detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 6;\n\t\t\t\t\t\t\t} else if (detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null && detail.freeQuantity.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 7;\n\t\t\t\t\t\t\t} else if (detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 8;\n\t\t\t\t\t\t\t} else if (detail.saleAmount != null && detail.saleAmount.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 9;\n\t\t\t\t\t\t\t} else if (detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && !StringUtil.isNullOrEmpty(detail.freeProductCode) && detail.freeQuantity != null && detail.freeQuantity.compareTo(\n\t\t\t\t\t\t\t\t\tBigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 10;//ZV24\n\t\t\t\t\t\t\t} else if (detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountAmount != null && detail.discountAmount.compareTo(BigDecimal.ZERO) > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 11;//ZV23\n\t\t\t\t\t\t\t} else if (detail.saleQuantity != null && detail.saleQuantity.compareTo(BigDecimal.ZERO) > 0 && detail.discountPercent != null && detail.discountPercent > 0) {\n\t\t\t\t\t\t\t\ttypeKM = 12;//ZV22\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttypeKM = -1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapPromotionType.put(detail.promotionCode, typeKM);\n\t\t\t\t\t\t\tpreviousPromotionCode = detail.promotionCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//typeKM = mapPromotionType.get(detail.promotionCode);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tList<Row> lstR = lstRow.get(detail.promotionCode);\n\t\t\t\t\t\tif (lstR == null) {\n\t\t\t\t\t\t\tlstR = new ArrayList<Row>();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmessageError = checkDuplicate(mapType.get(detail.promotionCode), lstR, myRow);\n\t\t\t\t\t\tif(StringUtil.isNullOrEmpty(messageError)){\n\t\t\t\t\t\t\tlistDetail.add(detail);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstR.add(myRow);\n\t\t\t\t\t\tlstRow.put(detail.promotionCode, lstR);\n\t\t\t\t\t}\n\t\t\t\t\tif (StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\t\tif (mapArrayProduct.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tString[] arrProduct = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrProduct[iRun] = detail.productCode;\n\t\t\t\t\t\t\tmapArrayProduct.put(detail.promotionCode, arrProduct);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrProduct[iRun] = detail.productCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArraySaleQuantity.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrSaleQuantity[iRun] = detail.saleQuantity;\n\t\t\t\t\t\t\tmapArraySaleQuantity.put(detail.promotionCode, arrSaleQuantity);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrSaleQuantity[iRun] = detail.saleQuantity;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayQuantityUnit.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tInteger[] arrUnit = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.productUnit;\n\t\t\t\t\t\t\tmapArrayQuantityUnit.put(detail.promotionCode, arrUnit);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tInteger[] arrUnit = mapArrayQuantityUnit.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.productUnit;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArraySaleAmount.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleAmount = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrSaleAmount[iRun] = detail.saleAmount;\n\t\t\t\t\t\t\tmapArraySaleAmount.put(detail.promotionCode, arrSaleAmount);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrSaleAmount[iRun] = detail.saleAmount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayFreeProduct.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tString[] arrFreeProduct = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrFreeProduct[iRun] = detail.freeProductCode;\n\t\t\t\t\t\t\tmapArrayFreeProduct.put(detail.promotionCode, arrFreeProduct);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrFreeProduct[iRun] = detail.freeProductCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayFreeQuantityUnit.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tInteger[] arrUnit = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.freeProductUnit;\n\t\t\t\t\t\t\tmapArrayFreeQuantityUnit.put(detail.promotionCode, arrUnit);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tInteger[] arrUnit = mapArrayFreeQuantityUnit.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrUnit[iRun] = detail.freeProductUnit;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayFreeQuantity.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrFreeQuantity[iRun] = detail.freeQuantity;\n\t\t\t\t\t\t\tmapArrayFreeQuantity.put(detail.promotionCode, arrFreeQuantity);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrFreeProduct = mapArrayFreeQuantity.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrFreeProduct[iRun] = detail.freeQuantity;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayDiscountAmount.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBigDecimal[] arrDiscountAmount = new BigDecimal[MAX_ARRAY];\n\t\t\t\t\t\t\tarrDiscountAmount[iRun] = detail.discountAmount;\n\t\t\t\t\t\t\tmapArrayDiscountAmount.put(detail.promotionCode, arrDiscountAmount);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBigDecimal[] arrDiscountAmount = mapArrayDiscountAmount.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrDiscountAmount[iRun] = detail.discountAmount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayDiscountPercent.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tFloat[] arrDiscountPercent = new Float[MAX_ARRAY];\n\t\t\t\t\t\t\tarrDiscountPercent[iRun] = detail.discountPercent;\n\t\t\t\t\t\t\tmapArrayDiscountPercent.put(detail.promotionCode, arrDiscountPercent);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tFloat[] arrDiscountPercent = mapArrayDiscountPercent.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrDiscountPercent[iRun] = detail.discountPercent;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (mapArrayAndOr.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tBoolean[] arrAndOr = new Boolean[MAX_ARRAY];\n\t\t\t\t\t\t\tarrAndOr[iRun] = detail.andOr;\n\t\t\t\t\t\t\tmapArrayAndOr.put(detail.promotionCode, arrAndOr);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrAndOr[iRun] = detail.andOr;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Ma nhom\n\t\t\t\t\t\tif(mapPromoGroupCode.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tString[] arrPromoGroupCode = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrPromoGroupCode[iRun] = detail.promoGroupCode;\n\t\t\t\t\t\t\tmapPromoGroupCode.put(detail.promotionCode, arrPromoGroupCode);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tString[] arrPromoGroupCode = mapPromoGroupCode.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrPromoGroupCode[iRun] = detail.promoGroupCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Ten nhom\n\t\t\t\t\t\tif(mapPromoGroupName.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tString[] arrPromoGroupName = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrPromoGroupName[iRun] = detail.promoGroupName;\n\t\t\t\t\t\t\tmapPromoGroupName.put(detail.promotionCode, arrPromoGroupName);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tString[] arrPromoGroupName = mapPromoGroupName.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrPromoGroupName[iRun] = detail.promoGroupName;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Ma muc\n\t\t\t\t\t\tif(mapPromoLevelCode.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tString[] arrayPromoLevelCode = new String[MAX_ARRAY];\n\t\t\t\t\t\t\tarrayPromoLevelCode[iRun] = detail.promoLevelCode;\n\t\t\t\t\t\t\tmapPromoLevelCode.put(detail.promotionCode, arrayPromoLevelCode);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tString[] arrayPromoLevelCode = mapPromoLevelCode.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrayPromoLevelCode[iRun] = detail.promoLevelCode;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Bội số\n\t\t\t\t\t\t/*if(mapMultiple.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tInteger[] arrMultiple = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrMultiple[iRun] = detail.multiple;\n\t\t\t\t\t\t\tmapMultiple.put(detail.promotionCode, arrMultiple);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tInteger[] arrMultiple = mapMultiple.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrMultiple[iRun] = detail.multiple;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map Tối ưu\n\t\t\t\t\t\tif(mapRecursive.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tInteger[] arrRecursive = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrRecursive[iRun] = detail.recursive;\n\t\t\t\t\t\t\tmapRecursive.put(detail.promotionCode, arrRecursive);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tInteger[] arrRecursive = mapRecursive.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrRecursive[iRun] = detail.recursive;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// map ĐKGH\n\t\t\t\t\t\tif(mapDkgh.get(detail.promotionCode) == null){\n\t\t\t\t\t\t\tInteger[] arrDkgh = new Integer[MAX_ARRAY];\n\t\t\t\t\t\t\tarrDkgh[iRun] = detail.dkgh;\n\t\t\t\t\t\t\tmapDkgh.put(detail.promotionCode, arrDkgh);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tInteger[] arrDkgh = mapDkgh.get(detail.promotionCode);\n\t\t\t\t\t\t\tarrDkgh[iRun] = detail.dkgh;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t*/\n\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(detail.productCode) && lstProductPromo.get(detail.promotionCode + \"-\" + detail.productCode) == null) {\n\t\t\t\t\t\t\tlstProductPromo.put(detail.promotionCode + \"-\" + detail.productCode, indexProductPromo++);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//error\n\t\t\t\t\t\terrRow.setContent13(messageError);\n\t\t\t\t\t\tlstDetailError.add(errRow);\n\t\t\t\t\t\tif (mapErrorPromotion.get(detail.promotionCode) == null) {\n\t\t\t\t\t\t\tmapErrorPromotion.put(detail.promotionCode, messageError);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// totalItem++;\n\t\t\t\t\tiRun++;\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * put vao group level\n\t\t\t\t */\n\t\t\t\tString messageError = \"\";\n\t\t\t\tCellBean errRow = new CellBean();\n\t\t\t\t\n\t\t\t\tfor (String promotionProgramCode : mapPromotionType.keySet()) {\n\t\t\t\t\tInteger unit = -1;\n\t\t\t\t\tString[] arrPromoGroupCode = mapPromoGroupCode.get(promotionProgramCode);\n\t\t\t\t\tString[] arrPromoGroupName = mapPromoGroupName.get(promotionProgramCode);\n\t\t\t\t/*\tString[] arrPromoLevelCode = mapPromoLevelCode.get(promotionProgramCode);\n\t\t\t\t\tInteger[] arrMultiple = mapMultiple.get(promotionProgramCode);\n\t\t\t\t\tInteger[] arrRecursive = mapRecursive.get(promotionProgramCode);\t\t*/\t\t\t\n//\t\t\t\t\tInteger[] arrDkgh = mapDkgh.get(promotionProgramCode);\n\t\t\t\t\t\n\t\t\t\t\tif (mapPromotionType.get(promotionProgramCode) == 1) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(1), B(1) dc km ... C(1), D(1)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantityProduct(arrProduct, arrProductUnit, arrSaleQuantity, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleQuantity[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupKM.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 2) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(1), B(1) dc km ... 10.000\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantityProduct(arrProduct, arrProductUnit, arrSaleQuantity, arrAndOr, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleQuantity[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 3) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(1), B(1) dc km ... 10%\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantityProduct(arrProduct, arrProductUnit, arrSaleQuantity, arrAndOr, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleQuantity[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n//\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], unit, arrSaleQuantity[i], indexMua++, i, arrProduct, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 4) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(10.000), B(10.000) dc km ... C(1), D(1)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortAmountProduct(arrProduct, arrProductUnit, arrSaleAmount, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleAmount[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 5) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(10.000), B(10.000) dc km ... 10.000\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortAmountProduct(arrProduct, arrProductUnit, arrSaleAmount, arrAndOr, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleAmount[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 6) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua A(10.000), B(10.000) dc km ... 10%\n\t\t\t\t\t\t */\n\t\t\t\t\t\tString[] arrProduct = mapArrayProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortAmountProduct(arrProduct, arrProductUnit, arrSaleAmount, arrAndOr, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrProduct != null && i < arrProduct.length; i++) {\n\t\t\t\t\t\t\tif (!StringUtil.isNullOrEmpty(arrProduct[i]) && arrSaleAmount[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrProduct[i], arrSaleAmount[i], indexMua++, i, arrProduct, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 7) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua 10000 dc km ... C(1), D(1)\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tsortAmount(arrSaleAmount, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\t\t\t\t\t\tfor (int i = 0; arrSaleAmount != null && i < arrSaleAmount.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleAmount[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 8) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua 10000 dc km ... 10.000\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\tsortAmount(arrSaleAmount, null, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrSaleAmount != null && i < arrSaleAmount.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleAmount[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.multiple = arrMultiple[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n//\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 9) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * mua 10000 dc km ... 10%\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleAmount = mapArraySaleAmount.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\tsortAmount(arrSaleAmount, null, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrSaleAmount != null && i < arrSaleAmount.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleAmount[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t/*\tgroupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(2, arrSaleAmount[i], null, indexMua++, i, arrSaleAmount, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 10) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * ZV24\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tString[] arrFreeProduct = mapArrayFreeProduct.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeQuantity = mapArrayFreeQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tBoolean[] arrAndOr = mapArrayAndOr.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrFreeProductUnit = mapArrayFreeQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tsortQuantity(arrSaleQuantity, arrAndOr, arrFreeProduct, arrFreeProductUnit, arrFreeQuantity, null, null);\n\n\t\t\t\t\t\tfor (int i = 0; arrSaleQuantity != null && i < arrSaleQuantity.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleQuantity[i] != null && !StringUtil.isNullOrEmpty(arrFreeProduct[i]) && arrFreeQuantity[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t/*\t\t\tgroupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupKM.qttUnit = arrFreeProductUnit[i];\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], null, indexMua++, i, arrSaleQuantity, arrFreeProduct, arrFreeQuantity);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(mapPromotionTypeCheck.get(promotionProgramCode), arrFreeProduct[i], unit, arrFreeQuantity[i], arrAndOr[i], indexKM++, i, arrFreeProduct, arrFreeQuantity, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 11) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * ZV23\n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tBigDecimal[] arrFreeAmount = mapArrayDiscountAmount.get(promotionProgramCode);\n\t\t\t\t\t\tsortQuantity(arrSaleQuantity, null, null, null, null, arrFreeAmount, null);\n\t\t\t\t\t\tfor (int i = 0; arrSaleQuantity != null && i < arrSaleQuantity.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleQuantity[i] != null && arrFreeAmount[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t/*\tgroupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t/*\t\tgroupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrFreeAmount[i], indexKM++, i, arrFreeAmount, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (mapPromotionType.get(promotionProgramCode) == 12) {\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * \n\t\t\t\t\t\t */\n\t\t\t\t\t\tBigDecimal[] arrSaleQuantity = mapArraySaleQuantity.get(promotionProgramCode);\n\t\t\t\t\t\tInteger[] arrProductUnit = mapArrayQuantityUnit.get(promotionProgramCode);\n\t\t\t\t\t\tFloat[] arrPercent = mapArrayDiscountPercent.get(promotionProgramCode);\n\t\t\t\t\t\t//Sort theo saleQuantity\n\t\t\t\t\t\tsortQuantity(arrSaleQuantity, null, null, null, null, null, arrPercent);\n\t\t\t\t\t\tfor (int i = 0; arrSaleQuantity != null && i < arrSaleQuantity.length; i++) {\n\t\t\t\t\t\t\tif (arrSaleQuantity[i] != null && arrPercent[i] != null) {\n\t\t\t\t\t\t\t\tGroupMua groupMua;\n\t\t\t\t\t\t\t\tGroupKM groupKM;\n\t\t\t\t\t\t\t\tunit = arrProductUnit[i];\n\t\t\t\t\t\t\t\tif (mapPromotionMua.get(promotionProgramCode) != null && mapPromotionKM.get(promotionProgramCode) != null) {\n\t\t\t\t\t\t\t\t\tgroupMua = mapPromotionMua.get(promotionProgramCode).get(mapPromotionMua.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t\tgroupKM = mapPromotionKM.get(promotionProgramCode).get(mapPromotionKM.get(promotionProgramCode).size() - 1);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tListGroupMua lstGroupMua = new ListGroupMua();\n\t\t\t\t\t\t\t\t\tListGroupKM lstGroupKM = new ListGroupKM();\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tgroupMua.groupCode = \"N\" + (lstGroupMua.size() + 1);\n\t\t\t\t\t\t\t\t\t//groupMua.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupMua.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupMua.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupMua.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupMua.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.qttUnit = unit;\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\t//groupKM.groupCode = \"N\" + (lstGroupKM.size() + 1);\n\t\t\t\t\t\t\t\t\tgroupKM.groupCode = arrPromoGroupCode[i];\n\t\t\t\t\t\t\t\t\tgroupKM.groupName = arrPromoGroupName[i];\n\t\t\t\t\t\t\t\t\t/*groupKM.multiple = arrMultiple[i];\n\t\t\t\t\t\t\t\t\tgroupKM.recursive = arrRecursive[i];\n\t\t\t\t\t\t\t\t\tgroupKM.dkgh = arrDkgh[i];*/\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tgroupMua.order = lstGroupMua.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupKM.order = lstGroupKM.size() + 1;\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tmapPromotionMua.put(promotionProgramCode, lstGroupMua);\n\t\t\t\t\t\t\t\t\tmapPromotionKM.put(promotionProgramCode, lstGroupKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGroupSP groupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\tif (groupSPMua == null) {\n\t\t\t\t\t\t\t\t\tgroupMua = new GroupMua();\n\t\t\t\t\t\t\t\t\tList<GroupMua> lstGroupMua = mapPromotionMua.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupMua.add(groupMua);\n\t\t\t\t\t\t\t\t\tgroupSPMua = groupMua.add2Level(1, arrSaleQuantity[i], arrProductUnit[i], indexMua++, i, arrSaleQuantity, null, null);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tList<Long> lstIndex = mapMuaKM.get(groupSPMua.index);//lay danh sach cac index muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tList<GroupSP> lstLevelKM = groupKM.searchIndex(lstIndex);//lay danh sach cac muc duoc map voi muc sp mua\n\t\t\t\t\t\t\t\tGroupSP groupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\tif (groupSPKM == null) {\n\t\t\t\t\t\t\t\t\tgroupKM = new GroupKM();\n\t\t\t\t\t\t\t\t\tList<GroupKM> lstGroupKM = mapPromotionKM.get(promotionProgramCode);\n\t\t\t\t\t\t\t\t\tlstGroupKM.add(groupKM);\n\t\t\t\t\t\t\t\t\tgroupSPKM = groupKM.add2Level(arrPercent[i], indexKM++, i, arrPercent, lstLevelKM);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmapMuaKM.put(groupSPMua.index, groupSPKM.index);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!StringUtil.isNullOrEmpty(messageError)) {\n\t\t\t\t\terrRow.setContent14(messageError);\n\t\t\t\t\tlstDetailError.add(errRow);\n\t\t\t\t}\n\t\t\t\tfor (String promotionProgramCode : mapPromotionType.keySet()) {\n\t\t\t\t\tsplitGroup(mapPromotionMua.get(promotionProgramCode), mapPromotionKM.get(promotionProgramCode), mapMuaKM, promotionProgramCode, lstProductPromo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tprotected void createCompHeader() {\n\t\tString headerTxt = \"Cohorts Report\";\n\t\tiDartImage icoImage = iDartImage.PAVAS;\n\t\tbuildCompdHeader(headerTxt, icoImage);\n\t}", "public void exportXLS() {\n\t\t// Create a Workbook\n\t\tWorkbook workbook = new HSSFWorkbook(); // new HSSFWorkbook() for\n\t\t\t\t\t\t\t\t\t\t\t\t// generating `.xls` file\n\n\t\t/*\n\t\t * CreationHelper helps us create instances of various things like DataFormat,\n\t\t * Hyperlink, RichTextString etc, in a format (HSSF, XSSF) independent way\n\t\t */\n\t\tCreationHelper createHelper = workbook.getCreationHelper();\n\n\t\t// Create a Sheet\n\t\tSheet sheet = workbook.createSheet(\"العقود\");\n\n\t\t// Create a Font for styling header cells\n\t\tFont headerFont = workbook.createFont();\n\t\theaderFont.setBold(true);\n\t\theaderFont.setFontHeightInPoints((short) 14);\n\t\theaderFont.setColor(IndexedColors.RED.getIndex());\n\n\t\t// Create a CellStyle with the font\n\t\tCellStyle headerCellStyle = workbook.createCellStyle();\n\t\theaderCellStyle.setFont(headerFont);\n\n\t\t// Create a Row\n\t\tRow headerRow = sheet.createRow(0);\n\n\t\tString[] columns = { \"الرقم\", \"رقم العقد \", \"تاريخ البداية\", \"تاريخ النهاية\", \"المستثمر\", \"حالة الفاتورة\" };\n\t\t// Create cells\n\t\tfor (int i = 0; i < columns.length; i++) {\n\t\t\tCell cell = headerRow.createCell(i);\n\t\t\tcell.setCellValue(columns[i]);\n\t\t\tcell.setCellStyle(headerCellStyle);\n\t\t}\n\n\t\t// Create Cell Style for formatting Date\n\t\tCellStyle dateCellStyle = workbook.createCellStyle();\n\t\tdateCellStyle.setDataFormat(createHelper.createDataFormat().getFormat(\"dd-MM-yyyy\"));\n\n\t\t// Create Other rows and cells with employees data\n\t\tint rowNum = 1;\n\t\tint num = 1;\n//\t\tfor (ContractDirect contObj : contractsDirectList) {\n//\t\t\tRow row = sheet.createRow(rowNum++);\n//\t\t\trow.createCell(0).setCellValue(num);\n//\t\t\trow.createCell(1).setCellValue(contObj.getContractNum());\n//\n//\t\t\tif (!tableHigriMode) {\n//\t\t\t\tCell date1 = row.createCell(2);\n//\t\t\t\tdate1.setCellValue(contObj.getStartContDate());\n//\t\t\t\tdate1.setCellStyle(dateCellStyle);\n//\t\t\t\tCell date2 = row.createCell(3);\n//\t\t\t\tdate2.setCellValue(contObj.getEndContDate());\n//\t\t\t\tdate2.setCellStyle(dateCellStyle);\n//\t\t\t} else {\n//\t\t\t\tCell date1 = row.createCell(2);\n//\t\t\t\tdate1.setCellValue(contObj.getStartDate());\n//\t\t\t\tdate1.setCellStyle(dateCellStyle);\n//\t\t\t\tCell date2 = row.createCell(3);\n//\t\t\t\tdate2.setCellValue(contObj.getEndDate());\n//\t\t\t\tdate2.setCellStyle(dateCellStyle);\n//\t\t\t}\n//\n//\t\t\tInvestor inv = (Investor) dataAccessService.findEntityById(Investor.class, contObj.getInvestorId());\n//\t\t\trow.createCell(4).setCellValue(inv.getName());\n//\t\t\trow.createCell(5).setCellValue(contObj.getPayStatusName());\n//\t\t\tnum++;\n//\t\t}\n\n\t\t// Resize all columns to fit the content size\n\t\tfor (int i = 0; i < columns.length; i++) {\n\t\t\tsheet.autoSizeColumn(i);\n\t\t}\n\n\t\t// Write the output to a file\n\n\t\ttry {\n\t\t\tString path = \"D:/العقود.xls\";\n\t\t\tFileOutputStream fileOut = new FileOutputStream(path);\n\t\t\tworkbook.write(fileOut);\n\t\t\tfileOut.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\n\t\t\tworkbook.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Closing the workbook\n\n\t}", "default List<String> getinputfilehdrs(String filename){\n List<String> headerlist = new ArrayList<>();\r\n return headerlist;\r\n }", "@Test\n public void testFillInDataToTemplate() throws IOException {\n List<List<Object>> rows = new ArrayList<List<Object>>();\n\n List<String> communeStrs = Arrays.asList(\"Aclens\", \"Allaman\", \"Aubonne\", \"Apples\", \"Bière\", \"Bremblens\",\n \"Bougy-Villars\", \"Berolle\", \"Chevilly\");\n List<String> typeStrs = Arrays.asList(\"Résidence Secondaire\", \"Location\", \"Hotel\", \"Chambre\", \"Camping\",\n \"Institut\");\n\n for (int i = 0; i < 25; i++) {\n List<Object> row = new ArrayList<Object>();\n row.add(new Long(900000L + i));\n row.add(i + 1);\n row.add(communeStrs.get(i % communeStrs.size()));\n row.add(typeStrs.get(i % typeStrs.size()));\n row.add(new Long(25000L * i));\n row.add(BooleanUtils.toBoolean(i % 2));\n row.add(new Date());\n row.add(DateUtils.addDays(new Date(), i + 1));\n row.add(String.format(\"%d piéces ou moins\", i + 1));\n row.add(i + 1);\n row.add((i % 7 == 0 ? i : null));\n row.add((i % 7 == 1 ? i : null));\n row.add((i % 7 == 2 ? i : null));\n row.add((i % 7 == 3 ? i : null));\n row.add((i % 7 == 4 ? i : null));\n row.add((i % 7 == 5 ? i : null));\n row.add((i % 7 == 6 ? i : null));\n row.add(10 * i);\n row.add(200 * i);\n row.add(25 * i);\n row.add(i % 5 + 1);\n row.add(i % 6 + 1);\n row.add(BigDecimal.ZERO);\n row.add(1500 * (i + 1));\n row.add(null);\n\n rows.add(row);\n }\n\n SheetDataDto sheet1 = ExcelExportingUtil.convert2DListToSheetDto(rows, false);\n sheet1.setName(\"Data\");\n sheet1.setOverriden(true);\n // re-assign the index of the rows in the sheet to fill in the template: ignore the first two rows\n for (int i = 2; i < 2 + sheet1.getRows().size(); i++) {\n RowDataDto row = sheet1.getRows().get(i - 2);\n row.setRowNum(i);\n for (int j = 0; j < row.getCells().size(); j++) {\n CellDataDto cell = row.getCells().get(j);\n cell.setCellNum(j);\n }\n }\n\n // specify the format for col 7 and 8 (0-based)\n for (int i = 0; i < sheet1.getRows().size(); i++) {\n switch (i) {\n case 7:\n CellFormatter formatter = new CellFormatter(\"dd-MMM-yyyy\");\n formatter.setAlignment(CellStyle.ALIGN_CENTER);\n sheet1.getFormatters().add(formatter);\n break;\n\n case 8:\n CellFormatter formatter1 = new CellFormatter();\n formatter1.setWrapText(false);\n sheet1.getFormatters().add(formatter1);\n break;\n\n default:\n sheet1.getFormatters().add(null);\n break;\n }\n }\n\n InputStream input = getClass().getResourceAsStream(\"/exportData/Statistics_v0.1.xls\");\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n excelExportingService.exportToExcel(input, out, Arrays.asList(sheet1), ExcelFormatTypeEnum.XLS);\n\n FileUtils.writeByteArrayToFile(new File(\"output-template.xls\"), out.toByteArray());\n }", "private void setPOSHeadersToTable() {\r\n\t\tthis.selectedRow = -1;\r\n\t\tif(FileData.getFileModel(FileType.POS) != null) {\r\n\t\t\tColumnData.setPOSHeadersToTableData(FileData.getFileModel(FileType.POS).getFileContents().getHeaderNames());\r\n\t\t}else {\r\n\t\t\tColumnData.getTableData().setRowCount(0);\r\n\t\t}\r\n\t}", "public List<String> retrieveHeaderData(String filename) throws Exception {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn retrieveHeaderData(new XSSFWorkbook(new FileInputStream(filename)));\r\n\t}", "public static List<InputDto> readXLSXFile(File file) throws Exception {\n List<InputDto> inputDtos = new ArrayList<>();\n\n Integer i = 0;\n InputStream ExcelFileToRead = new FileInputStream(file);\n XSSFWorkbook wb = new XSSFWorkbook(ExcelFileToRead);\n\n XSSFWorkbook test = new XSSFWorkbook();\n\n XSSFSheet sheet = wb.getSheetAt(0);\n XSSFRow row;\n XSSFCell cell;\n\n Iterator rows = sheet.rowIterator();\n// ss = new String[sheet.getLastRowNum()];\n sheet.getLastRowNum();\n while (rows.hasNext()) {\n InputDto input = new InputDto();\n row = (XSSFRow) rows.next();\n Iterator cells = row.cellIterator();\n if (row.getRowNum() == 0) {\n continue; //just skip the rows if row number is 0 or 1\n }\n String s = \"\";\n while (cells.hasNext()) {\n cell = (XSSFCell) cells.next();\n\n if (cell.getCellType() == HSSFCell.CELL_TYPE_STRING) {\n// System.out.print(cell.getStringCellValue() + \" \");\n s += cell.getStringCellValue().trim() + \"|\";\n } else if (cell.getCellType() == HSSFCell.CELL_TYPE_NUMERIC) {\n// System.out.print(cell.getNumericCellValue() + \" \");\n s += cell.getRawValue().trim() + \"|\";\n } else if (cell.getCellType() == HSSFCell.CELL_TYPE_BLANK) {\n// System.out.print(cell.getNumericCellValue() + \" \");\n s += cell.getStringCellValue().trim() + \"|\";\n }\n /*else {\n //U Can Handel Boolean, Formula, Errors\n }*/\n }\n if (!s.equals(\"\") && s.split(\"\\\\|\").length == 8) {\n input.setLoadName(s.split(\"\\\\|\")[6]);\n input.setLoadSize(s.split(\"\\\\|\")[1]);\n input.setLoadDate(s.split(\"\\\\|\")[0]);\n input.setLoadPath(s.split(\"\\\\|\")[4]);\n input.setLoadType(s.split(\"\\\\|\")[2]);\n input.setCicsName(s.split(\"\\\\|\")[5]);\n input.setRowId(s.split(\"\\\\|\")[7]);\n System.out.println(input.getRowId());\n inputDtos.add(input);\n// ss[i] = s;\n\n } else {\n throw new Exception(\"EXCEL DATA IS NOT COMPELETED\");\n }\n i++;\n }\n\n return inputDtos;\n }", "public static int create(EcoSystem system){\n \n \n XSSFWorkbook workbook = new XSSFWorkbook();\n XSSFSheet sheet = workbook.createSheet(\"Customer Details\");\n\n //Custom font style for header\n CellStyle cellStyle = sheet.getWorkbook().createCellStyle();\n Font font = sheet.getWorkbook().createFont();\n font.setBold(true);\n cellStyle.setFont(font);\n \n int rowCount = 0;\n int columnCount1 = 0;\n \n //Creating header row\n \n String s[] = {\"CUSTOMER ID\",\"CUSTOMER NAME\",\"CONTACT NO.\",\"EMAIL ID\",\"USAGE(Gallons)\",\"BILLING DATE\",\"TOTAL BILL($)\"};\n Row row1 = sheet.createRow(++rowCount);\n for(String s1 : s){\n Cell header = row1.createCell(++columnCount1);\n header.setCellValue(s1);\n header.setCellStyle(cellStyle);\n }\n \n \n \n for(Network network : system.getNetworkList()){\n for(Enterprise enterprise : network.getEnterpriseDirectory().getEnterpriseList()){\n if(enterprise instanceof WaterEnterprise){\n for(Organization organization : enterprise.getOrganizationDirectory().getOrganizationList()){\n if(organization instanceof CustomerOrganization){\n for(Employee employee : organization.getEmployeeDirectory().getEmployeeList()){\n Customer customer = (Customer) employee;\n Row row = sheet.createRow(++rowCount);\n int columnCount = 0;\n for(int i = 0 ; i<7 ; i++ ){\n Cell cell = row.createCell(++columnCount);\n if(i==0){\n cell.setCellValue(customer.getId());\n }\n else if(i == 1){\n cell.setCellValue(customer.getName());\n }\n else if(i == 2){\n cell.setCellValue(customer.getContactNo());\n }\n else if(i == 3){\n cell.setCellValue(customer.getEmailId());\n }\n else if(i == 4){\n cell.setCellValue(customer.getTotalUsageVolume());\n }\n else if(i == 5){\n if(customer.getBillingDate() != null)\n cell.setCellValue(String.valueOf(customer.getBillingDate()));\n else\n cell.setCellValue(\"Bill Not yet available\");\n }\n else if(i == 6){\n if(customer.getTotalBill() != 0)\n cell.setCellValue(customer.getTotalBill());\n else\n cell.setCellValue(\"Bill Not yet available\");\n }\n }\n }\n }\n }\n }\n }\n }\n \n \n try (FileOutputStream outputStream = new FileOutputStream(\"Customer_details.xlsx\")) {\n workbook.write(outputStream);\n } catch (FileNotFoundException ex) {\n JOptionPane.showMessageDialog(null, \"File not found\");\n return 0;\n } catch (IOException ex) {\n JOptionPane.showMessageDialog(null, \"IOException\");\n return 0;\n }\n return 1;\n }", "private String createStandardGZFieldColumnHeadings()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\tfor (Entry<String, String[]> entry : standardJournalFieldColumns.entrySet())\n\t\t{\n\t\t\tif (str.length() != 0)\n\t\t\t{\n\t\t\t\tstr.append(\", \");\n\t\t\t}\n\t\t\tstr.append(entry.getKey());\n\t\t\tstr.append(\" IS '\");\n\t\t\tstr.append(getColumnHeadingFromStringArray(entry.getValue()));\n\t\t\tstr.append(\"'\");\n\n\t\t}\n\t\treturn str.toString();\n\t}", "public static void main(String[] args) throws UnsupportedEncodingException, FileNotFoundException {\n InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(\"riddles.xls\");\n\t\t\n InputStream is = new FileInputStream(new File(\"C:\\\\Users\\\\sean\\\\workspace\\\\mlymoon\\\\src\\\\main\\\\resources\\\\riddles.xls\"));\n\t\tExcelUtil eu = new ExcelUtil();\n List<Object> ls = eu.importDataFromExcel(new Item(), in, \"riddles.xls\");\n for(Object item : ls){\n \t Item i = (Item) item;\n \t System.out.println(i.getAnswer()+\"##\"+i.getConundrum());\n }\n String[] excelHeader = { \"所属区域(地市)\", \"机房\", \"机架资源情况\", \n \t \"\", \"端口资源情况\", \"机位资源情况\", \"\", \"\", \"设备资源情况\", \n \t \"\", \"\", \"IP资源情况\", \"\", \"\", \"\", \"\", \"网络设备数\" };\n /*ApplicationContext context = \n\t new ClassPathXmlApplicationContext(\"appContext.xml\");\n\t CustomerService customerService = context.getBean(\"customerService\",CustomerService.class);\n List<Customer> customers=customerService.findAll(null, null);\n FileOutputStream fout = new FileOutputStream(\"I:/students.xls\"); \n\t\tExcelUtil eu = new ExcelUtil();\n\t\teu.exportDataToExcel(customers, excelHeader, \"dddddd\", fout);*/\n\t}", "protected void addHeaderRow(Workbook wb, Sheet s, Row r) {\n\t\tint cellCnt = 0;\n\t\tcreateStringCell(r, \"Rep Name\", cellCnt++);\n\t\tcreateStringCell(r, \"Territory\", cellCnt++);\n\t\tcreateStringCell(r, \"Sample Acct. No.\", cellCnt++);\n\t\tcreateStringCell(r, \"Account Name\", cellCnt++);\n\t\tcreateStringCell(r, \"Account No.\", cellCnt++);\n\t\tcreateStringCell(r, \"Physicians\", cellCnt++);\n\t\tcreateStringCell(r, \"Units\", cellCnt++);\n\t\tcreateStringCell(r, \"Requests\", cellCnt++);\n\t\tcreateStringCell(r, \"Phone\", cellCnt++);\n\t\tcreateStringCell(r, \"Address\", cellCnt++);\n\t\tcreateStringCell(r, \"Address2\", cellCnt++);\n\t\tcreateStringCell(r, \"City\", cellCnt++);\n\t\tcreateStringCell(r, \"State\", cellCnt++);\n\t\tcreateStringCell(r, \"Zip\", cellCnt++);\n\t\tcreateStringCell(r, \"Country\", cellCnt++);\n\t}", "private static ArrayList<String> createRowHeaders(int size) {\n var rowHeaders = new ArrayList<String>();\n for (int i = 1; i <= size; i++) {\n rowHeaders.add(\"Group: \" + i);\n }\n return rowHeaders;\n }", "protected void initializeHeader() throws PiaRuntimeException, IOException{\n try{\n super.initializeHeader();\n if( firstLineOk && headersObj == null ){\n\t// someone just give us the first line\n\theadersObj = new Headers();\n }\n }catch(PiaRuntimeException e){\n throw e;\n }catch(IOException ioe){\n throw ioe;\n }\n }", "private int create(int row) throws FileNotFoundException {\n\t\tXSSFRow row0 = in.createRow(row);\r\n\t\tXSSFCell cell0row0 = row0.createCell(0);\r\n\t\t\r\n\t\tcell0row0.setCellValue(\"col_lookupName\");\r\n\r\n\t\tXSSFCell cell1row0 = row0.createCell(1);\r\n\t\t\r\n\t\tcell1row0.setCellValue(\"col_lookupType\");\r\n\r\nXSSFCell cell2row0 = row0.createCell(2);\r\n\t\t\r\n\t\tcell2row0.setCellValue(\"col_lookupTable\");\r\n\t\t\r\n\t\t\r\nXSSFCell cell3row0 = row0.createCell(3);\r\n\t\t\r\n\t\tcell3row0.setCellValue(\"col_lookupColumn\");\r\n\t\t\r\n\t\t\r\nXSSFCell cell4row0 = row0.createCell(4);\r\n\t\t\r\n\t\tcell4row0.setCellValue(\"\");\t\r\n\t\t\r\nXSSFCell cell5row0 = row0.createCell(5);\r\n\t\t\r\n\t\tcell5row0.setCellValue(\"\");\t\r\n\t\t\r\nXSSFCell cell6row0 = row0.createCell(6);\r\n\t\t\r\ncell6row0.setCellValue(\"Col_Constraints\");\r\n\r\n\r\nXSSFCell cell7row0 = row0.createCell(7);\r\n\r\ncell7row0.setCellValue(\"\");\r\n\r\n\r\n\r\nXSSFCell cell8row0 = row0.createCell(8);\r\n\r\ncell8row0.setCellValue(\"\");\r\n\r\n\t\t\r\n\t\r\nXSSFCell cell9row0 = row0.createCell(9);\r\n\r\ncell9row0.setCellValue(\"\");\r\n\r\n\r\nXSSFCell cell10row0 = row0.createCell(10);\r\n\r\ncell10row0.setCellValue(\"Col_Pagination\");\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t// Placing column headings below the row.\r\n\t\tXSSFRow row1 = in.createRow(1);\r\n\t\tXSSFCell cell3row1 = row1.createCell(3);\r\n\t\t\r\n\t\tcell3row1.setCellValue(\"Col_desplayName\");\r\n\r\n\t\tXSSFCell cell4row1 = row1.createCell(4);\r\n\t\t\r\n\t\tcell4row1.setCellValue(\"Col_columnName\");\r\n\r\n\t\tXSSFCell cell5row1 = row1.createCell(5);\r\n\t\r\n\t\tcell5row1.setCellValue(\"Col_searchable\");\r\n\r\n\t\tXSSFCell cell6row1 = row1.createCell(6);\r\n\t\r\n\t\tcell6row1.setCellValue(\"Col_constraintColumn\");\r\n\r\n\t\tXSSFCell cell7row1 = row1.createCell(7);\r\n\t\t\r\n\t\tcell7row1.setCellValue(\"Col_constraintOperator\");\r\n\r\n\t\tXSSFCell cell8row1 = row1.createCell(8);\r\n\t\t\r\n\t\tcell8row1.setCellValue(\"Col_constraintValue\");\r\n\r\n\t\tXSSFCell cell9row1 = row1.createCell(9);\r\n\t\t\r\n\t\tcell9row1.setCellValue(\"Col_parameterName\");\r\n\r\n\t\tXSSFCell cell10row1 = row1.createCell(10);\r\n\t\t\r\n\t\tcell10row1.setCellValue(\"Col_allowed\");\r\n\t\t\r\n\t\t\r\nXSSFCell cell11row1 = row1.createCell(11);\r\n\t\t\r\n\t\tcell11row1.setCellValue(\"Col_recordsPerPage\");\r\n\t\t\r\n\t\t\r\n\t\tin.addMergedRegion(new CellRangeAddress(0,0,3,5));\r\n\t\tin.addMergedRegion(new CellRangeAddress(0,0,6,9));\r\n\t\tin.addMergedRegion(new CellRangeAddress(0,0,10,11));\r\n\t\t\r\n\t\t\r\n\t\tin.autoSizeColumn(0);\r\n\t\tin.autoSizeColumn(1);\r\n\t\tin.autoSizeColumn(2);\r\n\t\tin.autoSizeColumn(3);\r\n\t\tin.autoSizeColumn(4);\r\n\t\tin.autoSizeColumn(5);\r\n\t\tin.autoSizeColumn(6);\r\n\t\tin.autoSizeColumn(7);\r\n\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t FileOutputStream outputStream = new FileOutputStream(\"D://jsonFormatRAHULKADYANbyRAHULKADYAN.xlsx\");\r\n try {\r\n\t\t\tworkbook.write(outputStream);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n /* try {\r\n\t//\t\tworkbook.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}*/\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t\treturn row;\r\n\t}", "public void createDisplayHeader()\r\n\t{\r\n\t\tboolean isEType;\r\n\t\tint currentK, lowestJValue, highestJValue;\r\n\r\n\t\t// redundant now\r\n\t\tisEType = getIsEType();\r\n\t\tcurrentK = getCurrentK();\r\n\t\tlowestJValue = getLowestJValue();\r\n\t\thighestJValue = getHighestJValue();\r\n\r\n\t\tString symmetry;\r\n\t\tString kOutput;\r\n\r\n\t\tif (isEType) {\r\n\t\t\tif (currentK >= 0) {\r\n\t\t\t\tkOutput = currentK + \"\";\r\n\t\t\t\tsymmetry = \"E1\";\r\n\t\t\t} else {\r\n\t\t\t\tkOutput = Math.abs(currentK) + \"\";\r\n\t\t\t\tsymmetry = \"E2\";\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tkOutput = Math.abs(currentK) + \"\";\r\n\t\t\tsymmetry = \"A\";\r\n\r\n\t\t\tif (currentK >= 0) {\r\n\t\t\t\tkOutput += \"+\";\r\n\t\t\t} else {\r\n\t\t\t\tkOutput += \"-\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString ls = System.lineSeparator();\r\n\t\tmainHeader = \"================================================================\"\r\n\t\t\t\t+ ls + \"Symmetry type:\\t\\t\\t\\t\\t\" + symmetry + ls\r\n\t\t\t\t+ \"The K of the lower energy is:\\t\\t\\t\" + kOutput + ls + \"The input \"\r\n\t\t\t\t+ INPUT_BRANCH_TYPE + \" branch was flipped:\\t\\t\\t\" + inputIsFlipped + ls\r\n\t\t\t\t+ \"The input \" + INPUT_BRANCH_TYPE + \" branch used a J range of:\\t\\t\"\r\n\t\t\t\t+ lowestJValue + \" to \" + highestJValue\r\n\t\t\t\t+ ls + ls + \"Results for these selections are...\" + ls;\r\n\r\n\t\tsetHeaderDisplayState(true);\r\n\t}", "private ArrayList<String> getSpecimenColumns(String header) {\n Hashtable<String, String> columnTranslations = getColumnTranslations();\r\n \r\n String[] headers = header.split(\"\\t\", -1); // -1 doesn't remove empty elements\r\n //A.log(\"getSpecimenColumns() header:\" + header + \" headers:\" + headers);\r\n \r\n ArrayList<String> colList = new ArrayList<>();\r\n \r\n for (String theHead : headers) {\r\n theHead = theHead.trim();\r\n\r\n if (getHeaderArrayList().contains(theHead)) {\r\n if (columnTranslations.containsKey(theHead)) {\r\n theHead = columnTranslations.get(theHead);\r\n }\r\n colList.add(theHead);\r\n } else {\r\n //s_log.warn(\"getSpecimenColumns() !!!!!! theHead not found:\" + theHead);\r\n colList.add(null);\r\n }\r\n }\r\n\r\n //A.log(\"getSpecimenColumns() size:\" + colList.size() + \" colList:\" + colList);\r\n //A.log(\"getSpecimenColumns(\" + header + \") done\");\r\n return colList;\r\n }", "void setHeaderInfo(float rFree, float rWork, float resolution, String title, String depositionDate, \n\t\t\tString releaseDate, String[] experimnetalMethods);", "public ArrayList<String> getData(String testcaseName) throws IOException\n{\n//fileInputStream argument\nArrayList<String> a=new ArrayList<String>();\n\nFileInputStream fis=new FileInputStream(\"D://TestCases.xlsx\");\nXSSFWorkbook workbook=new XSSFWorkbook(fis);\n\nint sheets=workbook.getNumberOfSheets();\n}", "@PostConstruct\n public void init() {\n this.facts.addAll(checkExtractor.obtainFactList());\n this.facts.addAll(facebookExtractor.obtainFactList());\n this.facts.addAll(googleExtractor.obtainFactList());\n this.facts.addAll(linkedinExtractor.obtainFactList());\n this.facts.addAll(twitterExtractor.obtainFactList());\n\n this.checkHeader = this.utils.generateDatasetHeader(this.checkExtractor.obtainFactList());\n this.facebookHeader = this.utils.generateDatasetHeader(this.facebookExtractor.obtainFactList());\n this.googleHeader = this.utils.generateDatasetHeader(this.googleExtractor.obtainFactList());\n this.linkedinHeader = this.utils.generateDatasetHeader(this.linkedinExtractor.obtainFactList());\n this.twitterHeader = this.utils.generateDatasetHeader(this.twitterExtractor.obtainFactList());\n }", "public ExcelSimpleWriter<?> header(List<String> titles) {\n this.titles = titles;\n return this;\n }", "private void setupHeader(final String filePath) throws IOException{\n\t\tFile headerFile = new File(filePath);\n\t\tString dataString = new String();\n\t\tBufferedReader reader = new BufferedReader(new FileReader(headerFile));\n\t\twhile((dataString = reader.readLine()) != null){\n\t\t\theaderText.append(dataString);\n\t\t\theaderText.append(System.lineSeparator());\n\t\t}\n\t\treader.close();\n\t}", "private void addHeaderItems(final List<ItemBO> itemList)\n\t{\n\t\tif (itemList != null && (!itemList.isEmpty()))\n\t\t{\n\t\t\tfinal List<Integer> lineNumbersList = new ArrayList<Integer>(itemList.size());\n\t\t\tfinal List<ItemBO> headerItemsList = new ArrayList<ItemBO>();\n\t\t\tint processOrderLineNumber = 1;\n\t\t\tfor (final ItemBO anItem : itemList)\n\t\t\t{\n\t\t\t\tlineNumbersList.add(anItem.getLineNumber());\n\t\t\t\tif (ExternalSystem.EVRST == anItem.getExternalSystem())\n\t\t\t\t{\n\t\t\t\t\t//Header ItemBO for current ECC Item\n\t\t\t\t\tfinal ItemBO anHeader = new PartBO();\n\t\t\t\t\tanHeader.setDisplayPartNumber(anItem.getDisplayPartNumber());\n\t\t\t\t\tanHeader.setPartNumber(anItem.getPartNumber());\n\t\t\t\t\tanHeader.setComment(\"This is The Header Record :: \" + anItem.getPartNumber());\n\t\t\t\t\tanHeader.setInventory(anItem.getInventory());\n\t\t\t\t\tanHeader.setRequestedInventory(anItem.getRequestedInventory());\n\t\t\t\t\tanHeader.setScacCode(anItem.getScacCode());\n\t\t\t\t\tanHeader.setCarrierCode(anItem.getCarrierCode());\n\t\t\t\t\tanHeader.setShippingMethodCode(anItem.getShippingMethodCode());\n\t\t\t\t\tanHeader.setTransportationMethodCode(anItem.getTransportationMethodCode());\n\t\t\t\t\t((PartBO) anHeader).setHeader(true);\n\t\t\t\t\t((PartBO) anHeader).setProcessOrderLineNumber(processOrderLineNumber);\n\n\t\t\t\t\tanHeader.setItemQty(anItem.getItemQty());\n\t\t\t\t\tanHeader.setExternalSystem(ExternalSystem.EVRST);\n\n\t\t\t\t\t//Make Sure Actual Item also has the same ProcessOrderLineNumber\n\t\t\t\t\tanItem.setProcessOrderLineNumber(processOrderLineNumber);\n\n\t\t\t\t\theaderItemsList.add(anHeader);\n\t\t\t\t\tprocessOrderLineNumber++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!headerItemsList.isEmpty())\n\t\t\t{\n\t\t\t\t//Find the Highest line number\n\t\t\t\tArrays.sort(lineNumbersList.toArray());\n\t\t\t\tint itemLineNumber = lineNumbersList.get(lineNumbersList.size() - 1);\n\t\t\t\tfor (final ItemBO headerItem : headerItemsList)\n\t\t\t\t{\n\t\t\t\t\theaderItem.setLineNumber(++itemLineNumber);\n\t\t\t\t}\n\t\t\t\t//Make Sure the Header Items are inserted first - Enforced by ECC RFC\n\t\t\t\titemList.addAll(0, headerItemsList);\n\t\t\t\tlogger.debug(\"addHeaderItems(...): Added Header Items for ECC Items \" + headerItemsList.size());\n\t\t\t}\n\t\t}\n\t}", "private void initializeAnimalHeader() {\r\n\t\t//initialize text\r\n\t\tTextProperties textProps = new TextProperties();\r\n\t\ttextProps.set(AnimationPropertiesKeys.FONT_PROPERTY, new Font(\"SansSerif\", Font.BOLD, 24));\r\n\t\ttextProps.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 1);\r\n\t\tlang.newText(new Coordinates(20, 30), \"ShiftRows\", \"header\", null, textProps);\r\n\t\t//initialize rectangle\r\n\t\tRectProperties hRectProps = new RectProperties();\r\n\t\thRectProps.set(AnimationPropertiesKeys.DEPTH_PROPERTY, 2);\r\n\t\tlang.newRect(new Offset(-5, -5, \"header\", AnimalScript.DIRECTION_NW), new Offset(5, 5, \"header\", AnimalScript.DIRECTION_SE), \"hRect\", null, hRectProps);\r\n\t}", "public void testCreateNewFile() {\n List<SheetDataDto> data = new ArrayList<SheetDataDto>();\n RowDataDto headerRow = new RowDataDto();\n headerRow.getCells().add(new CellDataDto(\"Col 1\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 2\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 3\", CellDataTypeEnum.TEXT));\n headerRow.getCells().add(new CellDataDto(\"Col 4\", CellDataTypeEnum.TEXT));\n\n SheetDataDto sheet1 = new SheetDataDto();\n sheet1.setName(\"First sheet\");\n sheet1.setHeaderRow(headerRow);\n\n RowDataDto row1 = new RowDataDto();\n row1.getCells().add(new CellDataDto(1d, CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(\"IF(A2 > 0, \\\"1\\\", \\\"0\\\")\", CellDataTypeEnum.FORMULAR));\n row1.getCells().add(new CellDataDto(\"123456789\", CellDataTypeEnum.NUMBER));\n row1.getCells().add(new CellDataDto(new Date(), CellDataTypeEnum.DATE));\n\n sheet1.getRows().add(row1);\n data.add(sheet1);\n\n excelExportingService.exportToExcel(\"t1.xls\", data, false, ExcelFormatTypeEnum.XLS);\n excelExportingService.exportToExcel(\"t1.xlsx\", data, false, ExcelFormatTypeEnum.XLSX);\n }", "private void initializeGUITableHeaders(){\n TableColumn<HeapData, Integer> addressColumn = new TableColumn<>(\"Address\");\n addressColumn.setCellValueFactory(new PropertyValueFactory<>(\"address\"));\n TableColumn<HeapData, String> valueColumn = new TableColumn<>(\"Value\");\n valueColumn.setCellValueFactory(new PropertyValueFactory<>(\"value\"));\n valueColumn.setMinWidth(100);\n this.heapTableList.getColumns().addAll(addressColumn, valueColumn);\n\n TableColumn<SymbolData, String> variableNameColumn = new TableColumn<>(\"Variable Name\");\n variableNameColumn.setCellValueFactory(new PropertyValueFactory<>(\"variableName\"));\n variableNameColumn.setMinWidth(100);\n TableColumn<SymbolData, String> valColumn = new TableColumn<>(\"Value\");\n valColumn.setCellValueFactory(new PropertyValueFactory<>(\"value\"));\n symbolTableList.getColumns().addAll(variableNameColumn, valColumn);\n\n TableColumn<SemaphoreData,String> indexColumn = new TableColumn<>(\"Index\");\n indexColumn.setCellValueFactory(new PropertyValueFactory<>(\"index\"));\n TableColumn<SemaphoreData,Integer> valueColumnSem = new TableColumn<>(\"Value\");\n valueColumnSem.setCellValueFactory(new PropertyValueFactory<>(\"value\"));\n TableColumn<SemaphoreData,ArrayList<Integer>>valuesColumn = new TableColumn<>(\"Values\");\n valuesColumn.setCellValueFactory(new PropertyValueFactory<>(\"values\"));\n this.semaphoreTable.getColumns().addAll(indexColumn,valueColumnSem,valuesColumn);\n\n }", "public Step1() {\n initComponents();\n FileFilter filter1 = new ExtensionFileFilter(\"Excel .xls\", new String[] { \"xls\" });\n jFileChooser1.setFileFilter(filter1);\n jFileChooser1.addChoosableFileFilter(filter1);\n jFileChooser1.setMultiSelectionEnabled(false);\n }", "private String GetThreeColHeader(String col1Title, String col2Title, String col3Title) {\n\t\t\n\t\tStringBuffer ret = new StringBuffer();\n\t\tEntItemReportPrint.COL3_ITEMNAME = this.charSize - EntItemReportPrint.FIXED_COL3_QTY - EntItemReportPrint.FIXED_COL3_TOTAL;\n\t\tString title1 = StringUtil.padRight(col1Title, EntItemReportPrint.COL3_ITEMNAME);\n\t\tString title2 = StringUtil.padRight(col2Title, EntItemReportPrint.FIXED_COL3_QTY);\n\t\tString title3 = StringUtil.padLeft(col3Title, EntItemReportPrint.FIXED_COL3_TOTAL);\n\t\tret.append(title1).append(title2).append(title3).append(reNext);\n\n\t\treturn ret.toString();\n\t}", "@Test\n public void ReadTemplateXLSX() throws Exception {\n int expected = 2;\n int actual = 0;\n Workbook book = readTemplateXLSX(\"src\\\\TestSuite\\\\SampleFiles\\\\template_supervisor.xlsx\");\n Sheet sheet = book.getSheetAt(0);\n Iterator<Row> iterator = sheet.iterator();\n\n while (iterator.hasNext()) {\n Row nextRow = iterator.next();\n Iterator<Cell> cellIterator = nextRow.cellIterator();\n\n while (cellIterator.hasNext()) {\n Cell cell = cellIterator.next();\n switch (cell.getCellTypeEnum()) {\n case STRING:\n if (cell.getRichStringCellValue().getString().trim().equals(\"Students Name:\")) {\n actual = nextRow.getRowNum();\n }\n }\n }\n }\n\n Assert.assertEquals(expected, actual);\n }", "public void expandCells() {\n\t\t//For the first pollutant create a new set of files\n\t\tString[] pollutants = factorsTable.keySet().toArray(new String[1]);\n\t\t\n\t\t//Now, for each row, we need to expand the total flow for each \n\t\t//type of day and for each hour of the day.\n\t\tdouble[] factorsRow = null;\n\t\tString key = null;\n\t\tfor(String type:types){\n\t\t\ttotalsTable = new TableTotal(0, 83, 84);\n\t\t\ttotalsTable.setLabels(pollutants);\n\t\t\tfor(int i=0;i<nHours;i++){\t\n\t\t\t\tkey = pollutants[0];\n\t\t\t\tfactorsRow = factorsTable.get(key);\n\t\t\t\t//Open the output file\n\t\t\t\tOutputSheet outputSheet =new OutputSheet(outputModel);\n\t\t\t\toutputSheet.setPost(\"_\"+key+\"_\"+type+\"_\"+(i*100));\n\t\t\t\t\n\t\t\t\t//Get iterator to all the rows in current sheet\n\t\t\t\tIterator<Row> rowIterator = cells.iterator();\n\t\t\t\trowIterator.next();//Ignore the column names. We actually know it.\n\t\t\t\tRow row = null;//The current cell\n\t\t\t\t//int k=0;\n\t\t\t\twhile(rowIterator.hasNext()){\n\t\t\t\t\t//System.out.println(k++);\n\t\t\t\t\trow = rowIterator.next();\n\t\t\t\t\tdouble sharedKey = row.getCell(CELLKEY).getNumericCellValue();\n\t\t\t\t\tint fidGrid = (int)row.getCell(CELL_FID_GRID).getNumericCellValue();\n\t\t\t\t\t//double total = row.getCell(CELLQUERY).getNumericCellValue();\n\t\t\t\t\tdouble longitude = row.getCell(CELL_LONGUITUDE).getNumericCellValue();\n\t\t\t\t\t\n\t\t\t\t\tString fullKey = Math.round(sharedKey)+type+i*100;\n\t\t\t\t\tdouble[] values = null;\n\t\t\t\t\tif(tableValues.containsKey(fullKey)){\n\t\t\t\t\t\tvalues = tableValues.get(fullKey);\n\t\t\t\t\t\toutputSheet.push(values, fidGrid, longitude);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\toutputSheet.replaceFactors(factorsRow);\n\t\t\t\toutputSheet.save();\n\t\t\t\t//Update the total\n\t\t\t\ttotalsTable.updateTotals(outputSheet.getSheet(), 0);\n\t\t\t\t\n\t\t\t\t//Now, for each other contaminant a new set of files have to be created\n\t\t\t\tfor(int k=pollutants.length-1;k>0;k--){\n\t\t\t\t\tkey=pollutants[k];\n\t\t\t\t\tfactorsRow = factorsTable.get(key);\n\t\t\t\t\toutputSheet.setPost(\"_\"+key+\"_\"+type+\"_\"+(i*100));\n\t\t\t\t\toutputSheet.replaceFactors(factorsRow);\n\t\t\t\t\toutputSheet.save();\n\t\t\t\t\t\n\t\t\t\t\t//Update the total\n\t\t\t\t\ttotalsTable.updateTotals(outputSheet.getSheet(), k);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\ttotalsTable.save(new File(outputModel.getAbsolutePath().replace(\"output.xlsx\", \"outputTotals_\"+type+\".csv\")));\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"The totals file could not be saved\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private static void showExcel(Experiment e1, ArrayList<Institution> bank) {\n\n\n\n\t\tfinal String INPUT_DIR=\"D:/Users/atsushi/Desktop/実験結果/\";\n\t\tWorkbook book=null;\n\n\t\ttry{\n\t\t\tbook = new HSSFWorkbook();\n\t\t\tFileOutputStream fileOut=new FileOutputStream(\"workbook.xls\");\n\t\t\tString safename=WorkbookUtil.createSafeSheetName(\"[OutPut]\");\n\t\t\tString safename1=WorkbookUtil.createSafeSheetName(\"[Bank]\");\n\t\t\tString safename2=WorkbookUtil.createSafeSheetName(\"[Firm]\");\n\t\t\tSheet sheet1=book.createSheet(safename);\n\t\t\tSheet sheet2=book.createSheet(safename1);\n\t\t\tSheet sheet3=book.createSheet(safename2);\n\t\t\tCreationHelper createHelper=book.getCreationHelper();\n\n\t\t\t//100タームごとに改行\n\t\t\tint rowterm=e1.getTerm()/100+1;\n\t\t\tint term=e1.getTerm();\n\t\t\tint xterm=100;\n\t\t\tint a=0,b=xterm-1;\n\t\t\t//if(e1.getTerm()>100) {xterm=100;a=0;b=xterm-1;}else {xterm=0;a=0;b=e1.getTerm()-1;}\n\t\t\tfor(int x=0;x<rowterm;x++){\n\t\t\tRow row = sheet1.createRow((short)x);//行\n\t\t\tRow row1=sheet1.createRow((short)(x+rowterm+2));\n\t\t\tRow row2=sheet1.createRow((short)(x+rowterm*2+2));\n\t\t\tRow row3=sheet1.createRow((short)(x+rowterm*3+2));\n\t\t\tRow row4=sheet1.createRow((short)(x+rowterm*4+2));\n\t\t\tRow row5=sheet1.createRow((short)(x+rowterm*5+2));\n\t\t\tRow row6=sheet1.createRow((short)(x+rowterm*6+2));\n\t\t\tRow row7=sheet1.createRow((short)(x+rowterm*7+2));\n\t\t\tRow row8=sheet1.createRow((short)(x+rowterm*8+2));\n\t\t\tRow row9=sheet1.createRow((short)(x+rowterm*9+2));\n\t\t\tRow row10=sheet1.createRow((short)(x+rowterm*10+2));\n\t\t\tRow row11=sheet1.createRow((short)(x+rowterm*11+2));\n\t\t\tRow row12=sheet1.createRow((short)(x+rowterm*12+2));\n\t\t\tRow row13=sheet1.createRow((short)(x+rowterm*11+2));\n\n\t\t\tint j=0;\n\t\t\tfor(j=a;j<=b;j++){\n\t\t\trow.createCell(j-(x*xterm)).setCellValue(e1.getAgrregateOP(j));\n\t\t\trow1.createCell(j-(x*xterm)).setCellValue(e1.getGrowthRateOP(j));\n\t\t\trow2.createCell(j-(x*xterm)).setCellValue(e1.getFailedFirm(j));\n\t\t\trow3.createCell(j-(x*xterm)).setCellValue(e1.getFailedFirmrate(j));\n\t\t\trow4.createCell(j-(x*xterm)).setCellValue(e1.getBadLoan(j));\n\t\t\trow5.createCell(j-(x*xterm)).setCellValue(e1.getAVGInterest(j));\n\t\t\trow6.createCell(j-(x*xterm)).setCellValue(e1.getMoneyStock(j));\n\t\t\trow7.createCell(j-(x*xterm)).setCellValue(e1.getCreditMoney(j));\n\t\t\trow8.createCell(j-(x*xterm)).setCellValue(e1.getResidual(j));\n\t\t\trow9.createCell(j-(x*xterm)).setCellValue(e1.getGrossDemand(j));\n\t\t\trow10.createCell(j-(x*xterm)).setCellValue(e1.getGrossSupply(j));\n\t\t\trow11.createCell(j-(x*xterm)).setCellValue(e1.getRejectFinancing(j));\n\n\n\t\t //cell.setCellValue(createHelper.createRichTextString(\"sample String\"));\n\t\t\t}\n\t\t\t/*\n\t\t\tfor(j=a;j<e1.getAliveBank();j++) {\n\t\t\t\trowx.createCell(j-(x*e1.getAliveBank())).setCellValue(e1.getBankCAR(j));\n\t\t\t}*/\n\t\t\tif(term>100){\n\t\t\tif(term-1>xterm+j){\n\t\t\t\tif(term-j-1>xterm){\n\t\t\t\t\ta=j;b=j+xterm-1;\n\t\t\t\t}}else{\n\t\t\t\t\ta=j;\n\t\t\t\t\tb=term-1;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t}\n\n\t\t\t//企業list\n\t\t\te1.setSortFirmK();\n\t\t\tint rowfirm=e1.getalivefirm()/100;\n\t\t\tint firmnode=e1.getalivefirm();\n\t\t\tint fn=100;\n\t\t\tint c=0,d=fn-1;\n\t\t\tint t=0;\n\n\t\t\tRow row00= sheet3.createRow((short)t);\n\t\t\trow00.createCell(0).setCellValue(\"総資産\");\n\t\t\tRow row02=sheet3.createRow((short)t+15);\n\t\t\trow02.createCell(0).setCellValue(\"取引先\");\n\t\t\tRow row04=sheet3.createRow((short)t+30);\n\t\t\trow04.createCell(0).setCellValue(\"Leverage\");\n\t\t\tRow row06=sheet3.createRow((short)t+45);\n\t\t\trow06.createCell(0).setCellValue(\"ChoiveLeverage\");\n\t\t\tRow row08=sheet3.createRow((short)t+60);\n\t\t\trow08.createCell(0).setCellValue(\"RejectOrder\");\n\t\t\tRow row010=sheet3.createRow((short)t+75);\n\t\t\trow010.createCell(0).setCellValue(\"NonBuffer\");\n\t\t\t\tfor(int x=0;x<rowfirm;x++){\n\t\t\t\t/*\n\t\t\t\t\tRow row0= sheet3.createRow((short)x);\n\t\t\t\t\trow0.createCell(0).setCellValue(\"総資産\");\n\t\t\t\t\t*/\n\t\t\t\t\tRow row1 = sheet3.createRow((short)x+1);//行\n\t\t\t\t\tRow row3 = sheet3.createRow((short)x+16);\n\t\t\t\t\tRow row5 = sheet3.createRow((short)x+31);\n\t\t\t\t\tRow row7 = sheet3.createRow((short)x+46);\n\t\t\t\t\tRow row9 =sheet3.createRow((short)x+61);\n\t\t\t\t\tRow row11 =sheet3.createRow((short)x+76);\n\t\t\t\tint j=0;\n\t\t\t\tfor(j=c;j<=d;j++){\n\t\t\t\t\t//System.out.print(d);\n\t\t\t\t\trow1.createCell(j-(x*fn)).setCellValue(e1.getFirmK(j));\n\t\t\t\t\trow3.createCell(j-(x*fn)).setCellValue(e1.getFirmCandidateNum(j));\n\t\t\t\t\trow5.createCell(j-(x*fn)).setCellValue(e1.getFirmLeverage(j));\n\t\t\t\t\trow7.createCell(j-(x*fn)).setCellValue(e1.getFirmnextLeverage(j));\n\t\t\t\t\trow9.createCell(j-(x*fn)).setCellValue(e1.getFirmRejectOrderNum(j));\n\t\t\t\t\trow11.createCell(j-(x*fn)).setCellValue(e1.getFirmNonBufferNum(j));\n\t\t\t\t}\n\n\t\t\t\tif(firmnode-1>fn+j){\n\t\t\t\t\tif(firmnode-j-1>fn){\n\t\t\t\t\t\tc=j;d=j+fn-1;\n\t\t\t\t\t}}else{\n\t\t\t\t\t\tc=j;\n\t\t\t\t\t\td=firmnode-1;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\t/*\n\t\t\t\tif(rowfirm==0) {\n\t\t\t\t\tint x=0;\n\t\t\t\t\tRow row0= sheet3.createRow((short)x);\n\t\t\t\t\trow0.createCell(0).setCellValue(\"総資産\");\n\t\t\t\t\tRow row1 = sheet3.createRow((short)x);//行\n\t\t\t\t\tRow row2=sheet3.createRow((short)x+15);\n\t\t\t\t\trow2.createCell(0).setCellValue(\"取引先\");\n\t\t\t\t\tRow row3 = sheet3.createRow((short)x);\n\t\t\t\t\tRow row4=sheet3.createRow((short)x+30);\n\t\t\t\t\trow4.createCell(0).setCellValue(\"Leverate\");\n\t\t\t\t\tRow row5 = sheet3.createRow((short)x);\n\t\t\t\t\tRow row6=sheet3.createRow((short)x+45);\n\t\t\t\t\trow6.createCell(0).setCellValue(\"ChoiveLeverage\");\n\t\t\t\t\tRow row7 = sheet3.createRow((short)x);\n\t\t\t\t\t//Row row8 = sheet3.createRow((short)x);\n\t\t\t\t\t//Row row9=sheet3.createRow((short)x+20);\n\t\t\t\tfor(int i=0;i<firmnode;i++) {\n\t\t\t\t\trow1.createCell(i).setCellValue(e1.getFirmK(i));\n\t\t\t\t\trow3.createCell(i).setCellValue(e1.getFirmCandidateNum(i));\n\t\t\t\t\trow5.createCell(i).setCellValue(e1.getFirmLeverage(i));\n\t\t\t\t\trow7.createCell(i).setCellValue(e1.getFirmnextLeverage(i));\n\t\t\t\t\t//row4.createCell(i).setCellValue(e1.getFirmLevNowEvalue(i));\n\t\t\t\t}\n\t\t\t\t}\n*/\n\n\t\t\t//銀行リスト\n\n\t\t\tint banknode=e1.getAliveBank();\n\n\t\t\tfor(int x=0;x<1;x++) {\n\t\t\tRow row0=sheet2.createRow((short)x);\n\t\t\tRow row1=sheet2.createRow((short)x+2);\n\t\t\trow1.createCell(0).setCellValue(\"CAR\");\n\t\t\tRow row2=sheet2.createRow((short)x+3);\n\t\t\tRow row3=sheet2.createRow((short)x+4);\n\t\t\trow3.createCell(0).setCellValue(\"企業への貸付:IBloan:IBborrow\");\n\t\t\tRow row4=sheet2.createRow((short)x+5);\n\t\t\tRow row5=sheet2.createRow((short)x+6);\n\t\t\tRow row6=sheet2.createRow((short)x+7);\n\t\t\tRow row7=sheet2.createRow((short)x+8);\n\t\t\trow7.createCell(0).setCellValue(\"銀行資産規模K\");\n\t\t\tRow row8=sheet2.createRow((short)x+9);\n\t\t\tRow row9=sheet2.createRow((short)x+10);\n\t\t\trow9.createCell(0).setCellValue(\"銀行buffer\");\n\t\t\tRow row10=sheet2.createRow((short)x+11);\n\t\t\tRow row11=sheet2.createRow((short)x+12);\n\t\t\trow11.createCell(0).setCellValue(\"銀行総badloan\");\n\t\t\tRow row12=sheet2.createRow((short)x+13);\n\t\t\tRow row13=sheet2.createRow((short)x+14);\n\t\t\trow13.createCell(0).setCellValue(\"銀行residual\");\n\t\t\tRow row14=sheet2.createRow((short)x+15);\n\t\t\tRow row15=sheet2.createRow((short)x+16);\n\t\t\trow15.createCell(0).setCellValue(\"銀行総LFlistsize\");\n\t\t\tRow row16=sheet2.createRow((short)x+17);\n\t\t\tRow row17=sheet2.createRow((short)x+18);\n\t\t\trow17.createCell(0).setCellValue(\"銀行市場性資産\");\n\t\t\tRow row18=sheet2.createRow((short)x+19);\n\t\t\tRow row19=sheet2.createRow((short)x+20);\n\t\t\trow19.createCell(0).setCellValue(\"ClientNumber\");\n\t\t\tRow row20=sheet2.createRow((short)x+21);\n\n\t\t\tfor(int i=0;i<banknode;i++) {\n\t\t\trow0.createCell(i).setCellValue(e1.getBankId(i));\n\t\t\trow2.createCell(i).setCellValue(e1.getBankCAR(i));\n\t\t\trow4.createCell(i).setCellValue(e1.getBankLf(i));\n\t\t\trow5.createCell(i).setCellValue(e1.getBankLb(i));\n\t\t\trow6.createCell(i).setCellValue(e1.getBankBb(i));\n\t\t\trow8.createCell(i).setCellValue(e1.getBankK(i));\n\t\t\trow10.createCell(i).setCellValue(e1.getBankBuffer(i));\n\t\t\trow12.createCell(i).setCellValue(e1.getBankGrossBadLoan(i));\n\t\t\trow14.createCell(i).setCellValue(e1.getBankResidual(i));\n\t\t\trow16.createCell(i).setCellValue(e1.getBankLFSize(i));\n\t\t\trow18.createCell(i).setCellValue(e1.getBankLiqAsset(i));\n\t\t\trow20.createCell(i).setCellValue(e1.getBankClientNum(i));\n\t\t\t}\n\t\t\t/*\n\t\t\tfor(int i=0;i<bank.get(0).levlist.size();i++) {\n\t\t\t\trow18.createCell(i).setCellValue(e1.getBanklevlevelvalue(i));\n\t\t\t}\n\t\t\t*/\n\n\n\n\n\n\t\t\t}\n\t\t book.write(fileOut);\n\t\t //fileOut.close();\n\n\t\t // 1つ目のセルを作成 ※行と同じく、0からスタート\n\t\t //Cell a1 = row.createCell(0); // Excel上、「A1」の場所\n\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}finally{\n\n\n\t\t}\n\n\n\t}", "public static void Read() throws IOException {\n\t\tFile file = new File(\"C:\\\\Users\\\\villu\\\\Documents\\\\Book12.xlsx\");\n\t\tFileInputStream excel= new FileInputStream(file);\n\t\tXSSFWorkbook workbook= new XSSFWorkbook(excel);\n\t\tXSSFSheet sheet= workbook.getSheetAt(0);\n\t\tIterator<Row> rowIterator=sheet.iterator();\n\t\twhile(rowIterator.hasNext()) {\n\t\t\tRow rowvalue=rowIterator.next();\n\t\t\tIterator<Cell> columnIterator=rowvalue.cellIterator();\n\t\t\tint i = 1;\n\t\t\twhile(columnIterator.hasNext()) \n\t\t\t{\n\t\t\t\tif(i==1) {\n\t\t\t\t\tFirst_Name.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\t\t\t\telse if(i==2)\n\t\t\t\t{\n\t\t\t\t\tMiddle_Name.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\t\t\t\telse if(i==3)\n\t\t\t\t{\n\t\t\t\t\tLast_Name.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\t\t\t\telse if(i==4)\n\t\t\t\t{\n\t\t\t\t\tUser_Name.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\t\t\t\telse if(i==5)\n\t\t\t\t{\n\t\t\t\t\tEmployee_Id.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\t\t\t\telse if(i==6)\n\t\t\t\t{\n\t\t\t\t\tPassword.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\t\t\t\telse if(i==7)\n\t\t\t\t{\n\t\t\t\t\tGender.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tMarital_Status.add(columnIterator.next().toString());\n\t\t\t\t\t}\n\n\t\t\t\ti++;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t}workbook.close();\n\t\n}", "public static ByteArrayInputStream toexcelEduEmpReport(List<USEduEmpReportEntity> eduempreportlist) {\r\n\r\n\t\ttry (Workbook workbook = new XSSFWorkbook(); ByteArrayOutputStream out = new ByteArrayOutputStream();) {\r\n\t\t\tSheet sheet = workbook.createSheet(CommonConstants.SHEET);\r\n\r\n\t\t\t// Header\r\n\t\t\tRow headerRow = sheet.createRow(0);\r\n\r\n\t\t\tfor (int col = 0; col < CommonConstants.EDU_EMP_REPORT_HEADER.length; col++) {\r\n\t\t\t\tCell cell = headerRow.createCell(col);\r\n\t\t\t\tcell.setCellValue(CommonConstants.EDU_EMP_REPORT_HEADER[col]);\r\n\t\t\t}\r\n\r\n\t\t\tint rowIdx = 1;\r\n\t\t\tlogger.info(eduempreportlist);\r\n\t\t\tfor (USEduEmpReportEntity excel : eduempreportlist) {\r\n\t\t\t\tfor (int i = 0; i < excel.getCom().length; i++) {\r\n\t\t\t\t\tRow row = sheet.createRow(rowIdx++);\r\n\t\t\t\t\tif (excel.getRefid() != null)\r\n\t\t\t\t\t\trow.createCell(0).setCellValue(excel.getRefid());\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\trow.createCell(0).setCellValue(\" \");\r\n\t\t\t\t\tif (excel.getMiddlename() != null)\r\n\t\t\t\t\t\trow.createCell(1).setCellValue(\r\n\t\t\t\t\t\t\t\texcel.getFirstname() + \" \" + excel.getMiddlename() + \" \" + excel.getLastname());\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\trow.createCell(1).setCellValue(excel.getFirstname() + \" \" + excel.getLastname());\r\n\t\t\t\t\tif (excel.getDoctDegree() != null)\r\n\t\t\t\t\t\trow.createCell(2).setCellValue(excel.getDoctDegree());\r\n\t\t\t\t\telse if (excel.getMasterDegree() != null)\r\n\t\t\t\t\t\trow.createCell(2).setCellValue(excel.getMasterDegree());\r\n\t\t\t\t\telse if (excel.getBachDegree() != null)\r\n\t\t\t\t\t\trow.createCell(2).setCellValue(excel.getBachDegree());\r\n\t\t\t\t\telse if (excel.getAssDegree() != null)\r\n\t\t\t\t\t\trow.createCell(2).setCellValue(excel.getAssDegree());\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\trow.createCell(2).setCellValue(\" \");\r\n\t\t\t\t\tif (excel.getTotalExp() != null)\r\n\t\t\t\t\t\trow.createCell(3).setCellValue(excel.getTotalExp());\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\trow.createCell(3).setCellValue(\" \");\r\n\t\t\t\t\tif (excel.getRelExp() != null)\r\n\t\t\t\t\t\trow.createCell(4).setCellValue(excel.getRelExp());\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\trow.createCell(4).setCellValue(\" \");\r\n\t\t\t\t\tString[] strCom = excel.getCom();\r\n\t\t\t\t\tif (strCom[i] != null)\r\n\t\t\t\t\t\trow.createCell(5).setCellValue(strCom[i]);\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\trow.createCell(5).setCellValue(\" \");\r\n\t\t\t\t\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"MM-dd-yyyy\");\r\n\t\t\t\t\tDate[] dateFrom = excel.getComFrom();\r\n\t\t\t\t\tString dateFrom1 = simpleDateFormat.format(dateFrom[i]);\r\n\t\t\t\t\tif (dateFrom1 != null)\r\n\t\t\t\t\t\trow.createCell(6).setCellValue(dateFrom1);\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\trow.createCell(6).setCellValue(\" \");\r\n\t\t\t\t\tDate[] dateTo = excel.getComTo();\r\n\t\t\t\t\tString dateTo1 = simpleDateFormat.format(dateTo[i]);\r\n\t\t\t\t\tif (dateTo1 != null)\r\n\t\t\t\t\t\trow.createCell(7).setCellValue(dateTo1);\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\trow.createCell(7).setCellValue(\" \");\r\n\t\t\t\t\tif (excel.getExTCSEmp() != null)\r\n\t\t\t\t\t\trow.createCell(8).setCellValue(excel.getExTCSEmp());\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\trow.createCell(8).setCellValue(\" \");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tworkbook.write(out);\r\n\t\t\treturn new ByteArrayInputStream(out.toByteArray());\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"fail to import data to Excel file: \" + e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n protected void buildExcelDocument(Map<String, Object> model, Workbook workbook,\n HttpServletRequest request, HttpServletResponse response) throws Exception {\n response.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"Du Report.xls\\\"\");\n\n @SuppressWarnings(\"unchecked\")\n List<ReportByGroup> reportList = (List<ReportByGroup>) model.get(\"reportList\");\n\n String[] month = new String[] { \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\", \"January\",\n \"February\", \"March\" };\n\n // create excel xls sheet\n Sheet sheet = workbook.createSheet(\"Report Du Detail\");\n // sheet.setDefaultColumnWidth(12);\n\n // create style for header cells\n CellStyle style = workbook.createCellStyle();\n Font font = workbook.createFont();\n font.setFontName(\"Arial\");\n style.setFillForegroundColor(HSSFColor.BLUE.index);\n style.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n style.setAlignment(HorizontalAlignment.CENTER);\n style.setWrapText(true);\n style.setBorderRight(BorderStyle.THIN);\n style.setRightBorderColor(IndexedColors.BLACK.getIndex());\n style.setBorderLeft(BorderStyle.THIN);\n style.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n style.setBorderTop(BorderStyle.THIN);\n style.setTopBorderColor(IndexedColors.BLACK.getIndex());\n style.setBorderBottom(BorderStyle.THIN);\n style.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n font.setBold(true);\n font.setColor(HSSFColor.WHITE.index);\n style.setFont(font);\n\n CellStyle style1 = workbook.createCellStyle();\n // style1.setAlignment(HorizontalAlignment.CENTER);\n // style1.setWrapText(true);\n style1.setBorderRight(BorderStyle.THIN);\n style1.setRightBorderColor(IndexedColors.BLACK.getIndex());\n style1.setBorderLeft(BorderStyle.THIN);\n style1.setLeftBorderColor(IndexedColors.BLACK.getIndex());\n style1.setBorderTop(BorderStyle.THIN);\n style1.setTopBorderColor(IndexedColors.BLACK.getIndex());\n style1.setBorderBottom(BorderStyle.THIN);\n style1.setBottomBorderColor(IndexedColors.BLACK.getIndex());\n // style1.setFont(font);\n\n // create header row\n Row header = sheet.createRow(0);\n Row header1 = sheet.createRow(1);\n Row header2 = sheet.createRow(2);\n\n header.createCell(0).setCellValue(\"STT\");\n header.getCell(0).setCellStyle(style);\n sheet.addMergedRegion(new CellRangeAddress(0, // first row (0-based)\n 2, // last row (0-based)\n 0, // first column (0-based)\n 0 // last column (0-based)\n ));\n header.createCell(1).setCellValue(\"Vị trí\");\n header.getCell(1).setCellStyle(style);\n sheet.addMergedRegion(new CellRangeAddress(0, // first row (0-based)\n 2, // last row (0-based)\n 1, // first column (0-based)\n 1 // last column (0-based)\n ));\n\n header.createCell(2).setCellValue(\"\");\n header.getCell(2).setCellStyle(style);\n sheet.addMergedRegion(new CellRangeAddress(0, // first row (0-based)\n 2, // last row (0-based)\n 2, // first column (0-based)\n 2 // last column (0-based)\n ));\n\n header.createCell(3).setCellValue(\"Số lượng đã tuyển trong tháng\");\n header.getCell(3).setCellStyle(style);\n sheet.addMergedRegion(new CellRangeAddress(0, // first row (0-based)\n 0, // last row (0-based)\n 3, // first column (0-based)\n 26 // last column (0-based)\n ));\n header.createCell(27).setCellValue(\"SL tuyển dụng \" + this.year);\n header.getCell(27).setCellStyle(style);\n sheet.addMergedRegion(new CellRangeAddress(0, // first row (0-based)\n 2, // last row (0-based)\n 27, // first column (0-based)\n 27 // last column (0-based)\n ));\n\n header1.createCell(0).setCellValue(\"\");\n header1.getCell(0).setCellStyle(style);\n header1.createCell(1).setCellValue(\"\");\n header1.getCell(1).setCellStyle(style);\n int k = 0;\n for (int i = 3; i < 27; i++) {\n if (i % 2 != 0) {\n header1.createCell(i).setCellValue(month[k++]);\n header1.getCell(i).setCellStyle(style);\n sheet.addMergedRegion(new CellRangeAddress(1, // first row (0-based)\n 1, // last row (0-based)\n i, // first column (0-based)\n i + 1 // last column (0-based)\n ));\n } else {\n header1.createCell(i).setCellValue(\"\");\n header1.getCell(i).setCellStyle(style);\n }\n }\n\n header2.createCell(0).setCellValue(\"\");\n header2.getCell(0).setCellStyle(style);\n header2.createCell(1).setCellValue(\"\");\n header2.getCell(1).setCellStyle(style);\n for (int i = 3; i < 27; i++) {\n if (i % 2 != 0) {\n header2.createCell(i).setCellValue(\"NEW\");\n header2.getCell(i).setCellStyle(style);\n } else {\n header2.createCell(i).setCellValue(\"TT\");\n header2.getCell(i).setCellStyle(style);\n }\n }\n\n int rowCount = 3;\n\n for (ReportByGroup item : reportList) {\n Row row = sheet.createRow(rowCount++);\n row.createCell(0).setCellValue(rowCount - 3);\n if (item.getDepartment() == null) {\n row.createCell(1).setCellValue(item.getGroup());\n } else {\n row.createCell(1).setCellValue(\"\");\n }\n row.createCell(2).setCellValue(item.getDepartment());\n int a = 3;\n for (StatisticMonth number : item.getStatisticMonth()) {\n if (number.getNumberOfNew() == 0) {\n row.createCell(a++).setCellValue(\"\");\n } else {\n row.createCell(a++).setCellValue(number.getNumberOfNew());\n }\n if (number.getNumberOfTT() == 0) {\n row.createCell(a++).setCellValue(\"\");\n } else {\n row.createCell(a++).setCellValue(number.getNumberOfTT());\n }\n }\n if (item.getTotal() == 0) {\n row.createCell(a).setCellValue(\"\");\n } else {\n row.createCell(a).setCellValue(item.getTotal());\n }\n\n for (int i = 0; i < 28; i++) {\n row.getCell(i).setCellStyle(style1);\n }\n }\n sheet.autoSizeColumn(0);\n sheet.autoSizeColumn(1);\n sheet.autoSizeColumn(2);\n sheet.autoSizeColumn(3);\n sheet.autoSizeColumn(4);\n sheet.autoSizeColumn(5);\n sheet.autoSizeColumn(6);\n sheet.autoSizeColumn(7);\n sheet.autoSizeColumn(8);\n sheet.autoSizeColumn(9);\n sheet.autoSizeColumn(10);\n sheet.autoSizeColumn(11);\n sheet.autoSizeColumn(12);\n sheet.autoSizeColumn(13);\n sheet.autoSizeColumn(14);\n sheet.autoSizeColumn(15);\n sheet.autoSizeColumn(16);\n sheet.autoSizeColumn(17);\n sheet.autoSizeColumn(18);\n sheet.autoSizeColumn(19);\n sheet.autoSizeColumn(20);\n sheet.autoSizeColumn(21);\n sheet.autoSizeColumn(22);\n sheet.autoSizeColumn(23);\n sheet.autoSizeColumn(24);\n sheet.autoSizeColumn(25);\n }", "@Test\n void generateCorrectBalanceSheetHeader() {\n assertEquals(\"2017\",\n datesHelper.generateBalanceSheetHeading(\"2016-01-01\", \"2017-01-14\", false));\n\n // Test 381 days shows month (more than 12 month period)\n assertEquals(\"13 months to 16 February 2016\",\n datesHelper.generateBalanceSheetHeading(\"2015-02-01\", \"2016-02-16\", false));\n\n // Test 349 days shows month (less than 12 month period)\n assertEquals(\"11 months to 1 January 2017\",\n datesHelper.generateBalanceSheetHeading(\"2016-01-19\", \"2017-01-01\", false));\n\n // Test exactly 381 days shows months leap year\n assertEquals(\"13 months to 16 February 2015\",\n datesHelper.generateBalanceSheetHeading(\"2014-02-01\", \"2015-02-16\", false));\n \n // Test 336 days shows 'month' rather than 'months'\n assertEquals(\"1 month to 1 April 2015\",\n datesHelper.generateBalanceSheetHeading(\"2015-03-07\", \"2015-04-01\", false));\n\n // \"Test exactly 351 days show yyyy\"\n assertEquals(\"2015\",\n datesHelper.generateBalanceSheetHeading(\"2014-04-01\", \"2015-03-16\", false));\n \n // Test exactly 351 days show years leap year\n assertEquals(\"2016\",\n datesHelper.generateBalanceSheetHeading(\"2015-04-01\", \"2016-03-16\", false));\n\n // Test 1st year filing within 15 days either side of 1 year period with same\n // year is just year\n assertEquals(\"30 June 2015\",\n datesHelper.generateBalanceSheetHeading(\"2014-06-01\", \"2015-06-30\", true));\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n\n String action = request.getParameter(\"action\");\n if (action.equalsIgnoreCase(\"farmer\")) {\n response.setContentType(\"application/vnd.ms-excel\");\n response.setHeader(\"Content-Disposition\", \"attachment;filename=Farmer.xls\");\n\n String nm = request.getParameter(\"nm\");\n String community = request.getParameter(\"cm\");\n String mainCrop = request.getParameter(\"mc\");\n String age = request.getParameter(\"ag\");\n\n System.out.println(\"Nm \" + nm);\n System.out.println(\"Cm \" + community);\n System.out.println(\"Mc \" + mainCrop);\n System.out.println(\"ag \" + age);\n BiodataModel biodataModel = new BiodataModel();\n List<BiodataWrapper> bios = biodataModel.getBioData(\"\", \"\");\n\n WritableWorkbook writableWorkbook = Workbook.createWorkbook(response.getOutputStream());\n\n WritableSheet writableSheet = writableWorkbook.createSheet(\"Sheet1\", 0);\n writableSheet.getSettings().setDefaultColumnWidth(25);\n// writableSheet.getSettings().setDefaultRowHeight(100 * 20);\n WritableFont cellFont = new WritableFont(WritableFont.TIMES, 12);\n WritableCellFormat cellFormat = new WritableCellFormat(cellFont);\n /**\n *\n */\n try {\n writableSheet.setRowView(0, 20 * 20);\n writableSheet.addCell(new Label(0, 0, \"ID\"));\n writableSheet.addCell(new Label(1, 0, \"Surname\"));\n writableSheet.addCell(new Label(2, 0, \"Othernames\"));\n writableSheet.addCell(new Label(3, 0, \"Community\"));\n writableSheet.addCell(new Label(4, 0, \"Village\"));\n writableSheet.addCell(new Label(5, 0, \"Region\"));\n writableSheet.addCell(new Label(6, 0, \"District\"));\n writableSheet.addCell(new Label(7, 0, \"Education\"));\n writableSheet.addCell(new Label(8, 0, \"Gender\"));\n writableSheet.addCell(new Label(9, 0, \"Marital Status\"));\n writableSheet.addCell(new Label(10, 0, \"Nickname\"));\n writableSheet.addCell(new Label(11, 0, \"# Children\"));\n writableSheet.addCell(new Label(12, 0, \"# Dependants\"));\n writableSheet.addCell(new Label(13, 0, \"Cluster\"));\n\n// writableSheet.addCell(new Label(5, 0, \"QR CODE\"));\n int i = 1;\n for (BiodataWrapper bio : bios) {\n\n writableSheet.addCell(new Label(0, i, bio.getFarmID()));\n writableSheet.addCell(new Label(1, i, bio.getLastName()));\n writableSheet.addCell(new Label(2, i, bio.getFirstName()));\n writableSheet.addCell(new Label(3, i, bio.getCommunity()));\n writableSheet.addCell(new Label(4, i, bio.getVillage()));\n writableSheet.addCell(new Label(5, i, bio.getRegion()));\n\n writableSheet.addCell(new Label(6, i, bio.getDistrict()));\n writableSheet.addCell(new Label(7, i, bio.getEducation()));\n writableSheet.addCell(new Label(8, i, bio.getGender()));\n writableSheet.addCell(new Label(9, i, bio.getMaritalStatus()));\n writableSheet.addCell(new Label(10, i, bio.getNickname()));\n writableSheet.addCell(new Label(11, i, bio.getNumberOfChildren()));\n writableSheet.addCell(new Label(12, i, bio.getNumberOfDependants()));\n writableSheet.addCell(new Label(13, i, bio.getCluster()));\n i++;\n }\n\n writableWorkbook.write();\n writableWorkbook.close();\n } catch (Exception e) {\n }\n } else if (action.equalsIgnoreCase(\"logs\")) {\n response.setContentType(\"application/vnd.ms-excel\");\n\n\n MobileTrackerModel biodataModel = new MobileTrackerModel();\n String format = \"dd-MM-yyyy HH:mm\";\n\n SimpleDateFormat simpleDate = new SimpleDateFormat(format);\n\n String s = request.getParameter(\"s\");\n String e = request.getParameter(\"d\");\n SimpleDateFormat todateDate = new SimpleDateFormat(\n \"yyyy-MM-dd\");\n SimpleDateFormat todateDates = new SimpleDateFormat(\n \"yyyy-MM-dd HH:mm:ss\");\n if (s == null || s.isEmpty()) {\n s = todateDate.format(new Date());\n }\n if (e == null || e.isEmpty()) {\n e = todateDate.format(new Date());\n }\n\n System.out.println(\"Start s : \" + s);\n System.out.println(\"Start s : \" + e);\n Date startDate = new Date();\n Date endDate = new Date();\n \n response.setHeader(\"Content-Disposition\", \"attachment;filename=ICTCLogs_\"+s+\"_\"+e+\".xls\");\n\n try {\n\n endDate = todateDates.parse(e + \" 23:59:59\");\n startDate = todateDates.parse(s + \" 00:00:00\");\n\n } catch (Exception k) {\n }\n List<MobileTrackerWrapper> logs = biodataModel.findAll(startDate, endDate);\n\n\n \n WritableWorkbook writableWorkbook = Workbook.createWorkbook(response.getOutputStream());\n\n WritableSheet writableSheet = writableWorkbook.createSheet(\"ICTCLogs_\"+s+\"_\"+e, 0);\n writableSheet.getSettings().setDefaultColumnWidth(25);\n\n// writableSheet.getSettings().setDefaultRowHeight(100 * 20);\n WritableFont cellFont = new WritableFont(WritableFont.TIMES, 12);\n WritableCellFormat cellFormat = new WritableCellFormat(cellFont);\n /**\n *\n */\n try {\n writableSheet.setRowView(0, 20 * 20);\n writableSheet.addCell(new Label(0, 0, \"ID\"));\n writableSheet.addCell(new Label(1, 0, \"Username\"));\n writableSheet.addCell(new Label(2, 0, \"Module\"));\n writableSheet.addCell(new Label(3, 0, \"Page\"));\n writableSheet.addCell(new Label(4, 0, \"Section\"));\n writableSheet.addCell(new Label(5, 0, \"Start time\"));\n writableSheet.addCell(new Label(6, 0, \"End Time\"));\n writableSheet.addCell(new Label(7, 0, \"Version\"));\n writableSheet.addCell(new Label(8, 0, \"Battery\"));\n writableSheet.addCell(new Label(9, 0, \"IMEI\"));\n writableSheet.addCell(new Label(10, 0, \"Data\"));\n\n \n int i = 1;\n for (MobileTrackerWrapper log : logs) {\n\n writableSheet.addCell(new Label(0, i, log.getId()));\n writableSheet.addCell(new Label(1, i, log.getUserId()));\n writableSheet.addCell(new Label(2, i, log.getModule()));\n writableSheet.addCell(new Label(3, i, log.getPage()));\n writableSheet.addCell(new Label(4, i, log.getSection()));\n writableSheet.addCell(new Label(5, i, simpleDate.format(new Date(log.getStartTime()))));\n writableSheet.addCell(new Label(6, i, simpleDate.format(new Date(log.getEndTime()))));\n writableSheet.addCell(new Label(7, i, String.valueOf(log.getVersion()))); \n writableSheet.addCell(new Label(8, i, String.valueOf(log.getTimeSpent()/1000)));\n\n writableSheet.addCell(new Label(9, i, String.valueOf(log.getBattery())));\n writableSheet.addCell(new Label(10, i, String.valueOf(log.getImei())));\n writableSheet.addCell(new Label(11, i, String.valueOf(log.getData())));\n \n i++;\n }\n\n writableWorkbook.write();\n writableWorkbook.close();\n }catch(Exception r){\n }\n }\n\n }\n }", "List<String> headerColumns();", "public ImportExcelData (ASPManager mgr, String page_path)\n {\n super(mgr,page_path);\n }", "public void writeExcel(String file_name, String path, DepartmentDto department,\n StageDto stage) throws FileNotFoundException, IOException {\n\n List<SlotDto> slots = null;\n\n try {\n\n //create workbook to generate .xls file\n XSSFWorkbook workbook = new XSSFWorkbook();\n XSSFSheet sheet = workbook.createSheet(file_name);\n\n\n // Create a Font for styling header cells\n Font headerFont = workbook.createFont();\n headerFont.setBold(false);\n headerFont.setFontHeightInPoints((short) 14);\n headerFont.setColor(IndexedColors.BLACK.getIndex());\n\n\n Font headerFont2 = workbook.createFont();\n headerFont2.setBold(true);\n headerFont2.setFontHeightInPoints((short) 14);\n headerFont2.setColor(IndexedColors.DARK_BLUE.getIndex());\n\n Font headerFont1 = workbook.createFont();\n headerFont1.setBold(true);\n headerFont1.setFontHeightInPoints((short) 14);\n headerFont1.setColor(IndexedColors.DARK_BLUE.getIndex());\n\n CellStyle headerCellStyle3 = workbook.createCellStyle();\n headerCellStyle3.setFont(headerFont1);\n headerCellStyle3.setAlignment(HorizontalAlignment.LEFT);\n\n // Create a CellStyle with the font\n CellStyle headerCellStyle = workbook.createCellStyle();\n headerCellStyle.setFont(headerFont2);\n headerCellStyle.setFillForegroundColor(IndexedColors.SKY_BLUE.getIndex());\n headerCellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n headerCellStyle.setAlignment(HorizontalAlignment.CENTER);\n\n // Create a CellStyle with the font\n CellStyle headerCellStyle2 = workbook.createCellStyle();\n headerCellStyle2.setFont(headerFont);\n headerCellStyle2.setFillForegroundColor(IndexedColors.WHITE.getIndex());\n headerCellStyle2.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n headerCellStyle2.setAlignment(HorizontalAlignment.LEFT);\n\n\n // Create a CellStyle with the font for day\n CellStyle headerCellStyle1 = workbook.createCellStyle();\n headerCellStyle1.setFont(headerFont);\n headerCellStyle1.setFillForegroundColor(IndexedColors.LIGHT_YELLOW.getIndex());\n headerCellStyle1.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n headerCellStyle1.setAlignment(HorizontalAlignment.LEFT);\n\n\n // get arraylist of slots of schedule\n slots = new ArrayList<>();\n slots = slotBao.viewSlotsOfSchedule(stage, department);\n\n\n //create all rows\n for (int r = 0; r < 30; r++) {\n // Create a Row\n XSSFRow headerRow = sheet.createRow(r);\n\n // Create all cells in row and set their style\n for (int i = 0; i < 9; i++) {\n Cell cell = headerRow.createCell(i);\n\n if ((i == 0 && r > 2) || r == 3 || r == 4)\n cell.setCellStyle(headerCellStyle);\n else if (r > 4)\n cell.setCellStyle(headerCellStyle2);\n else if (r < 3)\n cell.setCellStyle(headerCellStyle3);\n\n\n }\n\n }\n\n // create row and cell to set the schedule department\n sheet.getRow(0)\n .getCell(0)\n .setCellValue(department.getName());\n sheet.getRow(0)\n .getCell(1)\n .setCellValue(department.getCode());\n\n // create row and cell to set the academic year\n sheet.getRow(1)\n .getCell(0)\n .setCellValue(\"Academic year\");\n sheet.getRow(1)\n .getCell(1)\n .setCellValue(stage.getNumber());\n\n\n // create row and cells to set the term of schedule\n sheet.getRow(2)\n .getCell(0)\n .setCellValue(\"Term\");\n sheet.getRow(2)\n .getCell(1)\n .setCellValue(slots.get(0).getTerm());\n\n // create rows and cells to set time slots number and day\n sheet.getRow(3)\n .getCell(0)\n .setCellValue(\"Time slot\");\n sheet.getRow(3)\n .getCell(1)\n .setCellValue(\"Slot 1\");\n sheet.getRow(3)\n .getCell(3)\n .setCellValue(\"Slot 2\");\n sheet.getRow(3)\n .getCell(5)\n .setCellValue(\"Slot 3\");\n sheet.getRow(3)\n .getCell(7)\n .setCellValue(\"Slot 4\");\n\n\n // ceate row and cells to set start and end time of slots\n sheet.getRow(4)\n .getCell(1)\n .setCellValue(\"F 09:00-T 10:20\");\n sheet.getRow(4)\n .getCell(3)\n .setCellValue(\"F 10:30-T 12:00\");\n sheet.getRow(4)\n .getCell(5)\n .setCellValue(\"F 12:20-T 01:50\");\n sheet.getRow(4)\n .getCell(7)\n .setCellValue(\"F 2:00-T 03:30\");\n\n\n //set days\n sheet.getRow(5)\n .getCell(0)\n .setCellValue(\"Sunday\");\n sheet.getRow(10)\n .getCell(0)\n .setCellValue(\"Monday\");\n sheet.getRow(15)\n .getCell(0)\n .setCellValue(\"Tuesday\");\n sheet.getRow(20)\n .getCell(0)\n .setCellValue(\"Wednesday\");\n sheet.getRow(25)\n .getCell(0)\n .setCellValue(\"Thursday\");\n\n\n // Resize all columns to fit the content size\n for (int i = 0; i < 9; i++) {\n sheet.autoSizeColumn(i);\n }\n\n\n // loop to get slot of indexed day and time slot\n for (int i = 0; i < slots.size(); i++) {\n\n //define slot day\n int r = -1;\n\n if (slots.get(i)\n .getDay()\n .equalsIgnoreCase(\"Sunday\"))\n r = 5;\n else if (slots.get(i)\n .getDay()\n .equalsIgnoreCase(\"Monday\"))\n r = 10;\n else if (slots.get(i)\n .getDay()\n .equalsIgnoreCase(\"Tuesday\"))\n r = 15;\n else if (slots.get(i)\n .getDay()\n .equalsIgnoreCase(\"Wednesday\"))\n r = 20;\n else if (slots.get(i)\n .getDay()\n .equalsIgnoreCase(\"Thursday\"))\n r = 25;\n\n\n int cell = slots.get(i).getNum() * 2 - 1;\n\n // set style for cells\n if ((r % 2 == 0 && (cell == 1 || cell == 2 || cell == 5 || cell == 6)) ||\n (r % 2 != 0 && (cell == 3 || cell == 4 || cell == 7 || cell == 8))) {\n\n sheet.getRow(r)\n .getCell(cell)\n .setCellStyle(headerCellStyle1);\n sheet.getRow(r)\n .getCell(cell + 1)\n .setCellStyle(headerCellStyle1);\n\n sheet.getRow(r + 1)\n .getCell(cell)\n .setCellStyle(headerCellStyle1);\n sheet.getRow(r + 1)\n .getCell(cell + 1)\n .setCellStyle(headerCellStyle1);\n\n sheet.getRow(r + 2)\n .getCell(cell)\n .setCellStyle(headerCellStyle1);\n sheet.getRow(r + 2)\n .getCell(cell + 1)\n .setCellStyle(headerCellStyle1);\n\n sheet.getRow(r + 3)\n .getCell(cell)\n .setCellStyle(headerCellStyle1);\n sheet.getRow(r + 3)\n .getCell(cell + 1)\n .setCellStyle(headerCellStyle1);\n\n sheet.getRow(r + 4)\n .getCell(cell)\n .setCellStyle(headerCellStyle1);\n sheet.getRow(r + 4)\n .getCell(cell + 1)\n .setCellStyle(headerCellStyle1);\n }\n\n // set course name and code of slot\n sheet.getRow(r)\n .getCell(cell)\n .setCellValue(slots.get(i)\n .getCourse()\n .getName());\n sheet.getRow(r)\n .getCell(cell + 1)\n .setCellValue(slots.get(i)\n .getCourse()\n .getCode());\n\n // set type of slot\n sheet.getRow(r + 2)\n .getCell(cell)\n .setCellValue(slots.get(i).getSlot_type());\n\n // set location of slot\n sheet.getRow(r + 3)\n .getCell(cell)\n .setCellValue(slots.get(i)\n .getLocation()\n .getName());\n\n\n // check slot type then set plt of slot\n if (slots.get(i)\n .getSlot_type()\n .equals(\"LECTURE\")) {\n sheet.getRow(r + 3)\n .getCell(cell + 1)\n .setCellValue(slots.get(i)\n .getCourse()\n .getPlt_lecture()\n .getCode());\n }\n if (slots.get(i)\n .getSlot_type()\n .equals(\"SECTION\")) {\n sheet.getRow(r + 3)\n .getCell(cell + 1)\n .setCellValue(slots.get(i)\n .getCourse()\n .getPlt_section()\n .getCode());\n }\n\n\n // set student number of slot\n sheet.getRow(r + 4)\n .getCell(cell)\n .setCellValue(\"Student number\");\n sheet.getRow(r + 4)\n .getCell(cell + 1)\n .setCellValue(slots.get(i).getStudent_number());\n\n /*\n * set staff of slot then check if members > 1\n * then concatenate all members' names\n * and set to cell */\n String staff = slots.get(i)\n .getStaff()\n .get(0)\n .getPosition() + \"/\" + slots.get(i)\n .getStaff()\n .get(0)\n .getName();\n\n /*\n * set staff user email of slot then check if members > 1\n * then concatenate all members' emails\n * and set to cell */\n String[] email = slots.get(i)\n .getStaff()\n .get(0)\n .getUser()\n .getEmail()\n .split(\"@\", 2);\n String user = email[0];\n\n\n for (int j = 1; j < slots.get(i)\n .getStaff()\n .size(); j++) {\n staff = staff + \" # \" + slots.get(i)\n .getStaff()\n .get(j)\n .getPosition() + \"/\" + slots.get(i)\n .getStaff()\n .get(j)\n .getName();\n\n String[] _email = slots.get(i)\n .getStaff()\n .get(j)\n .getUser()\n .getEmail()\n .split(\"@\", 2);\n user = user + \" # \" + _email[0];\n }\n\n sheet.getRow(r + 1)\n .getCell(cell)\n .setCellValue(staff);\n sheet.getRow(r + 1)\n .getCell(cell + 1)\n .setCellValue(user);\n\n }\n\n\n // write data to the file\n\n FileOutputStream fileOut = new FileOutputStream(path + \"\\\\\" + file_name);\n workbook.write(fileOut);\n fileOut.close();\n\n\n // Closing the workbook\n workbook.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }", "@Test\n public void test(){\n ExcelUtil qa3Sheet = new ExcelUtil(\"src/test/resources/Vytrack testusers.xlsx\", \"QA3-short\");\n // 1 based , not 0 based\n int rowCount = qa3Sheet.rowCount();\n // 1 based, not 0 based\n int colCount = qa3Sheet.columnCount();\n System.out.println(\"rowCount = \" + rowCount);\n System.out.println(\"colCount = \" + colCount);\n\n List<String> columnsNames = qa3Sheet.getColumnsNames();\n System.out.println(\"columnsNames = \" + columnsNames);\n // 0 based, get specific cell value based on index\n String cellData = qa3Sheet.getCellData(2, 3);\n System.out.println(\"cellData = \" + cellData);\n\n // get all table values in a list\n List<Map<String, String>> dataList = qa3Sheet.getDataList();\n\n System.out.println(dataList.get(5).get(\"firstname\"));\n\n String[][] dataArray = qa3Sheet.getDataArray();\n\n System.out.println(dataArray[1][1]);\n\n }", "public void setHeadings(List v) \n {\n this.headings = v;\n }", "protected void addDynamicHeaders() {\n }", "void readData(File file) {\n // Common Place?--\n // Bool--\n List<DirectoryEntry>directoryEntries = new ArrayList<DirectoryEntry>();\n List<String>directoryTypes = new ArrayList<String>();\n try {\n FileInputStream excelFile = new FileInputStream(file);\n Workbook workbook = new XSSFWorkbook(excelFile);\n Sheet datatypeSheet = workbook.getSheetAt(0);\n Iterator<Row> iterator = datatypeSheet.iterator();\n\n int rowCnt=0;\n while (iterator.hasNext()) {\n Row currentRow = iterator.next();\n\n // skip the first 3 rows\n rowCnt++;\n if(rowCnt<=3) {\n continue ;\n }\n\n\n // iterate over cells on the row\n int columnCnt=0;\n String name = null;\n String phoneNumber = null;\n String starCodePattern = null;\n String categoryTab = null;\n\n Iterator<Cell> columnIterator = currentRow.iterator();\n while (columnIterator.hasNext()) {\n Cell currentCell = columnIterator.next();\n\n //getCellTypeEnum shown as deprecated for version 3.15\n //getCellTypeEnum ill be renamed to getCellType starting from version 4.0\n String value = \"\";\n if (currentCell.getCellTypeEnum() == CellType.STRING) {\n value = currentCell.getStringCellValue();\n } else if (currentCell.getCellTypeEnum() == CellType.NUMERIC) {\n value = \"\" + currentCell.getNumericCellValue();\n }\n\n columnCnt++;\n switch(columnCnt) {\n case 1:\n name = value;\n break;\n case 2:\n phoneNumber = value;\n break;\n case 3:\n starCodePattern = value;\n break;\n case 4:\n categoryTab = value;\n if( !directoryTypes.contains(categoryTab) ) {\n directoryTypes.add(categoryTab);\n }\n break;\n }\n }\n\n if(StringUtils.isNotBlank(name)) {\n directoryEntries.add(new DirectoryEntry(name, phoneNumber, starCodePattern, categoryTab));\n data.add(new DirectoryEntry(name, phoneNumber, starCodePattern, categoryTab));\n }\n }\n\n workbook.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void setCellFactories() {\n\t\tcolHotel.setCellValueFactory(new PropertyValueFactory<Room, String>(\"hotelName\"));\n\t\tcolQuality.setCellValueFactory(new PropertyValueFactory<Room, String>(\"quality\"));\n\t\tcolRoomNumber.setCellValueFactory(new PropertyValueFactory<Room, String>(\"roomNumber\"));\n\t}", "private void readHeader() throws IOException {\n\t\tString line = this.readLine();\n\t\tSystem.out.println(String.format(\"header->{%s}\", line));\n\t\tthis.columnNames = line.split(DEFAULT_DELIMITER);\n\t}", "public abstract String getHeaderRow();", "private void init() throws FileNotFoundException, TransformerConfigurationException {\n try (Scanner filesscanner = new Scanner(new File(csvlocation))) {\n while (filesscanner.hasNext()) {\n filecontent.add(filesscanner.next());\n }\n if (!filecontent.isEmpty()) {\n this.header = filecontent.get(0);\n filecontent.remove(0);\n }\n setMailtemplate();\n } catch (FileNotFoundException | TransformerConfigurationException e) {\n LOGGER.error(\"Exception occured while reading the file\", e);\n throw e;\n }\n }", "private void createContent(WritableSheet sheet) throws WriteException,\n RowsExceededException {\n int row = 2;\n for (int i = 0; i < mExcelObject.getmCheckInUserNews().size(); i++) {\n // First column\n Post data = mExcelObject.getmCheckInUserNews().get(i);\n addNumber(sheet, 0, row, i+1 );\n // Second column\n addLabel(sheet, 1, row, data.author());\n addLabel(sheet, 2, row, data.title);\n addLabel(sheet, 3, row, data.body);\n addLabel(sheet, 4, row, data.downloadeUrl);\n row++;\n }\n\n }", "@FXML\r\n\t/**\r\n\t * Method for selecting offered classes and reading the data in.\r\n\t * \r\n\t * @param event\t\t\tEvent for when the read in classes button is clicked\r\n\t * @throws Exception\tException for if the file selected to read in is not an excel file.\r\n\t */\r\n\tprivate void selectClasses(ActionEvent event) throws Exception {\r\n\t\tresultsText.appendText(\"Loading Classes.\\n\");\r\n\t\tList<File> classes = fileChooser.showOpenMultipleDialog(null);\r\n\r\n\t\tif (classes != null) {\r\n\t\t\tfor (File file : classes) {\r\n\t\t\t\tFileInputStream fIP = new FileInputStream(file);\r\n\t\t\t\tWorkbook workbook = new XSSFWorkbook(fIP);\r\n\t\t\t\tSheet datatypeSheet = workbook.getSheetAt(0);\r\n\t\t\t\tIterator<Row> iterator = datatypeSheet.iterator();\r\n\r\n\t\t\t\tString professorName = \"GEORGE\"; // create a professor's Name\r\n\r\n\t\t\t\twhile (iterator.hasNext()) // Iterate over rows\r\n\t\t\t\t{\r\n\t\t\t\t\tRow currentRow = iterator.next();\r\n\t\t\t\t\tIterator<Cell> cellIterator = currentRow.iterator(); //\r\n\r\n\t\t\t\t\tif (!(datatypeSheet.getRow(0).getCell(0).getStringCellValue().equals(\"Name:\"))\r\n\t\t\t\t\t\t\t|| !(datatypeSheet.getRow(3).getCell(1).getStringCellValue().equals(\"Start Time\"))) {\r\n\t\t\t\t\t\tresultsText.appendText(\r\n\t\t\t\t\t\t\t\t\"File: \\\"\" + file.getName() + \"\\\"could not be recognized as a class sheet.\\n\\n\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\twhile (cellIterator.hasNext()) {\r\n\t\t\t\t\t\tCell currentCell = cellIterator.next();\r\n\t\t\t\t\t\t// Get the professor -> This only happens once in the\r\n\t\t\t\t\t\t// entire file...\r\n\t\t\t\t\t\tif (currentRow.getRowNum() == 0 && currentCell.getColumnIndex() == 1) {\r\n\t\t\t\t\t\t\tprofessorName = currentCell.getStringCellValue(); // assign\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// value\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\telse if (currentCell.getRowIndex() >= 4 && currentCell.getRowIndex() <= 15) {\r\n\t\t\t\t\t\t\t// Get the class number\r\n\t\t\t\t\t\t\tif (currentCell.getColumnIndex() == 0) {\r\n\r\n\t\t\t\t\t\t\t\tif (currentCell.getStringCellValue().isEmpty()) {\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tclassList.add(new Class());\r\n\t\t\t\t\t\t\t\t\tclassList.get(classList.size() - 1).setProfessor(professorName);\r\n\t\t\t\t\t\t\t\t\tclassList.get(classList.size() - 1)\r\n\t\t\t\t\t\t\t\t\t\t\t.setClassNumber(currentCell.getStringCellValue());\r\n\t\t\t\t\t\t\t\t\tclassList.get(classList.size() - 1).setUniqueIdentifier(uniqueIdentifierCounter);\r\n\t\t\t\t\t\t\t\t\tuniqueIdentifierCounter += 1;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t// Get the start time\r\n\t\t\t\t\t\t\telse if (currentCell.getColumnIndex() == 1) {\r\n\t\t\t\t\t\t\t\tclassList.get(classList.size() - 1).setStartTime(currentCell.getStringCellValue());\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t// Get the end time\r\n\t\t\t\t\t\t\telse if (currentCell.getColumnIndex() == 2) {\r\n\t\t\t\t\t\t\t\tclassList.get(classList.size() - 1).setEndTime(currentCell.getStringCellValue());\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t// Get the days of the week\r\n\t\t\t\t\t\t\telse if (currentCell.getColumnIndex() >= 3 && currentCell.getColumnIndex() <= 7) {\r\n\t\t\t\t\t\t\t\tif (currentCell.getStringCellValue().equals(\"Has Class\")) {\r\n\t\t\t\t\t\t\t\t\tclassList.get(classList.size() - 1)\r\n\t\t\t\t\t\t\t\t\t\t\t.addDayOfWeek((int) currentCell.getColumnIndex() - 3);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// Get the prep time\r\n\t\t\t\t\t\t\telse if (currentCell.getColumnIndex() == 8) {\r\n\t\t\t\t\t\t\t\tclassList.get(classList.size() - 1)\r\n\t\t\t\t\t\t\t\t\t\t.setPrepHours((int) currentCell.getNumericCellValue());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tworkbook.close();\r\n\t\t\t}\r\n\t\t\tresultsText.appendText(\"Classes Loaded!\\n\\n\");\r\n\t\t} else {\r\n\t\t\tresultsText.appendText(\"No Classes loaded.\\n\\n\");\r\n\t\t}\r\n\t}", "private List readHeadings( PushbackInputStream stream ) throws IOException {\n List headings = new ArrayList();\n for ( boolean done = false; ! done; ) {\n int c = stream.read();\n switch ( (char) c ) {\n case '\\r':\n case '\\n':\n done = true;\n break;\n case ' ':\n case '\\t':\n break;\n case '\"':\n case '\\'':\n stream.unread( c );\n headings.add( readString( stream ) );\n break;\n case END:\n done = true;\n break;\n default:\n stream.unread( c );\n headings.add( readToken( stream ) );\n }\n }\n return headings;\n }", "protected String getHeader(ELesxUseCase useCase) {\n StringBuilder string;\n string = new StringBuilder(128);\n if (useCase == EDIT) {\n string.append(LesxMessage.getMessage(\"TEXT-HEADER_LABEL_COMPONENT_PANE\", component.toString()));\n }\n else {\n string.append(LesxMessage.getMessage(\"TEXT-HEADER_LABEL_COMPONENT_PANE\", \"Nuevo\"));\n }\n string.append(\".\");\n return string.toString();\n }", "private void initExcelReport() {\n DocumentItem documentItem = new DocumentItem(\"Source Node ID\", \"File Name\", \"Target Destination Folder\", \"Target Node ID\", null, \"Target Node Status\", \"Message\", null, null);\n ExcelUtil.addMigrationRow(jobParameters.getMigrationReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n ExcelUtil.addErrorRow(jobParameters.getErrorReport(), \"Date Time\", \"Source Node Status\", \"Source Destination Folder\", documentItem);\n }", "public String getHeaderNames(){return header.namesText;}", "private void prnHEADER()\n\t{ \n\t try\n\t {\n\t\t\tcl_dat.M_PAGENO +=1;\n\t\t\tcl_dat.M_intLINNO_pbst=0;\n\t\t\t\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst) && (M_rdbTEXT.isSelected()))\n\t\t\t\tprnFMTCHR(dosREPORT,M_strBOLD);\n\t\t\tif(M_rdbHTML.isSelected())\n\t\t\t\tdosREPORT.writeBytes(\"<B>\");\n\t\t\tdosREPORT.writeBytes(\"\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",100));\n\t\t\tdosREPORT.writeBytes(\"------------------------------\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",100));\n\t\t\tdosREPORT.writeBytes(strISODC1+\"\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",100));\n\t\t\tdosREPORT.writeBytes(strISODC2+\"\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",100));\n\t\t\tdosREPORT.writeBytes(strISODC3+\"\\n\");\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\" \",100));\n\t\t\tdosREPORT.writeBytes(\"------------------------------\\n\");\n\t\t\t\n\t\t\tdosREPORT.writeBytes(padSTRING('R',cl_dat.M_strCMPNM_pbst ,100));\n\t\t\tdosREPORT.writeBytes(\"Report Date:\"+ cl_dat.M_strLOGDT_pbst + \"\\n\");\t\n\t\t\t\n\t\t\tdosREPORT.writeBytes(padSTRING('R',\"Stock Statement as on \"+(rdbDYOPN.isSelected() ? strREFDT+\" at 07:00 Hrs\" : cl_dat.M_txtCLKDT_pbst.getText()+\" \"+cl_dat.M_txtCLKTM_pbst.getText()+\" Hrs\"),100));\t\t\t\n\t\t\tdosREPORT.writeBytes(\"Page No. :\" + String.valueOf(cl_dat.M_PAGENO) + \"\\n\");\t\t\t\t\t\t\n\t\t\tdosREPORT.writeBytes(\"---------------------------------------------------------------------------------------------------------------------------------------\\n\");\n\t\t\t\n\t\t\tdosREPORT.writeBytes(padSTRING('R',\" \",12));\n\t\t\tdosREPORT.writeBytes(padSTRING('R',\"Product & Size\",28));\n\t\t\t//System.out.println(\"LM_COUNT = \"+LM_COUNT);\n\t\t\tfor(i=0;i<LM_COUNT;i++)\n\t\t\t\tdosREPORT.writeBytes(padSTRING('L',staMNLDS[i],12));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"Tot.Sq.Mts\",12));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"S/Rtn\",12));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"Res.Qty\",10));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"Q/Hold\",10));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"Cub.Mtrs\",10));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"M.Tons\",10));\n\t\t\tdosREPORT.writeBytes(padSTRING('L',\"Pcs\",10));\n\t\t\tdosREPORT.writeBytes(\"\\n\");\n\t\t\t//crtLINE(136);\n\t\t\t//dosREPORT.writeBytes(\"\\n\");\n\t\t\tdosREPORT.writeBytes(\"---------------------------------------------------------------------------------------------------------------------------------------\\n\");\t\t\n\t\t\t\n\t\t\tif(cl_dat.M_cmbOPTN_pbst.getSelectedItem().toString().equals(cl_dat.M_OPPRN_pbst) && (M_rdbTEXT.isSelected()))\n\t\t\t\tprnFMTCHR(dosREPORT,M_strNOBOLD);\n\t\t\tif(M_rdbHTML.isSelected())\n\t\t\t\tdosREPORT.writeBytes(\"</B>\");\n\t\t\tcl_dat.M_intLINNO_pbst += 11;\n\t }\n\t catch(Exception L_EX)\n\t {\n\t\t\tsetMSG(L_EX + \" prnHEADER\",'E');\n\t\t}\n\t}", "private void addHeaders(){\n\n /** Create a TableRow dynamically **/\n tr = new TableRow(this);\n tr.setLayoutParams(new TableRow.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n\n /** Creating a TextView to add to the row **/\n TextView item = new TextView(this);\n item.setText(\"Recipe\");\n item.setWidth(320);\n item.setBackgroundColor(getResources().getColor(R.color.colorPrimary));\n item.setTextColor(Color.WHITE);\n item.setTypeface(Typeface.DEFAULT, Typeface.BOLD);\n item.setPadding(5, 5, 5, 0);\n tr.addView(item); // Adding textView to tablerow.\n\n\n // Add the TableRow to the TableLayout\n tl.addView(tr, new TableLayout.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n\n\n }", "void onActionFromExport() {\n\t\ttry {\n\t\t\tHSSFWorkbook document = new HSSFWorkbook();\n\t\t\tHSSFSheet sheet = ReportUtil.createSheet(document);\n\n\t\t\tsheet.setMargin((short) 0, 0.5);\n\t\t\tReportUtil.setColumnWidths(sheet, 0, 0.5, 1, 0.5, 2, 2, 3, 2, 3, 2, 4, 3, 5, 2, 6, 2, 7, 2, 8, 3, 9, 3, 10,\n\t\t\t\t\t3, 11, 2, 12, 2);\n\n\t\t\tMap<String, HSSFCellStyle> styles = ReportUtil.createStyles(document);\n\n\t\t\tint sheetNumber = 0;\n\t\t\tint rowIndex = 1;\n\t\t\tint colIndex = 1;\n\t\t\tLong index = 1L;\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2, messages.get(\"empList\"), styles.get(\"title\"), 5);\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, ++rowIndex, 1,\n\t\t\t\t\tmessages.get(\"date\") + \": \" + format.format(new Date()), styles.get(\"plain-left-wrap\"), 5);\n\t\t\trowIndex += 2;\n\n\t\t\t/* column headers */\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 1, messages.get(\"number-label\"),\n\t\t\t\t\tstyles.get(\"header-wrap\"));\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2, messages.get(\"firstname-label\"),\n\t\t\t\t\tstyles.get(\"header-wrap\"));\n\n\t\t\tif (lastname) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"lastname-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (origin1) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"persuasion-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (register) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"register-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (status) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"status-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (gender) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"gender-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (occ) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"occupation-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (birthday) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"birthDate-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (phoneNo) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"phoneNo-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (email) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"email-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (org) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"organization-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (appointment) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"appointment-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegree) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цэргийн цол\", styles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegreeStatus) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цолны статус\",\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegreeDate) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цол авсан огноо\",\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (TotalWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"TotalOrgWorkedYear-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (StateWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"stateWorkedYear-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"courtOrgTotalWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtMilitaryWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"CourtMilitaryWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtSimpleWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"CourtSimpleWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (familyCount) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"familyCount-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (childCount) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"childCount-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tReportUtil.setRowHeight(sheet, rowIndex, 3);\n\n\t\t\trowIndex++;\n\t\t\tif (listEmployee != null)\n\t\t\t\tfor (Employee empDTO : listEmployee) {\n\n\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\tlistEmployee.indexOf(empDTO) + 1 + \"\", styles.get(\"plain-left-wrap-border\"));\n\n\t\t\t\t\tif (lastname) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getLastname() != null) ? empDTO.getLastname() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++, empDTO.getFirstName(),\n\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\n\t\t\t\t\tif (origin1) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getOrigin().getName() != null) ? empDTO.getOrigin().getName() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (register) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getRegisterNo() != null) ? empDTO.getRegisterNo() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (status) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getEmployeeStatus() != null) ? empDTO.getEmployeeStatus().name() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (gender) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\tmessages.get((empDTO.getGender() != null) ? empDTO.getGender().toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (occ) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getOccupation() != null) ? empDTO.getOccupation().getName() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (birthday) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getBirthDate() != null) ? format.format(empDTO.getBirthDate()) : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (phoneNo) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getPhoneNo() != null) ? empDTO.getPhoneNo() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (email) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.geteMail() != null) ? empDTO.geteMail() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (org) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getOrganization() != null) ? empDTO.getOrganization().getName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (appointment) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getAppointment() != null) ? empDTO.getAppointment().getAppointmentName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegree) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? dao.getEmployeeMilitary(empDTO.getId()).getMilitary().getMilitaryName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegreeStatus) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? dao.getEmployeeMilitary(empDTO.getId()).getDegreeStatus().name() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegreeDate) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? format.format(dao.getEmployeeMilitary(empDTO.getId()).getOlgosonOgnoo())\n\t\t\t\t\t\t\t\t\t\t: \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (TotalWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getTotalOrgWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getTotalOrgWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\tif (StateWorkedYear) {\n\t\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t\t((getStateWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t\t? getStateWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (CourtWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtOrgTotalWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtOrgTotalWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (CourtMilitaryWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtMilitaryWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtMilitaryWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (CourtSimpleWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtSimpleWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtSimpleWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (familyCount) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex,\n\t\t\t\t\t\t\t\tcolIndex++, ((getFamilyCountExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getFamilyCountExport(empDTO.getId()) : \"0\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (childCount) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex,\n\t\t\t\t\t\t\t\tcolIndex++, ((getChildCountExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getChildCountExport(empDTO.getId()) : \"0\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tReportUtil.setRowHeight(sheet, rowIndex, 3);\n\t\t\t\t\trowIndex++;\n\t\t\t\t\tindex++;\n\t\t\t\t\tcolIndex = 1;\n\n\t\t\t\t}\n\n\t\t\trowIndex += 2;\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 1,\n\t\t\t\t\t\"ТАЙЛАН ГАРГАСАН: \" + \"..................................... / \"\n\t\t\t\t\t\t\t+ loginState.getEmployee().getLastname().charAt(0) + \".\"\n\t\t\t\t\t\t\t+ loginState.getEmployee().getFirstName() + \" /\",\n\t\t\t\t\tstyles.get(\"plain-left-wrap\"), 8);\n\t\t\trowIndex++;\n\n\t\t\tOutputStream out = response.getOutputStream(\"application/vnd.ms-excel\");\n\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"employeeList.xls\\\"\");\n\n\t\t\tdocument.write(out);\n\t\t\tout.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setHeader1(TempTableHeader header1) { this.header1 = header1; }", "public void setupHistoTableHeader() {\r\n\t\tif (this.histoTableTabItem != null && !this.histoTableTabItem.isDisposed()) this.histoTableTabItem.setHeader();\r\n\t}", "private ConfigurationHTMLPrinter doHeaderRow() {\n println(\"<tr>\").incrementIndent();\n doHeaderCell(\"Name\");\n doHeaderCell(\"Default value\");\n doHeaderCell(\"Aliases\");\n doHeaderCell(\"Value type\");\n doHeaderCell(\"Description\");\n return decrementIndent().println(\"</tr>\");\n }", "private void writeColumnHeader() throws WriteException, IOException {\r\n WriteXLS.getInstance().writeColumnLabels();\r\n }", "void setHeaderRowCount(int count);", "public void readValuesfromtableWithoutHeadings()\n\t {\n\t\t open();\n\t\t List<Map<Object, String>> tab1= withColumns(\"Last Name \" ,\"First Name\",\"Email\", \"Due\" , \"Web Site\" , \"My Test\") \n\t\t\t\t .readRowsFrom(table);\n\t\t System.out.println(tab1);\n\t }", "public void mapHeader(){\r\n\t\tString header = readNextLine();\r\n\t\tif (header == null) return;\r\n\t\t\r\n\t\tString split[] = header.split(Constants.SPLIT_MARK);\r\n\t\tfor (int i=0; i < Constants.HEADER.length; i++){\r\n\t\t\tmapHeader.put(Constants.HEADER[i], Constants.UNKNOWN);\r\n\t\t\tfor (int j = 0; j < split.length; j++){\r\n\t\t\t\tif (Constants.HEADER[i].equals(split[j])){\r\n\t\t\t\t\tmapHeader.put(Constants.HEADER[i], j);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void FuncFillbody(String[][] bodyValues, int sheetinput,int inputrowsize) {\n\t\tFileInputStream fis = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(filename));\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(type==0)\n\t\t{\n\t\t//create wrokbook xls\n\t\tHSSFWorkbook wb = null;\n\t\ttry {\n\t\t\twb = new HSSFWorkbook(fis);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//create sheet object to retrieve the sheet\n\t\tHSSFSheet sheet=wb.getSheetAt(sheetinput);\n\t\t\n\t\t//that is for evaluate the cell type\n\t\tFormulaEvaluator formulaeva=wb.getCreationHelper().createFormulaEvaluator();\n\t\tint i=-1;\n\t\tint j=0;\n\t\tfor(Row row : sheet)\n\t\t{\n\t\t\tif(i>=0){\n\t\t\tfor(Cell cell : row)\n\t\t\t{\n\t\t\t\ttry{\n\t\t\t\tswitch(formulaeva.evaluateInCell(cell).getCellType())\n\t\t\t\t{\n\t\t\t\t//if cell is numeric format\n\t\t\t\tcase Cell.CELL_TYPE_NUMERIC:\n\t\t\t\t\tbodyValues[i][j]=String.valueOf(cell.getNumericCellValue());\n\t\t\t\t\tbreak;\n\t\t\t\t//if cell is numeric format\n\t\t\t\tcase Cell.CELL_TYPE_STRING:\n\t\t\t\t\tbodyValues[i][j]=cell.getStringCellValue();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\t//if array out of bounds closes next anyway\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tSystem.out.println(j);\n\t\t\tif(j!=inputrowsize){\n\t\t\t\tfinal JPanel panel = new JPanel();\n\t\t\t\tJOptionPane.showMessageDialog(panel, \"Could not display(table not filled)\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t\tj=0;\n\t\t}\n\t\t}\n\t\tif(type==1)\n\t\t{\n\t\t//create wrokbook xlsx\n\t\tXSSFWorkbook wb = null;\n\t\ttry {\n\t\t\twb = new XSSFWorkbook(fis);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//create sheet object to retrieve the sheet\n\t\tXSSFSheet sheet=wb.getSheetAt(sheetinput);\n\t\t\n\t\t//that is for evaluate the cell type\n\t\tFormulaEvaluator formulaeva=wb.getCreationHelper().createFormulaEvaluator();\n\t\tint i=-1;\n\t\tint j=0;\n\t\tfor(Row row : sheet)\n\t\t{\n\t\t\tif(i>=0){\n\t\t\tfor(Cell cell : row)\n\t\t\t{\n\t\t\t\ttry{\n\t\t\t\tswitch(formulaeva.evaluateInCell(cell).getCellType())\n\t\t\t\t{\n\t\t\t\t//if cell is numeric format\n\t\t\t\tcase Cell.CELL_TYPE_NUMERIC:\n\t\t\t\t\tbodyValues[i][j]=String.valueOf(cell.getNumericCellValue());\n\t\t\t\t\tbreak;\n\t\t\t\t//if cell is numeric format\n\t\t\t\tcase Cell.CELL_TYPE_STRING:\n\t\t\t\t\tbodyValues[i][j]=cell.getStringCellValue();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\t//if array out of bounds closes next anyway\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tSystem.out.println(j);\n\t\t\tif(j!=inputrowsize){\n\t\t\t\tfinal JPanel panel = new JPanel();\n\t\t\t\tJOptionPane.showMessageDialog(panel, \"Could not display(table not filled)\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t\tj=0;\n\t\t}\n\t\t}\n\t}", "@DataProvider(name=\"excle\")\n\tpublic static Object[][] createaccountTest() throws IOException {\n\t\tObject content[][];\n\t\tFileInputStream file = new FileInputStream(\n\t\t\t\t\"D:\\\\Java_Workspace\\\\FinalKDDFramework\\\\Input\\\\Account.xlsx\");\n\t\tXSSFWorkbook book = new XSSFWorkbook(file);\n\t\tXSSFSheet sheet = book.getSheet(\"Sheet1\");\n\t\tint rows = sheet.getLastRowNum();\n\t\tcontent = new Object[(sheet.getLastRowNum())-1][sheet.getRow(1)\n\t\t\t\t.getLastCellNum()];\n\t\tRow row;\n\t\tSystem.out.println(\"total no of rows \" + rows);\n\t\tfor (int i = 1; i <rows; i++) \n\t\t{\n\t\t\trow = sheet.getRow(i);\n\t\t\tint cells = row.getLastCellNum();\n\t\t\tfor (int j = 0; j < cells; j++) \n\t\t\t{\n\t\t\t\tCell cell = row.getCell(j);\n\t\t\t\tif (cell.getCellTypeEnum().name().equals(\"NUMERIC\")) \n\t\t\t\t{\n\t\t\t\t\tcontent[i-1][j] = cell.getNumericCellValue();\t\n\t\t\t\t\n\t\t\t\t} \n\t\t\t\telse if (cell.getCellTypeEnum().name().equals(\"STRING\")) \n\t\t\t\t{\n\t\t\t\t\tcontent[i-1][j] = cell.getStringCellValue();\t\n\t\t\t\t\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t/*\n\t\t * catch (FileNotFoundException e) {\n\t\t * System.out.println(\"file not found\"); e.printStackTrace(); }\n\t\t */\n\t\treturn content;\n\t}", "private void writeCsvHeader(String h1, String h2, String h3,String h4,String h5) throws IOException\r\n {\r\n \t String line = String.format(\"%s,%s,%s,%s,%s\\n\",h1,h2,h3,h4,h5);\r\n \t writer.write(line);\r\n }", "public void getRowCount() {\n\n try {\n\n String FILE = \"src/test/resources/Datasheet.xlsx\";\n String SHEET_NAME = \"Master\";\n XSSFWorkbook workbook = new XSSFWorkbook();\n\n }catch (Exception exp)\n {\n exp.printStackTrace();\n System.out.println(exp.getMessage());\n System.out.println(exp.getCause());\n }\n }", "public static void readFromExcel_ApachePOI(String testCase) throws Exception{\n\t\tString fileName = \"TestData.xlsx\";\n\t\tString SAMPLE_XLSX_FILE_PATH = System.getProperty(\"user.dir\")+\"\\\\src\\\\test\\\\resources\\\\TestData\\\\TestData.xlsx\";\n\t\tFile file = new File(SAMPLE_XLSX_FILE_PATH);\n\t\tFileInputStream inputStream = new FileInputStream(file);\n\t\tWorkbook workbook = null;\n\t\tString fileExtensionName = fileName.substring(fileName.indexOf(\".\"));\n\t\t\n\t if(fileExtensionName.equals(\".xlsx\")){\n\n\n\t \tworkbook = new XSSFWorkbook(inputStream);\n\n\t }\n\n\t //Check condition if the file is xls file\n\n\t else if(fileExtensionName.equals(\".xls\")){\n\n\t //If it is xls file then create object of HSSFWorkbook class\n\n\t \tworkbook = new HSSFWorkbook(inputStream);\n\n\t }\n\t\t//System.out.println(\"Reading from right sheet\"); \n\t\tSheet sheet = workbook.getSheet(\"TestSheet\");\n\t\tfor(int i = 0;i<sheet.getLastRowNum();i++) {\n\t\t\tif(testCase.equalsIgnoreCase(sheet.getRow(i).getCell(0).getStringCellValue())) {\n\t\t\t\tRow row = sheet.getRow(i);\n\t\t\t\tString userID = row.getCell(1).getStringCellValue();\n\t\t\t\tint pwd = (int) row.getCell(2).getNumericCellValue();\n\t\t\t}\n\t\t}\n\t\tRow row = sheet.getRow(1);\n\t\tCell cell = row.getCell(0);\n\t\tString testCaseName = cell.getStringCellValue();\n\t\tString userID = row.getCell(1).getStringCellValue();\n\t\tint pwd = (int) row.getCell(2).getNumericCellValue();\n\t\tSystem.out.println(testCaseName);\n\t\tSystem.out.println(userID);\n\t\tSystem.out.println(pwd);\n\t\t\t\n\t\tworkbook.close();\n\t}", "@Override\n protected Sheet createSheet() {\n Sheet sheet = Sheet.createDefault();\n // Create a set of properties\n Sheet.Set set = Sheet.createPropertiesSet();\n\n set.put(getNameProperty());\n set.put(getMajorProperty());\n set.put(getMinorProperty());\n set.put(getPatchProperty());\n set.put(getDescriptionProperty());\n set.put( getGitProperty());\n set.put( getBranchProperty());\n\n // Add the set of properties to the sheet\n sheet.put(set);\n\n return sheet;\n }", "public static void writeInFile(String fileName,String sheetName, String cntry, String menu,String subMenu,String subMenu_1,String ActualEng_Title,String Overridden_Title,String xmlURL) throws IOException {\n\r\n\t\tFile myFile = new File(\"./\" + fileName);\r\n\r\n\t\t//Create an object of FileInputStream class to read excel file\r\n\r\n\t\tFileInputStream inputStream = new FileInputStream(myFile);\r\n\r\n\t\tWorkbook myWorkbook = null;\r\n\r\n\t\t//Find the file extension by spliting file name in substring and getting only extension name\r\n\r\n\t\tString fileExtensionName = fileName.substring(fileName.indexOf(\".\"));\r\n\r\n\t\t//Check condition if the file is xlsx file\t\r\n\r\n\t\tif(fileExtensionName.equals(\".xlsx\")){\r\n\r\n\t\t\t//If it is xlsx file then create object of XSSFWorkbook class\r\n\r\n\t\t\tmyWorkbook = new XSSFWorkbook(inputStream);\r\n\t\t\tSystem.out.println(\"Extension of file \"+fileName +\" is .xlsx\");\r\n\r\n\t\t}\r\n\r\n\t\t//Check condition if the file is xls file\r\n\r\n\t\telse if(fileExtensionName.equals(\".xls\")){\r\n\r\n\t\t\t//If it is xls file then create object of XSSFWorkbook class\r\n\r\n\t\t\tmyWorkbook = new HSSFWorkbook(inputStream);\r\n\t\t\tSystem.out.println(\"Extension of file \"+fileName +\" is .xlx\");\r\n\r\n\t\t}\r\n\r\n\t\t//Read sheet inside the workbook by its name\r\n\r\n\t\tSheet mySheet = myWorkbook.getSheet(sheetName);\r\n\r\n\t\t//Find number of rows in excel file\r\n\r\n\t\tint rowCount = mySheet.getLastRowNum() - mySheet.getFirstRowNum();\r\n\r\n\r\n\t\tRow row = mySheet.getRow(0);\r\n\r\n\t\t//Create a new row and append it at last of sheet\r\n\r\n\t\tRow newRow = mySheet.createRow(rowCount+1);\r\n\r\n\r\n\t\t//Create a loop over the cell of newly created Row\r\n\t\tfor(int colCnt=0;colCnt<=6;colCnt++)\r\n\t\t{ \r\n\t\t\tCell cell = newRow.createCell(colCnt);\r\n\r\n\t\t\tif(colCnt==0)\r\n\t\t\t{\r\n\t\t\t\tcell.setCellValue(cntry);\r\n\t\t\t}\r\n\t\t\telse if(colCnt==1)\r\n\t\t\t{\r\n\t\t\t\tcell.setCellValue(menu);\r\n\t\t\t}\r\n\t\t\telse if(colCnt==2)\r\n\t\t\t{\r\n\t\t\t\tcell.setCellValue(subMenu);\r\n\t\t\t}\r\n\t\t\telse if(colCnt==3)\r\n\t\t\t{\r\n\t\t\t\tcell.setCellValue(subMenu_1);\r\n\t\t\t}\r\n\t\t\telse if(colCnt==4)\r\n\t\t\t{\r\n\t\t\t\tcell.setCellValue(ActualEng_Title);\r\n\t\t\t}\r\n\t\t\telse if(colCnt==5)\r\n\t\t\t{\r\n\t\t\t\tcell.setCellValue(Overridden_Title);\r\n\t\t\t}\r\n\t\t\telse if(colCnt==6)\r\n\t\t\t{\r\n\t\t\t\tcell.setCellValue(xmlURL);\r\n\t\t\t}\r\n\t\t}\r\n\t\t/* for(int j = 0; j < row.getLastCellNum(); j++){\r\n\r\n\t //Fill data in row\r\n\r\n\t Cell cell = newRow.createCell(j);\r\n\r\n\t cell.setCellValue(\"test\");\r\n\r\n\t }*/\r\n\r\n\t\t//Close input stream\r\n\r\n\t\tinputStream.close();\r\n\r\n\t\t//Create an object of FileOutputStream class to create write data in excel file\r\n\r\n\t\tFileOutputStream opStream = new FileOutputStream(myFile);\r\n\r\n\t\t//write data in the excel file\r\n\r\n\t\tmyWorkbook.write(opStream);\r\n\t\t//close output stream\r\n\t\topStream.close();\r\n\t\t//\tfor(int i = 0;i<=objectArr.length-1;i++ ){\r\n\r\n\t\t// Cell cell = row.createCell(i);\r\n\t\t// cell.setCellValue(objectArr[i]);\r\n\r\n\t\t// }\r\n\r\n\t\t//File myFile = new File(\"./Controller.xlsx\");\r\n\t\t// FileOutputStream os = new FileOutputStream(myFile);\r\n\t\t//\tmyWorkBook.write(os);\r\n\t\tSystem.out.println(\"Controller Sheet Creation finished ...\");\r\n\t\t//\tos.close();\r\n\r\n\r\n\t}", "public static void main(String[] args) throws IOException {\nFileInputStream f=new FileInputStream(\"D:\\\\AccuSelenium\\\\Ram\\\\TEST\\\\TestData\\\\LoginData.xls\");\nHSSFWorkbook w=new HSSFWorkbook(f);\nHSSFSheet s=w.getSheet(\"sheet1\");\nSystem.out.println(s.getRow(1));\n}", "private void readHeader() throws IOException {\n\n header = new byte[ShapeConst.SHAPE_FILE_HEADER_LENGTH];\n\n /*\n * Make sure we're at the beginning of the file\n */\n rafShp.seek(0); \n\n rafShp.read(header, 0, ShapeConst.SHAPE_FILE_HEADER_LENGTH);\n\n int fileCode = ByteUtils.readBEInt(header, 0);\n\n if (fileCode != ShapeConst.SHAPE_FILE_CODE) {\n\n throw new IOException(\"Invalid file code, \" + \"probably not a shape file\");\n\n }\n\n fileVersion = ByteUtils.readLEInt(header, 28);\n\n if (fileVersion != ShapeConst.SHAPE_FILE_VERSION) {\n\n throw new IOException(\"Unable to read shape files with version \" +\n fileVersion);\n\n }\n\n fileLength = ByteUtils.readBEInt(header, 24);\n\n /* \n * convert from 16-bit words to 8-bit bytes\n */\n fileLength *= 2;\n\n fileShapeType = ByteUtils.readLEInt(header, 32);\n\n /*\n * read ESRIBoundingBox and convert to SHPEnvelope\n */\n fileMBR = new SHPEnvelope(ShapeUtils.readBox(header, 36));\n\n }", "private void createNewSheet(SXSSFSheet sheet, int rowNum, int countColumns, ResultSet result, SXSSFWorkbook workbook) throws SQLException {\n ResultSetMetaData metaDataColumns = result.getMetaData();\n sheet.setAutobreaks(true);\n sheet.setAutoFilter(new CellRangeAddress(0, rowNum, 0, countColumns - 1));\n// sheet.autoSizeColumn(0);\n sheet.setFitToPage(true);\n // Creamos un nuevo ROW para el header\n SXSSFRow header = sheet.createRow(rowNum);\n System.out.println(\"Add Header\");\n for (int colHeader = 1; colHeader <= countColumns; colHeader++) {\n // Creamos una nueva celda para cada una de las celdas\n SXSSFCell cellHeader = header.createCell(colHeader - 1);\n // agregamos el valor de la celda\n cellHeader.setCellValue(metaDataColumns.getColumnName(colHeader).toUpperCase());\n }\n rowNum++;\n // Verificamos si hay datos\n System.out.println(\"Add Row Data\");\n while (result.next()) {\n // Creamos un nuevo ROW para los cada nueva fila del resultSet\n SXSSFRow data = sheet.createRow(rowNum);\n // Recorremos los datos de las columnas\n for (int rowdata = 1; rowdata <= countColumns; rowdata++) {\n // Creamos una nueva celda para cada una de las celdas\n SXSSFCell cellData = data.createCell(rowdata - 1);\n // agregamos el valor de la celda\n Object object = result.getObject(rowdata);\n if (object == null) {\n cellData.setCellValue(\"\");\n } else {\n switch (metaDataColumns.getColumnType(rowdata)) {\n case Types.BOOLEAN:\n cellData.setCellValue((boolean) object);\n break;\n case Types.DATE:\n cellData.setCellValue((Date) object);\n case Types.TIMESTAMP_WITH_TIMEZONE:\n cellData.setCellValue((Date) object);\n break;\n case Types.NUMERIC:\n cellData.setCellValue(((BigDecimal) object).doubleValue());\n break;\n case Types.FLOAT:\n cellData.setCellValue(((Float) object).doubleValue());\n break;\n case Types.INTEGER:\n cellData.setCellValue(((Integer) object).doubleValue());\n break;\n case Types.SMALLINT:\n cellData.setCellValue(((Integer) object).doubleValue());\n break;\n case Types.BIGINT:\n cellData.setCellValue(((Long) object).doubleValue());\n break;\n default:\n cellData.setCellValue(object + \"\");\n break;\n }\n }\n }\n // Incrementamos el contador de registros\n rowNum++;\n // Imprimimos cada 10000 registros procesados\n if ((rowNum % 10000) == 0) {\n System.out.println(\"Procesando \" + rowNum);\n }\n // Validamos el maximo de registros que soporta excel 2007\n // Creamos una nueva hoja para los siguinetes registros\n if ((rowNum % 1048570) == 0) {\n // creamos una nueva hoja\n sheet = workbook.createSheet(name + (workbook.getNumberOfSheets() + 1));\n // enviamos a llenar la hoja\n createNewSheet(sheet, 0, countColumns, result, workbook);\n }\n }\n }", "@SuppressWarnings(value = \"unchecked\")\r\n private static void writeFileHeaders(MultipleOutputs mo) throws IOException {\r\n\r\n// final Integer tileWindow = (Integer)localConfMap.get(\"tileWindow\");\r\n// final Boolean saveSkippedInfo = (Boolean)localConfMap.get(\"saveSkippedInfo\");\r\n//\r\n// mo.getCollector(\"tile10\", null).collect(new Text(\"header\"),\r\n// new Text(\"variableStep chrom=chrM span=\" + tileWindow.toString() + \"\\n\"));\r\n// mo.getCollector(\"tile\", null).collect(new Text(\"header\"),\r\n// new Text(\"variableStep chrom=chrM span=\" + tileWindow.toString() + \"\\n\"));\r\n//\r\n// String[] headerOddReadBed = {\"Chromosome\",\r\n// \"Start\",\r\n// \"End\",\r\n// \"Feature\",\r\n// \"Translocations\"};\r\n//\r\n// mo.getCollector(\"oddreadbed\", null).collect(new Text(\"header\"),\r\n// new Text(StringUtils.join(headerOddReadBed) + \"\\n\"));\r\n//\r\n// String[] headerOddReadList = {\"FromChr\",\r\n// \"FromPos\",\r\n// \"ToChr\",\r\n// \"ToPos\",\r\n// \"MapQ\",\r\n// \"Distance\",\r\n// \"StrandQ\",\r\n// \"StrandM\"};\r\n//\r\n// mo.getCollector(\"oddreadlist\", null).collect(new Text(\"header\"),\r\n// new Text(StringUtils.join(headerOddReadList) + \"\\n\"));\r\n//\r\n//\r\n// mo.getCollector(\"wigsame\", null).collect(new Text(\"header\"),\r\n// new Text(\"variableStep chrom=chrM span=\" + tileWindow.toString() + \"\\n\"));\r\n// mo.getCollector(\"wigdiff\", null).collect(new Text(\"header\"),\r\n// new Text(\"variableStep chrom=chrM span=\" + tileWindow.toString() + \"\\n\"));\r\n//\r\n// String[] headerOutliers = {\"read\",\r\n// \"pos\",\r\n// \"chromosome\",\r\n// \"qname\",\r\n// \"seq\",\r\n// \"score\",\r\n// \"distance\"};\r\n//\r\n// mo.getCollector(\"outlier\", null).collect(new Text(\"header\"),\r\n// new Text(StringUtils.join(headerOutliers) + \"\\n\"));\r\n//\r\n//\r\n// if (saveSkippedInfo) {\r\n// String[] headerSkippedReads = {\"rname\",\r\n// \"mPos\",\r\n// \"mapQScore\",\r\n// \"dupeFlag\",\r\n// \"failedQC\",\r\n// \"randomIndex\"};\r\n//\r\n// mo.getCollector(\"skipped\", null).collect(new Text(\"header\"),\r\n// new Text(StringUtils.join(headerSkippedReads) + \"\\n\"));\r\n// }\r\n }", "@Test\n public void readExcelFile(){\n\n ExcelUtil qa3short =new ExcelUtil(\"src/test/resources/Vytracktestdata.xlsx\", \"QA3-short\");\n\n //how many row in the sheet\n System.out.println(\"qa3short.rowCount() = \" + qa3short.rowCount());\n //qa3short.rowCount() = 14\n\n //how many columns in the sheet\n System.out.println(\"qa3short.columnCount() = \" + qa3short.columnCount());\n //qa3short.columnCount() = 4\n\n //get all column names\n System.out.println(\"qa3short.getColumnsNames() = \" + qa3short.getColumnsNames());\n //qa3short.getColumnsNames() = [username, password, firstname, lastname]\n\n //get all data in List of maps\n\n //qa3short.getDataList(); right click create variable\n List<Map<String, String>> dataList = qa3short.getDataList();\n\n //iter --- onerow\n\n for (Map<String, String> onerow : dataList) {\n System.out.println( onerow);\n //{password=UserUser123, firstname=John, username=user1, lastname=Doe}\n //{password=UserUser123, firstname=Kyleigh, username=user4, lastname=Reichert}\n //{password=UserUser123, firstname=Nona, username=user5, lastname=Carroll}\n //{password=UserUser123, firstname=Geovany, username=storemanager51, lastname=Jenkins}\n //{password=UserUser123, firstname=Roma, username=storemanager52, lastname=Medhurst}\n //{password=UserUser123, firstname=Aditya, username=storemanager53, lastname=Rempel}\n //{password=UserUser123, firstname=Turner, username=storemanager54, lastname=Considine}\n //{password=UserUser123, firstname=Rachel, username=storemanager55, lastname=Oberbrunner}\n //{password=UserUser123, firstname=Peyton, username=salesmanager101, lastname=Harber}\n //{password=UserUser123, firstname=Patricia, username=salesmanager102, lastname=Doyle}\n //{password=UserUser123, firstname=Nellie, username=salesmanager103, lastname=Corwin}\n //{password=UserUser123, firstname=Nikita, username=salesmanager104, lastname=Wintheiser}\n //{password=UserUser123, firstname=Geraldine, username=salesmanager105, lastname=Parisian}\n\n }\n\n //get Nona as a value\n System.out.println(\"dataList.get(2) = \" + dataList.get(2));\n //dataList.get(2) = {password=UserUser123, firstname=Nona, username=user5, lastname=Carroll}\n System.out.println(\"dataList.get(2) = \" + dataList.get(2).get(\"firstname\"));\n //dataList.get(2) = Nona\n\n\n //get all data in 2d array\n\n String [][] dataArray =qa3short.getDataArray();\n\n System.out.println(Arrays.deepToString(dataArray));\n //[[username, password, firstname, lastname], [user1, UserUser123, John, Doe], [user4, UserUser123, Kyleigh, Reichert], [user5, UserUser123, Nona, Carroll], [storemanager51, UserUser123, Geovany, Jenkins], [storemanager52, UserUser123, Roma, Medhurst], [storemanager53, UserUser123, Aditya, Rempel], [storemanager54, UserUser123, Turner, Considine], [storemanager55, UserUser123, Rachel, Oberbrunner], [salesmanager101, UserUser123, Peyton, Harber], [salesmanager102, UserUser123, Patricia, Doyle], [salesmanager103, UserUser123, Nellie, Corwin], [salesmanager104, UserUser123, Nikita, Wintheiser], [salesmanager105, UserUser123, Geraldine, Parisian]]\n\n\n\n }", "private void outputHeader(){\n System.out.printf(\"\\n%9s%11s%7s%5s%7s%8s\\n\",\"Last Name\",\"First Name\",\"Gender\",\"Rate\",\"Tenure\",\"Salary\");\n pw.printf(\"\\n%9s%11s%7s%5s%7s%8s\\n\",\"Last Name\",\"First Name\",\"Gender\",\"Rate\",\"Tenure\",\"Salary\");\n }", "private void fill() {\r\n\t\tmap = new TreeMap<String, String>();\r\n\t\tlist = new ArrayList<String>();\r\n\t\ttry {\r\n\r\n\t\t\tFileInputStream ExcelFileToRead = new FileInputStream(\"V:\\\\Public\\\\Venatorx Employee and Conference Room Phone List.xlsx\");\r\n\r\n\t\t\tXSSFWorkbook wb = new XSSFWorkbook(ExcelFileToRead);\r\n\t\t\tXSSFSheet sheet = wb.getSheetAt(0);\r\n\t\t\tXSSFRow row; \r\n\t\t\tXSSFCell cell;\r\n\t\t\t\r\n\t\t\tarr = new String[9];\r\n\t\t\tIterator<Row> rows = sheet.rowIterator();\r\n\t\t\tString temp = \"\";\r\n\t\t\r\n\t\t\twhile (temp.equals(\"\"))\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\trow=(XSSFRow) rows.next();\r\n\t\t\t\tIterator<Cell> cells = row.cellIterator();\r\n\t\t\t\tfor (int i = 0; i < 9; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tcell=(XSSFCell) cells.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (cell.getCellType() == XSSFCell.CELL_TYPE_STRING)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString check = cell.getStringCellValue();\r\n\t\t\t\t\t\tif(check.equals(\"First Name\")) {\r\n\t\t\t\t\t\t\ttemp = \"First\";\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tarr[i] = cell.getStringCellValue();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//System.out.println(arr[i]);\r\n\t\t\t\t\t\t//System.out.print(cell.getStringCellValue()+\", \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(cell.getCellType() == XSSFCell.CELL_TYPE_NUMERIC)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tCell tempCell = cell;\r\n\t\t\t\t\t\tDataFormatter formatter = new DataFormatter();\r\n\t\t\t\t\t\tString strValue = formatter.formatCellValue(tempCell);\r\n\t\t\t\t\t\tarr[i] = strValue;\r\n\t\t\t\t\t\t//System.out.println(arr[i]);\r\n\t\t\t\t\t\t//System.out.print(cell.getNumericCellValue()+\", \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if((i == 0) && (cell.getCellType() == XSSFCell.CELL_TYPE_BLANK)) {\r\n\t\t\t\t\t\ttemp = \"Final line\";\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString unknown = \"Unknown\";\r\n\t\t\t\t\t\tarr[i] = unknown;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(temp.equals(\"Final line\")) {\r\n\t\t\t\t\ttemp = \"\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\telse if(temp.equals(\"First\")) {\r\n\t\t\t\t\ttemp = \"\";\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t\r\n\t\t\t\t\tString name = arr[0].trim() + \" \" + arr[1].trim();\r\n\t\t\t\t\tString accreditions = arr[2].trim();\r\n\t\t\t\t\tString title = arr[3].trim();\r\n\t\t\t\t\tString extension = arr[4].trim();\r\n\t\t\t\t\tString directNumber = arr[5].trim();\r\n\t\t\t\t\tString cellNumber = arr[6].trim();\r\n\t\t\t\t\tString email = arr[7].trim();\r\n\t\t\t\t\tString location = arr[8].trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\tString info = accreditions + \":\" + title + \":\" + extension + \":\" + directNumber + \":\" + cellNumber + \":\" + email + \":\" + location;\r\n\t\t\t\t\t//System.out.println(name + info);\r\n\t\t\t\t\tmap.put(name, info);\r\n\t\t\t\t\t//set.add(name);\r\n\t\t\t\t\tlist.add(name);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr = new String[9];\r\n\t\t\t\t\t//System.out.println();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t \r\n\t\t } catch (FileNotFoundException e2) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te2.printStackTrace();\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "@RequestMapping(\"exportToExcel\")\n public void exportFundamentalsToExcel(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\n log.debug(\"Requested exporting data to excel.\");\n\n TradingAidCommand jshData = getJshData();\n\n // create a new file\n FileOutputStream outExcel = new FileOutputStream(\"workbook\");\n // create a new workbook\n HSSFWorkbook workbook = new HSSFWorkbook();\n // create a new sheet\n HSSFSheet sheet = workbook.createSheet();\n\n sheet.setDefaultColumnWidth(7);\n\n // create header row\n HSSFRow header = sheet.createRow(0);\n header.createCell(0).setCellValue(\"Horse\");\n header.createCell(1).setCellValue(\"9am\");\n header.createCell(2).setCellValue(\"MovAM\");\n header.createCell(3).setCellValue(\"60min\");\n header.createCell(4).setCellValue(\"Mov60\");\n header.createCell(5).setCellValue(\"30min\");\n header.createCell(6).setCellValue(\"Mov30\");\n header.createCell(7).setCellValue(\"15min\");\n header.createCell(8).setCellValue(\"Mov15\");\n header.createCell(9).setCellValue(\"5min\");\n header.createCell(10).setCellValue(\"Mov5\");\n header.createCell(11).setCellValue(\"3min\");\n header.createCell(12).setCellValue(\"Mov3\");\n header.createCell(13).setCellValue(\"2min\");\n header.createCell(14).setCellValue(\"Mov2\");\n header.createCell(15).setCellValue(\"1min\");\n header.createCell(16).setCellValue(\"Mov1\");\n header.createCell(17).setCellValue(\"Mean\");\n header.createCell(18).setCellValue(\"321\");\n header.createCell(19).setCellValue(\"Result\");\n header.createCell(20).setCellValue(\"CPR\");\n header.createCell(21).setCellValue(\"NPTips\");\n header.createCell(22).setCellValue(\"Naps\");\n header.createCell(23).setCellValue(\"Stars\");\n header.createCell(24).setCellValue(\"Jockey\");\n header.createCell(25).setCellValue(\"Wins\");\n header.createCell(26).setCellValue(\"R\");\n header.createCell(27).setCellValue(\"Rs\");\n header.createCell(28).setCellValue(\"Mov9-60\");\n header.createCell(29).setCellValue(\"FP\");\n header.createCell(30).setCellValue(\"C\");\n header.createCell(31).setCellValue(\"D\");\n header.createCell(32).setCellValue(\"CD\");\n header.createCell(33).setCellValue(\"HG\");\n header.createCell(34).setCellValue(\"Trainer\");\n header.createCell(35).setCellValue(\"Wins\");\n header.createCell(36).setCellValue(\"R\");\n header.createCell(37).setCellValue(\"Rs\");\n\n int rowIndex = 1;\n for (JSHRaceCommand race : jshData.getRaces()) {\n\n HSSFRow row = sheet.createRow(rowIndex);\n HSSFCell cell = row.createCell(0);\n cell.setCellValue(race.getGeneralInfo());\n sheet.addMergedRegion(new CellRangeAddress(rowIndex, rowIndex, 0, 37));\n\n rowIndex++;\n\n int runnerFavPos = 1;\n for (JSHRunnerCommand runner : race.getRunners()) {\n row = sheet.createRow(rowIndex);\n row.createCell(0).setCellValue(runner.getHorseName());\n row.createCell(1).setCellValue(runner.getPrice9());\n row.createCell(2).setCellValue(runner.getMov9to11());\n row.createCell(3).setCellValue(runner.getPrice60());\n row.createCell(4).setCellValue(runner.getMov60());\n row.createCell(5).setCellValue(runner.getPrice30());\n row.createCell(6).setCellValue(runner.getMov30());\n row.createCell(7).setCellValue(runner.getPrice15());\n row.createCell(8).setCellValue(runner.getMov15());\n row.createCell(9).setCellValue(runner.getPrice5());\n row.createCell(10).setCellValue(runner.getMov5());\n row.createCell(11).setCellValue(runner.getPrice3());\n row.createCell(12).setCellValue(runner.getMov3());\n row.createCell(13).setCellValue(runner.getPrice2());\n row.createCell(14).setCellValue(runner.getMov2());\n row.createCell(15).setCellValue(runner.getPrice1());\n row.createCell(16).setCellValue(runner.getMov1());\n row.createCell(17).setCellValue(runner.getMean());\n row.createCell(18).setCellValue(runner.getMov3to1());\n row.createCell(19).setCellValue(runner.getResult());\n row.createCell(20).setCellValue(runner.getCpr());\n row.createCell(21).setCellValue(runner.getNptips());\n row.createCell(22).setCellValue(runner.getNaps());\n row.createCell(23).setCellValue(runner.getStars());\n row.createCell(24).setCellValue(runner.getJockey());\n row.createCell(25).setCellValue(runner.getJockeyWins());\n row.createCell(26).setCellValue(runner.getJockeyRideNo());\n row.createCell(27).setCellValue(runner.getJockeyRides());\n row.createCell(28).setCellValue(runner.getMov9to60());\n row.createCell(29).setCellValue(runnerFavPos++);\n row.createCell(30).setCellValue(runner.getCourse());\n row.createCell(31).setCellValue(runner.getDistance());\n row.createCell(32).setCellValue(runner.getDistanceAndCourse());\n row.createCell(33).setCellValue(runner.getHeadGear());\n row.createCell(34).setCellValue(runner.getTrainer());\n row.createCell(35).setCellValue(runner.getTrainerWins());\n row.createCell(36).setCellValue(runner.getTrainerRunnerNo());\n row.createCell(37).setCellValue(runner.getTrainerRunners());\n\n rowIndex++;\n }\n\n }\n\n for (int i = 0; i < 37; i++) {\n sheet.autoSizeColumn(i);\n }\n\n // Movement formatting\n HSSFSheetConditionalFormatting conditionalFormattingLayer = sheet.getSheetConditionalFormatting();\n HSSFConditionalFormattingRule blueRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.GT, \"5\");\n HSSFConditionalFormattingRule greenRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.BETWEEN, \"2.5\", \"5\");\n HSSFConditionalFormattingRule yellowRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.BETWEEN, \"0.01\", \"2.5\");\n HSSFConditionalFormattingRule orangeRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.BETWEEN, \"-2.5\", \"-0.01\");\n HSSFConditionalFormattingRule pinkRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.LT, \"-2.5\");\n\n HSSFPatternFormatting blueFormatting = blueRule.createPatternFormatting();\n blueFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.BLUE.getIndex());\n\n HSSFPatternFormatting greenFormatting = greenRule.createPatternFormatting();\n greenFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.GREEN.getIndex());\n\n HSSFPatternFormatting yellowFormatting = yellowRule.createPatternFormatting();\n yellowFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.YELLOW.getIndex());\n\n HSSFPatternFormatting orangeFormatting = orangeRule.createPatternFormatting();\n orangeFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.ORANGE.getIndex());\n\n HSSFPatternFormatting pinkFormatting = pinkRule.createPatternFormatting();\n pinkFormatting.setFillBackgroundColor(HSSFColor.HSSFColorPredefined.PINK.getIndex());\n\n HSSFPalette palette = workbook.getCustomPalette();\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.BLUE.getIndex(), (byte) 153, (byte) 204, (byte) 255);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.GREEN.getIndex(), (byte) 204, (byte) 255, (byte) 204);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.YELLOW.getIndex(), (byte) 255, (byte) 255, (byte) 153);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.ORANGE.getIndex(), (byte) 255, (byte) 204, (byte) 153);\n palette.setColorAtIndex(HSSFColor.HSSFColorPredefined.PINK.getIndex(), (byte) 255, (byte) 153, (byte) 204);\n\n int lastRowNum = sheet.getLastRowNum();\n\n CellRangeAddress[] basicMovementCellRangeAddresses = {\n\n // 9-11 Movement\n new CellRangeAddress(1, lastRowNum, 2, 2),\n // 60 min Movement\n new CellRangeAddress(1, lastRowNum, 4, 4),\n // 30 min Movement\n new CellRangeAddress(1, lastRowNum, 6, 6),\n // 15 min Movement\n new CellRangeAddress(1, lastRowNum, 8, 8),\n // 5 min Movement\n new CellRangeAddress(1, lastRowNum, 10, 10),\n // 3 min Movement\n new CellRangeAddress(1, lastRowNum, 12, 12),\n // 2 min Movement\n new CellRangeAddress(1, lastRowNum, 14, 14),\n // 1 min Movement\n new CellRangeAddress(1, lastRowNum, 16, 16),\n // Mean\n new CellRangeAddress(1, lastRowNum, 17, 17),\n // 3-1 Movement\n new CellRangeAddress(1, lastRowNum, 18, 18),\n };\n\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, blueRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, greenRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, yellowRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, orangeRule);\n conditionalFormattingLayer.addConditionalFormatting(basicMovementCellRangeAddresses, pinkRule);\n\n\n // Movement 9 to 60 formatting\n HSSFConditionalFormattingRule mov9to60LessThanZeroRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.LT, \"0\");\n HSSFFontFormatting mov9to60LessThanZeroFormatting = mov9to60LessThanZeroRule.createFontFormatting();\n mov9to60LessThanZeroFormatting.setFontColorIndex(HSSFColor.HSSFColorPredefined.RED.getIndex());\n CellRangeAddress[] mov9to60CellRange = {new CellRangeAddress(1, lastRowNum, 28, 28)};\n conditionalFormattingLayer.addConditionalFormatting(mov9to60CellRange, mov9to60LessThanZeroRule);\n\n // CPR Formatting\n HSSFConditionalFormattingRule cprRule = conditionalFormattingLayer.createConditionalFormattingRule(ComparisonOperator.LT, \"0\");\n HSSFFontFormatting cprFormatting = cprRule.createFontFormatting();\n cprFormatting.setFontColorIndex(HSSFColor.HSSFColorPredefined.RED.getIndex());\n CellRangeAddress[] cprCellRange = {new CellRangeAddress(1, lastRowNum, 20, 20)};\n conditionalFormattingLayer.addConditionalFormatting(cprCellRange, cprRule);\n\n // Result formatting\n HSSFConditionalFormattingRule winnerRule = conditionalFormattingLayer.createConditionalFormattingRule(\"EXACT($T1, \\\"Won\\\")\");\n HSSFConditionalFormattingRule placedRule = conditionalFormattingLayer.createConditionalFormattingRule(\"EXACT($T1, \\\"Placed\\\")\");\n\n HSSFPatternFormatting winnerFormatting = winnerRule.createPatternFormatting();\n winnerFormatting.setFillBackgroundColor(IndexedColors.BRIGHT_GREEN.getIndex());\n\n HSSFPatternFormatting placedFormatting = placedRule.createPatternFormatting();\n placedFormatting.setFillBackgroundColor(IndexedColors.LEMON_CHIFFON.getIndex());\n\n palette.setColorAtIndex(IndexedColors.BRIGHT_GREEN.getIndex(), (byte) 62, (byte) 213, (byte) 120);\n palette.setColorAtIndex(IndexedColors.LEMON_CHIFFON.getIndex(), (byte) 242, (byte) 218, (byte) 193);\n\n CellRangeAddress[] resultCellRange = {\n // Horse name\n new CellRangeAddress(1, lastRowNum, 0, 0),\n // Result\n new CellRangeAddress(1, lastRowNum, 19, 19),\n // Jockey\n new CellRangeAddress(1, lastRowNum, 24, 24),\n // Trainer\n new CellRangeAddress(1, lastRowNum, 34, 34)\n\n };\n\n conditionalFormattingLayer.addConditionalFormatting(resultCellRange, winnerRule);\n conditionalFormattingLayer.addConditionalFormatting(resultCellRange, placedRule);\n\n // Writing the file into Http response\n workbook.write(outExcel);\n\n response.setContentType(\"application/octet-stream\");\n DateFormat dateFormat = new SimpleDateFormat(\"yyyyMMdd\");\n Date today = new Date();\n response.setHeader(\"Content-disposition\", \"attachment; filename=\" + \"trading-aid-\" + dateFormat.format(today) + \".xls\");\n\n FileInputStream inputStream = new FileInputStream(new File(\"workbook\"));\n\n OutputStream outputStream = response.getOutputStream();\n\n byte[] buffer = new byte[1024];\n int bytesRead = -1;\n while ((bytesRead = inputStream.read(buffer)) != -1) { // write bytes read from the input stream into the output stream\n outputStream.write(buffer, 0, bytesRead);\n }\n\n outputStream.flush();\n\n log.debug(\"Data export to excel successful.\");\n\n }", "public String[] composeHeader() {\n\t\treturn null;\n\t}", "public Object[] readParameterFile(String userFlag, String sSheetName) throws IOException {\n\n\t\tObject[] tempHeader = null;\n\t\ttry {\n\t\t\ttempHeader = readExcel(getValueFromConfig(XmlEnum.ParameterFile), sSheetName, userFlag);\n\t\t} catch (IOException e) {\n\t\t\tthrow new IOException(\"Cannot find the Profile Header Configuration File\");\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn tempHeader;\n\t}", "protected void readHeader() {\n // Denote no lines have been read.\n this.lineCount = 0;\n // Read the header.\n if (! this.reader.hasNext()) {\n // Here the entire file is empty. Insure we get EOF on the first read.\n this.nextLine = null;\n } else {\n this.headerLine = this.reader.next();\n // Parse the header line into labels and normalize them to lower case.\n this.labels = this.splitLine(headerLine);\n // Set up to return the first data line.\n this.readAhead();\n }\n }", "public static void generateExcelFileByTemplate(String template, OutputStream os, String[][] data, int startRow, int startColumn) {\n\n InputStream in = ExcelUtil.class.getResourceAsStream(template);\n\n try {\n Workbook wb = new HSSFWorkbook(in);\n Sheet sheet = wb.getSheetAt(0);\n for (int i = startRow, rowCursor = 0; i < data.length; i++, rowCursor++) {\n Row row = sheet.createRow(i);\n for (int j = startColumn, colCursor = 0; j < data[i].length; j++, colCursor++) {\n Cell cell = row.createCell(j);\n cell.setCellValue(data[rowCursor][colCursor]);\n }\n }\n wb.write(os);\n wb.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private String createNewHeader(List<String> columns)\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n for (String column : columns)\r\n {\r\n sb.append(column);\r\n sb.append(SEPARATOR);\r\n }\r\n\r\n return sb.substring(0, sb.length() - 1);\r\n }" ]
[ "0.6173942", "0.5981934", "0.5768856", "0.5722734", "0.5552441", "0.5493278", "0.5451995", "0.5412468", "0.5399277", "0.5398931", "0.5397255", "0.53193605", "0.53169024", "0.527349", "0.5266053", "0.5248021", "0.52448463", "0.5189992", "0.51825464", "0.5178861", "0.5149107", "0.51411575", "0.5139846", "0.51268053", "0.51244944", "0.5082128", "0.5063165", "0.50596595", "0.50543904", "0.5049728", "0.5040569", "0.503298", "0.5026915", "0.50205356", "0.50176007", "0.5015687", "0.5010068", "0.50050926", "0.49936217", "0.49850905", "0.49661866", "0.49605298", "0.49548844", "0.49450663", "0.49421725", "0.49368003", "0.49340415", "0.4931964", "0.49255595", "0.49229455", "0.49223498", "0.49106425", "0.4909916", "0.4898135", "0.4891516", "0.4885898", "0.48809594", "0.48771587", "0.48693845", "0.48576286", "0.48505986", "0.48470503", "0.48428366", "0.48392418", "0.4837292", "0.48367018", "0.48337927", "0.48305944", "0.48282802", "0.48279762", "0.48268294", "0.48256832", "0.4808954", "0.47909218", "0.47858155", "0.47844476", "0.4783277", "0.4768532", "0.47654513", "0.47644407", "0.47558624", "0.47533047", "0.47524405", "0.47494185", "0.47478032", "0.4746667", "0.47463685", "0.47445372", "0.47391868", "0.4738869", "0.47371542", "0.47332838", "0.47256136", "0.47200552", "0.4718952", "0.47183236", "0.47172117", "0.47133416", "0.4709701", "0.47076735", "0.47074294" ]
0.0
-1
Is it a germplasm template
public void setIsGermplasmTemplate(boolean isGermplasmTemplate);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean isHtmlbyTemplate() {\n\t\treturn singleItem || headless?false:freeMarkerSupport.isHtmlbyTemplate();\r\n\t}", "boolean isTemplated() {\n\t\treturn this.templated;\n\t}", "String getTemplate();", "public boolean isTemplate(String subExpression) {\n Element e = getElement(subExpression);\n if (e == null) return false;\n Boolean isTemplate = (Boolean) e.getUserData(\"isTemplate\");\n return isTemplate == null ? false : isTemplate;\n }", "public boolean isBlocNatureFormation() {\n\t\tboolean isFormation = false;\n\t\tif (toTplBlocNature().tbnLibelle().equals(EOTplBlocNature.TPL_BLOC_NATURE_FORMATION)) {\n\t\t\tisFormation = true;\n\t\t}\n\t\treturn isFormation;\n\t}", "public boolean isForGenere();", "static boolean isXMLTemplate(String name) {\n if (name == null) {\n return false;\n }\n name = name.toLowerCase();\n return name.matches(\"msxml\\\\d*\\\\.xsltemplate.*\");\n }", "boolean hasSessionTemplate();", "boolean hasTigTag();", "public boolean hasTemplates() {\n\t\treturn loader.<TemplateController>getController().hasTemplates();\n\t}", "public String getGraphicTemplateInUse()\n\t{\n\t\treturn pCFactory.getPageCreatorIdentifierInUse();\n\t}", "private static boolean stringTemplate_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"stringTemplate_1\")) return false;\n while (true) {\n int c = current_position_(b);\n if (!stringTemplate_1_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"stringTemplate_1\", c)) break;\n }\n return true;\n }", "private String getTemplate(boolean all){ \r\n\t\t\t StringBuilder sb = new StringBuilder();\t\t\t \r\n\t\t\t if(!all){\r\n\t\t\t \tsb.append(\"<tpl if=\\\"age &gt; 30\\\">\");\r\n\t\t\t }else{\r\n\t\t\t \tsb.append(\"<tpl>\");\r\n\t\t\t }\r\n\t\t\t sb.append(\"<p>Age: {age}</p>\");\r\n\t\t\t\tsb.append(\"<p>Sex: {gender}</p>\");\r\n\t\t\t\tsb.append(\"<p>Name: {name}</p>\"); \t\t\t \t\r\n\t\t\t\tsb.append(\"<p>Email: {email}</p>\");\r\n\t\t\t\tsb.append(\"<p>Reviews : </p>\");\r\n\t\t\t\tsb.append(\"<ul>\");\r\n\t\t\t\tsb.append(\"<tpl for=\\\"reviews\\\">\");\t\r\n\t\t\t\tsb.append(\"<li>{title}</li>\");\r\n\t\t\t\tsb.append(\"</tpl>\");\r\n\t\t\t\tsb.append(\"</ul>\");\r\n\t\t\t\tsb.append(\"<hr />\");\r\n\t\t\t\tsb.append(\"</tpl>\");\r\n\t\t\t return sb.toString();\r\n\t\t\t}", "boolean isContentGenerated();", "public boolean shouldRender(CodePackageTag cpt) {\n\t\treturn null == this.getKey() || this.getKey().equals(cpt.getKey());\n\t}", "boolean isLiquid();", "static boolean stringTemplate(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"stringTemplate\")) return false;\n if (!nextTokenIs(b, OPEN_QUOTE)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeToken(b, OPEN_QUOTE);\n p = r; // pin = 1\n r = r && report_error_(b, stringTemplate_1(b, l + 1));\n r = p && consumeToken(b, CLOSING_QUOTE) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "String getTemplateContent(){\r\n \t\tStringBuffer templateBuffer = new StringBuffer();\r\n \t\tfor(String templatePart:templateParts){\r\n \t\t\ttemplateBuffer.append(templatePart);\r\n \t\t}\r\n \t\treturn templateBuffer.toString();\r\n \t}", "protected String getPageTemplateName() {\n return \"page.ftl\";\n }", "public boolean isBlocNatureFormationSouhaitee() {\n\t\tboolean isBlocNatureFormationSouhaitee = false;\n\t\tif (toTplBlocNature().tbnLibelle().equals(EOTplBlocNature.TPL_BLOC_NATURE_FORMATION_SOUHAITEE)) {\n\t\t\tisBlocNatureFormationSouhaitee = true;\n\t\t}\n\t\treturn isBlocNatureFormationSouhaitee;\n\t}", "@Override\n public boolean hasTagProcessor(String uri, String localName) {\n return cdiManager.exists(Object.class, new TemplateProcessorLiteral(uri, localName));\n }", "void mo25968e(TemplateInfo templateInfo);", "private boolean isTemplateWithSlots(PSRelationship rel)\n {\n String templateProperty = rel\n .getProperty(IPSHtmlParameters.SYS_VARIANTID);\n if (!StringUtils.isBlank(templateProperty))\n {\n Long templateId = null;\n try\n {\n templateId = new Long(templateProperty);\n }\n catch (NumberFormatException e)\n {\n // ignore bad data\n }\n if (templateId != null)\n {\n return m_templatesWithSlots.contains(templateId);\n }\n }\n \n return false;\n }", "@Override\n protected boolean shouldVisitSubtreeOfFullMatchedNode(IMNode node) {\n return (node.getSchemaTemplateId() == NON_TEMPLATE)\n && super.shouldVisitSubtreeOfFullMatchedNode(node);\n }", "@Override\n protected boolean shouldVisitSubtreeOfFullMatchedNode(IMNode node) {\n return (node.getSchemaTemplateId() == NON_TEMPLATE)\n && super.shouldVisitSubtreeOfFullMatchedNode(node);\n }", "@Override\n public boolean isAcceptableInContext(TemplateContextType context) {\n return true;\n }", "private boolean getNeedTitle()\r\n\t{\n\t\tif (new EditionSpeService().ficheProducteurNeedEngagement()==false)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Si on interdit d'afficher un des deux blocs : pas de titre\r\n\t\tif ((peMesContrats.canPrintContrat==ImpressionContrat.JAMAIS) || (peMesContrats.canPrintContratEngagement==ImpressionContrat.JAMAIS))\r\n\t\t{\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Sinon, il faut un titre\r\n\t\treturn true;\r\n\t}", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "boolean hasContent();", "@Test\r\n\tpublic void checkGetTemplates() throws MalformedURLException, IOException {\r\n\r\n\t\tITemplate temp = general.getTemplate(\"specific\");\r\n\t\tassertEquals(\"generalTemplate\", temp.toString());\r\n\r\n\t\tString secondTemp = AbstractDresdenOclTest\r\n\t\t\t\t.getFile(\"/resources/templates/testSpecific.stg\",\r\n\t\t\t\t\t\tTemplateTestPlugin.ID).getAbsolutePath();\r\n\t\tITemplateGroup testSuper1 = null;\r\n\t\ttry {\r\n\t\t\ttestSuper1 = TemplatePlugin.getTemplateGroupRegistry()\r\n\t\t\t\t\t.addDefaultTemplateGroup(\"TestSuper1\", general);\r\n\t\t\ttestSuper1.addFile(secondTemp);\r\n\t\t} catch (TemplateException e) {\r\n\t\t\tfail(\"Can't set TemplateGroup testSuper1\");\r\n\t\t}\r\n\r\n\t\ttemp = testSuper1.getTemplate(\"specific\");\r\n\t\tassertEquals(\"specificTemplate\", temp.toString());\r\n\r\n\t\ttemp = general.getTemplate(\"specific2\");\r\n\t\tassertNull(temp);\r\n\r\n\t\tITemplateGroup testSuper2 = null;\r\n\t\ttry {\r\n\t\t\ttestSuper2 = TemplatePlugin.getTemplateGroupRegistry()\r\n\t\t\t\t\t.addDefaultTemplateGroup(\"TestSuper2\", testSuper1);\r\n\t\t\ttestSuper2.addFile(AbstractDresdenOclTest\r\n\t\t\t\t\t.getFile(\"/resources/templates/testGeneral.stg\",\r\n\t\t\t\t\t\t\tTemplateTestPlugin.ID).getAbsolutePath());\r\n\t\t} catch (TemplateException e) {\r\n\t\t\tfail(\"Can't set TemplateGroup testSuper2\");\r\n\t\t}\r\n\r\n\t\ttemp = testSuper2.getTemplate(\"specific2\");\r\n\t\tassertNotNull(temp);\r\n\t\tassertEquals(\"specificTemplate\", temp.toString());\r\n\r\n\t}", "public static boolean isTemplateElement(final String str) {\n if (str == null || \"\".equals(str)) {\n return false;\n }\n final String trimedStr = str.trim();\n for (TemplateElement templateElt : availableTemplateElements) {\n if (templateElt.key.equals(trimedStr)) {\n return true;\n }\n }\n return false;\n }", "public boolean isTheme( )\n {\n return getType( ) != null && ConstanteUtils.CONSTANTE_TYPE_LUTECE_SITE.equals( getType( ) );\n }", "public boolean isIsTemplateJob() {\n return isTemplateJob;\n }", "boolean hasLte();", "public boolean isBlocNatureDynamique() {\n\t\tboolean isDynamique = false;\n\t\tif (toTplBlocNature().tbnLibelle().equals(EOTplBlocNature.TPL_BLOC_NATURE_DYNAMIQUE)) {\n\t\t\tisDynamique = true;\n\t\t}\n\t\treturn isDynamique;\n\t}", "public static boolean isSameTemplate(String templateName) {\n return trialWizardPreferences.get(CURRENT_TEMPLATE, \"__\").equals(templateName);\n }", "private static boolean isGateFIFormat(String content) {\n return (content.indexOf(\"GateDocument\") != -1);\n }", "public boolean drawEdgeTemplates() {\n return edge_template_flag;\n }", "@Override\n protected boolean shouldVisitSubtreeOfInternalMatchedNode(IMNode node) {\n return (node.getSchemaTemplateId() == NON_TEMPLATE)\n && super.shouldVisitSubtreeOfFullMatchedNode(node);\n }", "@Override\n protected boolean shouldVisitSubtreeOfInternalMatchedNode(IMNode node) {\n return (node.getSchemaTemplateId() == NON_TEMPLATE)\n && super.shouldVisitSubtreeOfFullMatchedNode(node);\n }", "public String getTemplateName()\n {\n return MY_TEMPLATE;\n }", "public boolean processTemplateFile( String templateFile )\r\n {\r\n if( templateFile.length() == 0 ) return false;\r\n try {\r\n ArrayList<Template> lijst = templateParser.parseFile(templateFile); \r\n if( lijst != null ) templates.addAll(lijst);\r\n else return false;\r\n }catch( ParserConfigurationException e ) {\r\n e.printStackTrace();\r\n return false;\r\n // TODO: Handle exception\r\n }catch( SAXException e ) {\r\n e.printStackTrace();\r\n return false;\r\n // TODO: Handle exception\r\n }catch( IOException e ) {\r\n e.printStackTrace();\r\n return false;\r\n // TODO: Handle exception\r\n }\r\n return true;\r\n }", "String template();", "public abstract String getTemplateName();", "boolean isSlimeChunk();", "protected abstract String getTemplateName();", "@Override\n\tpublic boolean istBerechtigt() {\n\t\treturn true;\n\t}", "protected boolean betreteSpielfeld(){\r\n\t\t\r\n\t\tint neueId;\r\n\t\t\r\n\t\tif(spiel.getBewegungsWert()==6)\r\n\t\t{\r\n\t\t\tfor(int i=0; i<4; i++){\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Startfeld){\r\n\t\t\t\t\tneueId = spieler.getFigur(i).getFreiPosition();\r\n\t\t\t\t\tif(spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tspiel.bewege(i);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "protected IContentAssistProcessor getTemplateProcessor() {\n \t\t\treturn fTemplateProcessor;\n \t\t}", "private static boolean stringTemplate_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"stringTemplate_1_0\")) return false;\n boolean r;\n r = consumeToken(b, REGULAR_STRING_PART);\n if (!r) r = shortTemplateEntry(b, l + 1);\n if (!r) r = longTemplateEntry(b, l + 1);\n return r;\n }", "void mo25969f(TemplateInfo templateInfo);", "default boolean visitContent() {\n\t\treturn true;\n\t}", "@Override\n public boolean isEmailTemplateExists(String templateTypeDisplayName, String locale, String tenantDomain)\n throws I18nEmailMgtException {\n String normalizedTemplateName = I18nEmailUtil.getNormalizedName(templateTypeDisplayName);\n String path = EMAIL_TEMPLATE_PATH + PATH_SEPARATOR + normalizedTemplateName +\n PATH_SEPARATOR + locale.toLowerCase();\n\n try {\n Resource template = resourceMgtService.getIdentityResource(path, tenantDomain);\n return template != null;\n } catch (IdentityRuntimeException e) {\n String error = String.format(\"Error when retrieving email templates of %s tenant.\", tenantDomain);\n throw new I18nEmailMgtServerException(error, e);\n }\n }", "public abstract void mo32008e(TemplateInfo templateInfo);", "boolean hasI18();", "public static boolean isGlassFish(File candidate){\n\tFile as9 = new File(candidate.getAbsolutePath()+\n \"/lib/dtds/sun-web-app_2_5-0.dtd\"); //NOI18N\n\treturn as9.exists();\n }", "TemplatesPackage getTemplatesPackage();", "private native String getTemplate()/*-{\r\n\t\t\t\treturn ['<tpl for=\".\">', \r\n\t\t\t '<div class=\"x-customer-item\">', \r\n\t\t\t\t '<div class=\"name\">{name}</div>', \r\n\t\t\t\t '<div class=\"email\">E-mail:{email}</div>', \r\n\t\t\t\t '<div class=\"purchases\">Purchases:{purchases}</div>', \r\n\t\t\t '</div>', \r\n\t\t\t '</tpl>', \r\n\t\t\t ''].join(\"\");\r\n\t\t\t}-*/;", "public boolean sourceExists(String name) {\n \treturn mTemplates.containsKey(name);\n }", "private boolean generateTag(T1XTemplateTag tag, AdviceType at) {\n return tagAdviceCapabilities[tag.ordinal()][at.ordinal()] && generating.contains(at);\n }", "public interface PublicationTemplate {\r\n \r\n /**\r\n * Returns the RecordTemplate of the publication data item.\r\n */\r\n public RecordTemplate getRecordTemplate() throws PublicationTemplateException;\r\n \r\n /**\r\n * Returns the RecordSet of all the records built from this template.\r\n */\r\n public RecordSet getRecordSet() throws PublicationTemplateException;\r\n \r\n /**\r\n * Returns the Form used to create and update the records built from this template.\r\n */\r\n public Form getUpdateForm() throws PublicationTemplateException;\r\n \r\n /**\r\n * Returns the Form used to view the records built from this template.\r\n */\r\n public Form getViewForm() throws PublicationTemplateException;\r\n \r\n /**\r\n * Returns the Form used to search the records built from this template.\r\n */\r\n public Form getSearchForm() throws PublicationTemplateException;\r\n \r\n public void setExternalId(String externalId);\r\n \r\n public Form getEditForm(String name) throws PublicationTemplateException;\r\n \r\n public String getExternalId();\r\n \r\n public String getName();\r\n \r\n public String getDescription();\r\n \r\n public String getThumbnail();\r\n \r\n public String getFileName();\r\n \r\n public boolean isVisible();\r\n \r\n public boolean isSearchable();\r\n }", "public final ElemTemplate getTemplate() {\n/* 220 */ return this.m_template;\n/* */ }", "private boolean isCustomRenderer(ModelBlock p_177587_1_) {\n/* 741 */ if (p_177587_1_ == null)\n/* */ {\n/* 743 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 747 */ ModelBlock var2 = p_177587_1_.getRootModel();\n/* 748 */ return (var2 == MODEL_ENTITY);\n/* */ }", "private boolean testContentGenerator(ExtendedMarkersView view, Object[] args) {\n String currentGenerator = view.getBuilder().getGenerator().getId();\n for (int i = 0; i < args.length; i++) {\n if (args[i].equals(currentGenerator))\n return true;\n // The value 'any' works for any content generator\n if (args[i].equals(ANY_CONTENT_GENERATOR))\n return true;\n }\n return false;\n }", "java.lang.String getTemplateId();", "boolean hasLanguage();", "private void checkTemplateOnSubtree(IMNode node) throws MetadataException {\n if (node.isMeasurement()) {\n return;\n }\n IMNode child;\n IMNodeIterator iterator = store.getChildrenIterator(node);\n while (iterator.hasNext()) {\n child = iterator.next();\n\n if (child.isMeasurement()) {\n continue;\n }\n if (child.getSchemaTemplateId() != NON_TEMPLATE) {\n throw new MetadataException(\"Template already exists on \" + child.getFullPath());\n }\n checkTemplateOnSubtree(child);\n }\n }", "@Override\n public boolean canFinish() {\n ITemplateSection[] sections = fSelectionPage.getSelectedTemplates();\n for (int i = 0; i < sections.length; i++) {\n int pageCount = sections[i].getPageCount();\n for (int j = 0; j < pageCount; j++) {\n WizardPage page = sections[i].getPage(j);\n if (page != null && !page.isPageComplete())\n return false;\n }\n }\n return true;\n }", "public interface Template {\n\n}", "public static boolean shortTemplateEntry(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"shortTemplateEntry\")) return false;\n if (!nextTokenIs(b, SHORT_TEMPLATE_ENTRY_START)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, SHORT_TEMPLATE_ENTRY, null);\n r = consumeToken(b, SHORT_TEMPLATE_ENTRY_START);\n p = r; // pin = 1\n r = r && shortTemplateEntry_1(b, l + 1);\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "public String getDescTemplate()\n {\n return m_sDescTemplate;\n }", "private String getHtmPart(TemplateTag tag){\r\n \t\tString returnString;\r\n \t\treturnString = template.substring(devidePointer, tag.startposition);\r\n \t\tdevidePointer = tag.endposition;\r\n \t\treturn returnString;\r\n \t}", "public Object mainTemplate() {\n return this.mainTemplate;\n }", "@DISPID(86)\r\n\t// = 0x56. The runtime will prefer the VTID if present\r\n\t@VTID(84)\r\n\tint templateID();", "private String getAdvTemplate(){ \r\n\t\t\t StringBuilder sb = new StringBuilder();\r\n\t\t\t sb.append(\"<tpl for=\\\".\\\">\");\r\n\t\t\t\tsb.append(\"<div class=\\\"x-combo-list-item\\\" >\");\r\n\t\t\t\tsb.append(\"<span class=\\\"tpl-lft {gender}\\\"></span>\");\r\n\t\t\t\tsb.append(\"<span class=\\\"tpl-lft\\\">{name}</span>\");\r\n\t\t\t\tsb.append(\"<span class=\\\"tpl-rgt\\\">{age} Yrs</span>\");\r\n\t\t\t\tsb.append(\"</div>\");\r\n\t\t\t\tsb.append(\"</tpl>\");\r\n\t\t\t return sb.toString();\r\n\t\t\t}", "private static boolean isKonUnt(AnalyzedTokenReadings token) {\n return (token.hasPosTag(\"KON:UNT\")\n || StringUtils.equalsAnyIgnoreCase(token.getToken(), \"wer\", \"wo\", \"wohin\"));\n }", "private String getTemplate(){ \r\n\t\t\t StringBuilder sb = new StringBuilder();\r\n\t\t\t sb.append(\"<tpl for=\\\".\\\">\");\r\n\t\t\t\tsb.append(\"<div class=\\\"x-combo-list-item\\\" >\");\r\n\t\t\t\tsb.append(\"<span><b>{name}</b></span>\"); \t\t\t \t\r\n\t\t\t\tsb.append(\"</div>\");\r\n\t\t\t\tsb.append(\"</tpl>\");\r\n\t\t\t return sb.toString();\r\n\t\t\t}", "public void testBlogEntryTemplateAccessible() throws Exception {\n assertEquals(0, rootBlog.getBlogEntryTemplates().size());\n BlogEntry draft = rootBlog.getBlogForToday().createBlogEntry();\n draft.setType(BlogEntry.TEMPLATE);\n draft.store();\n assertEquals(1, rootBlog.getBlogEntryTemplates().size());\n assertEquals(draft, rootBlog.getBlogEntryTemplate(draft.getId()));\n }", "public boolean isAssociatedToPages(String templateId) throws PSValidationException;", "public Template getTemplate() {\n \t\t\treturn fNewTemplate;\n \t\t}", "protected BeautiSubTemplate getStartTemplate() {\n\t\treturn template.get();\n\t}", "public File getTemplateFile();", "boolean isAutoEnableElementsTranslation();", "private boolean is(TK tk)\n {\n return tk == tok.kind;\n }", "private boolean isSpecialPrefixTag(int ce)\n {\n return RuleBasedCollator.isSpecial(ce) &&\n RuleBasedCollator.getTag(ce) == CE_SPEC_PROC_TAG_;\n }", "private static boolean hasAnnotatedValue(Graph g){\n Iterator<String> nodeIterator = g.getNodes().keySet().iterator();\n while(nodeIterator.hasNext()){\n GraphNode currentNode = g.getNodes().get(nodeIterator.next());\n if(!currentNode.getType().equals(OPMWTemplate.WORFKLOW_TEMPLATE_PROCESS)&&\n !currentNode.getType().equals(OPMWTemplate.WORFKLOW_TEMPLATE_ARTIFACT)){\n return true;\n }\n }\n return false;\n }", "boolean hasHadithText();", "private boolean is(TK tk) {\n return tk == tok.kind;\n }", "private Template makeTemplate() {\n return new Template(\"spamHardGenerated\", \"SPAM HARD\\n$$template_EOO\\n\" + sendedWorld.getText() + \"\\n$$template_EOF\\n$$var_name osef\\n$$var_surname osef\");\n }", "protected boolean isScriptBlock() {\n return this.scriptBlock;\n }", "@Override\n public boolean isEmailTemplateTypeExists(String templateTypeDisplayName, String tenantDomain)\n throws I18nEmailMgtException {\n String normalizedTemplateName = I18nEmailUtil.getNormalizedName(templateTypeDisplayName);\n String path = EMAIL_TEMPLATE_PATH + PATH_SEPARATOR + normalizedTemplateName;\n\n try {\n Resource templateType = resourceMgtService.getIdentityResource(path, tenantDomain);\n return templateType != null;\n } catch (IdentityRuntimeException e) {\n String error = String.format(\"Error when retrieving email templates of %s tenant.\", tenantDomain);\n throw new I18nEmailMgtServerException(error, e);\n }\n }", "boolean isAlwaysvectorfont();", "@DISPID(14) //= 0xe. The runtime will prefer the VTID if present\n @VTID(20)\n int templateID();", "boolean isUsingTPExtension();", "private boolean isCurrent(){\n return (getPageTitle().size() > 0);\n }" ]
[ "0.6304535", "0.6301546", "0.6248855", "0.6045767", "0.59951645", "0.5961915", "0.5948687", "0.5878984", "0.5792951", "0.57757235", "0.56659955", "0.56192595", "0.5616903", "0.55231756", "0.5453474", "0.5444506", "0.5407501", "0.53910875", "0.5390175", "0.5369909", "0.53672063", "0.5353298", "0.53330195", "0.53288174", "0.53288174", "0.53087294", "0.5300146", "0.5296018", "0.5296018", "0.5296018", "0.5296018", "0.5296018", "0.5296018", "0.5296018", "0.52761585", "0.52668774", "0.5260223", "0.5257574", "0.52574176", "0.52448916", "0.5244726", "0.5220632", "0.520562", "0.51793385", "0.51793385", "0.5164746", "0.51638216", "0.51558", "0.51555276", "0.5148353", "0.5137382", "0.5126905", "0.5102718", "0.51011825", "0.5089819", "0.5085882", "0.5085203", "0.5074162", "0.50621355", "0.50614905", "0.5050005", "0.50452346", "0.50446945", "0.5028156", "0.50233287", "0.5012044", "0.500989", "0.5004883", "0.5000597", "0.49988696", "0.49981558", "0.49977627", "0.49830714", "0.49789047", "0.49755102", "0.49753305", "0.49678287", "0.49609965", "0.4960785", "0.4957262", "0.49537235", "0.49511373", "0.49400797", "0.493879", "0.49369967", "0.49338773", "0.493017", "0.49199104", "0.4908283", "0.4907142", "0.49037233", "0.49029148", "0.4901969", "0.48972854", "0.48953664", "0.48928276", "0.48912415", "0.48910126", "0.4884854", "0.48795518" ]
0.63120586
0
Complete the kangaroo function below.
static String kangaroo(int x1, int v1, int x2, int v2) { int x=x1-x2; int v=v2-v1; if(v!=0){ if(x%v==0 && x/v>0){ return "YES"; }else {return "NO";} }else {return "NO";} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void kk12() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "public void mo38117a() {\n }", "public void func_70295_k_() {}", "public void baocun() {\n\t\t\n\t}", "public void mo21786K() {\n }", "public void gored() {\n\t\t\n\t}", "void kiemTraThangHopLi() {\n }", "public static void listing5_14() {\n }", "public void mo5382o() {\n }", "void mo1942k();", "public final void mo51373a() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo21879u() {\n }", "public void redibujarAlgoformers() {\n\t\t\n\t}", "public void mo12930a() {\n }", "@Override\n public void perish() {\n \n }", "public void mo21792Q() {\n }", "public void mo21782G() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public void onderbreek(){\n \n }", "public void mo9848a() {\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "public void mo21877s() {\n }", "public void mo21785J() {\n }", "private stendhal() {\n\t}", "public void mo4359a() {\n }", "private void strin() {\n\n\t}", "private final zzgy zzgb() {\n }", "public void mo21795T() {\n }", "public void mo21793R() {\n }", "public void mo21825b() {\n }", "public void mo21787L() {\n }", "protected void mo6255a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo12628c() {\n }", "public void mo21791P() {\n }", "public void mo21878t() {\n }", "public void furyo ()\t{\n }", "public void mo21794S() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo97908d() {\n }", "public void Tyre() {\n\t\t\r\n\t}", "public static void listing5_16() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21779D() {\n }", "public void mo21780E() {\n }", "public void mo23813b() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "public void mo55254a() {\n }", "public void mo21789N() {\n }", "public void mo44053a() {\n }", "private void level7() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo3376r() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo115190b() {\n }", "public void mo6081a() {\n }", "public void skystonePos6() {\n }", "public static void listing5_15() {\n }", "private void yy() {\n\n\t}", "public void mo5097b() {\n }", "public void mo3749d() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {}", "public final void zzjk() {\n }", "public boolean k_()\r\n/* 450: */ {\r\n/* 451:464 */ return false;\r\n/* 452: */ }", "static void feladat9() {\n\t}", "void mo67924c();", "public void skystonePos5() {\n }", "void mo57278c();", "public void mo21781F() {\n }", "public void mo97906c() {\n }", "public void mo6944a() {\n }", "public void mo3370l() {\n }", "public void mo2740a() {\n }", "public void mo21880v() {\n }", "public void mo9241ay() {\n }", "public void mo5099c() {\n }", "@Override\n\tpublic void challenge14() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public void mo115188a() {\n }", "public final void mo91715d() {\n }", "@Override\n\tpublic void challenge17() {\n\n\t}", "private static void FinalIndVsPAk() {\n\t\tSystem.out.println(\"Pak Lost The Match\");\n\t\t\n\t}", "void tampilKarakterA();", "private void m50366E() {\n }", "public void mo2471e() {\n }", "public void mo21783H() {\n }" ]
[ "0.74133706", "0.647431", "0.64230096", "0.64198864", "0.63757664", "0.6355993", "0.6324395", "0.6320213", "0.6292712", "0.6283856", "0.6211568", "0.6182621", "0.615528", "0.6152702", "0.6141806", "0.61357254", "0.61106503", "0.6106032", "0.6098019", "0.6070022", "0.6056645", "0.6055959", "0.60551727", "0.6051345", "0.6039999", "0.60199094", "0.601585", "0.6012711", "0.60076815", "0.60035986", "0.6000789", "0.5975222", "0.5960317", "0.59599525", "0.5956747", "0.5955336", "0.59508014", "0.59456146", "0.5943193", "0.5921622", "0.5907559", "0.59074384", "0.59074384", "0.59074384", "0.59074384", "0.59074384", "0.59074384", "0.59074384", "0.58856434", "0.58739436", "0.5873395", "0.5854242", "0.5847352", "0.5824248", "0.58142215", "0.58091325", "0.5805795", "0.5805365", "0.5802069", "0.5800975", "0.57877463", "0.578732", "0.57864916", "0.57693756", "0.5764382", "0.5764269", "0.5763049", "0.5761701", "0.57553595", "0.575531", "0.57529753", "0.5748911", "0.57478356", "0.57478356", "0.5743256", "0.5737342", "0.5736778", "0.57343984", "0.57307047", "0.5727418", "0.5726148", "0.57235706", "0.57195145", "0.5714257", "0.5707081", "0.5703639", "0.5703464", "0.5700212", "0.5699365", "0.5697927", "0.56938136", "0.56935996", "0.5692667", "0.56822705", "0.56771004", "0.5675326", "0.56736416", "0.5661145", "0.5659707", "0.5659056", "0.5650562" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { textUsuario = new javax.swing.JTextField(); textContraseña = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); textNombre = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); textDocumento = new javax.swing.JTextField(); textApellido = new javax.swing.JTextField(); textTelefono = new javax.swing.JTextField(); textDireccion = new javax.swing.JTextField(); botonActualizar = new javax.swing.JButton(); botonCancelar = new javax.swing.JButton(); labelIdUsuario = new javax.swing.JLabel(); textoIdUsuairo = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabel1.setText("Usuario"); jLabel2.setText("Contraseña"); jLabel3.setText("Nombre"); textNombre.setToolTipText(""); jLabel4.setText("Apellido"); jLabel5.setText("Documento"); jLabel6.setText("Teléfono"); jLabel7.setText("Dirección"); botonActualizar.setText("Actualizar"); botonActualizar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { botonActualizarActionPerformed(evt); } }); botonCancelar.setText("Cancelar"); botonCancelar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { botonCancelarActionPerformed(evt); } }); labelIdUsuario.setText("ID Usuario:"); textoIdUsuairo.setText("idUsuario"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(120, 120, 120) .addComponent(botonActualizar) .addGap(69, 69, 69) .addComponent(botonCancelar)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(textDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel3) .addGap(30, 30, 30) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(textNombre, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE) .addComponent(textUsuario))) .addComponent(jLabel7) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(labelIdUsuario) .addComponent(jLabel1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(textoIdUsuairo))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel6)) .addComponent(jLabel4)) .addGap(27, 27, 27) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(textApellido, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(textTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(textContraseña, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(textDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, 316, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(30, 30, 30)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(labelIdUsuario) .addComponent(textoIdUsuairo)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(textUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2) .addComponent(textContraseña, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(textNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4) .addComponent(textApellido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(jLabel6) .addComponent(textDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(textTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(20, 20, 20) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7) .addComponent(textDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(16, 16, 16) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(botonCancelar) .addComponent(botonActualizar)) .addGap(26, 26, 26)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public JFFornecedores() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }", "public frmAddIncidencias() {\n initComponents();\n }" ]
[ "0.73192346", "0.7290526", "0.7290526", "0.7290526", "0.7285891", "0.72480357", "0.7213616", "0.7207808", "0.71955067", "0.71891475", "0.71844363", "0.7159038", "0.71474695", "0.7092269", "0.7079923", "0.70560205", "0.69864315", "0.697697", "0.69552195", "0.6953691", "0.69458604", "0.6942849", "0.6935743", "0.6930747", "0.69286084", "0.6924837", "0.69246644", "0.6911876", "0.69103247", "0.68922365", "0.6891582", "0.68904996", "0.68901706", "0.6888661", "0.68829393", "0.6881672", "0.6880505", "0.68782157", "0.6875765", "0.6874406", "0.68711114", "0.6859388", "0.6856025", "0.68551815", "0.6855079", "0.6855076", "0.68530315", "0.68524104", "0.68524104", "0.6843717", "0.68364704", "0.6836458", "0.6828335", "0.68279964", "0.6826276", "0.68240345", "0.6823631", "0.68171996", "0.6816324", "0.68097955", "0.68088883", "0.68078303", "0.6807776", "0.680721", "0.680251", "0.6795605", "0.6794452", "0.67921954", "0.67907083", "0.678904", "0.6787817", "0.6787755", "0.67814714", "0.67663145", "0.6765024", "0.67649895", "0.6756559", "0.6754775", "0.6751848", "0.67506975", "0.67435455", "0.6738591", "0.6737042", "0.6735227", "0.6732907", "0.6726301", "0.6726003", "0.67197675", "0.67156976", "0.6714806", "0.6713657", "0.6708582", "0.67078584", "0.6705488", "0.6700733", "0.6699659", "0.6698679", "0.66974026", "0.6693979", "0.66902804", "0.6690275" ]
0.0
-1
//GENEND:initComponents Obtengo todos los datos del usuario que voy a actualizar.
private void cargarDatosUsuario() { this.textUsuario.setText(this.usuarioCargado.getUsuario()); this.textContraseña.setText(this.usuarioCargado.getContraseña()); this.textNombre.setText(this.usuarioCargado.getNombre()); this.textApellido.setText(this.usuarioCargado.getApellido()); this.textDocumento.setText(String.valueOf(this.usuarioCargado.getDocumento())); this.textTelefono.setText(String.valueOf(this.usuarioCargado.getTelefono())); this.textDireccion.setText(this.usuarioCargado.getDireccion()); this.textoIdUsuairo.setText(String.valueOf(this.usuarioCargado.getId())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void recogerDatos() {\n\t\ttry {\n\t\t\tusuSelecc.setId(etId.getText().toString());\n\t\t\tusuSelecc.setName(etNombre.getText().toString());\n\t\t\tusuSelecc.setFirstName(etPApellido.getText().toString());\n\t\t\tusuSelecc.setLastName(etSApellido.getText().toString());\n\t\t\tusuSelecc.setEmail(etCorreo.getText().toString());\n\t\t\tusuSelecc.setCustomFields(etAuth.getText().toString());\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n\t\t\tmostrarException(e.getMessage());\n\t\t}\n\t}", "private void actualizaUsuario() {\n\t\t\n\t\tInteger edad=miCoordinador.validarEdad(campoEdad.getText().trim());\n\t\t\n\t\tif (edad!=null) {\n\t\t\t\n\t\t\tUsuarioVo miUsuarioVo=new UsuarioVo();\n\t\t\t//se asigna cada dato... el metodo trim() del final, permite eliminar espacios al inicio y al final, en caso de que se ingresen datos con espacio\n\t\t\tmiUsuarioVo.setDocumento(campoDocumento.getText().trim());\n\t\t\tmiUsuarioVo.setNombre(campoNombre.getText().trim());\n\t\t\tmiUsuarioVo.setEdad(Integer.parseInt(campoEdad.getText().trim()));\n\t\t\tmiUsuarioVo.setProfesion(campoProfesion.getText().trim());\n\t\t\tmiUsuarioVo.setTelefono(campoTelefono.getText().trim());\n\t\t\tmiUsuarioVo.setDireccion(campoDireccion.getText().trim());\n\t\t\t\n\t\t\tString actualiza=\"\";\n\t\t\t//se llama al metodo validarCampos(), este retorna true o false, dependiendo de eso ingresa a una de las opciones\n\t\t\tif (miCoordinador.validarCampos(miUsuarioVo)) {\n\t\t\t\t//si se retornó true es porque todo está correcto y se llama a actualizar\n\t\t\t\tactualiza=miCoordinador.actualizaUsuario(miUsuarioVo);//en registro se almacena ok o error, dependiendo de lo que retorne el metodo\n\t\t\t}else{\n\t\t\t\tactualiza=\"mas_datos\";//si validarCampos() retorna false, entonces se guarda la palabra mas_datos para indicar que hace falta diligenciar los campos obligatorios\n\t\t\t}\n\t\t\t\n\t\t\t//si el registro es exitoso muestra un mensaje en pantalla, sino, se valida si necesita mas datos o hay algun error\n\t\t\tif (actualiza.equals(\"ok\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \" Se ha Modificado Correctamente \",\"Confirmación\",JOptionPane.INFORMATION_MESSAGE);\t\t\t\n\t\t\t}else{\n\t\t\t\tif (actualiza.equals(\"mas_datos\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Debe Ingresar los campos obligatorios\",\"Faltan Datos\",JOptionPane.WARNING_MESSAGE);\t\t\t\n\t\t\t\t}else{\n\t\t JOptionPane.showMessageDialog(null, \"Error al Modificar\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(null, \"Debe ingresar una edad Valida!!!\",\"Advertencia\",JOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t\t\t\t\n\t}", "private void actualizarUsuario() {\n\n\n if (!altura_et.getText().toString().isEmpty() && !peso_et.getText().toString().isEmpty() &&\n !email_et.getText().toString().isEmpty() && !nombreUO_et.getText().toString().isEmpty()) {\n\n user.setAltura(Integer.parseInt(altura_et.getText().toString()));\n user.setPeso(Integer.parseInt(peso_et.getText().toString()));\n user.setCorreo(email_et.getText().toString());\n user.setUserID(nombreUO_et.getText().toString());\n\n\n }else\n Toast.makeText(this,\"Comprueba los datos\", Toast.LENGTH_LONG).show();\n\n }", "private void CargarUsuarios(){\n administradores.clear();\n usuariosList.clear();\n for (String i: BienvenidaActivity.UsuariosRegistrados.keySet()) {\n if(EsAdmin(i)){\n administradores.add(BienvenidaActivity.UsuariosRegistrados.get(i));\n }else{\n usuariosList.add(BienvenidaActivity.UsuariosRegistrados.get(i));\n }\n }\n String admins_string = \"\";\n for(Usuario admin : administradores){\n admins_string += admin.getUsername() + \" -> \" + admin.getNombre() + \" \" + admin.getApellido() + \"\\n\";\n }\n\n String users_string = \"\";\n for(Usuario userss : usuariosList){\n users_string += userss.getUsername() + \" -> \" + userss.getNombre() + \" \" + userss.getApellido() + \"\\n\";\n }\n\n // Finalmente se coloca en la actividad\n\n txtvw_contadmin.setText(String.valueOf(administradores.size()));\n txtvw_contusers.setText(String.valueOf(usuariosList.size()));\n txtvw_admins.setText(admins_string);\n txtvw_users.setText(users_string);\n }", "public void updateUsuario(Usuario usuario) {\n\t\t\n\t}", "@Override\r\n\tpublic void analizarUsuario() {\n\t\tfor(IAsesoria ia : usuarios) {\r\n\t\t\tia.analizarUsuario();\r\n\t\t}\t\r\n\t}", "public ArrayList <Usuario>listaUsuario(){\r\n\t\treturn loja.getUsuarios();\r\n\t}", "public List<Usuario> getUsuario() {\r\n return usuarios;\r\n }", "public void modificarUsuario(OwlUserVO usuario, boolean pass, List<String> errores) {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tOwlUserDAO OwlDAO = new OwlUserDAO();\n\t\t\tif (pass) {\n\t\t\t\tErrorsStrings.compruebaDatos(usuario, errores);\n\t\t\t\tif (errores.isEmpty()) {\n\t\t\t\t\tPasswordAuthentication passauth = new PasswordAuthentication();\n\t\t\t\t\tString hashpass = passauth.hash(usuario.getPassword());\n\t\t\t\t\tusuario.setPassword(hashpass);\n\t\t\t\t\tOwlDAO.actualizarUsuario(usuario, mysql);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tErrorsStrings.compruebaDatos(usuario, errores);\n\t\t\t\tif (errores.isEmpty()) {\n\t\t\t\t\tOwlDAO.actualizarUsuario(usuario, mysql);\n\t\t\t\t}\n\t\t\t}\n\t\t\tmysql.disconnect();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\n\t}", "public void actualizarUsuario(Long idUsr,String nick,String nombres,String pass){\n\t\t\t\t\t //buscamos el objeto que debe ser actualizado:\n\t\t\t\t\t Usuario u = findbyIdUsuario(idUsr);\n\t\t\t\t\t em.getTransaction().begin();\n\t\t\t\t\t // no se actualiza la clave primaria, en este caso solo la descripcion\n\t\t\t\t\t u.setNick(nick);\n\t\t\t\t\t u.setNombres(nombres);\n\t\t\t\t\t u.setPass(pass);\n\t\t\t\t\t em.merge(u);\n\t\t\t\t\t em.getTransaction().commit();\n\t\t\t\t }", "public void inicializarDatos(aplicacion.Usuario u){\n //Pestaña Informacion\n this.usuario=fa.obtenerUsuarioVivo(u.getIdUsuario());\n ModeloTablaBuenasAcciones mba;\n mba = (ModeloTablaBuenasAcciones) tablaBA.getModel();\n mba.setFilas(usuario.getBuenasAcciones());\n ModeloTablaPecados mp;\n mp = (ModeloTablaPecados) tablaPecados.getModel();\n mp.setFilas(usuario.getPecados());\n textoNombre.setText(usuario.getNombre());\n textoUsuario.setText(usuario.getNombreUsuario());\n textoContrasena.setText(usuario.getClave());\n textoLocalidad.setText(usuario.getLocalidad());\n textoFechaNacimiento.setText(String.valueOf(usuario.getFechaNacimiento()));\n //PestañaVenganzas\n ModeloTablaUsuarios mu;\n mu = (ModeloTablaUsuarios) tablaUsuarios.getModel();\n mu.setFilas(fa.consultarUsuariosMenos(usuario.getIdUsuario(), textoNombreBusqueda.getText()));\n ModeloTablaVenganzas mv;\n mv = (ModeloTablaVenganzas) tablaVenganzas.getModel();\n mv.setFilas(fa.listaVenganzas());\n }", "@Override\n\tpublic Usuario modificar() {\n\t\tLOG.info(\"Se modifico el usuario de la bd\");\n\t\treturn usuario;\n\t}", "private void updateUserWithoutPassword() throws ClassNotFoundException, NoSuchAlgorithmException{\n\t\tint currentPositionInTableView = usersTable.getSelectionModel().getSelectedIndex(); // zapamiętaj bieżące podświetlenie w tabeli\n\t\tif ((isAllFieldsAreFull()) \n\t\t\t\t&& (isLoginUnique(usersTable.getSelectionModel().getSelectedItem().getId()))){\t\n\t\t\t\t\tMain.getMMUser().update(\t\t\t\t \n\t\t\t\t\t\t\tnew User(\n\t\t\t\t\t\t\t\t\tusersTable.getSelectionModel().getSelectedItem().getId(),\n\t\t\t\t\t\t\t\t\tuserLoginField.getText(), \n\t\t\t\t\t\t\t\t\tusersTable.getSelectionModel().getSelectedItem().getPassword(), \n\t\t\t\t\t\t\t\t\tuserNameField.getText(), \n\t\t\t\t\t\t\t\t\tuserLastNameField.getText(), \n\t\t\t\t\t\t\t\t\tpermission,\n\t\t\t\t\t\t\t\t\teditingCheck.isSelected(),\n\t\t\t\t\t\t\t\t\treminderCheck.isSelected()));\n\t\t\t\t\t// pokaż aktualny stan bazy pracowników\n\t\t\t\t\treadUsers();\n\t\t\t\t\tshowUsers();\n\t\t\t\t\tusersTable.getSelectionModel().select(currentPositionInTableView); // ustaw podswietlenie na bieżący wiersz\n\t\t\t\t\tnew AlertDialog(\"Operacja zakończona\", \"Zaktualizowano dane\", AlertType.INFORMATION);\n\t\t}\n\t}", "public List<Usuario> obtenerListaUsuariosActivos(){\n return usuarioBean.obtenerListaUsuariosActivos();\n }", "@Override\r\n\tpublic List<Usuario> listarUsuario() {\n\t\treturn iUsuario.listarUsuarios();\r\n\t}", "public void actualizarUsuario(String cedula,String name ,String lastname , String city ,String phone ,String email,String password) throws BLException;", "static void effacerEnregistrer(){\n users.clear();\n }", "public List<User> ObtenerTodosUsuarios() throws BLException;", "private void cargaUsuarios() {\n //Abre la conexion\n Connection con = Star.conAbrBas(true, false);\n \n //Declara variables de la base de datos \n java.sql.Statement st;\n java.sql.ResultSet rs; \n String sQ;\n /*Obtiene todos los datos del usuario*/\n try\n {\n sQ = \"SELECT estac FROM estacs WHERE estac <> '\" + Login.sUsrG + \"' AND admcaj <= (SELECT admcaj FROM estacs WHERE estac = '\" + Login.sUsrG + \"')\";\n st = con.createStatement();\n rs = st.executeQuery(sQ);\n /*Si hay datos*/\n while(rs.next())\n {\n /*Obtiene los datos y cargalos en sus campos*/\n jcmbUsuarios.addItem(rs.getString(\"estac\"));\n }\n //si ingreso usuarios al combo, jalo los permisos del primer usuario\n// if(jcmbUsuarios.getItemCount() > 0){\n// cargaPermisos(jcmbUsuarios.getSelectedItem().toString());\n// }\n \n }catch(SQLException expnSQL)\n {\n //Procesa el error y regresa\n Star.iErrProc(this.getClass().getName() + \" \" + expnSQL.getMessage(), Star.sErrSQL, expnSQL.getStackTrace(), con); \n }\n }", "public Vector<Usuario> getUsuario() {\n\t\treturn usuario;\n\t}", "public Usuario actualizar(RegistroActForm usuario, long idUsuario) throws AbadiaException {\n String sSQL;\r\n PreparedStatement ps = null;\r\n ResultSet rs = null;\r\n try {\r\n // Añadir el usuario en la tabla\r\n sSQL = \"Update usuario set IDIOMAID = ?, CONTRASENA=? , NOMBRE=? , APELLIDO1=? , APELLIDO2=? ,EDAD=?, PAIS=?, SEXO=? \" +\r\n \"WHERE USUARIOID= ?\";\r\n ps = con.prepareStatement(sSQL);\r\n ps.setInt(1, usuario.getIdioma());\r\n ps.setString(2, usuario.getPwd());\r\n ps.setString(3, usuario.getNombre());\r\n ps.setString(4, usuario.getApellido1());\r\n ps.setString(5, usuario.getApellido2());\r\n ps.setInt(6, usuario.getEdad());\r\n ps.setInt(7, usuario.getPais());\r\n ps.setInt(8, usuario.getSexo());\r\n ps.setLong(9, idUsuario);\r\n // Ejecutarlo\r\n ps.execute();\r\n return validar(usuario.getNick(), usuario.getPwd());\r\n } catch (SQLException e) {\r\n throw new AbadiaSQLException(\"adUsuario. actualizar. SQLException.\", e, log);\r\n } finally {\r\n DBMSUtils.cerrarObjetoSQL(rs);\r\n DBMSUtils.cerrarObjetoSQL(ps);\r\n }\r\n\r\n }", "public List<Usuario> getTodosOsUsuarios() {\r\n\t\treturn listaDeUsuarios;\r\n\t}", "@Override\n\tpublic void updateUsuario(Usuario p) {\n\t\t\n\t}", "public List<UsuarioDTO> listarUsuarios() {\n\t\treturn null;\n\n\t}", "protected void proccesValues() {\n Users user = new Users();\n user.setName(bean.getName());\n user.setSurname(bean.getSurname());\n user.setUsername(bean.getUsername());\n StrongPasswordEncryptor passwordEncryptor = new StrongPasswordEncryptor();\n String encryptedPassword = passwordEncryptor.encryptPassword(bean.getPassword());\n user.setPassword(encryptedPassword);\n \n usersService.persist(user);\n Notification.show(msgs.getMessage(INFO_REGISTERED), Notification.Type.ERROR_MESSAGE);\n resetValues();\n UI.getCurrent().getNavigator().navigateTo(ViewLogin.NAME);\n }", "@Override\n\tpublic List<LoginVO> obtenerUsus() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Usuario> listUsuario() {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n btn_Eliminar = new javax.swing.JButton();\n btnRegre = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n tbl_user = new javax.swing.JTable();\n tipo = new javax.swing.JComboBox();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n re_pass = new javax.swing.JPasswordField();\n pass = new javax.swing.JPasswordField();\n jLabel4 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n usuario = new javax.swing.JTextField();\n btn_agregar = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n btn_actualizarr = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Usuarios\");\n setIconImage(getIconImage());\n setResizable(false);\n\n btn_Eliminar.setText(\"Dar de Baja\");\n btn_Eliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_EliminarActionPerformed(evt);\n }\n });\n\n btnRegre.setText(\"Regresar\");\n btnRegre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRegreActionPerformed(evt);\n }\n });\n\n tbl_user.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Id\", \"Nombre Usuario\", \"contraseña\", \"privilegios\"\n }\n ));\n jScrollPane1.setViewportView(tbl_user);\n\n tipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Administrador\", \"Invitado\" }));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setText(\"Privilegios:\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel3.setText(\"Confirmar Contraseña:\");\n\n re_pass.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n re_passActionPerformed(evt);\n }\n });\n\n pass.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n passActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setText(\"Contraseña:\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setText(\"Nombre:\");\n\n usuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n usuarioActionPerformed(evt);\n }\n });\n usuario.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n usuarioKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n usuarioKeyTyped(evt);\n }\n });\n\n btn_agregar.setText(\"Dar de Alta\");\n btn_agregar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_agregarActionPerformed(evt);\n }\n });\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 897, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 30, Short.MAX_VALUE)\n );\n\n btn_actualizarr.setText(\"Refrescar tabla\");\n btn_actualizarr.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_actualizarrActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(47, 47, 47)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(re_pass, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(77, 77, 77)\n .addComponent(jLabel1)\n .addGap(27, 27, 27))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(pass, javax.swing.GroupLayout.DEFAULT_SIZE, 134, Short.MAX_VALUE)\n .addComponent(usuario))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 85, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btn_agregar, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 37, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 496, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btn_actualizarr, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btn_Eliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27)\n .addComponent(btnRegre, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(25, 25, 25))\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(5, 5, 5)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(usuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(pass)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(re_pass, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tipo, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE)\n .addComponent(btn_agregar)\n .addGap(118, 118, 118))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnRegre)\n .addComponent(btn_Eliminar)\n .addComponent(btn_actualizarr))))\n .addGap(23, 23, 23))\n );\n\n pack();\n }", "public List<Usuario> getUsuarios() {\n\t\treturn getUsuarioDAO().listarTodos();\n\t}", "public void setUsuario(java.lang.String newUsuario);", "@Override\r\n\tpublic User editdata(User usr) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<Usuario> getAllUsuarios() {\n\t\treturn new ArrayList<Usuario>();\n\t}", "public List<Usuario> getListaDeUsuarios() {\n\t\tList<Usuario> listaDeUsuarios = usuarioService.getUsuarios();\n\t\treturn listaDeUsuarios;\n\t}", "public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n \r\n }", "private void controladorUser(Controlador controlador){\n this.contUserCrearProyecto = controlador.getUserCrearProyecto();\n inicioUser.setControlCrearProyecto(contUserCrearProyecto);\n \n this.contUserCrearColectivo = controlador.getUserCrearColectivo();\n inicioUser.setControlCrearColectivo(contUserCrearColectivo);\n\n this.contInformes = controlador.getInformes();\n inicioUser.setControlSolicitarInformes(contInformes); \n \n this.contFiltrar = controlador.getFiltrar();\n inicioUser.setControlFiltrar(contFiltrar);\n\n this.contLimpiar = controlador.getLimpiarFiltro();\n inicioUser.setControlLimpiarFiltro(contLimpiar);\n }", "@Override\n\t/*Método que se utilizará en el momento de modificar los datos de un usuario desde su panel de usuario*/\n\tpublic String modificarUsuario(String nombreusuario, String nombre,String apellidos,String clave,String email,String premium) {\n\t\tDBConnection con = new DBConnection();\n\t\tString sqldatos=\"select * from usuarios where nombreusuario LIKE '\"+nombreusuario+\"'\"; //selecciono los datos actuales del usuario\n\t\t\n\t\ttry {\n\t\t\tStatement st = con.getConnection().createStatement();\n\t\t\tResultSet rs = st.executeQuery(sqldatos);\n\t\t\t//Las siguientes variables guardarán los datos del usuario que tienen en la base de datos \n\t\t\tString nombrebd=\"\";\n\t\t\tString apellidosbd=\"\"; \n\t\t\tString clavebd= \"\"; \n\t\t\tString emailbd= \"\";\n\t\t\tString premiumbd=\"\";\n\t\t\twhile(rs.next()) {\n\t\t\t\tnombrebd=rs.getString(\"nombre\");\n\t\t\t\tapellidosbd= rs.getString(\"apellidos\"); \n\t\t\t\tclavebd= rs.getString(\"clave\"); \n\t\t\t\temailbd=rs.getString(\"email\");\n\t\t\t\tpremiumbd=rs.getString(\"premium\");\n\t\t\t}\n\t\t\t\n\t\t\t//en caso de que algunos de los campos de ese formulario NO estén completos, se pondrán los datos que ya se tenían en la BD relacionados con el mismo\n\t\t\t//si esto no se hiciese así, quedarían datos en blanco\n\t\t\tif(nombre.equals(\"\")) {\n\t\t\t\tnombre=nombrebd;\n\t\t\t}\n\t\t\tif(apellidos.equals(\"\")) {\n\t\t\t\tapellidos=apellidosbd;\n\t\t\t}\n\t\t\tif(clave.equals(\"\")) {\n\t\t\t\tclave=clavebd;\n\t\t\t}\n\t\t\tif(email.equals(\"\")) {\n\t\t\t\temail=emailbd;\n\t\t\t}\n\t\t\tif(premium.equals(\"\")) {\n\t\t\t\tpremium=premiumbd;\n\t\t\t}\n\t\t\t\n\t\t\tString sqlmodificacion=\"Update usuarios SET nombre='\"+nombre+\"', apellidos='\"+apellidos+\"',clave='\"+clave+\"', email='\"+email+\"', premium='\"+premium+\"' where nombreusuario LIKE '\"+nombreusuario+\"'\";\n\t\t\tst.executeQuery(sqlmodificacion); //se modifica el usuario \n\t\t\tst.close();\n\t\t\treturn \"OK\"; //se devuelve para mostrarse en la web este mensaje\n\t\t}catch(Exception e){\n\t\t\treturn e.getMessage();\n\t\t}finally{\n\t\t\tcon.desconectar();\n\t\t}\n\t}", "@Override\n\tpublic ArrayList<UsuarioComum> getAll() {\n\t\treturn null;\n\t}", "public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n }", "public void setUsuario(String usuario) {\r\n this.usuario = usuario;\r\n }", "public void setUsuario(Usuario usuario) {\n this.usuario = usuario;\n }", "public void setUsuario(Usuario usuario) {\n this.usuario = usuario;\n }", "@Override\n\tpublic List<Usuario> findAllUsers() {\n\t\treturn usuarioRepository.findAll();\n\t}", "public void actualizarUsuarios(Map<Integer, PaquetePersonaje> personajes) {\n\t\t// Actualizo la lista\n\t\tDefaultListModel<String> modeloLista = new DefaultListModel<String>();\n\t\tif (personajes == null || personajes.size() == 0) {\n\t\t\tthis.listaUsuarios.setModel(modeloLista);\n\t\t} else {\n\t\t\tfor (PaquetePersonaje usuario : personajes.values()) {\n\t\t\t\t// Si el usuario soy \"yo\" no lo agrego a la lista\n\t\t\t\tif (!this.cliente.getPaquetePersonaje().getNombre().equals(usuario.getNombre()))\n\t\t\t\t\tmodeloLista.addElement(usuario.getNombre());\n\t\t\t}\n\t\t\tthis.listaUsuarios.setModel(modeloLista);\n\t\t}\n\n\t\t// Cierro la ventana de los usuarios deconectados\n\t\tfor (String username : this.chatPrivados.keySet()) {\n\t\t\tif (!modeloLista.contains(username))\n\t\t\t\tthis.eliminarVentanChat(username);\n\t\t}\n\t}", "public TabelaHash getUsuarios() {\n return usuarios;\n }", "public void actualizarUsuario(UsuarioDto dto){\n\t\tUsuario usuario = usuarioDao.load(dto.getId());\n\t\t\n\t\t// Seteo los valores a actualizar\n\t\tusuario.setNombre(dto.getNombre());\n\t\tusuario.setApellido(dto.getApellido());\n\t\t\n\t\t// Actualizo en la db\n\t\tusuarioDao.update(usuario);\n\t\t\n\t\tlog.info(\"Se actualizo el producto: \" + dto.getId());\n\t}", "public ArrayList<User> getAllUsersBD() {\n ArrayList<User> users = new ArrayList<>();\n Cursor cursor = this.db.query(TABLE_USER, new String[]{ID_USER, USERNAME, AUTH_KEY, PASSWORD_HASH, EMAIL, STATUS, DATA_REGISTO, DATA_ATUALIZADO},\n null, null, null, null, null);\n\n if (cursor.moveToFirst()) {\n do {\n User auxUser = new User(cursor.getInt(0),\n cursor.getString(1), cursor.getString(2),\n cursor.getString(3), cursor.getString(4),\n cursor.getInt(5), cursor.getInt(6),\n cursor.getInt(7));\n users.add(auxUser);\n } while (cursor.moveToNext());\n }\n cursor.close();\n\n return users;\n }", "public void setUsuario(Usuario usuario) {\r\n\t\tthis.usuario = usuario;\r\n\t}", "public ListaUsuario() {\n initComponents();\n\n exibir();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDialogLogin = new javax.swing.JDialog();\n jButtonIngresar = new javax.swing.JButton();\n jButtonCancelar = new javax.swing.JButton();\n jLabelUsuario = new javax.swing.JLabel();\n jLabelContraseña = new javax.swing.JLabel();\n usuario = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n contrasenia = new javax.swing.JPasswordField();\n jDialogGestionUsuarios = new javax.swing.JDialog();\n jButtonNuevoUsuario = new javax.swing.JButton();\n jButtonModificarUsuario = new javax.swing.JButton();\n jButtonHistorialUsuario = new javax.swing.JButton();\n jButtonVolver = new javax.swing.JButton();\n jDialogHistorialUsuario = new javax.swing.JDialog();\n jScrollPane1 = new javax.swing.JScrollPane();\n tabla = new javax.swing.JTable();\n jLabel2 = new javax.swing.JLabel();\n nomUsu = new javax.swing.JTextField();\n jButtonMostrarHistorial = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jButtonSalir = new javax.swing.JButton();\n jDialogNuevoUsuario = new javax.swing.JDialog();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jCheckBoxClientes = new javax.swing.JCheckBox();\n jCheckBoxMenu = new javax.swing.JCheckBox();\n jCheckBoxCadetes = new javax.swing.JCheckBox();\n jCheckBoxFacturacion = new javax.swing.JCheckBox();\n jCheckBoxUsuarios = new javax.swing.JCheckBox();\n jCheckBoxEstadisticas = new javax.swing.JCheckBox();\n nombreUsuario = new javax.swing.JTextField();\n contraseniaNueva = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jButtonGuardarNuevoUsuario = new javax.swing.JButton();\n jButtonCancelarNuevoUsuario = new javax.swing.JButton();\n jButtonGestionClientes = new javax.swing.JButton();\n jButtonGestionCadete = new javax.swing.JButton();\n jButtonGestionMenu = new javax.swing.JButton();\n jButtonCambiarUsuario = new javax.swing.JButton();\n jButtonCerrarSesion = new javax.swing.JButton();\n jButtonFactura = new javax.swing.JButton();\n estadisticas = new javax.swing.JButton();\n GestionUsuario = new javax.swing.JButton();\n jButtonIniciarSesion = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n\n jButtonIngresar.setText(\"Ingresar\");\n jButtonIngresar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonIngresarActionPerformed(evt);\n }\n });\n\n jButtonCancelar.setText(\"Cancelar\");\n jButtonCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCancelarActionPerformed(evt);\n }\n });\n\n jLabelUsuario.setText(\"Usuario\");\n\n jLabelContraseña.setText(\"Contraseña\");\n\n usuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n usuarioActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel1.setText(\"Login\");\n\n contrasenia.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n contraseniaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jDialogLoginLayout = new javax.swing.GroupLayout(jDialogLogin.getContentPane());\n jDialogLogin.getContentPane().setLayout(jDialogLoginLayout);\n jDialogLoginLayout.setHorizontalGroup(\n jDialogLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialogLoginLayout.createSequentialGroup()\n .addGroup(jDialogLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialogLoginLayout.createSequentialGroup()\n .addGap(171, 171, 171)\n .addComponent(jLabel1))\n .addGroup(jDialogLoginLayout.createSequentialGroup()\n .addGap(68, 68, 68)\n .addGroup(jDialogLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabelUsuario)\n .addComponent(jLabelContraseña))\n .addGap(79, 79, 79)\n .addGroup(jDialogLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(usuario, javax.swing.GroupLayout.DEFAULT_SIZE, 115, Short.MAX_VALUE)\n .addComponent(contrasenia)))\n .addGroup(jDialogLoginLayout.createSequentialGroup()\n .addGap(116, 116, 116)\n .addComponent(jButtonIngresar)\n .addGap(33, 33, 33)\n .addComponent(jButtonCancelar)))\n .addContainerGap(82, Short.MAX_VALUE))\n );\n jDialogLoginLayout.setVerticalGroup(\n jDialogLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogLoginLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(49, 49, 49)\n .addGroup(jDialogLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelUsuario)\n .addComponent(usuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(23, 23, 23)\n .addGroup(jDialogLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelContraseña)\n .addComponent(contrasenia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 61, Short.MAX_VALUE)\n .addGroup(jDialogLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonIngresar)\n .addComponent(jButtonCancelar))\n .addGap(71, 71, 71))\n );\n\n jButtonNuevoUsuario.setText(\"Nuevo Usuario\");\n jButtonNuevoUsuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonNuevoUsuarioActionPerformed(evt);\n }\n });\n\n jButtonModificarUsuario.setText(\"Modificar Usuario\");\n jButtonModificarUsuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonModificarUsuarioActionPerformed(evt);\n }\n });\n\n jButtonHistorialUsuario.setText(\"Historial Usuario\");\n jButtonHistorialUsuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonHistorialUsuarioActionPerformed(evt);\n }\n });\n\n jButtonVolver.setText(\"Volver\");\n jButtonVolver.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonVolverActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jDialogGestionUsuariosLayout = new javax.swing.GroupLayout(jDialogGestionUsuarios.getContentPane());\n jDialogGestionUsuarios.getContentPane().setLayout(jDialogGestionUsuariosLayout);\n jDialogGestionUsuariosLayout.setHorizontalGroup(\n jDialogGestionUsuariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogGestionUsuariosLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonVolver)\n .addGap(38, 38, 38))\n .addGroup(jDialogGestionUsuariosLayout.createSequentialGroup()\n .addContainerGap(131, Short.MAX_VALUE)\n .addGroup(jDialogGestionUsuariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jButtonNuevoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtonModificarUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtonHistorialUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(131, Short.MAX_VALUE))\n );\n jDialogGestionUsuariosLayout.setVerticalGroup(\n jDialogGestionUsuariosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialogGestionUsuariosLayout.createSequentialGroup()\n .addGap(57, 57, 57)\n .addComponent(jButtonNuevoUsuario)\n .addGap(32, 32, 32)\n .addComponent(jButtonModificarUsuario)\n .addGap(33, 33, 33)\n .addComponent(jButtonHistorialUsuario)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 45, Short.MAX_VALUE)\n .addComponent(jButtonVolver)\n .addGap(28, 28, 28))\n );\n\n tabla.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Nº\", \"Fecha y Hora\", \"Actividad\"\n }\n ));\n tabla.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jScrollPane1.setViewportView(tabla);\n\n jLabel2.setText(\"Ingrese Nombre de Usuario:\");\n\n jButtonMostrarHistorial.setText(\"Mostrar Historial\");\n jButtonMostrarHistorial.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonMostrarHistorialActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 36)); // NOI18N\n jLabel3.setText(\"Historial Usuario\");\n\n jButtonSalir.setText(\"Salir\");\n jButtonSalir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSalirActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jDialogHistorialUsuarioLayout = new javax.swing.GroupLayout(jDialogHistorialUsuario.getContentPane());\n jDialogHistorialUsuario.getContentPane().setLayout(jDialogHistorialUsuarioLayout);\n jDialogHistorialUsuarioLayout.setHorizontalGroup(\n jDialogHistorialUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialogHistorialUsuarioLayout.createSequentialGroup()\n .addGroup(jDialogHistorialUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialogHistorialUsuarioLayout.createSequentialGroup()\n .addGap(59, 59, 59)\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(nomUsu, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addComponent(jButtonMostrarHistorial))\n .addGroup(jDialogHistorialUsuarioLayout.createSequentialGroup()\n .addGap(129, 129, 129)\n .addComponent(jLabel3))\n .addGroup(jDialogHistorialUsuarioLayout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 469, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(81, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogHistorialUsuarioLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jButtonSalir)\n .addGap(39, 39, 39))\n );\n jDialogHistorialUsuarioLayout.setVerticalGroup(\n jDialogHistorialUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogHistorialUsuarioLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jDialogHistorialUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(nomUsu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtonMostrarHistorial))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(15, 15, 15)\n .addComponent(jButtonSalir)\n .addContainerGap())\n );\n\n jLabel4.setText(\"Nombre de Usuario:\");\n\n jLabel5.setText(\"Contraseña:\");\n\n jLabel6.setText(\"Permisos:\");\n\n jCheckBoxClientes.setText(\"Gestion Clientes\");\n\n jCheckBoxMenu.setText(\"Gestion Menu\");\n\n jCheckBoxCadetes.setText(\"Gestion Cadetes\");\n\n jCheckBoxFacturacion.setText(\"Gestion Facuracion\");\n\n jCheckBoxUsuarios.setText(\"Gestion Usuarios\");\n\n jCheckBoxEstadisticas.setText(\"Gestion Estadisticas\");\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel7.setText(\"Nuevo Usuario\");\n\n jButtonGuardarNuevoUsuario.setText(\"Guardar\");\n jButtonGuardarNuevoUsuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonGuardarNuevoUsuarioActionPerformed(evt);\n }\n });\n\n jButtonCancelarNuevoUsuario.setText(\"Cancelar\");\n jButtonCancelarNuevoUsuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCancelarNuevoUsuarioActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jDialogNuevoUsuarioLayout = new javax.swing.GroupLayout(jDialogNuevoUsuario.getContentPane());\n jDialogNuevoUsuario.getContentPane().setLayout(jDialogNuevoUsuarioLayout);\n jDialogNuevoUsuarioLayout.setHorizontalGroup(\n jDialogNuevoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialogNuevoUsuarioLayout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addGroup(jDialogNuevoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialogNuevoUsuarioLayout.createSequentialGroup()\n .addComponent(jLabel6)\n .addGap(43, 43, 43)\n .addGroup(jDialogNuevoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBoxClientes)\n .addComponent(jCheckBoxCadetes)\n .addComponent(jCheckBoxUsuarios))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)\n .addGroup(jDialogNuevoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBoxMenu)\n .addComponent(jCheckBoxFacturacion)\n .addComponent(jCheckBoxEstadisticas))\n .addGap(55, 55, 55))\n .addGroup(jDialogNuevoUsuarioLayout.createSequentialGroup()\n .addGroup(jDialogNuevoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jLabel5))\n .addGap(32, 32, 32)\n .addGroup(jDialogNuevoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nombreUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, 131, Short.MAX_VALUE)\n .addComponent(contraseniaNueva))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGroup(jDialogNuevoUsuarioLayout.createSequentialGroup()\n .addGap(145, 145, 145)\n .addComponent(jLabel7)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogNuevoUsuarioLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonGuardarNuevoUsuario)\n .addGap(36, 36, 36)\n .addComponent(jButtonCancelarNuevoUsuario)\n .addGap(42, 42, 42))\n );\n jDialogNuevoUsuarioLayout.setVerticalGroup(\n jDialogNuevoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialogNuevoUsuarioLayout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(jLabel7)\n .addGap(31, 31, 31)\n .addGroup(jDialogNuevoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(nombreUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jDialogNuevoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(contraseniaNueva, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(25, 25, 25)\n .addGroup(jDialogNuevoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addGroup(jDialogNuevoUsuarioLayout.createSequentialGroup()\n .addGroup(jDialogNuevoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCheckBoxClientes)\n .addComponent(jCheckBoxMenu))\n .addGap(18, 18, 18)\n .addGroup(jDialogNuevoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCheckBoxCadetes)\n .addComponent(jCheckBoxFacturacion))\n .addGap(18, 18, 18)\n .addGroup(jDialogNuevoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jCheckBoxUsuarios)\n .addComponent(jCheckBoxEstadisticas))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)\n .addGroup(jDialogNuevoUsuarioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonGuardarNuevoUsuario)\n .addComponent(jButtonCancelarNuevoUsuario))\n .addContainerGap())\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jButtonGestionClientes.setText(\"Gestion de Clientes\");\n jButtonGestionClientes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonGestionClientesActionPerformed(evt);\n }\n });\n\n jButtonGestionCadete.setText(\"Gestion de Cadetes\");\n jButtonGestionCadete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonGestionCadeteActionPerformed(evt);\n }\n });\n\n jButtonGestionMenu.setText(\"Gestion Menu\");\n jButtonGestionMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonGestionMenuActionPerformed(evt);\n }\n });\n\n jButtonCambiarUsuario.setText(\"Cambiar Usuario\");\n jButtonCambiarUsuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCambiarUsuarioActionPerformed(evt);\n }\n });\n\n jButtonCerrarSesion.setText(\"Cerrar Sesion\");\n jButtonCerrarSesion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCerrarSesionActionPerformed(evt);\n }\n });\n\n jButtonFactura.setText(\"Nueva Factura\");\n jButtonFactura.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonFacturaActionPerformed(evt);\n }\n });\n\n estadisticas.setText(\"Estadisticas\");\n estadisticas.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n estadisticasActionPerformed(evt);\n }\n });\n\n GestionUsuario.setText(\"Gestion Usuarios\");\n GestionUsuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n GestionUsuarioActionPerformed(evt);\n }\n });\n\n jButtonIniciarSesion.setText(\"Iniciar Sesion\");\n jButtonIniciarSesion.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonIniciarSesionActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Ver Usuario Actual\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 1, 36)); // NOI18N\n jLabel8.setText(\"Si.Del.Co\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(163, 163, 163))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(99, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(GestionUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(estadisticas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonGestionCadete, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonGestionClientes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonGestionMenu, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(53, 53, 53)\n .addComponent(jButtonFactura, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(132, 132, 132))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1)\n .addGap(25, 25, 25))))\n .addGroup(layout.createSequentialGroup()\n .addGap(397, 397, 397)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jButtonCambiarUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonIniciarSesion, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jButtonCerrarSesion)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonIniciarSesion)\n .addGap(11, 11, 11)\n .addComponent(jButtonCambiarUsuario)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonGestionClientes)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButtonGestionMenu)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButtonGestionCadete)\n .addGap(18, 18, 18))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButtonFactura)\n .addGap(35, 35, 35)))\n .addComponent(estadisticas)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(GestionUsuario)\n .addComponent(jButton1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 47, Short.MAX_VALUE)\n .addComponent(jButtonCerrarSesion)\n .addContainerGap())\n );\n\n pack();\n }", "@Override\r\n\tpublic void update(Usuario t) {\n\t\t\r\n\t}", "public List<YuserVO> getAllUsers() {\n\t\tList<YuserVO> list = null;\n\t\t\ttry {\n\t\t\t\tlist = userDao.getAllUsers();\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"get users failed ..................................\");\n\t\t\t\treturn null;\n\t\t\t}\n\t\treturn list;\n\t}", "public String getUsuario() {\r\n return usuario;\r\n }", "public String getUsuario() {\r\n return usuario;\r\n }", "public static void update_TbUser() {\n builder = new Uri.Builder();\n builder.appendQueryParameter(\"username\", Server.owner.get_username());\n builder.appendQueryParameter(\"email\", Server.owner.get_Email());\n builder.appendQueryParameter(\"birthday\", Server.owner.get_Birthday().toString());\n builder.appendQueryParameter(\"gender\", Server.owner.get_gender() ? \"1\" : \"0\");\n builder.appendQueryParameter(\"phone\", Server.owner.get_Phone());\n builder.appendQueryParameter(\"image_source\", Server.owner.get_imageSource());\n builder.appendQueryParameter(\"conversations\", Server.owner.get_AllConversation());\n\n String url = Constant.M_HOST + Constant.M_UPDATE_USER_WITHOUT_PASS;\n String a = uService.execute(builder, url);\n }", "@Override\r\n\tpublic boolean updateUsuario(Usuario user) {\n\t\treturn false;\r\n\t}", "public void popoulaRepositorioUsuarios(){\n Usuario usuario1 = new Usuario();\n usuario1.setUsername(\"EliSilva\");\n usuario1.setEmail(\"[email protected]\");\n usuario1.setSenha(\"123\");\n usuario1.setNome(\"Elineide Silva\");\n usuario1.setCPF(\"12345678\");\n\n\n\n Usuario usuario2 = new Usuario();\n usuario2.setUsername(\"gustavo\");\n usuario2.setEmail(\"[email protected]\");\n usuario2.setSenha(\"12345\");\n usuario2.setNome(\"Gustavo\");\n usuario2.setCPF(\"666\");\n\n Usuario usuario3 = new Usuario();\n usuario1.setUsername(\"peixe\");\n usuario1.setEmail(\"[email protected]\");\n usuario1.setSenha(\"1111\");\n usuario1.setNome(\"quem dera ser um peixe\");\n usuario1.setCPF(\"1111\");\n\n Usuario usuario4 = new Usuario();\n usuario1.setUsername(\"segundo\");\n usuario1.setEmail(\"[email protected]\");\n usuario1.setSenha(\"123\");\n usuario1.setNome(\"Elineide Silva\");\n usuario1.setCPF(\"12345678\");\n\n inserir(usuario1);\n inserir(usuario2);\n inserir(usuario3);\n inserir(usuario4);\n }", "public List<UsuarioDTO> obterListaUsuarios() throws RemoteException;", "@Override\n\tpublic List<ControlAcceso> registroUsers(String fecha, int codigo) {\n\t\treturn controlA.registroUsers(fecha, codigo);\n\t}", "@Override\n\tpublic Usuario updateUsuario(Long id, Usuario usr) {\n\t\treturn null;\n\t}", "@Override\n public void update(Usuario usuario) {\n }", "@Override\n\tpublic int update(Usuario us) {\n\t\tString SQL =\"update user set nomuser = ?, passuser =?\";\n\t\treturn jdbc.update(SQL, us.getUsername(), us.getPassword());\n\t}", "private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}", "public void setUsuario(Usuario usuario) {\n\t\tthis.usuario = usuario;\n\t}", "public List<Usuario> findAllUsuarios(){\n\t\t\t List<Usuario> listado;\n\t\t\t Query q;\n\t\t\t em.getTransaction().begin();\n\t\t\t q=em.createQuery(\"SELECT u FROM Usuario u ORDER BY u.idUsr\");\n\t\t\t listado= q.getResultList();\n\t\t\t em.getTransaction().commit();\n\t\t\t return listado;\n\t\t\t \n\t\t\t}", "public String getUsuario() {\r\n return Usuario;\r\n }", "@Override\n\t@Transactional\n\tpublic List<Usuario> ListaUsuarios() {\n\t\ttry {\n\t\t\tQuery query = manager.createQuery(\"from Usuario\");\n\t\t\tList<Usuario> usuarios = query.getResultList();\n\t\t\treturn usuarios;\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tthrow new RuntimeException(e);\t\t\t\n\t\t} finally {\n\t\t\t// TODO: handle finally clause\n\t\t\tmanager.close();\n\t\t}\n\t}", "public HashMap<String, String> getDadosDoUsuario() {\n\n // Use hashmap to store user credentials\n HashMap<String, String> user = new HashMap<String, String>();\n\n user.put(CHAVE_MATRICULA, pref.getString(CHAVE_MATRICULA, null));\n\n user.put(CHAVE_SENHA, pref.getString(CHAVE_SENHA, null));\n\n user.put(CHAVE_NOME, pref.getString(CHAVE_NOME, null));\n\n user.put(CHAVE_NUCLEO,pref.getString(CHAVE_NUCLEO,null));\n\n // return user\n return user;\n }", "@PostConstruct\r\n public void leerListaUsuarios() {\r\n listaUsuarios.addAll(usuarioFacadeLocal.findAll());\r\n }", "public List<Usuario> getUsuarios(){\n\t\tList<Usuario> lista = new LinkedList<Usuario>();\n\t\tfor (Usuario c: usuarios.values()) \n\t\t\tlista.add(c);\n\t\treturn lista;\n\t}", "public usuarios Cargar_Usuario(int cedula) {\r\n base_datos_Usuarios ae_db = new base_datos_Usuarios();\r\n usuarios informacion_usuario = ae_db.Buscar_Usuario_DB(cedula);\r\n return informacion_usuario;\r\n }", "protected void accionUsuario() {\n\t\t\r\n\t}", "private void listarUsuarios() {\r\n \t\r\n \tfor(String usuario : ConfigureSetup.getUsers()) {\r\n \t\tif(!usuario.equals(ConfigureSetup.getUserName()))\r\n \t\t\tlista_usuarios.getItems().add(usuario);\r\n \t}\r\n \t\r\n \t//lista_usuarios.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\t\r\n }", "public boolean actualizarUsuario(Usuario usuario) {\n \n //este usuario le mandamos al dao\n boolean cent = usuarioDAO.update(usuario);\n return cent;\n\n }", "public ArrayList<Usuario> getUsuarios(Usuario creador){\r\n ArrayList<Usuario> al= new ArrayList<>();\r\n if (creador.isAdmin()){\r\n try {\r\n String sql= \"Select * from sistemasEM.usuarios\";\r\n Statement s= connection.createStatement();\r\n ResultSet rs = s.executeQuery(sql);\r\n Usuario u;\r\n while(rs.next()){\r\n TipoDescuento td = this.getTipoDescuento(rs.getInt(\"permisosDescuento\"));\r\n TipoPersonal tp = this.getTipoPersonal(rs.getInt(\"permisosPersonal\"));\r\n al.add( new Usuario(rs.getInt(\"id\"), rs.getString(\"nombre\"), rs.getString(\"mostrar\"),rs.getBoolean(\"admin\"),tp,td,rs.getBoolean(\"notas\"),rs.getBoolean(\"habilitacion\"),rs.getBoolean(\"profesor\"),rs.getInt(\"ciProfesor\"),rs.getBoolean(\"cambiarContra\")));\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ManejadorCodigoBD.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n return al;\r\n }", "public ArrayList<DataUsuario> listarUsaurios();", "public void resetUsuariosAsociados()\r\n {\r\n this.usuariosAsociados = null;\r\n }", "public Usuario devolverUsuario() {\n\n return usuario;\n\n }", "private void refreshInformationsFromTableView(User usr){\n\t\thideLackMessages();\n\t\tnewUser = false;\n\t\t\n\t\tif (usr != null){\n\t\t\tsetPrivilagesToModifyUser(usr);\n\t\t\thidePassword();\n\t\t\tchangeCancelButton.setText(\"Zmień hasło\");\n\t\t\tuserNameField.setText(usr.getFirstName());\n\t\t\tuserLastNameField.setText(usr.getLastName());\n\t\t\tuserLoginField.setText(usr.getLogin());\n\t\t\tuserPasswordField.setText(usr.getPassword());\n\t\t\t\n\t\t\tif (usr.getPermissions().equals(\"manager\")) userPermissionsBox.getSelectionModel().select(0);\n\t\t\t\n\t\t\tif (usr.getPermissions().equals(\"pracownik\")) userPermissionsBox.getSelectionModel().select(1);\n\t\t\t\n\t\t\thideShowCheckBoxes();\n\t\t\t\n\t\t\teditingCheck.setSelected(usr.getEditing());\n\t\t\treminderCheck.setSelected(usr.getReminder());\n\t\t}\n\t\telse {\n\t\t\tuserNameField.setText(\"\");\n\t\t\tuserLastNameField.setText(\"\");\n\t\t\tuserLoginField.setText(\"\");\n\t\t\tuserPasswordField.setText(\"\");\n\t\t\tuserConfirmPasswordField.setText(\"\");\n\t\t\tuserPermissionsBox.getSelectionModel().select(null);\n\t\t\teditingCheck.setSelected(false);\n\t\t\treminderCheck.setSelected(false);\n\t\t}\n\t}", "@Override\n\tpublic void modificarUsuario(UsuarioEntity Usuario) {\n\t\treposUsuarios.save(Usuario);\n\t}", "@Override\r\n\tprotected final void objectDataMapping() throws BillingSystemException{\r\n\t\tString[][] data=getDataAsArray(USER_DATA_FILE);\r\n\t\tif(validateData(data,\"Authorised User\",COL_LENGTH)){\r\n\t\tList<User> listUser=new ArrayList<User>();\r\n\t\t\r\n\t\tfor(int i=0;i<data.length;i++){\r\n\t \t\r\n\t \tUser usr=new User();\r\n\t \t\t\r\n\t \tusr.setUsername(data[i][0]);\r\n\t \tusr.setPassword(data[i][1]);\r\n\t \tusr.setRole(getRoleByCode(data[i][2]));\r\n\t \t\r\n\t \tlistUser.add(usr);\t\r\n\t }\r\n\r\n\t\t\r\n\t\tthis.listUser=listUser;\r\n\t\t}\r\n\t}", "public frmAnagraficaUsers() {\n initComponents();\n\n this.texCodi.setVisible(false);\n \n //associo il panel ai dati\n this.dati.dbNomeTabella = \"accessi_utenti\";\n Vector chiave = new Vector();\n chiave.add(\"id\");\n this.dati.dbChiave = chiave;\n this.dati.butSave = this.butSave;\n this.dati.butUndo = this.butUndo;\n this.dati.butFind = this.butFind;\n this.dati.butNew = this.butNew;\n this.dati.butDele = this.butDele;\n this.dati.tipo_permesso = Permesso.PERMESSO_GESTIONE_UTENTI;\n\n this.texDbPassword.setVisible(false);\n this.comRoleId.dbOpenList(Db.getConn(), \"SELECT descrizione, id FROM accessi_ruoli ORDER BY id\");\n this.dati.dbOpen(Db.getConn(), \"select * from \" + this.dati.dbNomeTabella + \" order by id\");\n this.dati.dbRefresh();\n\n dati.addDbListener(new DbListener() {\n public void statusFired(DbEvent event) {\n if (event.getStatus() == tnxDbPanel.STATUS_REFRESHING) {\n controllaAdmin();\n }\n }\n\n });\n\n this.salvaPassword = false;\n\n //apro la griglia\n //this.griglia.dbEditabile = true;\n this.griglia.dbChiave = chiave;\n this.griglia.flagUsaThread = false;\n\n java.util.Hashtable colsWidthPerc = new java.util.Hashtable();\n colsWidthPerc.put(\"id\", new Double(15));\n colsWidthPerc.put(\"username\", new Double(85));\n this.griglia.columnsSizePerc = colsWidthPerc;\n this.griglia.dbOpen(Db.getConn(), \"select id, username from \" + this.dati.dbNomeTabella + \" order by id\");\n controllaAdmin();\n this.griglia.dbPanel = this.dati;\n }", "public void actualizarUsuario(Integer id, String nombre, long documento, String email, Boolean activo) throws Exception;", "public List<Usuario> getAllUsuarios(){\r\n List<Usuario> users = new ArrayList<Usuario>();\r\n try{\r\n PreparedStatement ps = bd.prepareStatement(SQLALL);\r\n ResultSet rs = ps.executeQuery();\r\n while(rs.next()){\r\n Usuario u = new Usuario();\r\n u.setId(rs.getInt(\"id\"));\r\n u.setUsuario(rs.getString(\"usuario\"));\r\n u.setNome(rs.getString(\"nome\"));\r\n u.setEmail(rs.getString(\"email\"));\r\n u.setSenha(rs.getString(\"senha\"));\r\n u.setPin(rs.getString(\"pin\"));\r\n u.setUrlfoto(rs.getString(\"urlfoto\"));\r\n u.setAcesso(rs.getTimestamp(\"acesso\"));\r\n u.setAdmin(rs.getInt(\"admin\"));\r\n users.add(u);\r\n }\r\n rs.close();\r\n ps.close();\r\n ConexaoBD.fechar(bd);\r\n } catch(SQLException sqle){\r\n System.out.println(\"Erro no getAllUsuarios no DAO: \" + sqle.getMessage());\r\n }\r\n return users;\r\n }", "public void initData(Users user){\n \n this.selectedUser = user;\n String idValue = String.valueOf(selectedUser.getId());\n String expiresValue = String.valueOf(selectedUser.getExpires_at());\n String enabledValue = String.valueOf(selectedUser.getEnabled());\n String lastLoginValue = String.valueOf(selectedUser.getLast_login());\n email.setText(selectedUser.getEmail());\n password.setText(selectedUser.getPassword());\n role.setText(selectedUser.getRoles());\n idField.setText(idValue);\n expiresField.setText(expiresValue);\n enabledField.setText(enabledValue);\n lockedTextField.setText(lastLoginValue);\n lastLoginTextField.setText(idValue);\n System.out.println(user.toString());\n }", "public List getUsuarios();", "public HTMLInputElement getElementUsuarioModificacion() { return this.$element_UsuarioModificacion; }", "public HTMLInputElement getElementUsuarioModificacion() { return this.$element_UsuarioModificacion; }", "private void populateUserInfo() {\n User user = Session.getInstance().getUser();\n labelDisplayFirstname.setText(user.getFirstname());\n labelDisplayLastname.setText(user.getLastname());\n lblEmail.setText(user.getEmail());\n lblUsername.setText(user.getUsername());\n }", "@Override\r\n public void modificarUsuario(User u) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void recuperandoDadosUsuarioescolhido(){\n Bundle bundle = getIntent().getExtras();\n if (bundle != null){\n if (bundle.containsKey(\"usuarioSelecionado\")){\n dadosDoUsuario = (Usuario) bundle.getSerializable(\"usuarioSelecionado\");\n }\n }\n\n // Configurando Toolbar\n\n toolbar.setTitle(dadosDoUsuario.getNome());\n setSupportActionBar(toolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n // Configurando Imagem\n if (dadosDoUsuario.getFoto() != null){\n if (!dadosDoUsuario.getFoto().isEmpty()){\n Uri url = Uri.parse(dadosDoUsuario.getFoto());\n Glide.with(getApplicationContext()).load(url).into(civFotoPerfil);\n }\n }\n\n // Configurando Seguidores Postagens e Seguindo\n\n //stPublicacao = String.valueOf(dadosDoUsuario.getPublicacoes());\n stSeguidores = String.valueOf(dadosDoUsuario.getSeguidores());\n stSeguindo = String.valueOf(dadosDoUsuario.getSeguindo());\n\n tvSeguindo.setText(stSeguindo);\n tvSeguidores.setText(stSeguidores);\n //tvPublicacao.setText(stPublicacao);\n\n // Configurando Referencia postagens Usuario Escolhido\n postagensUsuarioRef = ConfiguracaoFirebase.getFirebaseDatabase()\n .child(\"postagens\")\n .child(dadosDoUsuario.getId());\n\n // Inicializa o Universal Image Loader\n inicializarImageLoader();\n // Recupera as Postagens do nosso Banco de Dados\n carregarFotosPostagem();\n }", "@Override\r\n\tpublic List<Usuario> listAll() {\n\t\treturn null;\r\n\t}", "public void setUsuario(String usuario) {\n\t\tthis.usuario = usuario;\n\t}", "public TelaCadastrarUsuarios() {\n initComponents();\n carregarTabela();\n carregarComboBoxFuncionarios();\n carregarImagens();\n }", "public List<Usuario> ultimosUsuariosCadastrados(){\r\n List<Usuario> users = new ArrayList<Usuario>();\r\n try{\r\n PreparedStatement ps = bd.prepareStatement(\"SELECT * FROM usuarios ORDER BY id DESC\");\r\n ResultSet rs = ps.executeQuery();\r\n while(rs.next()){\r\n Usuario u = new Usuario();\r\n u.setId(rs.getInt(\"id\"));\r\n u.setUsuario(rs.getString(\"usuario\"));\r\n u.setNome(rs.getString(\"nome\"));\r\n u.setEmail(rs.getString(\"email\"));\r\n u.setSenha(rs.getString(\"senha\"));\r\n u.setPin(rs.getString(\"pin\"));\r\n u.setUrlfoto(rs.getString(\"urlfoto\"));\r\n u.setAcesso(rs.getTimestamp(\"acesso\"));\r\n u.setAdmin(rs.getInt(\"admin\"));\r\n users.add(u);\r\n }\r\n rs.close();\r\n ps.close();\r\n ConexaoBD.fechar(bd);\r\n } catch(SQLException sqle){\r\n System.out.println(\"Erro ao apresentar os ultimos usuarios cadastrados: \"+sqle.getMessage());\r\n }\r\n return users;\r\n }", "public void resetUsuario()\r\n {\r\n this.usuario = null;\r\n }", "public void zmienDaneUzytkownika() throws SQLException {\n String noweImie = userEdycjaNoweImie.getText().trim();\n String noweNazwisko = userEdycjaNoweNazwisko.getText().trim();\n String nowyEmail = userEdycjaNoweAdresEmail.getText().trim();\n String nowyNumerKontaktowy = userEdycjaNowyNumerKontaktowy.getText().trim();\n\n Driver.editUser(noweImie, noweNazwisko, nowyNumerKontaktowy, nowyEmail);\n }", "public void getAllUsers() {\n\t\t\n\t}", "public static String[] getUsers2Update()\r\n\t{\n\t\r\n\t\tCursor users2update = MyApplication.getSqLiteDatabase().rawQuery(String.format(\"SELECT `id_user`FROM user WHERE `session_id`= '%s' ;\", \"OfflineLogin\"), null);\r\n\t\t//MyApplication.getSqLiteDatabase().execSQL(String.format(\"UPDATE `user` SET `offline_login`='%d' WHERE `id_user`='%s';\",1, \"WJ070785\"));\t\r\n\t\t//Cursor users2update = MyApplication.getSqLiteDatabase().rawQuery(String.format(\"SELECT `id_user`FROM user WHERE `offline_login`= '%d' ;\", 1), null);\r\n\t\t//users2update.moveToFirst();\r\n\t\t//String[] user = new String[1];\r\n\t\t//user[0] = users2update.getString(0);\r\n\t\t//return user;\r\n\t\t\r\n\t\tif(users2update!=null)\r\n\t\t{\r\n\t\t\tString[] u2upd = new String[users2update.getCount()];\r\n\t\t\tfor(int i=0;i<users2update.getCount();i++)\r\n\t\t\t{\r\n\t\t\t\tusers2update.moveToNext();\r\n\t\t\t\tu2upd[i] = users2update.getString(0);\r\n\t\t\t}\r\n\t\t\treturn u2upd;\r\n\t\t}\r\n\t\treturn null;\t\r\n\t}", "private void cargarUsuario() {\n try {\n rol = null;\n if (usuario != null && usuario.getUsuario() != null) {\n for (SsRoles rols : usuario.getUsuario().getSsRolesList()) {\n for (String rl : ROL) {\n if (rols.getCodigoRol().equalsIgnoreCase(rl)) {\n rol = new SsRoles();\n rol = rols;\n }\n }\n }\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void atualizar(Usuario usuario) {\n\t\tmanager.merge(usuario);\n\t\t\n\t}" ]
[ "0.70116836", "0.6957342", "0.6772427", "0.66910064", "0.6531136", "0.6484197", "0.644355", "0.6373713", "0.6350969", "0.6343146", "0.63175684", "0.6272253", "0.62685287", "0.6253413", "0.62367594", "0.6233613", "0.6205267", "0.61982846", "0.6192211", "0.616495", "0.6164046", "0.61611265", "0.6144223", "0.61301523", "0.6124454", "0.6119891", "0.61175805", "0.6115252", "0.6112711", "0.6110913", "0.61089176", "0.6102531", "0.6085991", "0.60820156", "0.6066983", "0.60508454", "0.60504156", "0.60382926", "0.60382926", "0.6036033", "0.6036033", "0.6028709", "0.602713", "0.6025033", "0.6022447", "0.6014966", "0.6005261", "0.59919435", "0.59804064", "0.5976971", "0.5973815", "0.5972531", "0.5972531", "0.5966344", "0.5961474", "0.5957134", "0.59484863", "0.59409255", "0.5935739", "0.5935518", "0.5934417", "0.5928339", "0.5927041", "0.59240323", "0.5919671", "0.59070534", "0.5903406", "0.59033626", "0.5902644", "0.5896764", "0.5896225", "0.58944124", "0.58879364", "0.5877045", "0.58738774", "0.58711636", "0.58708894", "0.5869248", "0.5869113", "0.58616847", "0.58614147", "0.5843299", "0.5841095", "0.58372647", "0.5830307", "0.58283836", "0.58283836", "0.5823212", "0.58228546", "0.5816342", "0.5812116", "0.5809922", "0.5804766", "0.57942575", "0.57934034", "0.5793375", "0.5791448", "0.57882863", "0.5786179", "0.57816094" ]
0.6661292
4
GENFIRST:event_botonActualizarActionPerformed Creo varialbes para llevar estado de errores.
private void botonActualizarActionPerformed(java.awt.event.ActionEvent evt) { boolean errorFormatoDocumento = false; boolean errorFormatoTelefono = false; String usuario = this.textUsuario.getText(); String contraseña = this.textContraseña.getText(); String nombre = this.textNombre.getText(); String apellido = this.textApellido.getText(); String direccion = this.textDireccion.getText(); int documento = 0; int telefono = 0; // Controlo que el documento sea un número if (controladorUsuarios.esNumero(this.textDocumento.getText())) { errorFormatoDocumento = false; documento = Integer.valueOf(this.textDocumento.getText()); } else { // Si no es número, tiro error errorFormatoDocumento = true; JOptionPane.showMessageDialog(this, "Documento debe ser un número.", "Error", JOptionPane.ERROR_MESSAGE); } // Controlo que el teléfono sea un número if (controladorUsuarios.esNumero(this.textTelefono.getText())) { errorFormatoTelefono = false; telefono = Integer.valueOf(this.textTelefono.getText()); } else { // si no es número, tiro error errorFormatoDocumento = true; JOptionPane.showMessageDialog(this, "Teléfono debe ser un número.", "Error", JOptionPane.ERROR_MESSAGE); } String sentenciaInsertarUsuario = "UPDATE usuarios\n" + "SET usuario = '" + usuario + "', contraseña = '" + contraseña + "', nombre = '" + nombre + "', apellido = '" + apellido + "', documento = '" + documento + "', telefono = '" + telefono + "', direccion = '" + direccion + "'\n" + "WHERE id_usuario = '" + this.usuarioCargado.getId() + "';"; try { // debo verificar si el usuario ya existe antes de mandar crearlo if (controladorUsuarios.usuarioYaExiste(this.usuarioCargado.getId(), usuario)) { JOptionPane.showMessageDialog(this, "Ese usuario ya existe. Pongale otro nombre de usuario.", "Error", JOptionPane.ERROR_MESSAGE); } else if (!errorFormatoDocumento && !errorFormatoTelefono) { // Si no hay errores, envío la sentencia a la base de datos. adminPostgres.enviarSentencia(sentenciaInsertarUsuario); pantallaAnterior.construirTabla(); this.dispose(); } } catch (SQLException ex) { Logger.getLogger(FormularioNuevoUsuario.class.getName()).log(Level.SEVERE, null, ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void mensagemErroCadastrar() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro ao cadastrar. Revise os dados inseridos.\", \"Erro\", JOptionPane.ERROR_MESSAGE, new ImageIcon(Toolkit.getDefaultToolkit().getImage(CadastroQuartos.class.getResource(\"/Imagens/Erro32.png\"))));\n\t}", "private void mesCBActionPerformed(java.awt.event.ActionEvent evt) {\n try{\n limpiarTabla();\n actualizarTabla();\n }\n catch(NoConectionDataBaseException e){\n JOptionPane.showMessageDialog(this, e.getMessage(), \"Error de conexión con la base de datos\", JOptionPane.ERROR_MESSAGE);\n \n }\n catch(NoTypeRequiredException e){\n JOptionPane.showMessageDialog(this, e.getMessage(), \"Error al guardar el registro\", JOptionPane.WARNING_MESSAGE);\n }\n \n }", "public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use pontos!\", null,\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}", "private void btnGuardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnGuardarActionPerformed\n Boolean exito = true;\n try{\n exito = metodobd.Guardar(\n jTexRegistroMedico.getText().trim(),\n jTextCUI.getText().trim(), \n texprimernombre.getText().trim(), \n textsegundoNombre.getText().trim(), \n textprimerapellido.getText().trim(), \n textsegundoapellido.getText().trim(), \n textapellidocasada.getText().trim(), \n jcomboxgenero.getSelectedItem().toString().trim(), \n TextFecNac.getText().trim(), \n TextDireccion.getText().trim(), \n TextTelefono.getText().trim(), \n TextCorreo.getText().trim(), \n jcomboxferido.getSelectedItem().toString().trim(), \n textlugarreferido.getText().trim(), \n textobservacion.getText().trim(), \n textNomFam.getText().trim(),\n texttelfam.getText().trim(),\n textrelfam.getText().trim()\n );\n if (!exito){\n \n JOptionPane.showMessageDialog(null, \"Datos Agregados con Exito:\",\n \"Exito en la operacion\", JOptionPane.INFORMATION_MESSAGE); \n \n jTexRegistroMedico.setText(metodobd.getRegistroActual());\n \n }else {\n JOptionPane.showMessageDialog(null, \"Error al Agregar Datos\"\n , \"Error en la operación\", JOptionPane.ERROR_MESSAGE);\n }\n }catch (Exception e){\n JOptionPane.showMessageDialog(null, \"Exception Guardar: \"\n + e.getMessage(), \"Error en la operación\", JOptionPane.ERROR_MESSAGE);\n }\n \n \n \n \n \n\n \n \n }", "private void jBGuardarActionPerformed(java.awt.event.ActionEvent evt) {\n if(tNombre.getText().isEmpty()){\n JOptionPane.showMessageDialog(this, \"Favor ingresar el Nombre\");\n return;\n }\n if(tDireccion.getText().isEmpty()){\n JOptionPane.showMessageDialog(this, \"Favor ingresar la Direccion\");\n return;\n }\n if(tTelefono.getText().isEmpty()){\n JOptionPane.showMessageDialog(this, \"Favor ingresar el Telefono\");\n return;\n }\n if(tCedula.getText().isEmpty()){\n JOptionPane.showMessageDialog(this, \"Favor ingresar la Cedula\");\n return;\n }\n else if(!CedulaIsValid(tCedula.getText()))\n {\n JOptionPane.showMessageDialog(this, \"Favor ingresar una Cedula Valida\");\n return;\n }\n if(validarIntegerTexto(jFSueldo) <= 0){\n JOptionPane.showMessageDialog(this, \"Favor ingresar un sueldo mayor que cero\");\n return;\n \n }\n \n setEmpleado();\n if(dbe.setInsertarEmpleado(e) > 0)\n JOptionPane.showMessageDialog(this, \"El Empleado ha sido Insrtado Correctamente\");;\n \n return;\n }", "private void btnActualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnActualizarActionPerformed\n boolean respuesta = false;\n int id =Integer.parseInt(this.txtCodigoPlatDia.getText());\n String valor = this.txtValueModified.getText();\n String atributo = \"\";\n switch (this.cbxTypeModified.getSelectedIndex()) {\n case 1: atributo = \"PDIA_NOMBRE\"; break;\n case 2: atributo = \"PDIA_DESCRIPCION\"; break;\n case 3: atributo = \"PDIA_ENTRADA\"; break;\n case 4: atributo = \"PDIA_PRINCIPIO\"; break;\n case 5: atributo = \"PDIA_BEBIDA\"; break;\n case 6: atributo = \"PDIA_CARNE\"; break;\n case 7: atributo = \"PDIA_PRECIO\"; break;\n default: break;\n }\n if(atributo.equals(\"PDIA_PRECIO\")){\n if(!Utilities.isNumeric(valor)){\n JOptionPane.showMessageDialog(null, \"el precio debe contener valores numericos, VERIFIQUE\");\n return;\n }\n }\n try {\n respuesta = this.servicioRestaurante.updatePlatoDia(id, atributo, valor);\n if(!respuesta){\n JOptionPane.showMessageDialog(null, \"verifique los datos, ITEM NO ENCONTRADO\");\n }else{\n this.listar();\n }\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"ha fallado el servicio, intentelo de nuevo\");\n }\n this.txtCodigoPlatDia.setText(null);\n this.cbxTypeModified.setSelectedIndex(0);\n this.txtValueModified.setText(null);\n this.btnActualizar.setEnabled(false);\n }", "public static void mostrarErrorDeActualizacion(JDialog dialogo) {\n JOptionPane.showMessageDialog(dialogo, errorDeActualizacion, \"BancoSoft: Error\", JOptionPane.ERROR_MESSAGE);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() == vistaCarrera.btnGuardar) { \n //primero compara si estan vacios los campos de texto\n if (!vistaCarrera.txtId.getText().equals(\"\") && !vistaCarrera.txtNombre.equals(\"\") && \n !vistaCarrera.txtFacultad.equals(\"\")) {\n carrera.setIdCarrera(vistaCarrera.txtId.getText());\n carrera.setNombreCarrera(vistaCarrera.txtNombre.getText());\n carrera.setFacultad(vistaCarrera.txtFacultad.getText());\n //De ser valida la accion, se guarda el objeto y se muestra el mensaje\n if (conC.registrar(carrera)) {\n JOptionPane.showMessageDialog(null, \"Carrera agregada correctamente\");\n limpiar();\n } //De lo contrario se muestra el mensaje de error\n else {\n JOptionPane.showMessageDialog(null, \"No se ha agregado la carrera\");\n limpiar();\n }\n }\n else{\n //mandara un mensaje al usuario si los campos estan vacios\n vistaCarrera.labelMsg.setText(\"No se aceptan campos vacíos\");\n }\n } \n }", "@Override\r\npublic void actionPerformed(ActionEvent arg0) {\n\tString mensaje;\r\n\tString titulo;\r\n\t\r\n\tmodeloBici = cb.getModelo().getSelectedItem().toString();\r\n\t\r\n\tif (!cb.getCantidad().getText().isEmpty())\r\n\t{\r\n\t\tcantidadBicis = Integer.parseInt(cb.getCantidad().getText());\r\n\t\tmensaje = \"Modelo bici: \" + modeloBici + \" , Cantidad: \" + cantidadBicis;\r\n\t\ttitulo = \"Compra hecha\";\r\n\t}\r\n\telse\r\n\t{\r\n\t\tmensaje = \"Introduzca una cantidad\";\r\n\t\ttitulo = \"Error\";\r\n\t}\r\n\t\r\n\ttry {\r\n\t\tprocesarPedido(cantidadBicis,modeloBici);\t\r\n\t}\r\n\tcatch (BuyNotAllowedModel2Exception | BuyNotAllowedModel3Exception e) {\r\n\t\tif (e instanceof BuyNotAllowedModel2Exception) {\r\n\t\t\ttitulo = \"Compra No Valida Modelo 2\";\r\n\t\t} else if (e instanceof BuyNotAllowedModel3Exception) {\r\n\t\t\ttitulo = \"Compra No Valida Modelo 3\";\r\n\t\t}\r\n\t\t\t\r\n\t\tmensaje = e.getMessage();\r\n\t\t\r\n\r\n\t}\r\n\t\r\n\tmostrarMensaje(titulo,mensaje);\t\t\r\n\t\r\n\t\r\n\r\n\t\r\n\t\r\n\t\r\n\t\r\n}", "public void actualizarImagenConError() {\n\t\tentidadGrafica.actualizarImagenConError(this.valor);\n\t}", "public void actualizarManoObra(ActionEvent actionEvent) {\r\n manoobraDao manobraDao = new manoobraDaoImpl();\r\n String msg;\r\n this.manoobra.setNombreManob(this.manoobra.getNombreManob());\r\n this.manoobra.setCostojrhManob(this.manoobra.getCostojrhManob());\r\n this.manoobra.setCategoriamanoobra(this.manoobra.getCategoriamanoobra());\r\n \r\n if (manobraDao.actualizarManoObra(this.manoobra)) {\r\n msg = \"Mano de Obra modificada correctamente\";\r\n FacesMessage message1 = new FacesMessage(FacesMessage.SEVERITY_INFO, msg, null);\r\n FacesContext.getCurrentInstance().addMessage(null, message1);\r\n } else {\r\n msg = \"No se modifico la Mano de Obra\";\r\n FacesMessage message2 = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, null);\r\n FacesContext.getCurrentInstance().addMessage(null, message2);\r\n }\r\n }", "public void erroCadastro(){\n JOptionPane.showMessageDialog(null, \"Erro ao cadastrar!\", null, \n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\tjanela.dispose();\n }", "public void onError(String cadena) {\r\n\t\tJOptionPane.showMessageDialog(null, cadena, \"Movimiento invalido\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\r\n\t}", "private void errorLogButtonActionPerformed() {\n ImportExportLogDialog logDialog;\n\n if(ascopy != null && ascopy.isCopying()) {\n logDialog = new ImportExportLogDialog(null, ImportExportLogDialog.DIALOG_TYPE_IMPORT, ascopy.getCurrentProgressMessage());\n logDialog.setTitle(\"Current Data Transfer Errors\");\n } else {\n logDialog = new ImportExportLogDialog(null, ImportExportLogDialog.DIALOG_TYPE_IMPORT, migrationErrors);\n logDialog.setTitle(\"Data Transfer Errors\");\n }\n\n logDialog.showDialog();\n }", "private void btnEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditActionPerformed\n boolean flag = this.cutiController.save(txtCutiID.getText(), (txtTglAwal.getText()), (txtTglAkhir.getText()),\n txtKet.getText(), cmbCutiKhususID.getSelectedIndex());\n String message = \"Failed to edit data\";\n if (flag){\n message = \"Success to edit data\";\n }\n JOptionPane.showMessageDialog(this, message, \"Notification\", JOptionPane.INFORMATION_MESSAGE);\n bindingTable();\n reset();\n }", "public void actionPerformed(ActionEvent e) {\r\n\t\t\tif (e.getSource() == barra.btnuevo\r\n\t\t\t\t\t|| e.getSource() == barra.btmodifi) {\r\n\t\t\t\tif (e.getSource() == barra.btnuevo) {\r\n\t\t\t\t\ttfrif.setText(\"\");\r\n\t\t\t\t\ttfrazon.setText(\"\");\r\n\t\t\t\t\ttfdireccion.setText(\"\");\r\n\t\t\t\t\ttftelefono.setText(\"\");\r\n\t\t\t\t\ttfcorreo.setText(\"\");\r\n\t\t\t\t\tcbCiudad.setSelectedItem(-1);\r\n\t\t\t\t\tultimo = actual;\r\n\t\t\t\t\tactual = new Facturacion();\r\n\t\t\t\t}\r\n\t\t\t\tbarra.Edicion();\r\n\t\t\t\ttfrif.grabFocus();\r\n\r\n\t\t\t\ttfrif.setEditable(true);\r\n\t\t\t\ttfrazon.setEditable(true);\r\n\t\t\t\ttfdireccion.setEditable(true);\r\n\t\t\t\ttftelefono.setEditable(true);\r\n\t\t\t\ttfcorreo.setEditable(true);\r\n\t\t\t\tcbCiudad.setEditable(true);\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btgrabar) {\r\n\t\t\t\tif (tfrif.getText().trim().equals(\"\")\r\n\t\t\t\t\t\t|| tfrazon.getText().trim().equals(\"\")\r\n\t\t\t\t\t\t|| tfdireccion.getText().trim().equals(\"\")) {\r\n\t\t\t\t\tJOptionPane\r\n\t\t\t\t\t\t\t.showMessageDialog(new JFrame(),\r\n\t\t\t\t\t\t\t\t\t\"Debe completar todos los Datos del Persona\\nIngreso de Nuevo Persona\");\r\n\t\t\t\t\ttfrif.grabFocus();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tactual.setRif(tfrif.getText().trim());\r\n\t\t\t\t\tactual.setRazon(tfrazon.getText().trim());\r\n\t\t\t\t\tactual.setDireccion(tfdireccion.getText().trim());\r\n\t\t\t\t\tactual.setTelefono(tftelefono.getText().trim());\r\n\t\t\t\t\tactual.setFacCiudad(ModCiudad.getElemento(cbCiudad.getSelectedIndex()));\r\n\t\t\t\t\tactual.setFacOficina(principal.ofic);\r\n\t\t\t\t\tif (cbCiudad.getSelectedIndex()>-1)\r\n\t\t\t\t\t\tactual.setFacCiudad(ModCiudad.getElemento(cbCiudad.getSelectedIndex()));\r\n\t\t\t\t\tactual.setCorreo(tfcorreo.getText().trim());\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tSession sesion = principal.fabrica.getCurrentSession();\r\n\t\t\t\t\t\tsesion.beginTransaction();\r\n\t\t\t\t\t\tsesion.saveOrUpdate(actual);\r\n\t\t\t\t\t\tsesion.getTransaction().commit();\r\n\t\t\t\t\t} catch (HibernateException e2) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(),\r\n\t\t\t\t\t\t\t\t\"btGrabar!!!Errores de Base de Datos!!!\\n\" + e2\r\n\t\t\t\t\t\t\t\t\t\t+ \" \", \"Database Error!\",\r\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * if (pac!=null) { JOptionPane.showMessageDialog(new\r\n\t\t\t\t\t * JFrame(),\r\n\t\t\t\t\t * \"Número de Cédula ya existe!!!\",\"Database Error!\"\r\n\t\t\t\t\t * ,JOptionPane.ERROR_MESSAGE); tfcedula.grabFocus(); }\r\n\t\t\t\t\t */\r\n\t\t\t\t\tbarra.Consulta();\r\n\t\t\t\t\tif (cierra)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tAdminFactura.setFacturacion(actual);\r\n\t\t\t\t\t\tcerrarventana();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// refreshPersona();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btcancel) {\r\n\t\t\t\tif (cierra)\r\n\t\t\t\t{\r\n//\t\t\t\t\tAdminFactura.setFacturacion(actual); corregido el 12/01/2012 estaba dando error, ya que si cancela la ventana no debe grabar nada en AdminFactura.setFacturacion()\r\n\t\t\t\t\tcerrarventana();\r\n\t\t\t\t}\r\n\t\t\t\tif (buscando) {\r\n\t\t\t \tlbbuscando.setText(\"\");\r\n\t\t\t\t\tbuscando = false;\r\n\t\t\t\t}\r\n\t\t\t\tif (actual.equals(new Persona())) actual = ultimo;\r\n\t\t\t\tbarra.Consulta();\r\n\t\t\t\trefreshFacturacion();\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btbuscar) {\r\n\t\t\t\tbarrabusca();\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btanteri) {\r\n\t\t\t\tif (buscando){\r\n\t\t\t\t\tif (tfrif.isEditable()){\r\n\t\t\t\t\t\tbuscar();\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\tactual = busqueda.get(puntero>0?--puntero:puntero);\r\n\t\t\t\t\t\tSystem.out.println(\"\"+puntero+\"/\"+busqueda.size());\r\n\t\t\t\t\t\trefreshFacturacion();\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tFacturacion per = null;\r\n\t\t\t\t\tint text = actual.getCodigo();\r\n\t\t\t\t\tString q = \"from Facturacion where CodOficina = \"+principal.ccodoff+\" and codigo < :text order by codigo desc\";\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tSession sesion = principal.fabrica.getCurrentSession();\r\n\t\t\t\t\t\tsesion.beginTransaction();\r\n\t\t\t\t\t\tQuery queryResult = sesion\r\n\t\t\t\t\t\t\t\t.createQuery(q);\r\n\t\t\t\t\t\tqueryResult.setInteger(\"text\", text);\r\n\t\t\t\t\t\tqueryResult.setMaxResults(1);\r\n\t\t\t\t\t\tper = (Facturacion) queryResult.uniqueResult();\r\n\t\t\t\t\t\tsesion.getTransaction().commit();\r\n\t\t\t\t\t} catch (HibernateException e2) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(),\r\n\t\t\t\t\t\t\t\t\"btAnterior!!!Errores de Base de Datos!!!\\n\" + e2 + \" \"\r\n\t\t\t\t\t\t\t\t\t\t+ text, \"Database Error!\",\r\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (per != null) {\r\n\t\t\t\t\t\tactual = per;\r\n\t\t\t\t\t\trefreshFacturacion();\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btsiguie) {\r\n\t\t\t\tif (buscando){\r\n\t\t\t\t\tif (tfrif.isEditable()){\r\n\t\t\t\t\t\tbuscar();\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\tactual = busqueda.get(puntero<busqueda.size()-1?++puntero:puntero);\r\n\t\t\t\t\t\tSystem.out.println(\"\"+puntero+\"/\"+busqueda.size());\r\n\t\t\t\t\t\trefreshFacturacion();\r\n\t\t\t\t}else\r\n\t\t\t\t{\r\n\t\t\t\t\tFacturacion per = null;\r\n\t\t\t\t\tint text = actual.getCodigo();\r\n\t\t\t\t\tString q = \"from Facturacion where CodOficina = \"+principal.ccodoff+\" and codigo > :text order by codigo asc\";\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tSession sesion = principal.fabrica.getCurrentSession();\r\n\t\t\t\t\t\tsesion.beginTransaction();\r\n\t\t\t\t\t\tQuery queryResult = sesion\r\n\t\t\t\t\t\t\t\t.createQuery(q);\r\n\t\t\t\t\t\tqueryResult.setInteger(\"text\", text);\r\n\t\t\t\t\t\tqueryResult.setMaxResults(1);\r\n\t\t\t\t\t\tper = (Facturacion) queryResult.uniqueResult();\r\n\t\t\t\t\t\tsesion.getTransaction().commit();\r\n\t\t\t\t\t} catch (HibernateException e2) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(),\r\n\t\t\t\t\t\t\t\t\"btsiguie!!!Errores de Base de Datos!!!\\n\" + e2 + \" \"\r\n\t\t\t\t\t\t\t\t\t\t+ text, \"Database Error!\",\r\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (per != null) {\r\n\t\t\t\t\t\tactual = per;\r\n\t\t\t\t\t\trefreshFacturacion();\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (e.getSource() == barra.btultimo) {\r\n\t\t\t\tif (buscando)\r\n\t\t\t\t{\r\n\t\t\t\t\tpuntero = busqueda.size()-1;\r\n\t\t\t\t\tif (tfrif.isEditable()){\r\n\t\t\t\t\t\tbuscar();\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\tactual = busqueda.get(puntero);\r\n\t\t\t\t\t\tSystem.out.println(\"\"+puntero+\"/\"+busqueda.size());\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tactual = obtenerUltimo();\r\n\t\t\t\t\trefreshFacturacion();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == barra.btsalir) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource().equals(v.getBtnGuardar())) {\n\n if (validaciones()) {\n try {\n JOptionPane.showMessageDialog(null, \"Guardando Datos...\");\n guardar_escala_prevencion_riesgos();\n guardar_encuesta();\n// sumaRespuestas();\n guarda_respuestas();\n guargar_total();\n Limpieza_total();\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(v, \"Surgió un error al momento de guardar\", \"Información\", JOptionPane.ERROR_MESSAGE);\n }\n }\n }\n //Acciones para el boton limpiar\n\n if (e.getSource().equals(v.getBtn_limpiar())) {\n limpieza();\n v.getBtnGuardar().setEnabled(false);\n v.getTxtColor().setVisible(false);\n\n }\n //Acciones para el boton cancelar\n\n if (e.getSource().equals(v.getBtnCancelar())) {\n Limpieza_total();\n// cancelar();\n }\n //Acciones para el boton generar\n\n if (e.getSource().equals(v.getBtnGenerar())) {\n if (validaciones()) {\n sumaRespuestas();\n v.getBtnGuardar().setEnabled(true);\n v.getTxtColor().setVisible(true);\n }\n }\n //Acciones para el boton buscar\n\n if (e.getSource().equals(v.getBtnBuscar())) {\n resultados.ObtenerRegistro(v.getTxtCedula().getText(), 1);\n// if(resultados.isValidacion()){\n// JOptionPane.showMessageDialog(v, \"La persona ingresada ya tiene resultados de la ficha\",\"Información\",JOptionPane.WARNING_MESSAGE);\n// }else{\n try {\n buscar_x_cedula();\n\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(v, \"Surgió un error\", \"Información\", JOptionPane.ERROR_MESSAGE);\n }\n// }\n\n }\n }", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(hayCamposVacios())\r\n\t\t\t\t\tmostrarMensaje(\"Complete los campos vacios.\");\r\n\t\t\t\telse if(!validarCampos())\r\n\t\t\t\t\tmostrarMensaje(\"No incluya ';' en ninguno de los campos.\");\r\n\t\t\t\telse if(!claveTextField.getText().equals(reingresoTextField.getText()))\r\n\t\t\t\t\tmostrarMensaje(\"Atenciòn! La clave no coincide con el reingreso.\");\r\n\t\t\t\telse {//Si no hay errores.\r\n\t\t\t\t\tprincipal.recibirMsj(\"CREAR_NUEVO_JUGADOR\");\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\tString nombre,sintomas;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tif(e.getSource()==atras){\n\t\t\t\n\t\t\tMenuPrincipal m1= new MenuPrincipal();\n\t\t\tsetVisible(false);\n\t\t\t\n\t\t}else if(e.getSource()==botonNuevaEnfermedad){\n\t\t\t\n\t\t\tnombre=nombreEdit.getText();\n\t\t\tsintomas=sintomasEdit.getText();\n\t\t\t\n\t\t\t\n\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\tboolean biencreado=controlador.RegistrarEnfermedad.Enfermedad(nombre, sintomas);\n\n\t\t\t\t\n\t\t\t\n\t\t\t\tif(biencreado==true){\n\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(this, \"Los datos son correctos el pajaro se ha aņadido a la base de datos\",\"Registrado Correctamene\",JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\tMenuPrincipal m1= new MenuPrincipal();\n\t\t\t\t\tsetVisible(false);\n\t\t\t\t}else{\n\t\t\t\t\tborrarDatos();\n\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(this, \"No has introducido correctament el ID PAREJA o ID USUARIO\",\"Error\",JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (SQLException e1) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t}else if(e.getSource()==salir){\n\t\t\tSystem.exit(0);\n\t\t}else if(e.getSource()==cerrarSesion){\n\t\t\tint i=JOptionPane.showConfirmDialog(this,\"Estas seguro de que quieres cerrar session\");\n\t\t\t\n\t\t\tif(i==JOptionPane.OK_OPTION){\n\t\t\t\tLogin l1=new Login();\n\t\t\t\tsetVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n public void setFailed(String msg) {\n Platform.runLater(() -> {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Errore di input\");\n alert.setHeaderText(msg);\n alert.showAndWait();\n });\n if (firstAction) {\n inTurno = false;\n }\n\n }", "public void unsuccessful()\n {\n inputFundsField.setText(\"An Error Has Occurred\");\n }", "@Override\n\tpublic void setFailedError() {\n\t\tnew Customdialog_Base(this, \"정보가 올바르지 않습니다.\").show();\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tStringBuilder mensagemErro = new StringBuilder();\n\t\t\t\tString usuario = txtUsuario.getText(); // Obtém a String que representa o usuário\n\t\t\t\tString senha = String.valueOf(passwordField.getPassword()); // Obtém a String que representa a senha\n\t\t\t\tString codigoAgencia = txtCodigoAgencia.getText();\n\t\t\t\t\n\t\t\t\t// Verifica se usuário foi preenchido\n\t\t\t\tif (SystemUtils.isNuloOuVazio(usuario) || usuario.length() == 0 ) {\n\t\t\t\t\tmensagemErro.append(LocaleUtils.getLocaleMessages().getString(\"falha_login_usuariobranco\"));\n\t\t\t\t\n\t\t\t\t// Verifica se a senha foi preenchida\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\tif (SystemUtils.isNuloOuVazio(senha) || senha.length() == 0) {\n\t\t\t\t\tmensagemErro.append(LocaleUtils.getLocaleMessages().getString(\"falha_login_senhabranco\"));\n\t\t\t\t\n\t\t\t\t// Verifica se foi gerada uma mesagem de erro\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\tif (SystemUtils.isNuloOuVazio(codigoAgencia) || codigoAgencia.length() == 0){\n\t\t\t\t\tmensagemErro.append(LocaleUtils.getLocaleMessages().getString(\"falha_login_agenciabranco\"));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (mensagemErro.length() > 0) {\n\t\t\t\t\tJOptionPane.showMessageDialog(panelCabecalho, mensagemErro);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Valida o usuário, senha e código da agência\n\t\t\t\tif (Autenticacao.autenticar(usuario, senha, codigoAgencia)) {\n\t\t\t\t\tdispose();\n\t\t\t\t\tnew TelaPrincipalGUI();\n\t\t\t\t} else {\n\t\t\t\t\t// Limpa o campo senha\n\t\t\t\t\tpasswordField.setText(\"\");\n\t\t\t\t\tJOptionPane.showMessageDialog(panelCabecalho, LocaleUtils.getLocaleMessages().getString(\"falha_login\"));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblError = new javax.swing.JLabel();\n lblResultado = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n monthField = new javax.swing.JTextField();\n yearField = new javax.swing.JTextField();\n nominasBtn = new javax.swing.JButton();\n nominasBtn.addActionListener(controlador);\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n lblError.setForeground(new java.awt.Color(255, 0, 51));\n\n jLabel2.setText(\"Mes\");\n\n jLabel3.setText(\"Año\");\n\n monthField.setText(\"12\");\n\n yearField.setText(\"2019\");\n yearField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n yearFieldActionPerformed(evt);\n }\n });\n\n nominasBtn.setText(\"Nominas\");\n nominasBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nominasBtnActionPerformed(evt);\n }\n });\n\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblError, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 277, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(yearField, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(monthField, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(48, 48, 48)\n .addComponent(nominasBtn))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblResultado, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblError)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(8, 8, 8)\n .addComponent(nominasBtn)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(lblResultado, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(9, 9, 9)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(monthField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(yearField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))))\n .addContainerGap(20, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n numero_contrato = new rojeru_san.rsfield.RSTextMaterial();\n lbl_error_numero_contrato = new javax.swing.JLabel();\n nombre_cliente_contrato = new rojeru_san.rsfield.RSTextMaterial();\n lbl_error_nombre_cliente = new javax.swing.JLabel();\n fecha_inicio_contrato = new com.toedter.calendar.JDateChooser();\n lbl = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n boton_guardar_contrato = new rojeru_san.RSButtonRiple();\n lbl_fecha_expira_contrato = new javax.swing.JLabel();\n lbl_error_fecha_inicio = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(255, 255, 255));\n\n numero_contrato.setForeground(new java.awt.Color(0, 0, 0));\n numero_contrato.setColorMaterial(new java.awt.Color(99, 70, 250));\n numero_contrato.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n numero_contrato.setPlaceholder(\"Número de contrato...\");\n numero_contrato.setSelectionColor(new java.awt.Color(220, 23, 111));\n numero_contrato.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n numero_contratoKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n numero_contratoKeyTyped(evt);\n }\n });\n\n lbl_error_numero_contrato.setForeground(new java.awt.Color(243, 66, 53));\n lbl_error_numero_contrato.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes_error/label-error-backup.png\"))); // NOI18N\n lbl_error_numero_contrato.setText(\"¡Debe ingresar número de contrato!\");\n\n nombre_cliente_contrato.setForeground(new java.awt.Color(0, 0, 0));\n nombre_cliente_contrato.setColorMaterial(new java.awt.Color(99, 70, 250));\n nombre_cliente_contrato.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n nombre_cliente_contrato.setPlaceholder(\"Nombre cliente...\");\n nombre_cliente_contrato.setSelectionColor(new java.awt.Color(220, 23, 111));\n nombre_cliente_contrato.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n nombre_cliente_contratoKeyReleased(evt);\n }\n public void keyTyped(java.awt.event.KeyEvent evt) {\n nombre_cliente_contratoKeyTyped(evt);\n }\n });\n\n lbl_error_nombre_cliente.setForeground(new java.awt.Color(243, 66, 53));\n lbl_error_nombre_cliente.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes_error/label-error-backup.png\"))); // NOI18N\n lbl_error_nombre_cliente.setText(\"¡Debe ingresar un nombre de cliente!\");\n\n fecha_inicio_contrato.setDateFormatString(\"dd/MM/yyyy\");\n fecha_inicio_contrato.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n\n lbl.setForeground(new java.awt.Color(0, 0, 0));\n lbl.setText(\"Fecha de vencimiento: \");\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes_coontrato/contrato2.png\"))); // NOI18N\n\n boton_guardar_contrato.setBackground(new java.awt.Color(38, 86, 186));\n boton_guardar_contrato.setText(\"Guardar Contrato\");\n boton_guardar_contrato.setColorHover(new java.awt.Color(173, 187, 194));\n boton_guardar_contrato.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);\n boton_guardar_contrato.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n boton_guardar_contratoActionPerformed(evt);\n }\n });\n\n lbl_fecha_expira_contrato.setForeground(new java.awt.Color(0, 0, 0));\n lbl_fecha_expira_contrato.setText(\"FECHA\");\n\n lbl_error_fecha_inicio.setForeground(new java.awt.Color(243, 66, 53));\n lbl_error_fecha_inicio.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagenes_error/label-error-backup.png\"))); // NOI18N\n lbl_error_fecha_inicio.setText(\"¡Debe ingresar una fecha de inicio!\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(numero_contrato, javax.swing.GroupLayout.PREFERRED_SIZE, 298, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(fecha_inicio_contrato, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lbl)\n .addGap(0, 0, 0)\n .addComponent(lbl_fecha_expira_contrato))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(lbl_error_nombre_cliente, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(nombre_cliente_contrato, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lbl_error_numero_contrato, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 298, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(boton_guardar_contrato, javax.swing.GroupLayout.PREFERRED_SIZE, 298, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lbl_error_fecha_inicio))\n .addContainerGap(92, Short.MAX_VALUE))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(103, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(numero_contrato, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lbl_error_numero_contrato, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(nombre_cliente_contrato, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(lbl_error_nombre_cliente, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(fecha_inicio_contrato, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lbl, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lbl_fecha_expira_contrato, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lbl_error_fecha_inicio, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(boton_guardar_contrato, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel1))\n .addContainerGap(68, Short.MAX_VALUE))\n );\n }", "public String crearActualizarArancel() {\n\n\t\treturn SUCCESS;\n\t}", "public void resetFail() {\n borraArchivos();\n addMessage(\"Carga Cancelada\", null);\n }", "private void btnAtualizarTabelaActionPerformed(ActionEvent e) {\n }", "private void btnAgregarUsuarioActionPerformed(java.awt.event.ActionEvent evt) {\n String v_nombre=\" \";\n\n if(txtNombreAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Digite un nombre, por favor\", \"Informacion\");\n return;\n }\n v_nombre=txtNombreAU.getText(); \n //Valido la contrasenia\n if(txtContraseniaAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar una contraseña\", \"Informacion\");\n return;\n }\n if(!validarContraseniaUsuario(txtContraseniaAU.getText())){\n return;\n }\n String v_contrasenia=txtContraseniaAU.getText();\n //Valido nombre completo\n if(txtNombreCompletoAU.getText().length()==0){\n Utilidades.mensajeInformacion(\"Es obligatorio ingresar el nombre completo\", \"Informacion\");\n return;\n }\n String v_nombreCompleto=txtNombreCompletoAU.getText();\n \n //Valido que se escogio un valor para el cargo\n int v_cargo=0;\n //10 = Administrador, 20=Funcionario\n if(rbtnAdministradorAU.isSelected()){\n v_cargo=10;\n }else if(rbtnFuncionarioAU.isSelected()){\n v_cargo=20;\n }else{\n Utilidades.mensajeInformacion(\"Escoga un cargo\", \"Informacion\");\n return;\n }\n \n //Creo y agreggo un usuario dependiendo del cargo escogido (Administrador o funcionario)\n try{\n boolean agregado=false;\n if(v_cargo==10){\n Administrador nuevoUsuario=new Administrador(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n\n } \n if(v_cargo==20){\n Funcionario nuevoUsuario=new Funcionario(v_nombre, v_contrasenia, v_nombreCompleto, null);\n agregado = administrador.agregarUsuario(nuevoUsuario);\n }\n\n\n if(agregado){\n Utilidades.mensajeExito(\"Se agrego el Usuario\", \"Agregacion Exitosa\");\n limpiarCamposAgregarUsuario();\n }else{\n Utilidades.mensajeError(\"El Usuario a agregar ya existe\", \"Error\");\n }\n\n }catch (IOException ex) {\n Logger.getLogger(Funcionario.class.getName()).log(Level.SEVERE, null, ex);\n Utilidades.mensajeAdvertencia(\"Se ha interrumpido la conexion con el servidor\", \"Error\");\n }\n \n }", "public void modificar() {\r\n if (vista.jTNombreempresa.getText().equals(\"\") || vista.jTTelefono.getText().equals(\"\") || vista.jTRFC.getText().equals(\"\") || vista.jTDireccion.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan Datos: No puede dejar cuadros en blanco\");//C.P.M Verificamos que todas las casillas esten llenas de lo contrario lo notificamos a el usuario\r\n } else {//C.P.M de lo contrario todo esta bien y prosegimos\r\n modelo.setNombre(vista.jTNombreempresa.getText());//C.P.M mandamos al modelo la informacion\r\n modelo.setDireccion(vista.jTDireccion.getText());\r\n modelo.setRfc(vista.jTRFC.getText());\r\n modelo.setTelefono(vista.jTTelefono.getText());\r\n \r\n Error = modelo.modificar();//C.P.M ejecutamos la funcion modificar del modelo y esperamos algun error\r\n if (Error.equals(\"\")) {//C.P.M si el error viene vacio es que no ocurrio algun error \r\n JOptionPane.showMessageDialog(null, \"La configuracion se modifico correctamente\");\r\n } else {//C.P.M de lo contrario lo notificamos a el usuario\r\n JOptionPane.showMessageDialog(null, Error);\r\n }\r\n }\r\n }", "public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}", "public void btnActualizarSecuencia()\r\n/* 653: */ {\r\n/* 654:727 */ AutorizacionDocumentoSRI autorizacionDocumentoSRI = null;\r\n/* 655:728 */ PuntoDeVenta puntoDeVenta = AppUtil.getPuntoDeVenta();\r\n/* 656: */ try\r\n/* 657: */ {\r\n/* 658:731 */ if (puntoDeVenta != null) {\r\n/* 659:732 */ autorizacionDocumentoSRI = this.servicioDocumento.cargarDocumentoConAutorizacion(getFacturaProveedorSRI().getDocumento(), puntoDeVenta, this.facturaProveedorSRI\r\n/* 660:733 */ .getFechaEmisionRetencion());\r\n/* 661: */ }\r\n/* 662:735 */ String numero = this.servicioSecuencia.obtenerSecuencia(getFacturaProveedorSRI().getDocumento().getSecuencia(), this.facturaProveedorSRI\r\n/* 663:736 */ .getFechaEmisionRetencion());\r\n/* 664: */ \r\n/* 665:738 */ this.facturaProveedorSRI.setNumeroRetencion(numero);\r\n/* 666:739 */ this.facturaProveedorSRI.setAutorizacionRetencion(autorizacionDocumentoSRI.getAutorizacion());\r\n/* 667: */ }\r\n/* 668: */ catch (ExcepcionAS2 e)\r\n/* 669: */ {\r\n/* 670:741 */ addErrorMessage(getLanguageController().getMensaje(e.getCodigoExcepcion()) + e.getMessage());\r\n/* 671: */ }\r\n/* 672: */ }", "private void miInregistrareActionPerformed(java.awt.event.ActionEvent evt) { \n try {\n int n = Integer.parseInt(JOptionPane.showInputDialog(rootPane, \"Introduceti codul de validare:\", \"Confirmare\", JOptionPane.QUESTION_MESSAGE));\n if (n == cod) {\n // In cazul introducerii codului de inregistrare corect, toate functionalitatile aplicatiei devin accesibile, altfel se genereaza exceptie\n lblReclama.setVisible(false);\n miDeschidere.setEnabled(true);\n miSalvare.setEnabled(true);\n miInregistrare.setEnabled(false);\n btnAdauga.setEnabled(true);\n btnModifica.setEnabled(true);\n btnSterge.setEnabled(true);\n lblCod.setVisible(false);\n cbFiltre.setEnabled(true);\n cbOrdonari.setEnabled(true);\n tfPersonalizat.setEditable(true);\n } else {\n throw new NumberFormatException();\n }\n } catch (NumberFormatException numberFormatException) {\n JOptionPane.showMessageDialog(null, \"Cod de validare eronat!\");\n }\n\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\r\n\t\t\t\t\tif(\"\".equals(descripcionTF.getText())) {\r\n\t\t\t\t\t\tthrow new Exception(\"La descripcion debe rellenarse\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!validarNumero(horasTF.getText())) {\r\n\t\t\t\t\t\tthrow new Exception(\"Las horas deben ser positivo\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!validarNumero(nivelTF.getText())) {\r\n\t\t\t\t\t\tthrow new Exception(\"El nivel debe ser un número positivo\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(\"\".equals(nombreTF.getText())) {\r\n\t\t\t\t\t\tthrow new Exception(\"El nombre debe rellenarse\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(\"\".equals(tipoTF.getText())) {\r\n\t\t\t\t\t\tthrow new Exception(\"El tipo debe rellenarse\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString nombre = (String) nombreTF.getText();\r\n\t\t\t\t\tInteger horas = Integer.parseInt(horasTF.getText());\r\n\t\t\t\t\tInteger nivel = Integer.parseInt(nivelTF.getText());\r\n\t\t\t\t\tString descripcion = (String) descripcionTF.getText();\r\n\t\t\t\t\tString tipo = (String) tipoTF.getText();\r\n\t\t\t\t\tInteger idEm= Integer.parseInt(empTF.getText());\r\n\t\t\t\t\tController.getInstance().action(\r\n\t\t\t\t\t\t\tnew Contexto(\r\n\t\t\t\t\t\t\t\tEvents.ALTA_CURSO, new TCurso(nombre, true, tipo, descripcion, horas, nivel,idEm)));\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception ex) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, ex.getMessage(),\"ERROR\",JOptionPane.WARNING_MESSAGE);\r\n\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString puestoNuevo=txtENombre.getText();\n\t\t\t\tString sueldoNuevo=txtEdSueldo.getText();\n\t\t\t\tif(!sueldoNuevo.matches(\"[0-9]+\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(btnGuardarE,\"La cantidad de sueldo es incorrecta\");\n\t\t\t\t}else {\n\t\t\t\tdouble sueldoNuevoNew = Double.parseDouble(sueldoNuevo);\n\t\t\t\tdata.setQuery(\"UPDATE TipoPuesto SET puesto = '\"+puestoNuevo+\"', sueldo='\"+sueldoNuevoNew+\"' WHERE puesto='\"+puestoViejo+\"'\");\n\t\t\t\t\n\t\t\t\ttxtENombre.setText(\"\");\n\t\t\t\ttxtEdSueldo.setText(\"\");\n\t\t\t\tif(cbEdPuesto.getSelectedIndex()!=0) {\n\t\t\t\t\tJOptionPane.showMessageDialog(btnGuardarE,\"Edición exitosa\");\n\t\t\t\t\tcbElPuesto.removeAllItems();\n\t\t\t\t\tcbEdPuesto.removeAllItems();\n\t\t\t\t\tcbElPuesto.addItem(\"Seleccione un hospital...\");\n\t\t\t\t\tcbEdPuesto.addItem(\"Seleccione un hospital...\");\n\t\t\t\t\tregistros=(ResultSet) data.getQuery(\"Select * from TipoPuesto\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\twhile(registros.next()) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcbElPuesto.addItem(registros.getString(\"puesto\"));\n\t\t\t\t\t\t\tcbEdPuesto.addItem(registros.getString(\"puesto\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void erroExcluir(){\n JOptionPane.showMessageDialog(null, \"Erro ao excluir projeto!\", null, \n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\tjanela.dispose();\n }", "private void ImproperFillOutException() {\n JOptionPane.showMessageDialog(null, \"Fill out the form properly\");\n }", "public void ingresarproducto() {\r\n String Error;//C.P.M Creamos una variable para obtener algun error \r\n /*Preguntamos si todos los campos estan llenos sino lo notificamos*/\r\n if (vistaaltaproducto.jTnombre.getText().equals(\"\") || vistaaltaproducto.jTyyyy.getText().equals(\"\") || vistaaltaproducto.jTprecio.getText().equals(\"\")\r\n || vistaaltaproducto.jTexistencia.getText().equals(\"\") || vistaaltaproducto.jTdescripcion.getText().equals(\"\") || vistaaltaproducto.jTespecificaciones.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan datos: No puede dejar cuadros en blanco\");\r\n } else {\r\n modelo.setCodigobarras(vistaaltaproducto.jTcodigobarras.getText());//C.P.M enviamos todos los datos a el modelo\r\n modelo.setNombre(vistaaltaproducto.jTnombre.getText());\r\n modelo.setCaducidad(vistaaltaproducto.jTyyyy.getText() + \"-\" + vistaaltaproducto.jTmm.getText() + \"-\" + vistaaltaproducto.jTdd.getText());\r\n modelo.setExistencia(vistaaltaproducto.jTexistencia.getText());\r\n modelo.setPrecio(vistaaltaproducto.jTprecio.getText());\r\n modelo.setDescripcion(vistaaltaproducto.jTdescripcion.getText());\r\n modelo.setEspecifica(vistaaltaproducto.jTespecificaciones.getText());\r\n Error = modelo.insertar();//C.P.M ejecutamos el metodo del modelo para insertar y esperamos algn error\r\n if (Error.equals(\"\")) {//C.P.M si error llega vacio es que todo salio bien\r\n JOptionPane.showMessageDialog(null, \"Producto: \" + vistaaltaproducto.jTnombre.getText() + \" agregado.\");//C.P.M lo notificamos\r\n vistaaltaproducto.jTnombre.setText(\"\");//C.P.M limpiamos los campos \r\n vistaaltaproducto.jTcodigobarras.setText(\"\");\r\n vistaaltaproducto.jTprecio.setText(\"\");\r\n vistaaltaproducto.jTyyyy.setText(\"\");\r\n vistaaltaproducto.jTmm.setText(\"\");\r\n vistaaltaproducto.jTdd.setText(\"\");\r\n vistaaltaproducto.jTexistencia.setText(\"\");\r\n vistaaltaproducto.jTdescripcion.setText(\"\");\r\n vistaaltaproducto.jTespecificaciones.setText(\"\");\r\n vistaaltaproducto.jTnombre.requestFocus();//C.P.M y ponemos el foco en el primer componente\r\n } else {\r\n JOptionPane.showMessageDialog(null, Error);//C.P.M de lo contrario notificamos el error\r\n }\r\n }\r\n }", "private void iniFormEditar()\r\n\t{\r\n\t\tthis.operacion = Variables.OPERACION_EDITAR;\r\n\t\t\r\n\t\t/*Verificamos que tenga permisos*/\r\n\t\tboolean permisoNuevoEditar = this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CONCILIACION, VariablesPermisos.OPERACION_NUEVO_EDITAR);\r\n\t\t\r\n\t\tif(permisoNuevoEditar){\r\n\t\t\t\r\n\t\t\tthis.btnEditar.setVisible(false);\r\n\t\t\tthis.conciliar.setVisible(true);\r\n\t\t\tthis.btnEliminar.setVisible(false);\r\n\t\t\tthis.conciliar.setCaption(\"Guardar\");\r\n\t\t\t\r\n\t\t\tthis.nroDocum.setEnabled(false);\r\n\t\t\tthis.fecDoc.setEnabled(true);\r\n\t\t\tthis.observaciones.setEnabled(true);\r\n\t\t\t\r\n\t\t\tthis.botones.setWidth(\"187\");\r\n\t\t}\r\n\t\telse{\r\n\t\t\t\r\n\t\t\t/*Mostramos mensaje Sin permisos para operacion*/\r\n\t\t\tMensajes.mostrarMensajeError(Variables.USUSARIO_SIN_PERMISOS);\r\n\t\t}\r\n\t}", "private void okAction()\r\n\t{\r\n\t\tString navn = txfInput[0].getText().trim();\r\n\r\n\t\tint telefonNr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\ttelefonNr = Integer.parseInt(txfInput[1].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString vej = txfInput[2].getText().trim();\r\n\r\n\t\tint nr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tnr = Integer.parseInt(txfInput[3].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString etage = txfInput[4].getText().trim();\r\n\r\n\t\tint postNr = -1;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tpostNr = Integer.parseInt(txfInput[5].getText().trim());\r\n\t\t} catch (NumberFormatException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\t\tString by = txfInput[6].getText().trim();\r\n\t\tString land = txfInput[7].getText().trim();\r\n\r\n\t\tif (navn.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Navn er tom\");\r\n\t\t\treturn;\r\n\t\t} else if (telefonNr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Telefon nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\telse if (vej.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Vej er tom\");\r\n\t\t\treturn;\r\n\t\t} else if (nr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (postNr <= 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Post Nr er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (by.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"By er ugyldigt\");\r\n\t\t\treturn;\r\n\t\t} else if (land.length() == 0)\r\n\t\t{\r\n\t\t\tlblError.setText(\"Land er tom\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tFirma firma = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfirma = lvwFirmaer.getSelectionModel().getSelectedItem();\r\n\t\t} catch (NullPointerException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\r\n\r\n\t\tLedsager ledsager = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tledsager = lvwLedsagere.getSelectionModel().getSelectedItem();\r\n\t\t} catch (NullPointerException ex)\r\n\t\t{\r\n\t\t\t// do nothing\r\n\t\t}\r\n\t\t\r\n\r\n\t\tif (deltager != null)\r\n\t\t{\r\n\t\t\tService.updateDeltager(deltager, firma, ledsager, navn, telefonNr, null, vej, nr, etage, postNr, by, land);\r\n\t\t} else\r\n\t\t{\r\n\t\t\tService.createDeltager(navn, telefonNr, null, vej, nr, etage, postNr, by, land);\r\n\t\t}\r\n\r\n\t\tthis.hide();\r\n\t}", "private void error(int error) {\n\t\t//user limit reached error gui\n\t\tif(error == USER_LIMIT_REACHED) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: User Limit Reached\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"You have reached the maximum amount of users (\" + users.length + \" users).\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//user exists error gui\n\t\telse if(error == USER_EXISTS) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: User Exists\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The user \" + user.getText() + \" already exists.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//user not found error gui\n\t\telse if(error == USER_NOT_FOUND) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: User Not Found\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The user \" + user.getText() + \" does not exist.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//command not found error gui\n\t\telse if(error == CMD_NOT_FOUND) {\n\t\t\tProgramGUI.this.dispose();\n\t\t\tframe = new JFrame(\"Error: Invalid Command\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The command \" + cmd.getText() + \" does not exist.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//user is already admin error gui\n\t\telse if(error == ALREADY_ADMIN) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: Promotion\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The user \" + user.getText() + \" is already an admin.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//user is already regular error gui\n\t\telse if(error == ALREADY_REG) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: Demotion\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The user \" + user.getText() + \" is already a regular user.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//permissions error gui\n\t\telse if(error == PERMISSIONS) {\n\t\t\tProgramGUI.this.dispose();\n\t\t\tframe = new JFrame(\"Error: Permissions\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"You do not have permission.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//card expired gui\n\t\telse if(error == EXPIRED) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: Card Expired\");\n\t\t\tframe.setSize(390, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The card \" + card.getText() + \" expired on \" + expiry.getText()));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t}", "public void actionPerformed(ActionEvent ae) {\r\n //----Valida txt de Intentario---//\r\n validaTxt();\r\n //----Valida txt de Intentario---//\r\n int i = JOptionPane.showConfirmDialog(II, \"¿Seguro quiere modificar este producto?\");\r\n if (i == 0) {\r\n modificaDato();\r\n DTM.setRowCount(0);\r\n llenartabla();\r\n }\r\n }", "@Override\r\n\tpublic void actualizar(int id_evento_vista, Object datos) {\r\n\t\t//Borra lo anterior\r\n \t\r\n \t jFormattedTextFieldPiso.setText(\"\");\r\n jFormattedTextFieldNumero.setText(\"\");\r\n jFormattedTextFieldTipo.setText(\"\");\r\n \r\n\t\t\r\n\t\tif(id_evento_vista == EventoVista.ALTA_HABITACION_EXITO){\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Se ha creado la Habitacion con exito\", \"Nuevo Habitacion\", JOptionPane.INFORMATION_MESSAGE);\t\t\r\n\t\t}\t\r\n\t\r\n\t\telse if (id_evento_vista == EventoVista.ALTA_HABITACION_FALLO){\r\n\t\t\tJOptionPane.showMessageDialog(null, \"ERROR!! Ha ocurrido un error con la BD\", \"Nuevo Habitacion\", JOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\t\t\r\n\t}", "private void btnRegresarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void mostraErrore(SQLException e) {\n String msg;\n \n msg = \"Codice Errore: \" + e.getErrorCode() + \"\\n\";\n msg += \"Messaggio: \" + e.getMessage() + \"\\n\";\n msg += \"SQLState: \" + e.getSQLState() + \"\\n\";\n\n JOptionPane.showMessageDialog(this, msg, \"Errore\", JOptionPane.ERROR_MESSAGE);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tregistros=(ResultSet) data.getQuery(\"Select * from TipoPuesto\");\n\t\t\t\tboolean flagRepetido=false;\n\t\t\t\tString puesto=txtNombre.getText();\n\t\t\t\tString sueldoP=txtSueldo.getText();\n\t\t\t\tdouble sueldo=Double.parseDouble(sueldoP);\n\t\t\t\tif(!sueldoP.matches(\"[0-9]+\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(btnAgregar,\"La cantidad de sueldo es incorrecta\");\n\t\t\t\t}else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\twhile(registros.next()) {\n\t\t\t\t\t\t\tString prueba=registros.getString(\"puesto\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(puesto.equals(prueba)) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tflagRepetido=true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tif(txtNombre.getText().isEmpty()!=true && txtSueldo.getText().isEmpty()!=true) {\n\t\t\t\t\t\tif(flagRepetido==false ) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdata.setQuery(\"INSERT INTO TipoPuesto (idTipoPuesto, puesto, sueldo) VALUES (NULL,'\"+puesto+\"','\"+sueldo+\"');\");\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(btnAgregar,\"Registro de Puesto exitoso\");\n\t\t\t\t\t\t\tcbEdPuesto.addItem(puesto);\n\t\t\t\t\t\t\tcbElPuesto.addItem(puesto);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(btnAgregar,\"Llene los campos correctamente\");\n\t\t\t\t\t}\n\t\t\t\t\t\t\tif(flagRepetido==true) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(btnAgregar,\"Este puesto ya está registrado\");}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(btnAgregar,\"Llene los campos correctamente\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "private void btnSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveActionPerformed\n boolean flag = this.cutiController.save(txtCutiID.getText(), (txtTglAwal.getText()), (txtTglAkhir.getText()),\n txtKet.getText(), cmbCutiKhususID.getSelectedIndex());\n String message = \"Failed to save data...\";\n if (flag){\n message = \"Success to save data...\";\n }\n JOptionPane.showMessageDialog(this, message, \"Allert / Notification\", \n JOptionPane.INFORMATION_MESSAGE);\n \n bindingTable();\n reset();\n }", "public void actionPerformed(ActionEvent e) {\n if(e.getSource()== adminView.jbtnAdminCerrarSession){\r\n adminView.setVisible(false);\r\n loginview .MustraLogin();\r\n }\r\n \r\n //PRIVILEGIOS -PERMISOS \r\n if(e.getSource() == adminView.btnAdminPermisoRegistrar){\r\n String nombre = (String)adminView.textAdminPermisoNombre.getText().toUpperCase();\r\n String descripcion = (String)adminView.textAdminPermisoDescripcion.getText().toUpperCase();\r\n \r\n \r\n String rstaRegistroPermiso = modelPermisoDAO.insertarDatosPermiso(nombre, descripcion);\r\n if(rstaRegistroPermiso != null){\r\n JOptionPane.showMessageDialog(null, rstaRegistroPermiso);\r\n setTablePermiso(adminView.tableAdminPermiso);\r\n }else{JOptionPane.showMessageDialog(null, \"No se pudo registrar\");}\r\n }\r\n if(e.getSource() == adminView.btnAdminPermisoListar){\r\n \r\n setTablePermiso(adminView.tableAdminPermiso);\r\n \r\n }\r\n if(e.getSource() == adminView.btnAdminPermisoActualizar){\r\n int filaActualizarPermiso = adminView.tableAdminPermiso.getSelectedRow();\r\n int numFilas = adminView.tableAdminPermiso.getSelectedRowCount();\r\n if(filaActualizarPermiso >= 0 && numFilas ==1){\r\n codigo_permiso =Integer.parseInt((String) adminView.tableAdminPermiso.getValueAt(filaActualizarPermiso, 0));\r\n adminView.textAdminPermisoNombre.setText(String.valueOf(adminView.tableAdminPermiso.getValueAt(filaActualizarPermiso, 1)));\r\n adminView.textAdminPermisoDescripcion.setText(String.valueOf(adminView.tableAdminPermiso.getValueAt(filaActualizarPermiso, 2)));\r\n \r\n adminView.btnAdminPermisoActualizar.setEnabled(false);\r\n adminView.btnAdminPermisoRegistrar.setEnabled(false);\r\n adminView.btnAdminPermisoEliminar.setEnabled(false);\r\n adminView.btnAdminPermisoListar.setEnabled(false);\r\n adminView.textAdminPermisoBuscar.setEditable(false);\r\n adminView.jbtnAdminPErmisoActualizarOK.setEnabled(true);\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n \r\n \r\n }\r\n \r\n if(e.getSource() == adminView.jbtnAdminPErmisoActualizarOK){\r\n String nombre = (String)adminView.textAdminPermisoNombre.getText();\r\n String descripcion = (String)adminView.textAdminPermisoDescripcion.getText();\r\n \r\n \r\n \r\n int actualizar= modelPermisoDAO.actualizarDatosPermiso(nombre, descripcion,codigo_permiso);\r\n if(actualizar > 0){\r\n JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa\");\r\n setTablePermiso(adminView.tableAdminPermiso);\r\n }else JOptionPane.showMessageDialog(null, \"No se ha podido realizar la Actualizacion\");\r\n \r\n LimpiarElementosPermisos();\r\n }\r\n if(e.getSource() == adminView.btnAdminPermisoEliminar){\r\n int filaInicioPermiso = adminView.tableAdminPermiso.getSelectedRow();\r\n int numFilas = adminView.tableAdminPermiso.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombrePermiso=\"\";\r\n if( filaInicioPermiso >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombrePermiso= String.valueOf(adminView.tableAdminPermiso.getValueAt(i+filaInicioPermiso, 0));\r\n listaNombre .add(nombrePermiso);\r\n }\r\n for (int i = 0; i < listaNombre.size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.eliminarDatosPermiso(listaNombre.get(i));\r\n }\r\n }\r\n setTablePermiso(adminView.tableAdminPermiso);\r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n \r\n }\r\n \r\n \r\n //PRIVILEGIOS -ROLES\r\n if(e.getSource() == adminView.btnAdminRolRegistrar1){\r\n String nombre = (String)adminView.textAdminRolNombre1.getText().toUpperCase();\r\n String descripcion = (String)adminView.textAdminRolDescripcion1.getText().toUpperCase();\r\n \r\n \r\n String rstaRegistroPermiso = modelPermisoDAO.insertarDatosRol(nombre, descripcion);\r\n if(rstaRegistroPermiso != null){\r\n JOptionPane.showMessageDialog(null, rstaRegistroPermiso);\r\n setTableRol(adminView.tableAdminRol);\r\n }else{JOptionPane.showMessageDialog(null, \"No se pudo registrar\");}\r\n }\r\n if(e.getSource() == adminView.btnAdminRolListar1){\r\n \r\n setTableRol(adminView.tableAdminRol);\r\n \r\n }\r\n if(e.getSource() == adminView.btnAdminRolActualizar1){\r\n int filaActualizarRol = adminView.tableAdminRol.getSelectedRow();\r\n int numFilas = adminView.tableAdminRol.getSelectedRowCount();\r\n if(filaActualizarRol >= 0 && numFilas ==1){\r\n codigo_permiso =Integer.parseInt((String) adminView.tableAdminRol.getValueAt(filaActualizarRol, 0));\r\n adminView.textAdminRolNombre1.setText(String.valueOf(adminView.tableAdminRol.getValueAt(filaActualizarRol, 1)));\r\n adminView.textAdminRolDescripcion1.setText(String.valueOf(adminView.tableAdminRol.getValueAt(filaActualizarRol, 2)));\r\n \r\n adminView.btnAdminRolActualizar1.setEnabled(false);\r\n adminView.btnAdminRolRegistrar1.setEnabled(false);\r\n adminView.btnAdminRolEliminar1.setEnabled(false);\r\n adminView.btnAdminRolListar1.setEnabled(false);\r\n adminView.textAdminRolBuscar1.setEditable(false);\r\n adminView.jbtnAdminRolActualizarOK1.setEnabled(true);\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n \r\n \r\n }\r\n \r\n if(e.getSource() == adminView.jbtnAdminRolActualizarOK1){\r\n String nombre = (String)adminView.textAdminRolNombre1.getText().toUpperCase();\r\n String descripcion = (String)adminView.textAdminRolDescripcion1.getText().toUpperCase();\r\n \r\n \r\n \r\n int actualizar= modelPermisoDAO.actualizarDatosRol(nombre, descripcion,codigo_permiso);\r\n if(actualizar > 0){\r\n JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa\");\r\n setTableRol(adminView.tableAdminRol);\r\n }else JOptionPane.showMessageDialog(null, \"No se ha podido realizar la Actualizacion\");\r\n \r\n LimpiarElementosRol();\r\n }\r\n if(e.getSource() == adminView.btnAdminRolEliminar1){\r\n int filaInicioRol= adminView.tableAdminRol.getSelectedRow();\r\n int numFilas = adminView.tableAdminRol.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreRol=\"\";\r\n if( filaInicioRol >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreRol= String.valueOf(adminView.tableAdminRol.getValueAt(i+filaInicioRol, 0));\r\n listaNombre .add(nombreRol);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.eliminarDatosRol(listaNombre.get(i));\r\n }\r\n }\r\n setTablePermiso(adminView.tableAdminRol);\r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n \r\n } \r\n //EMPLEADOS - BENEFICIOS\r\n if(e.getSource() == adminView.btnEmpleadosBeneficiosRegistrar){\r\n String nombre = (String)adminView.textEmpleadosBeneficiosNombre.getText().toUpperCase();\r\n String descripcion = (String)adminView.textEmpleadosBeneficiosDescripcion.getText().toUpperCase();\r\n String porcentaje = (String)adminView.textEmpleadosBeneficiosPorcentaje.getText().toUpperCase();\r\n \r\n String rstaRegistroBeneficio = modelPermisoDAO.insertarDatosEmpleadoBeneficio(nombre, descripcion,porcentaje);\r\n if(rstaRegistroBeneficio!= null){\r\n JOptionPane.showMessageDialog(null, rstaRegistroBeneficio);\r\n setTableEmpleadoBeneficio(adminView.tablebtnEmpleadosBeneficios);\r\n }else{JOptionPane.showMessageDialog(null, \"No se pudo registrar\");}\r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosBeneficiosEmpleadosAgisnar){\r\n int filaActualizar = adminView.tablebtnEmpleadosBeneficios.getSelectedRow();\r\n int numFilas = adminView.tablebtnEmpleadosBeneficios.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n int filaActualizar2 = adminView.tableAdminEmpleadosHorariosBuscarEmpleados1.getSelectedRow();\r\n int numFilas2 = adminView.tableAdminEmpleadosHorariosBuscarEmpleados1.getSelectedRowCount();\r\n if(filaActualizar2>= 0 && numFilas2 ==1){\r\n String respuesta = modelPermisoDAO.insertarDatosEmp_Ben((String) adminView.tableAdminEmpleadosHorariosBuscarEmpleados1.getValueAt(filaActualizar2, 0),\r\n (String) adminView.tablebtnEmpleadosBeneficios.getValueAt(filaActualizar, 0));\r\n \r\n if(respuesta != null){\r\n JOptionPane.showMessageDialog(null, \"Beneficio Asignado\");\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Error Inesperado, no se pudo concluir con la operacion\");\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar un Empleado\");\r\n }\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar un Beneficio\");\r\n }\r\n }\r\n if(e.getSource() == adminView.btnEmpleadosBeneficiosListar){\r\n setTableEmpleadoBeneficio(adminView.tablebtnEmpleadosBeneficios);\r\n \r\n \r\n }\r\n if(e.getSource() == adminView.btnEmpleadosBeneficiosActualizar){\r\n int filaActualizarBeneficio = adminView.tablebtnEmpleadosBeneficios.getSelectedRow();\r\n int numFilas = adminView.tablebtnEmpleadosBeneficios.getSelectedRowCount();\r\n if(filaActualizarBeneficio >= 0 && numFilas ==1){\r\n codigo_permiso =Integer.parseInt((String) adminView.tablebtnEmpleadosBeneficios.getValueAt(filaActualizarBeneficio, 0));\r\n adminView.textEmpleadosBeneficiosNombre.setText(String.valueOf(adminView.tablebtnEmpleadosBeneficios.getValueAt(filaActualizarBeneficio, 1)));\r\n adminView.textEmpleadosBeneficiosDescripcion.setText(String.valueOf(adminView.tablebtnEmpleadosBeneficios.getValueAt(filaActualizarBeneficio, 2)));\r\n adminView.textEmpleadosBeneficiosPorcentaje.setText(String.valueOf(adminView.tablebtnEmpleadosBeneficios.getValueAt(filaActualizarBeneficio, 3)));\r\n \r\n adminView.btnEmpleadosBeneficiosActualizar.setEnabled(false);\r\n adminView.btnEmpleadosBeneficiosEliminar.setEnabled(false);\r\n adminView.btnEmpleadosBeneficiosRegistrar.setEnabled(false);\r\n adminView.btnEmpleadosBeneficiosListar.setEnabled(false);\r\n adminView.textEmpleadosBeneficiosBuscarNombre.setEditable(false);\r\n adminView.btnEmpleadosBeneficiosActualizarOK.setEnabled(true);\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n \r\n \r\n }\r\n \r\n if(e.getSource() == adminView.btnEmpleadosBeneficiosActualizarOK){\r\n String nombre = (String)adminView.textEmpleadosBeneficiosNombre.getText().toUpperCase();\r\n String descripcion = (String)adminView.textEmpleadosBeneficiosDescripcion.getText().toUpperCase();\r\n String porcentaje = (String)adminView.textEmpleadosBeneficiosPorcentaje.getText().toUpperCase();\r\n \r\n \r\n int actualizar= modelPermisoDAO.actualizarDatosEmpleadoBeneficio(nombre, descripcion,porcentaje,codigo_permiso);\r\n if(actualizar > 0){\r\n JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa\");\r\n setTableEmpleadoBeneficio(adminView.tablebtnEmpleadosBeneficios);\r\n }else JOptionPane.showMessageDialog(null, \"No se ha podido realizar la Actualizacion\");\r\n \r\n LimpiarElementosEmpleadoBeneficio();\r\n }\r\n if(e.getSource() == adminView.btnEmpleadosBeneficiosEliminar){\r\n int filaInicioBeneficio= adminView.tablebtnEmpleadosBeneficios.getSelectedRow();\r\n int numFilas = adminView.tablebtnEmpleadosBeneficios.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreBeneficio=\"\";\r\n if( filaInicioBeneficio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreBeneficio= String.valueOf(adminView.tablebtnEmpleadosBeneficios.getValueAt(i+filaInicioBeneficio, 0));\r\n listaNombre .add(nombreBeneficio);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.eliminarDatosEmpleadoBeneficio(listaNombre.get(i));\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n setTableEmpleadoBeneficio(adminView.tablebtnEmpleadosBeneficios);\r\n }\r\n \r\n //EMPLEADOS - HORARIOS\r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosRegistrar){\r\n \r\n String diaHora = (String)adminView.jComboBoxAdminEmpleadosHorariosDias.getItemAt(adminView.jComboBoxAdminEmpleadosHorariosDias.getSelectedIndex());\r\n /* Calendar c = Calendar.getInstance();\r\n String dia = Integer.toString(c.get(Calendar.DATE));\r\n int mes = c.get(Calendar.MONTH)+1;\r\n String annio = Integer.toString(c.get(Calendar.YEAR));\r\n String fechaActualHoraInicio = annio+\"-\"+mes+\"-\"+dia;\r\n String fechaActualHoraFinal = annio+\"-\"+mes+\"-\"+dia;\r\n */\r\n String horaInicial = adminView.SpinnerAdminEmpleadosHorariosHoraInicial.getValue().toString();\r\n String horaFinal =adminView.SpinnerAdminEmpleadosHorariosHoraFinal.getValue().toString();\r\n \r\n if((horaInicial .compareTo(horaFinal)) < 0){\r\n String rstaRegistroHorario = modelPermisoDAO.insertarDatosEmpleadoHorario(diaHora,horaInicial,horaFinal);\r\n if(rstaRegistroHorario!= null){\r\n JOptionPane.showMessageDialog(null, rstaRegistroHorario);\r\n setTableEmpleadoHorario(adminView.tableAdminEmpleadosHorarios);\r\n }else{JOptionPane.showMessageDialog(null, \"No se pudo registrar\");}\r\n \r\n }else{ JOptionPane.showMessageDialog(null, \"Fecha Inicio: \"+horaInicial+\" es mayor a Fecha Fin : \"+horaFinal,\"¡ERROR!\",JOptionPane.ERROR_MESSAGE);}\r\n \r\n \r\n }\r\n if(e.getSource()== adminView.btnAdminEmpleadosHorariosEmpleadosAsignar){\r\n int filaActualizar = adminView.tableAdminEmpleadosHorarios.getSelectedRow();\r\n int numFilas = adminView.tableAdminEmpleadosHorarios.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n int filaActualizar2 = adminView.tableAdminEmpleadosHorariosBuscarEmpleados.getSelectedRow();\r\n int numFilas2 = adminView.tableAdminEmpleadosHorariosBuscarEmpleados.getSelectedRowCount();\r\n if(filaActualizar2>= 0 && numFilas2 ==1){\r\n String respuesta = modelPermisoDAO.insertarDatoseEmp_hor((String) adminView.tableAdminEmpleadosHorariosBuscarEmpleados.getValueAt(filaActualizar2, 0),\r\n (String) adminView.tableAdminEmpleadosHorarios.getValueAt(filaActualizar, 0));\r\n \r\n if(respuesta != null){\r\n JOptionPane.showMessageDialog(null, \"Horario Asignado\");\r\n setTableEmpleadoHorario(adminView.tableAdminEmpleadosHorarios);\r\n }else JOptionPane.showMessageDialog(null, \"Error Inesperado, no se pudo concluir con la operacion\");\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar un Empleado\");\r\n }\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar un Horario\");\r\n }\r\n }\r\n \r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosListar){\r\n setTableEmpleadoHorario(adminView.tableAdminEmpleadosHorarios);\r\n \r\n \r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosActualizar){\r\n int filaActualizar = adminView.tableAdminEmpleadosHorarios.getSelectedRow();\r\n int numFilas = adminView.tableAdminEmpleadosHorarios.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n codigo_permiso =Integer.parseInt((String) adminView.tableAdminEmpleadosHorarios.getValueAt(filaActualizar, 0));\r\n //adminView.SpinnerAdminEmpleadosHorariosHoraInicial.setValue((String) adminView.tableAdminEmpleadosHorarios.getValueAt(filaActualizar, 2));\r\n\r\n adminView.jComboBoxAdminEmpleadosHorariosDias.setSelectedItem(String.valueOf(adminView.tableAdminEmpleadosHorarios.getValueAt(filaActualizar, 1)));\r\n \r\n /*SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\r\n String fechaNac = dateFormat.format(adminView.textAdminEmpleadosFechaNacimiento.getDate());\r\n */\r\n String dateTime = (String) adminView.tableAdminEmpleadosHorarios.getValueAt(filaActualizar, 2);\r\n String dateTime2 = (String) adminView.tableAdminEmpleadosHorarios.getValueAt(filaActualizar, 3); \r\n \r\n Date date,date2;\r\n try {\r\n date = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").parse(dateTime);\r\n adminView.SpinnerAdminEmpleadosHorariosHoraInicial.setValue(date);\r\n \r\n date2 = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").parse(dateTime2);\r\n adminView.SpinnerAdminEmpleadosHorariosHoraFinal.setValue(date2);\r\n } catch (ParseException ex) {\r\n Logger.getLogger(AdminController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n adminView.btnAdminEmpleadosHorariosActualizar.setEnabled(false);\r\n adminView.btnAdminEmpleadosHorariosEliminar.setEnabled(false);\r\n adminView.btnAdminEmpleadosHorariosRegistrar.setEnabled(false);\r\n adminView.btnAdminEmpleadosHorariosListar.setEnabled(false);\r\n adminView.textAdminEmpleadosHorariosBuscarDia.setEditable(false);\r\n adminView.btnAdminEmpleadosHorariosActualizarOK.setEnabled(true);\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n \r\n \r\n }\r\n \r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosActualizarOK){\r\n String diaHora = (String)adminView.jComboBoxAdminEmpleadosHorariosDias.getItemAt(adminView.jComboBoxAdminEmpleadosHorariosDias.getSelectedIndex());\r\n String horaInicial = adminView.SpinnerAdminEmpleadosHorariosHoraInicial.getValue().toString();\r\n String horaFinal =adminView.SpinnerAdminEmpleadosHorariosHoraFinal.getValue().toString();\r\n \r\n int actualizar= modelPermisoDAO.actualizarDatosEmpleadoHorario(diaHora ,horaInicial,horaFinal ,codigo_permiso);\r\n if(actualizar > 0){\r\n JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa\");\r\n setTableEmpleadoHorario(adminView.tableAdminEmpleadosHorarios);\r\n }else JOptionPane.showMessageDialog(null, \"No se ha podido realizar la Actualizacion\");\r\n LimpiarElementosEmpleadoHorario();\r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosEliminar){\r\n int filaInicio= adminView.tableAdminEmpleadosHorarios.getSelectedRow();\r\n int numFilas = adminView.tableAdminEmpleadosHorarios.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreHorario=\"\";\r\n if( filaInicio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreHorario= String.valueOf(adminView.tableAdminEmpleadosHorarios.getValueAt(i+filaInicio, 0));\r\n listaNombre .add(nombreHorario);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.eliminarDatosEmpleadoHorario(listaNombre.get(i));\r\n setTableEmpleadoBeneficio(adminView.tablebtnEmpleadosBeneficios);\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n \r\n }\r\n //Sistema de COntrol\r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosRegistrar1){\r\n int filaActualizar = adminView.tableAdminEmpleadosHorariosBuscarEmpleados2.getSelectedRow();\r\n int numFilas = adminView.tableAdminEmpleadosHorariosBuscarEmpleados2.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n \r\n try {\r\n cedula =(String) adminView.tableAdminEmpleadosHorariosBuscarEmpleados2.getValueAt(filaActualizar, 0);\r\n emp_hor empleado_horario = new emp_hor();\r\n String horaInicial = adminView.SpinnerAdminEmpleadosControlHorariosHoraInicial1.getValue().toString();\r\n String horaFinal =adminView.SpinnerAdminEmpleadosHorariosHoraFinal1.getValue().toString();\r\n \r\n empleado_horario=modelPermisoDAO.listEmpleadoEmp_horXCedula(cedula).get(0);\r\n //System.out.println(\"Cod \"+empleado_horario.getEh_codigo()+\" Hor: \"+empleado_horario.getEh_fk_horario()+\" Cedula: \"+empleado_horario.getEh_fk_empleado());\r\n \r\n if((horaInicial .compareTo(horaFinal)) < 0){\r\n String rstaRegistroHorario = modelPermisoDAO.insertarDatosEmpleadoCheck(empleado_horario.getEh_codigo(),horaInicial,horaFinal);\r\n if(rstaRegistroHorario!= null){\r\n JOptionPane.showMessageDialog(null, rstaRegistroHorario);\r\n setTableEmpleadoHorario(adminView.tableAdminEmpleadosHorarios);\r\n }else{JOptionPane.showMessageDialog(null, \"No se pudo registrar\");}\r\n \r\n }else{ JOptionPane.showMessageDialog(null, \"Fecha Inicio: \"+horaInicial+\" es mayor a Fecha Fin : \"+horaFinal,\"¡ERROR!\",JOptionPane.ERROR_MESSAGE);}\r\n \r\n \r\n } catch (IndexOutOfBoundsException e12) {\r\n JOptionPane.showMessageDialog(null, \"Por favor debe Añadir un horario al Empleado Selccionado\");\r\n }\r\n \r\n \r\n \r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar un Empleado\");\r\n } \r\n \r\n }\r\n \r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosEliminar1){\r\n int filaInicio= adminView.tableAdminEmpleadosHorarios1.getSelectedRow();\r\n int numFilas = adminView.tableAdminEmpleadosHorarios1.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreHorario=\"\";\r\n if( filaInicio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreHorario= String.valueOf(adminView.tableAdminEmpleadosHorarios1.getValueAt(i+filaInicio, 0));\r\n listaNombre .add(nombreHorario);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.eliminarDatosCheck(listaNombre.get(i));\r\n setTableEmpleadoBeneficio(adminView.tablebtnEmpleadosBeneficios);\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n \r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosActualizar1){\r\n int filaActualizar = adminView.tableAdminEmpleadosHorarios1.getSelectedRow();\r\n int numFilas = adminView.tableAdminEmpleadosHorarios1.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n codigo_permiso =Integer.parseInt((String) adminView.tableAdminEmpleadosHorarios1.getValueAt(filaActualizar, 0));\r\n \r\n String dateTime = (String) adminView.tableAdminEmpleadosHorarios1.getValueAt(filaActualizar, 3);\r\n String dateTime2 = (String) adminView.tableAdminEmpleadosHorarios1.getValueAt(filaActualizar, 4); \r\n \r\n Date date,date2;\r\n try {\r\n date = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").parse(dateTime);\r\n adminView.SpinnerAdminEmpleadosControlHorariosHoraInicial1.setValue(date);\r\n \r\n date2 = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").parse(dateTime2);\r\n adminView.SpinnerAdminEmpleadosHorariosHoraFinal1.setValue(date2);\r\n } catch (ParseException ex) {\r\n Logger.getLogger(AdminController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n adminView.btnAdminEmpleadosHorariosActualizar1.setEnabled(false);\r\n adminView.btnAdminEmpleadosHorariosEliminar1.setEnabled(false);\r\n adminView.btnAdminEmpleadosHorariosRegistrar1.setEnabled(false);\r\n //adminView.btnAdminEmpleadosHorariosListar.setEnabled(false);\r\n adminView.textAdminEmpleadosHorariosBuscarDia1.setEditable(false);\r\n adminView.btnAdminEmpleadosHorariosActualizarOK1.setEnabled(true);\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosHorariosActualizarOK1){\r\n // String diaHora = (String)adminView.jComboBoxAdminEmpleadosHorariosDias.getItemAt(adminView.jComboBoxAdminEmpleadosHorariosDias.getSelectedIndex());\r\n String horaInicial = adminView.SpinnerAdminEmpleadosControlHorariosHoraInicial1.getValue().toString();\r\n String horaFinal =adminView.SpinnerAdminEmpleadosHorariosHoraFinal1.getValue().toString();\r\n \r\n int actualizar= modelPermisoDAO.actualizarDatosEmpleadoCheck(horaInicial,horaFinal ,codigo_permiso);\r\n if(actualizar > 0){\r\n JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa\");\r\n adminView.btnAdminEmpleadosHorariosActualizar1.setEnabled(true);\r\n adminView.btnAdminEmpleadosHorariosEliminar1.setEnabled(true);\r\n adminView.btnAdminEmpleadosHorariosRegistrar1.setEnabled(true);\r\n //adminView.btnAdminEmpleadosHorariosListar.setEnabled(false);\r\n adminView.textAdminEmpleadosHorariosBuscarDia1.setEditable(true);\r\n adminView.btnAdminEmpleadosHorariosActualizarOK1.setEnabled(false);\r\n }else JOptionPane.showMessageDialog(null, \"No se ha podido realizar la Actualizacion\");\r\n LimpiarElementosEmpleadoHorario();\r\n }\r\n \r\n //EMPLEADOS\r\n if(e.getSource() == adminView.btnAdminEmpleadosListarTiendas){\r\n setEmpleadosTienda(adminView.TableAdminEmpleadosBuscarTiendas);\r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosRegistrar){\r\n String cedula =(String) adminView.textAdminEmpleadosCedula.getText().toUpperCase();\r\n String primerNombre = (String)adminView.textAdminEmpleadosPrimerNOmbre.getText().toUpperCase();\r\n String segundoNombre=(String) adminView.textAdminEmpleadosSegundoNombre.getText().toUpperCase();\r\n String primerApellido = (String)adminView.textAdminEmpleadosPrimerApellido.getText().toUpperCase();\r\n String segundoApellido= (String)adminView.textAdminEmpleadosSegundoApellido.getText().toUpperCase();\r\n String salario= (String)adminView.textAdminEmpleadosSalario.getText().toUpperCase();\r\n String telefono =(String)adminView.textAdminEmpleadosTelefono.getText().toUpperCase();\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n String fechaNac = dateFormat.format(adminView.textAdminEmpleadosFechaNacimiento.getDate());\r\n String usuario = (String)adminView.textAdminEmpleadosUsuario.getText().toUpperCase();\r\n String pass = (String)adminView.textAdminEmpleadosContrasena.getText().toUpperCase();\r\n String pregunta = (String)adminView.textAdminEmpleadosPreguntaSecreta.getText().toUpperCase();\r\n String respuesta = (String)adminView.textAdminEmpleadosRespuestaSecreta.getText().toUpperCase();\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n int filaActualizarTienda = adminView.TableAdminEmpleadosBuscarTiendas.getSelectedRow();\r\n int numFilasTienda= adminView.TableAdminEmpleadosBuscarTiendas.getSelectedRowCount();\r\n if(filaActualizarTienda >= 0 && numFilasTienda ==1){\r\n int filaActualizarRol = adminView.jTableAdminEmpleadosBuscarRol.getSelectedRow();\r\n int numFilasRol = adminView.jTableAdminEmpleadosBuscarRol.getSelectedRowCount(); \r\n if(filaActualizarRol>= 0 && numFilasRol ==1){\r\n int filaActualizarPermiso = adminView.jTableAdminEmpleadosBuscarPermisos.getSelectedRow();\r\n int numFilasRolPermiso = adminView.jTableAdminEmpleadosBuscarPermisos.getSelectedRowCount();\r\n if(filaActualizarPermiso >= 0 && numFilasRolPermiso ==1){\r\n System.out.println(\"Entro\");\r\n int respuestaEmpleado = modelPermisoDAO.insertEmpleados(cedula,\r\n primerNombre, segundoNombre, \r\n primerApellido, segundoApellido, \r\n salario/*, diasVaciones*/, fechaNac, telefono,\r\n String.valueOf(adminView.TableAdminEmpleadosBuscarTiendas.getValueAt(filaActualizarTienda, 0)),\r\n /*Usuaruio*/ usuario,pass,pregunta,respuesta,\r\n /*ROl _PER*/\r\n /*ROL*/\r\n String.valueOf(adminView.jTableAdminEmpleadosBuscarRol.getValueAt(filaActualizarRol, 0)),\r\n /*PERMISO*/\r\n String.valueOf(adminView.jTableAdminEmpleadosBuscarPermisos.getValueAt(filaActualizarPermiso, 0)) \r\n );\r\n \r\n if(respuestaEmpleado > 0){\r\n JOptionPane.showMessageDialog(null, \" Registro Exitoso \");\r\n }else JOptionPane.showMessageDialog(null, \"Ha Ocurriodo un Error \");\r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar solo un tipo de Permiso\");\r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar solo un tipo ROL\");\r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar solo un Departamento\");\r\n }else JOptionPane.showMessageDialog(null, \"Telefono Invalido\"); \r\n \r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosListarEmpleados1){\r\n int filaActualizarTienda = adminView.TableAdminEmpleadosBuscarTiendas.getSelectedRow();\r\n int numFilasTienda= adminView.TableAdminEmpleadosBuscarTiendas.getSelectedRowCount();\r\n if(filaActualizarTienda >= 0 && numFilasTienda ==1){\r\n System.out.println(\"Entro\");\r\n setEmpleados(adminView.TableAdminEmpleadosBuscar1, String.valueOf(adminView.TableAdminEmpleadosBuscarTiendas.getValueAt(filaActualizarTienda, 0)));\r\n \r\n \r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar solo una TIENDA\");\r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosActualizar){\r\n int filaActualizar = adminView.TableAdminEmpleadosBuscar1.getSelectedRow();\r\n int numFilas = adminView.TableAdminEmpleadosBuscar1.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n cedula =(String) adminView.TableAdminEmpleadosBuscar1.getValueAt(filaActualizar, 0);\r\n \r\n modelPermisoDAO.setUpdateEmpleado(cedula,\r\n adminView.textAdminEmpleadosCedula, \r\n adminView.textAdminEmpleadosPrimerNOmbre, \r\n adminView.textAdminEmpleadosSegundoNombre, \r\n adminView.textAdminEmpleadosPrimerApellido, \r\n adminView.textAdminEmpleadosSegundoApellido, \r\n adminView.textAdminEmpleadosSalario,\r\n adminView.textAdminEmpleadosTelefono,\r\n // adminView.textAdminEmpleadosDiasVacaciones, \r\n adminView.textAdminEmpleadosFechaNacimiento, \r\n adminView.textAdminEmpleadosUsuario, \r\n adminView.textAdminEmpleadosContrasena, \r\n adminView.textAdminEmpleadosPreguntaSecreta, \r\n adminView.textAdminEmpleadosRespuestaSecreta);\r\n \r\n /*adminView.textAdminEmpleadosCedula.setText(cedula);\r\n adminView.textAdminEmpleadosPrimerNOmbre.setText((String) adminView.TableAdminEmpleadosBuscar1.getValueAt(filaActualizar, 1));\r\n \r\n adminView.textAdminEmpleadosPrimerApellido.setText((String)adminView.TableAdminEmpleadosBuscar1.getValueAt(filaActualizar, 2));\r\n \r\n adminView.textAdminEmpleadosSalario.setText((String) adminView.TableAdminEmpleadosBuscar1.getValueAt(filaActualizar, 3));\r\n */\r\n \r\n adminView.textAdminEmpleadosCedula.setEditable(false);\r\n adminView.textAdminEmpleadosPrimerNOmbre.setEditable(false);\r\n adminView.textAdminEmpleadosSegundoNombre.setEditable(false);\r\n adminView.textAdminEmpleadosPrimerApellido.setEditable(false);\r\n adminView.textAdminEmpleadosSegundoApellido.setEditable(false);\r\n adminView.textAdminEmpleadosUsuario.setEditable(false);\r\n // adminView.textAdminEmpleadosContrasena.setEditable(false);\r\n /// adminView.textAdminEmpleadosPreguntaSecreta.setEditable(false);\r\n // adminView.textAdminEmpleadosRespuestaSecreta.setEditable(false);\r\n \r\n adminView.textAdminEmpleadosBuscarCedula2.setEditable(false);\r\n adminView.textAdminEmpleadosFechaNacimiento.setEnabled(false);\r\n adminView.btnAdminEmpleadosActualizar.setEnabled(false);\r\n adminView.btnAdminEmpleadosEliminar.setEnabled(false);\r\n adminView.btnAdminEmpleadosRegistrar.setEnabled(false);\r\n adminView.btnAdminEmpleadosListarEmpleados1.setEnabled(false);\r\n \r\n adminView.btnAdminEmpleadosActuaizarOK.setEnabled(true);\r\n \r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosActuaizarOK){\r\n String cedula =(String) adminView.textAdminEmpleadosCedula.getText().toUpperCase();\r\n String primerNombre = (String)adminView.textAdminEmpleadosPrimerNOmbre.getText().toUpperCase();\r\n String segundoNombre=(String) adminView.textAdminEmpleadosSegundoNombre.getText().toUpperCase();\r\n String primerApellido = (String)adminView.textAdminEmpleadosPrimerApellido.getText().toUpperCase();\r\n String segundoApellido= (String)adminView.textAdminEmpleadosSegundoApellido.getText().toUpperCase();\r\n String salario= (String)adminView.textAdminEmpleadosSalario.getText().toUpperCase();\r\n String telefono =(String)adminView.textAdminEmpleadosTelefono.getText().toUpperCase();\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n String fechaNac = dateFormat.format(adminView.textAdminEmpleadosFechaNacimiento.getDate());\r\n String usuario = (String)adminView.textAdminEmpleadosUsuario.getText().toUpperCase();\r\n String pass = (String)adminView.textAdminEmpleadosContrasena.getText().toUpperCase();\r\n String pregunta = (String)adminView.textAdminEmpleadosPreguntaSecreta.getText().toUpperCase();\r\n String respuesta = (String)adminView.textAdminEmpleadosRespuestaSecreta.getText().toUpperCase();\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n int x=-1,y=-1,z=-1;\r\n \r\n \r\n int filaActualizarTienda = adminView.TableAdminEmpleadosBuscarTiendas.getSelectedRow();\r\n int numFilasTienda= adminView.TableAdminEmpleadosBuscarTiendas.getSelectedRowCount();\r\n if(filaActualizarTienda >= 0 && numFilasTienda ==1){\r\n x=Integer.parseInt((String) adminView.TableAdminEmpleadosBuscarTiendas.getValueAt(filaActualizarTienda, 0));\r\n }\r\n \r\n int filaActualizarRol = adminView.jTableAdminEmpleadosBuscarRol.getSelectedRow();\r\n int numFilasRol = adminView.jTableAdminEmpleadosBuscarRol.getSelectedRowCount(); \r\n if(filaActualizarRol>= 0 && numFilasRol ==1){\r\n y=Integer.parseInt((String) adminView.jTableAdminEmpleadosBuscarRol.getValueAt(filaActualizarRol , 0));\r\n }\r\n \r\n int filaActualizarPermiso = adminView.jTableAdminEmpleadosBuscarPermisos.getSelectedRow();\r\n int numFilasRolPermiso = adminView.jTableAdminEmpleadosBuscarPermisos.getSelectedRowCount();\r\n if(filaActualizarPermiso >= 0 && numFilasRolPermiso ==1){\r\n \r\n z=Integer.parseInt((String) adminView.jTableAdminEmpleadosBuscarPermisos.getValueAt(filaActualizarPermiso , 0));\r\n \r\n \r\n }\r\n int respuestActualizacion= modelPermisoDAO.actualizarEmpleado(\r\n cedula\r\n , primerNombre\r\n , primerApellido\r\n , segundoNombre\r\n , segundoApellido\r\n , salario\r\n ,telefono\r\n // , diasVaciones\r\n , fechaNac\r\n , usuario\r\n , pass\r\n , pregunta\r\n , respuesta\r\n , x\r\n , y\r\n , z); \r\n if(respuestActualizacion>0){\r\n \r\n JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa\");\r\n adminView.textAdminEmpleadosCedula.setText(\"\");\r\n adminView.textAdminEmpleadosPrimerNOmbre.setText(\"\");\r\n adminView.textAdminEmpleadosSegundoNombre.setText(\"\");\r\n adminView.textAdminEmpleadosPrimerApellido.setText(\"\");\r\n adminView.textAdminEmpleadosSegundoApellido.setText(\"\");\r\n adminView.textAdminEmpleadosSalario.setText(\"\"); \r\n // adminView.textAdminEmpleadosDiasVacaciones.setText(\"\");\r\n adminView.textAdminEmpleadosFechaNacimiento.setDate(null);\r\n adminView.textAdminEmpleadosUsuario.setText(\"\");\r\n adminView.textAdminEmpleadosContrasena.setText(\"\");\r\n adminView.textAdminEmpleadosPreguntaSecreta.setText(\"\");\r\n adminView.textAdminEmpleadosRespuestaSecreta.setText(\"\");\r\n adminView.textAdminEmpleadosTelefono.setText(\"\");\r\n adminView.textAdminEmpleadosCedula.setEditable(true);\r\n adminView.textAdminEmpleadosPrimerNOmbre.setEditable(true);\r\n adminView.textAdminEmpleadosSegundoNombre.setEditable(true);\r\n adminView.textAdminEmpleadosPrimerApellido.setEditable(true);\r\n adminView.textAdminEmpleadosSegundoApellido.setEditable(true);\r\n adminView.textAdminEmpleadosUsuario.setEditable(true);\r\n adminView.textAdminEmpleadosContrasena.setEditable(true);\r\n adminView.textAdminEmpleadosPreguntaSecreta.setEditable(true);\r\n adminView.textAdminEmpleadosRespuestaSecreta.setEditable(true);\r\n \r\n adminView.textAdminEmpleadosBuscarCedula2.setEditable(true);\r\n adminView.textAdminEmpleadosFechaNacimiento.setEnabled(true);\r\n adminView.btnAdminEmpleadosActualizar.setEnabled(true);\r\n adminView.btnAdminEmpleadosEliminar.setEnabled(true);\r\n adminView.btnAdminEmpleadosRegistrar.setEnabled(true);\r\n adminView.btnAdminEmpleadosListarEmpleados1.setEnabled(true);\r\n \r\n adminView.btnAdminEmpleadosActuaizarOK.setEnabled(false);\r\n }else JOptionPane.showMessageDialog(null, \"Ocurrio un Error\");\r\n } else JOptionPane.showMessageDialog(null, \"Telefono Incorrecto\");\r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosEliminar){\r\n int filaInicioBeneficio= adminView.TableAdminEmpleadosBuscar1.getSelectedRow();\r\n int numFilas = adminView.TableAdminEmpleadosBuscar1.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreBeneficio=\"\";\r\n if( filaInicioBeneficio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreBeneficio= String.valueOf(adminView.TableAdminEmpleadosBuscar1.getValueAt(i+filaInicioBeneficio, 0));\r\n listaNombre .add(nombreBeneficio);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.eliminarDatosEmpleado(listaNombre.get(i));\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n }\r\n \r\n \r\n if(e.getSource() == adminView.btnAdminEmpleadosListarPermiso){\r\n setTablePermiso(adminView.jTableAdminEmpleadosBuscarPermisos);\r\n \r\n }\r\n if(e.getSource() == adminView.btnAdminEmpleadosListarROL){\r\n setTableRol(adminView.jTableAdminEmpleadosBuscarRol);\r\n \r\n }\r\n \r\n \r\n //Vacciones Empleados\r\n \r\n if(e.getSource() == adminView.btnAdminVacacionesRegistrar2){\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n String fechaInicio = dateFormat.format(adminView.textAdminVacacionesFechaInicial.getDate());\r\n String fechaFin = dateFormat.format(adminView.textAdminVacacionesFechaFinal.getDate());\r\n \r\n int filaActualizar = adminView.tableAdminEmpleadosHorariosBuscarEmpleados3.getSelectedRow();\r\n int numFilas = adminView.tableAdminEmpleadosHorariosBuscarEmpleados3.getSelectedRowCount();\r\n \r\n if(filaActualizar>= 0 && numFilas ==1){\r\n if((fechaInicio.compareTo(fechaFin)) < 0){\r\n String cedula =(String) adminView.tableAdminEmpleadosHorariosBuscarEmpleados3.getValueAt(filaActualizar, 0);\r\n int rstaRegistro = modelPermisoDAO.insertVacaionesEmpleados(fechaInicio,fechaFin,cedula);\r\n if(rstaRegistro>0){\r\n JOptionPane.showMessageDialog(null, \"Registro Exitoso\");\r\n \r\n }else{JOptionPane.showMessageDialog(null, \"No se pudo registrar\");}\r\n }else{ JOptionPane.showMessageDialog(null, \"Fecha Inicio: \"+fechaInicio+\" es mayor a Fecha Fin : \"+fechaFin,\"¡ERROR!\",JOptionPane.ERROR_MESSAGE);}\r\n \r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar un Empleado\");\r\n }\r\n \r\n }\r\n \r\n /* if(e.getSource() == adminView.btnAdminVacacionesListar2){ \r\n setVacacionesEmpleados(adminView.tableAdminVacacionesuscarTienda/*,cedula*; \r\n }*/\r\n if(e.getSource() == adminView.btnAdminVacacionesActualizar2){\r\n int filaActualizar = adminView.tableAdminVacacionesuscarTienda.getSelectedRow();\r\n int numFilas = adminView.tableAdminVacacionesuscarTienda.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n cedula =(String) adminView.tableAdminVacacionesuscarTienda.getValueAt(filaActualizar, 0);\r\n \r\n String dateTime = (String) adminView.tableAdminVacacionesuscarTienda.getValueAt(filaActualizar, 3);\r\n String dateTime2 = (String) adminView.tableAdminVacacionesuscarTienda.getValueAt(filaActualizar, 4); \r\n \r\n try {\r\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dateTime);\r\n adminView.textAdminVacacionesFechaInicial.setDate(date);\r\n Date date2 = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dateTime2);\r\n adminView.textAdminVacacionesFechaFinal.setDate(date2);\r\n } catch (ParseException ex) {\r\n Logger.getLogger(AdminController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n adminView.textAdminVacacionesEmpleadosBuscarTiendaNombre.setEditable(false);\r\n\r\n \r\n adminView.btnAdminVacacionesActualizar2.setEnabled(false);\r\n \r\n adminView.btnAdminVacacionesEliminar2.setEnabled(false);\r\n adminView.btnAdminVacacionesRegistrar2.setEnabled(false);\r\n //adminView.btnAdminVacacionesListar2.setEnabled(false);\r\n \r\n \r\n adminView.btnAdminVacacionesActualizarOK2.setEnabled(true);\r\n \r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n \r\n }\r\n \r\n if(e.getSource() == adminView.btnAdminVacacionesActualizarOK2){\r\n \r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n String fechaInicio = dateFormat.format(adminView.textAdminVacacionesFechaInicial.getDate());\r\n String fechaFin = dateFormat.format(adminView.textAdminVacacionesFechaFinal.getDate());\r\n \r\n \r\n if((fechaInicio.compareTo(fechaFin)) < 0){\r\n \r\n int rstaRegistro = modelPermisoDAO.actualizarVacaionesEmpleados(fechaInicio,fechaFin,cedula);\r\n if(rstaRegistro>0){\r\n JOptionPane.showMessageDialog(null, \"Registro Exitoso\");\r\n adminView.textAdminVacacionesEmpleadosBuscarTiendaNombre.setEditable(true);\r\n\r\n \r\n adminView.btnAdminVacacionesActualizar2.setEnabled(true);\r\n \r\n adminView.btnAdminVacacionesEliminar2.setEnabled(true);\r\n adminView.btnAdminVacacionesRegistrar2.setEnabled(true);\r\n // adminView.btnAdminVacacionesListar2.setEnabled(true);\r\n \r\n \r\n adminView.btnAdminVacacionesActualizarOK2.setEnabled(false);\r\n }else{JOptionPane.showMessageDialog(null, \"No se pudo registrar\");}\r\n }else{ JOptionPane.showMessageDialog(null, \"Fecha Inicio: \"+fechaInicio+\" es mayor a Fecha Fin : \"+fechaFin,\"¡ERROR!\",JOptionPane.ERROR_MESSAGE);}\r\n \r\n \r\n \r\n \r\n }\r\n if(e.getSource() == adminView.btnAdminVacacionesEliminar2){\r\n int filaInicioBeneficio= adminView.tableAdminVacacionesuscarTienda.getSelectedRow();\r\n int numFilas = adminView.tableAdminVacacionesuscarTienda.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreBeneficio=\"\";\r\n if( filaInicioBeneficio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreBeneficio= String.valueOf(adminView.tableAdminVacacionesuscarTienda.getValueAt(i+filaInicioBeneficio, 0));\r\n listaNombre .add(nombreBeneficio);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.deleteVacaionesEmpleados(listaNombre.get(i));\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n }\r\n \r\n //Clientes Juridicos y Natural\r\n if(e.getSource() == adminView.btnAdminClientesJuridicosRegistrar){\r\n String capital = adminView.textRegistroCLienteJuridicoCapitalDisponible.getText().toUpperCase();\r\n String denominacion= adminView.textRegistroCLienteJuridicoDenominacionComercial.getText().toUpperCase();;\r\n String email= adminView. textRegistroCLienteJuridicoEmail.getText();\r\n String pass= adminView.textRegistroCLienteJuridicoPass.getText().toUpperCase();;\r\n String pregunta= adminView. textRegistroCLienteJuridicoPreguntaSecreta.getText().toUpperCase();;\r\n String razon= adminView.textRegistroCLienteJuridicoRazonSocial.getText().toUpperCase();;\r\n String respuesta= adminView.textRegistroCLienteJuridicoRespuestaSecreta.getText().toUpperCase();;\r\n String rif= adminView.textRegistroCLienteJuridicoRif.getText().toUpperCase();;\r\n String user= adminView.textRegistroCLienteJuridicoUsuario.getText().toUpperCase();;\r\n String telefono= adminView.textRegistroCLienteJuridicoTelefono.getText();\r\n \r\n String web= adminView.textRegistroCLienteJuridicoWeb.getText();\r\n \r\n if(ExpresionesRegulares.validarCorreo(email)){\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n if(ExpresionesRegulares.validarWeb(web)){\r\n int filaActualizar = adminView.tableAdminJuridicosTiendas1.getSelectedRow();\r\n int numFilas = adminView.tableAdminJuridicosTiendas1.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n \r\n int rta= modelPermisoDAO.insertJuridico(rif, denominacion,razon,web,capital, (String) adminView.tableAdminJuridicosTiendas1.getValueAt(filaActualizar, 0),\r\n \"1\",\"1\"\r\n /*Usuario*/\r\n ,user,pass, pregunta,respuesta,\r\n /*Mail*/\r\n email,\r\n /*Telefono*/\r\n \"Oficina Central\",telefono );\r\n if(rta >0){ JOptionPane.showMessageDialog(null, \"Registro Exitoso\");\r\n }else JOptionPane.showMessageDialog(null, \"Ocurrio un Error\");\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Tienda\");\r\n }\r\n \r\n \r\n \r\n }else JOptionPane.showMessageDialog(null, \"Pagina WEB incorrecta\");\r\n }else JOptionPane.showMessageDialog(null, \"Telefono Incorrecto\");\r\n }else JOptionPane.showMessageDialog(null, \"Correo Invalido\");\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesNaturalRegistro){\r\n String apellido= adminView.textRegistroCLienteNaturalApellido.getText().toUpperCase();;\r\n String cedula = adminView.textRegistroCLienteNaturalCedula.getText().toUpperCase();\r\n String mail= adminView.textRegistroCLienteNaturalEmail.getText();\r\n String nombre= adminView.textRegistroCLienteNaturalNombre.getText().toUpperCase();\r\n String pass = adminView.textRegistroCLienteNaturalPass.getText().toUpperCase();\r\n String pregunta = adminView.textRegistroCLienteNaturalPreguntaSecreta.getText().toUpperCase();\r\n String respuesta = adminView.textRegistroCLienteNaturalRespuestaSecreta.getText().toUpperCase();\r\n String rif= adminView.textRegistroCLienteNaturalRif.getText().toUpperCase();\r\n String apellido2= adminView.textRegistroCLienteNaturalSegundoApellido.getText().toUpperCase();\r\n String nombre2= adminView.textRegistroCLienteNaturalSegundoNombre.getText().toUpperCase();\r\n String telefono= adminView.textRegistroCLienteNaturalTelefono.getText().toUpperCase();\r\n String user= adminView.textRegistroCLienteNaturalUser.getText().toUpperCase();\r\n \r\n if(ExpresionesRegulares.validarCorreo(mail)){\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n \r\n int filaActualizar = adminView.tableAdminNaturalesTiendas.getSelectedRow();\r\n int numFilas = adminView.tableAdminNaturalesTiendas.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n \r\n int rta= modelPermisoDAO.insertNatural(cedula ,rif,nombre\r\n ,nombre2,apellido,apellido2, (String) adminView.tableAdminNaturalesTiendas.getValueAt(filaActualizar, 0),\r\n \"1\"\r\n /*Usuario*/\r\n ,user,pass, pregunta,respuesta,\r\n /*Mail*/\r\n mail,\r\n /*Telefono*/\r\n \"Telefono personal\",telefono );\r\n if(rta >0){ JOptionPane.showMessageDialog(null, \"Registro Exitoso\");\r\n }else JOptionPane.showMessageDialog(null, \"Ocurrio un Error\");\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Tienda\");\r\n }\r\n \r\n \r\n \r\n \r\n }else JOptionPane.showMessageDialog(null, \"Telefono Incorrecto\");\r\n }else JOptionPane.showMessageDialog(null, \"Correo Invalido\");\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesJuridicosEliminar1){\r\n int filaInicioBeneficio= adminView.tableAdminJuridicosBuscarClientsJuridicos.getSelectedRow();\r\n int numFilas = adminView.tableAdminJuridicosBuscarClientsJuridicos.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreBeneficio=\"\";\r\n if( filaInicioBeneficio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreBeneficio= String.valueOf(adminView.tableAdminJuridicosBuscarClientsJuridicos.getValueAt(i+filaInicioBeneficio, 1));\r\n listaNombre .add(nombreBeneficio);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.deleteJuridicos(listaNombre.get(i));\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesNaturalEliminar2){\r\n int filaInicioBeneficio= adminView.tableAdminNaturalesBuscarCleintesNaturales.getSelectedRow();\r\n int numFilas = adminView.tableAdminNaturalesBuscarCleintesNaturales.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreBeneficio=\"\";\r\n if( filaInicioBeneficio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreBeneficio= String.valueOf(adminView.tableAdminNaturalesBuscarCleintesNaturales.getValueAt(i+filaInicioBeneficio, 1));\r\n listaNombre .add(nombreBeneficio);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.deleteNaturales(listaNombre.get(i));\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos una Fila\");\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesJuridicosActualizar1){\r\n int filaActualizar = adminView.tableAdminJuridicosBuscarClientsJuridicos.getSelectedRow();\r\n int numFilas = adminView.tableAdminJuridicosBuscarClientsJuridicos.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n codigo_permiso = Integer.parseInt((String) adminView.tableAdminJuridicosBuscarClientsJuridicos.getValueAt(filaActualizar, 0));\r\n \r\n modelPermisoDAO.setUpdateJuridico(codigo_permiso,\r\n adminView.textRegistroCLienteJuridicoDenominacionComercial, \r\n adminView.textRegistroCLienteJuridicoRazonSocial, \r\n adminView.textRegistroCLienteJuridicoRif, \r\n adminView.textRegistroCLienteJuridicoTelefono, \r\n adminView.textRegistroCLienteJuridicoWeb, \r\n adminView.textRegistroCLienteJuridicoEmail,\r\n adminView.textRegistroCLienteJuridicoCapitalDisponible,\r\n // adminView.textAdminEmpleadosDiasVacaciones, \r\n adminView.textRegistroCLienteJuridicoUsuario, \r\n adminView.textRegistroCLienteJuridicoPass, \r\n adminView.textRegistroCLienteJuridicoPreguntaSecreta, \r\n adminView.textRegistroCLienteJuridicoRespuestaSecreta\r\n );\r\n \r\n /*adminView.textAdminEmpleadosCedula.setText(cedula);\r\n adminView.textAdminEmpleadosPrimerNOmbre.setText((String) adminView.TableAdminEmpleadosBuscar1.getValueAt(filaActualizar, 1));\r\n \r\n adminView.textAdminEmpleadosPrimerApellido.setText((String)adminView.TableAdminEmpleadosBuscar1.getValueAt(filaActualizar, 2));\r\n \r\n adminView.textAdminEmpleadosSalario.setText((String) adminView.TableAdminEmpleadosBuscar1.getValueAt(filaActualizar, 3));\r\n */\r\n \r\n adminView.textAdminClientesJuridicosBuscarClintes.setEditable(false);\r\n adminView.textRegistroCLienteJuridicoDenominacionComercial.setEditable(false);\r\n adminView.textRegistroCLienteJuridicoRazonSocial.setEditable(false);\r\n adminView.textRegistroCLienteJuridicoRif.setEditable(false);\r\n adminView.textRegistroCLienteJuridicoUsuario.setEditable(false);\r\n \r\n // adminView.textAdminEmpleadosContrasena.setEditable(false);\r\n /// adminView.textAdminEmpleadosPreguntaSecreta.setEditable(false);\r\n // adminView.textAdminEmpleadosRespuestaSecreta.setEditable(false);\r\n \r\n \r\n adminView.btnAdminClientesJuridicosRegistrar.setEnabled(false);\r\n adminView.btnAdminClientesJuridicosActualizar1.setEnabled(false);\r\n adminView.btnAdminClientesJuridicosEliminar1.setEnabled(false);\r\n \r\n \r\n adminView.btnAdminClientesJuridicosActuaizarOK1.setEnabled(true);\r\n \r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesJuridicosActuaizarOK1){\r\n String capital = adminView.textRegistroCLienteJuridicoCapitalDisponible.getText().toUpperCase();\r\n String denominacion= adminView.textRegistroCLienteJuridicoDenominacionComercial.getText().toUpperCase();;\r\n String email= adminView. textRegistroCLienteJuridicoEmail.getText();\r\n String pass= adminView.textRegistroCLienteJuridicoPass.getText().toUpperCase();;\r\n String pregunta= adminView. textRegistroCLienteJuridicoPreguntaSecreta.getText().toUpperCase();;\r\n String razon= adminView.textRegistroCLienteJuridicoRazonSocial.getText().toUpperCase();;\r\n String respuesta= adminView.textRegistroCLienteJuridicoRespuestaSecreta.getText().toUpperCase();;\r\n String rif= adminView.textRegistroCLienteJuridicoRif.getText().toUpperCase();;\r\n String user= adminView.textRegistroCLienteJuridicoUsuario.getText().toUpperCase();;\r\n String telefono= adminView.textRegistroCLienteJuridicoTelefono.getText();\r\n \r\n String web= adminView.textRegistroCLienteJuridicoWeb.getText();\r\n \r\n if(ExpresionesRegulares.validarCorreo(email)){\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n if(ExpresionesRegulares.validarWeb(web)){\r\n \r\n \r\n int rta= modelPermisoDAO.actualizarJuridico(rif, denominacion,razon,web,capital,\r\n \"1\",\"1\"\r\n /*Usuario*/\r\n ,pass, pregunta,respuesta,\r\n /*Mail*/\r\n email,\r\n /*Telefono*/\r\n telefono );\r\n if(rta >0){ JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa\");\r\n adminView.textAdminClientesJuridicosBuscarClintes.setEditable(true);\r\n adminView.textRegistroCLienteJuridicoDenominacionComercial.setEditable(true);\r\n adminView.textRegistroCLienteJuridicoRazonSocial.setEditable(true);\r\n adminView.textRegistroCLienteJuridicoRif.setEditable(true);\r\n adminView.textRegistroCLienteJuridicoUsuario.setEditable(true);\r\n\r\n // adminView.textAdminEmpleadosContrasena.setEditable(false);\r\n /// adminView.textAdminEmpleadosPreguntaSecreta.setEditable(false);\r\n // adminView.textAdminEmpleadosRespuestaSecreta.setEditable(false);\r\n\r\n\r\n adminView.btnAdminClientesJuridicosRegistrar.setEnabled(true);\r\n adminView.btnAdminClientesJuridicosActualizar1.setEnabled(true);\r\n adminView.btnAdminClientesJuridicosEliminar1.setEnabled(true);\r\n\r\n\r\n adminView.btnAdminClientesJuridicosActuaizarOK1.setEnabled(false);\r\n }else JOptionPane.showMessageDialog(null, \"Ocurrio un Error\");\r\n \r\n \r\n \r\n \r\n }else JOptionPane.showMessageDialog(null, \"Pagina WEB incorrecta\");\r\n }else JOptionPane.showMessageDialog(null, \"Telefono Incorrecto\");\r\n }else JOptionPane.showMessageDialog(null, \"Correo Invalido\");\r\n }\r\n \r\n if(e.getSource() == adminView.btnAdminClientesNaturalActualizar2){\r\n int filaActualizar = adminView.tableAdminNaturalesBuscarCleintesNaturales.getSelectedRow();\r\n int numFilas = adminView.tableAdminNaturalesBuscarCleintesNaturales.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n codigo_permiso = Integer.parseInt((String) adminView.tableAdminNaturalesBuscarCleintesNaturales.getValueAt(filaActualizar, 0));\r\n \r\n modelPermisoDAO.setUpdateNatural(codigo_permiso,\r\n adminView.textRegistroCLienteNaturalNombre, \r\n adminView.textRegistroCLienteNaturalSegundoNombre, \r\n adminView.textRegistroCLienteNaturalApellido, \r\n adminView.textRegistroCLienteNaturalSegundoApellido, \r\n adminView.textRegistroCLienteNaturalTelefono, \r\n adminView.textRegistroCLienteNaturalCedula,\r\n adminView.textRegistroCLienteNaturalRif,\r\n // adminView.textAdminEmpleadosDiasVacaciones, \r\n adminView.textRegistroCLienteNaturalEmail, \r\n adminView.textRegistroCLienteNaturalUser, \r\n adminView.textRegistroCLienteNaturalPass, \r\n adminView.textRegistroCLienteNaturalPreguntaSecreta,\r\n adminView.textRegistroCLienteNaturalRespuestaSecreta\r\n );\r\n \r\n \r\n adminView.textAdminClientesNaturalesBuscarClientes.setEditable(false);\r\n adminView.textRegistroCLienteNaturalNombre.setEditable(false);\r\n adminView.textRegistroCLienteNaturalSegundoNombre.setEditable(false);\r\n adminView.textRegistroCLienteNaturalApellido.setEditable(false);\r\n adminView.textRegistroCLienteNaturalSegundoApellido.setEditable(false);\r\n \r\n adminView.textRegistroCLienteNaturalCedula.setEditable(false);\r\n adminView.textRegistroCLienteNaturalRif.setEditable(false);\r\n adminView.textRegistroCLienteNaturalUser.setEditable(false);\r\n \r\n \r\n adminView.btnAdminClientesNaturalRegistro.setEnabled(false);\r\n adminView.btnAdminClientesNaturalActualizar2.setEnabled(false);\r\n adminView.btnAdminClientesNaturalEliminar2.setEnabled(false);\r\n \r\n \r\n adminView.btnAdminClientesNaturalActuaizarOK2.setEnabled(true);\r\n \r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar una Fila\");\r\n }\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesNaturalActuaizarOK2){\r\n String apellido= adminView.textRegistroCLienteNaturalApellido.getText().toUpperCase();;\r\n String cedula = adminView.textRegistroCLienteNaturalCedula.getText().toUpperCase();\r\n String mail= adminView.textRegistroCLienteNaturalEmail.getText();\r\n String nombre= adminView.textRegistroCLienteNaturalNombre.getText().toUpperCase();\r\n String pass = adminView.textRegistroCLienteNaturalPass.getText().toUpperCase();\r\n String pregunta = adminView.textRegistroCLienteNaturalPreguntaSecreta.getText().toUpperCase();\r\n String respuesta = adminView.textRegistroCLienteNaturalRespuestaSecreta.getText().toUpperCase();\r\n String rif= adminView.textRegistroCLienteNaturalRif.getText().toUpperCase();\r\n String apellido2= adminView.textRegistroCLienteNaturalSegundoApellido.getText().toUpperCase();\r\n String nombre2= adminView.textRegistroCLienteNaturalSegundoNombre.getText().toUpperCase();\r\n String telefono= adminView.textRegistroCLienteNaturalTelefono.getText();\r\n String user= adminView.textRegistroCLienteNaturalUser.getText().toUpperCase();\r\n \r\n if(ExpresionesRegulares.validarCorreo(mail)){\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n \r\n \r\n \r\n int rta= modelPermisoDAO.actualizarNatural(cedula , \"1\"\r\n /*Usuario*/\r\n ,pass, pregunta,respuesta,\r\n /*Mail*/\r\n mail,\r\n /*Telefono*/\r\n telefono );\r\n if(rta >0){ JOptionPane.showMessageDialog(null, \"Actualizacion Exitosa Exitoso\");\r\n adminView.textAdminClientesNaturalesBuscarClientes.setEditable(true);\r\n adminView.textRegistroCLienteNaturalNombre.setEditable(true);\r\n adminView.textRegistroCLienteNaturalSegundoNombre.setEditable(true);\r\n adminView.textRegistroCLienteNaturalApellido.setEditable(true);\r\n adminView.textRegistroCLienteNaturalSegundoApellido.setEditable(true);\r\n\r\n adminView.textRegistroCLienteNaturalCedula.setEditable(true);\r\n adminView.textRegistroCLienteNaturalRif.setEditable(true);\r\n adminView.textRegistroCLienteNaturalUser.setEditable(true);\r\n\r\n\r\n adminView.btnAdminClientesNaturalRegistro.setEnabled(true);\r\n adminView.btnAdminClientesNaturalActualizar2.setEnabled(true);\r\n adminView.btnAdminClientesNaturalEliminar2.setEnabled(true);\r\n\r\n\r\n adminView.btnAdminClientesNaturalActuaizarOK2.setEnabled(false);\r\n }else JOptionPane.showMessageDialog(null, \"Ocurrio un Error\");\r\n \r\n \r\n \r\n \r\n \r\n }else JOptionPane.showMessageDialog(null, \"Telefono Incorrecto\");\r\n }else JOptionPane.showMessageDialog(null, \"Correo Invalido\");\r\n }\r\n //PERSONA CONTACO\r\n if(e.getSource() == adminView.btnAdminClientesJuridicoPersonaContactoAgisnar1){\r\n String cedula= adminView.textRegistroCLienteJuridicoPersonaContactoCedula1.getText().toUpperCase();;\r\n String nombre= adminView.textRegistroCLienteJuridicoPersonaContactoNombre1.getText().toUpperCase();\r\n String apellido= adminView.textRegistroCLienteJuridicoPersonaContactoApellido1.getText();\r\n String telefono= adminView.textRegistroCLienteJuridicoPersonaContacoTelefono1.getText();\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n \r\n int filaActualizar = adminView.tableAdminPersonaContactoJuridicosBuscarClientsJuridicos.getSelectedRow();\r\n int numFilas = adminView.tableAdminPersonaContactoJuridicosBuscarClientsJuridicos.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n \r\n int rta= modelPermisoDAO.insertPersonaContacto(cedula, nombre\r\n ,apellido,\r\n (String) adminView.tableAdminPersonaContactoJuridicosBuscarClientsJuridicos.getValueAt(filaActualizar, 0),\r\n \r\n /*Telefono*/\r\n \"Oficina Central\",telefono );\r\n if(rta >0){ JOptionPane.showMessageDialog(null, \"Registro Exitoso\");\r\n }else JOptionPane.showMessageDialog(null, \"Ocurrio un Error\");\r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar un Empleado\");\r\n }\r\n \r\n \r\n \r\n \r\n }else JOptionPane.showMessageDialog(null, \"Telefono Incorrecto\");\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesJuridicoPErsonaContactoEliminar2){\r\n int filaInicioBeneficio= adminView.tableAdminPersonaContactoJuridicosBuscarClientsPersonaCOntacto.getSelectedRow();\r\n int numFilas = adminView.tableAdminPersonaContactoJuridicosBuscarClientsPersonaCOntacto.getSelectedRowCount();\r\n ArrayList<String> listaNombre = new ArrayList();\r\n String nombreBeneficio=\"\";\r\n if( filaInicioBeneficio >=0 ){\r\n for (int i = 0; i < numFilas ; i++) {\r\n nombreBeneficio= String.valueOf(adminView.tableAdminPersonaContactoJuridicosBuscarClientsPersonaCOntacto.getValueAt(i+filaInicioBeneficio, 0));\r\n listaNombre .add(nombreBeneficio);\r\n }\r\n for (int i = 0; i < listaNombre .size() ; i++) {\r\n int confirmacionUsuario = JOptionPane.showConfirmDialog(null, \"Desea eliminar: \"+listaNombre.get(i)+\" ?\");\r\n if(confirmacionUsuario==0){\r\n modelPermisoDAO.deletePErsonaContaco(listaNombre.get(i));\r\n JOptionPane.showMessageDialog(null, \"Gestion Exitosa\");\r\n }\r\n }\r\n \r\n }else JOptionPane.showMessageDialog(null, \"Por favor seleccionar almenos un Contacto\");\r\n }\r\n if(e.getSource() == adminView.btnAdminClientesJuridicosPersonaContacoActualizar2){\r\n int filaActualizar = adminView.tableAdminPersonaContactoJuridicosBuscarClientsPersonaCOntacto.getSelectedRow();\r\n int numFilas = adminView.tableAdminPersonaContactoJuridicosBuscarClientsPersonaCOntacto.getSelectedRowCount();\r\n if(filaActualizar>= 0 && numFilas ==1){\r\n codigo_permiso = Integer.parseInt((String) adminView.tableAdminPersonaContactoJuridicosBuscarClientsPersonaCOntacto.getValueAt(filaActualizar, 0));\r\n \r\n modelPermisoDAO.setUpdatePersonaContacto(codigo_permiso,\r\n adminView.textRegistroCLienteJuridicoPersonaContactoNombre1, \r\n adminView.textRegistroCLienteJuridicoPersonaContactoApellido1, \r\n adminView.textRegistroCLienteJuridicoPersonaContactoCedula1, \r\n adminView.textRegistroCLienteJuridicoPersonaContacoTelefono1);\r\n \r\n \r\n adminView.textRegistroCLienteJuridicoPersonaContactoNombre1.setEditable(false);\r\n adminView.textRegistroCLienteJuridicoPersonaContactoApellido1.setEditable(false);\r\n adminView.textRegistroCLienteJuridicoPersonaContactoCedula1.setEditable(false);\r\n adminView.textAdminClientesJuridiosPErsonaContactoBuscarPErsona2.setEditable(false);\r\n adminView.textAdminClientesJuridiosPErsonaContactoBuscarEmpleado1.setEditable(false);\r\n \r\n \r\n \r\n \r\n adminView.btnAdminClientesJuridicosPersonaContacoActualizar2.setEnabled(false);\r\n adminView.btnAdminClientesJuridicoPErsonaContactoEliminar2.setEnabled(false);\r\n adminView.btnAdminClientesJuridicoPersonaContactoAgisnar1.setEnabled(false);\r\n \r\n \r\n adminView.btnAdminCLientesJuridicosPErsonaContactoActualizarOK2.setEnabled(true);\r\n \r\n }else{\r\n JOptionPane.showMessageDialog(null, \"Por favor seleccionar a un Contacto\");\r\n }\r\n }\r\n if(e.getSource() == adminView.btnAdminCLientesJuridicosPErsonaContactoActualizarOK2){\r\n String telefono= adminView.textRegistroCLienteJuridicoPersonaContacoTelefono1.getText();\r\n if(ExpresionesRegulares.validarTelefono(telefono)){\r\n \r\n \r\n \r\n int rta= modelPermisoDAO.actualizarNPersonaContaco(\r\n \r\n \r\n /*Telefono*/\r\n telefono,codigo_permiso);\r\n if(rta >0){ JOptionPane.showMessageDialog(null, \"Actualizacion Exitoso\");\r\n adminView.textRegistroCLienteJuridicoPersonaContactoNombre1.setEditable(true);\r\n adminView.textRegistroCLienteJuridicoPersonaContactoApellido1.setEditable(true);\r\n adminView.textRegistroCLienteJuridicoPersonaContactoCedula1.setEditable(true);\r\n adminView.textAdminClientesJuridiosPErsonaContactoBuscarPErsona2.setEditable(true);\r\n adminView.textAdminClientesJuridiosPErsonaContactoBuscarEmpleado1.setEditable(true);\r\n\r\n\r\n\r\n\r\n adminView.btnAdminClientesJuridicosPersonaContacoActualizar2.setEnabled(true);\r\n adminView.btnAdminClientesJuridicoPErsonaContactoEliminar2.setEnabled(true);\r\n adminView.btnAdminClientesJuridicoPersonaContactoAgisnar1.setEnabled(true);\r\n\r\n\r\n adminView.btnAdminCLientesJuridicosPErsonaContactoActualizarOK2.setEnabled(false);\r\n }else JOptionPane.showMessageDialog(null, \"Ocurrio un Error\");\r\n }else JOptionPane.showMessageDialog(null, \"Telefono Incorrecto\");\r\n \r\n }\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n btnOK = new javax.swing.JButton();\n btnCancel = new javax.swing.JButton();\n lblIdBursa = new javax.swing.JLabel();\n lblNume = new javax.swing.JLabel();\n lblCUI = new javax.swing.JLabel();\n lblRegComert = new javax.swing.JLabel();\n lblAdresa = new javax.swing.JLabel();\n txtIdBursa = new javax.swing.JTextField();\n txtNume = new javax.swing.JTextField();\n txtCUI = new javax.swing.JTextField();\n txtRegComert = new javax.swing.JTextField();\n txtAdresa = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n btnOK.setText(\"OK\");\n btnOK.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnOKActionPerformed(evt);\n }\n });\n\n btnCancel.setText(\"Cancel\");\n btnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelActionPerformed(evt);\n }\n });\n\n lblIdBursa.setText(\"ID Bursa\");\n\n lblNume.setText(\"Nume\");\n\n lblCUI.setText(\"CUI\");\n\n lblRegComert.setText(\"Reg Comert\");\n\n lblAdresa.setText(\"Adresa\");\n\n txtRegComert.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtRegComertActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnOK, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 240, Short.MAX_VALUE)\n .addComponent(btnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(lblRegComert, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblCUI, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblNume, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblIdBursa, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblAdresa, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(74, 74, 74)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtIdBursa)\n .addComponent(txtNume)\n .addComponent(txtCUI)\n .addComponent(txtRegComert)\n .addComponent(txtAdresa, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblIdBursa)\n .addComponent(txtIdBursa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblNume)\n .addComponent(txtNume, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblCUI)\n .addComponent(txtCUI, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblRegComert)\n .addComponent(txtRegComert, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblAdresa)\n .addComponent(txtAdresa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 131, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnOK)\n .addComponent(btnCancel))\n .addContainerGap())\n );\n\n pack();\n }", "public void exibeDataNascimentoInvalida() {\n JOptionPane.showMessageDialog(\n null,\n Constantes.GERENCIAR_FUNCIONARIO_DATA_NASCIMENTO_INVALIDA,\n Constantes.GERENCIAR_FUNCIONARIO_TITULO,\n JOptionPane.PLAIN_MESSAGE\n );\n }", "private void salirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_salirActionPerformed\n JOptionPane.showMessageDialog(null,\"Gracias por usar el Corrector Ortográfico\");\n dic.guardarDiccionario();\n dispose();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel3 = new javax.swing.JPanel();\n botonNuevo = new javax.swing.JButton();\n botonGuardar = new javax.swing.JButton();\n botonEditar = new javax.swing.JButton();\n botonBorrar = new javax.swing.JButton();\n botonCancelar = new javax.swing.JButton();\n botonBuscar = new javax.swing.JButton();\n botonInforme = new javax.swing.JButton();\n jPanel5 = new javax.swing.JPanel();\n txtFechaHora = new javax.swing.JTextField();\n txtCodUsuario = new javax.swing.JTextField();\n txtNomUsuario = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n botonNuevo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/imagenes/New.png\"))); // NOI18N\n botonNuevo.setToolTipText(\"Nuevo\");\n botonNuevo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonNuevoActionPerformed(evt);\n }\n });\n\n botonGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/imagenes/Save.png\"))); // NOI18N\n botonGuardar.setToolTipText(\"Guardar\");\n botonGuardar.setEnabled(false);\n botonGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonGuardarActionPerformed(evt);\n }\n });\n\n botonEditar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/imagenes/edit.png\"))); // NOI18N\n botonEditar.setToolTipText(\"Editar\");\n botonEditar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonEditarActionPerformed(evt);\n }\n });\n\n botonBorrar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/imagenes/Trashcan_empty.png\"))); // NOI18N\n botonBorrar.setToolTipText(\"Borrar\");\n botonBorrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonBorrarActionPerformed(evt);\n }\n });\n\n botonCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/imagenes/cancel32.png\"))); // NOI18N\n botonCancelar.setToolTipText(\"Cancelar\");\n botonCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonCancelarActionPerformed(evt);\n }\n });\n\n botonBuscar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/imagenes/Search (2).png\"))); // NOI18N\n botonBuscar.setToolTipText(\"Buscar\");\n botonBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonBuscarActionPerformed(evt);\n }\n });\n\n botonInforme.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/imagenes/Tasks.png\"))); // NOI18N\n botonInforme.setToolTipText(\"Informe\");\n botonInforme.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n botonInforme.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n botonInforme.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonInformeActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addComponent(botonNuevo, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(botonGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(botonEditar, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(botonBorrar, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(botonCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(botonInforme, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(botonBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(11, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(3, 3, 3)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(botonNuevo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(botonBuscar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(38, 38, 38))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(botonCancelar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(botonBorrar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(botonGuardar, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(botonEditar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(botonInforme, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n\n jPanel5.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n txtFechaHora.setEditable(false);\n txtFechaHora.setBackground(new java.awt.Color(204, 255, 255));\n txtFechaHora.setFont(new java.awt.Font(\"Tahoma\", 0, 10)); // NOI18N\n txtFechaHora.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\n txtCodUsuario.setEditable(false);\n txtCodUsuario.setBackground(new java.awt.Color(204, 255, 255));\n txtCodUsuario.setFont(new java.awt.Font(\"Tahoma\", 0, 10)); // NOI18N\n txtCodUsuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtCodUsuarioActionPerformed(evt);\n }\n });\n\n txtNomUsuario.setEditable(false);\n txtNomUsuario.setBackground(new java.awt.Color(204, 255, 255));\n txtNomUsuario.setFont(new java.awt.Font(\"Tahoma\", 0, 10)); // NOI18N\n txtNomUsuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNomUsuarioActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(txtCodUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3)\n .addComponent(txtNomUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtFechaHora, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtFechaHora, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCodUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNomUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(246, Short.MAX_VALUE))\n );\n\n pack();\n }", "void setError();", "private void btnIngresarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void btnIngresarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void invalidTry(){\n setButtons(false);\n setMsgText(\"There are 2 players in game, you cannot join in now.\");\n }", "public boolean actualizar(JComboBox cbx, JTextField txtDNI, JTextField txtNombre, JTextField txtApellidos,\n JTextField txtTelef, int id) {\n\n dConfirmar = new D_Confirmar(new JFrame(), true);\n\n mComboRoll = (M_ComboRoll) cbx.getSelectedItem();\n\n mUsuarios.setDni(txtDNI.getText());\n mUsuarios.setNombre(txtNombre.getText());\n mUsuarios.setApellidos(txtApellidos.getText());\n mUsuarios.setTelefono(txtTelef.getText());\n mUsuarios.setRoll(mComboRoll.getId());\n mUsuarios.setId(id);\n\n if (sUsuario.actualizarUsuarios(mUsuarios)) {\n rAgregarImg.agregarImagen(\"/Img/Dialogos/Hecho.png\", D_Confirmar.lblImg);\n D_Confirmar.lblMensaje.setText(\"Registro Actualizado con exito\".toUpperCase());\n limpiarCajas(txtDNI, txtNombre, txtApellidos, txtTelef, cbx);\n mostrarTablaUsuario(V_PanelUsuario.tblUsuarios);\n dConfirmar.setVisible(true);\n return true;\n } else {\n rAgregarImg.agregarImagen(\"/Img/Dialogos/Error.png\", D_Confirmar.lblImg);\n D_Confirmar.lblMensaje.setText(\"Al parecer ocurrio un error\".toUpperCase());\n limpiarCajas(txtDNI, txtNombre, txtApellidos, txtTelef, cbx);\n dConfirmar.setVisible(true);\n return false;\n }\n }", "private void btnEnviarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonEnviarActionPerformed\n EnviarDatos(txtMensaje.getText());\n txtMensaje.setText(\"\");\n letras();\n }", "@SuppressWarnings(\"serial\")\n\tprivate void cancelOkHandler(Button cancel,Button ok)\n\t{\n\t\tok.addClickListener(new ClickListener() \n {\n\t\t\t@Override\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) \n\t\t\t{\n\t\t\t\terrorMessages.setVisible(false);\n\t\t\t\tif (editable)\n\t\t\t\t{\n\t\t\t\t\tif (((!(tf0.getValue().toString().trim().length() > 0))||(tf0.getValue().toString().equals(\"\"))||(tf0.getValue()==null)||(sf6.getValue()==null)||(sf1.getValue()==null)||(df3.getValue()==null)))\n\t\t\t\t\t{\n\t\t\t\t\t\tif ((!(tf0.getValue().toString().trim().length() > 0))||(tf0.getValue().toString().equals(\"\"))||(tf0.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"Wrong input on Name field(Name can not be empty!).\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif((sf1.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"I need you to tell me the Customer!\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif((sf6.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"Active field can't be empty!\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ((df3.getValue()==null))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"I need the Start Date from you.\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!isfloat(tf7.getValue().toString())&&(!tf7.getValue().toString().equals(\"\"))||tf7.getValue().toString().length()>5)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\terrorMessages.setValue(\"Budget should be a number with a max of 5 digits\");\n\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (!(checkdates(df3.getValue(),df4.getValue())&&checkdates(df3.getValue(),df5.getValue())&&checkdates(df5.getValue(),df4.getValue())))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(!checkdates(df3.getValue(),df4.getValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"End date can't be before Start date.\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(!checkdates(df3.getValue(),df5.getValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"Deadline should be between start/end(check Deadline).\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(!checkdates(df5.getValue(),df4.getValue()))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"Deadline should be between start/end(check Deadline).\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(( Mode.equals(\"New Project\"))||( Mode.equals(\"Edit\")))\n\t\t\t\t\t \t{\n\t\t\t\t\t\t\t\t\tsetProject();\n\t\t\t\t\t \t}\n\t\t\t\t\t\t\t\t//Chekare an oles oi hmeromhnies twn tasks sou einai swstes\n\t\t\t\t\t\t\t\tif (checkProjectTaskDates(project))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdb.projectModifier(Mode, project, taskManager);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcatch (SQLException e) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tErrorWindow wind = new ErrorWindow(e); \n\t\t\t\t\t\t\t\t UI.getCurrent().addWindow(wind);\t\n\t\t\t\t\t\t\t\t e.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tproject_container.removeAllItems();\n\t\t\t\t\t\t\t\t\tgntTraineeProjectUI.containerFiller(project_table,project_container);\n\t\t\t\t\t\t\t\t\tproject_table.setContainerDataSource(project_container);\n\t\t\t\t\t\t\t\t\tclose();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\terrorMessages.setValue(\"Tasks/project dates mismatch(check task/project dates).\");\n\t\t\t\t\t\t\t\t\terrorMessages.setVisible(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tclose();\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t\n\t\t\t}\n });\n\t\t\n\t\tcancel.addClickListener(new ClickListener() \n {\n\t\t\t@Override\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) \n\t\t\t{\n\t\t\t\terrorMessages.setVisible(false);\n\t\t\t\t close();\n\t\t\t\t\n\t\t\t}\n });\n\t}", "@Override\n public void actionPerformed(ActionEvent ae) {\n\n JButton boton = (JButton) ae.getSource();\n\n if (boton.equals(prNuevo.jButton1)) {\n if (prNuevo.jTextField1.getText().isEmpty()) //linea de validacion de campos nulos\n {\n JOptionPane.showMessageDialog(null, \"FALTA INGRESAR EL NOMBRE DEL PROVEEDOR\", \"Advertencia\", JOptionPane.WARNING_MESSAGE);\n prNuevo.jTextField1.requestFocus();\n } else if (prNuevo.jTextField2.getText().isEmpty()) {\n JOptionPane.showMessageDialog(null, \"FALTA INGRESAR EL TELEFONO DEL PROVEEDOR\", \"Advertencia\", JOptionPane.WARNING_MESSAGE);\n prNuevo.jTextField2.requestFocus();\n } else if (prNuevo.jTextField3.getText().isEmpty()) {\n JOptionPane.showMessageDialog(null, \"FALTA INGRESAR LA DIRECCION DEL PROVEEDOR\", \"Advertencia\", JOptionPane.WARNING_MESSAGE);\n prNuevo.jTextField3.requestFocus();\n } else {\n try {\n res = modelo.Conexion.Consulta(\"Select COUNT(nombre_proveedores)from proveedores where nombre_proveedores='\" + prNuevo.jTextField1.getText() + \"'\");\n try {\n while (res.next()) {\n cont = res.getInt(1);\n }\n } catch (SQLException e) {\n }\n if (cont >= 1) {// lineas de validacion de dato existente en base de datos\n JOptionPane.showMessageDialog(null, \"ESTE ELEMENTO YA EXISTE\", \"Informacion\", JOptionPane.INFORMATION_MESSAGE);\n prNuevo.jTextField1.setText(\"\");\n prNuevo.jTextField2.setText(\"\");\n prNuevo.jTextField3.setText(\"\");\n prNuevo.jTextField4.setText(\"\");\n prNuevo.jTextField1.requestFocus();\n prNuevo.jTextField2.requestFocus();\n prNuevo.jTextField3.requestFocus();\n prNuevo.jTextField4.requestFocus();\n } else {\n Procedimientos.EntradaProveedores(prNuevo.jTextField1.getText(), prNuevo.jTextField2.getText(), prNuevo.jTextField3.getText());\n prNuevo.jTextField1.setText(\"\");\n prNuevo.jTextField2.setText(\"\");\n prNuevo.jTextField3.setText(\"\");\n prNuevo.jTextField4.setText(\"\");\n prNuevo.jTextField1.requestFocus();\n prNuevo.jTextField2.requestFocus();\n prNuevo.jTextField3.requestFocus();\n prNuevo.jTextField4.requestFocus();\n JOptionPane.showMessageDialog(null, \"LOS DATOS HAN SIDO GUARDADOS CORRECTAMENTE\");\n prNuevo.CargarProveedores();\n prNuevo.dispose();\n }\n } catch (SQLException e) {\n }\n }\n }\n\n }", "abstract void botonEditar_actionPerformed(ActionEvent e);", "private void repositoryCheckButtonActionPerformed() {\n checkRepositoryMismatch = true;\n CopyToASpaceButtonActionPerformed();\n }", "public void crearManoObra(ActionEvent actionEvent) {\r\n manoobraDao manobraDao = new manoobraDaoImpl();\r\n String msg;\r\n this.manoobra.setNombreManob(this.manoobra.getNombreManob());\r\n this.manoobra.setCostojrhManob(this.manoobra.getCostojrhManob());\r\n \r\n if (manobraDao.crearManoObra(this.manoobra)) {\r\n msg = \"Mano de Obra creada correctamente\";\r\n FacesMessage message1 = new FacesMessage(FacesMessage.SEVERITY_INFO,msg , null);\r\n FacesContext.getCurrentInstance().addMessage(null, message1);\r\n } else {\r\n msg = \"No se creo la Mano de Obra\";\r\n FacesMessage message2 = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, null);\r\n FacesContext.getCurrentInstance().addMessage(null, message2);\r\n }\r\n \r\n }", "@SuppressWarnings(\"null\")\n private void btn_CrearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_CrearActionPerformed\n // TODO add your handling code here:\n if (tf_ID.getText().equals(\"\") || tf_Descuento.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"No se puede insertar una clave vacia\", \"ERROR\", JOptionPane.ERROR_MESSAGE);\n } else {\n Statement s = null;\n try {\n s = conexion.createStatement();\n } catch (SQLException se) {\n System.out.println(\"probando conexion de consulta\");\n }\n\n try {\n s.executeUpdate(\"INSERT INTO public.cupon (id_cupon, descuento) VALUES ('\" + tf_ID.getText() + \"', '\" + tf_Descuento.getText() + \"')\");\n JOptionPane.showMessageDialog(null, \"Se ha insertado correctamente\", \"Exito\", JOptionPane.INFORMATION_MESSAGE);\n //INCLUIR MODIFICAR LOS CUPONES ASOCIADOS AL SOCIO\n confirmacion(\"¿Deseas añadir mas cupones?\", \"Insertar Socio\");\n } catch (SQLException se) {\n JOptionPane.showMessageDialog(null, se.getMessage(), \"ERROR\", JOptionPane.ERROR_MESSAGE);\n tf_Descuento.setText(\"\");\n tf_ID.setText(\"\");\n }\n }\n }", "public void actionPerformed(ActionEvent e) {\r\n\t\tif (verifier()){\r\n\t\t\tvue.ajouterJoueur();\r\n\t\t\tJOptionPane.showMessageDialog(vue,\"Joueur ajouté !\");\r\n\t\t}\r\n\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n // Generated using JFormDesigner Evaluation license - Mariano Rajoy\r\n private void initComponents() {\r\n modificar = new JButton();\r\n borrar = new JButton();\r\n privilegiat = new JButton();\r\n relacions = new JButton();\r\n sortir = new JButton();\r\n back = new JButton();\r\n save = new JButton();\r\n resposta = new JLabel();\r\n\r\n //======== this ========\r\n setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n Container contentPane = getContentPane();\r\n\r\n //---- modificar ----\r\n modificar.setText(\"Modificar l'usuari\");\r\n modificar.addActionListener(e -> modificarActionPerformed(e));\r\n\r\n //---- borrar ----\r\n borrar.setText(\"Esborrar l'usuari\");\r\n borrar.addActionListener(e -> borrarActionPerformed(e));\r\n\r\n //---- privilegiat ----\r\n privilegiat.setText(\"Gesti\\u00f3 privilegiat\");\r\n privilegiat.addActionListener(e -> privilegiatActionPerformed(e));\r\n\r\n //---- relacions ----\r\n relacions.setText(\"Gesti\\u00f3 de relacions\");\r\n relacions.addActionListener(e -> relacionsActionPerformed(e));\r\n\r\n //---- sortir ----\r\n sortir.setText(\"Sortir\");\r\n sortir.addActionListener(e -> sortirActionPerformed(e));\r\n\r\n //---- back ----\r\n back.setText(\"Enrere\");\r\n back.addActionListener(e -> backActionPerformed(e));\r\n\r\n //---- save ----\r\n save.setText(\"Desar canvis\");\r\n save.addActionListener(e -> saveActionPerformed(e));\r\n\r\n GroupLayout contentPaneLayout = new GroupLayout(contentPane);\r\n contentPane.setLayout(contentPaneLayout);\r\n contentPaneLayout.setHorizontalGroup(\r\n contentPaneLayout.createParallelGroup()\r\n .addGroup(contentPaneLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(back)\r\n .addGap(58, 58, 58)\r\n .addGroup(contentPaneLayout.createParallelGroup()\r\n .addGroup(contentPaneLayout.createSequentialGroup()\r\n .addComponent(relacions)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 99, Short.MAX_VALUE)\r\n .addComponent(sortir))\r\n .addGroup(contentPaneLayout.createSequentialGroup()\r\n .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.LEADING, false)\r\n .addComponent(borrar, GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE)\r\n .addComponent(modificar, GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE)\r\n .addComponent(save, GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE)\r\n .addComponent(privilegiat, GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE))\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(resposta, GroupLayout.DEFAULT_SIZE, 141, Short.MAX_VALUE)\r\n .addContainerGap())))\r\n );\r\n contentPaneLayout.setVerticalGroup(\r\n contentPaneLayout.createParallelGroup()\r\n .addGroup(contentPaneLayout.createSequentialGroup()\r\n .addGroup(contentPaneLayout.createParallelGroup()\r\n .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n .addComponent(sortir)\r\n .addComponent(back))\r\n .addGroup(contentPaneLayout.createSequentialGroup()\r\n .addGap(29, 29, 29)\r\n .addComponent(relacions)))\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(modificar)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)\r\n .addComponent(borrar)\r\n .addComponent(resposta))\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(save)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(privilegiat)\r\n .addContainerGap(123, Short.MAX_VALUE))\r\n );\r\n pack();\r\n setLocationRelativeTo(getOwner());\r\n }", "public static void mostrarErrorDeCreacion(JDialog dialogo) {\n JOptionPane.showMessageDialog(dialogo, errorDeCreacion, \"BancoSoft: Error\", JOptionPane.ERROR_MESSAGE);\n }", "protected void do_btnModificar_actionPerformed(ActionEvent e) {\t\n\t\n\t\tint intIdSistemaEspecificoSeleccionado = (Integer)idSistemaEspecificoSeleccionado;\n\t\t//Asi solo funciona si se ha seleccionado una fila\t\t\t\n\t\tif ( intIdSistemaEspecificoSeleccionado> 0){\n\t\t\tboolean bl1 = listUniqueIdVerModificarSistemaEspecifico.add(intIdSistemaEspecificoSeleccionado);\t\n\t\t\tif (bl1){\n\t\t\t\t//Se le pasa el cbFabricante, para que al actualizar la tabla desde miModificarXXX, lo haga desde el comboBox que el usuario a escogido\n\t\t\t\tModificarSistemaEspecifico miModificarSistemaEspecifico = new ModificarSistemaEspecifico(objetoSistemaEspecifico, miVerModificarController, miConsultaController,miIdSistemaEspecifico,cbFabricante, cbModelo, cbSerie, listUniqueIdVerModificarSistemaEspecifico );\n\t\t\t\tmiVerModificarController.getActualizarElemento().addPropertyChangeListener(PROP_ACTUALIZAR_SISTEMA_ESPECIFICO, miModificarSistemaEspecifico);\n\t\t\t\tidSistemaEspecificoSeleccionado =0;\n\t\t\t}\n\t\t}\n\t}", "private void fixModButtonListener() {\n\t\tmodButton.addActionListener(new ActionListener() {\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tVehiculo vehiculo = null;\n\t\t\t\t\t\tboolean correct = true;\n\t\t\t\t\t\tString messageError = \"\";\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!camposVacios() && camposNumCorrectos()){\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(tipoBox.getSelectedIndex() != 0){\n\t\t\t\t\t\t\t\tint auxAnio = Integer.parseInt(anioText.getText());\n\t\t\t\t\t\t\t\tint anioActual = Calendar.getInstance().get(Calendar.YEAR);\n\t\t\t\t\t\t\t\tif(1950 <= auxAnio && auxAnio <= anioActual){\n\t\t\t\t\t\t\t\t\tvehiculo = new Vehiculo(\n\t\t\t\t\t\t\t\t\tvehiculoSelected.getMatricula(), \n\t\t\t\t\t\t\t\t\tauxAnio, \n\t\t\t\t\t\t\t\t\tmarcaText.getText().trim(), \n\t\t\t\t\t\t\t\t\tmodeloText.getText().trim(),\n\t\t\t\t\t\t\t\t\t((String)estadoBox.getSelectedItem()),\n\t\t\t\t\t\t\t\t\titvText.getText().trim(),\n\t\t\t\t\t\t\t\t\t((String)tipoBox.getSelectedItem()),\n\t\t\t\t\t\t\t\t\tcorrect\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\tcorrect = false;\n\t\t\t\t\t\t\t\t\tmessageError = \"La antigüedad del vehículo debe estar comprendida entre 1950 y \" + anioActual + \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tcorrect = false;\n\t\t\t\t\t\t\t\tmessageError = \"Por favor, seleccione un tipo de vehículo.\";\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tcorrect = false;\n\t\t\t\t\t\t\tmessageError = \"Por favor, revise los campos, no deben estar vacíos y deben ser números donde corresponda.\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(correct){\n\t\t\t\t\t\t\tif(confirmar(\"Modificar\", \"modificar\") == YES)\n\t\t\t\t\t\t\t\tcontrolador.modificarVehiculo(vehiculo);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tshowError(\"Error\", messageError);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t}", "private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "@Then ( \"^The labor and delivery report is not updated successfully$\" )\n public void unsuccessfulEdit () {\n // confirm that the error message is displayed\n waitForAngular();\n try {\n final String temp = driver.findElement( By.name( \"errorMsg\" ) ).getText();\n if ( temp.equals( \"\" ) ) {\n fail();\n }\n }\n catch ( final Exception e ) {\n }\n }", "private void mostrarMensagemDeErro(String informacao) {\n\t\tJOptionPane.showMessageDialog(null, informacao, \"Aten��o\",\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n labelIDsaladereserva = new javax.swing.JLabel();\n labelFechadereserva = new javax.swing.JLabel();\n labelIDhorariodereserva = new javax.swing.JLabel();\n textIDreserva = new javax.swing.JTextField();\n textIDEstadodelareserva = new javax.swing.JTextField();\n textFechareserva = new javax.swing.JTextField();\n buttoncancelar = new javax.swing.JButton();\n buttonGuardar = new javax.swing.JButton();\n labelIDdereserva = new javax.swing.JLabel();\n textIDsaladereserva = new javax.swing.JTextField();\n labelIDclient = new javax.swing.JLabel();\n textIDcliente = new javax.swing.JTextField();\n labelIDestadodereserva = new javax.swing.JLabel();\n textIDhorariodereserva = new javax.swing.JTextField();\n\n setBackground(new java.awt.Color(153, 153, 153));\n setClosable(true);\n setIconifiable(true);\n setTitle(\"RESERVA \");\n addInternalFrameListener(new javax.swing.event.InternalFrameListener() {\n public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {\n formInternalFrameClosing(evt);\n }\n public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {\n }\n });\n\n labelIDsaladereserva.setText(\"ID sala de reserva\");\n\n labelFechadereserva.setText(\"Fecha de reserva\");\n\n labelIDhorariodereserva.setText(\"ID de horario de reserva\");\n\n textIDreserva.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n textIDreservaActionPerformed(evt);\n }\n });\n\n textIDEstadodelareserva.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n textIDEstadodelareservaActionPerformed(evt);\n }\n });\n\n textFechareserva.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n textFechareservaActionPerformed(evt);\n }\n });\n\n buttoncancelar.setText(\"Cancelar\");\n buttoncancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buttoncancelarActionPerformed(evt);\n }\n });\n\n buttonGuardar.setText(\"Guardar \");\n\n labelIDdereserva.setText(\"ID Reserva\");\n\n textIDsaladereserva.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n textIDsaladereservaActionPerformed(evt);\n }\n });\n\n labelIDclient.setText(\"ID Cliente\");\n\n textIDcliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n textIDclienteActionPerformed(evt);\n }\n });\n\n labelIDestadodereserva.setText(\"ID Estado de la reserva\");\n\n textIDhorariodereserva.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n textIDhorariodereservaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(82, 82, 82)\n .addComponent(buttoncancelar)\n .addGap(33, 33, 33)\n .addComponent(buttonGuardar))\n .addGroup(layout.createSequentialGroup()\n .addGap(66, 66, 66)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(labelFechadereserva)\n .addComponent(labelIDclient, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(labelIDsaladereserva)\n .addComponent(labelIDdereserva, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(labelIDestadodereserva, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(labelIDhorariodereserva, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(textIDhorariodereserva, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(textIDreserva, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)\n .addComponent(textIDEstadodelareserva, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(textFechareserva)\n .addComponent(textIDcliente)\n .addComponent(textIDsaladereserva)))))\n .addGap(147, 147, 147))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(textIDreserva, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(labelIDdereserva, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(4, 4, 4)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(textIDsaladereserva, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(labelIDsaladereserva, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(11, 11, 11)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(textIDcliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(labelIDclient, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(labelFechadereserva, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(textFechareserva, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(labelIDhorariodereserva, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(textIDhorariodereserva, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(labelIDestadodereserva, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(textIDEstadodelareserva, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(buttoncancelar)\n .addComponent(buttonGuardar))\n .addGap(37, 37, 37))\n );\n\n pack();\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getActionCommand().equals(\"Agregar\")){\r\n\t\t\tboolean validacion =camposPrecios();\r\n\t\t\t\r\n\t\t\tif(validacion==true){\r\n\t\t\t\tagregarJTable();\r\n\t\t\t\tvc.habilitarBotones();\r\n\t\t\t\tvc.cantidadProductos();\r\n\t\t\t\tthis.vc.total();\r\n\t\t\t\tthis.vc.tipoPago();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else if(e.getActionCommand().equals(\"Eliminar Producto\")){\r\n\t\t\tvc.eliminacionFila();\r\n\t\t\tvc.cantidadProductos();\r\n\t\t\tthis.vc.total();\r\n\t\t\r\n\t\t}else if(e.getActionCommand().equals(\"Eliminar Todo\")){\r\n\t\t\tvc.borrarJtable(\"todo\");\r\n\t\t\tvc.cantidadProductos();\r\n\t\t\tthis.vc.total();\r\n\t\t}else if(e.getActionCommand().equals(\"Guardar\")){\r\n\t\t\tagregarCompra();\r\n\t\t\tvc.dispose();\r\n\t\t}\r\n\t}", "private void cnpjFarmaciaEntradaActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public static void mostrarErrorDeConsulta(JDialog dialogo) {\n JOptionPane.showMessageDialog(dialogo, errorDeConsulta, \"BancoSoft: Error\", JOptionPane.ERROR_MESSAGE);\n }", "public void actionPerformed(ActionEvent e) {\n int reply = JOptionPane.showConfirmDialog(null, \"Esta operación cerrará todos los procesos del sistema de mensajería\\n\"\n + \" ¿Está seguro que desea salir?\\n\", \"Salir\", JOptionPane.YES_NO_OPTION);\n if (reply == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n lblTitulo = new javax.swing.JLabel();\n lblUActual = new javax.swing.JLabel();\n tfRespuesta = new javax.swing.JTextField();\n lblUnuevo = new javax.swing.JLabel();\n tfRespuesta1 = new javax.swing.JTextField();\n lblUConfirmar = new javax.swing.JLabel();\n tfRespuesta2 = new javax.swing.JTextField();\n bValidar = new javax.swing.JButton();\n Bback = new javax.swing.JButton();\n Blogin = new javax.swing.JButton();\n lblAlert = new javax.swing.JLabel();\n lblMensaje = new javax.swing.JLabel();\n lblFondo = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n lblTitulo.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n lblTitulo.setForeground(new java.awt.Color(255, 255, 255));\n lblTitulo.setText(\"Cambio UserName\");\n\n lblUActual.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n lblUActual.setForeground(new java.awt.Color(255, 255, 255));\n lblUActual.setText(\"Usename Actual\");\n lblUActual.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n lblUnuevo.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n lblUnuevo.setForeground(new java.awt.Color(255, 255, 255));\n lblUnuevo.setText(\"Nuevo UserName\");\n lblUnuevo.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n lblUConfirmar.setFont(new java.awt.Font(\"Arial\", 1, 14)); // NOI18N\n lblUConfirmar.setForeground(new java.awt.Color(255, 255, 255));\n lblUConfirmar.setText(\"Confirme UserName\");\n lblUConfirmar.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n bValidar.setBackground(new java.awt.Color(0, 0, 0));\n bValidar.setFont(new java.awt.Font(\"Bell MT\", 1, 18)); // NOI18N\n bValidar.setForeground(new java.awt.Color(255, 255, 255));\n bValidar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/Inicio de sesion.png\"))); // NOI18N\n bValidar.setText(\"Validar\");\n bValidar.setBorderPainted(false);\n bValidar.setContentAreaFilled(false);\n bValidar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n bValidar.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/Inicio de sesion.png\"))); // NOI18N\n bValidar.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n bValidar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n bValidar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n bValidarMouseClicked(evt);\n }\n });\n bValidar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bValidarActionPerformed(evt);\n }\n });\n\n Bback.setBackground(new java.awt.Color(0, 0, 0));\n Bback.setFont(new java.awt.Font(\"Bell MT\", 1, 18)); // NOI18N\n Bback.setForeground(new java.awt.Color(255, 255, 255));\n Bback.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/salida.png\"))); // NOI18N\n Bback.setText(\"Volver\");\n Bback.setBorderPainted(false);\n Bback.setContentAreaFilled(false);\n Bback.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n Bback.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/salida (1).png\"))); // NOI18N\n Bback.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n Bback.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n Bback.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n BbackMouseClicked(evt);\n }\n });\n Bback.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BbackActionPerformed(evt);\n }\n });\n\n Blogin.setBackground(new java.awt.Color(0, 0, 0));\n Blogin.setFont(new java.awt.Font(\"Bell MT\", 1, 18)); // NOI18N\n Blogin.setForeground(new java.awt.Color(255, 255, 255));\n Blogin.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/iniciar-sesion.png\"))); // NOI18N\n Blogin.setText(\"login\");\n Blogin.setBorderPainted(false);\n Blogin.setContentAreaFilled(false);\n Blogin.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n Blogin.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/iniciar-sesionSelected.png\"))); // NOI18N\n Blogin.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n Blogin.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n Blogin.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n BloginMouseClicked(evt);\n }\n });\n Blogin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BloginActionPerformed(evt);\n }\n });\n\n lblAlert.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n lblAlert.setForeground(new java.awt.Color(0, 255, 255));\n lblAlert.setText(\"ZONA DE MENSAJES\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(172, 172, 172)\n .addComponent(lblTitulo)\n .addContainerGap(211, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(Bback)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblMensaje, javax.swing.GroupLayout.PREFERRED_SIZE, 307, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(lblAlert)\n .addGap(45, 45, 45)))\n .addGap(71, 71, 71)\n .addComponent(Blogin)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(85, 85, 85)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(lblUActual, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblUnuevo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblUConfirmar, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(tfRespuesta2, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tfRespuesta)\n .addComponent(tfRespuesta1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(123, 123, 123))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(bValidar)\n .addGap(244, 244, 244))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(lblFondo, javax.swing.GroupLayout.PREFERRED_SIZE, 604, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(lblTitulo)\n .addGap(66, 66, 66)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(tfRespuesta, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblUActual, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(lblUnuevo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(tfRespuesta1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(lblUConfirmar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(tfRespuesta2, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bValidar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(lblAlert)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lblMensaje, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(Bback, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(Blogin, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap())\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(lblFondo, javax.swing.GroupLayout.PREFERRED_SIZE, 493, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Panel = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n TxtNombres = new javax.swing.JTextField();\n TxtApellidos = new javax.swing.JTextField();\n BtnCerrar = new javax.swing.JButton();\n TxtUsuario = new javax.swing.JTextField();\n TxtClave = new javax.swing.JTextField();\n TxtCedula = new javax.swing.JTextField();\n TipoMiembroComboBox = new javax.swing.JComboBox<>();\n btnGuardar = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n Panel.setBackground(new java.awt.Color(0, 42, 104));\n Panel.setToolTipText(\"Modificar Miembros\");\n\n jLabel3.setFont(new java.awt.Font(\"Roboto\", 0, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(216, 161, 60));\n jLabel3.setText(\"Apellidos\");\n\n jLabel4.setFont(new java.awt.Font(\"Roboto\", 0, 18)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(216, 161, 60));\n jLabel4.setText(\"Usuario\");\n\n jLabel5.setFont(new java.awt.Font(\"Roboto\", 0, 18)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(216, 161, 60));\n jLabel5.setText(\"Clave\");\n\n jLabel6.setFont(new java.awt.Font(\"Roboto\", 0, 18)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(216, 161, 60));\n jLabel6.setText(\"Cedula\");\n\n TxtNombres.setBackground(new java.awt.Color(255, 255, 255));\n TxtNombres.setForeground(new java.awt.Color(114, 54, 18));\n\n TxtApellidos.setBackground(new java.awt.Color(255, 255, 255));\n TxtApellidos.setForeground(new java.awt.Color(114, 54, 18));\n TxtApellidos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TxtApellidosActionPerformed(evt);\n }\n });\n\n BtnCerrar.setBackground(new java.awt.Color(216, 161, 60));\n BtnCerrar.setFont(new java.awt.Font(\"Roboto\", 0, 14)); // NOI18N\n BtnCerrar.setForeground(new java.awt.Color(35, 47, 52));\n BtnCerrar.setText(\"CERRAR\");\n BtnCerrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtnCerrarActionPerformed(evt);\n }\n });\n\n TxtUsuario.setBackground(new java.awt.Color(255, 255, 255));\n TxtUsuario.setForeground(new java.awt.Color(114, 54, 18));\n\n TxtClave.setBackground(new java.awt.Color(255, 255, 255));\n TxtClave.setForeground(new java.awt.Color(114, 54, 18));\n TxtClave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TxtClaveActionPerformed(evt);\n }\n });\n\n TxtCedula.setBackground(new java.awt.Color(255, 255, 255));\n TxtCedula.setForeground(new java.awt.Color(114, 54, 18));\n TxtCedula.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TxtCedulaActionPerformed(evt);\n }\n });\n\n TipoMiembroComboBox.setBackground(new java.awt.Color(255, 255, 255));\n TipoMiembroComboBox.setFont(new java.awt.Font(\"Roboto\", 0, 18)); // NOI18N\n TipoMiembroComboBox.setForeground(new java.awt.Color(114, 54, 18));\n TipoMiembroComboBox.setName(\"TipoMiembroComboBox\"); // NOI18N\n TipoMiembroComboBox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TipoMiembroComboBoxActionPerformed(evt);\n }\n });\n\n btnGuardar.setBackground(new java.awt.Color(216, 161, 60));\n btnGuardar.setFont(new java.awt.Font(\"Roboto\", 0, 14)); // NOI18N\n btnGuardar.setForeground(new java.awt.Color(35, 47, 52));\n btnGuardar.setText(\"GUARDAR\");\n btnGuardar.setMaximumSize(new java.awt.Dimension(77, 24));\n btnGuardar.setMinimumSize(new java.awt.Dimension(77, 24));\n btnGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGuardarActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Roboto\", 1, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(216, 161, 60));\n jLabel1.setText(\"Modificar Miembro\");\n\n jLabel2.setFont(new java.awt.Font(\"Roboto\", 0, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(216, 161, 60));\n jLabel2.setText(\"Nombres\");\n\n jLabel7.setFont(new java.awt.Font(\"Roboto\", 0, 18)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(216, 161, 60));\n jLabel7.setText(\"Tipo Miembro\");\n\n javax.swing.GroupLayout PanelLayout = new javax.swing.GroupLayout(Panel);\n Panel.setLayout(PanelLayout);\n PanelLayout.setHorizontalGroup(\n PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelLayout.createSequentialGroup()\n .addGroup(PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelLayout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addGroup(PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(PanelLayout.createSequentialGroup()\n .addComponent(BtnCerrar, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(95, 95, 95)\n .addComponent(btnGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(TxtApellidos, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE)\n .addComponent(TxtNombres)\n .addComponent(TxtUsuario)\n .addComponent(TxtClave)\n .addComponent(TxtCedula))\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(PanelLayout.createSequentialGroup()\n .addGap(100, 100, 100)\n .addComponent(jLabel1)))\n .addGap(0, 30, Short.MAX_VALUE))\n .addGroup(PanelLayout.createSequentialGroup()\n .addGroup(PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelLayout.createSequentialGroup()\n .addGap(47, 47, 47)\n .addComponent(TipoMiembroComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(PanelLayout.createSequentialGroup()\n .addGap(119, 119, 119)\n .addComponent(jLabel7)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n PanelLayout.setVerticalGroup(\n PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PanelLayout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(jLabel2)\n .addGap(20, 20, 20)\n .addComponent(TxtNombres, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(20, 20, 20)\n .addComponent(jLabel3)\n .addGap(20, 20, 20)\n .addComponent(TxtApellidos, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(20, 20, 20)\n .addComponent(jLabel4)\n .addGap(20, 20, 20)\n .addComponent(TxtUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(20, 20, 20)\n .addComponent(jLabel5)\n .addGap(20, 20, 20)\n .addComponent(TxtClave, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE)\n .addComponent(jLabel6)\n .addGap(20, 20, 20)\n .addComponent(TxtCedula, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)\n .addComponent(jLabel7)\n .addGap(18, 18, 18)\n .addComponent(TipoMiembroComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(42, 42, 42)\n .addGroup(PanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BtnCerrar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(50, 50, 50))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public void tomaError( \r\n String error,\r\n InterfaceEdicionDatos<Tipo> editor );", "@Then(\"^Mostrara mensaje de error$\")\n\tpublic void Mostrara_mensaje_de_error() throws Throwable {\n\t System.out.println(\"El email o la contrase�a es erronea\");\n\t assert(true);\n\t}", "@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tRadioButtonDataField grb = (RadioButtonDataField) IMEliminarVehiculo.this.managedForm\r\n\t\t\t\t\t\t\t.getDataFieldReference(\"BAJA_VEHICULO_CONTRATO\");\r\n\t\t\t\t\tif (grb != null) {\r\n\t\t\t\t\t\tif (grb.isSelected()) {\r\n\t\t\t\t\t\t\tint rtn = JOptionPane.showConfirmDialog(IMEliminarVehiculo.this.managedForm,\r\n\t\t\t\t\t\t\t\t\tApplicationManager.getTranslation(\"M_SE_DARA_DE_BAJA_VEHICULO_DE_CONTRATO\"), \"\", JOptionPane.YES_NO_OPTION);\r\n\t\t\t\t\t\t\tif (rtn == JOptionPane.YES_OPTION) {\r\n\t\t\t\t\t\t\t\t//\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\tfinal String cg_contrato = (String) IMEliminarVehiculo.this.managedForm.getDataFieldValue(\"CG_CONTRATO\");\r\n\t\t\t\t\t\t\t\t\tif (cg_contrato == null) {\r\n\t\t\t\t\t\t\t\t\t\tIMEliminarVehiculo.this.managedForm.message(\"M_NO_EXISTE_CONTRATO\", Form.ERROR_MESSAGE);\r\n\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tfinal String matricula = (String) IMEliminarVehiculo.this.managedForm.getDataFieldValue(\"MATRICULA\");\r\n\t\t\t\t\t\t\t\t\tfinal String cif = (String) IMEliminarVehiculo.this.managedForm.getDataFieldValue(\"CIF\");\r\n\t\t\t\t\t\t\t\t\tfinal Entity entidad = IMEliminarVehiculo.this.formManager.getReferenceLocator().getEntityReference(\r\n\t\t\t\t\t\t\t\t\t\t\t\"EVehiculoCont\");\r\n\t\t\t\t\t\t\t\t\tfinal Date d = new Date();\r\n\t\t\t\t\t\t\t\t\tOperationThread infoInforme = new OperationThread(ApplicationManager.getTranslation(\"dando_de_baja_vehiculo\")) {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.hasStarted = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\tHashtable atributosValores = new Hashtable();\r\n\t\t\t\t\t\t\t\t\t\t\t\tHashtable clavesValores = new Hashtable();\r\n\t\t\t\t\t\t\t\t\t\t\t\tclavesValores.put(\"CG_CONTRATO\", cg_contrato);\r\n\t\t\t\t\t\t\t\t\t\t\t\tclavesValores.put(\"MATRICULA\", matricula);\r\n\t\t\t\t\t\t\t\t\t\t\t\tclavesValores.put(\"CIF\", cif);\r\n\t\t\t\t\t\t\t\t\t\t\t\tatributosValores.put(\"F_BAJA\", d);\r\n\t\t\t\t\t\t\t\t\t\t\t\tEntityResult resultado = entidad.update(atributosValores, clavesValores,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIMEliminarVehiculo.this.formManager.getReferenceLocator().getSessionId());\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (resultado.getCode() != EntityResult.OPERATION_SUCCESSFUL) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthrow new Exception();\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\tString msg = ApplicationManager.getTranslation(\"M_BAJA_VEHICULO\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIMEliminarVehiculo.this.formManager.getResourceBundle());\r\n\t\t\t\t\t\t\t\t\t\t\t\tIMEliminarVehiculo.this.managedForm.message(msg, JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\t\t\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tIMEliminarVehiculo.this.managedForm.message(ex.getMessage(), Form.ERROR_MESSAGE);\r\n\t\t\t\t\t\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.hasFinished = true;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\tExtendedApplicationManager.proccessOperation(\r\n\t\t\t\t\t\t\t\t\t\t\t(JDialog) SwingUtilities.getWindowAncestor(IMEliminarVehiculo.this.managedForm), infoInforme, 50);\r\n\t\t\t\t\t\t\t\t\tIMEliminarVehiculo.this.managedForm.getJDialog().setVisible(false);\r\n\t\t\t\t\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t\t\t\t\tIMEliminarVehiculo.this.managedForm.message(\"M_ERROR_BAJA_VEHICULO\", Form.ERROR_MESSAGE);\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tIMEliminarVehiculo.this.managedForm.getJDialog().setVisible(false);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tgrb = (RadioButtonDataField) IMEliminarVehiculo.this.managedForm.getDataFieldReference(\"BORRAR_TODO_VEHICULO\");\r\n\t\t\t\t\tif (grb != null) {\r\n\t\t\t\t\t\tif (grb.isSelected()) {\r\n\t\t\t\t\t\t\t// Entidad entidad = null;\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tfinal String cg_contrato = (String) IMEliminarVehiculo.this.managedForm\r\n\t\t\t\t\t\t\t\t\t\t.getDataFieldValue(OpentachFieldNames.CG_CONTRATO_FIELD);\r\n\t\t\t\t\t\t\t\tif (cg_contrato == null) {\r\n\t\t\t\t\t\t\t\t\tIMEliminarVehiculo.this.managedForm.message(\"M_NO_EXISTE_CONTRATO\", Form.ERROR_MESSAGE);\r\n\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tfinal String matricula = (String) IMEliminarVehiculo.this.managedForm\r\n\t\t\t\t\t\t\t\t\t\t.getDataFieldValue(OpentachFieldNames.MATRICULA_FIELD);\r\n\t\t\t\t\t\t\t\tfinal String cif = (String) IMEliminarVehiculo.this.managedForm.getDataFieldValue(OpentachFieldNames.CIF_FIELD);\r\n\r\n\t\t\t\t\t\t\t\tfinal Entity entidad = buscador.getEntityReference(\"EVehiculosEmp\");\r\n\t\t\t\t\t\t\t\tint rtn = JOptionPane.showConfirmDialog(IMEliminarVehiculo.this.managedForm,\r\n\t\t\t\t\t\t\t\t\t\tApplicationManager.getTranslation(\"M_SE_ELIMINARA_DATOS_VEHICULO\"), \"\", JOptionPane.YES_NO_OPTION);\r\n\t\t\t\t\t\t\t\tif (rtn == JOptionPane.YES_OPTION) {\r\n\t\t\t\t\t\t\t\t\tOperationThread infoInforme = new OperationThread(ApplicationManager.getTranslation(\"Eliminando_vehiculo\")) {\r\n\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.hasStarted = true;\r\n\t\t\t\t\t\t\t\t\t\t\t\tHashtable clavesValores = new Hashtable();\r\n\t\t\t\t\t\t\t\t\t\t\t\tclavesValores.put(OpentachFieldNames.CG_CONTRATO_FIELD, cg_contrato);\r\n\t\t\t\t\t\t\t\t\t\t\t\tclavesValores.put(OpentachFieldNames.MATRICULA_FIELD, matricula);\r\n\t\t\t\t\t\t\t\t\t\t\t\tclavesValores.put(OpentachFieldNames.CIF_FIELD, cif);\r\n\t\t\t\t\t\t\t\t\t\t\t\tEntityResult resultado = entidad.delete(clavesValores, IMEliminarVehiculo.this.formManager\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getReferenceLocator().getSessionId());\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (resultado.getCode() != EntityResult.OPERATION_SUCCESSFUL) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthrow new Exception();\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\tString msg = ApplicationManager.getTranslation(\"M_BORRAR_VEHICULO\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tIMEliminarVehiculo.this.formManager.getResourceBundle());\r\n\t\t\t\t\t\t\t\t\t\t\t\tIMEliminarVehiculo.this.managedForm.message(msg, JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\t\t\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tIMEliminarVehiculo.this.managedForm.message(ex.getMessage(), Form.ERROR_MESSAGE);\r\n\t\t\t\t\t\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\t\t\t\t\t\tthis.hasFinished = true;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\t\t\tExtendedApplicationManager.proccessOperation(\r\n\t\t\t\t\t\t\t\t\t\t\t(JDialog) SwingUtilities.getWindowAncestor(IMEliminarVehiculo.this.managedForm), infoInforme, 50);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tIMEliminarVehiculo.this.managedForm.getJDialog().setVisible(false);\r\n\r\n\t\t\t\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t\t\t\tIMEliminarVehiculo.this.managedForm.message(\"M_ERROR_BORRAR_CONDUCTOR\", Form.ERROR_MESSAGE);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "public void actionPerformed(ActionEvent oEvent) {\n if (oEvent.getActionCommand().equals(\"OK\")) {\n try {\n addFinishedData();\n } catch (ModelException e) {\n ErrorGUI oHandler = new ErrorGUI(this);\n oHandler.writeErrorMessage(e);\n return;\n }\n\n //Close this window\n this.setVisible(false);\n this.dispose();\n }\n else if (oEvent.getActionCommand().equals(\"Cancel\")) {\n //Close this window\n this.setVisible(false);\n this.dispose();\n } \n }", "private void mensajeErrorSinDatos() {\r\n\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\tbuilder.setMessage(R.string.txtErrorSinDatos).setCancelable(false)\r\n\t\t.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n\t\t public void onClick(DialogInterface dialog, int id) {\r\n\t\t\tListaRutasActivity.this.finish();\r\n\t\t }\r\n\t\t});\r\n\tAlertDialog alert = builder.create();\r\n\talert.show();\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n BtnSalir = new javax.swing.JButton();\n btnGuardar = new javax.swing.JButton();\n jLabel14 = new javax.swing.JLabel();\n BtnExaminar = new javax.swing.JButton();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n JTFCelularUsuario = new javax.swing.JTextField();\n JTFTelefonoCasaUsuario = new javax.swing.JTextField();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n JCBEstadoUsuario = new javax.swing.JComboBox();\n JTFNombreUsuario = new javax.swing.JTextField();\n JTFApellidoUsuario = new javax.swing.JTextField();\n JTFCedulaUsuario = new javax.swing.JTextField();\n JTFEmailUsuario = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n JXDNacimientoUsuario = new org.jdesktop.swingx.JXDatePicker();\n jLabel20 = new javax.swing.JLabel();\n\n setClosable(true);\n setIconifiable(true);\n\n BtnSalir.setFont(new java.awt.Font(\"Droid Sans Mono\", 0, 12)); // NOI18N\n BtnSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/guiaturistica/imagenes/cancelar-28x28.png\"))); // NOI18N\n BtnSalir.setText(\"cancelar\");\n BtnSalir.setBorderPainted(false);\n BtnSalir.setRequestFocusEnabled(false);\n BtnSalir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtnSalirActionPerformed(evt);\n }\n });\n\n btnGuardar.setFont(new java.awt.Font(\"Droid Sans Mono\", 0, 12)); // NOI18N\n btnGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/guiaturistica/imagenes/guardar-28x28.png\"))); // NOI18N\n btnGuardar.setText(\"guargar\");\n btnGuardar.setBorderPainted(false);\n btnGuardar.setRequestFocusEnabled(false);\n btnGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnGuardarActionPerformed(evt);\n }\n });\n\n jLabel14.setBackground(new java.awt.Color(0, 204, 255));\n jLabel14.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n BtnExaminar.setFont(new java.awt.Font(\"Droid Sans Mono\", 0, 12)); // NOI18N\n BtnExaminar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/guiaturistica/imagenes/lupa-16x16.png\"))); // NOI18N\n BtnExaminar.setText(\"Examinar\");\n BtnExaminar.setBorderPainted(false);\n BtnExaminar.setRequestFocusEnabled(false);\n BtnExaminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BtnExaminarActionPerformed(evt);\n }\n });\n\n jLabel17.setFont(new java.awt.Font(\"URW Bookman L\", 3, 24)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(0, 102, 255));\n jLabel17.setText(\"REGISTRO DE \");\n\n jLabel18.setFont(new java.awt.Font(\"URW Bookman L\", 3, 24)); // NOI18N\n jLabel18.setForeground(new java.awt.Color(0, 102, 255));\n jLabel18.setText(\"USUARIOS\");\n\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \"Datos Usuario\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 0, 12))); // NOI18N\n\n JTFCelularUsuario.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n\n JTFTelefonoCasaUsuario.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n\n jLabel21.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel21.setText(\"Telefóno célular:\");\n\n jLabel22.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel22.setText(\"Telefóno casa\");\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel21)\n .addComponent(jLabel22))\n .addGap(35, 35, 35)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(JTFCelularUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, 198, Short.MAX_VALUE)\n .addComponent(JTFTelefonoCasaUsuario))\n .addContainerGap(32, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(JTFCelularUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel21))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(JTFTelefonoCasaUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel22))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jLabel19.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/guiaturistica/imagenes/engranajes.png\"))); // NOI18N\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), \"Datos generales\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 0, 12))); // NOI18N\n jPanel2.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 10)); // NOI18N\n\n JCBEstadoUsuario.setFont(new java.awt.Font(\"DejaVu Sans Mono\", 0, 12)); // NOI18N\n JCBEstadoUsuario.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Activo\", \"Inactivo\" }));\n JCBEstadoUsuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n JCBEstadoUsuarioActionPerformed(evt);\n }\n });\n\n JTFNombreUsuario.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n JTFNombreUsuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n JTFNombreUsuarioActionPerformed(evt);\n }\n });\n\n JTFApellidoUsuario.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n JTFApellidoUsuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n JTFApellidoUsuarioActionPerformed(evt);\n }\n });\n\n JTFCedulaUsuario.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n JTFCedulaUsuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n JTFCedulaUsuarioActionPerformed(evt);\n }\n });\n\n JTFEmailUsuario.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.LOWERED));\n JTFEmailUsuario.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n JTFEmailUsuarioActionPerformed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel3.setText(\"Nombre:\");\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel5.setText(\"Apellido:\");\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel6.setText(\"Cédula:\");\n\n jLabel15.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel15.setText(\"E-mail:\");\n\n jLabel16.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel16.setText(\"Fecha Nacimiento:\");\n\n jLabel20.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n jLabel20.setText(\"Estado:\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel20)\n .addGap(107, 107, 107)\n .addComponent(JCBEstadoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel16)\n .addGap(35, 35, 35)\n .addComponent(JXDNacimientoUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel15))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(JTFNombreUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, 183, Short.MAX_VALUE)\n .addComponent(JTFApellidoUsuario)\n .addComponent(JTFCedulaUsuario))\n .addComponent(JTFEmailUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(35, 35, 35))))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(JTFNombreUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(JTFApellidoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addGap(6, 6, 6)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(JTFCedulaUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(JTFEmailUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel15))\n .addGap(8, 8, 8)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16)\n .addComponent(JXDNacimientoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(JCBEstadoUsuario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel20))\n .addContainerGap(18, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(BtnExaminar))\n .addGap(18, 18, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel17)\n .addGroup(layout.createSequentialGroup()\n .addGap(109, 109, 109)\n .addComponent(jLabel18)))\n .addGap(76, 76, 76)\n .addComponent(jLabel19)))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnGuardar)\n .addGap(26, 26, 26)\n .addComponent(BtnSalir))\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(15, 15, 15)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel17)\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(jLabel18))\n .addComponent(jLabel19))\n .addGap(18, 18, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(BtnExaminar, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(39, 39, 39)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BtnSalir)\n .addComponent(btnGuardar))\n .addGap(20, 20, 20))\n );\n\n pack();\n }", "public void validarUploadForm(ActionEvent evt) {\n\t\ttry {\n\t\t\tif(facturarInteresForm == null){\n\t\t\t\tthis.addError(\"Error : \", \"Se necesitar cargar un archivo.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tthis.mantenimientoCCCFacturarInteresAction.validar();\n\t\t\tfacturarInteresForm = (MantenimientoCCCFacturarInteresForm) this.mantenimientoCCCFacturarInteresAction.getFormProceso();\n\t\t\t\n\t\t\tthis.totalRegistrosConError = facturarInteresForm.getNumRegistrosError();\n\t\t\tthis.totalRegistrosValidos = facturarInteresForm.getNumRegistrosValidos();\n\t\t\tthis.mostrarBotonGuardar = true;\n\t\t\t\n\t\t\tif(Integer.parseInt(this.totalRegistrosConError) > 0){\n\t\t\t\tthis.mostrarBotonGuardarBoton = false;\n\t\t\t}else{\n\t\t\t\tthis.mostrarBotonGuardarBoton = true;\n\t\t\t}\n\t\t\t\n\t\t\tthis.mantenimientoCCCFacturarInteresErrorListAux = this.mantenimientoCCCFacturarInteresAction.getMantenimientoCCCFacturarInteresErrorList();\n\n\t\t} catch (Exception e) {\n\t\t\tthis.addError(\"Error : \", this.obtieneMensajeErrorException(e));\n\t\t}\n\t}", "private void setErrorMessage() {\n messageLabel.setText(NbBundle.getMessage(JavaFXPlatformCustomizer.class, \"Customizer_Invalid_Platform_Msg\")); // NOI18N\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t// TODO Auto-generated method stub\n\t\tswitch (e.getActionCommand()) {\n\t\tcase ACTION_COMMAND_REGISTRARSE:\n\t\t\tif (!(txtnombreequipo.getText().equals(\"\"))) {\n\t\t\t\ttry {\n\t\t\t\t\tgestor.anadirEquipo(txtnombreequipo.getText(), dateChooser.getDate());\n\t\t\t\t} catch (clsExcepcionEquipoRepetido exv) {\n\t\t\t\t\tJOptionPane.showMessageDialog(this, exv.getMessage());\n\t\t\t\t}\n\n\t\t\t\ttxtnombreequipo.setText(\"\");\n\n\t\t\t\tJOptionPane.showMessageDialog(this, \"El usuario es el DNI\");\n\n\t\t\t\tthis.dispose();\n\t\t\t\tsetModal(true);\n\n\t\t\t\t/**\n\t\t\t\t * Sirve para que no puedas usar la ventana anterior\n\t\t\t\t */\n\t\t\t} else {\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Debes rellenar todos los campos\");\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t}", "public boolean validarForm() throws Exception {\r\n\r\n\t\ttbxIdentificacion\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxTipo_disnostico\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\r\n\t\tString mensaje = \"Los campos marcados con (*) son obligatorios\";\r\n\r\n\t\tboolean valida = true;\r\n\r\n\t\tif (tbxIdentificacion.getText().trim().equals(\"\")) {\r\n\t\t\ttbxIdentificacion\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (lbxTipo_disnostico.getSelectedIndex() == 0) {\r\n\t\t\tlbxTipo_disnostico\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!lbxFinalidad_cons.getSelectedItem().getValue().toString()\r\n\t\t\t\t.equalsIgnoreCase(\"10\")\r\n\t\t\t\t&& lbxCodigo_consulta_pyp.getSelectedIndex() == 0) {\r\n\t\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (tbxTipo_principal.getText().trim().equals(\"\")) {\r\n\t\t\tmensaje = \"Debe digitar la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t} else if (vaidarIgualdad(tbxTipo_principal.getText(),\r\n\t\t\t\ttbxTipo_relacionado_1.getText(),\r\n\t\t\t\ttbxTipo_relacionado_2.getText(),\r\n\t\t\t\ttbxTipo_relacionado_3.getText())) {\r\n\t\t\tmensaje = \"no se puede repetir la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!valida) {\r\n\t\t\tMessagebox.show(mensaje,\r\n\t\t\t\t\tusuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n\t\t\t\t\tMessagebox.EXCLAMATION);\r\n\t\t}\r\n\r\n\t\treturn valida;\r\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif (arg0.getSource()==ventana1.panelborrarcliente.btnAtrasBorrarTicket) {\n\t\t\tfunciones.cambiarDePanel(ventana1.panelborrarcliente, ventana1.panelmenuprincipal);\n\t\t\tresetar();\n\t\t\t\n\t\t}\n\t\tif (arg0.getSource()==ventana1.panelborrarcliente.btnBorrarBorrarCliente) {\n\t\t\tint prueba=modelo1.modeloborrarcliente.botonborrarcliente(ventana1.panelborrarcliente.formattedDniBorrarCliente,ventana1.panelborrarcliente.passwordContrase˝a,modelo1.cliente);\n\t\t\tif(prueba==1) {\n\t\t\t\tfunciones.cambiarDePanel(ventana1.panelborrarcliente, ventana1.panelmenuprincipal);\n\t\t\t\tresetar();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t//Lo pongo a la escucha, y cuando llamo al constructor, quiero que me\n\t\t\t//cree un marco, creado previamente creada la CLASE\n\t\t\tMarco_Emergente marco= new Marco_Emergente(boton_cerrar);\n\t\t\tmarco.setVisible(true);\n\t\t}", "public void insertar() {\r\n if (vista.jTNombreempresa.getText().equals(\"\") || vista.jTTelefono.getText().equals(\"\") || vista.jTRFC.getText().equals(\"\") || vista.jTDireccion.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan Datos: No puedes dejar cuadros en blanco\");//C.P.M Verificamos si las casillas esta vacia si es asi lo notificamos\r\n } else {//C.P.M de lo contrario prosegimos\r\n modelo.setNombre(vista.jTNombreempresa.getText());//C.P.M mandamos las variabes al modelo \r\n modelo.setDireccion(vista.jTDireccion.getText());\r\n modelo.setRfc(vista.jTRFC.getText());\r\n modelo.setTelefono(vista.jTTelefono.getText());\r\n \r\n Error = modelo.insertar();//C.P.M Ejecutamos el metodo del modelo \r\n if (Error.equals(\"\")) {//C.P.M Si el modelo no regresa un error es que todo salio bien\r\n JOptionPane.showMessageDialog(null, \"Se guardo exitosamente la configuracion\");//C.P.M notificamos a el usuario\r\n vista.dispose();//C.P.M y cerramos la vista\r\n } else {//C.P.M de lo contrario \r\n JOptionPane.showMessageDialog(null, Error);//C.P.M notificamos a el usuario el error\r\n }\r\n }\r\n }", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "@Override\n public void ActionSiguiente(ActionEvent e) {\n if(ce.EliminarLeccion(leccion, materia))\n JOptionPane.showMessageDialog(this,Util.MENSAJE_LECCION_BORRADA, Util.DIALOG_TITULO_MENSAJE, JOptionPane.INFORMATION_MESSAGE);\n else\n JOptionPane.showMessageDialog(this,Util.ERROR_OPERACION_FALLIDA, Util.DIALOG_TITULO_MENSAJE, JOptionPane.INFORMATION_MESSAGE);\n \n ActionSalir(e);\n }", "private void agregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_agregarActionPerformed\n boolean salida = true;\n Palabra p; \n p = new Palabra(campo1.getText());\n boolean continua = p.estaBien();\n if (continua) {\n agregarDiccionario(p);\n salida = pregunta();\n setVisible(true);\n }else {\n JOptionPane.showMessageDialog(null,\"#- Palabra mal escrita intente de nuevo -#\");\n }\n \n if (!salida) {\n JOptionPane.showMessageDialog(null,\"Gracias por usar el Corrector Ortográfico\");\n dic.guardarDiccionario();\n dispose(); //setVisible(false);\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel2 = new javax.swing.JLabel();\n tIdlanche = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n tNome = new javax.swing.JTextField();\n jLabel9 = new javax.swing.JLabel();\n btnSalva = new javax.swing.JButton();\n btnCancela = new javax.swing.JButton();\n tPreco = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel2.setText(\"Código\");\n\n tIdlanche.setEditable(false);\n tIdlanche.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n tIdlanche.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tIdlancheActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel1.setText(\"Nome\");\n\n tNome.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n tNome.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tNomeActionPerformed(evt);\n }\n });\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel9.setText(\"Preço\");\n\n btnSalva.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n btnSalva.setText(\"Salvar\");\n btnSalva.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSalvaActionPerformed(evt);\n }\n });\n\n btnCancela.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n btnCancela.setText(\"Sair\");\n btnCancela.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelaActionPerformed(evt);\n }\n });\n\n tPreco.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n tPreco.setToolTipText(\"Insira o valor com casas decimais\");\n tPreco.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n tPrecoActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tNome)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tIdlanche, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(tPreco, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))))\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnSalva, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnCancela, javax.swing.GroupLayout.PREFERRED_SIZE, 195, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(tIdlanche, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(tNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel9)\n .addComponent(tPreco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(19, 19, 19)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnSalva, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btnCancela, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n\n pack();\n }", "@Action\n public void fecharTela()\n {\n try\n {\n float valor = sv.nfMoeda.parse( ftfEncaminhado.getText() ).floatValue();\n if ( valor < 0 )\n {\n JOptionPane.showMessageDialog( sv.getComponent(), \"O valor encaminhado não pode ser negativo. Tente novamente.\", \"Resultados\", JOptionPane.WARNING_MESSAGE );\n ftfEncaminhado.setText( \"\" );\n ftfEncaminhado.grabFocus();\n }\n else\n {\n bOk.grabFocus();\n jornada.setEncaminhamento( valor );\n bd.realizarEncaminhamento( valor );\n }\n }\n catch ( ParseException ex )\n {\n JOptionPane.showMessageDialog( sv.getComponent(), \"Valor informado inválido. Tente novamente.\", \"Resultados\", JOptionPane.WARNING_MESSAGE );\n Logger.getLogger( TelaResultadoJornada.class.getName() ).log( Level.SEVERE, null, ex );\n }\n catch ( SQLException e )\n {\n JOptionPane.showMessageDialog( sv.getComponent(), \"Erro ao escrever valor encaminhado no banco de dados. Informe ao responsável.\", \"Resultados\", JOptionPane.WARNING_MESSAGE );\n }\n\n // Rotina de fechamento:\n int resposta = JOptionPane.showConfirmDialog( painelPrincipal,\n \"Confirma o encaminhameto de \" + ftfEncaminhado.getText() + \" para a matriz?\",\n \"Resultados\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE );\n\n if ( resposta == JOptionPane.YES_OPTION )\n {\n resposta = JOptionPane.showConfirmDialog( painelPrincipal,\n \"Os dados de quantidade e valor vendido de cada produto foram anotados?\",\n \"Resultados\",\n JOptionPane.YES_NO_OPTION,\n JOptionPane.QUESTION_MESSAGE );\n\n if ( resposta == JOptionPane.YES_OPTION )\n {\n try\n {\n bd.setEncaminhamento( jornada );\n float novoCaixa = jornada.getCaixaFinal() - jornada.getEncaminhamento();\n sv.sugerirCaixaInicial( novoCaixa );\n dispose();\n }\n catch ( SQLException ex )\n {\n JOptionPane.showMessageDialog( painelPrincipal,\n \"Erro ao gravar valor encaminhado no banco de dados. Informe o responsável.\",\n \"Resultados\",\n JOptionPane.WARNING_MESSAGE);\n Logger.getLogger( TelaResultadoJornada.class.getName() ).log( Level.SEVERE, null, ex );\n } \n }\n }\n }", "abstract void botonEnviar_actionPerformed(ActionEvent e);", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tString nombre=JOptionPane.showInputDialog(\"Digite el nuevo Nombre:\");\r\n\t\t\t\tint edad=Integer.parseInt(JOptionPane.showInputDialog(\"Digite el nuevo Edad:\"));\r\n\t\t\t\tString direccion=JOptionPane.showInputDialog(\"Digite el nuevo Direccion:\");\r\n\t\t\t\tString seccion=JOptionPane.showInputDialog(\"Digite el nuevo Seccion:\");\r\n\t\t\t\t\r\n\t\t\t\tBaseConeccion diegoConexion = new BaseConeccion();\r\n\t\t\t\tConnection pruebaCn=diegoConexion.getConexion();\r\n\t\t\t\tStatement s;\r\n\t\t\t\tint rs;\r\n\t\t\t\t\r\n\t\t\t\tString requisito=null;\r\n\t\t\t\tint num1=table_1.getSelectedColumn();\r\n\t\t\t\tint num2=table_1.getSelectedRow();\r\n\t\t\t\t\r\n\t\t\t\trequisito=\"update alumno set nombre='\"+nombre+\"', edad=\"+edad+\", direccion='\"+direccion+\"', seccion='\"+seccion+\"' where codigo='\"+table_1.getValueAt(num1, num2)+\"'\";\r\n\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\ts=(Statement)pruebaCn.createStatement();\r\n\t\t\t\t\trs=s.executeUpdate(requisito);\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Alumno Modificado de la Base de Datos\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}catch(SQLException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblDescricao = new javax.swing.JLabel();\n txtDescricao = new javax.swing.JTextField();\n btnAtivar = new javax.swing.JButton();\n lblResultado = new javax.swing.JLabel();\n lblValor = new javax.swing.JLabel();\n txtId = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n btnAbrir = new javax.swing.JButton();\n\n setClosable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Teste\");\n setToolTipText(\"\");\n\n lblDescricao.setText(\"Escreva Aqui:\");\n\n btnAtivar.setText(\"Ativar\");\n btnAtivar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAtivarActionPerformed(evt);\n }\n });\n\n lblResultado.setText(\"Resultado:\");\n\n lblValor.setText(\" \");\n\n txtId.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtIdActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Código:\");\n\n btnAbrir.setText(\"Abrir\");\n btnAbrir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAbrirActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblDescricao)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(lblResultado)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblValor, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(txtId, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtDescricao, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(btnAtivar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnAbrir, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addContainerGap(87, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblDescricao)\n .addComponent(txtDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAtivar))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1)\n .addComponent(btnAbrir))\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblResultado)\n .addComponent(lblValor, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(145, Short.MAX_VALUE))\n );\n\n pack();\n }" ]
[ "0.696223", "0.6659851", "0.6638756", "0.6569956", "0.65046155", "0.6435047", "0.6369183", "0.6366841", "0.63481677", "0.6340824", "0.63194907", "0.627995", "0.6242143", "0.6208002", "0.61755115", "0.6156271", "0.6126778", "0.6116038", "0.6077673", "0.6063746", "0.604709", "0.6040327", "0.6038273", "0.60327864", "0.60314935", "0.6020151", "0.5989846", "0.59841454", "0.5971886", "0.5970491", "0.5970156", "0.5945762", "0.593682", "0.593057", "0.5926033", "0.59194046", "0.59075284", "0.588917", "0.58561844", "0.5842209", "0.58298385", "0.58064014", "0.5803786", "0.57985944", "0.5798245", "0.5796945", "0.57947433", "0.57946366", "0.57932675", "0.57910395", "0.5790242", "0.57725537", "0.576734", "0.57600546", "0.57600546", "0.5758331", "0.5752898", "0.57511365", "0.5740558", "0.57354975", "0.5723921", "0.5720081", "0.57160205", "0.5708012", "0.5695777", "0.56923294", "0.56894815", "0.5687014", "0.56807816", "0.5674504", "0.5670215", "0.567018", "0.56586707", "0.5655559", "0.56534946", "0.5652167", "0.5644498", "0.5643824", "0.5640782", "0.5634863", "0.56316316", "0.563063", "0.56304896", "0.56274515", "0.5626197", "0.56223094", "0.56203496", "0.5604802", "0.56029516", "0.5601091", "0.5600734", "0.5600336", "0.5599088", "0.5598524", "0.55979943", "0.5589451", "0.5589298", "0.5583885", "0.5583755", "0.5578627" ]
0.66059434
3
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_list_urls, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7249201", "0.7204109", "0.7197405", "0.71792436", "0.7109801", "0.7041446", "0.7040234", "0.70145714", "0.7011273", "0.6983118", "0.6946729", "0.6940447", "0.6936383", "0.6920103", "0.6920103", "0.6893587", "0.6885479", "0.6877562", "0.6877041", "0.6864375", "0.6864375", "0.6864375", "0.6864375", "0.6854553", "0.6848997", "0.68213886", "0.6819509", "0.6814738", "0.68146676", "0.68146676", "0.6807654", "0.6802825", "0.679964", "0.67930657", "0.67922", "0.67903394", "0.6786084", "0.6761232", "0.6759505", "0.67503023", "0.6746139", "0.6746139", "0.6743613", "0.6743027", "0.6727706", "0.67254", "0.67245597", "0.67245597", "0.6723394", "0.67136675", "0.67081934", "0.6706639", "0.67022187", "0.6700513", "0.66984093", "0.66964614", "0.66886663", "0.6685854", "0.6685854", "0.6685123", "0.66817266", "0.66811055", "0.6679423", "0.66700786", "0.66692066", "0.66648287", "0.6659215", "0.6659215", "0.6659215", "0.665847", "0.6656809", "0.6656809", "0.6656809", "0.66543585", "0.6653763", "0.6652573", "0.6650882", "0.66493136", "0.66489655", "0.6648397", "0.6648281", "0.664721", "0.6647127", "0.6645251", "0.66444296", "0.6644408", "0.66408044", "0.66365176", "0.6635421", "0.6634293", "0.6634293", "0.6634293", "0.66340095", "0.66314715", "0.6629901", "0.6628624", "0.662851", "0.66264814", "0.6622667", "0.6621362", "0.6621362" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.restaurar) { new ListaSorteiosTask(this).execute(); } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79052806", "0.7806316", "0.7767438", "0.772778", "0.76324606", "0.7622031", "0.758556", "0.7531728", "0.7489057", "0.74576724", "0.74576724", "0.743964", "0.7422121", "0.74037784", "0.73926556", "0.7387903", "0.73803806", "0.73715395", "0.7362778", "0.7357048", "0.7346653", "0.73422706", "0.7331221", "0.7329421", "0.7326524", "0.73197514", "0.73175013", "0.7314632", "0.7305193", "0.7305193", "0.73030055", "0.72992206", "0.7294402", "0.7287853", "0.7284157", "0.72821075", "0.72797185", "0.7260893", "0.7260893", "0.7260893", "0.7260798", "0.72604334", "0.7250995", "0.72243106", "0.72205526", "0.7217967", "0.72052115", "0.72008896", "0.7200226", "0.71938485", "0.7186533", "0.7178549", "0.71698415", "0.7168567", "0.7154602", "0.7154338", "0.71365875", "0.71357495", "0.71357495", "0.71302795", "0.7129606", "0.7125107", "0.7124433", "0.71243066", "0.7122874", "0.7118138", "0.71181303", "0.71180034", "0.71180034", "0.71180034", "0.71180034", "0.7117241", "0.71159554", "0.7113099", "0.7110779", "0.71097904", "0.71062744", "0.710078", "0.7099281", "0.70957214", "0.7094494", "0.7094494", "0.7087356", "0.70834076", "0.7081747", "0.70809853", "0.70746684", "0.70691484", "0.70627403", "0.70616937", "0.7060999", "0.7052165", "0.70382303", "0.70382303", "0.7036847", "0.7036218", "0.7036218", "0.70333946", "0.7031289", "0.7030542", "0.70198953" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean deleteProductData(int id) { return dao.deleteProductData(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean addProduct(Products productInfoBean) { return dao.addProduct(productInfoBean); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean updateRecord(Products productInfoBean) { return dao.updateRecord(productInfoBean); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Products> getAllProduct() { return dao.getAllProduct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Created by MrLiu on 2017/12/26.
public interface IStudyFragmentView { void listSuccess(List<StudyList.DataBean> beanList); void listFail(String message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n void init() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private void kk12() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n public void init() {}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void getExras() {\n }", "public void mo4359a() {\n }", "private void m50366E() {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void init() {}", "@Override\n protected void init() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n public void memoria() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void initialize() { \n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private void init() {\n\n\n\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo6081a() {\n }", "private Rekenhulp()\n\t{\n\t}", "public void mo55254a() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n public void init() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}" ]
[ "0.59736484", "0.5899775", "0.57395744", "0.57383895", "0.56666446", "0.56666446", "0.564459", "0.5619413", "0.5609207", "0.5608743", "0.56052387", "0.55634785", "0.55417126", "0.5541367", "0.5541046", "0.55273193", "0.5511979", "0.55103475", "0.55087185", "0.55066204", "0.5501869", "0.54931533", "0.5489385", "0.5489385", "0.5489385", "0.5489385", "0.5489385", "0.5478473", "0.5466368", "0.54636246", "0.54615873", "0.54595566", "0.5446549", "0.54138386", "0.54138386", "0.5410924", "0.5409739", "0.5409739", "0.5409739", "0.5409739", "0.5409739", "0.5409739", "0.5409641", "0.54072297", "0.5402591", "0.5402591", "0.5402591", "0.5386155", "0.53857374", "0.53857374", "0.53828746", "0.53828746", "0.53828746", "0.5382207", "0.5380502", "0.5374727", "0.5374097", "0.5370425", "0.5366778", "0.5366778", "0.5366778", "0.53652394", "0.53495294", "0.5347794", "0.5346975", "0.5345616", "0.5345616", "0.5334465", "0.5330211", "0.5330211", "0.5330211", "0.5330211", "0.5330211", "0.5330211", "0.5330211", "0.53100055", "0.53075707", "0.5306055", "0.5293099", "0.528959", "0.52871877", "0.52827257", "0.5278325", "0.52761084", "0.5274746", "0.52672553", "0.526685", "0.52666396", "0.52640045", "0.5260662", "0.52535295", "0.52451843", "0.52259964", "0.5215667", "0.52047145", "0.51911163", "0.5183156", "0.5179412", "0.51771516", "0.51706207", "0.51706207" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(DialogInterface dialog, int which, boolean isChecked) { if (isChecked) { Toast.makeText(MainActivity.this, item[which], Toast.LENGTH_SHORT).show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Function Interface represents a function which takes in one argument and produces a result. This functional interface takes in 2 generics, namely: T: denotes the type of the input argument R: denotes the return type of the function The lambda expression assigned to an object of Function type is used to define it's apply() which eventually applies the given function on the argument. example of apply()
public static void main(String[] args) { Function<Integer, Double> half = a -> a / 2.0; System.out.println(half.apply(10)); //example of andThen() half = half.andThen(a -> 3 * a); System.out.println(half.apply(10)); //example of compose() //This returns a composed function wherein the parameterized function //will be executed first and the nthe first one. If evaluation of either //function throws an error, it is relayed to the caller of the composed function }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Function<T, R> {\n\n /**\n * Applies this function to the given argument.\n *\n * @param t the function argument\n * @return the function result\n */\n R apply(T t);\n}", "public interface Function<IN, OUT> {\n\n /**\n * Compute the result of applying the function to the input argument\n *\n * @param in the input object\n * @return the function result\n */\n OUT apply( IN in );\n\n}", "@FunctionalInterface\npublic interface MyFunc {\n\n public String getValue(String str);\n}", "@FunctionalInterface\n public interface Function<T>\n {\n /**\n * Return calculated memoizable value.\n *\n * @param args the functions arguments.\n * @return the value generated by function.\n */\n T call( @Nonnull final Object... args );\n }", "public interface Function1<A,B> {\n\tB apply(A a);\n}", "public interface IntFunc {\n int apply(int input);\n}", "@FunctionalInterface\npublic interface Func<In, Out> extends Function<In, Out>{\n\n\tdefault Out apply(In in) {\n\t\treturn tryApply(in).get();\n\t}\n\n\tOut checkedApply(In in) throws Exception;\n\n\tdefault int arity(){\n\t\treturn 1;\n\t}\n\n\t@Override\n\tdefault <Last> Func<In, Last> andThen(Function<? super Out, ? extends Last> other) {\n\t\treturn in -> other.apply(apply(in));\n\t}\n\n\t@Override\n\tdefault <First> Func<First, Out> compose(Function<? super First, ? extends In> other) {\n\t\treturn first -> apply(other.apply(first));\n\t}\n\n\tdefault Try<Out> tryApply(In in) {\n\t\treturn Try.of(() -> checkedApply(in));\n\t}\n\n\n\tstatic <Out> Func0<Out> lift(Func0<Out> func) {\n\t\treturn func;\n\t}\n\n\tstatic <In, Out> Func1<In, Out> lift(Func1<In, Out> func) {\n\t\treturn func;\n\t}\n\n\tstatic <In1, In2, Out> Func2<In1, In2, Out> lift(Func2<In1, In2, Out> func) {\n\t\treturn func;\n\t}\n\n\tstatic <In1, In2, In3, Out> Func3<In1, In2, In3, Out> lift(Func3<In1, In2, In3, Out> func) {\n\t\treturn func;\n\t}\n\n\tstatic <In1, In2, In3, In4, Out> Func4<In1, In2, In3, In4, Out> lift(Func4<In1, In2, In3, In4, Out> func) {\n\t\treturn func;\n\t}\n\n\tstatic <In1, In2, In3, In4, In5, Out> Func5<In1, In2, In3, In4, In5, Out> lift(Func5<In1, In2, In3, In4, In5, Out> func) {\n\t\treturn func;\n\t}\n\n\tstatic <In> Consumer1<In> lift(Consumer1<In> func) {\n\t\treturn func;\n\t}\n\n\tstatic <In1, In2> Consumer2<In1, In2> lift(Consumer2<In1, In2> func) {\n\t\treturn func;\n\t}\n}", "public interface Func<T, R> {\n R call(T t);\n}", "public interface Function<T, U> {\n static <X,Y,Z> Function<Y,Z> partialA(X i, Function<X,Function<Y,Z>> l) {\n return l.apply(i);\n }\n\n static <X,Y,Z> Function<X,Z> partialB(Y i, Function<X,Function<Y,Z>> l) {\n return x->l.apply(x).apply(i);\n }\n\n static <X,Y,Z> Function<X,Function<Y,Z>> curry(Function<Tuple<X,Y>,Z> l) {\n return x->y->l.apply(new Tuple<X,Y>(x,y));\n }\n\n static <X,Y,Z> Function<Tuple<X,Y>,Z> unCurry(Function<X,Function<Y,Z>> l) {\n return x->l.apply(x._1).apply(x._2);\n }\n\n static <X,Y,Z> Function<X,Function<Y,Z>> reverseParameter(Function<Y,Function<X,Z>> l) {\n return x->y->l.apply(y).apply(x);\n }\n\n static <U> Function<U,U> composeAll(List<Function<U,U>> list) {\n return list.foldLeft(Function.<U>identity(),x->y->Function.compose(x,y));\n }\n\n U apply(T arg);\n\n\t/**\n\t * It directly return a function which is trivial. It just return whatever input.\n\t * @param <T>\n\t * @return\n\t */\n\tstatic <T> Function<T, T> identity() {\n\t\treturn t -> t;\n\t}\n\n\t/**\n\t * Should be able to higherCompose two function into one function\n\t * @return\n\t */\n\tstatic <X, Y, Z> Function<Function<X, Y>,\n Function<Function<Y, Z>,\n Function<X, Z>>> higherAndThen() {\n return x -> y -> z -> y.apply(x.apply(z));\n }\n\n /**\n * It is similar to {@link #higherCompose}\n * @return\n */\n static <X, Y, Z> Function<Function<Y, Z>,\n Function<Function<X, Y>,\n Function<X, Z>>> higherCompose() {\n return x -> y -> z -> x.apply(y.apply(z));\n }\n\n static <X, Y, Z> Function<X, Z> composeAndThen(Function<X,Y> f1, Function<Y,Z> f2){\n return Function.<X,Y,Z>higherAndThen().apply(f1).apply(f2);\n }\n\n static <X, Y, Z> Function<X, Z> compose(Function<Y,Z> f1, Function<X,Y> f2){\n return Function.<X,Y,Z>higherCompose().apply(f1).apply(f2);\n }\n\n\n}", "@FunctionalInterface\n private interface TwoParameterFunction<T, U, R> {\n R apply(T t, U u);\n }", "@FunctionalInterface\npublic interface PentaFunction<T, U, V, W, X, R> {\n\tR apply(T t, U u, V v, W w, X x);\n}", "public interface Lambda<T> {\n\n\t\t/** Apply the lambda.\n\t\t *\n\t\t * @param object - the object on whic hthe lambda must be applied.\n\t\t */\n\t\tvoid apply(T object);\n\n\t}", "public interface Function {\n double f(double x);\n}", "public interface Function {\n double f(double x);\n}", "@FunctionalInterface\npublic interface BiIntFunction {\n int apply(int var1, int var2);\n}", "public interface Function2<T, U, R> {\n R apply(T t, U u);\n\n /**\n * Method to create composition: after(this(x, y)).\n *\n * @param after function to apply after.\n * @param <V> return type of after.\n * @return composition of functions.\n */\n default <V> Function2<T, U, V> compose(Function1<? super R, ? extends V> after) {\n return (t, u) -> after.apply(this.apply(t, u));\n }\n\n /**\n * Method to bind 1st parameter of function.\n *\n * @param firstParameter value of 1st argument to bind.\n * @return function from 1 arguments that waits for the second argument.\n */\n default Function1<U, R> bind1(T firstParameter) {\n return (u) -> apply(firstParameter, u);\n }\n\n /**\n * Method to bind 2nd parameter of function.\n *\n * @param secondParameter value of 2nd argument to bind.\n * @return function from 1 arguments that waits for the first argument.\n */\n default Function1<T, R> bind2(U secondParameter) {\n return (t) -> apply(t, secondParameter);\n }\n\n /**\n * Method to curry function, second parameter will be bind.\n *\n * @param parameter parameter to set.\n * @return function from 1 argument(1st argument of Function2).\n */\n default Function1<T, R> curry(U parameter) {\n return bind2(parameter);\n }\n}", "public void implementFunctionalInterface2() {\n\t\tSystem.out.println(\"\\n\\n************Implement Functional Interfaces - 2**********\");\n\t\t// Functional Interface Implementations:\n\t\tMathOperation addition = (int a, int b) -> a + b;\n\t\t// without type declaration - Type is optional in lambda expression\n\t\tMathOperation subtraction = (a, b) -> a - b;\n\t\t// Curly braces are mandatory when you use the return statement\n\t\tMathOperation multiplication = (int a, int b) -> {\n\t\t\treturn a * b;\n\t\t};\n\t\tMathOperation division = (a, b) -> a / b;\n\n\t\t// Method Calls:\n\t\tSystem.out.println(\"10 + 5 = \" + addition.operation(10, 5));\n\t\tSystem.out.println(\"10 - 5 = \" + subtraction.operation(10, 5));\n\t\tSystem.out.println(\"10 x 5 = \" + multiplication.operation(10, 5));\n\t\tSystem.out.println(\"10 / 5 = \" + division.operation(10, 5));\n\t}", "public interface IFunction {\n\n @Nonnull\n String name();\n\n String process(@Nonnull final Map<String, String> args, @Nonnull final Context context);\n\n public boolean isApplicable(@Nonnull final String functionName,\n @Nonnull final Set<String> keys,\n @Nonnull final Collection<String> values,\n @Nonnull final String raw);\n}", "@FunctionalInterface\npublic interface BiFunction<I1,I2,O,E extends Exception> {\n\n\tpublic O apply(I1 first, I2 second) throws E;\n\n}", "public interface Function2<T, U, K> {\n\n /**\n * This method is a composition of two functions:\n * it acts as g(f(x, y))) where f is the Function2 class object\n * and g is a Function1 class object.\n * @param g one-argument function,\n * the outer function of the composition\n * @param <V> outer function range type parameter\n * @return function of one argument that represents g(f(x, y))\n */\n default <V> Function2<T, U, V> compose(@NotNull final Function1<? super K, ? extends V> g) {\n return (t, u) -> g.apply(Function2.this.apply(t, u));\n }\n\n /**\n * This method binds the first argument with a provided value.\n * @param newFirstArgument argument to be bound\n * @return new function object with a bound first argument\n */\n default Function1<U, K> bind1(T newFirstArgument) {\n return u -> Function2.this.apply(newFirstArgument, u);\n }\n\n /**\n * This method binds the second argument with a provided value.\n * @param newSecondArgument argument to be bound\n * @return new function object with a bound second argument\n */\n default Function1<T, K> bind2(U newSecondArgument) {\n return t -> Function2.this.apply(t, newSecondArgument);\n }\n\n /**\n * This method implements currying:\n * instead of a two-argument function we get\n * two one-argument functions.\n * @return function g such that g(x)(y) == f.apply(x, y)\n */\n default Function1<T, Function1<U, K>> curry() {\n return this::bind1;\n }\n\n /**\n * This method applies the function to provided arguments.\n * @param arg1 first argument\n * @param arg2 second argument\n * @return result of function application\n */\n K apply(T arg1, U arg2);\n}", "public interface BinaryFunction<T1, T2, R> {\n\n\t/**\n\t * Invoke the function.\n\t * @param arg1 The first argument.\n\t * @param arg2 The second argument.\n\t * @return The result of the function.\n\t */\n\tpublic R invoke(T1 arg1, T2 arg2);\n\t\n}", "public interface Function2<X1,X2,Y> {\n\tY apply(X1 x1, X2 x2);\n}", "public interface Function {\n /**\n * Get the name of this function.\n *\n * @return The name of the function.\n */\n String getName();\n\n /**\n * Execute this function.\n */\n void execute();\n}", "public interface Func<T> {\n\t\tvoid accept(T a) throws Throwable;\n\t}", "@FunctionalInterface\npublic interface FuncInterface<T> {\n T m(T t);\n //重新定义Object中的toString方法\n String toString();\n}", "@FunctionalInterface\npublic interface ToFloatFunction<T> {\n\n /**\n * Applies this function to the given argument.\n *\n * @param value the function argument\n * @return the function result\n */\n float applyAsFloat(T value);\n\n}", "public void implementFunctionalInterface1() {\n\t\tSystem.out.println(\"\\n\\n************Implement Functional Interfaces - 1**********\");\n\t\tMyFunctionalInterface lambda = () -> System.out.println(\"Executing...\");\n\t\tlambda.execute();\n\t}", "@FunctionalInterface\n private interface Consumer<T> {\n void accept(T t);\n }", "@FunctionalInterface\ninterface Payment{\n\tvoid pay(int amount);\n}", "@FunctionalInterface\npublic interface MyFunctionalInterface {\n\n // abstract method\n int addMethod(int val1, int val2);\n\n}", "public interface TriFunction<Arg1, Arg2, Arg3, Result> {\n Result apply(Arg1 arg1, Arg2 arg2, Arg3 arg3);\n}", "public interface FunctionEvaluator {\n\t/*\n\t * Evaluate the given function if possible. Otherwise should return null.\n\t */\n\tpublic MathObject evaluate(Function input);\n}", "@FunctionalInterface\npublic interface Functional_Interface {\n\t\n\tpublic void printMessage(String message);\n\t\n\tdefault void printDefaultMessage(String defaultMessage)\n\t{\n\t\tSystem.out.println(\"This is default message\"+\" \"+defaultMessage);\n\t}\n\t\n\tstatic void printStaticMessage(String staticMessage)\n\t{\n\t\tSystem.out.println(\"This is static message\"+\" \"+staticMessage);\n\t}\n\t\n\n}", "private interface TriFunction<T1,T2,T3,R>\n {\n public R apply(T1 v1, T2 v2, T3 v3);\n }", "public interface Predicate<I> extends Function<I,Boolean> {}", "@FunctionalInterface\ninterface ConverterInterface<F, T> {\n T convert(F from);\n}", "interface MyFunctionalInterface {\n\tpublic void execute();\n\n\tpublic default void print(String text) {\n\t\tSystem.out.println(text);\n\t}\n\n\tpublic static void print(String text, PrintWriter writer) throws IOException {\n\t\twriter.write(text);\n\t}\n}", "@FunctionalInterface\npublic interface Func0<Out> extends Func<Void, Out>, Supplier<Out>, Try.CheckedSupplier<Out> {\n\n\tdefault int arity(){\n\t\treturn 0;\n\t}\n\n\tdefault Out get() {\n\t\treturn apply();\n\t}\n\n\t@Override\n\tdefault <Last> Func0<Last> andThen(Function<? super Out, ? extends Last> other) {\n\t\treturn () -> other.apply(apply());\n\t}\n\n\tOut checkedApply() throws Exception;\n\n\tdefault Out checkedApply(Void v) throws Exception {\n\t\treturn checkedApply();\n\t}\n\n\tdefault Out apply() {\n\t\treturn tryApply().get();\n\t}\n\n\tdefault Out apply(Void v) {\n\t\treturn apply();\n\t}\n\n\tdefault Try<Out> tryApply() {\n\t\treturn Try.of(this);\n\t}\n\n\tdefault Try<Out> tryApply(Void v) {\n\t\treturn tryApply();\n\t}\n\n\tstatic <Out> Func0<Out> lift(Func0<Out> func) {\n\t\treturn func;\n\t}\n}", "@FunctionalInterface\ninterface Functional {\n String goodbye(String arg);\n}", "public static void main(String[] args) {\n\n Function<String, String> function1 = (string) -> string +string;\n System.out.println(function1.apply(\"aaa\"));\n\n Function<String,String> function2 =s -> new String(s);\n System.out.println(function2.apply(function2.apply(\"sss\")));\n\n// Function<String, Emp> function = s -> new Emp(s);\n// System.out.println(function.apply(\"yy\"));\n\n Function<String, Emp> function3 = Emp::new;\n System.out.println(function3.apply(\"yy\"));\n }", "@FunctionalInterface\npublic interface Convert<S,T> {\n T convert(S arg);\n}", "public interface TransformFunc<FROM, TO>\r\n{\r\n TO transform(FROM source);\r\n}", "interface MyFirstVoidFunctionalInterface {\n\n public void methodOne();\n\n}", "@FunctionalInterface\n interface NonnullFunction<T, R> {\n\n /**\n * Applies this function to the given argument.\n *\n * @param t the function argument\n * @return the function result\n */\n @Nonnull\n R apply(@Nonnull T t);\n }", "@FunctionalInterface\npublic interface TriFunction<T, U, V, R> {\n /**\n * Invokes the function with the specified arguments and returns the result.\n * \n * @param input1 the first argument\n * @param input2 the second argument\n * @param input3 the third argument\n * @return the function's result\n */\n R apply(T input1, U input2, V input3);\n\n /**\n * Returns a composed function that first applies this function to its input, and then applies\n * the {@code after} function to the result. If evaluation of either function throws an\n * exception, it is relayed to the caller of the composed function.\n *\n * @param <W> the type of output of the {@code after} function, and of the composed function\n * @param after the function to apply after this function is applied\n * @return a composed function that first applies this function and then applies the\n * {@code after} function\n * @throws NullPointerException if after is null\n */\n default <W> TriFunction<T, U, V, W> andThen(Function<? super R, ? extends W> after) {\n Objects.requireNonNull(after);\n return (T t, U u, V v) -> after.apply(apply(t, u, v));\n }\n}", "@SuppressWarnings(\"WeakerAccess\")\n@FunctionalInterface\npublic interface TriFunction<T, U, V, R> {\n /**\n * Applies this function to the given arguments.\n *\n * @param t the first function argument\n * @param u the second function argument\n * @param v the third function argument\n * @return the function result\n */\n R apply(T t, U u, V v);\n}", "void apply(FnIntFloatToFloat lambda);", "@FunctionalInterface\npublic interface FISample {\n\n void toLowerCase(String v);\n\n default String toUpperCase(String value) {\n return value.toUpperCase();\n }\n}", "public interface IFunctions {\n\t/**\n\t * Interprets the function.\n\t * @param commandDict: command dictionary for current workspace.\n\t * @param varDict: variable dictionary for current workspace.\n\t * @return value that the function evaluates to.\n\t * @throws ClassNotFoundException\n\t */\n\tdouble interpret(CommandDictionary commandDict, VariableDictionary varDict) throws ClassNotFoundException;\n\n\t/**\n\t * Gets the children of the function.\n\t * @return list of children.\n\t */\n\tList<IFunctions> getChildren();\n\n\t/**\n\t * Returns a string representation of the function.\n\t * @return string representation of the function.\n\t */\n\tString toString();\n}", "public interface BooleanFunction<T> extends Function<T, Boolean> {\r\n\r\n}", "@FunctionalInterface\ninterface FuncInterface {\n\n\tabstract void printName(String name);\n\n\tdefault void printCity(String city) {\n\t\tSystem.out.println(city);\n\t}\n\n\tstatic void printAge(int age) {\n\t\tSystem.out.println(age);\n\t}\n}", "static <T, R> Function<T, R> function(Function<T, R> function) {\n return function;\n }", "public static void main(String[] args) {\n\t\tFunction<Integer, Integer> f = (x) -> x+20;\r\n\t\tSystem.out.println(f.apply(20));\r\n\t\tFunction<Integer, Double> f1 = (x) -> x+20.0;\r\n\t\tSystem.out.println(f1.apply(20));\r\n\t\tFunction<String, Integer> f2 = (str) -> str.length();\r\n\t\tSystem.out.println(f2.apply(\"Aditya Mukherjee\"));\r\n\t\r\n\t\r\n//\t Function Chaining\r\n\t\tFunction<Integer, Integer> f3 = (x) -> 2*x;\r\n\t\tFunction<Integer, Integer> f4 = (x) -> x*x*x;\r\n//\t\tAND THEN FUNCTION\r\n\t\tSystem.out.println(\"And Then Output \"+f3.andThen(f4).apply(2));\r\n//\t\tCOMPOSE FUNCTION\r\n\t\tSystem.out.println(\"Compose Output \"+f3.compose(f4).apply(2));\r\n//\tBIFUNCTION\r\n\t\tBiFunction<Integer, Integer, Integer> bf = (x,y) -> x+y;\r\n\t\tSystem.out.println(bf.apply(20, 30));\r\n\t\r\n\t}", "@FunctionalInterface\r\npublic interface Command {\r\n\tpublic void execute();\r\n}", "@FunctionalInterface\n public interface PReturn {\n\n //functional interfaces: one abstract method, as many instance or static methods as you'd like.\n public int returnInt(int x);\n //public abstract int returnInt2(String x);\n\n //new to java 8: default methods (cannot be used with @FunctionalInterfaces\n //public default int returnInt(int x) { return x; }\n\n //new to java 8: static methods now in interfaces\n public static boolean isIReturn(Object obj) { return obj instanceof IReturn; }\n}", "@FunctionalInterface\n public interface State<T> {\n State<T> run(Workflow<T> workflow);\n\n static <T> State<T> from(Function<Workflow<T>, State<T>> function) {\n return function::apply;\n }\n }", "@java.lang.FunctionalInterface()\r\n @jsweet.lang.Erased\r\n public interface CallbackBiConsumer<T1,T2> {\r\n public void $apply(T1 p1, T2 p2);\r\n }", "public static void main(String[] args) {\n Function<String, Integer> func = x -> x.length();\n Integer apply = func.apply(\"hello\");\n System.out.println(apply);\n\n // Function (Take Integer argument and return also an Integer argument multiply by 2)\n Function<Integer, Integer> func2 = x -> x * 2;\n System.out.println(func2.apply(25));\n\n // Use andThen 1. call function func 2. then call function func2\n Integer result = func.andThen(func2).apply(\"hello\");\n System.out.println(result);\n\n Integer y = 2;\n Function<Integer, Integer> nf = x -> x * 4;\n System.out.println(nf.apply(y + 5));\n }", "interface SomeFunc<T>{\n T func(T t);\n}", "@FunctionalInterface\npublic interface MyFunctional01 {\n\tvoid method();\n\t// Error:(7, 1) java: Unexpected @FunctionalInterface annotation\n\t// ru.demi.java_examples.java_8.MyFunctional01 is not a functional interface\n\t// multiple non-overriding abstract methods found in interface ru.demi.java_examples.java_8.MyFunctional01\n\t// void method02();\n}", "static <T> Function<T,SibillaValue> apply(BinaryOperator<SibillaValue> op, Function<T,SibillaValue> f1, Function<T, SibillaValue> f2) {\n return arg -> op.apply(f1.apply(arg), f2.apply(arg));\n }", "public interface FunctionAsync<T, R> {\n public Promise<R> apply(T value) throws Exception;\n}", "public void builtInFunctionalInterfaces() {\n\t\tSystem.out.println(\"\\n\\n************Built In Functional Interfaces**********\");\n\t\tList<String> names = Arrays.asList(\"bob\", \"josh\", \"megan\");\n\n\t\tPredicate<String> predicate = s -> s.length() < 5;\n\t\tSystem.out.println(predicate.test(\"Predicate Test\"));\n\t\t// filter uses predicate functional interface\n\t\tList<String> namesWithM = names.stream().filter(name -> name.startsWith(\"m\")).collect(Collectors.toList());\n\n\t\tConsumer<Integer> consumer = a -> System.out.println(\"Print: \" + (a + 10));\n\t\tconsumer.accept(15);\n\t\t// ForEach uses consumer functional interface\n\t\tnames.forEach(name -> System.out.println(\"Hello, \" + name));\n\n\t\tSupplier<String> supplier = () -> \"Print Supplier\";\n\t\tSystem.out.println(supplier.get());\n\n\t\tFunction<String, Integer> function = (s) -> s.length();\n\t\tSystem.out.println(\"String Length: \" + function.apply(\"Function Test\"));\n\n\t\tBinaryOperator<Integer> binaryOperator = (a, b) -> a + b;\n\t\tSystem.out.println(\"Addition: \" + binaryOperator.apply(8, 9));\n\n\t\tUnaryOperator<String> unaryOperator = s -> s.toUpperCase();\n\t\t// ReplaceAll uses unary operator functional interface\n\t\tnames.replaceAll(unaryOperator); // or names.replaceAll(name -> name.toUpperCase());\n\t\tnames.forEach(i -> System.out.print(i + \" \"));\n\n\t\tRunnable runnable = () -> System.out.println(\"Execute Run Method\");\n\t\trunnable.run();\n\n\t\tComparator<Integer> comparator = (a, b) -> b - a;\n\t\tList<Integer> list = Arrays.asList(5, 3, 7, 2, 4);\n\t\tCollections.sort(list, comparator);\n\t\tlist.forEach(i -> System.out.print(i + \" \"));\n\t}", "public interface HashFunction<T> {\n\t/**\n\t * gets the hash value for the input\n\t * @param input the input to be hashed\n\t * @return the hash value\n\t */\n\tpublic int hash(T input);\n}", "public Function getFunction();", "@FunctionalInterface\npublic interface DogQuerier {\n public boolean test(Dog dog);\n}", "public <O extends FighterOperation> O apply(O operation);", "public interface PartialApplication {\n\n /**\n * Binds the provided argument to the function, and returns a Supplier with that argument applied.\n *\n * bind(f, a) is equivalent to () -> f.apply(a)\n */\n static <I, O> Supplier<O> bind(Function<I, O> f, I input) {\n return () -> f.apply(input);\n }\n\n /**\n * Binds the provided argument to the function, and returns a new Function with that argument already applied.\n *\n * bind(f, a) is equivalent to b -> f.apply(a, b)\n */\n static <A, B, R> Function<B, R> bind(BiFunction<A, B, R> f, A firstParam) {\n return secondParam -> f.apply(firstParam, secondParam);\n }\n\n /**\n * Binds the provided arguments to the function, and returns a new Supplier with those arguments already applied.\n *\n * bind(f, a, b) is equivalent to () -> f.apply(a, b)\n */\n static <A, B, R> Supplier<R> bind(BiFunction<A, B, R> f, A firstParam, B secondParam) {\n return () -> f.apply(firstParam, secondParam);\n }\n\n /**\n * Binds the provided argument to the function, and returns a new BiFunction with that argument already applied.\n *\n * bind(f, a) is equivalent to (b, c) -> f.apply(a, b, c)\n */\n static <A, B, C, R> BiFunction<B, C, R> bind(TriFunction<A, B, C, R> f, A firstParam) {\n return (secondParam, thirdParam) -> f.apply(firstParam, secondParam, thirdParam);\n }\n\n /**\n * Binds the provided arguments to the function, and returns a new Function with those arguments already applied.\n *\n * bind(f, a, b) is equivalent to c -> f.apply(a, b, c)\n */\n static <A, B, C, R> Function<C, R> bind(TriFunction<A, B, C, R> f, A firstParam, B secondParam) {\n return thirdParam -> f.apply(firstParam, secondParam, thirdParam);\n }\n}", "public static void main(String[] args) {\n Foo fooByIC= new Foo() {\n @Override\n public void method(String string) {\n System.out.println(string);\n }\n };\n Foo fooByIc2=new Foo() {\n @Override\n public void method(String string) {\n System.out.println(string+\" \"+string);\n }\n };\n fooByIC.method(\"test\");\n fooByIc2.method(\"test\");\n\n //TODO call testFunctional with fooByIC\n testFunctional(\"test2\",fooByIc2);\n //TODO call testFunctional with a lambda\n testFunctional(\"test3\",s-> System.out.println(s.toUpperCase()+\"lambda\"));\n //TODO call testFunctional with a different lambda\n testFunctional(\"4\",s-> {\n try {\n\n\n Integer number = Integer.parseInt(s);\n System.out.println(number*number);\n }\n catch (NumberFormatException ex)\n {\n System.out.println(\"Not a number\");\n }\n\n });\n testFunctional(2,3,(a,b)->a+b);\n\n\n }", "@SuppressWarnings(\"unchecked\")\n public static <TYPE, RESULT, THOWABLE extends Throwable> Operator<TYPE, RESULT, THOWABLE> of(Function<TYPE, RESULT, THOWABLE> function) {\n return (Operator<TYPE, RESULT, THOWABLE>)(t-> { \n return function.apply(t);\n });\n }", "public interface SerializableFunction2<T1,U,R> extends BiFunction<T1,U,R>, Serializable\n{\n}", "@FunctionalInterface\npublic interface FoldImplementation {\n void main(String[] args);\n}", "@FunctionalInterface\npublic interface ITest {\n\n void test() throws IOException;\n}", "public static <E, F> Iterator<F> apply(Iterator<? extends E> iter, Function<? super E, ? extends F> f) {\r\n \treturn apply(f, iter);\n }", "@FunctionalInterface\npublic interface QuadFunction<P1, P2, P3, P4, R> extends MethodFinder {\n\n R apply(P1 p1, P2 p2, P3 p3, P4 p4);\n\n}", "@FunctionalInterface\r\ninterface SingleMethod { // functional interface cant have more than one abstract method\r\n\tvoid method();\r\n\t\r\n}", "@FunctionalInterface\npublic interface ThrowableFunction3<T1, T2, T3, TResult> {\n\n TResult apply(T1 item1, T2 item2, T3 item3) throws Throwable;\n}", "public interface Functor3<T0,T1,T2,F extends Functor3<?,?,?,F>> {\n <R0,R1,R2> F map(Function<T0,R0> fn0, Function<T1,R1> fn1, Function<T2,R2> fn2);\n <R0,R1,R2> F map(Function<T0,Function<T1, Function<T2, Tuple3<R0,R1,R2>>>> fn);\n}", "public static void main(String[] args) {\n assert(sum((a -> a + 4), 5) == 9); // a is inferred to be an int\n assert(sum((int a) -> a + 5, 9) == 14); //a is explicit\n\n //Some other lambdas with one method interfaces\n Runnable r = () -> System.out.println(\"Run in a separate thread\");\n ActionListener al = (evt) -> evt.getActionCommand();\n\n //Multistatement lambda\n SampleInterface si2 = a -> {\n int total = 3 + 4;\n return total + 19;\n };\n }", "public interface BinaryOperators<T> {\n\n\t/** BinaryOperator<T> extends BiFunction<T,T,T> */\n\tT apply(T t1, T t2);\n\n\t/** DoubleBinaryOperator */\n\tdouble applyAsDouble(double left, double right);\n\n\t/** IntBinaryOperator */\n\tint applyAsInt(int left, int right);\n\n\t/** LongBinaryOperator */\n\tlong applyAsLong(long left, long right);\n\n}", "@FunctionalInterface\npublic interface IntPredicate {\n boolean test(int t);\n}", "public interface FunctionProvider {\n\n <T, R> Function<T, R> get(URI identifier, Class<T> inputType, Class<R> returnType) throws FunctionResolutionException;\n\n <T, R> Function<T, R> get(String identifier, Class<T> inputType, Class<R> returnType) throws FunctionResolutionException;\n}", "public static void main(String[] args) {\n\t\tFunctionInterface<?,Integer> imp = (a,b) -> a+b;\n\t\tSystem.out.println(imp.add(3, 5));\n\t\t//使用系统提供的functional interface\n\t\t//BiFunction<Integer,String,Long> sub = (a,b) -> System.out.println(b + a);\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tFunInterf fi=()->System.out.println(\"Functional Interface\");\r\n\t\tfi.print();\r\n\t\t\r\n\t\tISquare is=i->i*i;\r\n\t\tSystem.out.println(is.square(10));\r\n\t\t\r\n\t\tIMultiply im=(a,b)->a*b;\r\n\t\tSystem.out.println(im.multiply(10,20));\r\n\t\t\r\n\t\t/*** Create Thread using Lamda expression****/\r\n\t\t\r\n\t\tRunnable r=()->{\r\n\t\t\tfor(int i=0;i<10;i++)\r\n\t\t\t\tSystem.out.println(\"Child Thread\");\r\n\t\t};\r\n\t\tnew Thread(r).start();\r\n\t\t\r\n\t\t/*** Sort using Lamda expression****/\r\n\t\t\r\n\t\tList<Integer> lst = new ArrayList<Integer> ();\r\n\t\tlst.add(10);\r\n\t\tlst.add(50);\r\n\t\tlst.add(3);\r\n\t\tComparator <Integer> c=(a,b)->(a<b)?-1:(a>b)?1:0;\r\n\t\tCollections.sort(lst,c);\r\n\t\tSystem.out.println(lst);\r\n\t\t\r\n\t\t/*** Filter even number using Lamda expression****/\r\n\t\tList l2=lst.stream().filter(i->i%2==0).collect(Collectors.toList());\r\n\t\tSystem.out.println(l2);\r\n\t\t\r\n\t\t\r\n\t\r\n\t\t/***Function Interface ****/\r\n\t\t\r\n\t\tFunction<Integer,Integer> f=i->i*i;\r\n\t\tSystem.out.println(\"Using Funtion Interface \"+f.apply(2));\r\n\t\t\r\n\t\t\t\t\r\n\t\t/****Predicate Interface ****/\r\n\t\t\r\n\t\tPredicate<Integer> p=i->i%2==0;\r\n\t\tSystem.out.println(\"Using Perdicate Interface \"+p.test(100));\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t/**** Using Filter method ***/\r\n\t\tList<String> names = Arrays.asList(\"Melisandre\", \"Sansa\", \"Jon\", \"Daenerys\", \"Joffery\");\r\n\r\n\t\tList<String> longnames = names.stream() // converting the list to stream\r\n\t\t\t\t.filter(str -> str.length() > 6) // filter the stream to create\r\n\t\t\t\t.collect(Collectors.toList()); // collect the final stream and convert it to a List\r\n\r\n\t\tSystem.out.println(longnames);\r\n\t\t\r\n\t\t/**** Using Map method ***/\r\n\r\n\t\tList<Integer> num = Arrays.asList(1, 2, 3, 4, 5, 6);\r\n\t\tList<Integer> sqrList = num.stream().map(n -> n * n).collect(Collectors.toList());\r\n\t\tSystem.out.println(sqrList);\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public interface Function7<P1, P2, P3, P4, P5, P6, P7, R> {\n}", "public interface Function<Z, Y> {\n Y _(Z z);\n}", "@FunctionalInterface\n interface NonnullBiFunction<T, U, R> {\n\n /**\n * Applies this function to the given arguments.\n *\n * @param t the first function argument\n * @param u the second function argument\n * @return the function result\n */\n @Nonnull\n R apply(@Nonnull T t, @Nonnull U u);\n }", "public static void main(String[] args) {\n System.out.println(\"##############Returning length of a String using Function Interface##############\");\n Function<String, Integer> function = s -> s.length();\n System.out.println(\"Length of Chetan is: \" + function.apply(\"Chetan\"));\n System.out.println(\"Length of Chetan Raj is: \" + function.apply(\"Chetan Raj\"));\n\n //Returning Square of a integer value using Function Interface\n System.out.println(\"\\n##############Returning Square of a integer value using Function Interface##############\");\n Function<Integer, Integer> squareFunction = I -> I * I;\n System.out.println(\"Square of 5 is: \"+ squareFunction.apply(5));\n System.out.println(\"Square of 10 is: \"+ squareFunction.apply(10));\n\n //Replacing all spaces using Function Interface\n System.out.println(\"\\n##############Replacing all spaces using Function Interface##############\");\n Function<String,String> replaceSpaceFunction = s -> s.replace(\" \",\"\");\n String s = \"Chetan Raj Bharti \";\n System.out.println(\"Original String: \"+ s);\n System.out.println(\"After replacing spaces: \" + replaceSpaceFunction.apply(s));\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Supplier test\");\n\t\tSupplier<String> stringSupp = () -> \"test\"; \n\t\tSystem.out.println(stringSupp.get());\n\t\t\t\t\n\t\t// used as a factory\n\t\tSupplier<Integer> intSupp5 = () -> {return new Integer(5);};\t\t\t\t\n\t\tSupplier<Map> hashMapSupp = () -> new HashMap<>();\n\t\t// using a Method Reference\n\t\tSupplier<Map> hashMapSuppMF = HashMap::new;\n\t\t\t\t\t\t\t\t\n\t\t// *** consumer --> Consumer<T> cons = t -> {};\n\t\tSystem.out.println(\"\\nConsumer test\");\n\t\tConsumer cons = t -> {};\n\t\tConsumer<String> commaStringOut = s -> System.out.print(s + \", \");\n\t\tcommaStringOut.accept(\"This is a test\");\n\t\tSystem.out.println(\"\");\n\t\t\n\t\t// andThen - returns a composed Consumer\n\t\tConsumer<String> suffixStringOut = s -> System.out.println(\"of lambdas\");\t\t\n\t\tcommaStringOut.andThen(suffixStringOut).accept(\"This is a test\");\t\n\t\t\n//\t\tConsumer<String> fullStringOut = commaStringOut.andThen(suffixStringOut);\n//\t\tfullStringOut.accept(\"This is a test\");\n\n\t\t// *** function --> Function(T,T) func = t -> t;\n\t\tSystem.out.println(\"\\nFunction test\");\n\t\tFunction func = t -> t;\n\t\t\t\t\n\t\tFunction<String, Integer> stringLength = (s) -> s.length();\n\t\tSystem.out.println(stringLength.apply(\"Hello world\"));\n\t\t\n\t\t// andThen\n\t\tSystem.out.println(\"andThen test\");\n\t\tFunction<Integer, Boolean> lowerThanTen = (i) -> i < 10;\t\t\t\t\n\t\tFunction<String, Boolean> function = stringLength.andThen(lowerThanTen);\n\t\t// Will print false\n\t\tSystem.out.println(function.apply(\"Hello world\"));\n\n\t\t// compose \n\t\tSystem.out.println(\"compose test\");\n\t\tFunction<Integer, Integer> times2 = e -> e * 2;\n\t\tFunction<Integer, Integer> squared = e -> e * e;\n\t\t\n\t\t// returns 64\n\t\tSystem.out.println(times2.andThen(squared).apply(4));\t\n\t\t\n\t\t// returns 32\n\t\tSystem.out.println(times2.compose(squared).apply(4));\t\n\t\t\n\t\t// identity \n\t\tFunction<String,String> strIdenityFunc = Function.identity();\n\t\tSystem.out.println(strIdenityFunc.apply(\"Identity Test\"));\t\n\t\t\n\t\t// *** predicate --> Predicate<T> pred = t -> 1 == 1;\n\t\tSystem.out.println(\"\\nPredicate test\");\n\t\tPredicate<String> lengthTest5 = (s)-> s.length() > 5;\n\t\tSystem.out.println(lengthTest5.test(\"longer than 5 test \"));\n\t\t\n\t\t// and\n\t\tSystem.out.println(\"and test\");\n\t\tPredicate<String> startsWith = (s)-> s.startsWith(\"t\");\n\t\tSystem.out.println(lengthTest5.and(startsWith).test(\"longer than 5 test \"));\n\n\t\t// or\n\t\tSystem.out.println(\"or test\");\n\t\tSystem.out.println(lengthTest5.or(startsWith).test(\"longer than 5 test \"));\n\t\t\n\t\t// negate\n\t\tSystem.out.println(\"negate test\");\n\t\tSystem.out.println(startsWith.negate().test(\"longer than 5 test \"));\n\t\t\n\t\t// isEqual\n\t\tSystem.out.println(\"isEquale test\");\n\t Predicate<String> strEqual = Predicate.isEqual(\"asdf\");\n\t \n\t System.out.println(strEqual.test(\"basddfs\"));\n\t System.out.println(strEqual.test(\"asdf\"));\n\t}", "OUT apply(IN argument);", "@FunctionalInterface\n\tpublic interface ChangeCallback<T> {\n /**\n * Callback when the value has changed, also providing the previous value.\n * @param oldValue previous value before change\n * @param newValue the new value\n */\n\t\tvoid valueChanged(T oldValue, T newValue);\n\t}", "void apply(T input);", "public interface MyFunc {\n int func(int n);\n}", "@FunctionalInterface\npublic interface PersonComparator <T, R extends Comparable> {\n Function<T, R> getValue(PersonSearchParameters parameters);\n}", "public interface Operation<S> extends Function<Pair<S, S>, S> {\n\n /**\n * Application of the operation.\n * @param a first element\n * @param b second element\n * @return <code>a op b</code>\n */\n S op(final S a, final S b);\n\n /**\n * Is the operation associative?\n * @return true if associative.\n */\n boolean isAssociative();\n\n /**\n * Is the operation commutative.\n * @return true if commutative\n */\n boolean isCommutative();\n\n /**\n * Test if the specified element is an identity for the operation.\n * @param e element to test\n * @return true if element is an identity\n */\n boolean isIdentity(final S e);\n}", "public interface Functor1<T, F extends Functor1<?,?>> {\n <R> F map(Function<T,R> fn);\n}", "static <T> Function<T,SibillaValue> apply(UnaryOperator<SibillaValue> op, Function<T,SibillaValue> f1) {\n return arg -> op.apply(f1.apply(arg));\n }", "@FunctionalInterface\npublic interface Consumer<T> {\n\n /**\n * Performs operation on argument.\n *\n * @param value the input argument\n */\n void accept(T value);\n\n class Util {\n\n private Util() { }\n\n /**\n * Composes {@code Consumer} calls.\n *\n * <p>{@code c1.accept(value); c2.accept(value); }\n *\n * @param <T> the type of the input to the operation\n * @param c1 the first {@code Consumer}\n * @param c2 the second {@code Consumer}\n * @return a composed {@code Consumer}\n * @throws NullPointerException if {@code c1} or {@code c2} is null\n */\n public static <T> Consumer<T> andThen(final Consumer<? super T> c1, final Consumer<? super T> c2) {\n return new Consumer<T>() {\n @Override\n public void accept(T value) {\n c1.accept(value);\n c2.accept(value);\n }\n };\n }\n }\n}", "public static void main(String[] args) {\n\n CompareInterface compareInterface = (i1,i2)->{\n if(i1>i2)\n return true;\n else\n return false;\n\n };\n System.out.println(compareInterface.iCompare(10,20));\n\n//(2) Increment the number by 1 and return incremented value Parameter (int) Return int\n IncrementInterface incrementInterface =(i1)->{\n return i1+=1;\n };\n System.out.println(\"Incremented Value : \"+incrementInterface.increament( 10));\n\n//(3) Concatination of 2 string Parameter (String , String ) Return (String)\n ConcatInterface concatInterface = (String::concat);\n System.out.println(\"Concatinated String : \"+ concatInterface.concat(\"Helo \", \"World\"));\n\n//(4) Convert a string to uppercase and return . Parameter (String) Return (String)\n ToUpperCaseInterface toUpperCaseInterface = (String::toUpperCase);\n System.out.println(toUpperCaseInterface.toUpperCase(\"aakash sinha\"));\n }", "interface IPred<T> {\n public boolean apply(T t);\n}", "@FunctionalInterface\npublic interface FuncInterface {\n\n BigDecimal bal = BigDecimal.ZERO;\n\n void add(BigDecimal balance);\n\n default BigDecimal getBalance(){\n return bal;\n }\n\n static BigDecimal sum(BigDecimal num){\n return bal.add(num);\n }\n\n}" ]
[ "0.7945935", "0.77067435", "0.7446042", "0.7398165", "0.73485035", "0.70602906", "0.6988727", "0.69675386", "0.69396436", "0.69051844", "0.68436366", "0.68271774", "0.6797917", "0.6797917", "0.67904395", "0.678776", "0.67576385", "0.6741971", "0.6683386", "0.6646583", "0.66074383", "0.654956", "0.6522533", "0.6496685", "0.6485755", "0.642448", "0.6397821", "0.6348065", "0.63414097", "0.6320725", "0.63133985", "0.6310818", "0.62577295", "0.62484574", "0.6247599", "0.62456775", "0.623533", "0.6225092", "0.6217247", "0.62169003", "0.6205173", "0.6204318", "0.6190479", "0.61770487", "0.6158415", "0.61549294", "0.61224633", "0.6112225", "0.61076635", "0.61039895", "0.60743105", "0.60728544", "0.60678256", "0.60187143", "0.6009184", "0.59929574", "0.59907377", "0.59419453", "0.5937671", "0.59171945", "0.58849686", "0.5884109", "0.58803374", "0.5877381", "0.5852916", "0.5835426", "0.5832596", "0.5831746", "0.5820516", "0.5816617", "0.5807078", "0.58033943", "0.5803008", "0.57880425", "0.57798415", "0.57729936", "0.57681274", "0.57544065", "0.5747544", "0.5742238", "0.5738248", "0.5715018", "0.57086337", "0.57077867", "0.5693806", "0.5690062", "0.56814176", "0.56748", "0.5671737", "0.5668607", "0.56453913", "0.5643439", "0.56407946", "0.56291425", "0.56222016", "0.5619603", "0.56163096", "0.55689657", "0.5561543", "0.55545163", "0.5551738" ]
0.0
-1
Draws the screen and all the components in it.
@Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { this.drawDefaultBackground(); super.drawScreen(mouseX, mouseY, partialTicks); this.renderHoveredToolTip(mouseX, mouseY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void DrawScreen() {\r\n DrawScreen(0, false, null);\r\n }", "public void render()\n\t{\n\t\t// Get or create the BufferStrategy to plan rendering\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the graphics that can be drawn to\n\t\tg = bs.getDrawGraphics();\n\t\t\n\t\t// Set the Graphics2D\n\t\tg2d = (Graphics2D)g;\n\t\t\n\t\t// Create a black rectangle to fill the canvas as a base background\n\t\tg.setColor(Color.black);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\tif (screenLoaded)\n\t\t{\n\t\t\t// Draw the static background\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawStaticBackground(g);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(game.getCamera().getxPos(), \n\t\t\t\t\t\t \t game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the background layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawBackground(g);\n\t\t\t\n\t\t\t// Render all of the Tiles\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesWorld())\n\t\t\t\tgame.getWorldHandler().renderTiles(g);\n\t\t\t\n\t\t\t// Render all of the GameObjects\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesGameObjects())\n\t\t\t\tgame.getObjectHandler().renderGameObjects(g);\n\t\t\t\n\t\t\t// Draw the foreground layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawForeground(g);\n\t\t\t\n\t\t\t// Draw the lighting\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesLighting())\n\t\t\tg.drawImage(game.getLightHandler().getLightmap(), -1500, -3100, null);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(-game.getCamera().getxPos(), \n\t\t\t\t\t\t \t -game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the gui layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawGui(g);\n\t\t\t\n\t\t\t// Draw the debug layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null\n\t\t\t\t&& game.getDebugScreen() != null\n\t\t\t\t&& game.isDebugShown())\n\t\t\t\tgame.getDebugScreen().showDebug(g);\n\t\t\t\n\t\t\t// Draw the loading \"curtain\" if the screen is still loading\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null &&\n\t\t\t\t!screenLoaded)\n\t\t\t{\n\t\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Dispose of all graphics\n\t\t\tg.dispose();\n\t\t\t// Show all graphics prepared on the BufferStrategy\n\t\t\tbs.show();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGraphics2D g2 = (Graphics2D)g;\n\t\t\tg2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\t\n\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Dispose of all graphics\n\t\tg.dispose();\n\t\t// Show all graphics prepared on the BufferStrategy\n\t\tbs.show();\n\t}", "private void render() {\n\t\tBufferStrategy buffStrat = display.getCanvas().getBufferStrategy();\n\t\tif(buffStrat == null) {\n\t\t\tdisplay.getCanvas().createBufferStrategy(3); //We will have 3 buffered screens for the game\n\t\t\treturn;\n\t\t}\n\n\t\t//A bufferstrategy prevents flickering since it preloads elements onto the display.\n\t\t//A graphics object is a paintbrush style object\n\t\tGraphics g = buffStrat.getDrawGraphics();\n\t\t//Clear the screen\n\t\tg.clearRect(0, 0, width, height); //Clear for further rendering\n\t\t\n\t\tif(State.getState() !=null) {\n\t\t\tState.getState().render(g);\n\t\t}\n\t\t//Drawings to be done in this space\n\t\t\n\t\t\n\t\t\n\t\tbuffStrat.show();\n\t\tg.dispose();\n\t}", "public void draw() {\r\n if(isVisible()) {\r\n Canvas canvas = Canvas.getCanvas();\r\n canvas.draw(this,getColor(),\r\n new Rectangle(\r\n (int)round(getXposition()),\r\n (int)round(getYposition()),\r\n (int)round(size),\r\n (int)round(size)));\r\n canvas.wait(10);\r\n }\r\n }", "protected void drawGUI() {\n batch.draw(background, 0, 0);\n }", "public void draw() {\n draw(this.root, new RectHV(0.0, 0.0, 1.0, 1.0));\n }", "private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }", "private void render() {\n\n\tbs=display.getCanvas().getBufferStrategy();\t\n\t\n\tif(bs==null) \n\t {\t\n\t\tdisplay.getCanvas().createBufferStrategy(3);\n\t\treturn ;\n\t }\n\t\n\tg=bs.getDrawGraphics();\n\n\t//Clear Screen\n\tg.clearRect(0, 0, width, height);\n\t\n\tif(State.getState()!=null )\n\t\tState.getState().render(g);\n\t\n\t//End Drawing!\n\tbs.show();\n\tg.dispose();\n\t\n\t}", "public void draw() {\n \n // TODO\n }", "public void draw() \r\n\t{\r\n\t\tdraw(root, new RectHV(0,0,1,1) );\r\n\t}", "public void draw(){\n\t\tcomponent.draw();\r\n\t}", "protected void render() {\n\t\tentities.render();\n\t\t// Render GUI\n\t\tentities.renderGUI();\n\n\t\t// Flips the page between the two buffers\n\t\ts.drawToGraphics((Graphics2D) Window.strategy.getDrawGraphics());\n\t\tWindow.strategy.show();\n\t}", "public void draw() { \n\t\tbackground(255); // Clear the screen with a white background\n\t\tfill(0);\n\t\ttextAlign(LEFT);\n\t\ttextSize(12);\n\t\t\n\t\tif (runCount == 0) {\n\t\t\tboard.onClick();\n\t\t} else if (runCount > 0) {\n\t\t\trunCount--;\n\t\t}\n\t\t\n\t\tif (board != null) {\n\t\t\tboard.draw(this, 0, 0, height, height);\n\t\t}\n\t\t\n\t}", "public void draw() {\n draw(root, false);\n }", "public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}", "static void draw()\n {\n for (Viewport viewport : viewports)\n viewport.draw(renderers);\n }", "private void render() {\n\t\tBufferStrategy bufferStrategy = getBufferStrategy(); //Create BufferStrategy object\n\n\t\t//If the Buffer Strategy doesn't exist, create one\n\t\tif(bufferStrategy == null) {\n\t\t\tcreateBufferStrategy(3); //Triple buffer\n\t\t\treturn; //Return\n\t\t}\n\n\t\tGraphics g = bufferStrategy.getDrawGraphics(); //Create Graphics object\n\t\tg.setColor(Color.black); //Set the colour of the object to black\n\t\tg.fillRect(0, 0, Game.WIDTH, Game.HEIGHT); //Fill the window\n\n\t\t//Start screen\n\t\tif(!startScreen.start && !player.dead && !player.win) {\n\t\t\tstartScreen.render(g); //Render the start screen\n\t\t\t//If the user presses enter\n\t\t\tif(enter) {\n\t\t\t\tstartScreen.start = true; //Game has started\n\t\t\t}\n\t\t}\n\n\t\t//Playing screen\n\t\tif(!player.dead && !player.win && startScreen.start) {\n\t\t\tlevel.render(g); //Render the level\n\t\t\tplayer.render(g); //Render the player to the graphics object\n\t\t\thp(g); //Render the hit points\n\t\t\tif(paused) {\n\t\t\t\tpauseScreen.render(g);\n\t\t\t}\n\t\t}\n\n\t\t//Dead screen\n\t\tif(player.dead){\n\t\t\tdeadScreen.render(g); //Render the dead screen\n\t\t}\n\n\t\t//Win screen\n\t\tif(player.win) {\n\t\t\twinScreen.render(g); //Render the win screen\n\t\t}\n\t\tg.dispose(); //Dispose of the object\n\t\tbufferStrategy.show(); //Show it\n\t}", "public void draw() {\n mGameBoard.draw();\n }", "public void draw() {\n //Grey background, which removes the tails of the moving elements\n background(0, 0, 0);\n //Running the update function in the environment class, updating the positions of stuff in environment\n //update function is a collection of the methods needing to be updated\n if(stateOfProgram == 0) { startTheProgram.update(); }\n if(stateOfProgram == 1) {\n theEnvironment.update();\n //update function is a collection of the methods needing to be updated\n //Running the update function in the Population class, updating the positions and states of the rabbits.\n entitiesOfRabbits.update();\n entitiesOfGrass.update();\n entitiesOfFoxes.update();\n\n entitiesOfRabbits.display();\n entitiesOfGrass.display();\n entitiesOfFoxes.display();\n openGraph.update();\n }\n }", "public void draw() {\n GraphicsContext gc = getGraphicsContext2D();\n /*gc.clearRect(0, 0, getWidth(), getHeight());\n\n if (squareMap != null) {\n squareMap.draw(gc);\n }\n if (hexMap != null) {\n hexMap.draw(gc);\n }*/\n\n // Draw animations\n for (SpriteAnimationInstance anim : animationList) {\n anim.draw(gc);\n }\n\n // Lastly draw the dialogue window, no matter which canvas\n // we are on, all the same.\n DfSim.dialogueWindow.draw(gc);\n\n /*if (landMap != null) {\n landMap.draw(gc);\n }*/\n\n // Draw a border around the canvas\n //drawBorder(gc);\n\n // And now just draw everything directly from the simulator\n /*for (Raindrop item : sim.getDrops()) {\n drawMovableCircle(gc, item);\n }\n for (Earthpatch item : sim.getPatches()) {\n drawMovableCircle(gc, item);\n }\n for (SysShape item : sim.getShapes()) {\n drawSysShape(gc, item);\n }\n for (Spike item : sim.getSpikes()) {\n drawMovablePolygon(gc, item);\n }\n for (GravityWell item : sim.getGravityWells()) {\n drawGravityWell(gc, item);\n }*/\n }", "private void printScreen()\n {\n try\n {\n Graphics g = getGraphics();\n if(drawingArea != null && g != null)\n {\n g.drawImage(drawingArea, 0, 0, null);\n }\n\n // Sync the display on some systems.\n // (on Linux, this fixes event queue problems)\n Toolkit.getDefaultToolkit().sync();\n g.dispose();\n }\n catch(Exception ex)\n {\n System.out.println(\"Graphics error: \" + ex);\n }\n }", "private void draw() {\n gsm.draw(g);\n }", "public void draw() {\n draw(root, true);\n }", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) { //if the buffer strategy doesnt get created, then you create it\n\t\t\tcreateBufferStrategy(3); //the number 3 means it creates triple buffering\n\t\t\treturn;\t\t\t\t\t//, so when you backup frame gets displayed (2) it will also have a backup\t\n\t\t}\n\t\t\n\t\t//apply data to the buffer \"bs\"\n\t\t//this is creating a link to graphics to drawing graphics to the screen.\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t/**\n\t\t * You input all of your graphics inbetween the g object and g.dispose();\n\t\t */\n\t\t//###################\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t//###################\n\t\tg.dispose(); //this dispose of all the graphics\n\t\tbs.show(); //this will make the next available buffer visible\n\t}", "public void render() {\n\t\tscreen.background(255);\n\t\thandler.render();\n\t}", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}", "public synchronized void display() {\r\n\r\n\t\t// clear the screen and draw a yellow square\r\n\t\tgl.clear(GL.COLOR_BUFFER_BIT);\r\n\t\t// First rectangle\r\n\t\tgl.pushMatrix();\r\n\t\tgl.translate(-0.5, 0.0, 0.0);\r\n\t\tgl.rotate(spin, 0.0, 0.0, 1.0);\r\n\t\tgl.rect(-0.5, -0.5, 0.5, 0.5);\r\n\t\tgl.popMatrix();\r\n\t\t// Second rectangle\r\n\t\tgl.pushMatrix();\r\n\t\tgl.translate(0.5, 0.0, 0.0);\r\n\t\tgl.rotate(-spin, 0.0, 0.0, 1.0);\r\n\t\tgl.rect(-0.5, -0.5, 0.5, 0.5);\r\n\t\tgl.popMatrix();\r\n\t\tgl.flush(); // Make sure all commands have completed.\r\n\t\tgl.swap();\t // Swap the render buffer with the screen buffer\r\n\t}", "public void draw() {\r\n\t\t// Draw the triangle making up the mountain\r\n\t\tTriangle mountain = new Triangle(this.x, 100,\r\n\t\t\t\tthis.x + mountainSize / 2, 100, this.x + mountainSize / 4,\r\n\t\t\t\t100 - this.y / 4, Color.DARK_GRAY, true);\r\n\t\t// Draw the triangle making up the snow cap\r\n\t\tthis.snow = new Triangle(side1, bottom - this.y / 8, side2, bottom\r\n\t\t\t\t- this.y / 8, this.x + mountainSize / 4, 100 - this.y / 4,\r\n\t\t\t\tColor.WHITE, true);\r\n\t\tthis.window.add(mountain);\r\n\t\tthis.window.add(snow);\r\n\t}", "public void draw() {\r\n\t\tfor(int i=0; i<2; i++) {\r\n\t\t\trenderer[i].setView(camera[i]);\r\n\t\t\trenderer[i].render();\r\n\t\t}\r\n\t}", "public void render(){\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Sets graphics in screen and clears them\n\t\tGraphics g = bs.getDrawGraphics();\n\t\tscreen.graphics(g);\n\t\tscreen.clear();\n\t\t\n\t\tGraphics2D graphics2d = (Graphics2D) g;\n\t\t\n\t\t//Adds antialiasing to text\n\t\tgraphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\n\t\tmanager.render(screen);\n\t\t\n\t\tfor(int i = 0; i < WIDTH*HEIGHT; i++){\n\t\t\tpixels[i] = screen.getPixels()[i];\n\t\t}\n\t\tg.drawImage(image, 0, 0, getWidth(), getHeight(), null);\n\t\t\n\t\t//Draw text from string buffer\n\t\tfor(StringObject so : screen.stringBuffer){\n\t\t\tString s = so.string;\n\t\t\tg.setColor(so.color);\n\t\t\tg.setFont(so.font);\n\t\t\tg.drawString(s, so.xp, so.yp);\n\t\t}\n\t\tscreen.stringBuffer.clear();\n\t\t\n\t\t//Draws pause graphics\n\t\tif(screen.pause && manager.getState() == 2){\n\t\t\tg.setColor(new Color((0xcc00aa & 0xff0000) >> 16, (0xcc00aa & 0xff00) >> 8, (0xcc00aa & 0xff), 255));\n\t\t\tg.fillRect(0, 290, screen.getWidth(), 170);\n\t\t\tg.setColor(new Color((0x222222 & 0xff0000) >> 16, (0x222222 & 0xff00) >> 8, (0x222222 & 0xff), 255));\n\t\t\tg.fillRect(0, 300, screen.getWidth(), 150);\n\t\t\t\n\t\t\tg.setColor(Color.WHITE);\n\t\t\tg.setFont(new Font(\"Audiowide\", Font.PLAIN, 90));\n\t\t\tg.drawString(\"PAUSED\", 330, 380);\n\t\t\tg.setFont(new Font(\"Audiowide\", Font.PLAIN, 30));\n\t\t\tg.drawString(\"Press Escape to Resume\", 340, 420);\n\t\t}\n\t\t\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "public void draw() {\n\t\tsuper.repaint();\n\t}", "public void Draw() {\n \tapp.fill(this.r,this.g,this.b);\n\t\tapp.ellipse(posX, posY, 80, 80);\n\n\t}", "public void paint() {\n BufferStrategy bs;\n bs = this.getBufferStrategy();\n\n Graphics g = bs.getDrawGraphics();\n g.drawImage(background, 0, 0, this.getWidth(), this.getHeight(), null);\n if (this.blackHoles != null) {\n for (BlackHole blackHole : this.blackHoles) {\n blackHole.paint(g);\n }\n }\n if (this.balls != null) {\n for (int i = 0; i <this.balls.size() ; i++) {\n this.balls.get(i).paint(g);\n }\n\n }\n\n bs.show();\n g.dispose();\n\n }", "public void draw() {\n drawBox();\n if (root == null) {\n return;\n }\n\n draw(root, ORIENTATION_VERTICAL);\n }", "public void display_game_screen() {\n\n myScreen.screenMode = myScreen.DISPLAY_GAME_SCREEN;\n\n pushMatrix();\n\n calc_screen_translation();\n\n imageMode(CORNER);\n image(backgroundImage, 0, 0);\n\n // draw_grid();\n\n draw_game_assets();\n\n pacman.update(isPacmanUp, isPacmanDown, isPacmanLeft, isPacmanRight);\n ghost.update(isGhostUp, isGhostDown, isGhostLeft, isGhostRight);\n\n pacman.display();\n ghost.display();\n\n score.run(pacman.xTile, pacman.yTile, ghost.xTile, ghost.yTile);\n\n popMatrix();\n }", "private void render() {\n final int numBuffers = 3;\n BufferStrategy bs = this.getBufferStrategy(); // starts value at null\n if (bs == null) {\n this.createBufferStrategy(numBuffers); // 3: buffer creations\n return;\n }\n Graphics g = bs.getDrawGraphics();\n\n g.setColor(Color.black); // stops flashing background\n g.fillRect(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);\n\n handler.render(g);\n\n if (gameStart == GAME_STATE.Game) {\n hud.render(g);\n } else if (gameStart == GAME_STATE.Menu || gameStart == GAME_STATE.Help || gameStart == GAME_STATE.GameOver || gameStart == GAME_STATE.GameVictory) {\n menu.render(g);\n }\n\n g.dispose();\n bs.show();\n }", "private void draw() {\n\t\tgsm.draw(g);\n\t\tg.setColor(Color.WHITE);\n\t\tif (fps < 25)\n\t\t\tg.setColor(Color.RED);\n\t\tg.drawString(\"FPS: \" + fps, 10, 15);\n\t}", "public void render() {\n this.canvas.repaint();\n }", "public void drawScreen(int par1, int par2, float par3)\n {\n drawRect(2, height - 14, width - 2, height - 2, 0x80000000);\n field_50064_a.drawTextBox();\n super.drawScreen(par1, par2, par3);\n }", "@Override\r\n\tpublic void render() {\r\n\r\n\t\tsb.setProjectionMatrix(cam.combined);\r\n\r\n\t\t// draw background\r\n\t\tbg.render(sb);\r\n\r\n\t\t// draw button\r\n\t\tlevel1.render(sb);\r\n\t\tlevel2.render(sb);\r\n\t\tlevel3.render(sb);\r\n\t\t\r\n\t\tif (gameMode == 1){\r\n\t\t\tplayer1press.render(sb);\r\n\t\t\tplayer2press.render(sb);\r\n\t\t}\r\n\t\telse \r\n\t\t\tplayerpress.render(sb);\r\n\t\t\r\n\t\t\r\n\t selectTheLevel.render(sb);\r\n\t\t\r\n\t\tmainMenuB.render(sb);\r\n\r\n\t\t// debug draw box2d\r\n\t\tif(debug) {\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH / 100, Game.V_HEIGHT / 100);\r\n\t\t\tb2dRenderer.render(world, cam.combined);\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH, Game.V_HEIGHT);\r\n\t\t}\r\n\r\n\t}", "private void draw() {\n this.player.getMap().DrawBackground(this.cameraSystem);\n\n //Dibujamos al jugador\n player.draw();\n\n for (Character character : this.characters) {\n if (character.getMap() == this.player.getMap()) {\n character.draw();\n }\n }\n\n //Dibujamos la parte \"superior\"\n this.player.getMap().DrawForeground();\n\n //Sistema de notificaciones\n this.notificationsSystem.draw();\n\n this.player.getInventorySystem().draw();\n\n //Hacemos que la cámara se actualice\n cameraSystem.draw();\n }", "public void draw() \n\t {\n\t\t draw(root,0,0,1,1,true);\n\t }", "public void draw() {\n if (r.isVisible()) {\n Canvas canvas = Canvas.getCanvas();\n canvas.draw(r, new java.awt.Rectangle(r.getX(), r.getY(), \n width, height));\n canvas.wait(10);\n }\n }", "private void draw()\n {\n Canvas canvas = Canvas.getCanvas();\n canvas.draw(this, color, new Ellipse2D.Double(xPosition, yPosition, \n diameter, diameter));\n canvas.wait(10);\n }", "@Override\n\tpublic void render() {\n\t\tScreen.render();\n\t}", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n }else{\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n \n \n if(!gameover){\n player.render(g);\n borrego.render(g);\n rayo.render(g);\n \n for (Enemy brick : enemies) {\n brick.render(g);\n //bomba.render(g);\n }\n \n for (Fortaleza fortaleza : fortalezas) {\n fortaleza.render(g);\n }\n \n for (Bomba bomba: bombas){\n bomba.render(g);\n }\n \n drawScore(g);\n drawLives(g,vidas);\n }else if(gameover){\n drawGameOver(g);\n }\n \n\n if (lost && !gameover){\n drawLost(g);\n }\n if (pause && !lost && !gameover){\n drawPause(g);\n }\n if(win && !lost && !pause && !lost &&!gameover){\n \n drawWin(g);\n }\n \n bs.show();\n g.dispose();\n }\n }", "public void draw() {\n\t\tif (fill) {\n\t\t\tapplet.noStroke();\n\t\t\tapplet.fill(color);\n\t\t} else {\n\t\t\tapplet.noFill();\n\t\t\tapplet.stroke(color);\n\t\t}\n\t\tapplet.rect(position.x, position.y, size.x, size.y);\n\t\tsliderButton.draw(new PVector(-10,0));\n\t}", "private static void draw() {\n\t\tinitField();\n\t\tview = new View(field);\n\t\tview.setSize(viewWidth, viewHeight);\n\t\tframe = new JFrame();\n\t\tframe.setSize(fwidth, fheight);\n\t\tframe.setTitle(\"Land Mine\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.add(view);\n\t\tframe.setVisible(true);\n\t}", "public void render()\n\t{\n\t\tBufferStrategy bs = this.getBufferStrategy();\n\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t//////////////////////////////\n\n\t\tg.setColor(Color.DARK_GRAY);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\tif (display != null && GeneticSimulator.updateRendering)\n\t\t{\n\t\t\tg.drawImage(display, 0, 0, getWidth(), getHeight(), this);\n\t\t}\n\n\t\tWorld world = GeneticSimulator.world();\n\n\t\tworld.draw((Graphics2D) g, view);\n\n\t\tg.setColor(Color.WHITE);\n\t\tg.drawString(String.format(\"view: [%2.1f, %2.1f, %2.1f, %2.1f, %2.2f]\", view.x, view.y, view.width, view.height, view.PxToWorldScale), (int) 10, (int) 15);\n\n\t\tg.drawString(String.format(\"world: [time: %2.2f pop: %d]\", world.getTime() / 100f, World.popCount), 10, 30);\n\n\t\tg.drawRect(view.pixelX, view.pixelY, view.pixelWidth, view.pixelHeight);\n//\t\tp.render(g);\n//\t\tc.render(g);\n\n\n\t\t//g.drawImage(player,100,100,this);\n\n\t\t//////////////////////////////\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "public void render(){\n //this block is pre-loading 2 frames in\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n this.createBufferStrategy(2);\n return;\n }\n\n Graphics g = bs.getDrawGraphics();\n Graphics2D g2d = (Graphics2D) g;\n ///////////////////////////\n //Draw things below here!\n g.setColor(Color.white);\n g.fillRect(0, 0, 800, 800);\n\n g2d.translate(-camera.getX(), -camera.getY());\n\n g.setColor(Color.gray);\n g.fillRect(0, 0, 500, 500);\n //render all the objects\n handler.render(g);\n\n //g2d.translate(camera.getX(), camera.getY());\n //Draw things above here!\n ///////////////////////////\n g.dispose();\n bs.show();\n }", "public void drawAllGraphics(){\r\n\t\t \r\n\t}", "private void render() {\n\t\ttheMap.draw(g);\n\t\ttheTrainer.draw(g);\n\t}", "private void draw(){\n GraphicsContext gc = canvasArea.getGraphicsContext2D();\n canvasDrawer.drawBoard(canvasArea, board, gc, currentCellColor, currentBackgroundColor, gridToggle);\n }", "public void draw() {\r\n\t\tbackground(255); // Clear the screen with a white background\r\n\r\n\t\ttextSize(12);\r\n\t\tfill(0);\r\n\r\n\t\tstroke(0);\r\n\t\tcurve.draw(this);\r\n\t}", "public void draw()\n\t{\n\t\tdrawWalls();\n\n\t\tfor( Zombie z: zombies )\n\t\t{\n\t\t\tz.draw();\n\t\t}\n\t\tfor( Entity h: humans )\n\t\t{\n\t\t\th.draw();\n\t\t}\n\n\t\tdp.repaintAndSleep(rate);\n\t}", "public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}", "private void drawGame(){\n drawBackGroundImage();\n drawWalls();\n drawPowerups();\n drawBullet();\n }", "public void draw() {\n // Default widget draws nothing.\n }", "public void draw() {\n\t //FrameRate should only 5 when there is no activity. Otherwise, 60\n if (!EventQueue.getInstance().isTiccing() && System.currentTimeMillis() - lastActive >= 300) {\n noLoop();\n setFrameRate(5);\n println(\"no draw activity\");\n } else{\n \t setFrameRate(60);\n }\n background(255);\n //Process menu data at the beginning\n // Menu menuSing = Menu.getInstance();\n // if ((boolean) menuSing.getControllerValue(\"Button0\")) {\n // KeyMap.getInstance().run('q');\n // }\n\n pushMatrix();\n //Enable scrolling\n translate(0, verticalScroll);\n StringManager.getInstance().draw();\n\n popMatrix();\n\n //if (frameCount % 10 == 0)System.out.println(frameRate);\n\n //Draw menu after\n Menu.getInstance().draw();\n }", "public void drawScreen(int par1, int par2, float par3)\n {\n\t\tGL11.glClearColor(0.1f, 0.1f, 0.1f, 1.0f);\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n Tessellator var4 = Tessellator.instance;\n short var5 = 274;\n int var6 = (int)((float)(this.width / 2 - var5 / 2) * 1.2f);\n byte var7 = 30;\n GL11.glBindTexture(GL11.GL_TEXTURE_2D, this.mc.renderEngine.getTexture(\"/title/emberlogo.png\"));\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n\t\tthis.drawTexturedModalRect(var6 + 0, var7 + 0, 0, 0, 155, 44);\n\t\tthis.drawTexturedModalRect(var6 + 155, var7 + 0, 0, 45, 155, 44);\n\n String emberTag = \"Ember 0.1.2\";\n String var9 = \"Minecraft 1.4.5\";\n\n this.drawString(this.fontRenderer, var9, 2, this.height - 10, 16777215);\n this.drawString(this.fontRenderer, emberTag, 2, this.height - 20, 16777215);\n String var10 = \"Minecraft is a copyright of Mojang AB.\";\n this.drawString(this.fontRenderer, var10, this.width - this.fontRenderer.getStringWidth(var10) - 2, this.height - 10, 16777215);\n super.drawScreen(par1, par2, par3);\n }", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n g.setColor(Color.white);\n g.drawLine(0, 500, 595, 500);\n player.render(g);\n for (int i = 0; i < aliens.size(); i++) {\n Alien al = aliens.get(i);\n al.render(g);\n }\n if (shotVisible) {\n shot.render(g);\n }\n\n if(gameOver==false)\n {\n gameOver();\n }\n for(Alien alien: aliens){\n Bomb b = alien.getBomb();\n b.render(g);\n }\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\n g.setFont(small);\n g.drawString(\"G - Guardar\", 10, 50);\n g.drawString(\"C - Cargar\", 10, 70);\n g.drawString(\"P - Pausa\", 10, 90);\n\n if(keyManager.pause)\n {\n g.drawString(\"PAUSA\", 250, 300);\n }\n \n bs.show();\n g.dispose();\n }\n\n }", "private void render() {\n\t\t// clear the screen and depth buffer\n\t\tglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t\t\n\t\t// draws the background\n\t\tdrawScreen(sprite.get(\"background\"));\n\t\t\n\t\t// drawing player\n\t\tif (!stopDrawingPlayer)\n\t\t\tdrawEntity(player);\n\t\t// drawing bullets\n\t\tdrawListEntity(bullet);\n\t\t// drawing enemy bullets\n\t\tdrawListEntity(enemy_bullet);\n\t\t// drawing enemies\n\t\tdrawListEntity(enemy);\n\t\t// drawing powerups\n\t\tdrawListEntity(powerup);\n\t\t// drawing explosions\n\t\tdrawListEntity(explosion);\n\t\t\n\t\t// draw health\n\t\tdefaultFont.drawString(10, 10, \"Health: \" + player.getHP() + \"/1000\");\n\t\t// draw cash\n\t\tdefaultFont.drawString(10, 40, \"Cash: $\" + cash);\n\t\t// draw shop prompt\n\t\tdefaultFont.drawString(displayWidth - 280, displayHeight - 40, \"Press F to enter shop\");\n\t\t\n\t\tif (stopDrawingPlayer) {\n\t\t\t// draw Game Over\n\t\t\tgameOverFont.drawString(displayWidth / 2 - gameOverFont.getWidth(\"Game Over!\") / 2, displayHeight\n\t\t\t\t\t/ 2 - gameOverFont.getHeight(\"Game Over!\") / 2 - 50, \"Game Over!\");\n\t\t\t\n\t\t\t// draw the score\n\t\t\tscoreFont.drawString(displayWidth / 2 - scoreFont.getWidth(\"Score: \" + totalCash) / 2, displayHeight\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Game Over!\")\n\t\t\t\t\t/ 2\n\t\t\t\t\t+ scoreFont.getHeight(\"Score: \" + totalCash)\n\t\t\t\t\t/ 2 + 10 - 50, \"Score: \" + totalCash);\n\t\t}\n\t}", "public void draw(Graphics window)\n {\n window.setColor(color);\n window.fillRect(getX(), getY(), getWidth(), getHeight());\n }", "private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTransform transform = AffineTransform.getTranslateInstance(0, height);\n transform.concatenate(AffineTransform.getScaleInstance(1, -1));\n g2.setTransform(transform);\n\n int width = this.width;\n int height = this.height;\n if (scale != 1) {\n g2.scale(scale, scale);\n width = (int) Math.round(width / scale);\n height = (int) Math.round(height / scale);\n }\n AbstractGraphics g = new GraphicsSWT(g2);\n\n g.setScale(scale);\n if (background != null) {\n g.drawImage(background, 0, 0, width, height);\n }\n\n synchronized (WFEventsLoader.GLOBAL_LOCK) {\n for (Widget widget : widgets) {\n if (widget != null) widget.paint(g, width, height);\n }\n }\n // draw semi-transparent pixel in top left corner to workaround famous OpenGL feature\n g.drawRect(0, 0, 1, 1, Color.WHITE, .5, PlateStyle.RectangleType.SOLID);\n\n g2.dispose();\n }", "public void render () \n\t{ \n\t\trenderWorld(batch);\n\t\trenderGui(batch);\n\t}", "public final void draw2D()\n {\n if ( GameLevel.current() != null )\n {\n //draw player's wearpon or gadget\n GameLevel.currentPlayer().drawWearponOrGadget();\n }\n\n //draw avatar message ( if active )\n AvatarMessage.drawMessage();\n\n //draw all hud messages\n HUDMessage.drawAllMessages();\n\n //draw fullscreen hud effects\n HUDFx.drawHUDEffects();\n\n //draw frames per second last\n Fps.draw();\n\n //draw ammo if the wearpon uses ammo\n if ( GameLevel.currentPlayer().showAmmoInHUD() )\n {\n drawAmmo();\n }\n\n //draw health\n drawHealth();\n\n //draw debug logs\n //Level.currentPlayer().drawDebugLog( g );\n }", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) {\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t// get graphics object for drawing on canvas\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t// clear screen before drawing new objects to it\n\t\tg.setColor(style.getBackCol());\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t// use style from server to draw time information, only if we have\n\t\t// synced the time with the server.\n\t\tg.setColor(style.getTimeCol());\n\t\tif (tim.TIME_SYNCED) {\n\t\t\t// set font and font size, perhaps font can also be customizable in\n\t\t\t// the future?\n\t\t\tg.setFont(new Font(\"TimesRoman\", Font.PLAIN, style.getTimePoint()));\n\t\t\tFontMetrics metrics = g.getFontMetrics(new Font(\"TimesRoman\", Font.PLAIN, style.getTimePoint()));\n\t\t\t// get height to offset text by when drawing.\n\t\t\tint hgt = metrics.getHeight();\n\t\t\t// System.out.println(\"\" +style.getLeft() * WIDTH);\n\t\t\tg.drawString(tim.getTime(), (int) (style.getLeft() * WIDTH), (int) (style.getTop() * HEIGHT + hgt));\n\t\t}\n\t\t// clear graphics from memory and draw screen buffer\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "private void render() {\n\t\tBufferStrategy bs = this.getBufferStrategy();\r\n\t\tif (bs == null) {\r\n\t\t\tcreateBufferStrategy(3);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//Initiates Graphics class using bufferStrategy\r\n\t\tGraphics g = bs.getDrawGraphics();\r\n\t\t\r\n\t\t//displays img on screen\r\n\t\tg.drawImage(img, 0, 0, null);\r\n\t\t\r\n\t\tg.setColor(Color.CYAN);\r\n\t\tg.drawString(fps + \" FPS\", 10, 10);\r\n\t\tg.setFont(new Font(\"Arial\", 0, 45));\r\n\r\n\t\tg.dispose();//clears graphics\r\n\t\tbs.show();//shows graphics\r\n\t}", "public void draw() {\r\n\t\tif (active_)\r\n\t\t\tGlobals.getInstance().getCamera().drawImageOnHud(posx_, posy_, currentImage());\r\n\t}", "public void render(Screen screen) {\n\t\tscreen.renderInterface(x, y, width, height, button, clicked); //renders all 4 pieces of the 32x32 sprite. Modifying the x or y will change where the screen is centered.\n\t}", "public void draw(Graphics window);", "public void draw()\n {\n canvas.setForegroundColor(color);\n canvas.fillCircle(xPosition, yPosition, diameter);\n }", "public void display() {\n shadow.display();\r\n strokeWeight(strokeWeight);\r\n fill(boxColour);\r\n rect(x, y, w, h, 7);\r\n }", "public DrawGUI() {\n\n\t\tthis.setTitle(\"Draw 0.2\");\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(\"img/logo.png\"));\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdrawingContainer = new DrawingContainer();\n\t\tscrollpane = new JScrollPane(drawingContainer);\n\n\t\tcontroller = new DrawingController(this);\n\t\ttools = new ToolBox(controller);\n\t\tcontroller.newDrawing(new Dimension(500, 380));\n\n\t\t// statusBar = new StatusBar();\n\n\t\tgetContentPane().add(tools, BorderLayout.WEST);\n\t\tgetContentPane().add(scrollpane, BorderLayout.CENTER);\n\t\t// getContentPane().add(statusBar, BorderLayout.SOUTH);\n\n\t\tMenuListener mainMenuListener = new MenuListener(controller);\n\t\tJMenuBar mainMenu = new MainMenu(mainMenuListener);\n\t\tthis.setJMenuBar(mainMenu);\n\n\t\tpack();\n\t\tsetVisible(true);\n\n\t}", "@Override\n\tpublic void paint(Graphics graphics) {\n\t\ttry {\n\t\t\t// calls default paint functions in parent object\n\t\t\tsuper.paintComponents(s.getDrawGraphics());\n\n\t\t\t// sets buffer panel to size of window\n\t\t\tbufferPanel.setBounds(0, 0, this.getWidth(), this.getHeight());\n\t\t\t// calls function to draw onto g\n\t\t\tGraphics2D g = (Graphics2D) s.getDrawGraphics();\n\t\t\tdrawJavaString(i_console);\n\t\t\tdrawJavaString(i_palette);\n\n\t\t\tif (i_console_docked) {\n\t\t\t\ti_console.setBounds(p_console.getBounds());\n\t\t\t}\n\t\t\tif (i_palette_docked) {\n\t\t\t\ti_palette.setBounds(p_palette.getBounds());\n\t\t\t}\n\n\t\t\tcontroller.showRects(g);\n\n\t\t\tif(!rightMenuClick){\n\t\t\t\tif(this.getExtendedState() == Frame.MAXIMIZED_BOTH){\n\t\t\t\t\tg.translate(i_palette.getBounds().x, i_palette.getBounds().y+45);\n\t\t\t\t\ti_palette.paintAll(g);\n\t\t\t\t\tg.translate(i_console.getBounds().x - i_palette.getBounds().x, i_console.getBounds().y - i_palette.getBounds().y);\n\t\t\t\t\ti_console.paintAll(g);\n\t\t\t\t\tController.fullscreen = true;\n\t\t\t\t}else{\n\t\t\t\t\tg.translate(i_palette.getBounds().x+5, i_palette.getBounds().y+51);\n\t\t\t\t\ti_palette.paintAll(g);\n\t\t\t\t\tg.translate(i_console.getBounds().x - i_palette.getBounds().x, i_console.getBounds().y - i_palette.getBounds().y);\n\t\t\t\t\ti_console.paintAll(g);\n\t\t\t\t\tController.fullscreen = false;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcontroller.showBorders(g, 5, 51);\n\t\t\t}\n\n\t\t\ts.show();\n\t\t\tToolkit.getDefaultToolkit().sync();\n\t\t\tif (rectToBeRemoved != -1) {\n\t\t\t\tdelete(rectToBeRemoved);\n\t\t\t\tcontroller.getRects().remove(rectToBeRemoved);\n\t\t\t\trectToBeRemoved = -1;\n\t\t\t}\n\t\t\trepaint();\n\t\t} catch (Exception ex) {\n\t\t}\n\t}", "public void display ( GameObject obj ) {\n Screen tempScreen = Screen.getScreen();\n\n // I could script this! Quickly change the colors\n\n tempScreen.fill(color); //set color\n\n\n tempScreen.noStroke(); //no stroke\n tempScreen.rect(obj.x, obj.y, obj.width, obj.height); //make a rectangle\n }", "public void render(){\n\t\tBufferStrategy bs = frame.getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tframe.createBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\trenderGraphics(bs);\n\t}", "public void draw() {\n \n }", "public final void drawChildren() {\n // Set my clipping rectangle\n assert (window != null);\n assert (getScreen() != null);\n Screen screen = getScreen();\n\n // Special case: TStatusBar is drawn by TApplication, not anything\n // else.\n if (this instanceof TStatusBar) {\n return;\n }\n\n screen.setClipRight(width);\n screen.setClipBottom(height);\n\n int absoluteRightEdge = window.getAbsoluteX() + window.getWidth();\n int absoluteBottomEdge = window.getAbsoluteY() + window.getHeight();\n if (!(this instanceof TWindow) && !(this instanceof TVScroller)) {\n absoluteRightEdge -= 1;\n }\n if (!(this instanceof TWindow) && !(this instanceof THScroller)) {\n absoluteBottomEdge -= 1;\n }\n int myRightEdge = getAbsoluteX() + width;\n int myBottomEdge = getAbsoluteY() + height;\n if (getAbsoluteX() > absoluteRightEdge) {\n // I am offscreen\n screen.setClipRight(0);\n } else if (myRightEdge > absoluteRightEdge) {\n screen.setClipRight(screen.getClipRight()\n - (myRightEdge - absoluteRightEdge));\n }\n if (getAbsoluteY() > absoluteBottomEdge) {\n // I am offscreen\n screen.setClipBottom(0);\n } else if (myBottomEdge > absoluteBottomEdge) {\n screen.setClipBottom(screen.getClipBottom()\n - (myBottomEdge - absoluteBottomEdge));\n }\n\n // Set my offset\n screen.setOffsetX(getAbsoluteX());\n screen.setOffsetY(getAbsoluteY());\n\n // Draw me\n draw();\n\n // Continue down the chain\n for (TWidget widget: children) {\n widget.drawChildren();\n }\n }", "@Override\n public final void drawScreen(int mouseX, int mouseY, float partialTicks) {\n\t\tif(behindScreen != null) {\n\t\t\tbehindScreen.drawScreen(-9999, -9999, partialTicks);\n\t\t}\n\t\t\n\t\t// ...\n\t\tinstance.setCurrentScreen(this, this.zLevel, this.fontRendererObj, this.itemRender);\n\t\tinstance.drawDefaultBackground();\n\t\t\n\t\t// Draw all components.\n\t\tfor(QADComponent component : components) {\n\t\t\tcomponent.draw(mouseX-component.getX(), mouseY-component.getY(), partialTicks, instance);\n\t\t}\n\t\t\n\t\tif(shouldDebugRender) {\n\t\t\tQADGuiScreenDebugRenderer.debugRender(this, components, instance, mouseX, mouseY, partialTicks);\n\t\t}\n\t\t\n\t\tdrawCustom(mouseX, mouseY, partialTicks, instance);\n\t\t\n\t\t// Check for tooltips, and draw them if necessary.\n\t\tfor(QADComponent component : components) {\n\t\t\tif(component.isPointInside(mouseX, mouseY)) {\n\t\t\t\tList<String> text = component.getTooltip(mouseX, mouseY);\n\t\t\t\t\n\t\t\t\tif(text != null) {\n\t\t\t\t\tint yPos = mouseY;\n\t\t\t\t\t\n\t\t\t\t\tif(text.get(0).equalsIgnoreCase(\"ylock\")) {\n\t\t\t\t\t\tint add = component instanceof QADRectangularComponent ? ((QADRectangularComponent) component).getHeight() : 20;\n\t\t\t\t\t\tyPos = component.getY()+add+fontRendererObj.FONT_HEIGHT*2;\n\t\t\t\t\t\ttext = text.subList(1, text.size()-1);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tthis.drawHoveringText(text, mouseX, yPos);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Debug: Draw cursor position marker.\n\t\tif(Boolean.TRUE.booleanValue() && Mouse.isInsideWindow()) {\n\t\t\tfinal int color = 0x1ACCEEFF;\n\t\t\tinstance.drawHorizontalLine(0, width, mouseY, color);\n\t\t\tinstance.drawVerticalLine(mouseX, -1, height, color);\n\t\t}\n\t\t\n }", "private void drawToScreen() {\n \n Graphics g2 = getGraphics();\n /*g2.drawImage(image, 0, 0, \n WIDTH * SCALE, HEIGHT * SCALE, \n 0, 0, WIDTH, HEIGHT, \n this);*/\n g2.drawImage(image,\n (int)gsm.getAttribute(\"CAMERA_X1\"),\n (int)gsm.getAttribute(\"CAMERA_Y1\"),\n (int)gsm.getAttribute(\"CAMERA_X1\") + WIDTH*SCALE,\n (int)gsm.getAttribute(\"CAMERA_Y1\") + HEIGHT*SCALE,\n (int)gsm.getAttribute(\"WORLD_X1\"),\n (int)gsm.getAttribute(\"WORLD_Y1\"),\n (int)gsm.getAttribute(\"WORLD_X1\") + WIDTH,\n (int)gsm.getAttribute(\"WORLD_Y1\") + HEIGHT,\n this);\n\t\t/*g2.drawImage(image, 0, 0,\n\t\t\t\tWIDTH * SCALE, HEIGHT * SCALE,\n\t\t\t\tnull);*/\n\t\tg2.dispose();}", "private void draw()\n {\n if(surfaceHolder.getSurface().isValid())\n {\n // Locks the surface. Can't be accessed or changed before it is unlocked again\n canvas = surfaceHolder.lockCanvas();\n\n // Background color\n canvas.drawColor(Color.BLACK);\n\n\n // ===================== DRAW SPRITES ======================= //\n // Draw Pacman\n canvas.drawBitmap(pacman.getBitmap(), pacman.getX(), pacman.getY(), paint);\n\n // Draw all Monsters\n for(Monster monster : monsterList)\n {\n canvas.drawBitmap(monster.getBitmap(), monster.getX(), monster.getY(), paint);\n }\n\n // Draw Cherries\n for(Cherry cherry : cherryList)\n {\n canvas.drawBitmap(cherry.getBitmap(), cherry.getX(), cherry.getY(), paint);\n }\n\n // Draw Key\n canvas.drawBitmap(key.getBitmap(), key.getX(), key.getY(), paint);\n\n // Draw Stars\n paint.setColor(Color.WHITE);\n for(Star star : starList)\n {\n paint.setStrokeWidth(star.getStarWidth());\n canvas.drawPoint(star.getX(), star.getY(), paint);\n }\n\n // ======================================================= //\n\n\n if(!gameEnded)\n {\n // Draw user HUD\n paint.setTextAlign(Paint.Align.LEFT);\n paint.setColor(Color.WHITE);\n paint.setTextSize(40);\n paint.setTypeface(Typeface.MONOSPACE);\n canvas.drawText(\"Level: \" + level, 10, 50, paint);\n canvas.drawText(\"Hi Score: \" + hiScore, (screenMax_X /4) * 3, 50 , paint);\n canvas.drawText(\"Score: \" + score, screenMax_X / 3, 50 , paint);\n canvas.drawText(\"New level in: \" + distanceRemaining + \"km\", screenMax_X / 3, screenMax_Y - 20, paint);\n canvas.drawText(\"Lives: \" + pacman.getLifes(), 10, screenMax_Y - 20, paint);\n canvas.drawText(\"Speed \" + pacman.getSpeed() * 100 + \" Km/h\", (screenMax_X /4) * 3, screenMax_Y - 20, paint);\n\n } else {\n\n // Draw 'Game Over' Screen\n paint.setTextAlign(Paint.Align.CENTER);\n paint.setTypeface(Typeface.MONOSPACE);\n paint.setFakeBoldText(true);\n paint.setTextSize(150);\n canvas.drawText(\"Game Over\", screenMax_X / 2, 350, paint);\n paint.setTextSize(50);\n paint.setTypeface(Typeface.DEFAULT);\n paint.setFakeBoldText(false);\n canvas.drawText(\"Hi Score: \" + hiScore, screenMax_X / 2, 480, paint);\n canvas.drawText(\"Your Score: \" + score, screenMax_X / 2, 550, paint);\n paint.setTextSize(80);\n canvas.drawText(\"Tap to replay!\", screenMax_X / 2, 700, paint);\n }\n\n if(levelSwitched)\n {\n // Notify the user whenever level is switched\n paint.setTextSize(100);\n paint.setTypeface(Typeface.MONOSPACE);\n paint.setFakeBoldText(true);\n paint.setTextAlign(Paint.Align.CENTER);\n canvas.drawText(\"Level \" + level + \"!\", screenMax_X / 2, 350, paint);\n }\n\n // Unlcock canvas and draw it the scene\n surfaceHolder.unlockCanvasAndPost(canvas);\n }\n }", "@Override\n public void paintComponent(Graphics g)\n {\n m_g = g;\n // Not sure what our parent is doing, but this seems safe\n super.paintComponent(g);\n // Setup, then blank out with white, so we always start fresh\n g.setColor(Color.white);\n g.setFont(null);\n g.clearRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.fillRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.setColor(Color.red);\n //g.drawRect(10,10,0,0);\n //drawPoint(20,20);\n \n // Call spiffy functions for the training presentation\n m_app.drawOnTheCanvas(new ExposedDrawingCanvas(this));\n m_app.drawOnTheCanvasAdvanced(g);\n \n // ADVANCED EXERCISE: YOU CAN DRAW IN HERE\n \n // END ADVANCED EXERCISE SPACE\n \n // Clear the special reference we made - don't want to abuse this\n m_g = null;\n \n \n // Schedule the next repaint\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n m_app.repaint();\n try\n {\n Thread.sleep(100);\n }\n catch (Exception e)\n { \n \n }\n }\n }); \n }", "@Override\n\tpublic void prepareScreen() {\n\t\tgl.glColor3d(0.0, 0.0, 0.0);\n\t\tgl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t}", "public void draw() {\r\n System.out.print(this);\r\n }", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "public static void draw() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\" \" + board[0][0] + \" | \" + board[0][1] + \" | \"\n\t\t\t\t+ board[0][2]);\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\"---+---+---\");\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\" \" + board[1][0] + \" | \" + board[1][1] + \" | \"\n\t\t\t\t+ board[1][2]);\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\"---+---+---\");\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\" \" + board[2][0] + \" | \" + board[2][1] + \" | \"\n\t\t\t\t+ board[2][2]);\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println();\n\t}", "public void draw(){\r\n\r\n\t\t\t//frame of house\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(250,0);\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.move(0,300);\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.move(-250,0);\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\r\n\t\t\t//door\r\n\t\t\tpen.setColor(Color.blue);\r\n\t\t\tpen.setWidth(10);\r\n\t\t\tpen.move(50,0);\r\n\t\t\tpen.move(50,100);\r\n\t\t\tpen.move(-50,100);\r\n\t\t\tpen.move(-50,0);\r\n\t\t\tpen.move(0,0);\r\n\r\n\t\t\t//windows\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(-150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\r\n\t\t\t//extra\r\n\t\t\tpen.move(-45,120);\r\n\t\t\tpen.down();\r\n\t\t\tpen.setColor(Color.black);\r\n\t\t\tpen.drawString(\"This is a house\");\r\n\t}", "public void draw() {\n draw(clientController.getUser().getShows());\n }", "protected DrawSurface() {\n\t\taiDrawingOrder = new Object[] { RANGE_CURSOR_DRAWSURFACE, GRID_DRAWSURFACE, GRAPH_DRAWSURFACE,\n\t\t\t\tCURSOR_DRAWSURFACE, ZOOM_DRAWSURFACE, };\n\n\t\t// we know that we paint all our own pixels.\n\t\tsetOpaque(false);\n\n\t\t// default background\n\t\tsetBackground(Color.BLACK);\n\n\t\t// give us the same default front as a JPanel\n\t\tsetFont(UIManager.getFont(\"Panel.font\"));\n\n\t\t/*\n\t\t * We create our own cursor because the default cross-hair cursor has\n\t\t * some weird display issues - it seems to fade into some waterfall\n\t\t * graphs, and seems to interact with the green FFT line to produce red\n\t\t * pixels. Weird.\n\t\t */\n\t\tsetCursor(DEFAULT_CROSSHAIR_CURSOR);\n\n\t\tPeralexLibsBundle.addLocaleListener(this); // do after components have\n\t\t\t\t\t\t\t\t\t\t\t\t\t// been initialised\n\t}", "public void draw() {\n }", "private void render() {\n\n // Clear the whole screen\n gc.clearRect(0, 0, canvas.getWidth(), canvas.getHeight());\n\n // Draw the background image\n gc.drawImage(curMap.getMap(), 0,0, canvas.getWidth(), canvas.getHeight());\n\n // Draw Paths\n for(DrawPath p : pathMap.values()) {\n p.draw(gc);\n }\n\n // Draw all of the lines and edges\n\n // Lines\n for(Line l : lineMap.values()) {\n l.draw(gc);\n }\n\n // Points\n for(Point p : pointMap.values()) {\n p.draw(gc);\n }\n\n // Images\n for(Img i : imgMap.values()) {\n i.draw(gc);\n }\n\n // Text\n for(Text t : textMap.values()) {\n t.draw(gc);\n }\n }", "private void draw() {\n frames++;\n MainFrame.singleton().draw();\n }", "public void draw() {\n\t\tfor (int i = 0; i < particleCount; i++) {\r\n\t\t\tif (particles[i] != null) {\r\n\t\t\t\tglBegin(GL_QUADS);\r\n\t\t\t\t{\r\n\t\t\t\t\tparticles[i].draw();\r\n\t\t\t\t}\r\n\t\t\t\tglEnd();\r\n\t\t\t}\r\n\t\t}\r\n\t\tglColor3f(1, 1, 1);\r\n\t}", "public void paint(Graphics g) {\n setViewWindow(myCurrentLeftX, 0, DISP_WIDTH, DISP_HEIGHT);\n paint(g, CANVAS_X, CANVAS_Y);\n }", "public void draw() {\n drawNode(root, true);\n }", "public void drawScreen(int var1, int var2, float var3) {\r\n\t\tthis.drawDefaultBackground();\r\n\t\tthis.guiLeft = (this.width - this.xSize) / 2;\r\n\t\tthis.guiTop = (this.height - this.ySize) / 2;\r\n\t\tGL11.glPushMatrix();\r\n\t\tGL11.glTranslatef(this.guiLeft, this.guiTop, 0.0F);\r\n\t\tthis.mc.renderEngine.bindTexture(this.mc.renderEngine\r\n\t\t\t\t.getTexture(\"/gui/elevatorgui.png\"));\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tthis.drawTexturedModalRect(0, 0, 0, 0, this.xSize, this.ySize);\r\n\t\tGL11.glTranslatef(0.0F, 0.0F, 0.0F);\r\n\t\tGL11.glPopMatrix();\r\n\t\tsuper.drawScreen(var1, var2, var3);\r\n\r\n\t\tif (!this.optionsOpen) {\r\n\t\t\tif (!this.screenTitle.equals(\"\")) {\r\n\t\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer,\r\n\t\t\t\t\t\tthis.screenTitle, this.width / 2, this.titleTop, 0);\r\n\t\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer, \"\"\r\n\t\t\t\t\t\t+ this.screenSubtitle + \"\", this.width / 2,\r\n\t\t\t\t\t\tthis.subtitleTop, 0);\r\n\t\t\t} else {\r\n\t\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer, \"\"\r\n\t\t\t\t\t\t+ this.screenSubtitle + \"\", this.width / 2,\r\n\t\t\t\t\t\tthis.titleTop, 0);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (this.screenTitle != null && !this.screenTitle.equals(\"\")) {\r\n\t\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer,\r\n\t\t\t\t\t\tthis.screenTitle, this.width / 2 - 20,\r\n\t\t\t\t\t\tthis.subtitleTop, 0);\r\n\t\t\t} else {\r\n\t\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer,\r\n\t\t\t\t\t\t\"[Unnamed Elevator]\", this.width / 2, this.subtitleTop,\r\n\t\t\t\t\t\t0);\r\n\t\t\t}\r\n\r\n\t\t\tthis.drawUnshadedCenteredString(this.fontRenderer, \"Options\",\r\n\t\t\t\t\tthis.width / 2, this.titleTop, 0);\r\n\t\t\tthis.floorNamesList.drawScreen(var1, var2, var3);\r\n\t\t}\r\n\t}", "public void draw()\n\t{\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, texture_id);\n\t\tdrawMesh(gl);\n\t}", "private void render() {\n\n if (state == STATE.PAUSE) {\n\n return;\n }\n\n\n if (state == STATE.MENU) {\n\n menu.draw();\n arrow.render();\n return;\n\n }\n\n if (state == STATE.INSTRUCTIONS) {\n instructions.draw();\n return;\n }\n\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).render();\n }\n\n\n for (Enemy enemy : enemies) {\n enemy.render();\n }\n\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).render();\n }\n\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).render();\n }\n\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).render();\n }\n\n topBar.render();\n bottomBar.render();\n fps.render();\n score.render();\n\n\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }" ]
[ "0.7989369", "0.77308077", "0.75254714", "0.74864423", "0.748064", "0.74355334", "0.7434093", "0.742148", "0.7397979", "0.7381389", "0.73742825", "0.73723125", "0.7342041", "0.73172706", "0.7283561", "0.7282096", "0.726338", "0.7250468", "0.7232651", "0.72291136", "0.7206995", "0.7192055", "0.7177651", "0.7173436", "0.71546525", "0.71452624", "0.70925164", "0.7075723", "0.7051093", "0.7047826", "0.70423573", "0.7030281", "0.70267844", "0.70117664", "0.69920665", "0.6989085", "0.6985911", "0.6982129", "0.6981123", "0.69659835", "0.69623435", "0.69478595", "0.69442606", "0.6935027", "0.69327664", "0.693259", "0.69276005", "0.69243073", "0.690608", "0.69014347", "0.6888531", "0.68760777", "0.68740714", "0.68731266", "0.68720037", "0.68554485", "0.68532324", "0.68531805", "0.6837202", "0.6824287", "0.6821355", "0.6819887", "0.68126476", "0.68121123", "0.68077", "0.6794246", "0.6789615", "0.6778619", "0.6773818", "0.67696106", "0.6766918", "0.67535365", "0.67481464", "0.6738407", "0.67253846", "0.6719633", "0.67189443", "0.671748", "0.6705193", "0.6686236", "0.666979", "0.6666378", "0.6660851", "0.6655035", "0.66474086", "0.6645916", "0.6639117", "0.6637752", "0.66308945", "0.6627239", "0.6626285", "0.66154206", "0.6601654", "0.6585982", "0.65839493", "0.65830106", "0.6582976", "0.6574869", "0.6549406", "0.65446407", "0.65446407" ]
0.0
-1
Draw the foreground layer for the GuiContainer (everything in front of the items)
@Override protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) { this.fontRenderer.drawString(this.toolboxInv.getDisplayName().getUnformattedText(), 8, 6, 4210752); this.fontRenderer.drawString(this.playerInv.getDisplayName().getUnformattedText(), 8, this.ySize - 96 + 2, 4210752); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {\n }", "protected void drawGuiContainerForegroundLayer(int par1, int par2)\n {\n String s = this.tileEntity.hasCustomInventoryName() ? this.tileEntity.getInventoryName() : I18n.format(this.tileEntity.getInventoryName(), new Object[0]);\n this.fontRendererObj.drawString(s, this.xSize / 2 - this.fontRendererObj.getStringWidth(s) / 2, 6, 4210752);\n this.fontRendererObj.drawString(I18n.format(\"container.inventory\", new Object[0]), 8, this.ySize - 96 + 2, 4210752);\n }", "protected void drawGuiContainerForegroundLayer(int par1, int par2)\n {\n super.fontRenderer.drawString(this.name, (super.xSize - super.fontRenderer.getStringWidth(this.name)) / 2, 6, 4210752);\n super.fontRenderer.drawString(this.inv, 8, super.ySize - 96 + 2, 4210752);\n }", "protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)\r\n\t{\r\n\t\t// This method will simply draw inventory names on the screen - you could do without it entirely\r\n\t\t// if that's not important to you, since we are overriding the default inventory rather than\r\n\t\t// creating a specific type of inventory\r\n\t\tString s = this.inventory.hasCustomInventoryName() ? this.inventory.getInventoryName() : \" \";\r\n\t\t// with the name \"Custom Inventory\", the 'Cu' will be drawn in the first slot\r\n\t\tthis.fontRendererObj.drawString(s, this.xSize - this.fontRendererObj.getStringWidth(s), 12, 4210752);\r\n\t\t// this just adds \"Inventory\" above the player's inventory below\r\n\t\tthis.fontRendererObj.drawString(\" \", 80, this.ySize - 96, 4210752);\r\n\t}", "@Override\n\tprotected void drawGuiContainerForegroundLayer(int par1, int par2) {\n \n\t\tif(getStyle() == Style.MODERN) {\n\t\t\tint xOffset = 0;\n\t\t\tint yOffset = 0;\n\t\t\tint xInvOffset = 0;\n\t\t\tint yInvOffset = 0;\n\t\t\t\n\t\t\tif(header == 0) {\n\t\t\t\txOffset = -15;\n\t\t\t\tyOffset = -3;\n\t\t\t}\n\t\t\tif(header == 4) {\n\t\t\t\txOffset = 30;\n\t\t\t\tyOffset = -3;\n\t\t\t}\n\t\t\tif(header_type == 3) {\n\t\t\t\txInvOffset = -8;\n\t\t\t\tyInvOffset = 3;\n\t\t\t}\n\t\t\tif(header_type == 4) {\n\t\t\t\txInvOffset = -5;\n\t\t\t\tyInvOffset = 2;\n\t\t\t}\n\t\t\t\n\t\t\tthis.fontRenderer.drawString(TextFormatting.WHITE + this.getName(), 176 / 2 - fontRenderer.getStringWidth(this.getName()) / 2 + xOffset, 5 + yOffset, 4210752);\n\t\t\tthis.fontRenderer.drawString(TextFormatting.WHITE + GCCoreUtil.translate(\"container.inventory\"), 15 + xInvOffset, this.ySize - 24*3 - 13 + yInvOffset, 4210752);\n\t\t\n\t\t} else {\n\t\t\tthis.fontRenderer.drawString(TextFormatting.DARK_GRAY + this.getName(), 176 / 2 - fontRenderer.getStringWidth(this.getName()) / 2, 5, 4210752);\n\t\t\tthis.fontRenderer.drawString(TextFormatting.DARK_GRAY + GCCoreUtil.translate(\"container.inventory\"), 8, this.ySize - 24*3 - 8, 4210752);\n\t\t}\n\t\t\n\n\t}", "protected void drawGuiContainerForegroundLayer(int par1, int par2)\n\t{\n\t\tthis.fontRenderer.drawString(StatCollector.translateToLocal(\"container.inventory\"), 8, this.ySize - 96 + 2, 4210752);\n\n\t\tritualtableInventory.getRitualStrength();\n\t\tritualtableInventory.getMaxRitualStrength();\n\t\tString temp = \"Ritual Table\";\n\n\t\tthis.fontRenderer.drawString(temp, (this.xSize-this.fontRenderer.getStringWidth(temp))/2, 16, 4210752);\n\n\t\tif(ritualtableInventory.getMaxRitualStrength()>0){\n\t\t\ttemp = \"Ritual Square Strength \" + ritualtableInventory.getRitualStrength() + \"/\" + ritualtableInventory.getMaxRitualStrength();\n\t\t\tthis.fontRenderer.drawString(temp, (this.xSize-this.fontRenderer.getStringWidth(temp))/2, 60, 4210752);\n\t\t}\n\t}", "@Override\n protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)\n {\n GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n this.mc.getTextureManager().bindTexture(CHEST_GUI_TEXTURE);\n int i = (this.width - this.xSize) / 2;\n int j = (this.height - this.ySize) / 2;\n this.drawTexturedModalRect(i, j, 0, 0, this.xSize, this.inventoryRows * 18 + 17);\n this.drawTexturedModalRect(i, j + this.inventoryRows * 18 + 17, 0, 126, this.xSize, 96);\n }", "protected void drawGuiContainerBackgroundLayer(float f, int mouseX, int mouseY)\r\n\t{\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tmc.getTextureManager().bindTexture(iconLocation);\r\n\t\tdrawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);\r\n\t\tdrawPlayerModel(guiLeft + 51, guiTop + 75, 30, guiLeft + 51 - xSize_lo, guiTop + 25 - ySize_lo, mc.thePlayer);\r\n\t}", "@Override\n protected void drawGuiContainerForegroundLayer(int par1, int par2) {\n super.drawGuiContainerForegroundLayer(par1, par2);\n drawCenteredString(fontRendererObj, StatCollector.translateToLocal(\"tile.SpawnEggCopyingMachine.name\"), this.xSize / 2, 6, 4210752);\n this.fontRendererObj.drawString(StatCollector.translateToLocal(\"container.inventory\"), 8, this.ySize - 96 + 2, 4210752);\n /*drawCenteredString(fontRendererObj, String.valueOf(tile.hadCopyedTime), 15, 0, 4210752);\n drawCenteredString(fontRendererObj, String.valueOf(tile.maxCopyTime), 15, 25, 4210752);\n drawCenteredString(fontRendererObj, String.valueOf(tile.tableBurnTime), 15, 50, 4210752);\n drawCenteredString(fontRendererObj, String.valueOf(tile.maxBurnTime), 15, 75, 4210752);*/\n\t }", "@Override\n protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {\n }", "@Override\n protected void drawGuiContainerBackgroundLayer(final float opacity, final int x, final int y)\n {\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n ResourceHandler.bindGUI(mc, EnumModeled.machineGrinder.name());\n final int xStart = (width - xSize) / 2;\n final int yStart = (height - ySize) / 2;\n drawTexturedModalRect(xStart, yStart, 0, 0, xSize, ySize);\n int scale;\n if (grinderL.canRun())\n {\n scale = grinderL.getProgressScaled(24);\n drawTexturedModalRect(xStart + 79, yStart + 31, 176, 0, 20, scale);\n }\n }", "@Override\n protected void drawGuiContainerForegroundLayer(int par1, int par2) {\n super.drawGuiContainerForegroundLayer(par1, par2);\n this.fontRendererObj.drawString(StatCollector.translateToLocal(\"gui.Extracter.name\"), 65, 6, 4210752);\n this.fontRendererObj.drawString(StatCollector.translateToLocal(\"container.inventory\"), 8, this.ySize - 96 + 2, 4210752);\n }", "@Override\n\tprotected void drawGuiContainerForegroundLayer(int p_146979_1_, int p_146979_2_) {\n\t\tString s = this.tile.hasCustomInventoryName() ? this.tile.getInventoryName() : I18n.format(this.tile.getInventoryName(), new Object[0]);\n\t\tthis.fontRendererObj.drawString(s, this.xSize / 2 - this.fontRendererObj.getStringWidth(s) / 2, 6, 4210752);\n\t\tthis.fontRendererObj.drawString(I18n.format(\"container.inventory\", new Object[0]), 8, this.ySize - 96 + 2, 4210752);\n\t}", "@Override\n\tprotected void drawGuiContainerForegroundLayer(int par1, int par2)\n\t{\n\t\tfontRendererObj.drawString(invTitle, xSize / 2 - fontRendererObj.getStringWidth(invTitle) / 2, 6, 4210752);\n\t}", "protected void drawGuiContainerBackgroundLayer(float f, int x, int y)\n {\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n super.mc.getTextureManager().bindTexture(background);\n int j = (super.width - super.xSize) / 2;\n int k = (super.height - super.ySize) / 2;\n this.drawTexturedModalRect(j, k, 0, 0, super.xSize, super.ySize);\n int i1;\n\n if (this.container.tileEntity.energy > 0)\n {\n i1 = this.container.tileEntity.energy * 14 / 200;\n\n if (i1 > 14)\n {\n i1 = 14;\n }\n\n this.drawTexturedModalRect(j + 62, k + 36 + 14 - i1, 176, 14 - i1, 14, i1);\n }\n\n i1 = this.container.tileEntity.pumpCharge * 41 / 200;\n\n if (i1 > 41)\n {\n i1 = 41;\n }\n\n this.drawTexturedModalRect(j + 99, k + 61 - i1, 176, 55, 12, 5);\n\n if (i1 > 0)\n {\n this.drawTexturedModalRect(j + 99, k + 25 + 41 - i1, 176, 14, 12, i1);\n }\n\n this.drawTexturedModalRect(j + 98, k + 19, 188, 14, 13, 47);\n }", "protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)\n\t{\n\t\tint var4 = this.mc.renderEngine.getTexture(\"/luxcraft/gui/luxRitualTable.png\");\n\t\tGL11.glColor4f(1.0F, 1F, 1F, 1.0F);\n\t\tthis.mc.renderEngine.bindTexture(var4);\n\t\tint var5 = (this.width - this.xSize) / 2;\n\t\tint var6 = (this.height - this.ySize) / 2;\n\t\tthis.drawTexturedModalRect(var5, var6, 0, 0, this.xSize, this.ySize);\n\n\t\tif(this.ritualtableInventory.schemaMaxAnalyseTime != 0){\n\t\t\tint w = 2+(this.ritualtableInventory.schemaAnalyseTime * 41)/this.ritualtableInventory.schemaMaxAnalyseTime;\n\t\t\tthis.drawTexturedModalRect(var5 + 30, var6 + 37, 176, 14, w, 16);\n\t\t\tthis.drawTexturedModalRect(var5 + 103+43-w, var6 + 37, 176+43-w, 31, w, 16);\n\t\t}\n\n\n\t}", "@Override\r\n\tprotected void drawGuiContainerForegroundLayer(int param1, int param2) {\n\t\tfontRendererObj.drawString(StatCollector.translateToLocal(\"container.wooden_hopper\"), 8, 6, 4210752);\r\n\t\t//draws \"Inventory\" or your regional equivalent\r\n\t\tfontRendererObj.drawString(StatCollector.translateToLocal(\"container.inventory\"), 8, ySize - 96 + 2, 4210752);\r\n\t}", "protected void drawGuiContainerBackgroundLayer(float var1, int var2, int var3)\n {\n int var4 = this.mc.renderEngine.getTexture(\"/shadow/lavafurnace.png\");\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n this.mc.renderEngine.bindTexture(var4);\n int var5 = (this.width - this.xSize) / 2;\n int var6 = (this.height - this.ySize) / 2;\n this.drawTexturedModalRect(var5, var6, 0, 0, this.xSize, this.ySize);\n int var8 = this.furnaceInventory.getFuelScaled(63);\n this.drawTexturedModalRect(var5 + 144, var6 + 11 + 63 - var8, 176, 94 - var8, 17, 31 + var8);\n int var7 = this.furnaceInventory.getCookProgressScaled(24);\n this.drawTexturedModalRect(var5 + 59, var6 + 33, 176, 14, var7 + 1, 16);\n }", "@Override\n protected void drawGuiContainerForegroundLayer(final int x, final int y)\n {\n final String containerName;\n\n if (grinder.isInvNameLocalized())\n {\n containerName = grinder.getInvName();\n } else\n {\n containerName = StatCollector.translateToLocal(grinder.getInvName());\n }\n\n fontRenderer.drawString(containerName, (xSize / 2) - (fontRenderer.getStringWidth(containerName) / 2), 3, 4210752);\n fontRenderer.drawString(StatCollector.translateToLocal(NBTConstants.INVENTORY), 9, (ySize - 96) + 3, 4210752);\n }", "protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {\n\t\tsuper.drawGuiContainerBackgroundLayer(partialTicks, mouseX, mouseY);\n\n\t\tGlStateManager.color(1, 1, 1,1 );\n\t\tthis.mc.getTextureManager().bindTexture(getTexture());\n\t\tthis.drawTexturedModalRect(xBase, yBase, 0, 0, xSize, container.inventoryRows * 18 + 17);\n\t\tthis.drawTexturedModalRect(xBase, yBase + container.inventoryRows * 18 + 17, 0, 126, xSize, 96);\n\t}", "protected void drawGUI() {\n batch.draw(background, 0, 0);\n }", "@Override\r\n\tprotected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)\r\n\t{\n\t\tif(tile.entry != currentEntry)\r\n\t\t{\r\n\t\t\tcurrentEntry = tile.entry;\r\n\t\t\tif(currentEntry == -1)\r\n\t\t\t{\r\n\t\t\t\tcurrentDiscoveries = null;\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tPredicate<IInfuser> predicate = RecipesInfuser.getPredicate(tile.entry);\r\n\t\t\t\tif(predicate instanceof ResearchPredicate)\r\n\t\t\t\t{\r\n\t\t\t\t\tResearchPredicate pred = (ResearchPredicate) predicate;\r\n\t\t\t\t\tcurrentDiscoveries = pred.getResearchItems(EnumResearchItemType.DISCOVERY);\r\n\t\t\t\t} else\r\n\t\t\t\t\tcurrentDiscoveries = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tmc.getTextureManager().bindTexture(gui);\r\n\t\tdrawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);\r\n\t\t\r\n\t\tif(tile.isCooking())\r\n\t\t{\r\n\t\t\tfloat i1 = tile.getCookProgressScaled(46);\r\n\t\t\tfloat i2 = tile.infuserCookTimeDark / tile.currentItemCookCostDark * 46F;\r\n\t\t\tRenderUtil.drawTexturedModalRect(guiLeft + 158, guiTop + 151 - i1, 176, 46 - i1, 6, i1);\r\n\t\t\tRenderUtil.drawTexturedModalRect(guiLeft + 164, guiTop + 151 - i2, 182, 46 - i2, 6, i2);\r\n\t\t}\r\n\t\t\r\n\t\tint phase = tile.getWorld().getMoonPhase();\r\n\t\tdrawTexturedModalRect(guiLeft + 160, guiTop + 8, 188, phase * 8, 8, 8);\r\n\t}", "@Override\r\n\tpublic void paintComponent(Graphics g)\r\n {\r\n\t\tsuper.paintComponent(g);\r\n\t\tg.setColor(getForeground());\r\n\t\tg.fillOval(0,0, this.getWidth(),this.getHeight());\r\n }", "private void drawBackGround() {\r\n\t\tdouble diff = getWidth() / NDECADES;\r\n\t\tdouble xcrd = 0;\r\n\t\tint year = START_DECADE;\r\n\t\tfor (int i = 0; i < NDECADES; i++) {\r\n\t\t\tString yearStr = year + \"\";\r\n\t\t\tadd(new GLine(xcrd, 0, xcrd, getHeight()));\r\n\t\t\tadd(new GLabel(yearStr, xcrd, getHeight()));\r\n\t\t\txcrd = xcrd + diff;\r\n\t\t\tyear = year + 10;\r\n\t\t}\r\n\t\tdouble ycrd = GRAPH_MARGIN_SIZE;\r\n\t\tadd(new GLine(0, ycrd, getWidth(), ycrd));\r\n\t\tadd(new GLine(0, getHeight() - ycrd, getWidth(), getHeight() - ycrd));\r\n\r\n\t}", "protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {\n this.mc.getTextureManager().bindTexture(FURNACE_GUI_TEXTURES);\n int i = this.guiLeft;\n int j = this.guiTop;\n this.drawTexturedModalRect(i, j, 0, 0, this.xSize, this.ySize);\n\n int cookProgressScaled = this.getCookProgressScaled(17);\n this.drawTexturedModalRect(i + 79, j + 34+1, 176, 0, 24, cookProgressScaled);\n\n boolean isBurning = TileEntityCoalGrinder.isBurning(this.tileInventory);\n int burnTime = tileInventory.getField(0);\n int currentItemBurnTime = tileInventory.getField(1);\n\n ((BurnComponent)getComponent(0)).update(isBurning,burnTime,currentItemBurnTime);\n\n super.drawGuiContainerBackgroundLayer(partialTicks,mouseX,mouseY);\n }", "@Override\n protected void renderBg(GuiGraphics guiGraphics, float f, int mouseX, int mouseY) {\n RenderHelpers.bindTexture(texture);\n this.renderBgTab(guiGraphics, f, mouseX, mouseY);\n this.renderBgPlayerInventory(guiGraphics, f, mouseX, mouseY);\n\n fieldChannel.render(guiGraphics, mouseX, mouseY, f);\n fieldSearch.render(guiGraphics, mouseX, mouseY, f);\n drawTabsBackground(guiGraphics);\n drawTabContents(guiGraphics, getMenu().getSelectedTab(), getMenu().getSelectedChannel(), DrawLayer.BACKGROUND,\n f, getGuiLeftTotal() + getSlotsOffsetX(), getGuiTopTotal() + getSlotsOffsetY(), mouseX, mouseY);\n scrollBar.render(guiGraphics, mouseX, mouseY, f);\n\n Optional<ITerminalStorageTabClient<?>> tabOptional = getSelectedClientTab();\n tabOptional.ifPresent(tab -> {\n int offset = 0;\n int gridXSize = getGridXSize();\n int gridYSize = getGridYSize();\n int playerInventoryOffsetX = getPlayerInventoryOffsetX();\n int playerInventoryOffsetY = getPlayerInventoryOffsetY();\n ITerminalStorageTabCommon.SlotPositionFactors factors = new ITerminalStorageTabCommon.SlotPositionFactors(offsetX, offsetY, gridXSize, gridYSize, playerInventoryOffsetX, playerInventoryOffsetY);\n for (ITerminalButton button : tab.getButtons()) {\n Button guiButton = button.createButton(button.getX(leftPos, BUTTONS_OFFSET_X, gridXSize, gridYSize, playerInventoryOffsetX, playerInventoryOffsetY), button.getY(topPos, BUTTONS_OFFSET_Y + offset, gridXSize, gridYSize, playerInventoryOffsetX, playerInventoryOffsetY));\n guiButton.render(guiGraphics, mouseX, mouseY, f);\n if (button.isInLeftColumn()) {\n offset += BUTTONS_OFFSET + guiButton.getHeight();\n }\n }\n\n String tabName = getMenu().getSelectedTab();\n Optional<ITerminalStorageTabCommon> tabCommonOptional = getCommonTab(tabName);\n tabCommonOptional.ifPresent(tabCommon -> {\n for (Pair<Slot, ITerminalStorageTabCommon.ISlotPositionCallback> slot : getMenu().getTabSlots(tabName)) {\n Pair<Integer, Integer> slotPos = slot.getRight().getSlotPosition(factors);\n tab.onCommonSlotRender(this, guiGraphics, DrawLayer.BACKGROUND,\n 0, leftPos + slotPos.getLeft(), topPos + slotPos.getRight(), mouseX, mouseY, slot.getLeft().index, tabCommon);\n }\n });\n });\n }", "@Override\r\n\tprotected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {\n\t\tResourceLocation texture = new ResourceLocation(\"textures/gui/container/hopper.png\");\r\n\t\tthis.mc.renderEngine.bindTexture(texture);\r\n\t\tint x = (width - xSize) / 2;\r\n\t\tint y = (height - ySize) / 2;\r\n\t\tthis.drawTexturedModalRect(x, y, 0, 0, xSize, ySize);\r\n\t\t\r\n\t\t/*int progress = Math.round(24 * (40 - te.getTime()) / 40.0f);\r\n\t\tif(te.getTime() == 0) {\r\n\t\t\tprogress = 0;\r\n\t\t}\r\n\t\tthis.drawTexturedModalRect(x+79, y+29, 176, 0, 17, progress);*/\r\n\t}", "protected void drawMainBackgroundRect(GC pGc, ListItem pItem) {\n\t\tRectangle rect = pItem.getBounds();\n\n\t\tif (pItem.getControl().getSelectedItems().contains(pItem)) {\n\t\t\tpGc.setBackground(getSelectionBackground());\n\t\t} else {\n\t\t\tif (pItem.getControl().getMouseOverItem() == pItem) {\n\t\t\t\tpGc.setBackground(getMouseOverBackground());\n\t\t\t} else {\n\t\t\t\tpGc.setBackground(getBackground());\n\t\t\t}\n\t\t}\n\t\tpGc.fillRectangle(rect);\n\n\t\tpGc.setForeground(getBorderColor());\n\t\tpGc.drawRectangle(rect);\n\t}", "@Override\n protected void paintBorder(Graphics g) {\n g.setColor(getForeground());\n g.drawRoundRect(0, 0, getWidth() - 1, getHeight() - 1, 15, 50);\n }", "@Override\n\tpublic void drawForeground(Canvas canvas, int width, int height) {\n\t\t\n\t}", "@Override\n protected void drawGuiContainerBackgroundLayer(float var1, int var2,int var3) \n\t{\n\t GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n\t this.mc.renderEngine.bindTexture(resource);\n\t int var5 = (this.width - this.xSize) / 2;\n\t int var6 = (this.height - this.ySize) / 2;\n\t this.drawTexturedModalRect(var5, var6, 0, 0, this.xSize, this.ySize);\n\t int b = tile.tableBurnTime; // 取得Tile内的燃料燃烧时间\n\t float maxBurnTime = tile.maxBurnTime*1.0F;// 取得最大燃料燃烧时间,用float,不用的话得不出百分比\n\t if (b > 0 && maxBurnTime > 0) // 确定描绘的时机\n\t {\n\t // 描绘火焰图像\n\t this.drawTexturedModalRect(this.guiLeft + 81, this.guiTop + 37 + (int)(14 - 14 * ((float)b / maxBurnTime)),\n\t \t\t 176, (int)(14 - 14 * ((float)b / maxBurnTime)), 14, (int)(14 * ((float)b / maxBurnTime)));\n\t }\n\t \n\t int out = tile.outputTime; // 取得Tile内的燃料燃烧时间\n\t float maxOutputTime = 100F;// 取得最大燃料燃烧时间,用float,不用的话得不出百分比\n\t if (b > 0 && maxBurnTime > 0) // 确定描绘的时机\n\t {\n\t // 描绘火焰图像\n\t this.drawTexturedModalRect(this.guiLeft + 76, this.guiTop + 20,\n\t \t\t 176, 14, (int)(24*((float)out/maxOutputTime)), 16);\n\t }\n }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n paintBackground(g);\n }", "@Override\r\n public void paintComponent(Graphics g) {\r\n\r\n //Paint background\r\n g.drawImage (background, 0, 0, null);\r\n }", "public void paintComponent(Graphics g) {\r\n super.paintComponent(g);\r\n if (isDrawBackground()) {\r\n paintComponentBackground(g, getBackgroundInsets(), getUiPrefs().getBackgroundColor());\r\n } else if (!isBackgroundTransparent()) {\r\n paintComponentBackground(g, null, Color.WHITE);\r\n }\r\n if (isDrawBorder()) {\r\n paintComponentBorder(g);\r\n }\r\n }", "@Override\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n\t\t RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t \n\t\t GradientPaint gp = new GradientPaint(0, 0,\n\t\t Const.BACKGROUND_COLOR.brighter(), 0, getHeight(),\n\t\t Color.BLUE);\n\t\t \n\t\t g2d.setPaint(gp);\n\t\t g2d.fillRect(0, 0, getWidth(), getHeight());\n\n\t\t\t\tsuper.paintComponent(g);\n\t\t\t}", "@Override\n protected void drawGuiContainerBackgroundLayer(float var1, int var2, int var3) {\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n this.mc.renderEngine.bindTexture((ResourceLocation)back);\n int var5 = (this.width - this.xSize) / 2;\n int var6 = (this.height - this.ySize) / 2;\n this.drawTexturedModalRect(var5, var6, 0, 0, this.xSize, this.ySize);\n int b = tile.tableBurnTime; // 取得Tile内的燃料燃烧时间\n float maxBurnTime = tile.maxBurnTime*1.0F;// 取得最大燃料燃烧时间,用float,不用的话得不出百分比\n if (b > 0 && maxBurnTime > 0) // 确定描绘的时机\n {\n // 描绘火焰图像\n this.drawTexturedModalRect(this.guiLeft + 81, this.guiTop + 37 + (int)(14 - 14 * ((float)b / maxBurnTime)), 176, (int)(14 - 14 * ((float)b / maxBurnTime)), 14, (int)(14 * ((float)b / maxBurnTime)));\n }\n float hadCopyedTime = tile.hadCopyedTime*1.0F;\n float maxCopyTime = tile.maxCopyTime*1.0F;\n \t\t if(hadCopyedTime > 0 && maxCopyTime > 0){\n \t\t\t this.drawTexturedModalRect(this.guiLeft + 77, this.guiTop + 20, 176, 14, (int)(24*(hadCopyedTime / maxCopyTime)), 17);\n \t\t }\n /*drawCenteredString(fontRendererObj, String.valueOf(tile.hadCopyedTime), 15, 0, 4210752);\n drawCenteredString(fontRendererObj, String.valueOf(tile.maxCopyTime), 15, 25, 4210752);\n drawCenteredString(fontRendererObj, String.valueOf(tile.tableBurnTime), 15, 50, 4210752);\n drawCenteredString(fontRendererObj, String.valueOf(tile.maxBurnTime), 15, 75, 4210752);*/\n }", "@Override\n\tprotected void drawBackground(Graphics2D g2) {\n\t\tg2.setColor(BACKGROUND_FILL_COLOR);\n\t\tg2.fillRect(0, 0, this.getWidth(), this.getHeight());\n\t}", "public void updateUI(final Color foreground) {\n\t\tsetUI(new BasicTabbedPaneUI() {\n\t\t\t@Override\n\t\t\tprotected boolean shouldRotateTabRuns(int i) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void installDefaults() {\n\t\t\t\tsuper.installDefaults();\n\t\t\t\thighlight = foreground;\n\t\t\t\tlightHighlight = foreground;\n\t\t\t\tshadow = foreground;\n\t\t\t\tdarkShadow = foreground;\n\t\t\t\tfocus = foreground;\n\n\t\t\t\t// Nice 3 pixel border, although it uses ugly blue ):\n\t\t\t\tthis.contentBorderInsets.top = 3;\n\t\t\t\tthis.contentBorderInsets.left = 3;\n\t\t\t\tthis.contentBorderInsets.right = 3;\n\t\t\t\tthis.contentBorderInsets.bottom = 3;\n\t\t\t\t\n\t\t\t\tthis.selectedTabPadInsets.bottom = 0;\n\t\t\t}\n\n\t\t\tBasicStroke underLineStroke = new BasicStroke(2);\n\n\t\t\t@Override\n\t\t\tprotected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h,\n\t\t\t\t\tboolean isSelected) {\n\t\t\t\tsuper.paintTabBorder(g, tabPlacement, tabIndex, x, y, w, h, isSelected);\n\t\t\t\t\n\t\t\t\tif (isSelected) {\n\t\t\t\t\tGraphics2D g2d = (Graphics2D) g.create();\n\t\t\t\t\tsuper.paintTabBorder(g2d, tabPlacement, tabIndex, x, y, w, h, isSelected);\n\t\t\t\t\tg2d.setStroke(underLineStroke);\n\t\t\t\t\tg2d.drawLine(x + 1, y + h - 1, x + w - 1, y + h - 1);\n\t\t\t\t\tg2d.dispose();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "protected void paintComponent(Graphics g) {\n if (getModel().isArmed()) {\n g.setColor(Color.lightGray);\n } else {\n g.setColor(getBackground());\n }\n g.fillOval(0, 0, getSize().width-1, getSize().height-1);\n super.paintComponent(g);\n }", "protected void paintBorder(Graphics g) {\r\n\t\t\tg.setColor(getForeground());\r\n\t\t\tg.drawOval(0, 0, getSize().width - 1, getSize().height - 1);\r\n\t\t}", "protected void drawForegroundToBackground() {\n if (backgroundColor == null) { return; }\n\n final BufferedImage backgroundBufferedImage = new BufferedImage(dimension.width, dimension.height, this.bufferedImage.getType());\n final Graphics graphics = backgroundBufferedImage.getGraphics();\n\n // draw current color\n graphics.setColor(backgroundColor);\n graphics.fillRect(0, 0, dimension.width, dimension.height);\n graphics.drawImage(bufferedImage, 0, 0, null);\n\n // draw back to original\n final Graphics graphics2 = bufferedImage.getGraphics();\n graphics2.drawImage(backgroundBufferedImage, 0, 0, null);\n }", "protected void paintComponent(Graphics g) {\n\t\t\tif (getModel().isArmed()) {\r\n\t\t\t\tg.setColor(Color.lightGray);\r\n\t\t\t} else {\r\n\t\t\t\tg.setColor(getBackground());\r\n\t\t\t}\r\n\r\n\t\t\tg.fillOval(0, 0, getSize().width - 1, getSize().height - 1);\r\n\r\n\t\t\tsuper.paintComponent(g);\r\n\t\t}", "@Override\n public void paint(final Graphics g)\n {\n try\n {\n offScreenG.setColor(getBackground());\n offScreenG.fillRect(0, 0, getSize().width, getSize().height);\n\n if(offG == null)\n \toffG = offScreenG.create();\n\n if(backGround != null)\n {\n \t//System.out.println(\"drawing the loaded background image\");\n \toffG.drawImage(backGround, 0, 0, this);\n \tfinal int h = backGround.getHeight(this);\n \tfinal int w = backGround.getWidth(this);\n \toffG.setColor(Color.BLACK);\n \t//offG.drawRect(0, 0, w, h);\n }\n\n offScreenG.setColor(Color.BLACK);\n //offScreenG.drawRect(0, 0, this.getWidth()-1, this.getHeight()-1); //disable drawing of bounding box\n\n final Graphics2D g2 = (Graphics2D)offG;\n\t\t\tfinal Composite normC = g2.getComposite();\n\t\t\tg2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_ATOP,(float)0.8));\n for(int i=0; i < associations.size(); i++)\n \tassociations.elementAt(i).render(offG);\n if(mpos != null && start != null)\n {\n \toffG.setColor(Color.DARK_GRAY);\n \tfinal Point rPoint = start.getPoint(mpos);\n \toffG.drawLine(rPoint.x, rPoint.y, mpos.x, mpos.y);\n \tif(retType.equals(\"pair\"))\n \t{\n \t\tdrawArrow(g2, mpos.x, mpos.y, rPoint.x, rPoint.y, 1);\n \t}\n \tdrawArrow(g2, rPoint.x, rPoint.y, mpos.x, mpos.y, 1);\n }\n\t\t\tif(hotspots != null)\n\t\t\t{\n\t\t\t\tfor(int i=0; i < hotspots.size(); i++)\n\t\t\t\t\thotspots.elementAt(i).render(g2);\n\t\t\t}\n\n\t\t\tif(movableObjects != null)\n\t\t\t{\n\t\t\t\tfor(int i=0; i < movableObjects.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tmovableObjects.elementAt(i).render2(g2);\n\t\t\t\t}\n\t\t\t}\n g2.setComposite(normC);\n if(drawHSLabel != null)\n {\n \tif(drawHSLabel.hotSpotLabel != null && !drawHSLabel.hotSpotLabel.equals(\"\"))\n \t{\n\n \t\tfinal Rectangle2D bounds = (new TextLayout(drawHSLabel.hotSpotLabel,g2.getFont(),g2.getFontRenderContext())).getBounds();\n \t\tg2.setColor(Color.YELLOW);\n \t\tg2.fillRect(mpos.x, mpos.y-((int)bounds.getHeight()+4), (int)bounds.getWidth()+10, (int)bounds.getHeight()+8);\n \t\tg2.setColor(Color.BLACK);\n \t\tg2.drawRect(mpos.x, mpos.y-((int)bounds.getHeight()+4), (int)bounds.getWidth()+10, (int)bounds.getHeight()+8);\n \t\tg2.drawString(drawHSLabel.hotSpotLabel, mpos.x+5, mpos.y);\n \t}\n }\n\n g.drawImage(offScreenImg, 0, 0, this);\n\n if (om.equals(\"figure_placement_interaction\")) {\n for (int h=0; h < hotspots.size(); h++) {\n //g.drawRect(hotspots.elementAt(h).coords[0],hotspots.elementAt(h).coords[1],hotspots.elementAt(h).coords[2],hotspots.elementAt(h).coords[3]);\n }\n }\n }\n catch(final Exception exception)\n {\n \texception.printStackTrace();\n }\n }", "@Override\n public void paintMenu(Graphics g) {\n if (visible) {\n g.drawImage(toDraw, xPos, yPos, null); \n \n if (selection >= 0) {\n g.setColor(Colors.getColor(Colors.selectedColor));\n g.fillRoundRect(xPos + wGap, selection * hItemBox + yPos + hGap, getWidth() - wGap, hItemBox, wGap, hGap);\n }\n \n if (!activated) {\n g.setColor(Colors.getColor(Colors.selectedColor));\n g.fillRoundRect(xPos, yPos, getWidth(), getHeight(), wGap, hGap);\n }\n }\n }", "private void drawBackground() {\r\n\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tthis.mc.renderEngine.bindTexture(BACKGROUND_RESOURCE);\r\n\t\tString text = \"Nitro Teleport Waypoints\";\r\n\t\tint posX = (width - SIZE_X) / 2;\r\n\t\tint posY = (height - SIZE_Y) / 2;\r\n\t\tint strWidth = this.fontRendererObj.getStringWidth(text);\r\n\r\n\t\tthis.drawTexturedModalRect(posX, posY, 0, 0, SIZE_X, SIZE_Y);\r\n\t\tthis.drawCenteredString(this.fontRendererObj, text, width / 2, posY - 17, 0xFFFFFF);\r\n\t}", "public void paint() {\r\n\r\n\t\tsuper.paint();\r\n\t\r\n\t\tint len = _composites.size();\r\n\t\tfor (int i = 0; i < len; i++) {\r\n\t\t\tComposite c = _composites.get(i);\r\n\t\t\tc.paint();\r\n\t\t}\t\t\t\t\t\t\r\n\t}", "protected void paintBorder(Graphics g) {\n g.setColor(getForeground());\n g.drawOval(0, 0, getSize().width-1, getSize().height-1);\n }", "@Override\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\t\tGraphics2D g2 = (Graphics2D) g; \n\t\tg2.setColor(Color.lightGray);\n\t\tg2.fill(model.bg);\n\t\tg2.setColor(Color.darkGray);\n\t\tg2.fillPolygon(model.terrain);\n\t\tg2.setColor(Color.gray);\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tg2.draw(model.circles.get(i));\n\t\t}\n\t\tif (model.curCircleSel != -1) {\n\t\t\tg2.setColor(Color.white);\n\t\t\tg2.setStroke(new BasicStroke(3));\n\t\t\tg2.draw(model.circles.get(model.curCircleSel));\n\t\t}\n\t\tg2.setColor(Color.RED);\n\t\tg2.fill(model.pad);\n\t\tif (curPadSel) {\n\t\t\tg2.setColor(Color.white);\n\t\t\tg2.setStroke(new BasicStroke(3));\n\t\t\tg2.draw(model.pad);\n\t\t}\n\t}", "@Override\n\tpublic void render()\n\t{\n\t\tbackground.color().set(grid.backgroundColor());\n\t\tsuper.render();\n\t\tfade.render();\n\t}", "public void paint() {\n BufferStrategy bs;\n bs = this.getBufferStrategy();\n\n Graphics g = bs.getDrawGraphics();\n g.drawImage(background, 0, 0, this.getWidth(), this.getHeight(), null);\n if (this.blackHoles != null) {\n for (BlackHole blackHole : this.blackHoles) {\n blackHole.paint(g);\n }\n }\n if (this.balls != null) {\n for (int i = 0; i <this.balls.size() ; i++) {\n this.balls.get(i).paint(g);\n }\n\n }\n\n bs.show();\n g.dispose();\n\n }", "@Override\n\tpublic void drawScreen(int mouseX, int mouseY, float partialTicks) {\n\t\t super.drawScreen(mouseX, mouseY, partialTicks);\n\t\t updateScreen();\n\t\t \n\t\t GuiScreen.drawRect(0, 0, 0 + fadeIn - fadeOut, this.height, Colorutils.rainbowEffect(index + x*20000000F, 1.0F).getRGB());\n\t\t // GuiButton.drawRect(left, top, right, bottom, color);\n\t\t this.scrollPanel.setDimensions(fadeIn * 3, this.height, fadeOut * 3, this.height);\n\t\t //this.scrollPanel.setDimensions(widthIn, heightIn, topIn, bottomIn);\n\t\t\t//this.drawRect(0, 65, 90 , 16, new Color(255, 255, 255).getRGB());\n\t\t\t//this.drawString(fontRendererObj, s1, 15, 15, -1);\n\t\t\t\n\t\t\t//this.buttonList.add(new GuiButton(191, 15, 15, \"Keystokes\"));\n\t\t \n\t\t // GuiCheckBox.drawRect(0, 65, 90, 16, new Color(0, 0, 0).getRGB());\n\t\t \n\t\t\t\n\t\t\t\n //this.drawRect(left, top, right, bottom, color);\n\t\t\t\n\t\t\t\n\tthis.scrollPanel.drawScreen(mouseX, mouseY, partialTicks);\n\t\t//this.drawCenteredString(this.fontRendererObj, \"Mod Options\", this.width / 2, 8, 16777215);\n\t\t\t\n\t\tsuper.drawScreen(mouseX, mouseY, partialTicks);\n\t}", "@Override\n protected void paintForeground(Graphics2D g) {\n g.setColor(Color.MAGENTA);\n g.setFont(new Font(\"Calibri\", Font.BOLD,20));\n g.drawString(\"Villain Carnage\",5,30);\n g.setFont(new Font(\"Calibri\", Font.BOLD, 15));\n g.drawString((\"Level 1\"),20,60);\n \n \n \n //g.drawImage(ballIcon, 2,2, this);\n \n g.drawString(\"Ball Count :\" + villain.getBallCount(), 20,120 );\n \n //g.drawImage(heartIcon, 20,40, this);\n g.drawString(\"Lives left : \" + villain.getLives(),20,150);\n \n // Sets all the appropriate GUI components for this level, including ball count and \n // lives count which will be incremented/decremented as the player collides with it's\n // respective object\n \n }", "@Override\n public void paintComponent (Graphics g)\n {\n ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g.setColor(BACKGROUND_COLOR);\n g.fillRect(0, 0, getHeight(), getHeight());\n g.setColor(color);\n g.fillOval(0, 0, 30, 30);\n }", "public void draw() {\n background(0);\n}", "private void decorate() {\n setBorderPainted(false);\n setOpaque(true);\n \n setContentAreaFilled(false);\n setMargin(new Insets(1, 1, 1, 1));\n }", "@Override\r\n\tpublic void paintComponent (Graphics g) {\r\n\t\tsuper.paintComponent(g);\r\n\t\tg.drawImage(background, 0, 0, 800, 660, null);\r\n\t}", "@Override\r\n protected void paintComponent(Graphics g) {\r\n\r\n Graphics2D g2d = (Graphics2D) g;\r\n\r\n g2d.setColor(new Color(52, 73, 94));\r\n g2d.fillRect(0, 0, getWidth(), getHeight());\r\n }", "private void drawBackground() {\n g2.setColor(SquareRenderer.BLANK_CELL_COLOR);\n g2.fillRect(BORDER_SIZE, BORDER_SIZE, BOARD_SIZE, BOARD_SIZE);\n }", "@Override \n public void paintBorder(Component c, Graphics g, int x, int y, int width, int height){ \n g.setColor( c.getForeground() ); \n g.drawLine(0, height - 1, width, height - 1); //Border Bottom \n }", "public void display() {\n push();\n noStroke();\n\n // creates the Box around the menus\n fill(backgroundColor); // light grey\n rect(0, 0, sidebarWidth, height);\n\n // for loops that draws each scenes icon\n for (int i = 0; i < sceneAmount; i++) {\n\n //checks the for loop has reach the icon for the current scene\n if (i == scene) {\n push();\n\n // Draws a rectancle in the place where the icon is gonna be\n fill(chosenColor); // light blue color\n rect(0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n pop();\n }\n \n\n // Draws the icons one after the others with a determined distance between them\n image(sidebarLogos[i], 0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n\n // if chosen scene draws glow effect ontop\n if (i == scene) {\n image(glow, 0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n }\n }\n\n // draws shadow image ontop of all the icons\n image(shadow, 0, 0);\n pop();\n }", "private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTransform transform = AffineTransform.getTranslateInstance(0, height);\n transform.concatenate(AffineTransform.getScaleInstance(1, -1));\n g2.setTransform(transform);\n\n int width = this.width;\n int height = this.height;\n if (scale != 1) {\n g2.scale(scale, scale);\n width = (int) Math.round(width / scale);\n height = (int) Math.round(height / scale);\n }\n AbstractGraphics g = new GraphicsSWT(g2);\n\n g.setScale(scale);\n if (background != null) {\n g.drawImage(background, 0, 0, width, height);\n }\n\n synchronized (WFEventsLoader.GLOBAL_LOCK) {\n for (Widget widget : widgets) {\n if (widget != null) widget.paint(g, width, height);\n }\n }\n // draw semi-transparent pixel in top left corner to workaround famous OpenGL feature\n g.drawRect(0, 0, 1, 1, Color.WHITE, .5, PlateStyle.RectangleType.SOLID);\n\n g2.dispose();\n }", "protected void paintComponent(Graphics g) {\n if (getModel().isPressed()) {\n g.setColor(pressedBackgroundColor);\n } else if (getModel().isRollover()) {\n g.setColor(hoverBackgroundColor);\n } else {\n g.setColor(getBackground());\n }\n g.fillRect(0, 0, getWidth(), getHeight());\n super.paintComponent(g);\n }", "protected DrawSurface() {\n\t\taiDrawingOrder = new Object[] { RANGE_CURSOR_DRAWSURFACE, GRID_DRAWSURFACE, GRAPH_DRAWSURFACE,\n\t\t\t\tCURSOR_DRAWSURFACE, ZOOM_DRAWSURFACE, };\n\n\t\t// we know that we paint all our own pixels.\n\t\tsetOpaque(false);\n\n\t\t// default background\n\t\tsetBackground(Color.BLACK);\n\n\t\t// give us the same default front as a JPanel\n\t\tsetFont(UIManager.getFont(\"Panel.font\"));\n\n\t\t/*\n\t\t * We create our own cursor because the default cross-hair cursor has\n\t\t * some weird display issues - it seems to fade into some waterfall\n\t\t * graphs, and seems to interact with the green FFT line to produce red\n\t\t * pixels. Weird.\n\t\t */\n\t\tsetCursor(DEFAULT_CROSSHAIR_CURSOR);\n\n\t\tPeralexLibsBundle.addLocaleListener(this); // do after components have\n\t\t\t\t\t\t\t\t\t\t\t\t\t// been initialised\n\t}", "@Override\n public void paintComponent(final Graphics g) {\n if (!isOpaque()) {\n super.paintComponent(g);\n return;\n }\n \n // use value of JTextField for consistency\n g.setColor(UIManager.getColor(\"TextField.inactiveBackground\"));\n g.fillRect(3, 3, getWidth() - 6, getHeight() - 6);\n \n // do rest, changing opaque to ensure background is not overwritten\n setOpaque(false);\n super.paintComponent(g);\n setOpaque(true);\n }", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制圆形\");\n\t}", "public ColorController createContainerForeground(ControllerCore genCode) {\n\t\tcontainerForegroundTXT = new ColorController(\"containerForeground\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(containerForeground$1LBL);\n\t\t\t\tsetProperty(\"containerForeground\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn containerForegroundTXT;\n\t}", "@Override\n public void mouseExited(MouseEvent e) {\n setBorderPainted(false);\n setForeground(Color.BLACK);\n }", "private void setUpBackGround() {\n try {\n setBackGround(new Image(new FileInputStream(\"images/backgrounds/[email protected]\")));\n } catch (FileNotFoundException ignored) {\n }\n\n\n try {\n ImageView middleGround = new ImageView(new Image(new FileInputStream(\"images/gameIcons/middleGround/battlemap0_middleground.png\")));\n middleGround.setFitHeight(windowHeight);\n middleGround.setFitWidth(windowWidth);\n addComponent(new NodeWrapper(middleGround));\n } catch (FileNotFoundException ignored) {\n }\n\n try {\n ImageView foreGround = new ImageView(new Image(new FileInputStream(\"images/foregrounds/[email protected]\")));\n foreGround.setPreserveRatio(true);\n foreGround.setFitWidth(windowHeight / 3);\n foreGround.relocate(windowWidth - foreGround.getFitWidth(), windowHeight - foreGround.getFitWidth() * foreGround.getImage().getHeight() / foreGround.getImage().getWidth());\n addComponent(new NodeWrapper(foreGround));\n } catch (FileNotFoundException ignored) {\n }\n }", "public void renderGUI(Container drawArea) {\r\n gui.render(drawArea);\r\n }", "@Override\r\n\tpublic void renderBackground() {\n\r\n\t}", "protected void paintComponentBorder(Graphics g) {\r\n int height = this.getHeight();\r\n int width = this.getWidth();\r\n Color c = g.getColor();\r\n g.setColor(getUiPrefs().getBorderColor());\r\n g.drawRoundRect(0, 0, width - 1, height - getInsets().bottom, 10, 10);\r\n g.setColor(c);\r\n }", "@Override\n\tprotected void paintComponent(Graphics g) {\n\t\t\n\t\tGraphics2D graphics2d = (Graphics2D) g;\n\t\tgraphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\n\t\tgraphics2d.setColor(new Color(255, 255, 255, 230));\n\t\tgraphics2d.fillRoundRect(1, 1, getWidth() - 2, getHeight() - 2, 20, 20);\n\t\t\n\t\tgraphics2d.setColor(Color.WHITE);\n\t\tgraphics2d.setClip(0, 0, getWidth(), 30);\n\t\tgraphics2d.fillRoundRect(1, 3, getWidth() - 2, getHeight() - 1, 20, 20);\n\t\tgraphics2d.setClip(null);\n\t\t\n\t\tgraphics2d.setStroke(new BasicStroke(2));\n\t\tgraphics2d.setColor(Color.GRAY);\n\t\tgraphics2d.drawRoundRect(1, 1, getWidth() - 2, getHeight() - 2, 20, 20);\n\t\t\n\t\tgraphics2d.setFont(new Font(\"Arial\", Font.BOLD, 16));\n\t\tgraphics2d.setColor(Color.DARK_GRAY);\n\t\tgraphics2d.drawString(title, 15, 23);\n\n\t}", "public void paintComponent(Graphics g) {\n // Setup\n Graphics2D g2d = (Graphics2D) g; int txt_h = Utils.txtH(g2d, \"0\");\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n // Paint the super\n super.paintComponent(g2d); \n\n // Get the render context and draw if it's valid\n RenderContext myrc = (RenderContext) rc;\n if (myrc != null) {\n // Draw the interactions\n drawInteractions(g2d, myrc);\n\n // Draw the edge lens\n if (mode() == UI_MODE.EDGELENS) drawEdgeLens(g2d, myrc);\n else if (mode() == UI_MODE.TIMELINE) drawTimeLine(g2d, myrc);\n\n // Draw the selection\n Set<String> sel = getRTParent().getSelectedEntities(); if (sel == null) sel = new HashSet<String>();\n if (sel.size() > 0 || sticky_labels.size() > 0) { drawSelectedEntities(g2d, myrc, sel, sticky_labels, txt_h);\n } else { String str = \"\" + mode(); modeColor(g2d); g2d.drawString(\"\" + str, 5, txt_h); }\n\n // Draw the dynamic labels -- under the mouse for context\n String dyn_labeler_copy = dyn_labeler;\n if (dyn_label_cbmi.isSelected() && \n dyn_labeler_copy != null && \n myrc.node_coord_set.containsKey(dyn_labeler_copy)) drawDynamicLabels(g2d, myrc, dyn_labeler_copy);\n\n // If graph info mode, provide additional information\n if (myrc.provideGraphInfo()) { drawGraphInfo(g2d, myrc, sel); }\n\n // Draw the vertex placement heatmap (experimental)\n if (vertex_placement_heatmap_cbmi.isSelected()) {\n\t// Make sure it's a single selection (and that it's also a vertex);\n if (sel != null && sel.size() == 1) {\n\t String sel_str = sel.iterator().next(); if (entity_to_wxy.containsKey(sel_str)) {\n\t int hm_w = myrc.getRCWidth()/4, hm_h = myrc.getRCHeight()/4;\n\t // Determine if the heatmap will be large enough to provide value\n\t if (hm_w >= 50 && hm_h >= 50) {\n\t // Determine if the heatmap needs to be recalculated (doesn't consider if the size is still correct... or if the node shifted...\n\t if (hm_sel == null || hm_sel.equals(sel_str) == false || hm_bi == null) {\n\t hm_bi = GraphUtils.vertexPlacementHeatmap(new UniGraph(graph), sel_str, entity_to_wxy, hm_w, hm_h);\n\t\thm_sel = sel_str;\n }\n Composite orig_comp = g2d.getComposite(); g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.7f)); // Partially transparent\n\t g2d.drawImage(hm_bi, myrc.getRCWidth() - hm_bi.getWidth(null), myrc.getRCHeight() - hm_bi.getHeight(null), null);\n\t g2d.setComposite(orig_comp);\n\t }\n\t }\n\t}\n }\n\n // Draw the highlighted entities\n highlightEntities(g2d, myrc);\n\n // Draw the excerpts\n drawExcerpts(g2d, myrc);\n }\n\n // Draw the help chart\n if (draw_help) drawHelp(g2d);\n }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n Graphics2D g2 = (Graphics2D) g;\n g2.scale(2, 2);\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setColor(Color.WHITE);\n\n Application.grid.draw(g2);\n ui.draw(g2);\n }", "@SuppressWarnings(\"unchecked\")\n private void create() {\n components.clear();\n\n if (content != null) {\n content.clearChildren();\n }\n else {\n content = new Container();\n content.setInsets(INSETS);\n }\n\n GuiComponent guiComponent = (GuiComponent) getReflectedItem().getValue();\n\n // let the user choose which type of backgroundComponent they want.\n Label label = content.addChild(new Label(\"Type\"), 0, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n Container backgroundTypeContainer = content.addChild(new Container(), 0, 1);\n\n ColorRGBA oldColor = BackgroundUtils.getBackgroundColor(guiComponent);\n\n Button colorOnlyBgButton = backgroundTypeContainer.addChild(new Button(\"Color Only\"), 0, 0);\n colorOnlyBgButton.addClickCommands(source -> {\n if (!(guiComponent instanceof QuadBackgroundComponent)) {\n setValue(new QuadBackgroundComponent(oldColor));\n create();\n }\n });\n\n Button colorAndImageBgButton = backgroundTypeContainer.addChild(new Button(\"Color and Image\"), 0, 1);\n colorAndImageBgButton.addClickCommands(source -> {\n if (!(guiComponent instanceof TbtQuadBackgroundComponent)) {\n setValue(BackgroundComponents.gradient(oldColor));\n create();\n }\n });\n\n if (guiComponent instanceof QuadBackgroundComponent) {\n\n try {\n\n Method getter = QuadBackgroundComponent.class.getDeclaredMethod(\"getColor\");\n Method setter = QuadBackgroundComponent.class.getDeclaredMethod(\"setColor\", ColorRGBA.class);\n\n label = content.addChild(new Label(\"Color\"), 1, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n\n ColorRGBAComponent bgColorComponent = new ColorRGBAComponent(guiComponent, getter, setter);\n content.addChild(bgColorComponent.getPanel(), 1, 1);\n components.add(bgColorComponent);\n\n // margin\n getter = QuadBackgroundComponent.class.getDeclaredMethod(\"getMargin\");\n setter = QuadBackgroundComponent.class.getDeclaredMethod(\"setMargin\", Vector2f.class);\n\n label = content.addChild(new Label(\"Margin\"), 2, 0);\n Vector2fComponent marginComponent = new Vector2fComponent(guiComponent, getter, setter);\n content.addChild(marginComponent.getPanel(), 2, 1);\n components.add(marginComponent);\n\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n }\n\n }\n else if (guiComponent instanceof TbtQuadBackgroundComponent) {\n\n TbtQuadBackgroundComponent backgroundComponent = (TbtQuadBackgroundComponent) guiComponent;\n\n try {\n Method getter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"getColor\");\n Method setter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"setColor\", ColorRGBA.class);\n\n label = content.addChild(new Label(\"Color\"), 1, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n\n ColorRGBAComponent bgColorComponent = new ColorRGBAComponent(guiComponent, getter, setter);\n content.addChild(bgColorComponent.getPanel(), 1, 1);\n components.add(bgColorComponent);\n\n label = content.addChild(new Label(\"Image\"), 2, 0);\n label.setTextHAlignment(HAlignment.Right);\n label.setInsets(INSETS);\n\n Button browseImageButton = content.addChild(new Button(\"Select Background Image...\"), 2, 1);\n browseImageButton.setTextVAlignment(VAlignment.Center);\n browseImageButton.addClickCommands(source -> {\n\n JFileChooser jfc = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n jfc.setDialogTitle(\"Select a Background Image...\");\n jfc.setMultiSelectionEnabled(false);\n jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n jfc.setAcceptAllFileFilterUsed(false);\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"PNG Images\", \"png\");\n jfc.addChoosableFileFilter(filter);\n int returnValue = jfc.showOpenDialog(null);\n\n if (returnValue == JFileChooser.APPROVE_OPTION) {\n\n File file = jfc.getSelectedFile();\n\n\n try {\n\n byte[] imageData = Files.readAllBytes(file.toPath());\n byte[] stringData = Base64.getEncoder().encode(imageData);\n\n String imageString = new String(stringData);\n\n // PanelBackground panelBackground = (PanelBackground) getReflectedProperty().getValue();\n // panelBackground.setBase64Image(imageString);\n\n Texture texture = new TextureUtils().fromBase64(imageString);\n\n backgroundComponent.setTexture(texture);\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n });\n\n // margin\n getter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"getMargin\");\n setter = TbtQuadBackgroundComponent.class.getDeclaredMethod(\"setMargin\", Vector2f.class);\n\n label = content.addChild(new Label(\"Margin\"), 3, 0);\n Vector2fComponent marginComponent = new Vector2fComponent(guiComponent, getter, setter);\n content.addChild(marginComponent.getPanel(), 3, 1);\n components.add(marginComponent);\n\n\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n }\n\n }\n\n//\n// this.content = new RollupPanel(\"\", contentContainer, null);\n// this.content.setOpen(false);\n//\n// // background Image\n// Container bgImageContainer = contentContainer.addChild(new Container(new SpringGridLayout(Axis.Y, Axis.X, FillMode.Last, FillMode.Last)), 0, 0);\n// Label bgImageLabel = bgImageContainer.addChild(new Label(\"Background Image\"), 0, 0);\n// bgImageLabel.setTextVAlignment(VAlignment.Center);\n// bgImageLabel.setInsets(new Insets3f(0.0F, 2.0F, 0.0F, 5.0F));\n// Button browseImageButton = bgImageContainer.addChild(new Button(\"Browse...\"), 0, 1);\n// Button removeImageButton = bgImageContainer.addChild(new Button(\"Remove\"), 0, 2);\n// bgImageContainer.addChild(new Container(), 0, 3);\n//\n// browseImageButton.addClickCommands(source -> {\n//\n// JFileChooser jfc = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n// jfc.setDialogTitle(\"Select a Background Image...\");\n// jfc.setMultiSelectionEnabled(false);\n// jfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n// jfc.setAcceptAllFileFilterUsed(false);\n// FileNameExtensionFilter filter = new FileNameExtensionFilter(\"PNG Images\", \"png\");\n// jfc.addChoosableFileFilter(filter);\n// int returnValue = jfc.showOpenDialog(null);\n//\n// if (returnValue == JFileChooser.APPROVE_OPTION) {\n//\n// File file = jfc.getSelectedFile();\n//\n// try {\n// byte[] imageData = Files.readAllBytes(file.toPath());\n// byte[] stringData = Base64.getEncoder().encode(imageData);\n//\n// String imageString = new String(stringData);\n//\n// PanelBackground panelBackground = (PanelBackground) getReflectedProperty().getValue();\n// panelBackground.setBase64Image(imageString);\n//\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// }\n//\n// });\n//\n// removeImageButton.addClickCommands(source -> {\n// PanelBackground panelBackground = (PanelBackground) getReflectedProperty().getValue();\n// panelBackground.setBase64Image(\"\");\n// });\n//\n//\n// try {\n//\n// // color\n// Method get = PanelBackground.class.getMethod(\"getColor\");\n// Method set = PanelBackground.class.getMethod(\"setColor\", ColorRGBA.class);\n//\n// ColorRGBAComponent bgColorComponent = new ColorRGBAComponent(getReflectedProperty().getValue(), get, set);\n// bgColorComponent.setPropertyName(\"Color\");\n// contentContainer.addChild(bgColorComponent.getPanel());\n// components.add(bgColorComponent);\n//\n// // insetTop\n// get = PanelBackground.class.getMethod(\"getInsetTop\");\n// set = PanelBackground.class.getMethod(\"setInsetTop\", int.class);\n//\n// IntComponent insetTopComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetTopComponent.setPropertyName(\"Inset Top\");\n// contentContainer.addChild(insetTopComponent.getPanel());\n// components.add(insetTopComponent);\n//\n// // insetLeft\n// get = PanelBackground.class.getMethod(\"getInsetLeft\");\n// set = PanelBackground.class.getMethod(\"setInsetLeft\", int.class);\n//\n// IntComponent insetLeftComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetLeftComponent.setPropertyName(\"Inset Left\");\n// contentContainer.addChild(insetLeftComponent.getPanel());\n// components.add(insetLeftComponent);\n//\n// // insetBottom\n// get = PanelBackground.class.getMethod(\"getInsetBottom\");\n// set = PanelBackground.class.getMethod(\"setInsetBottom\", int.class);\n//\n// IntComponent insetBottomComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetBottomComponent.setPropertyName(\"Inset Bottom\");\n// contentContainer.addChild(insetBottomComponent.getPanel());\n// components.add(insetBottomComponent);\n//\n// // insetRight\n// get = PanelBackground.class.getMethod(\"getInsetRight\");\n// set = PanelBackground.class.getMethod(\"setInsetRight\", int.class);\n//\n// IntComponent insetRightComponent = new IntComponent(getReflectedProperty().getValue(), get, set);\n// insetRightComponent.setPropertyName(\"Inset Right\");\n// contentContainer.addChild(insetRightComponent.getPanel());\n// components.add(insetRightComponent);\n//\n// // zOffset\n// get = PanelBackground.class.getMethod(\"getzOffset\");\n// set = PanelBackground.class.getMethod(\"setzOffset\", float.class);\n//\n// FloatComponent zOffsetComponent = new FloatComponent(getReflectedProperty().getValue(), get, set);\n// zOffsetComponent.setPropertyName(\"Z-Offset\");\n// contentContainer.addChild(zOffsetComponent.getPanel());\n// components.add(zOffsetComponent);\n//\n// } catch (NoSuchMethodException e) {\n// e.printStackTrace();\n// }\n\n\n }", "public void paint(Graphics g) {\r\n\r\n\t\t// Get the size of the container\r\n\t\tint cwidth = getSize().width;\r\n\t\tint cheight = getSize().height;\r\n\t\tint xCenter = cwidth / 2;\r\n\t\t\r\n\t\tint basinWidth = width + (2 * BORDERWIDTH);\r\n\t\tint basinHeight= height + (2 * BORDERWIDTH);\r\n\r\n\t\tint xOffset = (cwidth - basinWidth) / 2;\r\n\t\tint yOffset = YPAD;\r\n\r\n\t\t// Paint the panel\r\n\t g.setColor(panelColor);\r\n\t\tg.fillRect(0, 0, cwidth, cheight);\r\n\r\n\t\t// Paint the caption\r\n\t\tg.setFont(font);\r\n\t\tFontMetrics fm = g.getFontMetrics();\r\n\t\tint charHeight = fm.getAscent();\r\n\t\tint xText = xCenter - labelDist;\r\n\t\tint chars = caption.length();\r\n\t\tint textTotal = chars * charHeight;\r\n\t\tint yText = (cheight - textTotal) / 2;\r\n\r\n\t\tg.setColor(textColor);\r\n\t\tfor (int index=0; index < chars; index++) {\r\n\t\t\tg.drawString(caption.substring(index, index+1), xText, yText);\r\n\t\t\tyText += charHeight;\r\n\t\t}\r\n\r\n\t\t// Paint the labels, if any\r\n\t\tint yOrg = YPAD + yBarOffset + (fm.getAscent() / 2);\r\n\t\tif (hasLabels) {\r\n\t\t\txText = xCenter + labelDist;\r\n\t\t\tfor (int index=0; index < numberOfSections; index++) {\r\n\t\t\t\tString s = (String) labels.elementAt(index);\r\n\t\t\t\tint textXOffset = fm.stringWidth(s) / 2;\r\n\t\t\t\tRectangle r = bars[index];\r\n\t\t\t\tint barCenter = r.y + r.height / 2;\r\n\t\t\t\tint textYOffset = yOrg + barCenter;\r\n\t\t\t\tg.drawString(s, xText - textXOffset, textYOffset);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Paint the basin\r\n\t\tg.setColor(Color.black);\r\n\t\tg.fillRect(xOffset, yOffset, basinWidth, basinHeight);\r\n\r\n\t\t// Paint the highlights within the basin\r\n\t\tif (hasHighlight) {\r\n\t\t\tg.setColor(highlightDarkerColor);\r\n\t\t\tg.drawLine(xOffset, yOffset, xOffset + basinWidth, yOffset);\r\n\t\t\tg.drawLine(xOffset+1, yOffset+1, xOffset + basinWidth-1, yOffset+1);\r\n\t\t\tg.drawLine(xOffset, yOffset, xOffset, yOffset+basinHeight);\r\n\t\t\tg.drawLine(xOffset+1, yOffset+1, xOffset+1, yOffset+basinHeight-1);\r\n\r\n\t\t\tg.setColor(Color.white);\r\n\t\t\tg.drawLine(xOffset+basinWidth-1, yOffset+1, xOffset+basinWidth-1, yOffset+basinHeight-1);\r\n\t\t\tg.drawLine(xOffset+basinWidth, yOffset, xOffset+basinWidth, yOffset+basinHeight);\r\n\t\t\tg.drawLine(xOffset+1, yOffset+basinHeight-1,xOffset+basinWidth-1, yOffset+basinHeight-1);\r\n\t\t\tg.drawLine(xOffset, yOffset+basinHeight, xOffset+basinWidth, yOffset+basinHeight);\r\n\t\t}\r\n\t\t// Draw the white separators\r\n\t\tint x0 = xOffset + BORDERWIDTH;\r\n\t\tint x1 = x0 + width;\r\n\t\tyOrg = YPAD + yBarOffset;\r\n\r\n\t\tg.setColor(Color.white);\r\n\t\tfor (int line=0; line < numberOfSections + 1; line++) {\r\n\t\t\tint y = lines[line] + yOrg;\r\n\t\t\tg.drawLine(x0, y , x1 , y);\r\n\t\t}\r\n\r\n\t\t// Paint the level\r\n\t\tif (value != 0) {\r\n\t\t\t// Calculate bars to light\r\n\t\t\tint barIndex = round(meterGranularity * value);\r\n\r\n\t\t\tfor (int bar=0; bar < barIndex; bar++) {\r\n\t\t\t\tint barOffset = (numberOfSections - 1) - bar;\r\n\t\t\t\tRectangle r = bars[barOffset];\r\n\t\t\t\tColor c = barColors[barOffset];\r\n\t\t\t\tg.setColor(c);\r\n\t\t\t\tg.fillRect(r.x + x0, r.y + yOrg + 1, r.width, r.height);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void MainMenuComponents(){\n\t\tInterface.menu = new JPanel(new GridBagLayout()) {\n\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\tpublic void paintComponent(Graphics g) {\n\n\t\t\t\tg.drawImage(Interface.img, 0, 0, null);\n\t\t\t}\n\t\t};\n\t\tInterface.single.setPreferredSize(Interface.dim);\n\t\tInterface.single.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.single.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.single.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.single.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.multi.setPreferredSize(Interface.dim);\n\t\tInterface.multi.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.multi.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.multi.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.multi.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.options.setPreferredSize(Interface.dim);\n\t\tInterface.options.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.options.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.options.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.options.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.exit.setPreferredSize(Interface.dim);\n\t\tInterface.exit.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.exit.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.exit.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.exit.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.game.setFocusable(true);\n\t\tInterface.menu.setFocusable(true);\n\t\t\n\t\t\n\t\tInterface.backtosingle.setPreferredSize(Interface.dim);\n\t\tInterface.backtosingle.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtosingle.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtosingle.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtosingle.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtomulti.setPreferredSize(Interface.dim);\n\t\tInterface.backtomulti.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtomulti.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtomulti.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtomulti.setForeground(Color.white);\n\t}", "public void draw() {\n\t\tif (fill) {\n\t\t\tapplet.noStroke();\n\t\t\tapplet.fill(color);\n\t\t} else {\n\t\t\tapplet.noFill();\n\t\t\tapplet.stroke(color);\n\t\t}\n\t\tapplet.rect(position.x, position.y, size.x, size.y);\n\t\tsliderButton.draw(new PVector(-10,0));\n\t}", "private void drawCore(Graphics2D g2d) {\r\n icon.paintIcon(g2d, layout.location.x - icon.getIconWidth() / 2, layout.location.y - icon.getIconHeight() / 2,\r\n g2d.getColor());\r\n labelBox.draw(g2d);\r\n }", "void paintViews() {\n\n //Paint the back button in white\n int paintColour = android.graphics.Color.rgb(253, 195, 204);\n Drawable d = VectorDrawableCompat.create(getResources(), R.drawable.kids_ui_back_anim, null);\n d = DrawableCompat.wrap(d);\n DrawableCompat.setTint(d, paintColour);\n back.setImageDrawable(d);\n }", "public void paintDisplay(final Graphics g) {\r\n int width = displayPanel.getWidth() - 1;\r\n int height = displayPanel.getHeight() - 1;\r\n g.setColor(getBackground());\r\n g.fillRect(0, 0, width + 1, height + 1);\r\n Bounds bounds = topBounds;\r\n if (bounds == null) {\r\n return;\r\n }\r\n \r\n Rectangle b = bounds.bounds;\r\n double scale = Math.min(width / (double) b.width,\r\n height / (double) b.height);\r\n double xOffs = (width - b.width * scale) / 2.0;\r\n double yOffs = (height - b.height * scale) / 2.0;\r\n \r\n paintBounds(g, xOffs, yOffs, scale, bounds, 0);\r\n }", "@Override\r\n\tpublic void draw() {\n\t\tdecoratedShape.draw();\r\n\t\tsetRedBorder(decoratedShape);\r\n\t}", "public void paintComponent(Graphics g) {\n\n\t\t\tif (death==false) {//if we arent dead, the game must be drawn\n\t\t\t\tif (background!=null) {//draw background\n\t\t\t\t\tg.drawImage(background.getImage(), background.getX(), background.getY(), this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (blocks!=null) {//draw the blocks. from the list\n\t\t\t\t\t//System.out.println(\"Yes\");\n\t\t\t\t\tfor (int x = blocks.size()-1; x>= 0; x--) {\n\t\t\t\t\t\tif (blocks.get(x).getDisable()) {//if the blocks are disabled, destroy\n\t\t\t\t\t\t\tblocks.remove(x);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfor (int t = 0; t<blocks.size(); t++) {//now draw the blocks.\n\t\t\t\t\t\t//System.out.printf(\"%d %d %d %d\\n\",blocks.get(t).getX(), blocks.get(t).getY(), blocks.get(t).getWidth(), blocks.get(t).getHeight());\n\t\t\t\t\t\tg.setColor(blocks.get(t).getColor());\n\t\t\t\t\t\tg.fillRect(blocks.get(t).getX(), blocks.get(t).getY(), blocks.get(t).getWidth(), blocks.get(t).getHeight());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (slider!=null) {//if the slider isnt null, draw it\n\t\t\t\t\t//System.out.printf(\"%d %d\\n\",slider.getX(), slider.getY());\n\t\t\t\t\tg.drawImage(slider.getImage(), slider.getX(), slider.getY(), this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ball!=null) {//draw ball.\n\t\t\t\t\tg.drawImage(ball.getImage(), ball.getX(), ball.getY(), this);\n\t\t\t\t}\n\t\t\t\tfor (PowerUp power: powerUps) {//draw all of the powerups\n\t\t\t\t\tg.drawImage(power.getImage(), power.getX(), power.getY(), this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//draw bottom frame\n\t\t\t\t\n\t\t\t\tg.setColor(new Color(0,0,0));\n\t\t\t\tg.fillRect(0, GamePlay.getScreenHeight()-h, GamePlay.getScreenWidth(), h);//this is the menu bar\n\t\t\t\t\n\t\t\t\t//draw score\n\t\t\t\tg.setColor(new Color(255,255,255));\n\t\t\t\tg.setFont(new Font(\"Helvetica\", Font.PLAIN, 32));\n\t\t\t\tg.drawString(String.format(\"Score: %d\", score), GamePlay.getScreenWidth() - 5 - g.getFontMetrics().stringWidth(String.format(\"Score: %d\", score)), GamePlay.getScreenHeight() - 5 - 32);\n\t\t\t\t\n\t\t\t\t//paused\n\t\t\t\tif (stopped) {\n\t\t\t\t\tg.drawString(\"Paused\", 10, 42);//upper left corner of the screen. just say paused so user knows\n\t\t\t\t}\n\t\t\t\t//lives\n\t\t\t\tint livesFontSize=15;\n\t\t\t\tg.setFont(new Font(\"Helvetica\", Font.PLAIN, livesFontSize));\n\t\t\t\tg.drawString(String.format(\"Lives: %d\", lives), 20+5+pauseButton.getWidth(), GamePlay.getScreenHeight()-h+(2+livesFontSize));\n\t\t\t\t\n\t\t\t\tfor (int x=0; x<lives; x++) {//draw one ball for every life they have. \n\t\t\t\t\t//System.out.println(\"hey\");\n\t\t\t\t\tg.drawImage(ball.getImage(), 5+pauseButton.getWidth()+20+(5+ball.getWidth())*x, GamePlay.getScreenHeight()-(h/2)-(ball.getHeight())+(livesFontSize/2), this);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//logo\n\t\t\t\tg.drawImage(logo.getImage(), GamePlay.getScreenWidth()/2-logo.getWidth()/2, GamePlay.getScreenHeight() - (h/2) - (logo.getHeight()/2)-10, this);\n\t\t\t\t\n\t\t\t\t//pause button\n\t\t\t\tg.drawImage(pauseButton.getImage(), 5, GamePlay.getScreenHeight() - (h/2) - pauseButton.getHeight()/2 -10 , this);\n\t\t\t\t\n\t\t\t} else {//this means the player died.\n\t\t\t\t\n\t\t\t\t//draw black background \n\t\t\t\t\n\t\t\t\t//draw logo\n\t\t\t\tlogo.resize(400,100);\n\t\t\t\tg.setColor(new Color(0,0,0));\n\t\t\t\tg.fillRect(0, 0, GamePlay.getScreenWidth(), GamePlay.getScreenHeight());\n\t\t\t\tg.drawImage(logo.getImage(), GamePlay.getScreenWidth()/2 - logo.getWidth()/2, 100, this);\n\t\t\t\t\n\t\t\t\tg.setColor(new Color(255,255,255));//draw game over text\n\t\t\t\tg.setFont(new Font(\"Helvetica\", Font.PLAIN, 60));\n\t\t\t\tg.drawString(\"Game Over!\", GamePlay.getScreenWidth()/2 - g.getFontMetrics().stringWidth(\"Game Over!\")/2, GamePlay.getScreenHeight()/2 - 30);\n\t\t\t\t\n\t\t\t\t//draw score. \n\t\t\t\tg.drawString(String.format(\"Your Score: %d\", score), GamePlay.getScreenWidth()/2 - g.getFontMetrics().stringWidth(String.format(\"Your Score: %d\", score))/2, GamePlay.getScreenHeight()/2 + 100);\n\t\t\t}\n\t\t\t\n\t\t}", "@Override\n\tpublic void paint(Graphics graphics) {\n\t\ttry {\n\t\t\t// calls default paint functions in parent object\n\t\t\tsuper.paintComponents(s.getDrawGraphics());\n\n\t\t\t// sets buffer panel to size of window\n\t\t\tbufferPanel.setBounds(0, 0, this.getWidth(), this.getHeight());\n\t\t\t// calls function to draw onto g\n\t\t\tGraphics2D g = (Graphics2D) s.getDrawGraphics();\n\t\t\tdrawJavaString(i_console);\n\t\t\tdrawJavaString(i_palette);\n\n\t\t\tif (i_console_docked) {\n\t\t\t\ti_console.setBounds(p_console.getBounds());\n\t\t\t}\n\t\t\tif (i_palette_docked) {\n\t\t\t\ti_palette.setBounds(p_palette.getBounds());\n\t\t\t}\n\n\t\t\tcontroller.showRects(g);\n\n\t\t\tif(!rightMenuClick){\n\t\t\t\tif(this.getExtendedState() == Frame.MAXIMIZED_BOTH){\n\t\t\t\t\tg.translate(i_palette.getBounds().x, i_palette.getBounds().y+45);\n\t\t\t\t\ti_palette.paintAll(g);\n\t\t\t\t\tg.translate(i_console.getBounds().x - i_palette.getBounds().x, i_console.getBounds().y - i_palette.getBounds().y);\n\t\t\t\t\ti_console.paintAll(g);\n\t\t\t\t\tController.fullscreen = true;\n\t\t\t\t}else{\n\t\t\t\t\tg.translate(i_palette.getBounds().x+5, i_palette.getBounds().y+51);\n\t\t\t\t\ti_palette.paintAll(g);\n\t\t\t\t\tg.translate(i_console.getBounds().x - i_palette.getBounds().x, i_console.getBounds().y - i_palette.getBounds().y);\n\t\t\t\t\ti_console.paintAll(g);\n\t\t\t\t\tController.fullscreen = false;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcontroller.showBorders(g, 5, 51);\n\t\t\t}\n\n\t\t\ts.show();\n\t\t\tToolkit.getDefaultToolkit().sync();\n\t\t\tif (rectToBeRemoved != -1) {\n\t\t\t\tdelete(rectToBeRemoved);\n\t\t\t\tcontroller.getRects().remove(rectToBeRemoved);\n\t\t\t\trectToBeRemoved = -1;\n\t\t\t}\n\t\t\trepaint();\n\t\t} catch (Exception ex) {\n\t\t}\n\t}", "private void drawBackground() {\n\t\timgG2.setColor(Color.BLACK);\n\t\timgG2.fillRect(0,0,512, 512);\n\t\t\n\t\timgG2.setColor(Color.BLACK);\n\t\timgG2.fillRect(128, 0, 256, 512);\n\t}", "void effacer() {\r\n Graphics g = this.zoneDessin.getGraphics();\r\n g.setColor(Color.gray);\r\n g.fillRect(0, 0, this.getWidth(), this.getHeight());\r\n }", "@Override\n public void doRender(float delta) {\n if(showWindow) {\n drawTexture(background.getTexture(), marginX, marginY, windowWidth, windowHeigth);\n batch.draw(cursor, origin.x + cursorOriginX + SIZE * cursorPosX, origin.y + cursorOriginY - SIZE * cursorPosY);\n\n\n int iX = 0;\n int iY = 0;\n for (Item item : OverworldScreen.manager.getPlayer().itemList) {\n item.render(cursorOriginX + iX * SIZE, cursorOriginY - iY*SIZE, origin, batch);\n iX++;\n if(iX > maxItemX){\n iX = 0;\n iY++;\n }\n }\n }\n\n\n }", "protected void paintComponentWithPainter(Graphics2D g)\n/* */ {\n/* 200 */ if (this.ui != null)\n/* */ {\n/* */ \n/* */ \n/* 204 */ Graphics2D scratchGraphics = (Graphics2D)g.create();\n/* */ try {\n/* 206 */ scratchGraphics.setColor(getBackground());\n/* 207 */ scratchGraphics.fillRect(0, 0, getWidth(), getHeight());\n/* 208 */ paintPainter(g);\n/* 209 */ this.ui.paint(scratchGraphics, this);\n/* */ }\n/* */ finally {\n/* 212 */ scratchGraphics.dispose();\n/* */ }\n/* */ }\n/* */ }", "protected void paintBorder(Graphics g) {\n super.paintComponent(g);\n\n\n g.setColor(country.getCont().getContColor());\n g.fillRoundRect(innerDiameter,innerDiameter,width-2*innerDiameter, height-2*innerDiameter,0,0);\n g.setColor(country.getOwner().getPlayerColor());\n g.fillOval(innerDiameter, innerDiameter, getSize().width-2*innerDiameter, getSize().height-2*innerDiameter);\n\n g.setColor(Color.BLACK);\n g.setFont(new Font(\"default\", Font.BOLD, 14));\n\n g.drawString(\"\"+country.getArmy(),20,20);\n }", "@Override\r\n\tprotected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) {\n\t\tthis.componentColors = extendedCacheKeys;\r\n\r\n\t\tswitch (this.state) {\r\n\r\n\t\tcase FOREGROUND_DISABLED:\r\n\t\t\tthis.paintForegroundDisabled(g, width, height);\r\n\t\t\tbreak;\r\n\r\n\t\tcase FOREGROUND_ENABLED:\r\n\t\t\tthis.paintForegroundEnabled(g, width, height);\r\n\t\t\tbreak;\r\n\r\n\t\tcase FOREGROUND_PRESSED:\r\n\t\t\tthis.paintForegroundPressed(g, width, height);\r\n\t\t\tbreak;\r\n\r\n\t\tcase FOREGROUND_MOUSEOVER:\r\n\t\t\tthis.paintForegroundMouseOver(g, width, height);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\n public void paintComponent(Graphics g) {\n g.setColor(Color.WHITE);\n g.fillRect(0,0,super.getWidth(),super.getHeight());\n\n for (DrawableVector instruction : instructions){\n instruction.draw(g, getWidth(), getHeight());\n }\n if (currentInstruction != null){\n currentInstruction.draw(g, getWidth(), getHeight());\n }\n }", "private void drawBackground(Graphics2D g2d, int wid, int hei) {\n g2d.setColor(Light_Gray);\n Triangle triangle1 = new Triangle(new Point(0, 0), new Point(0, hei), new Point(wid, 0));\n triangle1.fill(g2d);\n g2d.setColor(Dark_Gray);\n Triangle triangle2 = new Triangle(new Point(wid, hei), new Point(0, hei), new Point(wid, 0));\n triangle2.fill(g2d);\n Triangle triangle3 = new Triangle(new Point(wid, 0), new Point(wid, 15), new Point(wid - 15, 15));\n triangle3.fill(g2d);\n g2d.setColor(Light_Gray);\n Triangle triangle4 = new Triangle(new Point(0, hei), new Point(0, hei - 15), new Point(15, hei - 15));\n triangle4.fill(g2d);\n g2d.setColor(Gray);\n g2d.fillRect(6, 6, wid - 12, hei - 12);\n }", "private void drawBorder(Graphics2D g2, boolean enabled, int x, int y, int width, int height)\r\n/* 89: */ {\r\n/* 90:133 */ g2.setColor(enabled ? PlasticLookAndFeel.getControlDarkShadow() : MetalLookAndFeel.getControlDisabled());\r\n/* 91: */ \r\n/* 92: */ \r\n/* 93:136 */ g2.drawRect(x, y, width, height);\r\n/* 94: */ }", "protected void clearToBack()\n {\n\tGraphics g = getGraphics();\n\tsetRenderColor(g,getBackground());\n\trenderFilledRect(g,0,0,width,height);\n }", "@Override\n\tpublic void showContents() {\n\t\tprogram.add(Background);\n\t\tprogram.add(lvl1);\n\t\tprogram.add(lvl2);\n\t\tprogram.add(lvl3);\n\t\tprogram.add(Back);\n\n\t}", "@Override\n public void paint(Graphics g) {\n g2 = (Graphics2D) g;\n drawBackground();\n drawSquares();\n drawLines();\n gui.hint = new TreeSet<>();\n }", "public final void drawChildren() {\n // Set my clipping rectangle\n assert (window != null);\n assert (getScreen() != null);\n Screen screen = getScreen();\n\n // Special case: TStatusBar is drawn by TApplication, not anything\n // else.\n if (this instanceof TStatusBar) {\n return;\n }\n\n screen.setClipRight(width);\n screen.setClipBottom(height);\n\n int absoluteRightEdge = window.getAbsoluteX() + window.getWidth();\n int absoluteBottomEdge = window.getAbsoluteY() + window.getHeight();\n if (!(this instanceof TWindow) && !(this instanceof TVScroller)) {\n absoluteRightEdge -= 1;\n }\n if (!(this instanceof TWindow) && !(this instanceof THScroller)) {\n absoluteBottomEdge -= 1;\n }\n int myRightEdge = getAbsoluteX() + width;\n int myBottomEdge = getAbsoluteY() + height;\n if (getAbsoluteX() > absoluteRightEdge) {\n // I am offscreen\n screen.setClipRight(0);\n } else if (myRightEdge > absoluteRightEdge) {\n screen.setClipRight(screen.getClipRight()\n - (myRightEdge - absoluteRightEdge));\n }\n if (getAbsoluteY() > absoluteBottomEdge) {\n // I am offscreen\n screen.setClipBottom(0);\n } else if (myBottomEdge > absoluteBottomEdge) {\n screen.setClipBottom(screen.getClipBottom()\n - (myBottomEdge - absoluteBottomEdge));\n }\n\n // Set my offset\n screen.setOffsetX(getAbsoluteX());\n screen.setOffsetY(getAbsoluteY());\n\n // Draw me\n draw();\n\n // Continue down the chain\n for (TWidget widget: children) {\n widget.drawChildren();\n }\n }", "@Override\n public void paintComponent(Graphics gg){\n \tGraphics2D g = (Graphics2D) gg;\n \tg.setColor(new Color(0,0,0));\n \tg.fillRect(0, 0, width, height);\n \t/// Draw Functions ///\n \t//menus.drawMenus(g);\n \t/// Rest ///\n \tfor(PhysicsObject obj: objects){\n \t\tobj.drawSelf(g);\n \t}\n \tg.setColor(new Color(255,255,255));\n \tg.fillOval(mx-3, my-3, 5, 5);\n }", "@Override\n\tpublic void render(GameContainer container, StateBasedGame game, Graphics g)\n\t\t\tthrows SlickException {\n\t\tbackground.draw(0, 0, container.getWidth(), container.getHeight());\n\t\tg.drawString(\"Appuyer sur une touche\", 300, 300);\n\t}", "@Override\n public void drawScreen(int n, int n2) {\n void mouseY;\n void mouseX;\n super.drawScreen((int)mouseX, (int)mouseY);\n float[] hsb = Color.RGBtoHSB(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), null);\n Color color = Color.getHSBColor(hsb[0], Float.intBitsToFloat(Float.floatToIntBits(6.4887953f) ^ 0x7F4FA436), Float.intBitsToFloat(Float.floatToIntBits(4.629535f) ^ 0x7F142527));\n Gui.drawRect((int)this.getX(), (int)this.getY(), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 14), (int)new Color(40, 40, 40).getRGB());\n Gui.drawRect((int)(this.getX() + this.getWidth() - 12), (int)(this.getY() + 2), (int)(this.getX() + this.getWidth() - 2), (int)(this.getY() + 12), (int)this.setting.getValue().getRGB());\n RenderUtils.drawOutline(this.getX() + this.getWidth() - 12, this.getY() + 2, this.getX() + this.getWidth() - 2, this.getY() + 12, Float.intBitsToFloat(Float.floatToIntBits(2.7144578f) ^ 0x7F2DB9AD), new Color(20, 20, 20).getRGB());\n if (this.open) {\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 14), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 28), (int)new Color(40, 40, 40).getRGB());\n float i = Float.intBitsToFloat(Float.floatToIntBits(1.3378998E38f) ^ 0x7EC94E07);\n while (i + Float.intBitsToFloat(Float.floatToIntBits(13.8331995f) ^ 0x7EDD54C9) < Float.intBitsToFloat(Float.floatToIntBits(0.07128618f) ^ 0x7F51FE7D)) {\n RenderUtils.drawRecta((float)(this.getX() + 2) + i, this.getY() + 16, Float.intBitsToFloat(Float.floatToIntBits(7.249331f) ^ 0x7F67FA85), Float.intBitsToFloat(Float.floatToIntBits(1.7045807f) ^ 0x7EEA2FB3), Color.getHSBColor(i / Float.intBitsToFloat(Float.floatToIntBits(0.115068644f) ^ 0x7F2BA91C), Float.intBitsToFloat(Float.floatToIntBits(4.3161592f) ^ 0x7F0A1DFA), Float.intBitsToFloat(Float.floatToIntBits(21.075346f) ^ 0x7E289A4F)).getRGB());\n i += Float.intBitsToFloat(Float.floatToIntBits(3.807338f) ^ 0x7E95CD0B);\n }\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 16, this.getX() + 2 + this.getWidth() - 4, this.getY() + 27, Float.intBitsToFloat(Float.floatToIntBits(2.7503529f) ^ 0x7F3005C8), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.hueWidth, this.getY() + 16, Float.intBitsToFloat(Float.floatToIntBits(5.200255f) ^ 0x7F26687D), Float.intBitsToFloat(Float.floatToIntBits(1.2665411f) ^ 0x7E921E05), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 28), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 42), (int)new Color(40, 40, 40).getRGB());\n RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 29, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(0.19645536f) ^ 0x7F792B98), new Color(255, 255, 255), color, 255, 255);\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 29, this.getX() + 2 + this.getWidth() - 4, this.getY() + 40, Float.intBitsToFloat(Float.floatToIntBits(103.69628f) ^ 0x7DCF647F), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.satWidth, this.getY() + 29, Float.intBitsToFloat(Float.floatToIntBits(7.3489017f) ^ 0x7F6B2A34), Float.intBitsToFloat(Float.floatToIntBits(0.1948352f) ^ 0x7F7782E1), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 42), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 56), (int)new Color(40, 40, 40).getRGB());\n RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 42, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(1.5246161f) ^ 0x7EF3269F), new Color(0, 0, 0), color, 255, 255);\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 42, this.getX() + 2 + this.getWidth() - 4, this.getY() + 53, Float.intBitsToFloat(Float.floatToIntBits(3.7803736f) ^ 0x7F71F1A4), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.briWidth, this.getY() + 42, Float.intBitsToFloat(Float.floatToIntBits(8.346171f) ^ 0x7E8589EB), Float.intBitsToFloat(Float.floatToIntBits(0.08925866f) ^ 0x7C86CD3F), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 56), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 70), (int)new Color(40, 40, 40).getRGB());\n this.renderAlphaBG(this.getX() + 2, this.getY() + 55, this.alphaBG);\n RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 55, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(0.13166903f) ^ 0x7F36D43F), new Color(0, 0, 0), color, 0, 255);\n RenderUtils.drawOutline(this.getX() + 2, this.getY() + 55, this.getX() + 2 + this.getWidth() - 4, this.getY() + 66, Float.intBitsToFloat(Float.floatToIntBits(19.69502f) ^ 0x7E9D8F67), new Color(0, 0, 0).getRGB());\n RenderUtils.drawRecta((float)(this.getX() + 2) + this.alphaWidth, this.getY() + 55, Float.intBitsToFloat(Float.floatToIntBits(6.702013f) ^ 0x7F5676E4), Float.intBitsToFloat(Float.floatToIntBits(0.13652846f) ^ 0x7F3BCE1E), new Color(255, 255, 255).getRGB());\n Gui.drawRect((int)this.getX(), (int)(this.getY() + 70), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 84), (int)new Color(40, 40, 40).getRGB());\n Europa.FONT_MANAGER.drawString(\"Rainbow\", this.getX() + 3, (float)(this.getY() + 78) - Europa.FONT_MANAGER.getHeight() / Float.intBitsToFloat(Float.floatToIntBits(0.8730777f) ^ 0x7F5F8205), Color.WHITE);\n Gui.drawRect((int)(this.getX() + this.getWidth() - 12), (int)(this.getY() + 72), (int)(this.getX() + this.getWidth() - 2), (int)(this.getY() + 82), (int)new Color(30, 30, 30).getRGB());\n if (this.setting.getRainbow().booleanValue()) {\n RenderUtils.prepareGL();\n GL11.glShadeModel((int)7425);\n GL11.glEnable((int)2848);\n GL11.glLineWidth((float)Float.intBitsToFloat(Float.floatToIntBits(0.2713932f) ^ 0x7EAAF40D));\n GL11.glBegin((int)1);\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.015137452f) ^ 0x7F070313)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(1.1948546f) ^ 0x7CE7F0FF)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.36357376f) ^ 0x7DC52657)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8), (double)(this.getY() + 80));\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.015521388f) ^ 0x7F014D6B)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.01025841f) ^ 0x7F5712E4)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.10675689f) ^ 0x7EA5A35B)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8 + 4), (double)(this.getY() + 74));\n GL11.glEnd();\n GL11.glBegin((int)1);\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.009417259f) ^ 0x7F654AD9)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.07014828f) ^ 0x7EF0A9E7)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.013465701f) ^ 0x7F239F3E)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8), (double)(this.getY() + 80));\n GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.0155056f) ^ 0x7F010B33)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.011914493f) ^ 0x7F3C3501)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.012230922f) ^ 0x7F376434)));\n GL11.glVertex2d((double)(this.getX() + this.getWidth() - 10), (double)(this.getY() + 77));\n GL11.glEnd();\n RenderUtils.releaseGL();\n }\n }\n Gui.drawRect((int)(this.getX() - 1), (int)this.getY(), (int)this.getX(), (int)(this.getY() + 84), (int)new Color(30, 30, 30).getRGB());\n Gui.drawRect((int)(this.getX() + this.getWidth()), (int)this.getY(), (int)(this.getX() + this.getWidth() + 1), (int)(this.getY() + 84), (int)new Color(30, 30, 30).getRGB());\n Europa.FONT_MANAGER.drawString(this.setting.getName(), this.getX() + 3, this.getY() + 3, Color.WHITE);\n }" ]
[ "0.78946555", "0.7522634", "0.7519581", "0.74741834", "0.744235", "0.72891134", "0.72759205", "0.7201048", "0.70480764", "0.6993155", "0.69546014", "0.6951155", "0.68817866", "0.6853076", "0.6837132", "0.6795002", "0.675637", "0.67407787", "0.6705569", "0.66921294", "0.6593579", "0.65756977", "0.6521319", "0.63462174", "0.6308647", "0.62661827", "0.62518734", "0.62402356", "0.61306655", "0.6099024", "0.60772115", "0.6044145", "0.6023938", "0.595987", "0.5889659", "0.5883598", "0.58324546", "0.5823755", "0.5813452", "0.58046067", "0.57984155", "0.5791485", "0.57689226", "0.5749854", "0.57333255", "0.57288873", "0.5725121", "0.57089365", "0.5704136", "0.5691797", "0.56900364", "0.5681778", "0.56765825", "0.56676185", "0.5651901", "0.564822", "0.56310046", "0.56270045", "0.5610125", "0.5602845", "0.5591799", "0.55893075", "0.5589212", "0.5579964", "0.5578669", "0.55713713", "0.5570079", "0.5538731", "0.55374455", "0.5507489", "0.54940027", "0.5490678", "0.54783833", "0.5471662", "0.5468113", "0.54674333", "0.5466019", "0.54612553", "0.54550654", "0.5453715", "0.54532266", "0.5449563", "0.54492635", "0.5442923", "0.5442891", "0.5420714", "0.5419265", "0.5415975", "0.5413752", "0.54107517", "0.54095215", "0.54078037", "0.5402655", "0.53984076", "0.5396007", "0.53929985", "0.5385322", "0.53734463", "0.53693086", "0.5357419" ]
0.6676825
20
Draws the background layer of this container (behind the items).
@Override protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) { GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F); this.mc.getTextureManager().bindTexture(CHEST_GUI_TEXTURE); int i = (this.width - this.xSize) / 2; int j = (this.height - this.ySize) / 2; this.drawTexturedModalRect(i, j, 0, 0, this.xSize, this.inventoryRows * 18 + 17); this.drawTexturedModalRect(i, j + this.inventoryRows * 18 + 17, 0, 126, this.xSize, 96); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {\n\t\tsuper.drawGuiContainerBackgroundLayer(partialTicks, mouseX, mouseY);\n\n\t\tGlStateManager.color(1, 1, 1,1 );\n\t\tthis.mc.getTextureManager().bindTexture(getTexture());\n\t\tthis.drawTexturedModalRect(xBase, yBase, 0, 0, xSize, container.inventoryRows * 18 + 17);\n\t\tthis.drawTexturedModalRect(xBase, yBase + container.inventoryRows * 18 + 17, 0, 126, xSize, 96);\n\t}", "@Override\n protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {\n }", "protected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3)\n\t{\n\t\tint var4 = this.mc.renderEngine.getTexture(\"/luxcraft/gui/luxRitualTable.png\");\n\t\tGL11.glColor4f(1.0F, 1F, 1F, 1.0F);\n\t\tthis.mc.renderEngine.bindTexture(var4);\n\t\tint var5 = (this.width - this.xSize) / 2;\n\t\tint var6 = (this.height - this.ySize) / 2;\n\t\tthis.drawTexturedModalRect(var5, var6, 0, 0, this.xSize, this.ySize);\n\n\t\tif(this.ritualtableInventory.schemaMaxAnalyseTime != 0){\n\t\t\tint w = 2+(this.ritualtableInventory.schemaAnalyseTime * 41)/this.ritualtableInventory.schemaMaxAnalyseTime;\n\t\t\tthis.drawTexturedModalRect(var5 + 30, var6 + 37, 176, 14, w, 16);\n\t\t\tthis.drawTexturedModalRect(var5 + 103+43-w, var6 + 37, 176+43-w, 31, w, 16);\n\t\t}\n\n\n\t}", "protected void drawGuiContainerBackgroundLayer(float f, int mouseX, int mouseY)\r\n\t{\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tmc.getTextureManager().bindTexture(iconLocation);\r\n\t\tdrawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);\r\n\t\tdrawPlayerModel(guiLeft + 51, guiTop + 75, 30, guiLeft + 51 - xSize_lo, guiTop + 25 - ySize_lo, mc.thePlayer);\r\n\t}", "protected void drawGuiContainerBackgroundLayer(float f, int x, int y)\n {\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n super.mc.getTextureManager().bindTexture(background);\n int j = (super.width - super.xSize) / 2;\n int k = (super.height - super.ySize) / 2;\n this.drawTexturedModalRect(j, k, 0, 0, super.xSize, super.ySize);\n int i1;\n\n if (this.container.tileEntity.energy > 0)\n {\n i1 = this.container.tileEntity.energy * 14 / 200;\n\n if (i1 > 14)\n {\n i1 = 14;\n }\n\n this.drawTexturedModalRect(j + 62, k + 36 + 14 - i1, 176, 14 - i1, 14, i1);\n }\n\n i1 = this.container.tileEntity.pumpCharge * 41 / 200;\n\n if (i1 > 41)\n {\n i1 = 41;\n }\n\n this.drawTexturedModalRect(j + 99, k + 61 - i1, 176, 55, 12, 5);\n\n if (i1 > 0)\n {\n this.drawTexturedModalRect(j + 99, k + 25 + 41 - i1, 176, 14, 12, i1);\n }\n\n this.drawTexturedModalRect(j + 98, k + 19, 188, 14, 13, 47);\n }", "private void drawBackground() {\n\t\timgG2.setColor(Color.BLACK);\n\t\timgG2.fillRect(0,0,512, 512);\n\t\t\n\t\timgG2.setColor(Color.BLACK);\n\t\timgG2.fillRect(128, 0, 256, 512);\n\t}", "protected void drawGuiContainerBackgroundLayer(float var1, int var2, int var3)\n {\n int var4 = this.mc.renderEngine.getTexture(\"/shadow/lavafurnace.png\");\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n this.mc.renderEngine.bindTexture(var4);\n int var5 = (this.width - this.xSize) / 2;\n int var6 = (this.height - this.ySize) / 2;\n this.drawTexturedModalRect(var5, var6, 0, 0, this.xSize, this.ySize);\n int var8 = this.furnaceInventory.getFuelScaled(63);\n this.drawTexturedModalRect(var5 + 144, var6 + 11 + 63 - var8, 176, 94 - var8, 17, 31 + var8);\n int var7 = this.furnaceInventory.getCookProgressScaled(24);\n this.drawTexturedModalRect(var5 + 59, var6 + 33, 176, 14, var7 + 1, 16);\n }", "@Override\n\tprotected void drawBackground(Graphics2D g2) {\n\t\tg2.setColor(BACKGROUND_FILL_COLOR);\n\t\tg2.fillRect(0, 0, this.getWidth(), this.getHeight());\n\t}", "private void drawBackground() {\n g2.setColor(SquareRenderer.BLANK_CELL_COLOR);\n g2.fillRect(BORDER_SIZE, BORDER_SIZE, BOARD_SIZE, BOARD_SIZE);\n }", "private void createBackground()\n {\n GreenfootImage background = getBackground();\n background.setColor(Color.BLACK);\n background.fill();\n }", "@Override\r\n\tprotected void drawGuiContainerBackgroundLayer(float par1, int par2, int par3) {\n\t\tResourceLocation texture = new ResourceLocation(\"textures/gui/container/hopper.png\");\r\n\t\tthis.mc.renderEngine.bindTexture(texture);\r\n\t\tint x = (width - xSize) / 2;\r\n\t\tint y = (height - ySize) / 2;\r\n\t\tthis.drawTexturedModalRect(x, y, 0, 0, xSize, ySize);\r\n\t\t\r\n\t\t/*int progress = Math.round(24 * (40 - te.getTime()) / 40.0f);\r\n\t\tif(te.getTime() == 0) {\r\n\t\t\tprogress = 0;\r\n\t\t}\r\n\t\tthis.drawTexturedModalRect(x+79, y+29, 176, 0, 17, progress);*/\r\n\t}", "@Override\r\n public void paintComponent(Graphics g) {\r\n\r\n //Paint background\r\n g.drawImage (background, 0, 0, null);\r\n }", "@Override\n protected void drawGuiContainerBackgroundLayer(final float opacity, final int x, final int y)\n {\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n ResourceHandler.bindGUI(mc, EnumModeled.machineGrinder.name());\n final int xStart = (width - xSize) / 2;\n final int yStart = (height - ySize) / 2;\n drawTexturedModalRect(xStart, yStart, 0, 0, xSize, ySize);\n int scale;\n if (grinderL.canRun())\n {\n scale = grinderL.getProgressScaled(24);\n drawTexturedModalRect(xStart + 79, yStart + 31, 176, 0, 20, scale);\n }\n }", "private void drawBackground() {\r\n\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tthis.mc.renderEngine.bindTexture(BACKGROUND_RESOURCE);\r\n\t\tString text = \"Nitro Teleport Waypoints\";\r\n\t\tint posX = (width - SIZE_X) / 2;\r\n\t\tint posY = (height - SIZE_Y) / 2;\r\n\t\tint strWidth = this.fontRendererObj.getStringWidth(text);\r\n\r\n\t\tthis.drawTexturedModalRect(posX, posY, 0, 0, SIZE_X, SIZE_Y);\r\n\t\tthis.drawCenteredString(this.fontRendererObj, text, width / 2, posY - 17, 0xFFFFFF);\r\n\t}", "protected void drawBackground(\n // CSOK: ParameterNumber\n final float startx, final float starty, final float width,\n final float height, final Trait.Background back,\n final BorderProps bpsBefore, final BorderProps bpsAfter,\n final BorderProps bpsStart, final BorderProps bpsEnd,\n final int level) {\n final BorderProps bpsTop = bpsBefore;\n final BorderProps bpsBottom = bpsAfter;\n BorderProps bpsLeft;\n BorderProps bpsRight;\n if (level == -1 || (level & 1) == 0) {\n bpsLeft = bpsStart;\n bpsRight = bpsEnd;\n } else {\n bpsLeft = bpsEnd;\n bpsRight = bpsStart;\n }\n drawBackground(startx, starty, width, height, back, bpsTop, bpsBottom,\n bpsLeft, bpsRight);\n }", "private void drawBackground(Graphics2D g2d, ScreenParameters screenParameters) {\n Composite defaultComposite = g2d.getComposite();\n g2d.setComposite(LOW_OPACITY);\n g2d.drawImage(background, 0, 0, screenParameters.x, screenParameters.y, null);\n g2d.setComposite(defaultComposite);\n }", "public void createBackground() {\n Sprite bg = this.levelInfo.getBackground();\n this.sprites.addSprite(bg);\n }", "protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {\n this.mc.getTextureManager().bindTexture(FURNACE_GUI_TEXTURES);\n int i = this.guiLeft;\n int j = this.guiTop;\n this.drawTexturedModalRect(i, j, 0, 0, this.xSize, this.ySize);\n\n int cookProgressScaled = this.getCookProgressScaled(17);\n this.drawTexturedModalRect(i + 79, j + 34+1, 176, 0, 24, cookProgressScaled);\n\n boolean isBurning = TileEntityCoalGrinder.isBurning(this.tileInventory);\n int burnTime = tileInventory.getField(0);\n int currentItemBurnTime = tileInventory.getField(1);\n\n ((BurnComponent)getComponent(0)).update(isBurning,burnTime,currentItemBurnTime);\n\n super.drawGuiContainerBackgroundLayer(partialTicks,mouseX,mouseY);\n }", "private void drawBackground(Graphics g){\r\n g.setColor(Colors.ColorAlpha(Colors.blacks,a1));\r\n g.fillRect(0,0,w,h);\r\n if(moving){\r\n g.drawImage(Assets.burst.get((int)((game.counter%8)*0.625)),(int)(w*0.472),(int)(h*0.455),null);\r\n g.drawImage(Assets.sparks.get(((game.counter%20)/2)),(int)(w*0.465),(int)(h*0.345),null);\r\n }\r\n drawWires(g);\r\n }", "protected void drawForegroundToBackground() {\n if (backgroundColor == null) { return; }\n\n final BufferedImage backgroundBufferedImage = new BufferedImage(dimension.width, dimension.height, this.bufferedImage.getType());\n final Graphics graphics = backgroundBufferedImage.getGraphics();\n\n // draw current color\n graphics.setColor(backgroundColor);\n graphics.fillRect(0, 0, dimension.width, dimension.height);\n graphics.drawImage(bufferedImage, 0, 0, null);\n\n // draw back to original\n final Graphics graphics2 = bufferedImage.getGraphics();\n graphics2.drawImage(backgroundBufferedImage, 0, 0, null);\n }", "protected void drawMainBackgroundRect(GC pGc, ListItem pItem) {\n\t\tRectangle rect = pItem.getBounds();\n\n\t\tif (pItem.getControl().getSelectedItems().contains(pItem)) {\n\t\t\tpGc.setBackground(getSelectionBackground());\n\t\t} else {\n\t\t\tif (pItem.getControl().getMouseOverItem() == pItem) {\n\t\t\t\tpGc.setBackground(getMouseOverBackground());\n\t\t\t} else {\n\t\t\t\tpGc.setBackground(getBackground());\n\t\t\t}\n\t\t}\n\t\tpGc.fillRectangle(rect);\n\n\t\tpGc.setForeground(getBorderColor());\n\t\tpGc.drawRectangle(rect);\n\t}", "@Override\n protected void paintBackground(Graphics2D g) {\n super.paintBackground(g);\n if (Game.level == 0) {\n g.drawImage(bg, 0, 0, this);\n } else if (Game.level == 1) {\n g.drawImage(bg, 0, 0, this);\n } else if (Game.level == 2) {\n g.drawImage(bg2, 0, 0, this);\n } else if (Game.level == 3) {\n g.drawImage(bg3, 0, 0, this);\n }\n\n }", "private void drawBackground(Graphics2D g2) {\n\t\t\tg2.fillRect(0, 0, WIDTHBG, HEIGHTBG);\n\t\t}", "@Override\r\n\tprotected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)\r\n\t{\n\t\tif(tile.entry != currentEntry)\r\n\t\t{\r\n\t\t\tcurrentEntry = tile.entry;\r\n\t\t\tif(currentEntry == -1)\r\n\t\t\t{\r\n\t\t\t\tcurrentDiscoveries = null;\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tPredicate<IInfuser> predicate = RecipesInfuser.getPredicate(tile.entry);\r\n\t\t\t\tif(predicate instanceof ResearchPredicate)\r\n\t\t\t\t{\r\n\t\t\t\t\tResearchPredicate pred = (ResearchPredicate) predicate;\r\n\t\t\t\t\tcurrentDiscoveries = pred.getResearchItems(EnumResearchItemType.DISCOVERY);\r\n\t\t\t\t} else\r\n\t\t\t\t\tcurrentDiscoveries = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tmc.getTextureManager().bindTexture(gui);\r\n\t\tdrawTexturedModalRect(guiLeft, guiTop, 0, 0, xSize, ySize);\r\n\t\t\r\n\t\tif(tile.isCooking())\r\n\t\t{\r\n\t\t\tfloat i1 = tile.getCookProgressScaled(46);\r\n\t\t\tfloat i2 = tile.infuserCookTimeDark / tile.currentItemCookCostDark * 46F;\r\n\t\t\tRenderUtil.drawTexturedModalRect(guiLeft + 158, guiTop + 151 - i1, 176, 46 - i1, 6, i1);\r\n\t\t\tRenderUtil.drawTexturedModalRect(guiLeft + 164, guiTop + 151 - i2, 182, 46 - i2, 6, i2);\r\n\t\t}\r\n\t\t\r\n\t\tint phase = tile.getWorld().getMoonPhase();\r\n\t\tdrawTexturedModalRect(guiLeft + 160, guiTop + 8, 188, phase * 8, 8, 8);\r\n\t}", "protected Background background () {\n return Background.bordered(0xFFCCCCCC, 0xFFCC99FF, 5).inset(5);\n }", "private void drawBackGround() {\r\n\t\tdouble diff = getWidth() / NDECADES;\r\n\t\tdouble xcrd = 0;\r\n\t\tint year = START_DECADE;\r\n\t\tfor (int i = 0; i < NDECADES; i++) {\r\n\t\t\tString yearStr = year + \"\";\r\n\t\t\tadd(new GLine(xcrd, 0, xcrd, getHeight()));\r\n\t\t\tadd(new GLabel(yearStr, xcrd, getHeight()));\r\n\t\t\txcrd = xcrd + diff;\r\n\t\t\tyear = year + 10;\r\n\t\t}\r\n\t\tdouble ycrd = GRAPH_MARGIN_SIZE;\r\n\t\tadd(new GLine(0, ycrd, getWidth(), ycrd));\r\n\t\tadd(new GLine(0, getHeight() - ycrd, getWidth(), getHeight() - ycrd));\r\n\r\n\t}", "private void drawSquarePlayerZoneBackground(Canvas canvas) {\n\t\t\n\t\tint left = PLAY_AREA_LEFT_PADDING; \n\t\tint top = PLAY_AREA_UP_PADDING;\n\t\tint right = left + PLAY_AREA_WIDTH_BLOCK*BLOCK_CUBE_SIZE;\n\t\tint bottom = top + PLAY_AREA_HEIGHT_BLOCK*BLOCK_CUBE_SIZE;\n\t\tint bcolor = 0;\n\t\t\n\t\tbcolor = getResources().getColor(R.color.BG);\n\t\t\n\t\tfillpaint.setColor(bcolor);\n\t\tstrokepaint.setColor(getResources().getColor(R.color.PLAYZONESTROKE));\n\t\tstrokepaint.setStrokeWidth(1);\n\t\t\n\t\tcanvas.drawRect(left, top, right, bottom, fillpaint);\n\t\tcanvas.drawRect(left, top, right, bottom, strokepaint);\n\t}", "@Override\r\n\tpublic void paintComponent (Graphics g) {\r\n\t\tsuper.paintComponent(g);\r\n\t\tg.drawImage(background, 0, 0, 800, 660, null);\r\n\t}", "private void drawBackground(Graphics2D g2d, int wid, int hei) {\n g2d.setColor(Light_Gray);\n Triangle triangle1 = new Triangle(new Point(0, 0), new Point(0, hei), new Point(wid, 0));\n triangle1.fill(g2d);\n g2d.setColor(Dark_Gray);\n Triangle triangle2 = new Triangle(new Point(wid, hei), new Point(0, hei), new Point(wid, 0));\n triangle2.fill(g2d);\n Triangle triangle3 = new Triangle(new Point(wid, 0), new Point(wid, 15), new Point(wid - 15, 15));\n triangle3.fill(g2d);\n g2d.setColor(Light_Gray);\n Triangle triangle4 = new Triangle(new Point(0, hei), new Point(0, hei - 15), new Point(15, hei - 15));\n triangle4.fill(g2d);\n g2d.setColor(Gray);\n g2d.fillRect(6, 6, wid - 12, hei - 12);\n }", "public void draw() {\n background(0);\n}", "private void drawBackground(int position) {\n Background bg = backgrounds.get(position);\n\n // define what portion of images to capture and\n // what coordinates of screen to draw them at\n\n // For the regular bitmap\n Rect fromRect1 = new Rect(0, 0, bg.width - bg.xClip, bg.height);\n Rect toRect1 = new Rect(bg.xClip, bg.startY, bg.width, bg.endY);\n\n // For the reversed background\n Rect fromRect2 = new Rect(bg.width - bg.xClip, 0, bg.width, bg.height);\n Rect toRect2 = new Rect(0, bg.startY, bg.xClip, bg.endY);\n\n //draw the two background bitmaps\n if (!bg.reversedFirst) {\n canvas.drawBitmap(bg.bitmap, fromRect1, toRect1, paint);\n canvas.drawBitmap(bg.bitmapReversed, fromRect2, toRect2, paint);\n } else {\n canvas.drawBitmap(bg.bitmap, fromRect2, toRect2, paint);\n canvas.drawBitmap(bg.bitmapReversed, fromRect1, toRect1, paint);\n }\n\n }", "@Override\r\n\tpublic void renderBackground() {\n\r\n\t}", "protected void paintBackground(Graphics g){\n Dimension size = getSize();\n\n g.setColor(properties.backgroundColor);\n g.fillRect(0,0,size.width,size.height);\n\n }", "@Override\n protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY) {\n }", "@Override\n protected void paintBackground(Graphics2D g) {\n g.drawImage(image, 0, 0, this);\n }", "public void paint() {\n BufferStrategy bs;\n bs = this.getBufferStrategy();\n\n Graphics g = bs.getDrawGraphics();\n g.drawImage(background, 0, 0, this.getWidth(), this.getHeight(), null);\n if (this.blackHoles != null) {\n for (BlackHole blackHole : this.blackHoles) {\n blackHole.paint(g);\n }\n }\n if (this.balls != null) {\n for (int i = 0; i <this.balls.size() ; i++) {\n this.balls.get(i).paint(g);\n }\n\n }\n\n bs.show();\n g.dispose();\n\n }", "private void drawBG(Batch batch) {\n\t\tbackgroundSprite.setRegion(baybayinAnimation.getKeyFrame(animationCounter, true));\n\t}", "protected void drawBackground(\n // CSOK: ParameterNumber\n final float startx, final float starty, final float width,\n final float height, final Trait.Background back,\n final BorderProps bpsTop, final BorderProps bpsBottom,\n final BorderProps bpsLeft, final BorderProps bpsRight) {\n if (back != null) {\n endTextObject();\n\n // Calculate padding rectangle\n float sx = startx;\n float sy = starty;\n float paddRectWidth = width;\n float paddRectHeight = height;\n if (bpsLeft != null) {\n sx += bpsLeft.width / 1000f;\n paddRectWidth -= bpsLeft.width / 1000f;\n }\n if (bpsTop != null) {\n sy += bpsTop.width / 1000f;\n paddRectHeight -= bpsTop.width / 1000f;\n }\n if (bpsRight != null) {\n paddRectWidth -= bpsRight.width / 1000f;\n }\n if (bpsBottom != null) {\n paddRectHeight -= bpsBottom.width / 1000f;\n }\n\n if (back.getColor() != null) {\n updateColor(back.getColor(), true);\n fillRect(sx, sy, paddRectWidth, paddRectHeight);\n }\n if (back.getImageInfo() != null) {\n final ImageSize imageSize = back.getImageInfo().getSize();\n saveGraphicsState();\n clipRect(sx, sy, paddRectWidth, paddRectHeight);\n int horzCount = (int) (paddRectWidth * 1000\n / imageSize.getWidthMpt() + 1.0f);\n int vertCount = (int) (paddRectHeight * 1000\n / imageSize.getHeightMpt() + 1.0f);\n if (back.getRepeat() == EN_NOREPEAT) {\n horzCount = 1;\n vertCount = 1;\n } else if (back.getRepeat() == EN_REPEATX) {\n vertCount = 1;\n } else if (back.getRepeat() == EN_REPEATY) {\n horzCount = 1;\n }\n // change from points to millipoints\n sx *= 1000;\n sy *= 1000;\n if (horzCount == 1) {\n sx += back.getHoriz();\n }\n if (vertCount == 1) {\n sy += back.getVertical();\n }\n for (int x = 0; x < horzCount; x++) {\n for (int y = 0; y < vertCount; y++) {\n // place once\n Rectangle2D pos;\n // Image positions are relative to the currentIP/BP\n pos = new Rectangle2D.Float(sx - this.currentIPPosition\n + x * imageSize.getWidthMpt(), sy\n - this.currentBPPosition + y\n * imageSize.getHeightMpt(),\n imageSize.getWidthMpt(),\n imageSize.getHeightMpt());\n drawImage(back.getURL(), pos);\n }\n }\n\n restoreGraphicsState();\n }\n }\n }", "protected void drawGUI() {\n batch.draw(background, 0, 0);\n }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n paintBackground(g);\n }", "@Override\r\n\tpublic void paint(Graphics g) {\n\t\tg.drawImage(BG_LIST.get(this.dto.getNowlevel()%BG_LIST.size()), 0, 0,1200,700, null);\r\n\t\t\r\n\r\n\t}", "protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)\r\n\t{\r\n\t\t// This method will simply draw inventory names on the screen - you could do without it entirely\r\n\t\t// if that's not important to you, since we are overriding the default inventory rather than\r\n\t\t// creating a specific type of inventory\r\n\t\tString s = this.inventory.hasCustomInventoryName() ? this.inventory.getInventoryName() : \" \";\r\n\t\t// with the name \"Custom Inventory\", the 'Cu' will be drawn in the first slot\r\n\t\tthis.fontRendererObj.drawString(s, this.xSize - this.fontRendererObj.getStringWidth(s), 12, 4210752);\r\n\t\t// this just adds \"Inventory\" above the player's inventory below\r\n\t\tthis.fontRendererObj.drawString(\" \", 80, this.ySize - 96, 4210752);\r\n\t}", "public void paintComponent(Graphics g) {\r\n super.paintComponent(g);\r\n if (isDrawBackground()) {\r\n paintComponentBackground(g, getBackgroundInsets(), getUiPrefs().getBackgroundColor());\r\n } else if (!isBackgroundTransparent()) {\r\n paintComponentBackground(g, null, Color.WHITE);\r\n }\r\n if (isDrawBorder()) {\r\n paintComponentBorder(g);\r\n }\r\n }", "public void printBackground() {\n\t\tthis.gc.setFill(Color.BLACK);\n\t\tthis.gc.fillRect(0, 0, canvas.getWidth(), canvas.getHeight());\n\t}", "void updateBackground() {\n float f = this.getDimension(R.dimen.fab_stroke_width);\n float f2 = f / 2.0f;\n Resources resources = this.getResources();\n int n = this.mSize == 0 ? R.drawable.fab_bg_normal : R.drawable.fab_bg_mini;\n resources = new LayerDrawable(new Drawable[]{resources.getDrawable(n), this.createFillDrawable(f), this.createOuterStrokeDrawable(f), this.getIconDrawable()});\n n = (int)(this.mCircleSize - this.getDimension(R.dimen.fab_icon_size)) / 2;\n int n2 = (int)this.mShadowRadius;\n int n3 = (int)(this.mShadowRadius - this.mShadowOffset);\n int n4 = (int)(this.mShadowRadius + this.mShadowOffset);\n resources.setLayerInset(1, n2, n3, n2, n4);\n resources.setLayerInset(2, (int)((float)n2 - f2), (int)((float)n3 - f2), (int)((float)n2 - f2), (int)((float)n4 - f2));\n resources.setLayerInset(3, n2 + n, n3 + n, n2 + n, n4 + n);\n this.setBackgroundCompat((Drawable)resources);\n }", "@Override\n protected void drawGuiContainerBackgroundLayer(float var1, int var2,int var3) \n\t{\n\t GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n\t this.mc.renderEngine.bindTexture(resource);\n\t int var5 = (this.width - this.xSize) / 2;\n\t int var6 = (this.height - this.ySize) / 2;\n\t this.drawTexturedModalRect(var5, var6, 0, 0, this.xSize, this.ySize);\n\t int b = tile.tableBurnTime; // 取得Tile内的燃料燃烧时间\n\t float maxBurnTime = tile.maxBurnTime*1.0F;// 取得最大燃料燃烧时间,用float,不用的话得不出百分比\n\t if (b > 0 && maxBurnTime > 0) // 确定描绘的时机\n\t {\n\t // 描绘火焰图像\n\t this.drawTexturedModalRect(this.guiLeft + 81, this.guiTop + 37 + (int)(14 - 14 * ((float)b / maxBurnTime)),\n\t \t\t 176, (int)(14 - 14 * ((float)b / maxBurnTime)), 14, (int)(14 * ((float)b / maxBurnTime)));\n\t }\n\t \n\t int out = tile.outputTime; // 取得Tile内的燃料燃烧时间\n\t float maxOutputTime = 100F;// 取得最大燃料燃烧时间,用float,不用的话得不出百分比\n\t if (b > 0 && maxBurnTime > 0) // 确定描绘的时机\n\t {\n\t // 描绘火焰图像\n\t this.drawTexturedModalRect(this.guiLeft + 76, this.guiTop + 20,\n\t \t\t 176, 14, (int)(24*((float)out/maxOutputTime)), 16);\n\t }\n }", "protected void drawGuiContainerForegroundLayer(int par1, int par2)\n {\n String s = this.tileEntity.hasCustomInventoryName() ? this.tileEntity.getInventoryName() : I18n.format(this.tileEntity.getInventoryName(), new Object[0]);\n this.fontRendererObj.drawString(s, this.xSize / 2 - this.fontRendererObj.getStringWidth(s) / 2, 6, 4210752);\n this.fontRendererObj.drawString(I18n.format(\"container.inventory\", new Object[0]), 8, this.ySize - 96 + 2, 4210752);\n }", "@Override\n\tpublic void draw(Batch batch, float parentAlpha) {\n\t\tbatch.draw(leftBorder, getX(), getY());\n\t\t// Save variables to restore their state after drawing\n\t\tfloat prevX = getX();\n\t\tfloat prevWidth = getWidth();\n\t\t// Set the variables which are used to draw the background\n\t\tsetX(prevX + leftBorder.getRegionWidth());\n\t\tsetWidth(prevWidth - leftBorder.getRegionWidth() - rightBorder.getRegionWidth());\n\t\t// Draw the progress bar as it would be without borders\n\t\tsuper.draw(batch, parentAlpha);\n\t\t// Set the variables to draw the right border\n\t\tsetX(getX() + getWidth());\n\t\t// Draw the right border\n\t\tbatch.draw(rightBorder, getX(), getY());\n\t\t// Reset the state of the variables so next cycle the drawing is done at correct position\n\t\tsetX(prevX);\n\t\tsetWidth(prevWidth);\n\t}", "@Override\n\t\t\tpublic void paintControl(PaintEvent arg0) {\n\t\t\t\tgc.drawImage(background,0,0);\n\t\t\t}", "@Override\n\tpublic Drawable background() {\n\t\treturn null;\n\t}", "public Paint getBackground() {\r\n return background;\r\n }", "private Texture createBackground() {\n Pixmap backgroundPixmap = new Pixmap(1, 1, Pixmap.Format.RGBA8888);\n backgroundPixmap.setColor(0, 0, 0, 0.3f);\n backgroundPixmap.fill();\n Texture texture = new Texture(backgroundPixmap);\n backgroundPixmap.dispose();\n return texture;\n }", "private void drawButtonBackground(int x, int y)\n {\n this.drawSprite(x, y, 0, 0);\n }", "public void renderBackground(Graphics g)\n\t{\n\t\tg.drawImage(Drawing.getImage(\"backgrounds/sky1.png\"), 0, 0, null);\n\t\tg.drawImage(Drawing.getImage(\"backgrounds/grass1.png\"), 0, 530, null);\n\t}", "@Override\n\tprotected void Draw(GameTime gameTime)\n\t{\n\t\tgetGraphicsDevice().Clear(Color.CornflowerBlue);\n\t\t\n\t\tspriteBatch.Begin();\n\t\tspriteBatch.Draw(background, new Vector2(0,0), Color.White);\n\t\tspriteBatch.End();\n\t\t\n\t\t// TODO: Add your drawing code here\n\t\t\n\t\tsuper.Draw(gameTime);\n\t}", "@Override\n\tprotected void drawGuiContainerForegroundLayer(int par1, int par2) {\n \n\t\tif(getStyle() == Style.MODERN) {\n\t\t\tint xOffset = 0;\n\t\t\tint yOffset = 0;\n\t\t\tint xInvOffset = 0;\n\t\t\tint yInvOffset = 0;\n\t\t\t\n\t\t\tif(header == 0) {\n\t\t\t\txOffset = -15;\n\t\t\t\tyOffset = -3;\n\t\t\t}\n\t\t\tif(header == 4) {\n\t\t\t\txOffset = 30;\n\t\t\t\tyOffset = -3;\n\t\t\t}\n\t\t\tif(header_type == 3) {\n\t\t\t\txInvOffset = -8;\n\t\t\t\tyInvOffset = 3;\n\t\t\t}\n\t\t\tif(header_type == 4) {\n\t\t\t\txInvOffset = -5;\n\t\t\t\tyInvOffset = 2;\n\t\t\t}\n\t\t\t\n\t\t\tthis.fontRenderer.drawString(TextFormatting.WHITE + this.getName(), 176 / 2 - fontRenderer.getStringWidth(this.getName()) / 2 + xOffset, 5 + yOffset, 4210752);\n\t\t\tthis.fontRenderer.drawString(TextFormatting.WHITE + GCCoreUtil.translate(\"container.inventory\"), 15 + xInvOffset, this.ySize - 24*3 - 13 + yInvOffset, 4210752);\n\t\t\n\t\t} else {\n\t\t\tthis.fontRenderer.drawString(TextFormatting.DARK_GRAY + this.getName(), 176 / 2 - fontRenderer.getStringWidth(this.getName()) / 2, 5, 4210752);\n\t\t\tthis.fontRenderer.drawString(TextFormatting.DARK_GRAY + GCCoreUtil.translate(\"container.inventory\"), 8, this.ySize - 24*3 - 8, 4210752);\n\t\t}\n\t\t\n\n\t}", "private void drawBackground(Canvas canvas) {\n if (resourceHelper == null || settingsHelper == null) return;\n \n paint.setStrokeWidth(0);\n paint.setStyle(Paint.Style.FILL);\n \n int lastThreshold = top;\n \n for (MeasurementLevel measurementLevel : new MeasurementLevel[]{MeasurementLevel.HIGH, MeasurementLevel.MID, MeasurementLevel.LOW}) {\n paint.setColor(resourceHelper.getGraphColor(measurementLevel));\n int threshold = settingsHelper.getThreshold(sensor, measurementLevel);\n \n canvas.drawRect(0, project(lastThreshold), getWidth(), project(threshold), paint);\n lastThreshold = threshold;\n }\n \n paint.setColor(resourceHelper.getGraphColor(MeasurementLevel.VERY_LOW));\n canvas.drawRect(0, project(lastThreshold), getWidth(), getHeight(), paint);\n }", "public void paintBackground(Graphics g) {\n\t\t// Set color to black\n\t\tg.setColor(Color.BLACK);\n\t\t// Draw black on the whole screen\n\t\tg.fillRect(0, 0, this.getWidth(), this.getHeight());\n\n\t}", "@Override\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n\t\t RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t \n\t\t GradientPaint gp = new GradientPaint(0, 0,\n\t\t Const.BACKGROUND_COLOR.brighter(), 0, getHeight(),\n\t\t Color.BLUE);\n\t\t \n\t\t g2d.setPaint(gp);\n\t\t g2d.fillRect(0, 0, getWidth(), getHeight());\n\n\t\t\t\tsuper.paintComponent(g);\n\t\t\t}", "private void setUpBackGround() {\n try {\n setBackGround(new Image(new FileInputStream(\"images/backgrounds/[email protected]\")));\n } catch (FileNotFoundException ignored) {\n }\n\n\n try {\n ImageView middleGround = new ImageView(new Image(new FileInputStream(\"images/gameIcons/middleGround/battlemap0_middleground.png\")));\n middleGround.setFitHeight(windowHeight);\n middleGround.setFitWidth(windowWidth);\n addComponent(new NodeWrapper(middleGround));\n } catch (FileNotFoundException ignored) {\n }\n\n try {\n ImageView foreGround = new ImageView(new Image(new FileInputStream(\"images/foregrounds/[email protected]\")));\n foreGround.setPreserveRatio(true);\n foreGround.setFitWidth(windowHeight / 3);\n foreGround.relocate(windowWidth - foreGround.getFitWidth(), windowHeight - foreGround.getFitWidth() * foreGround.getImage().getHeight() / foreGround.getImage().getWidth());\n addComponent(new NodeWrapper(foreGround));\n } catch (FileNotFoundException ignored) {\n }\n }", "private static void drawUniverse(String background) {\n StdDraw.picture(0.0, 0.0, background);\n }", "private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTransform transform = AffineTransform.getTranslateInstance(0, height);\n transform.concatenate(AffineTransform.getScaleInstance(1, -1));\n g2.setTransform(transform);\n\n int width = this.width;\n int height = this.height;\n if (scale != 1) {\n g2.scale(scale, scale);\n width = (int) Math.round(width / scale);\n height = (int) Math.round(height / scale);\n }\n AbstractGraphics g = new GraphicsSWT(g2);\n\n g.setScale(scale);\n if (background != null) {\n g.drawImage(background, 0, 0, width, height);\n }\n\n synchronized (WFEventsLoader.GLOBAL_LOCK) {\n for (Widget widget : widgets) {\n if (widget != null) widget.paint(g, width, height);\n }\n }\n // draw semi-transparent pixel in top left corner to workaround famous OpenGL feature\n g.drawRect(0, 0, 1, 1, Color.WHITE, .5, PlateStyle.RectangleType.SOLID);\n\n g2.dispose();\n }", "@Override\n\tpublic void render()\n\t{\n\t\tbackground.color().set(grid.backgroundColor());\n\t\tsuper.render();\n\t\tfade.render();\n\t}", "protected void addopqueueonBackground() {\n\t\tlv.setClickable(false);\n\t\tlvx.setClickable(false);\n\t\trefresh.setClickable(false);\n\t\tsearch.setClickable(false);\n\t\tsearch.setEnabled(false);\n\t\tlv.setEnabled(false);\n\t\tlvx.setEnabled(false);\n\t\trefresh.setEnabled(false);\n\t\tcancelButton.setClickable(false);\n\t\tcancelButton.setEnabled(false);\n\t\tlistbackground.setAlpha(0.5f);\n\t\tbackground.setAlpha(0.5f);\n\t}", "public void paintComponentBackground(Graphics g, Insets insets, Color aColor) {\r\n int x = 0;\r\n int y = 0;\r\n int width = getWidth();\r\n int height = getHeight();\r\n if (insets != null) {\r\n x += insets.left;\r\n y += insets.top;\r\n height = height - insets.top - insets.bottom;\r\n width = width - insets.left - insets.right;\r\n } else {\r\n height = height - getInsets().bottom;\r\n }\r\n Color c = g.getColor();\r\n g.setColor(aColor);\r\n g.fillRoundRect(x, y, width, height, 10, 10);\r\n g.setColor(c);\r\n }", "private Background InitBackground()\r\n {\r\n \tBoundingSphere worldBounds = new BoundingSphere(\r\n \t\t new Point3d( 0.0, 0.0, 0.0 ), // Center\r\n \t\t 1000000000000000000000.0 ); // Extent\r\n \t\t\r\n \t// Set the background color and its application bounds\r\n \tbg = new Background( );\r\n \tbg.setColor( backgroundColor );\r\n \tbg.setCapability( Background.ALLOW_COLOR_WRITE );\r\n \tbg.setCapability( Background.ALLOW_COLOR_READ );\r\n \tbg.setCapability( Background.ALLOW_IMAGE_READ );\r\n \tbg.setCapability( Background.ALLOW_IMAGE_WRITE );\r\n \tbg.setApplicationBounds( worldBounds );\r\n \t\r\n \treturn bg;\r\n }", "@Override\r\n public Sprite getBackground() {\r\n return new Level3Background();\r\n }", "@Override\n public void paintComponent (Graphics g)\n {\n ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g.setColor(BACKGROUND_COLOR);\n g.fillRect(0, 0, getHeight(), getHeight());\n g.setColor(color);\n g.fillOval(0, 0, 30, 30);\n }", "public void setBackground(){\r\n Image background = new Image(\"Cards/table.jpg\", 192, 80, false, true);\r\n BackgroundImage backgroundImg = new BackgroundImage(background, BackgroundRepeat.REPEAT, BackgroundRepeat.REPEAT,BackgroundPosition.DEFAULT, null);\r\n mainPane.setBackground(new Background(backgroundImg));\r\n }", "@Override\n\tpublic void render(Graphics g) {\n\t\tg.drawImage(Game.background, 0, 0, 5200, 700, null);\n\t}", "public void paint(Graphics g){\n\t\tsuper.paint(g);\n\t\t//the Background\n\t\tg.drawImage(background, 0, 0, null);\n\t\t\n\t\t//Pad 1\n\t\tg.drawImage(pad1, pad1_x, pad1_y, null);\n\t\t\n\t\t//Pad 2\n\t\tg.drawImage(pad2, pad2_x, pad2_y, null);\n\t}", "protected void paintBackground(Graphics g) {\n g.setColor(editor.getBackground());\n g.fillRect(0, 0, editor.getWidth(), editor.getHeight());\n }", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制圆形\");\n\t}", "protected void drawGuiContainerForegroundLayer(int par1, int par2)\n\t{\n\t\tthis.fontRenderer.drawString(StatCollector.translateToLocal(\"container.inventory\"), 8, this.ySize - 96 + 2, 4210752);\n\n\t\tritualtableInventory.getRitualStrength();\n\t\tritualtableInventory.getMaxRitualStrength();\n\t\tString temp = \"Ritual Table\";\n\n\t\tthis.fontRenderer.drawString(temp, (this.xSize-this.fontRenderer.getStringWidth(temp))/2, 16, 4210752);\n\n\t\tif(ritualtableInventory.getMaxRitualStrength()>0){\n\t\t\ttemp = \"Ritual Square Strength \" + ritualtableInventory.getRitualStrength() + \"/\" + ritualtableInventory.getMaxRitualStrength();\n\t\t\tthis.fontRenderer.drawString(temp, (this.xSize-this.fontRenderer.getStringWidth(temp))/2, 60, 4210752);\n\t\t}\n\t}", "void onRenderBackground(RenderArguments arguments);", "public static void drawBackground(MatrixStack matrices, ContainerScreen<?> screen, ResourceLocation background) {\n RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);\n screen.getMinecraft().getTextureManager().bindTexture(background);\n screen.blit(matrices, screen.guiLeft, screen.guiTop, 0, 0, screen.xSize, screen.ySize);\n }", "private void clearBackground() {\r\n\t\tg.setColor(Color.WHITE);\r\n\t\tg.fillRect(0,0, TetrisGame.PANEL_WIDTH * TetrisGame.SQUARE_LENGTH,\r\n\t\t\t\t TetrisGame.PANEL_HEIGHT * TetrisGame.SQUARE_LENGTH);\r\n\t}", "public CssBackgroundClip() {\r\n\tbgclip = border;\r\n }", "public RippleBackground(RippleDrawable owner, Rect bounds) {\n mOwner = owner;\n mBounds = bounds;\n }", "private void decorate() {\n setBorderPainted(false);\n setOpaque(true);\n \n setContentAreaFilled(false);\n setMargin(new Insets(1, 1, 1, 1));\n }", "@Override\r\n\tpublic void drawBackground(Graphics g, ImageObserver observer) {\n\t\tfor (int i = 0; i < buttons.length; i++) {\r\n\t\t\tbuttons[i].drawBackground(g, observer);\r\n\t\t}\r\n\t\t\r\n\t\t// draw selected screen background\r\n\t\tthis.screens[this.selectedIndex].drawBackground(g, observer);\r\n\t}", "@Override\n protected void drawGuiContainerBackgroundLayer(float var1, int var2, int var3) {\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n this.mc.renderEngine.bindTexture((ResourceLocation)back);\n int var5 = (this.width - this.xSize) / 2;\n int var6 = (this.height - this.ySize) / 2;\n this.drawTexturedModalRect(var5, var6, 0, 0, this.xSize, this.ySize);\n int b = tile.tableBurnTime; // 取得Tile内的燃料燃烧时间\n float maxBurnTime = tile.maxBurnTime*1.0F;// 取得最大燃料燃烧时间,用float,不用的话得不出百分比\n if (b > 0 && maxBurnTime > 0) // 确定描绘的时机\n {\n // 描绘火焰图像\n this.drawTexturedModalRect(this.guiLeft + 81, this.guiTop + 37 + (int)(14 - 14 * ((float)b / maxBurnTime)), 176, (int)(14 - 14 * ((float)b / maxBurnTime)), 14, (int)(14 * ((float)b / maxBurnTime)));\n }\n float hadCopyedTime = tile.hadCopyedTime*1.0F;\n float maxCopyTime = tile.maxCopyTime*1.0F;\n \t\t if(hadCopyedTime > 0 && maxCopyTime > 0){\n \t\t\t this.drawTexturedModalRect(this.guiLeft + 77, this.guiTop + 20, 176, 14, (int)(24*(hadCopyedTime / maxCopyTime)), 17);\n \t\t }\n /*drawCenteredString(fontRendererObj, String.valueOf(tile.hadCopyedTime), 15, 0, 4210752);\n drawCenteredString(fontRendererObj, String.valueOf(tile.maxCopyTime), 15, 25, 4210752);\n drawCenteredString(fontRendererObj, String.valueOf(tile.tableBurnTime), 15, 50, 4210752);\n drawCenteredString(fontRendererObj, String.valueOf(tile.maxBurnTime), 15, 75, 4210752);*/\n }", "protected void drawGuiContainerForegroundLayer(int par1, int par2)\n {\n super.fontRenderer.drawString(this.name, (super.xSize - super.fontRenderer.getStringWidth(this.name)) / 2, 6, 4210752);\n super.fontRenderer.drawString(this.inv, 8, super.ySize - 96 + 2, 4210752);\n }", "@Override\n\tprotected void drawGuiContainerForegroundLayer(int p_146979_1_, int p_146979_2_) {\n\t\tString s = this.tile.hasCustomInventoryName() ? this.tile.getInventoryName() : I18n.format(this.tile.getInventoryName(), new Object[0]);\n\t\tthis.fontRendererObj.drawString(s, this.xSize / 2 - this.fontRendererObj.getStringWidth(s) / 2, 6, 4210752);\n\t\tthis.fontRendererObj.drawString(I18n.format(\"container.inventory\", new Object[0]), 8, this.ySize - 96 + 2, 4210752);\n\t}", "public X background(Color bg) {\n component.setBackground(bg);\n return (X) this;\n }", "@Override\n protected void drawGuiContainerForegroundLayer(int par1, int par2) {\n super.drawGuiContainerForegroundLayer(par1, par2);\n drawCenteredString(fontRendererObj, StatCollector.translateToLocal(\"tile.SpawnEggCopyingMachine.name\"), this.xSize / 2, 6, 4210752);\n this.fontRendererObj.drawString(StatCollector.translateToLocal(\"container.inventory\"), 8, this.ySize - 96 + 2, 4210752);\n /*drawCenteredString(fontRendererObj, String.valueOf(tile.hadCopyedTime), 15, 0, 4210752);\n drawCenteredString(fontRendererObj, String.valueOf(tile.maxCopyTime), 15, 25, 4210752);\n drawCenteredString(fontRendererObj, String.valueOf(tile.tableBurnTime), 15, 50, 4210752);\n drawCenteredString(fontRendererObj, String.valueOf(tile.maxBurnTime), 15, 75, 4210752);*/\n\t }", "private void drawBackgroundGrid(Canvas canvas) {\n Resources resources = getResources();\n Drawable backgroundCell = resources.getDrawable(R.drawable.cell_rectangle);\n // Outputting the game grid\n for (int xx = 0; xx < game.numSquaresX; xx++) {\n for (int yy = 0; yy < game.numSquaresY; yy++) {\n int sX = startingX + gridWidth + (cellSize + gridWidth) * xx;\n int eX = sX + cellSize;\n int sY = startingY + gridWidth + (cellSize + gridWidth) * yy;\n int eY = sY + cellSize;\n\n drawDrawable(canvas, backgroundCell, sX, sY, eX, eY);\n }\n }\n }", "public void setBackgroundColor(Color background)\n {\n backgroundColor = background;\n paintAllObjects();\n }", "@Override\n protected void dispatchDraw(Canvas canvas) {\n canvas.drawRect(mBgFadeRect, mBgFadePaint);\n\n super.dispatchDraw(canvas);\n }", "@Override\n public void render(float delta) {\n Gdx.gl.glClearColor(0.8f, 0.3f, 0.3f, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n bgViewPort.apply();\n batch.setProjectionMatrix(bgViewPort.getCamera().combined);\n batch.begin();\n batch.draw(background,0,0);\n batch.end();\n\n stage.getViewport().apply();\n stage.draw();\n }", "@Override\n protected void onDraw(Canvas canvas) {\n\n if(getBackgroundBitmap() != null){\n Bitmap bmp= getBackgroundBitmap();\n bmp = cutBottom(bmp);\n canvas.drawBitmap(bmp, 0,0, canvasPaint);\n canvas.drawBitmap(canvasBitmap, 0, 0, canvasPaint);\n // canvas.drawBitmap(canvasBitmap, 0, 0, canvasPaint);\n canvas.drawPath(drawPath, drawPaint);\n\n }else{\n canvas.drawBitmap(canvasBitmap, 0, 0, canvasPaint);\n canvas.drawPath(drawPath, drawPaint);\n }\n\n }", "public void paintComponent(Graphics graphics) {\n graphics.drawImage(background, 0, 0, null);\n }", "@Override\n public void paint(final Graphics g)\n {\n try\n {\n offScreenG.setColor(getBackground());\n offScreenG.fillRect(0, 0, getSize().width, getSize().height);\n\n if(offG == null)\n \toffG = offScreenG.create();\n\n if(backGround != null)\n {\n \t//System.out.println(\"drawing the loaded background image\");\n \toffG.drawImage(backGround, 0, 0, this);\n \tfinal int h = backGround.getHeight(this);\n \tfinal int w = backGround.getWidth(this);\n \toffG.setColor(Color.BLACK);\n \t//offG.drawRect(0, 0, w, h);\n }\n\n offScreenG.setColor(Color.BLACK);\n //offScreenG.drawRect(0, 0, this.getWidth()-1, this.getHeight()-1); //disable drawing of bounding box\n\n final Graphics2D g2 = (Graphics2D)offG;\n\t\t\tfinal Composite normC = g2.getComposite();\n\t\t\tg2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_ATOP,(float)0.8));\n for(int i=0; i < associations.size(); i++)\n \tassociations.elementAt(i).render(offG);\n if(mpos != null && start != null)\n {\n \toffG.setColor(Color.DARK_GRAY);\n \tfinal Point rPoint = start.getPoint(mpos);\n \toffG.drawLine(rPoint.x, rPoint.y, mpos.x, mpos.y);\n \tif(retType.equals(\"pair\"))\n \t{\n \t\tdrawArrow(g2, mpos.x, mpos.y, rPoint.x, rPoint.y, 1);\n \t}\n \tdrawArrow(g2, rPoint.x, rPoint.y, mpos.x, mpos.y, 1);\n }\n\t\t\tif(hotspots != null)\n\t\t\t{\n\t\t\t\tfor(int i=0; i < hotspots.size(); i++)\n\t\t\t\t\thotspots.elementAt(i).render(g2);\n\t\t\t}\n\n\t\t\tif(movableObjects != null)\n\t\t\t{\n\t\t\t\tfor(int i=0; i < movableObjects.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tmovableObjects.elementAt(i).render2(g2);\n\t\t\t\t}\n\t\t\t}\n g2.setComposite(normC);\n if(drawHSLabel != null)\n {\n \tif(drawHSLabel.hotSpotLabel != null && !drawHSLabel.hotSpotLabel.equals(\"\"))\n \t{\n\n \t\tfinal Rectangle2D bounds = (new TextLayout(drawHSLabel.hotSpotLabel,g2.getFont(),g2.getFontRenderContext())).getBounds();\n \t\tg2.setColor(Color.YELLOW);\n \t\tg2.fillRect(mpos.x, mpos.y-((int)bounds.getHeight()+4), (int)bounds.getWidth()+10, (int)bounds.getHeight()+8);\n \t\tg2.setColor(Color.BLACK);\n \t\tg2.drawRect(mpos.x, mpos.y-((int)bounds.getHeight()+4), (int)bounds.getWidth()+10, (int)bounds.getHeight()+8);\n \t\tg2.drawString(drawHSLabel.hotSpotLabel, mpos.x+5, mpos.y);\n \t}\n }\n\n g.drawImage(offScreenImg, 0, 0, this);\n\n if (om.equals(\"figure_placement_interaction\")) {\n for (int h=0; h < hotspots.size(); h++) {\n //g.drawRect(hotspots.elementAt(h).coords[0],hotspots.elementAt(h).coords[1],hotspots.elementAt(h).coords[2],hotspots.elementAt(h).coords[3]);\n }\n }\n }\n catch(final Exception exception)\n {\n \texception.printStackTrace();\n }\n }", "@Override\n public void draw(Batch batch, float parentAlpha) {\n\n if (gridActor != null) {\n drawGridBackground(batch, parentAlpha);\n }\n super.draw(batch, parentAlpha);\n\n //Gdx.gl.glDisable(GL20.GL_BLEND);\n //batch.begin();\n }", "@Override\n protected void paintBorder(Graphics g) {\n g.setColor(getForeground());\n g.drawRoundRect(0, 0, getWidth() - 1, getHeight() - 1, 15, 50);\n }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g); // paint parent's background\n setBackground(Color.WHITE); // set background color for this JPanel\n if (img != null) {\n g.drawImage(img, 100, 100, this);\n }\n }", "public void setBg(){\n this.setBackground(color);\n }", "protected void paintComponent(Graphics g) {\n if (getModel().isArmed()) {\n g.setColor(Color.lightGray);\n } else {\n g.setColor(getBackground());\n }\n g.fillOval(0, 0, getSize().width-1, getSize().height-1);\n super.paintComponent(g);\n }", "public static void makeBackgroundGray(){\r\n\t\tStdDraw.clear(StdDraw.LIGHT_GRAY);\r\n\t}", "public void setDropActiveBackground() {\n setBackgroundDrawable(getDropActiveBgDrawable());\n }" ]
[ "0.70760053", "0.6907204", "0.6863131", "0.681797", "0.6784848", "0.6740102", "0.6689071", "0.65808916", "0.65722144", "0.65214145", "0.6494457", "0.64857453", "0.6463672", "0.64457226", "0.641351", "0.6389641", "0.63649315", "0.6307549", "0.6303136", "0.62846476", "0.6252107", "0.6246018", "0.6214093", "0.62056655", "0.61639917", "0.6155415", "0.6141862", "0.61093736", "0.6094606", "0.6094387", "0.6083549", "0.60560346", "0.60543984", "0.60428673", "0.60229635", "0.6018689", "0.59996444", "0.59791064", "0.595154", "0.5912897", "0.58636993", "0.5860132", "0.5854766", "0.5845585", "0.583515", "0.5826857", "0.582062", "0.5820184", "0.5796406", "0.5786884", "0.57861453", "0.57424486", "0.57104945", "0.56981874", "0.56919867", "0.56458193", "0.56422925", "0.5635569", "0.56284505", "0.5624389", "0.5612573", "0.5595066", "0.558237", "0.555628", "0.5549654", "0.5549288", "0.5537437", "0.5512682", "0.5505096", "0.5501918", "0.54830927", "0.54694855", "0.5464645", "0.5454317", "0.54402757", "0.5432958", "0.54284686", "0.54224455", "0.5412576", "0.5403791", "0.5401632", "0.54002905", "0.5399394", "0.53985035", "0.539591", "0.5393957", "0.5392226", "0.5390991", "0.5380585", "0.5372014", "0.53704345", "0.5360126", "0.53590703", "0.5356314", "0.532547", "0.5324873", "0.53140056", "0.5306252", "0.5303289", "0.5302254" ]
0.7115377
0
Creates a new instance of CAccountElement
public CAccountElement() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Account createAccount(byte[] address) {\n return new Account(address);\n }", "Account() { }", "public Account() {\n this(DSL.name(\"account\"), null);\n }", "public Account() {\r\n\t\tthis(\"[email protected]\", \"Account\");\r\n\t}", "private Account createAccount8() {\n Account account = new Account(\"123456008\", \"Jean Sans Enfant\",\n new SimpleDate(4, 23, 1976).asDate(), \"[email protected]\", true, false, new CreditCard(\"4320123412340008\"));\n\n return account;\n }", "public Account() {\n\t}", "Account create();", "public Account(String currency) {\n //numAccount += 1;\n incrementNumAccount();\n this.accountID = numAccount;\n this.dateOfCreation = LocalDate.now();\n\n setPrimaryCurrency(currency);\n this.currencyBalance = Money.of(0, this.primaryCurrency);\n ownerID = new ArrayList<>();\n }", "public Account() {\n\n\t}", "private static Account getAccount(Node node) {\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n int accNum = Integer.parseInt(getTagValue(\"accountNumber\", element));\n String password = getTagValue(\"password\", element);\n double balance = Double.parseDouble(getTagValue(\"accountBalance\", element));\n String cusName = getTagValue(\"customerName\", element);\n String cusAddress = getTagValue(\"customerAddress\", element);\n String cusPhone = getTagValue(\"customerPhoneNum\", element);\n return new Account(accNum, password, balance, cusName, cusAddress, cusPhone);\n }\n return new Account();\n }", "public Account() {\n super();\n }", "public Account() {\n }", "public Account() {\n }", "public Account() {\n }", "public static ATMAccount createAccount() {\r\n\t\tString userName;\r\n\t\tdouble userBalance;\r\n\t\tint digit = -1;\r\n\r\n\t\tSystem.out.println(\"Please enter a name for the account: \");\r\n\t\tuserInput.nextLine();\r\n\t\tuserName = userInput.nextLine();\r\n\r\n\t\t//Requests digits 1 by 1 for the pin number\r\n\t\tString accPin = \"\";\r\n\t\tfor (int i = 1; i < 5; i++) {\r\n\t\t\tdigit = -1;\r\n\t\t\tSystem.out.println(\"Please enter digit #\" + i + \" of\" + \"your pin.\");\r\n\t\t\tdo {\r\n\t\t\t\tdigit = userInput.nextInt();\r\n\t\t\t} while (digit < 0 || digit > 9);\r\n\t\t\taccPin += digit;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Please put the amount of money you would like to \" + \"initially deposit into the account: \");\r\n\t\tuserBalance = userInput.nextDouble();\r\n\t\tRandom accountIDGenerator = new Random();\r\n\t\tint userID = accountIDGenerator.nextInt(2147483647);\r\n\t\tATMAccount account = new ATMAccount(userID, userName, Integer.parseInt(accPin), userBalance);\r\n\t\tSystem.out.println(\"Acount Information: \\n\"+account.toString());\r\n\t\treturn account;\r\n\t}", "public UserAccount() {\n\n\t}", "public Account()\n {\n id = UUID.randomUUID();\n }", "public Account() {\n\n }", "private Account createAccount4() {\n Account account = new Account(\"123456004\", \"Chad I. Cobbs\",\n new SimpleDate(4, 23, 1976).asDate(), \"[email protected]\", true, false,\n new CreditCard(\"1234123412340004\"), new CreditCard(\"4320123412340005\"));\n\n final Percentage percent50 = new Percentage(0.5);\n final Percentage percent25 = new Percentage(0.25);\n account.addBeneficiary(\"Jane\", percent25);\n account.addBeneficiary(\"Amy\", percent25);\n account.addBeneficiary(\"Susan\", percent50);\n return account;\n }", "public Account() {\n this(null, 0);\n }", "@Override\n\tpublic Account createAccount(Account account) {\n\t\tif(account != null) {\n\t\t\taccountList.add(account);\n\t\t\treturn account;\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public ExternallyOwnedAccount() {}", "public UserAccount() {\n }", "public BankAccount() {\t\n\t\tthis.accountNumber = UUID.randomUUID().toString().substring(0, 6);\n\t\tthis.balance = 0;\n\t\tthis.accountType = \"Bank account\";\n\t}", "public Account createAccount(Account account){\n\t\t\n\t\taccount.createdDate = new Date();\n\t\taccount.isActive = true;\n\t\t\n\t\t\n\t\taccount.person = personService.createPerson(account.person);\n\t\taccount.person.personSettings = personalSettingsService.createSettings(account.person.personSettings);\n\t\t\n\t\t\n\t\treturn account;\n\t}", "public UserAcct() {\r\n }", "public ProfileBankAccount() {\r\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public AccountManager(){\r\n allAccounts.put(\"CreditCard\",credits);\r\n allAccounts.put(\"LineOfCredit\",lineOfCredits);\r\n allAccounts.put(\"Chequing\",chequing);\r\n allAccounts.put(\"Saving\",saving);\r\n createAccount(\"3\", 0);\r\n primaryAccount = chequing[0];\r\n }", "public Account createAccount() {\n\t\t\n\t\tAccountBuilder builder = new AccountBuilder();\n\t\tUserRole role = new UserRole();\n\t\trole.setUsername(getUsername());\n\t\trole.setRole(\"ROLE_USER\");\n\t\t\n\t\t//builds the account entity using the front end POJO\n\t\tbuilder\n\t\t\t.withUsername(getUsername())\n\t\t\t.withPassword(getPassword())\n\t\t\t.withLastName(getLastName())\n\t\t\t.withFirstName(getFirstName())\n\t\t\t.withRole(role)\n\t\t\t.withStatus(AccountStatus.ACTIVE)\n\t\t\t.withEmail(getEmail())\n\t\t\t.withStoreCd(getStoreCd());\n\t\t\n return builder.build();\n\t}", "public Builder setAccountBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n account_ = value;\n onChanged();\n return this;\n }", "public void TestAccount1() {\n\n AccountCreator account = new AccountCreator();\n account.setFirstName(\"Bob\");\n account.setLastName(\"Smith\");\n account.setAddress(\"5 Rain Road\");\n account.setPIN();\n account.setTestBalance(300);\n accountList.add(account);\n\n }", "private GetAccount()\r\n/* 19: */ {\r\n/* 20:18 */ super(new APITag[] { APITag.ACCOUNTS }, new String[] { \"account\" });\r\n/* 21: */ }", "private String newQi4jAccount()\n throws UnitOfWorkCompletionException\n {\n UnitOfWork work = unitOfWorkFactory.newUnitOfWork();\n EntityBuilder<AccountComposite> entityBuilder = work.newEntityBuilder( AccountComposite.class );\n AccountComposite accountComposite = entityBuilder.instance();\n accountComposite.name().set( ACCOUNT_NAME );\n accountComposite = entityBuilder.newInstance();\n String accoutnIdentity = accountComposite.identity().get();\n work.complete();\n\n return accoutnIdentity;\n }", "public BankAccount() {\n this(12346, 5.00, \"Default Name\", \"Default Address\", \"default phone\");\n }", "public CapitalAccount(\n \t\t\tIObjectKey objectKey, \n \t\t\tMap extensions, \n \t\t\tIObjectKey parent,\n \t\t\tIListManager subAccounts) {\n \t\tsuper(objectKey, extensions, parent, JMoneyPlugin.getResourceString(\"Account.newAccount\"), subAccounts);\n \t\t\n this.abbreviation = null;\n this.comment = null;\n \t}", "Account(int account_number,double balance) //pramiterized constrector\n {\n this.account_number=account_number;\n this.balance=balance;\n }", "public Account fillAccount(String emailAddress, String name) {\n\t\tAccount acct = new Account();\n\t\t// Set the unique Id on our side that we pass when we are creating this account\n\t\tacct.setMerchantAccountId(VindiciaUtil.createUniqueId(\"account\")); \n\n\t\t// Specify customer's email address here . This the address where customer\n\t\t// will receive CashBox generated emails\n\t\tacct.setEmailAddress(emailAddress);\n\t\tacct.setName(name);\n\t\t\n\t\treturn acct;\n\t}", "public AccountInfo() {\n this(null, null);\n }", "Account create(Context context);", "public void createUserAccount(UserAccount account);", "public Account() {\n this(0, 0.0, \"Unknown name\"); // Invole the 2-param constructor\n }", "public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}", "public SavingsAccount() {\n\t}", "public static Account fromByteArray(byte[] b) {\n return new Account(b);\n }", "int createAccount(Account account);", "Account(String username, String email) {\n this.username = username;\n this.email = email;\n }", "BankAccount(String accountType){\n\t\tSystem.out.println(\"NEW ACCOUNT: \" + accountType);\n\t\tthis.accountType = accountType; \n\t}", "public Account(String GID, String name) {\r\n\t\r\n\t\tthis.GID = GID;\r\n\t\tthis.name = name;\r\n\t\tevents = new ArrayList<Event>();\r\n\t\tpastRelations = new ArrayList<Account>();\r\n\t\tsettings = new ArrayList<String>();\r\n\t}", "public Account() {\n\t\t//starting amount is 1500\n\t\tmoney = 1500;\n\t}", "public JsonpAccount() {\n }", "public Account() {\n dateCreated = new java.util.Date();\n }", "public Account() {\n dateCreated = new java.util.Date();\n }", "public account() {\n initComponents();\n autoID();\n branch();\n }", "public Builder clearAccount() {\n bitField0_ = (bitField0_ & ~0x00000002);\n account_ = getDefaultInstance().getAccount();\n onChanged();\n return this;\n }", "@Test\n public void accountCustomConstructor_isCorrect() throws Exception {\n\n int accountId = 100;\n int userId = 101;\n String accountName = \"account Test Name\";\n double balance = 1000.00;\n\n // Create custom account\n Account account = new Account(accountId, userId, accountName, balance);\n\n // Verify values\n assertEquals(accountId, account.getAccountId());\n assertEquals(userId, account.getUserId());\n assertEquals(accountName, account.getAccountName());\n assertEquals(balance, account.getBalance(), 0);\n }", "public AccountsRecord() {\n super(Accounts.ACCOUNTS);\n }", "public SavingsAccount() {\n super();\n }", "public Account(Holder holder) {\n this(holder, 0);\n }", "public com.vodafone.global.er.decoupling.binding.request.InactivateAccount createInactivateAccount()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.InactivateAccountImpl();\n }", "public BankAccount() {\n numberOfAccounts++;\n this.accountNumber = accountNumberGenerator(); \n }", "public AccountCreator createAccountCreator(String xmlrpcUrl);", "public Builder setAccount(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n account_ = value;\n onChanged();\n return this;\n }", "public Account(Name alias) {\n this(alias, ACCOUNT);\n }", "Account(){\r\n\t\t//id, balance and annualInterestRate are set to 0, the dateCreated is set to the current date and time\r\n\t\t setId(0);\r\n\t\t setBalance(0);\r\n\t\t setAnnualInterestRate(0);\r\n\t\t this.dateCreated = new Date(System.currentTimeMillis());\r\n\t }", "public CDAccount() {\r\n\t\t//termOfCD = 0;\r\n\t\t//maturityDate = new DateInfo();\r\n\t}", "public abstract void createAccount(JSONObject account);", "public Builder setAccount(net.nyhm.protonet.example.proto.AccountProto.Account value) {\n if (accountBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n account_ = value;\n onChanged();\n } else {\n accountBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000004;\n return this;\n }", "public Builder setAccount(net.nyhm.protonet.example.proto.AccountProto.Account value) {\n if (accountBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n account_ = value;\n onChanged();\n } else {\n accountBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000004;\n return this;\n }", "public void createAccount(double balance) {\r\n\t\tAccount account = new Account(balance);\r\n\t\tsetPlayerAccount(account);\r\n\t}", "public BankAccount()\n {\n \t//intializing instance variables\n \t//at the time object creation constuctor executes \n \t\n \taccountHolderName=\"unknow\";\n \taccountBalance=0;\n \t\n }", "DomainElement createDomainElement();", "public Account createAccount(String accountId) throws LedgerException {\n // Check uniqueness of 'accountId'\n if (getExistingAccount(accountId) != null) {\n throw new LedgerException(\n \"create account\",\n String.format(\"The account '%s' already exists.\", accountId)\n );\n }\n\n // The accountId is unique, so create new account\n Account newAccount = new Account(accountId);\n\n // Update currentBlock with new account\n this.currentBlock.addAccount(newAccount);\n return newAccount;\n }", "public AccountTypeEntity() { }", "public com.vodafone.global.er.decoupling.binding.request.InactivateAccountType createInactivateAccountType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.InactivateAccountTypeImpl();\n }", "public FeeAccount ()\n {\n }", "AionAddress createAccount(String password);", "public Builder clearAccount() {\n \n account_ = getDefaultInstance().getAccount();\n onChanged();\n return this;\n }", "public com.vodafone.global.er.decoupling.binding.request.GetBasicAccount createGetBasicAccount()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.GetBasicAccountImpl();\n }", "public static void createAccount(String name, String address, String contactNum, String userId, String password, float initDeposit) {\n\t\tcustomerList.add(new Customer(name, address, contactNum, new SavingsAccount(userId, password, initDeposit)));\n\t}", "public Account createAccount(String emailAddress) {\n\t\tAccount acct = fillAccount(emailAddress, emailAddress);\n\t\t\n\t\ttry {\n\t\t\tboolean created = acct.update(null);\n\t\t\tif (created) \n\t\t\t\tSystem.out.println(\"Account created\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"Account updated\");\n\t\t} catch (VindiciaReturnException e) {\n\t\t\tSystem.out.println(\"Vindicia response string: \" + e.getMessage() + \" , Call SOAP ID: \" + e.getSoapId());\n\t\t\te.printStackTrace();\n\t\t} catch (VindiciaServiceException e) {\n\t\t\tSystem.out.println(\"Vindicia response string: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn acct;\n\t}", "public Builder setAccountBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n account_ = value;\n onChanged();\n return this;\n }", "public static Account createSyncAccount(Context context) {\n Account newAccount = new Account(\n ACCOUNT, ACCOUNT_TYPE);\n // Get an instance of the Android account manager\n AccountManager accountManager =\n (AccountManager) context.getSystemService(\n ACCOUNT_SERVICE);\n /*\n * Add the account and account type, no password or user data\n * If successful, return the Account object, otherwise report an error.\n */\n if (accountManager.addAccountExplicitly(newAccount, null, null)) {\n /*\n * If you don't set android:syncable=\"true\" in\n * in your <provider> element in the manifest,\n * then call context.setIsSyncable(account, AUTHORITY, 1)\n * here.\n */\n } else {\n /*\n * The account exists or some other error occurred. Log this, report it,\n * or handle it internally.\n */\n }\n return newAccount;\n }", "public Account() {\n // special case of the word \"this\"\n this(\"01234\", 0.00, \"Default Name\", \"Default Email\", \"Default Phone\");\n System.out.println(\"Empty constructor called\"); // only called once when instantiated.\n }", "public CoupleAccount(String name) {\r\n\t\tthis.name = name;\r\n\t}", "Document createAccount(String username, String accountDisplayName,\n String accountFullName, double balance, double interestRate);", "public Account(){\r\n System.out.println(\"Called of empty constructor.\");\r\n }", "public static Account generate() {\n return Account.fromHexString(Util.generateRandom32BytesHex());\n }", "public User_Account() {\r\n\t\tfirstName=middleName=lastName = null;\r\n\t\taddress=city=state=zip=null;\r\n\t\tphone=email=webLinks= new ArrayList <String>(); \r\n\t\tedu = new ArrayList <Education>();\r\n\t\twork = new ArrayList <Work>();\r\n\t}", "public com.vodafone.global.er.decoupling.binding.request.GetFullAccount createGetFullAccount()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.GetFullAccountImpl();\n }", "public static Account createNewAccount(String GID, String name, Context activity) {\r\n\t\t\r\n\t\tString[] emailParts = GID.split(\"@\"); \r\n\t\t\r\n\t\t//Check if this Account is already stored\r\n\t\tString fileName = name + \"_\" + emailParts[0] + \"_\" + emailParts[1]; \r\n\t\t\r\n\t\tFile f = new File(activity.getFilesDir(), fileName);\r\n\t\t\r\n\t\tif(f.exists()) {\r\n\t\t try {\r\n\t\t //use buffering\r\n\t\t FileInputStream fis = activity.openFileInput(fileName);\r\n\t\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tAccount recoveredAccount = (Account) ois.readObject();\r\n\t\t\t\t\tcurrentAccount = recoveredAccount;\r\n\t\t\t return recoveredAccount;\r\n\t\t\t\t}\r\n\t\t finally {\r\n\t\t \tois.close();\r\n\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t catch(ClassNotFoundException ex){\r\n\t\t \tSystem.out.println(\"Cannot perform input. Class not found.\");\r\n\t\t \treturn createAndStoreAccount(fileName, GID, name);\r\n\t\t }\r\n\t\t catch(IOException ex){\r\n\t\t System.out.println(\"Cannot perform input.\");\r\n\t\t return createAndStoreAccount(fileName, GID, name);\r\n\t\t }\r\n\t\t \r\n\t\t} else {\r\n\t\t\treturn createAndStoreAccount(fileName, GID, name, activity);\r\n\t\t}\r\n\t}", "public Account(String customerName, String customerEmail, String customerPhone) {\n this(\"99999\", 100.55, customerName, customerEmail, customerPhone);\n // created from IntelliJ's Generate - but we used them inside of the constructor above, using \"this\"\n// this.customerName = customerName;\n// this.customerEmail = customerEmail;\n// this.customerPhone = customerPhone;\n }", "GenerateUserAccount () {\r\n }", "BankAccount(){\n\t\tSystem.out.println(\"NEW ACCOUNT CREATED\");\t\n\t}", "public account(int acc,int Id,String Atype,double bal ){\n this.accNo = acc;\n this.id = Id;\n this.atype = Atype;\n this.abal = bal;\n }", "private void createAccounts(){\r\n for(int i = 0; i < accountInTotal; i++){\r\n try {\r\n Account tempAccount = new Account(startingBonds);\r\n theAccounts.add(tempAccount);\r\n } catch(Exception e){\r\n System.err.println(\"Error\");\r\n }\r\n }\r\n }", "private Account(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static Account CreateSyncAccount(Context context) {\n Account newAccount = new Account(\n ACCOUNT, ACCOUNT_TYPE);\n // Get an instance of the Android account manager\n AccountManager accountManager =\n (AccountManager) context.getSystemService(\n ACCOUNT_SERVICE);\n /*\n * Add the account and account type, no password or user data\n * If successful, return the Account object, otherwise report an error.\n */\n if (accountManager.addAccountExplicitly(newAccount, null, null)) {\n /*\n * If you don't set android:syncable=\"true\" in\n * in your <provider> element in the manifest,\n * then call context.setIsSyncable(account, AUTHORITY, 1)\n * here.\n */\n } else {\n /*\n * The account exists or some other error occurred. Log this, report it,\n * or handle it internally.\n */\n }\n\n return newAccount;\n }", "public Account(String alias) {\n this(DSL.name(alias), ACCOUNT);\n }", "public BmAccountsRecord() {\n super(Tue4BmAccounts.BM_ACCOUNTS);\n }" ]
[ "0.6714577", "0.67064875", "0.6523191", "0.6519937", "0.6485862", "0.62989086", "0.6292924", "0.62901753", "0.6268224", "0.623985", "0.6230604", "0.621999", "0.62090915", "0.62090915", "0.6204228", "0.6181392", "0.61732644", "0.6169511", "0.61415476", "0.61110544", "0.60967", "0.6079704", "0.6039889", "0.5983931", "0.59530425", "0.58558214", "0.5842005", "0.5813132", "0.58042395", "0.57940096", "0.5785496", "0.57674104", "0.5761297", "0.5757457", "0.5745068", "0.5731409", "0.5723818", "0.57229245", "0.5716167", "0.5701481", "0.57013357", "0.56838745", "0.5648615", "0.5633957", "0.56263196", "0.5593038", "0.55849403", "0.55832195", "0.5574343", "0.55736333", "0.5568184", "0.55656546", "0.55656546", "0.55602705", "0.5560179", "0.55513775", "0.55494213", "0.55411154", "0.5539439", "0.55389696", "0.55373037", "0.553349", "0.553206", "0.54971343", "0.54865855", "0.54710996", "0.5464721", "0.5462543", "0.5462543", "0.5462044", "0.54616594", "0.5449253", "0.54444206", "0.54438114", "0.54351366", "0.5433619", "0.5428732", "0.54173905", "0.5411558", "0.54105103", "0.540898", "0.5407447", "0.5405902", "0.54037905", "0.5393777", "0.5378057", "0.5372415", "0.5367804", "0.5362918", "0.5360837", "0.5359526", "0.53531295", "0.5350139", "0.5349064", "0.5348086", "0.5347477", "0.5344504", "0.53273016", "0.53232795", "0.5313642" ]
0.7871365
0
Getter for property key.
public String getKey() { return this.key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPropertyKey() {\n\t\treturn propertyKey;\n\t}", "public String getPropKey() {\n return propKey;\n }", "public String propKey() {\n return propKey;\n }", "String getProperty(String key);", "String getProperty(String key);", "String getProperty(String key);", "public String get(String key) {\n return this.properties.getProperty(key);\n }", "@Override\r\n\tpublic String get(Object key) {\r\n\t\tif (key == null) return null;\r\n\t\treturn getProperty(key.toString());\r\n\t}", "public int getPropertyInt(String key);", "Object getProperty(String key);", "org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey();", "public String getProperty(Object obj, String key);", "public String get(String key) {\n return this.properties.getProperty(key);\n }", "public static String getProperty(String key) {\r\n\t\treturn prop.getProperty(key);\r\n\t}", "Object getClientProperty(Object key);", "public org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey() {\n return key_ == null ? org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance() : key_;\n }", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "Object getKey();", "public Object getKey() {\r\n return key;\r\n }", "public org.apache.calcite.avatica.proto.Common.DatabaseProperty getKey() {\n if (keyBuilder_ == null) {\n return key_ == null ? org.apache.calcite.avatica.proto.Common.DatabaseProperty.getDefaultInstance() : key_;\n } else {\n return keyBuilder_.getMessage();\n }\n }", "public Object getProperty(Object key) {\r\n\t\treturn properties.get(key);\r\n\t}", "public String getProperty(String key) {\n\t\treturn this.properties.getProperty(key);\n\t}", "public String getProperty(String key) {\n\t\treturn this.properties.get(key);\n\t}", "public String getProp(String key) {\n\t\treturn prop.getProperty(key);\n\t}", "public String getProperty( String key )\n {\n List<Props.Entry> props = this.props.getEntry();\n Props.Entry keyObj = new Props.Entry();\n keyObj.setKey( key );\n\n String value = null;\n int indx = props.indexOf( keyObj );\n if ( indx != -1 )\n {\n Props.Entry entry = props.get( props.indexOf( keyObj ) );\n value = entry.getValue();\n }\n\n return value;\n }", "private String getValueFromProperty(String key) {\n\t\treturn properties.getProperty(key);\n\n\t}", "@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}", "public String getProperty(Class type, String key);", "public String getKeyName(){\n\n //returns the value of the keyName field\n return this.keyName;\n }", "public Object getKey()\n {\n return key;\n }", "public Object getKey() {\n return key;\n }", "public static String getProperty(String key) {\n\t\treturn properties.getProperty(key);\n\t}", "public static String getPropertyValue(String key){\n return properties.getProperty(key);\n }", "public static String get(String key) {\n return properties.getProperty(key);\n }", "public String getProperty(String key) {\n String value = properties.getProperty(key);\n return value;\n }", "@NotNull\n @JsonProperty(\"key\")\n public String getKey();", "@Override\n\tpublic String getKey() {\n\t\treturn key;\n\t}", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "public static String getProperty(String key) {\n if (prop == null) {\n return null;\n }\n return prop.getProperty(key);\n }", "@Override\n public String getKey() {\n return key;\n }", "public static String getKey(){\n\t\treturn key;\n\t}", "public String getKey() {\n return this.key;\n }", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "protected K getKey() {\n return this.key;\n }", "public String getPropertyMapKeyName() {\n return m_propertyMapKeyName;\n }", "public String getKey_() {\n return key_;\n }", "public String getKey(){\n\t\treturn key;\n\t}", "public String getKey() {\r\n return key;\r\n }", "public String getKey() {\r\n return key;\r\n }", "public String getKey() {\r\n return key;\r\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public java.lang.String getKey() {\n\t\treturn this.key;\n\t}", "public String getProperty(String key) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n return this.attributes.getProperty(key);\n }", "public String getKey() {\r\n return key;\r\n }", "public static String getProperty(String key) {\r\n\r\n\t\treturn getProperties(LanguageManagerUtil.getCurrentLanguage()).getString(key);\r\n\t}", "public String getKey() {\n\t\treturn this.key;\n\t}", "public String getKey() {\n\t\treturn this.key;\n\t}", "public String getKey() {\n\t\treturn this.key;\n\t}", "@Nullable public String getKey() {\n return key;\n }", "public final String getKey() {\n return key;\n }", "public String getKey() {\r\n\t\treturn key;\r\n\t}", "public String getKey() {\r\n\t\treturn key;\r\n\t}", "public String getKey() {\r\n\t\treturn key;\r\n\t}", "@JsonProperty(\"key\")\n public String getKey();", "@JsonProperty(\"key\")\n public String getKey();", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }" ]
[ "0.8043425", "0.7748214", "0.7633747", "0.7581007", "0.7581007", "0.7581007", "0.7377497", "0.7312816", "0.72935414", "0.7279241", "0.7273526", "0.7258101", "0.7253103", "0.7154231", "0.71540076", "0.709679", "0.70721334", "0.70721334", "0.70721334", "0.70721334", "0.70721334", "0.70721334", "0.7041392", "0.7024516", "0.70068175", "0.7004754", "0.69913197", "0.696287", "0.6942986", "0.6927716", "0.6923415", "0.6918257", "0.6910312", "0.6904322", "0.6896401", "0.6895895", "0.6883955", "0.6871519", "0.6867461", "0.68645054", "0.6852389", "0.68521607", "0.68482953", "0.68482953", "0.68482953", "0.68482953", "0.68414766", "0.68305856", "0.68219507", "0.68163127", "0.681533", "0.681533", "0.681533", "0.681533", "0.681533", "0.681533", "0.681533", "0.681533", "0.681533", "0.681533", "0.681533", "0.681533", "0.681533", "0.6811797", "0.6800132", "0.6789384", "0.67705643", "0.6765086", "0.6765086", "0.6765086", "0.67574114", "0.67574114", "0.67574114", "0.67574114", "0.67574114", "0.67574114", "0.6740681", "0.6740681", "0.67399293", "0.6722794", "0.6705518", "0.67014575", "0.66948336", "0.66948336", "0.66948336", "0.6687979", "0.6686641", "0.66849893", "0.66849893", "0.66849893", "0.66749734", "0.66749734", "0.6671541", "0.6671541", "0.6671541", "0.6671541", "0.6671541", "0.6671541", "0.6671541", "0.6671541" ]
0.670288
81
Setter for property key.
public void setKey(String key) { this.key = key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void setProperty(String key, Object value) {\n\n\t\t}", "public void setProperty(String key, Object value);", "public void setPropKey(String propKey) {\n this.propKey = propKey;\n }", "public void setProperty( String key, Object value );", "public DrillBuilder setPropertyKey(String propertyKey) {\n this.propertyKey = propertyKey;\n return this;\n }", "protected void setKey(String key) {\r\n this.key = key;\r\n }", "void setKey(java.lang.String key);", "private void setKey(String key) {\n this.key = key;\n }", "public void setKey(final String key);", "public void setKey(final String key);", "void setProperty(String key, Object value);", "void setKey(final String key);", "public void setKey(String key) {\n this.key = key;\n }", "public void setKey(String key) {\r\n this.key = key;\r\n }", "public void setKey(String key) {\n this.key = key;\n }", "public void setKey(String key) {\n this.key = key;\n }", "public void setKey(String key) {\n this.key = key;\n }", "public void setProperty(Object key, Object value) {\r\n\t\tproperties.put(key, value);\r\n\t}", "void setKey(String key);", "private void setKey(String key){\n\t\tthis.key=key;\n\t}", "public void setKey(Key key) {\n this.key = key;\n }", "public final void setKey(String key) {\n this.key = key;\n }", "void setKey(K key);", "public void setProperty(String key, Object value) {\n commandData.put(key, value);\n }", "public void setKey(String key) {\r\n\t\tthis.key = key;\r\n\t}", "public void setKey(String key)\r\n {\r\n m_key = key;\r\n }", "public void setKey(final String key) {\n this.key = key;\n }", "public void setKey(String key) {\n\t\tthis.key = key;\n\t}", "public void setKey(String key) {\n\t\tthis.key = key;\n\t}", "public void setKey(String key) {\n\t\tthis.key = key;\n\t}", "void setObjectKey(String objectKey);", "public void set(String newKey)\n\t{\n\t\tthis.Key = newKey;\n\t}", "public void setProperty(String key, String value) {\n\t\tthis.properties.put(key, value);\n\t}", "public void setProperty(String key, String value) {\n\t\tthis.properties.setProperty(key, value);\n\t}", "public static void setProp(PropertiesAllowedKeys key, String value) {\n\t\tproperties.setProperty(key.toString(), value);\n\t\tpersistSettings();\n\t}", "void putClientProperty(Object key, Object value);", "public void setKey(int key){\r\n this.key = key; \r\n }", "public void setKey(java.lang.String key) {\n\t\tthis.key = key;\n\t}", "public void setKey (K k) {\n key = k;\n }", "@Override\n\tpublic ManagedFunctionObjectTypeBuilder<M> setKey(M key) {\n\t\tthis.key = key;\n\t\tthis.index = key.ordinal();\n\t\treturn this;\n\t}", "public void setKey( Long key ) {\n this.key = key ;\n }", "public void addProperty(String key, String value);", "void set(String key, Object value);", "public K setKey(K key);", "public void set(String key, Object value) {\n set(key, value, 0);\n }", "public <T> void setValue (String key, T value)\n\t{\n\t\tproperties.get(key).value.setValue(value);\n\t}", "@VisibleForTesting\n public static void setProperty(String theKey, String theValue) {\n getProperties().setProperty(theKey, theValue);\n }", "final public void setProperty(String key, String value) {\n logger.info(\"Kylin Config was updated with \" + key + \" : \" + value);\n properties.setProperty(BCC.check(key), value);\n }", "public void set(String key, Object value) {\r\n\t\tthis.context.setValue(key, value);\r\n\t}", "public void setKey(int key);", "public void setKey(int key);", "public JbootVoModel set(String key, Object value) {\n super.put(key, value);\n return this;\n }", "public void addProperty(String key,\n Object value) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n this.attributes.put(key, value.toString());\n }", "public void property(String key, String value) {\n\t\tpropsBinder().addBinding(key).toInstance(value);\n\t}", "public void setProp(String key, String value){\t\t\n \t\t//Check which of property to set & set it accordingly\n \t\tif(key.equals(\"UMPD.latestReport\")){\n \t\t\tthis.setLatestReport(value);\n<<<<<<< HEAD\n\t\t} \n=======\n \t\t\treturn;\n \t\t} \n \t\tif (key.equals(\"UMPD.latestVideo\")) {\n \t\t\tthis.setLastestVideo(value);\n \t\t\treturn;\n \t\t}\n>>>>>>> 45a14c6cf04ac0844f8d8b43422597ae953e0c42\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return - a list of <code>FieldAndval</code> objects representing the set \n \t * properties\n \t */\n \tpublic ArrayList<FieldAndVal> getSetPropsList(){\n \t\tcreateSetPropsList();\n \t\treturn setPropsList;\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * \n \t */\n \tprivate void createSetPropsList(){\n \t\tif((this.latestReport).length()>0){\n \t\t\tsetPropsList.add(new FieldAndVal(\"UMPD.latestReport\", this.latestReport));\n \t\t}\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return lastestVideo - \n \t */\n \tpublic String getLastestVideo() {\n \t\treturn lastestVideo;\n \t}", "void set(K key, V value);", "public void setPropertyMapKeyName(String propertyMapKeyName){\n m_propertyMapKeyName = propertyMapKeyName;\n }", "final void set(String key, String value) {\n set(key, value, false);\n }", "public void setKey(String key) {\n if (element != null) {\n element.setKey(key);\n }\n }", "public final void setProperty(String key, Object value) {\n/* 57 */ Launch.blackboard.put(key, value);\n/* */ }", "@NonNull\n\t\tBuilder addProperty(@NonNull String key, Object value);", "public DrillBuilder setNewPropertyKey(String newPropertyKey) {\n this.newPropertyKey = newPropertyKey;\n return this;\n }", "public void setKey(K newKey) {\r\n\t\tkey = newKey;\r\n\t}", "public void addProperty(String key,\n int value) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n this.attributes.put(key, Integer.toString(value));\n }", "public static void setUserProperty(String key, String value){\n\n UserProperties.setUserProperty(context, key, value);\n sendUserProperties(Constants.Z_USER_PROPS_UPLOAD_PERIOD_MILLIS);\n }", "public void setKey(String aKey) {\n\t\tthis.key = aKey;\n\t}", "public Object setProperty(String key, String value) {\n return this.props.setProperty(key, value);\n }", "public String getPropertyKey() {\n\t\treturn propertyKey;\n\t}", "@Override\n\tpublic void addProperty(String key, String value) {\n\n\t\tif (key.equals(key_delimiter) && value.length() == 1) {\n\t\t\tvalue = \"#\" + String.valueOf((int) value.charAt(0));\n\t\t}\n\t\tsuper.addProperty(key, value);\n\t}", "void createPropertyKeyToken( String key, int id );", "public void setKeyId(String keyId) {\n setProperty(KEY_ID, keyId);\n }", "public void setKey(com.coda.www.efinance.schemas.elementmaster.ElmFullKey key) {\r\n this.key = key;\r\n }", "void clearProperty(String key);", "void clearProperty(String key);", "public void setKey(K newKey) {\n this.key = newKey;\n }", "final <T> void set(String key, T value) {\n set(key, value, false);\n }", "@Override\r\n\t\t\tpublic IHierarchicalKey caseProperty(Property object) {\r\n\t\t\t\treturn new PropertyKey(object);\r\n\t\t\t}", "public void setKey(String key) {\n this.key = key == null ? null : key.trim();\n }", "public void setKey(String key) {\n this.key = key == null ? null : key.trim();\n }", "String setKey(String newKey);", "public void setValue(K key, V value);", "public void propertyPut(String k, int v) { m_exprCache.put(k,v); }", "public String getPropKey() {\n return propKey;\n }", "private void setKey() {\n\t\t \n\t}", "public Property(String key, Object value)\r\n {\r\n m_key = key;\r\n m_value = value;\r\n }", "PropertiesTask setProperty( String key, String value );", "public void setKey(MessageKey key) {\n\tthis.key = key;\n }", "private static void setProperty(String key, String value)\r\n/* 84: */ throws IOException\r\n/* 85: */ {\r\n/* 86: 83 */ log.finest(\"OSHandler.setProperty. Key=\" + key + \" Value=\" + value);\r\n/* 87: 84 */ File propsFile = getPropertiesFile();\r\n/* 88: 85 */ FileInputStream fis = new FileInputStream(propsFile);\r\n/* 89: 86 */ Properties props = new Properties();\r\n/* 90: 87 */ props.load(fis);\r\n/* 91: 88 */ props.setProperty(key, value);\r\n/* 92: 89 */ FileOutputStream fos = new FileOutputStream(propsFile);\r\n/* 93: 90 */ props.store(fos, \"\");\r\n/* 94: 91 */ fos.close();\r\n/* 95: */ }", "public void setRowKeyProperty(String rowKeyProperty)\n {\n _rowKeyProperty = rowKeyProperty;\n }", "void setKey(int key);", "@Override\r\n\tpublic Object setProperty(String key, String value) {\r\n\t\t\r\n\t\treturn Settings.setProperty(key, value);\r\n\t\t\r\n\t}", "public void setIdkey(String pIdkey){\n this.idkey = pIdkey;\n }", "public void _setKey(String e)\n {\n _key = e;\n }", "public String propKey() {\n return propKey;\n }", "public void setKey(char key){ this.key = key;}", "public void setKeyName(String newName){\n\n //assigns the value newName to the keyName field\n this.keyName = newName;\n }", "T setSystemProperty(String key, String value);", "public abstract void set(String key, T data);", "public Secret withPropertyKey(String key) {\n\t\tthis.propertyKey = key;\n\t\treturn this;\n\t}", "public final void setProperty(final String key, final String value)\n {\n\n if (!StringUtils.isBlank(key))\n {\n\n if ((StringUtils.isBlank(value)) || (StringUtils.isEmpty(value)))\n {\n this.fProp.setProperty(StringUtils.deleteWhitespace(key)\n .toLowerCase().trim(), \" \");\n } else\n {\n this.fProp.setProperty(StringUtils.deleteWhitespace(key)\n .toLowerCase().trim(), value.trim());\n } // end if..else\n } // end outer if.else\n\n }" ]
[ "0.7154949", "0.70806235", "0.70298225", "0.7009142", "0.70086116", "0.6973843", "0.6969732", "0.69335926", "0.691615", "0.691615", "0.68891454", "0.6887481", "0.6876102", "0.68660414", "0.6792621", "0.6792621", "0.6792621", "0.6773853", "0.67637014", "0.6761238", "0.6756795", "0.67382807", "0.67359275", "0.6733701", "0.6720766", "0.6701894", "0.6669592", "0.6663879", "0.66507727", "0.66507727", "0.662656", "0.66153735", "0.66106063", "0.6603345", "0.65764433", "0.6567024", "0.65447664", "0.65410805", "0.65353054", "0.652897", "0.6505756", "0.64946216", "0.64291763", "0.64287376", "0.642648", "0.64258385", "0.642118", "0.6409684", "0.64086586", "0.63924336", "0.63924336", "0.63464034", "0.6317581", "0.63139856", "0.6293998", "0.62903947", "0.6288689", "0.627578", "0.6252329", "0.6242597", "0.6227055", "0.62256795", "0.6193291", "0.6184642", "0.6182458", "0.61790353", "0.6178279", "0.61748", "0.61689204", "0.6167475", "0.6155466", "0.6144499", "0.6142836", "0.6142836", "0.61319286", "0.612751", "0.61004055", "0.6084088", "0.6084088", "0.6083767", "0.60821223", "0.6078684", "0.6071453", "0.60666144", "0.6049584", "0.60470444", "0.6046871", "0.6045852", "0.60450214", "0.6030911", "0.601141", "0.60111564", "0.5997959", "0.59679383", "0.5962717", "0.5961602", "0.5955775", "0.5947746", "0.5946518", "0.5935251" ]
0.6783584
17
Getter for property name.
public String getName() { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPropertyName();", "PropertyName getName();", "public String getPropertyName();", "public String get(String propertyName);", "public String getProperty(String name);", "public String getPropertyName()\n {\n return propertyName;\n }", "public String getPropertyName() {\n return this.propertyName;\n }", "String getProperty(String name);", "public String getStringProperty(String propertyName) ;", "protected String getPropertyName(){\n return propertyName;\n }", "public String getName() {\n return getProperty(Property.NAME);\n }", "java.lang.String getProperty();", "@Override\n public Object getProperty(String name) {\n name = name.toLowerCase();\n return this.properties.get(name);\n }", "public String getPropName() {\n return m_propName;\n }", "public String getProperty( String name )\n {\n return getProperty( name, false );\n }", "public String getProperty(String name) {\n return this.getProperty(name, null);\n }", "@BeanTagAttribute\r\n public String getPropertyName() {\r\n return propertyName;\r\n }", "public String name() {\n return getString(FhirPropertyNames.PROPERTY_NAME);\n }", "String getProperty();", "String getProperty();", "String getProperty();", "public String getProperty(String propertyName) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return (String) ph.getProperty(null, propertyName);\n }", "Object getProperty(String name);", "DavPropertyName getName();", "public String getProperty(final String iName) {\n return getProperty(iName, null);\n }", "private String getProperty(\n String name\n ) {\n return properties.getProperty(\n String.format(\"%s%s\", propertiesPrefix, name)\n );\n }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public String getPropertyNameMapped(String aName) { return aName; }", "String getProperty(String property);", "Property getProperty();", "Property getProperty();", "public String getProperty(String name){\r\n\t\treturn properties.getProperty(name);\r\n\t}", "public String getName() {\n return (String) mProperties.get(FIELD_NAME);\n }", "public static String getProperty(String name) {\n return propertyMap.getProperty(name);\n }", "public String getter() {\n\t\treturn name;\n\t}", "public String getProperty();", "@JsonProperty(PROP_NAME)\n @Nonnull\n public String getName() {\n return _name;\n }", "public String get(final String name) {\r\n return (String) properties.get(name);\r\n }", "String getProperty(String key);", "String getProperty(String key);", "String getProperty(String key);", "public String getProperty(String name)\n {\n return _propertyEntries.get(name);\n }", "@Serialize//(getName = \"property\")\r\n\tpublic String getName()\r\n\t{\r\n\t\treturn _name; \r\n\t}", "public String getProperty(String propertyName) throws CoreException;", "public static String getProperty(String name) {\r\n return properties.getProperty(name);\r\n }", "public String prop(String name);", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(NAME_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(NAME_PROP.get());\n }", "public static String getPropertyAccessMethodName(String property) {\r\n if (\"this\".equals(property))\r\n return \"this\";\r\n return \"get\" + property.substring(0, 1).toUpperCase(Locale.ENGLISH) + property.substring(1);\r\n }", "String get(String kind, String name, String property);", "public String getProperty(String name) {\r\n if (name == null) {\r\n throw new IllegalArgumentException(Msg.get(\"Property name == null\", \"portal.illegalargumentexception.property.name.null\"));\r\n }\r\n\r\n return properties.get(name);\r\n }", "public String propertyName() {\n\t\t\treturn target != null ? target : name;\n\t\t}", "public String getProperty(Object obj, String key);", "private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }", "Object getProperty(String key);", "public Object getProperty(String propertyName){\n return properties.get(propertyName);\n }", "public String getPropertyName(String column) {\r\n\t\trefineMetaData();\r\n\t\tcolumn = column.toLowerCase();\r\n\t\t// Log.debug(\"%s->%s\", column, col2prop.get(column));\r\n\t\treturn col2prop.get(column);\r\n\t}", "public Object getProperty(String name) {\n return properties.get(name);\n }", "public String getName() { return name.get(); }", "public static String getPropertyName(String propertyPath) {\n\t\tint separatorIndex = propertyPath.indexOf(PropertyAccessor.PROPERTY_KEY_PREFIX_CHAR);\n\t\treturn (separatorIndex != -1 ? propertyPath.substring(0, separatorIndex) : propertyPath);\n\t}", "public java.lang.String getProperty(java.lang.String propertyName) {\n return properties.getProperty(propertyName);\n }", "public static String getGetterName(String propertyName, boolean isBool){\r\n\t\tif(isBool){\r\n\t\t\treturn \"is\" + propertyName.substring(0, 1).toUpperCase() + \r\n\t\t\t\tpropertyName.substring(1);\r\n\t\t} else {\r\n\t\t\treturn \"get\" + propertyName.substring(0, 1).toUpperCase() + \r\n\t\t\t\tpropertyName.substring(1);\r\n\t\t}\r\n\t}", "public String getName() { return (String)get(\"Name\"); }", "public Object getProperty(String name)\n {\n return ClassAnalyzer.getProperty(m_Source,name);\n }", "public String getPropValue(String propertyName){\n\n return pro.getProperty(propertyName);\n\n }", "public String getProperty(final String propertyName) {\n\t\treturn properties.getProperty(propertyName);\n\t}", "public String getUserProperty(String propertyName) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return (String) ph.getUserProperty(null, propertyName);\n }", "public String getPropertyValue(String propertyName){\n\t\treturn (String) properties.get(propertyName);\n\t}", "public Object getProperty(String name) {\n\t\treturn beanMap.get(name);\n\t}", "public static String getProperty(String propertyName){\r\n String val = userProps.getProperty(propertyName);\r\n\r\n if (val == null)\r\n return jinProps.getProperty(propertyName);\r\n else\r\n return val;\r\n }", "@JsonGetter(\"name\")\r\n public String getName ( ) { \r\n return this.name;\r\n }", "@Override\r\n\tpublic String getProp(final String propName) {\n\t\treturn exec(new Callable<String>() {\r\n\t\t\t@Override\r\n\t\t\tpublic String call() throws Exception {\r\n\t\t\t\treturn System.getProperty(propName);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public abstract boolean getProperty(String propertyName);", "@JsonGetter(\"name\")\n public String getName ( ) { \n return this.name;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getName();", "String getValueName();", "public void setPropName(String name) {\n m_propName = name;\n }", "public String getName(){\n\n //returns the value of the name field\n return this.name;\n }", "String getFieldName();", "public <T> T getProperty(String name) {\n return properties.get(name);\n }", "public String getProperty(String key) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n return this.attributes.getProperty(key);\n }", "public Object getProperty(String name)\n {\n return m_props.get(name);\n }", "public String getPropertyValue(String name)\n {\n // Don't bother with empty property names.\n if (name.equals(EMPTY_STRING))\n {\n return this.predicateEmptyDefault;\n } \n \n // Retrieve the contents of the property.\n String value = this.properties.get(name);\n if (value != null)\n {\n return value;\n } \n // (otherwise...)\n return this.predicateEmptyDefault;\n }", "public String getProperty(int property) {\n\t\treturn activity.getString(R.string.input);\n\t}", "private String getPropertyName(@Nullable final EntityProperty entityProperty, final String fieldName) {\n if (entityProperty != null && !isEmpty(entityProperty.name())) {\n return entityProperty.name();\n }\n return fieldName;\n }", "@JsonGetter(\"name\")\r\n public String getName() {\r\n return name;\r\n }", "protected String getProperty(String prop) {\n\t\tLogManager mgr = LogManager.getLogManager();\n\t\tif (name.length() > 0) {\n\t\t\tString key = String.format(\"%s(\\\"%s\\\").%s\", getClass().getName(), name, prop);\t\t\t\n\t\t\tString val = mgr.getProperty(key);\n\t\t\tif (val != null)\n\t\t\t\treturn val;\t\t\t\n\t\t}\t\t\n\t\treturn mgr.getProperty(getClass().getName() + \".\" + prop);\t\t\t\n\t}", "public static String getProperty(String key) {\r\n\t\treturn prop.getProperty(key);\r\n\t}", "public String get(String key) {\n return this.properties.getProperty(key);\n }", "Object getName() {\n return name;\n }", "@Override\n\t\t\tpublic <V> V get(ConfigurationProperty<V> property) {\n\t\t\t\treturn (V) \"Unit Test Dummy Name\";\n\t\t\t}", "public String getSysPropertyName() {\n return sysProperty;\n }", "String getValueOfCssProperty(String propertyName);", "public PropertyObject getProperty(String name) {\n return this.properties.get(name);\n }", "public Property property(String name)\n\t{\n\t\tList<Element> list = filter(p -> p.getName().equals(name) && p instanceof Property);\n\t\t\n\t\tif (list != null && list.size() > 0)\n\t\t{\n\t\t\tif (list.size() > 1)\n\t\t\t\tSystem.out.println(\"Warning: Returning first of many groups with duplicate names\");\n\t\t\t\n\t\t\treturn (Property) list.get(0);\n\t\t}\n\t\telse return null;\n\t}", "@Override\r\n\tpublic String get(Object key) {\r\n\t\tif (key == null) return null;\r\n\t\treturn getProperty(key.toString());\r\n\t}", "public String getProp(String key) {\n\t\treturn prop.getProperty(key);\n\t}", "public String getCustomName ( ) {\n\t\treturn extract ( handle -> handle.getCustomName ( ) );\n\t}", "public String getPropertyName()\n {\n return Integer.toString(getLowNbrParticipants());\n }", "public String getPropertyKey() {\n\t\treturn propertyKey;\n\t}" ]
[ "0.83975804", "0.8175196", "0.8058347", "0.7687427", "0.76464766", "0.76324207", "0.7582717", "0.75726", "0.7568745", "0.75610274", "0.7534665", "0.75312537", "0.7521377", "0.74124044", "0.73422915", "0.73317814", "0.7303248", "0.72567415", "0.72500825", "0.72500825", "0.72500825", "0.7239294", "0.72310203", "0.72033393", "0.720109", "0.7181356", "0.7176837", "0.7174873", "0.7170913", "0.71563613", "0.71563613", "0.7145221", "0.7136857", "0.7120255", "0.71168745", "0.7087609", "0.7060672", "0.70408046", "0.7022547", "0.7022547", "0.7022547", "0.6966121", "0.6950745", "0.6936596", "0.69131505", "0.6870141", "0.685737", "0.68548906", "0.6849583", "0.68458784", "0.6833155", "0.6793367", "0.6751229", "0.6743932", "0.6729118", "0.6712655", "0.6707443", "0.6679372", "0.66781914", "0.6676491", "0.66646445", "0.664211", "0.6629307", "0.66067433", "0.66051245", "0.65998715", "0.6590516", "0.6581513", "0.65661424", "0.6562227", "0.6542707", "0.65417457", "0.6541628", "0.653941", "0.6537718", "0.6537718", "0.6525359", "0.64975214", "0.64832914", "0.6476661", "0.6461235", "0.64531046", "0.6452323", "0.6447398", "0.6435954", "0.6431934", "0.6428654", "0.6422933", "0.64120644", "0.6407203", "0.6378984", "0.63718706", "0.6367038", "0.63668954", "0.63605547", "0.6358684", "0.6353421", "0.6340339", "0.63390946", "0.6336966", "0.63366246" ]
0.0
-1
Setter for property name.
public void setName(String name) { this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void setNameProperty(String nameProperty) {\n\t\tif(nameProperty == null) throw new IllegalArgumentException(\"A field name must be specified\");\n\t\tthis.nameProperty = nameProperty;\n\t}", "@IcalProperty(pindex = PropertyInfoIndex.NAME,\n required = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setName(final String val) {\n name = val;\n }", "public void setName(String name) {\r\n String oldValue = this.name;\r\n this.name = name;\r\n propertyChangeSupport.firePropertyChange(PROPERTY_NAME, oldValue, name);\r\n }", "public void setPropName(String name) {\n m_propName = name;\n }", "public static String setterName(String name) {\n return genMethodName(name, \"set\", null);\n }", "protected void setName(String name) {\n \t\tString oldName = this.name;\n \t\tthis.name = name;\n \t\tfirePropertyChange(PROPERTY_NAME, oldName, name);\n \t}", "@JsonSetter(\"name\")\r\n public void setName (String value) { \r\n this.name = value;\r\n }", "public void setName(String value) {\n this.name = value;\n }", "public void setName(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(NAME_PROP.get(), value);\n }", "public void setName(String value) {\n\t\tname = value;\n\t}", "public void setName(java.lang.String value) {\n this.name = value;\n }", "public void setName(java.lang.String value);", "public void setName(java.lang.String value);", "public void setName(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(NAME_PROP.get(), value);\n }", "@JsonSetter(\"name\")\n public void setName (String value) { \n this.name = value;\n }", "public synchronized void setName(Identifier name) {\n Identifier old = this.name;\n this.name = name;\n firePropertyChange (PROP_NAME, old, name);\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(final String nameValue) {\n this.name = nameValue;\n }", "public void setName(String name) {\n\t\tgetNonVisualProperties().setName(name);\n\t}", "public void setName(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/name\",v);\n\t\t_Name=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}", "public static String getSetterName(String propertyName){\r\n\t\treturn \"set\" + propertyName.substring(0, 1).toUpperCase() + \r\n\t\t\tpropertyName.substring(1);\r\n\t}", "public void setName (String n){\n\t\tname = n;\n\t}", "private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "@Override\n public void setName(String name) {\n this.name = name;\n }", "void setName(String name_);", "public void setProperty(String name, String value) {\n PropertyHelper.getPropertyHelper(this).\n setProperty(null, name, value, true);\n }", "public void setName(String n){ name=n; }", "@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}", "public void setName(String val) {\n name = val;\n }", "public final void setName(String name) {_name = name;}", "public void setName(String val) {\n this.name = val;\n }", "public void setName(String n) {\r\n name = n;\r\n }", "public void setName(String inName)\n {\n name = inName;\n }", "protected void setName(String name) {\r\n this.name = name;\r\n }", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}", "public void setStringProperty(String propertyName, String value);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "void setName(java.lang.String name);", "public void setName(String newValue);", "public void setName(String newValue);", "public void setName(String nameIn) {\n name = nameIn;\n }", "public static void setName(String n){\n\t\tname = n;\n\t}", "public void setName (String n) {\n name = n;\n }", "public void setName(String name){\n this.name = name;\n }", "private static String createNameForProperty(String prop) {\r\n if (prop == null)\r\n return \"property\";\r\n String theProp = prop;\r\n\r\n // remove last \"AnimationProperties\"\r\n if (theProp.length() > 10\r\n && theProp.substring(theProp.length() - 10).equalsIgnoreCase(\r\n \"properties\"))\r\n theProp = theProp.substring(0, theProp.length() - 10);\r\n // first char is lowercase\r\n if (theProp.length() > 0)\r\n theProp = theProp.toLowerCase().charAt(0) + theProp.substring(1);\r\n return theProp;\r\n }", "@Override\n public void setName(String name)\n {\n checkState();\n this.name = name;\n }", "@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}", "public void setName(String name) {\n \tthis.name = name;\n }", "public void setName(String name) {\n \tthis.name = name;\n }", "@Override\n\tpublic void setProperty(String propertyName, Object value) {\n\t\t\n\t}", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String inName)\n {\n\tname = inName;\n }", "protected void setName(String name) {\n this._name = name;\n }", "protected void setName(String name) {\n this.name = name;\n }", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "PropertyName getName();", "private void setName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n name_ = value;\n }", "@JsonProperty(\"name\")\n public void setName(String name) {\n this.name = name;\n }", "@JsonProperty(\"name\")\n public void setName(String name) {\n this.name = name;\n }", "public void setProperty(String property) {\n }", "public void setCustomName ( String name ) {\n\t\texecute ( handle -> handle.setCustomName ( name ) );\n\t}", "@Override\r\n public void setName(String name) {\n }", "@Override\n\tpublic void setProperty(String name, Object value)\n\t{\n\t\tsuper.setProperty(name, value);\n\n\t\tprocessProperty(name, value);\n\t}", "@Override\n\tpublic void setProperty(String name, Object value)\n\t{\n\t\tsuper.setProperty(name, value);\n\n\t\tprocessProperty(name, value);\n\t}", "public void setName(String name){\n \t\tthis.name = name;\n \t}", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\n this.name = name;\n }", "public void setName( String name ) {\n this.name = name;\n }", "public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$26);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$26);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setName(String name){\n\t\tthis.name = name;\n\t}", "public void setProperty(String name,Object value);", "public void setName(String s) {\n this.name = s;\n }", "public void setNameValue(String nameValue) throws JNCException {\n setNameValue(new YangString(nameValue));\n }", "public void setNameValue(String nameValue) throws JNCException {\n setNameValue(new YangString(nameValue));\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(String name) {\r\n this.name = name;\r\n }", "public void setName(final String name);", "public void setName(String name) {\r\n\t\t_name = name;\r\n\t}" ]
[ "0.77700365", "0.75406563", "0.74024355", "0.733989", "0.7224554", "0.7101123", "0.7097367", "0.70846015", "0.70728725", "0.7068073", "0.70389825", "0.70276797", "0.70276797", "0.70273113", "0.7017126", "0.69862634", "0.69371015", "0.69371015", "0.69371015", "0.69264525", "0.69264525", "0.69264525", "0.6922099", "0.69073534", "0.68951577", "0.68798226", "0.6877383", "0.6869306", "0.6869306", "0.68553287", "0.68553287", "0.6853048", "0.6828483", "0.6818956", "0.6818489", "0.68073803", "0.6806843", "0.6804414", "0.68038386", "0.6796649", "0.67924833", "0.6788908", "0.67827266", "0.6769962", "0.6769962", "0.6769962", "0.6769811", "0.6769811", "0.6768766", "0.6766963", "0.6760676", "0.6758305", "0.6750506", "0.6750353", "0.6742832", "0.67385626", "0.67385626", "0.6735039", "0.67318743", "0.67318743", "0.67318743", "0.6729072", "0.67235637", "0.6722549", "0.67185414", "0.67185414", "0.67185414", "0.6718103", "0.6718103", "0.6718103", "0.6711116", "0.6709379", "0.67062825", "0.67062825", "0.67057985", "0.6698105", "0.66960996", "0.6692542", "0.6692542", "0.6689855", "0.66880447", "0.66880447", "0.66880447", "0.66880447", "0.66880447", "0.66880447", "0.66880447", "0.6686197", "0.668535", "0.6682526", "0.6682526", "0.6682526", "0.6682346", "0.6681208", "0.6680981", "0.6680981", "0.66796166", "0.66796166", "0.66796166", "0.6678318", "0.6677476" ]
0.0
-1
Getter for property description.
public String getDescription() { return this.description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDescription() {\n return getProperty(Property.DESCRIPTION);\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(DESCRIPTION_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(DESCRIPTION_PROP.get());\n }", "public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }", "public java.lang.String getDescription(){\r\n return this.description;\r\n }", "public java.lang.Object getDescription() {\n return description;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription();", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription();", "public String getDescription() {\r\n return this.description;\r\n }", "public String getDescription() {\r\n return this.description;\r\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\r\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\n return this.description;\n }", "public String getDescription()\n {\n return this.description;\n }", "public String getDescription(){\r\n \tString retVal = this.description;\r\n return retVal;\r\n }", "@Override\r\n\tpublic String getDescription() {\n\t\treturn this.description;\r\n\t}", "public String getDescription() {\n\t\treturn this.description;\n\t}", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n if (description == null) {\n description = Description.getDescription(this);\n }\n return description;\n }", "public String getDescription() {\r\n return _description;\r\n }", "public java.lang.String getDescription() {\r\n return this._description;\r\n }", "public java.lang.String getDescription() {\r\n return this._description;\r\n }", "public String getDescription() {\n return this.description;\n }", "public String getDescription()\r\n\t{\treturn this.description;\t}", "@Override\n public String getDescription() {\n return this.description;\n }", "public String getDescription() {\n return this.Description;\n }", "public java.lang.String getDescription() {\n return this._description;\n }", "public java.lang.String getDescription() {\n return description;\n }", "public java.lang.String getDescription() {\r\n return description;\r\n }", "public java.lang.String getDescription() {\r\n return description;\r\n }", "public java.lang.String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\n return (desc);\n }", "public String getDescription () {\n return description;\n }", "public String getDescription() {\n return _description;\n }", "public String getDescription() {\n return _description;\n }", "public java.lang.String getDescription()\n {\n return this._description;\n }", "public String getDescription()\n {\n return this.mDescription;\n }", "@Override\n\tpublic String getdescription() {\n\t\treturn this.description.getDesc();\n\t}", "public java.lang.String getDescription() {\n return description;\n }", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription() {\n\t\treturn (String) get_Value(\"Description\");\n\t}", "public String getDescription()\r\n {\r\n return description;\r\n }", "public String getDescription()\r\n {\r\n return this.aDescription ;\r\n }", "public String getDescription() {\r\n return Description; \r\n }", "public String getDescription()\r\n\t{\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\n return description; \n }", "public java.lang.String getDescription() {\n return description;\n }", "public java.lang.String getDescription() {\n return description;\n }", "public java.lang.String getDescription() {\n return description;\n }", "public java.lang.String getDescription() {\n return description;\n }", "public java.lang.String getDescription() {\n return description;\n }", "public java.lang.String getDescription() {\n return description;\n }", "public java.lang.String getDescription() {\n return description;\n }", "public java.lang.String getDescription() {\n return description;\n }", "public java.lang.String getDescription() {\n return description;\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "public String getDescription() {\r\n return description;\r\n }", "protected String getDescription()\n {\n return description;\n }", "protected String getDescription() {\n return description;\n }", "public String getDescription()\n {\n return description;\n }", "public String getDescription(){\n return getString(KEY_DESCRIPTION);\n }", "public String getDesc()\r\n {\r\n return description;\r\n }", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}", "public String getDescription() {\r\n\t\treturn description;\r\n\t}" ]
[ "0.8753798", "0.84291893", "0.8415797", "0.8058795", "0.80583334", "0.796787", "0.7961962", "0.7961962", "0.7961962", "0.7961962", "0.79477066", "0.79477066", "0.7945373", "0.7945373", "0.7945373", "0.7939554", "0.7939554", "0.7939554", "0.7939554", "0.7939554", "0.79377055", "0.7935878", "0.7928661", "0.79267377", "0.79196095", "0.79164094", "0.79164094", "0.79164094", "0.79164094", "0.79164094", "0.79164094", "0.79164094", "0.79164094", "0.79164094", "0.79164094", "0.79164094", "0.79164094", "0.79164094", "0.79164094", "0.79164094", "0.79164094", "0.79164094", "0.79164094", "0.79014665", "0.78925526", "0.78905845", "0.78905845", "0.78833735", "0.78802794", "0.78696144", "0.78649473", "0.7860951", "0.7860305", "0.7859711", "0.7859711", "0.7859711", "0.7853153", "0.7844732", "0.78413785", "0.78413785", "0.7838816", "0.78331214", "0.7830208", "0.7827466", "0.78267676", "0.78267676", "0.78267676", "0.78267676", "0.7826452", "0.7822225", "0.7815723", "0.7814803", "0.78092164", "0.7805971", "0.7805971", "0.7805971", "0.7805971", "0.7805971", "0.7805971", "0.7805971", "0.7805971", "0.7805971", "0.7803054", "0.7803054", "0.7803054", "0.7803054", "0.7803054", "0.7803054", "0.7803054", "0.7803054", "0.7803054", "0.7803054", "0.7802704", "0.78025514", "0.7801876", "0.7799836", "0.7798135", "0.7796046", "0.7796046", "0.7796046" ]
0.7858476
56
Setter for property description.
public void setDescription(String description) { this.description = description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDescription(String description) {\n this.description = description;\r\n // changeSupport.firePropertyChange(\"description\", oldDescription, description);\r\n }", "public void setDescription(String value) {\r\n this.description = value;\r\n }", "public void setDescription(String value) {\n this.description = value;\n }", "@JSProperty(\"description\")\n void setDescription(String value);", "public void setDescription(java.lang.String value) {\n this.description = value;\n }", "public void setDescription(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(DESCRIPTION_PROP.get(), value);\n }", "public void setDescription(String description) {\n mDescription = description;\n }", "public void setDescription(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(DESCRIPTION_PROP.get(), value);\n }", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription (String Description);", "public void setDescription(String Description) {\n this.Description = Description;\n }", "public void setDescription(String description) { this.description = description; }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(java.lang.String value);", "public void setDescription(java.lang.String value);", "public void setDescription(java.lang.String value);", "public void setDescription(java.lang.String value);", "protected void setDescription(String description) {\n this.description = description;\n }", "public PropertySpecBuilder<T> description(String desc)\n {\n Preconditions.checkArgument(description == null, \"property description already set\");\n this.description = desc;\n\n return this;\n }", "public void setDescription (String description);", "public void setValueDescription(String description) {\n this.valueDescription = description;\n }", "public void setDescription(String description) {\n \tthis.description = description;\n }", "public void setDescription(String newValue);", "public void setDescription(String newValue);", "public void setDescription(String description){this.description=description;}", "public void setDescription(String description){\n this.description = description;\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setOldProperty_description(java.lang.String param){\n localOldProperty_descriptionTracker = true;\n \n this.localOldProperty_description=param;\n \n\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setDescription(String description) {\r\n this.description = description;\r\n }", "public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }", "public void setDescription(CharSequence value) {\n this.description = value;\n }", "public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription( String description )\n {\n this.description = description;\n }", "public void setDescription(String value)\r\n {\r\n getSemanticObject().setProperty(swb_description, value);\r\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description);", "public void setDescription(String description) {\r\n \t\tthis.description = description;\r\n \t}", "public void setDescription(String description) {\n\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "void setDescription(java.lang.String description);", "public void setDescription(String description) {\n _description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String description)\n {\n this.description = description;\n }", "public void setDescription(String desc) {\n sdesc = desc;\n }", "public void setDescription(String _description) {\n this._description = _description;\n }", "public void setDescription(java.lang.Object description) {\n this.description = description;\n }", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(String description )\n {\n this.description = description;\n }", "protected void setDescription(final String description) {\r\n\t\tthis.description = description;\r\n\t}", "public void setDescription(java.lang.String description)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$8);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DESCRIPTION$8);\r\n }\r\n target.setStringValue(description);\r\n }\r\n }", "public void setDescription(java.lang.String description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESCRIPTION$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DESCRIPTION$14);\n }\n target.setStringValue(description);\n }\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }", "public void setDescription(String description) {\n this.description = description;\n }" ]
[ "0.79256314", "0.78992784", "0.7842296", "0.7829855", "0.7752329", "0.76633346", "0.7629595", "0.762323", "0.75874597", "0.75874597", "0.75874597", "0.75874597", "0.75874597", "0.75874597", "0.7553511", "0.7553192", "0.7547453", "0.7547453", "0.75313807", "0.75313807", "0.75313807", "0.75313807", "0.7495774", "0.7495262", "0.74873006", "0.7484007", "0.7474517", "0.74745065", "0.74745065", "0.7474019", "0.7473088", "0.7457784", "0.7455851", "0.7448152", "0.7441949", "0.7441949", "0.7441949", "0.7441949", "0.7441949", "0.7439906", "0.7428862", "0.7425703", "0.74252695", "0.74252695", "0.74252695", "0.74191", "0.741785", "0.7415899", "0.7415899", "0.7415899", "0.7415899", "0.7415899", "0.7405653", "0.7404363", "0.7403798", "0.74037725", "0.7401619", "0.73976946", "0.73976946", "0.73976946", "0.73976946", "0.73976946", "0.7395439", "0.7395439", "0.7395439", "0.73907816", "0.73901767", "0.73881465", "0.73749185", "0.73749185", "0.73749185", "0.73749185", "0.73749185", "0.73749185", "0.73749185", "0.7371698", "0.7358775", "0.7353774", "0.7353234", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546", "0.73497546" ]
0.0
-1
Getter for property type.
public String getType() { return this.type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TLPropertyType getType() {\n return type;\n }", "public StringProperty typeProperty() {\n return type.getHint().textProperty();\n }", "public ObjectProperty<ShapeType> typeProperty() {\n\t\t\treturn type;\n\t\t}", "public int getPropertyType() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic PhraseType getType()\r\n\t{\r\n\t\t/* if the Property is just a reference,\r\n\t\t * return the type of the referent */\r\n\t\tif (referent != null) return referent.getType();\r\n\t\t\r\n\t\t/* otherwise, return PROPERTY */\r\n\t\treturn PhraseType.PROPERTY;\r\n\t}", "protected abstract String getFactPropertyType(Object property);", "PropertyType(String propertyType) {\n this.propertyType = propertyType;\n }", "<T> PropertyType<T> getPropertyTypeByName(String propertyTypeName);", "public String getType() {\n return (String) getObject(\"type\");\n }", "public <T> T getProperty(String name, Class<T> type);", "public CustomizationPolicyPropertiesType typePropertiesType() {\n return this.typePropertiesType;\n }", "public String getProperty(Class type, String key);", "public static String getType() {\n type = getProperty(\"type\");\n if (type == null) type = \"png\";\n return type;\n }", "String getType() {\n return type;\n }", "public Class<?> getPropertyType(String property, int typeConstrParamCount) {\n List<Method> methods = getSetterMethods(property);\n Class<?> result = null;\n\n for (Method method : methods) {\n Class<?> paramType = method.getParameterTypes()[0];\n\n if (!getConstructors(paramType, typeConstrParamCount).isEmpty()) {\n result = paramType;\n break;\n }\n }\n\n return result;\n }", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "public String getType() {\n return _type;\n }", "List<PropertyType<?>> getPropertyTypes();", "public String getPropertyTypeString(String name) {\n\t//initialize();\n\tProperty p = getProperty(name);\n\tif (p == null) {\n\t return null;\n\t} else {\n\t if (name.toLowerCase().contains(\"line\")) {\n\t\treturn \"Line\";\n\t }\n\t String typeString = p.getTypeName();\n\t typeString = typeString.substring(0, 1).toUpperCase() + typeString.substring(1).toLowerCase();\n\t return typeString;\n\t}\n }", "protected String getType() {\n\t\treturn type;\n\t}", "public Object getType()\r\n {\r\n\treturn type;\r\n }", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "public String getType() {\n return m_type;\n }", "public java.lang.String getType()\n {\n return m_type;\n }", "@Deprecated\n \tpublic static VisualPropertyType getVisualPorpertyType(byte type) {\n \t\t/*\n \t\t * Type is always equal to ordinal.\n \t\t */\n \t\treturn values()[type];\n \t}", "public String getType() {\n\t\treturn _type;\n\t}", "String getType() {\n return mType;\n }", "public final String getType() {\n return this.type;\n }", "String getType() {\r\n return this.type;\r\n }", "public String getType() {\r\n return this.type;\r\n }", "public String get_type()\r\n\t{\r\n\t\treturn this.type;\r\n\t}", "public Type getType() {\n return _type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType()\r\n {\r\n return type;\r\n }", "public String getType() \n {\n return type;\n }", "public String getType() {\n return type; \n }", "public String getType(){\r\n return type;\r\n }", "public String getType() \n {\n return this.type;\n }", "public static String getType() {\n\t\treturn type;\n\t}", "public String getType() {\r\n return type;\r\n }", "public String getType() {\r\n return type;\r\n }", "public String getType() {\r\n return type;\r\n }", "public String getType() {\r\n return type;\r\n }", "public String getType() {\r\n return type;\r\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return this.type;\n }", "public String getType() {\n return type;\n }", "public String getType() {\r\n return type;\r\n }", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType()\n {\n return type;\n }", "public String getType()\r\n {\r\n return mType;\r\n }", "public java.lang.String getType() {\n return type;\n }", "public java.lang.String getType() {\n return type;\n }", "public String getType() {\r\n\t\treturn this.type;\r\n\t}", "public synchronized String getType() {\n\t\treturn type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n\t\treturn this.type;\n\t}", "public String getType() {\n return type;\n }" ]
[ "0.79245716", "0.76278484", "0.7387444", "0.7384841", "0.7127371", "0.706518", "0.70114225", "0.69758046", "0.6904032", "0.68359303", "0.68200564", "0.67851603", "0.67733693", "0.6709352", "0.67076546", "0.6686567", "0.6686567", "0.6686567", "0.6686567", "0.6686567", "0.6686567", "0.6686567", "0.6686567", "0.6686567", "0.6686567", "0.6686567", "0.6668244", "0.6660581", "0.6656228", "0.6644972", "0.6640797", "0.66337067", "0.66337067", "0.66337067", "0.66337067", "0.66337067", "0.66337067", "0.66337067", "0.66337067", "0.66337067", "0.66337067", "0.66337067", "0.66337067", "0.66337067", "0.6607341", "0.66051763", "0.6598181", "0.6598108", "0.6596702", "0.6592914", "0.65832704", "0.6579797", "0.65794444", "0.6579132", "0.6575979", "0.6575979", "0.6575979", "0.6575979", "0.6575979", "0.6575979", "0.6575979", "0.6575979", "0.6575979", "0.6575979", "0.65744877", "0.65720654", "0.65679926", "0.65668803", "0.65638304", "0.65637314", "0.65619767", "0.65619767", "0.65619767", "0.65619767", "0.65619767", "0.6558125", "0.6558125", "0.6555808", "0.6555754", "0.65554225", "0.65554225", "0.65554225", "0.65554225", "0.65554225", "0.65554225", "0.6553378", "0.6551195", "0.6549928", "0.6549928", "0.6545038", "0.6543658", "0.654073", "0.654073", "0.654073", "0.654073", "0.654073", "0.654073", "0.654073", "0.654073", "0.6537156" ]
0.6546441
89
Setter for property type.
public void setType(String type) { this.type = type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final public void setType(String type)\n {\n setProperty(TYPE_KEY, (type));\n }", "public void setType(TLPropertyType type) {\n ModelEvent<?> event = new ModelEventBuilder( ModelEventType.TYPE_ASSIGNMENT_MODIFIED, this )\n .setOldValue( this.type ).setNewValue( type ).buildEvent();\n\n this.type = type;\n publishEvent( event );\n }", "PropertyType(String propertyType) {\n this.propertyType = propertyType;\n }", "@JSProperty(\"type\")\n void setType(Type value);", "public static void setType(String type) {\n Globals.type = type;\n setProperty(\"type\", type);\n }", "private void setType(String type) {\n mType = type;\n }", "public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }", "public void setType(Type t) {\n type = t;\n }", "public void setType(String type)\r\n {\r\n this.mType = type;\r\n }", "void setType(Type type)\n {\n this.type = type;\n }", "void setType(java.lang.String type);", "public void set_type(String t)\n {\n type =t;\n }", "public void setType(String type) {\n m_Type = type;\n }", "public void setType (String typ) {\n type = typ;\n }", "public void setType(String type) {\n\t this.mType = type;\n\t}", "void setType(String type) {\n this.type = type;\n }", "@Override\n public void setType(String type) {\n this.type = type;\n }", "public TLPropertyType getType() {\n return type;\n }", "public void setType(Object newType) {\n if (newType == null && type == null) {\n return;\n }\n\n if (type == null || !type.equals(newType)) {\n Object oldType = type;\n type = newType;\n listeners.firePropertyChange(PROPERTY_TYPE, oldType, type);\n }\n }", "public void setType(Type t) {\n\t\ttype = t;\n\t}", "public void setType(String value) {\n this.type = value;\n }", "public void setType(String type);", "public void setType(String type);", "public void setType(String type);", "public EsIndexPropertyBuilder setType(String type) {\n this.type = type;\n return this;\n }", "public void setType(String type) \n {\n this.type = type;\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(Type type) {\n this.type = type;\n }", "public void setType(Type type) {\n this.type = type;\n }", "public void setType(Type type) {\n this.type = type;\n }", "public void setType (String type) {\n this.type = type;\n }", "public void setType (String type) {\n this.type = type;\n }", "public void setType (String type) {\n this.type = type;\n }", "public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}", "public final void setType(String type){\n\t\tthis.type = type;\t\n\t}", "@Override\n\tpublic void setType(String type) {\n\t}", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\r\n\t\tthis.type = type;\r\r\n\t}", "public void setType(int type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$2);\n }\n target.setIntValue(type);\n }\n }", "public void setType( String type )\n {\n this.type = type;\n }", "public void setType(Type type){\n\t\tthis.type = type;\n\t}", "@Override\n\tpublic void setType(String type) {\n\t\tthis.type = type;\n\t}", "public void setType(String type){\n \tthis.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(Class type) {\n\t this.type = type;\n\t }", "public final void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}", "public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}", "public void setType(String type) {\r\n\t\tthis.type = type;\r\n\t}", "public void setType( String type ) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type){\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(final Type type) {\n this.type = type;\n }", "public StringProperty typeProperty() {\n return type.getHint().textProperty();\n }", "public void setType(String type)\n\t{\n\t\tthis.type = type;\n\t}", "public void setType(String t) {\n\ttype = t;\n }", "@JsProperty(name = \"type\")\n public native void setType(String value);", "public ObjectProperty<ShapeType> typeProperty() {\n\t\t\treturn type;\n\t\t}", "public void setType( Type type ) {\n assert type != null;\n this.type = type;\n }", "public void setType(String type){\n\t\tthis.type = type;\n\t}", "public void set_type(String type)\r\n\t{\r\n\t\tthis.type = type;\r\n\t}", "public void setType(String type) {\r\n\t\tthis.type=type;\r\n\t}", "public void setType(String type) {\n\t\tthis.type = type;\n\t}", "public void setType(String type) {\n\t\tthis.type = type;\n\t}", "public void setType(String type) {\n\t\tthis.type = type;\n\t}", "public void setType(String type) {\n\t\tthis.type = type;\n\t}", "public void setType(String type) {\n\t\tthis.type = type;\n\t}", "public void setType(String type) {\n\t\tthis.type = type;\n\t}", "public void setType(String type) {\n\t\tthis.type = type;\n\t}", "public void setType(String type) {\n\t\tthis.type = type;\n\t}" ]
[ "0.7674971", "0.73130023", "0.7300281", "0.71576065", "0.70419896", "0.69894356", "0.6987219", "0.69150114", "0.6904489", "0.68734527", "0.6851081", "0.68343616", "0.68301207", "0.68174815", "0.6811225", "0.6810804", "0.6810215", "0.6807292", "0.6799306", "0.67936534", "0.6776899", "0.6763865", "0.6763865", "0.6763865", "0.6763524", "0.6751079", "0.67477894", "0.67471695", "0.67471695", "0.67471695", "0.6741413", "0.6741413", "0.6741413", "0.6733802", "0.6730395", "0.67145616", "0.6706284", "0.6701562", "0.6701562", "0.6701562", "0.6701562", "0.66987705", "0.6698164", "0.66974694", "0.669532", "0.66896474", "0.66879237", "0.6684394", "0.6684394", "0.66728234", "0.6672644", "0.6665594", "0.66639054", "0.66639054", "0.66639054", "0.66629386", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6644532", "0.6633939", "0.66305184", "0.66305184", "0.66271186", "0.6614038", "0.66117626", "0.66041994", "0.6600088", "0.65912557", "0.65821314", "0.65796465", "0.6578598", "0.6569735", "0.6567045", "0.65667075", "0.65667075", "0.65667075", "0.65667075", "0.65667075", "0.65667075", "0.65667075", "0.65667075" ]
0.6596969
86
Getter for property sign.
public String getSign() { return this.sign; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSign() {\n return sign;\n }", "public Sign getSign() {\n return sign;\n }", "String getSign();", "public java.lang.String sign() {\n\n return java.lang.String.valueOf(this.getValue().charAt(0));\n }", "@Override\n\tpublic String representation() {\n\t\treturn this.sign.name();\n\t}", "public String getSignFlag() {\n return signFlag;\n }", "public SignType getSignType();", "public String getSignFormat() {\r\n\t\treturn this.signFormat;\r\n\t}", "public String getSignName() {\n return signName;\n }", "public String getSignLocation() {\n\t\treturn signLocation;\n\t}", "public String getSignType() {\n return signType;\n }", "public String getSignReturn() {\n return signReturn;\n }", "public Sign() {\n if (this.x == 0) {\n this.sign = \"+\";\n } else if (this.x == 1) {\n this.sign = \"-\";\n } else if (this.x == 2) {\n this.sign = \"*\";\n } else if (this.x == 3) {\n this.sign = \"^\";\n }\n }", "public String getSignature() {\n return this.Signature;\n }", "public int getLoSign() {\n return loSign;\n }", "public int getLaSign() {\n return laSign;\n }", "public ISignature getSignature() {\n return _signature;\n }", "public Date getSignDate() {\n return signDate;\n }", "@NonNull\n public String getSignature() {\n return mSignature;\n }", "public Sig getSignature() {\n return this.sig;\n }", "public String getSignature() {\n return signature;\n }", "public String getSignature() {\n return signature;\n }", "public String getSignature() {\n return signature;\n }", "public String getSignature()\r\n {\r\n return signature;\r\n }", "public void setSign(String sign) {\n\n this.sign = sign;\n }", "public SingleSignConstants.SignAlgorithm getSignAlgorithm() {\r\n\t\treturn this.algorithm;\r\n\t}", "public String getSignature() {\n\t\treturn signature;\n\t}", "@ApiModelProperty(example = \"D8047EB8285077D9900EDD42F4081070DDB26E08E7F15A3E29642C80CF0C7D68340682DC9868C73EB09744D6298146D8DFC02ED47070FC81FB47D6F73B33EF0A\", required = true, value = \"The signature of the entity. The signature was generated by the signer and can be used to validate tha the entity data was not modified by a node. \")\n public String getSignature() {\n return signature;\n }", "@Override\n\tpublic boolean getSigned() {\n\t\treturn false;\n\t}", "public java.lang.String getCallSign() {\n\t\treturn _tempNoTiceShipMessage.getCallSign();\n\t}", "public String getSignImgUrl() {\n return signImgUrl;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getSignature() {\n return instance.getSignature();\n }", "public Name\ngetSigner() {\n\treturn signer;\n}", "public final String getSignerOverride() {\n return properties.get(SIGNER_OVERRIDE_PROPERTY);\n }", "public byte getSignedValue() {\n return num;\n }", "Signature getSignature();", "public boolean getSign() {\n Native.IntPtr res = new Native.IntPtr();\n if (!Native.fpaGetNumeralSign(getContext().nCtx(), getNativeObject(), res))\n throw new Z3Exception(\"Sign is not a Boolean value\");\n return res.value != 0;\n }", "protected org.bukkit.block.Sign getSignBlock() {\r\n if (this.getBlock() == null) return null;\r\n \r\n return (org.bukkit.block.Sign) this.getBlock().getState();\r\n }", "public DoubleProperty centerYProperty() { return centerY; }", "public String setSign() {\r\n\r\n\t\tif (getOperand().length() == Config.MAX_SIZE) {\r\n\t\t\treturn getOperand().toString();\r\n\t\t}\r\n\r\n\t\tif (getOperand().length() == 0) {\r\n\t\t\treturn \"0\";\r\n\t\t}\r\n\r\n\t\tif (sign) {\r\n\t\t\tsign = false;\r\n\t\t\treturn getOperand().deleteCharAt(0).toString();\r\n\t\t} else {\r\n\t\t\tsign = true;\r\n\t\t\treturn getOperand().insert(0, \"-\").toString();\r\n\t\t}\r\n\t}", "public double getRot() {\n return this.rot;\n }", "public byte []\ngetSignature() {\n\treturn signature;\n}", "@java.lang.Override\n public com.google.protobuf.ByteString getSignature() {\n return signature_;\n }", "private org.bukkit.material.Sign getSignMaterial() {\r\n if (this.getBlock() == null) return null;\r\n \r\n org.bukkit.material.Sign material = new org.bukkit.material.Sign(this.getBlock().getType());\r\n material.setData(this.getBlock().getData());\r\n return material;\r\n }", "public java.util.Date getSignDate() {\n\t\treturn _tempNoTiceShipMessage.getSignDate();\n\t}", "public boolean isSign() {\n return this.type == Type.SIGN;\n }", "@ApiModelProperty(example = \"D799E559AB735A5E62187306E80C1679EE3E1170532280C968D974E351CB412F\", required = true, value = \"The public key of the entity signer formatted as hexadecimal.\")\n public String getSigner() {\n return signer;\n }", "java.lang.String getProperty();", "String getProperty();", "String getProperty();", "String getProperty();", "public String getProperty();", "public double getSigProp(){\n\t\tdouble s=0, n=0;\n\t\tfor(ControlledExperiment rep : replicates){\n\t\t\ts+=rep.getSigCount();\n\t\t\tn+=rep.getNoiseCount();\n\t\t}return(s/(s+n));\n\t}", "String getSignature();", "String getSignature();", "String getSignature();", "public double getRotation() {\n return getDouble(\"ts\");\n }", "Property getProperty();", "Property getProperty();", "public java.lang.String getReceiveSign () {\r\n\t\treturn receiveSign;\r\n\t}", "public float getRotation() {\n return pm.pen.getLevelValue(PLevel.Type.ROTATION);\n }", "public float getRotation()\n {\n return rotation;\n }", "public int getRotation() {\n\treturn rotation;\n\t//return rotation;\n}", "public Date\ngetTimeSigned() {\n\treturn timeSigned;\n}", "public int signum() {\n return this.signum;\n }", "public CertPath getSignerCertPath() {\n return signerCertPath;\n }", "public java.lang.String getSignPlace() {\n\t\treturn _tempNoTiceShipMessage.getSignPlace();\n\t}", "public float getRotation() {\n return this.rotation;\n }", "public float getRotation() {\n\t\treturn rotation;\n\t}", "public String getGraphSignature(){\n \t this.generateGraphSignature();\n \t return this.graphSignature;\n \t}", "public String getSignature() {\n return \"P\" + getPointedType().getSignature();\n }", "public int getOpenedSignId() {\n return openedSignId;\n }", "String signingRegion();", "@java.lang.Override\n public com.google.protobuf.ByteString getSignedTimeStamp() {\n return signedTimeStamp_;\n }", "@DOMSupport(DomLevel.ONE)\r\n @Property String getSecurity();", "public java.lang.String getSignatureimage () {\n\t\treturn signatureimage;\n\t}", "public ArrayList<SignLineElement> getSigners() {\n\t\treturn this.signers;\n\t}", "public double getRotation();", "public String[] getSignature() {\n\t\treturn signature;\n\t}", "public void setSign(String sign) {\n this.sign = sign == null ? null : sign.trim();\n }", "@Override\n public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public com.google.protobuf.ByteString\n getSignatureBytes() {\n Object ref = signature_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n signature_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getSignedTimeStamp() {\n return signedTimeStamp_;\n }", "public boolean isSetSign() {\n return this.Sign != null;\n }", "public int getRotation() {\r\n\t\treturn rotation;\r\n\t}", "String componentSignature();", "public String getProperty() {\n return \"\";\n }", "public abstract String getSignature();", "@JSProperty\n String getValue();", "com.google.protobuf.ByteString\n getPropertyBytes();", "public int getAngle() {\r\n return angle;\r\n }", "public double getRotation() {\n return Degrees.atan2(y, x);\n }", "public org.apache.calcite.avatica.proto.Common.Signature getSignature() {\n return signature_ == null ? org.apache.calcite.avatica.proto.Common.Signature.getDefaultInstance() : signature_;\n }", "@Override\r\n\tpublic String getSign(String data, String id, String struc) {\n\t\treturn null;\r\n\t}", "private int signBit() {\n return signum < 0 ? 1 : 0;\n }", "public float getBaseRotation() {\n return this.baseRotation;\n }", "public double getAngle() { return angle; }", "@Override\n public String getSignature() {\n Object ref = signature_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n }\n }", "@Override\n public String getSignature() {\n Object ref = signature_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n signature_ = s;\n return s;\n }\n }", "public int getSignature() {\r\n\t\tif (this.signature == 0) {\r\n\t\t\tthis.signature = Math.abs(lhs);\r\n\t\t\tfor (Map.Entry<Integer, DPState> e : dpStates.entrySet())\r\n\t\t\t\tthis.signature = this.signature * 31 + e.getValue().getSignature(false);\r\n\t\t}\r\n \t\treturn this.signature;\r\n \t}" ]
[ "0.7740639", "0.7739496", "0.7490588", "0.68731016", "0.68407744", "0.65540504", "0.6513902", "0.65108067", "0.6470595", "0.6388444", "0.6354616", "0.63152736", "0.6262882", "0.61656505", "0.61056405", "0.61041874", "0.6087757", "0.6063886", "0.60119504", "0.6002156", "0.5994532", "0.5994532", "0.5994532", "0.59600246", "0.59347034", "0.59294456", "0.59242517", "0.5923691", "0.58928305", "0.5890338", "0.5853566", "0.5836416", "0.5819001", "0.5805908", "0.57554847", "0.57429445", "0.57419044", "0.57342744", "0.57280326", "0.5716986", "0.5713526", "0.5693788", "0.5659011", "0.56466573", "0.5643618", "0.5625993", "0.56147516", "0.5581066", "0.555254", "0.555254", "0.555254", "0.55432594", "0.55319864", "0.5531399", "0.5531399", "0.5531399", "0.552413", "0.55098504", "0.55098504", "0.54858494", "0.5464051", "0.5462904", "0.5447128", "0.54339266", "0.5407474", "0.539195", "0.5374214", "0.5347382", "0.53377223", "0.53308624", "0.532801", "0.5306557", "0.52983284", "0.52962714", "0.5295874", "0.5292708", "0.52894497", "0.52760535", "0.52652586", "0.5260059", "0.52550644", "0.52550644", "0.5255026", "0.5247794", "0.5237541", "0.5235665", "0.5235413", "0.52283347", "0.5226445", "0.5218646", "0.52186376", "0.5205587", "0.5203362", "0.52019054", "0.5198715", "0.5194845", "0.51880115", "0.5187182", "0.5187182", "0.51713675" ]
0.7679558
2
Setter for property sign.
public void setSign(String sign) { this.sign = sign; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSign() {\n\n return this.sign;\n }", "public String getSign() {\n return sign;\n }", "public void setSign(String sign) {\n this.sign = sign == null ? null : sign.trim();\n }", "public String setSign() {\r\n\r\n\t\tif (getOperand().length() == Config.MAX_SIZE) {\r\n\t\t\treturn getOperand().toString();\r\n\t\t}\r\n\r\n\t\tif (getOperand().length() == 0) {\r\n\t\t\treturn \"0\";\r\n\t\t}\r\n\r\n\t\tif (sign) {\r\n\t\t\tsign = false;\r\n\t\t\treturn getOperand().deleteCharAt(0).toString();\r\n\t\t} else {\r\n\t\t\tsign = true;\r\n\t\t\treturn getOperand().insert(0, \"-\").toString();\r\n\t\t}\r\n\t}", "public LinearConstraint setSign(Sign sign) {\n this.sign = sign;\n return this;\n }", "public Sign() {\n if (this.x == 0) {\n this.sign = \"+\";\n } else if (this.x == 1) {\n this.sign = \"-\";\n } else if (this.x == 2) {\n this.sign = \"*\";\n } else if (this.x == 3) {\n this.sign = \"^\";\n }\n }", "public Sign getSign() {\n return sign;\n }", "public String getSignFlag() {\n return signFlag;\n }", "String getSign();", "public java.lang.String sign() {\n\n return java.lang.String.valueOf(this.getValue().charAt(0));\n }", "public void setSignFlag(String signFlag) {\n this.signFlag = signFlag == null ? null : signFlag.trim();\n }", "public void setLoSign(int loSign) {\n this.loSign = loSign;\n }", "public String getSignFormat() {\r\n\t\treturn this.signFormat;\r\n\t}", "public String getSignType() {\n return signType;\n }", "@Override\n\tpublic String representation() {\n\t\treturn this.sign.name();\n\t}", "public String getSignLocation() {\n\t\treturn signLocation;\n\t}", "public String getSignName() {\n return signName;\n }", "public boolean isSign() {\n return this.type == Type.SIGN;\n }", "public String getSignReturn() {\n return signReturn;\n }", "public void setLaSign(int laSign) {\n this.laSign = laSign;\n }", "public void setSignDate(Date signDate) {\n this.signDate = signDate;\n }", "public int getLaSign() {\n return laSign;\n }", "public int getLoSign() {\n return loSign;\n }", "public Date getSignDate() {\n return signDate;\n }", "void swapSign();", "@Override\n\tpublic boolean getSigned() {\n\t\treturn false;\n\t}", "public byte getSignedValue() {\n return num;\n }", "public boolean isSetSign() {\n return this.Sign != null;\n }", "public SignType getSignType();", "public final void mSIGN_EXPRESSION() throws RecognitionException {\n try {\n int _type = SIGN_EXPRESSION;\n // /Users/benjamincoe/HackWars/C.g:17:17: ( 'sign_expression' )\n // /Users/benjamincoe/HackWars/C.g:17:19: 'sign_expression'\n {\n match(\"sign_expression\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public void setSign(int row, int col, Sign sign){\r\n board[row][col] = sign;\r\n moves++;\r\n }", "public void setSignType(String signType) {\n this.signType = signType == null ? null : signType.trim();\n }", "public void setSign(int number, String sign) {\n int[] pos = boardMapper.get(number);\n boardArray[pos[0]][pos[1]] = sign;\n }", "public void setSignName(String signName) {\n this.signName = signName;\n }", "public boolean isSetSign() {\n\t\treturn this.sign != null;\n\t}", "public StreetSign(StreetSign streetSign) {\n super(streetSign.getDeviceId(), streetSign.getBlockchainAddress(), streetSign.getEnabled(), streetSign.getLocation());\n this.text = streetSign.getText();\n }", "@ApiModelProperty(example = \"D8047EB8285077D9900EDD42F4081070DDB26E08E7F15A3E29642C80CF0C7D68340682DC9868C73EB09744D6298146D8DFC02ED47070FC81FB47D6F73B33EF0A\", required = true, value = \"The signature of the entity. The signature was generated by the signer and can be used to validate tha the entity data was not modified by a node. \")\n public String getSignature() {\n return signature;\n }", "private void swapSign() {\n isPositive = !isPositive;\n }", "public void setCallSign(java.lang.String callSign) {\n\t\t_tempNoTiceShipMessage.setCallSign(callSign);\n\t}", "public DoubleProperty centerYProperty() { return centerY; }", "public int signum() {\n return this.signum;\n }", "public Velocity changeSigns(Side side) {\n Velocity v;\n switch (side) {\n case TOP:\n case BOTTOM:\n v = this.changeDirection(1, -1);\n break;\n case LEFT:\n case RIGHT:\n v = this.changeDirection(-1, 1);\n break;\n case CORNER:\n v = this.changeDirection(-1, -1);\n break;\n case NONE:\n default:\n v = this.changeDirection(1, 1);\n break;\n }\n return v;\n }", "public void setSignature( String pSignature )\r\n {\r\n this.signature = pSignature;\r\n }", "public boolean getSign() {\n Native.IntPtr res = new Native.IntPtr();\n if (!Native.fpaGetNumeralSign(getContext().nCtx(), getNativeObject(), res))\n throw new Z3Exception(\"Sign is not a Boolean value\");\n return res.value != 0;\n }", "public String getSignImgUrl() {\n return signImgUrl;\n }", "public void setSignature(String Signature) {\n this.Signature = Signature;\n }", "@JSProperty(\"to\")\n void setTo(double value);", "@java.lang.SuppressWarnings(\"all\")\n\[email protected](\"lombok\")\n\tpublic void setScriptSig(final ScriptSig scriptSig) {\n\t\tthis.scriptSig = scriptSig;\n\t}", "private int signBit() {\n return signum < 0 ? 1 : 0;\n }", "public static void initSignList()\n\t{\n\t\tlistOfSigns.add(SIGN_PLUS);\n\t\tlistOfSigns.add(SIGN_MINUS);\n\t}", "public void setSignReturn(String signReturn) {\n this.signReturn = signReturn == null ? null : signReturn.trim();\n }", "public void setSignImgUrl(String signImgUrl) {\n this.signImgUrl = signImgUrl == null ? null : signImgUrl.trim();\n }", "public boolean signRequired() {\n\t\treturn false;\n\t}", "private String signString(int signed){\n\t\tString signedStr = \"NO\";\n\t\tif (signed == 1) {\n\t\t\tsignedStr = \"YES\";\n\t\t}\n\t\treturn signedStr;\n\t}", "public void setSignDate(java.util.Date signDate) {\n\t\t_tempNoTiceShipMessage.setSignDate(signDate);\n\t}", "public void setSubtraction() {\n\t\tset((byte) (get() | (1 << 6)));\n\t}", "public String getSignature() {\n return this.Signature;\n }", "public void setSignal(java.awt.Image sig) {\n\t\timage = sig;\n\t\tjsignal = null;\n\t}", "private static void addPropsObjSign(Document doc, XMLSignature sig) {\n\t\ttry {\n\t\t\tcreateSignatureProperties(doc, sig, \"\");\n\t\t\tTransforms transforms = new Transforms(doc);\n\t\t\ttransforms.addTransform(Transforms.TRANSFORM_C14N11_OMIT_COMMENTS);\n\t\t\tsig.addDocument(\"#prop\", transforms, DigestMethod.SHA256); //$NON-NLS-1$\n\t\t} catch (XMLSignatureException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (TransformationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setSignificanceToTarget( Flow.Significance val ) {\n doCommand( new UpdateSegmentObject( getUser().getUsername(), getFlow(), \"significanceToTarget\", val ) );\n }", "public void setReceiveSign (java.lang.String receiveSign) {\r\n\t\tthis.receiveSign = receiveSign;\r\n\t}", "public final String getSignerOverride() {\n return properties.get(SIGNER_OVERRIDE_PROPERTY);\n }", "@ApiModelProperty(example = \"D799E559AB735A5E62187306E80C1679EE3E1170532280C968D974E351CB412F\", required = true, value = \"The public key of the entity signer formatted as hexadecimal.\")\n public String getSigner() {\n return signer;\n }", "public boolean signed() {\n\t\treturn false;\n\t}", "@NonNull\n public String getSignature() {\n return mSignature;\n }", "public SingleSignConstants.SignAlgorithm getSignAlgorithm() {\r\n\t\treturn this.algorithm;\r\n\t}", "public void setSigner(ISigner theSigner) {\r\n\t\tmySigner = theSigner;\r\n\t}", "public Property() {\r\n\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\tscoringmethod = 0;\r\n\t\tmindistance = 0.5;\r\n\t}", "public void setAngle( double a ) { angle = a; }", "private String stringRepresentationOfSign(double value) {\n int sign = 0;\n if (value < 0) sign = -1;\n else if (value > 0) sign = 1;\n else if (value == 0.0) sign = 1;\n \n\tint t = signLength() * (sign + 1);\n\treturn signString.substring (t, t + signLength());\n }", "public String getSignature() {\n return signature;\n }", "public String getSignature() {\n return signature;\n }", "public String getSignature() {\n return signature;\n }", "public void setSignature(short signature) {\n\t\ttry {\n\t\t\tgetStream().setInt(this.signature, signature);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "public String getSignature() {\n\t\treturn signature;\n\t}", "@JSProperty(\"offset\")\n void setOffset(double value);", "default double signum() {\r\n\t\treturn signum(evaluate());\r\n\t}", "private org.bukkit.material.Sign getSignMaterial() {\r\n if (this.getBlock() == null) return null;\r\n \r\n org.bukkit.material.Sign material = new org.bukkit.material.Sign(this.getBlock().getType());\r\n material.setData(this.getBlock().getData());\r\n return material;\r\n }", "void setAngle(double angle);", "@Override\n public String toString(String prefix) { \n \n\n if(value != null) {\n getValueSigned();\n return prefix + \" \" + toString() +\" ( \"+ this.value+\" )\";\n }\n else\n return prefix + \" \" + toString();\n }", "void setSignature(String signature) {\n this.signature = signature;\n }", "public ISignature getSignature() {\n return _signature;\n }", "public void setProperty(Integer t) {\n\n\t\t}", "public ReoSystemValue(SignatureExpression sign, Assembly<T> prog) {\n\t\tif (sign == null || prog == null)\n\t\t\tthrow new NullPointerException();\n\t\tthis.sign = sign;\n\t\tthis.prog = prog;\n\t}", "@JSProperty(\"from\")\n void setFrom(double value);", "public void setSignPlace(java.lang.String signPlace) {\n\t\t_tempNoTiceShipMessage.setSignPlace(signPlace);\n\t}", "private int signInt() {\n return signum < 0 ? -1 : 0;\n }", "@Override\n\tpublic void setMontant(double s) {\n\t\t\n\t}", "public String getSignature()\r\n {\r\n return signature;\r\n }", "public static byte copySign(byte magnitude, byte sign)\r\n/* 36: */ {\r\n/* 37:128 */ if (((magnitude >= 0) && (sign >= 0)) || ((magnitude < 0) && (sign < 0))) {\r\n/* 38:130 */ return magnitude;\r\n/* 39: */ }\r\n/* 40:131 */ if ((sign >= 0) && (magnitude == -128)) {\r\n/* 41:133 */ throw new MathArithmeticException(LocalizedFormats.OVERFLOW, new Object[0]);\r\n/* 42: */ }\r\n/* 43:135 */ return (byte)-magnitude;\r\n/* 44: */ }", "protected org.bukkit.block.Sign getSignBlock() {\r\n if (this.getBlock() == null) return null;\r\n \r\n return (org.bukkit.block.Sign) this.getBlock().getState();\r\n }", "public void setSigningTime(java.util.Calendar signingTime)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SIGNINGTIME$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SIGNINGTIME$0);\r\n }\r\n target.setCalendarValue(signingTime);\r\n }\r\n }", "public java.lang.String getCallSign() {\n\t\treturn _tempNoTiceShipMessage.getCallSign();\n\t}", "public final void setSymbol(String symbol)\n {\n String newSymbol = \"None\";\n if (\"paragraph\".equals(symbol))\n {\n newSymbol = \"P\";\n }\n annot.setString(COSName.SY, newSymbol);\n }", "public void set(int s, long value) {\n\t\t\tif (sign * s < 0) {\n\t\t\t\tdc.setStart(value);\n\t\t\t} else {\n\t\t\t\tdc.setEnd(value);\n\t\t\t}\n\t\t}", "@JSProperty(\"min\")\n void setMin(double value);", "@Override\n\tpublic void visit(SignedExpression arg0) {\n\t\t\n\t}", "public double getRot() {\n return this.rot;\n }", "private void setSignature(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000010;\n signature_ = value;\n }", "public void setSignature(String signature) {\n\t\tthis.signature = signature;\n\t}" ]
[ "0.71301454", "0.7091477", "0.6949226", "0.6861053", "0.67993677", "0.6745887", "0.6737833", "0.63640916", "0.63544655", "0.6293428", "0.61633646", "0.60913485", "0.5891036", "0.5683867", "0.5657928", "0.5596855", "0.55747604", "0.5513077", "0.5440672", "0.5436575", "0.5419255", "0.5353706", "0.5285681", "0.5257833", "0.5242235", "0.5228511", "0.520946", "0.52044106", "0.51857334", "0.51851386", "0.516257", "0.51550674", "0.513522", "0.5132027", "0.5104358", "0.5103637", "0.5088144", "0.5036426", "0.5018867", "0.50053406", "0.49540827", "0.4948991", "0.49409652", "0.49206892", "0.4901912", "0.489032", "0.48842776", "0.48826668", "0.4872719", "0.48394412", "0.4836275", "0.48339325", "0.48331285", "0.47926405", "0.47912526", "0.47890818", "0.47870493", "0.47736862", "0.47310647", "0.4724471", "0.46995634", "0.46936643", "0.46836632", "0.46790263", "0.46615493", "0.46365416", "0.4633192", "0.46325824", "0.46292946", "0.4615569", "0.4614393", "0.4614393", "0.4614393", "0.46115145", "0.46012586", "0.46011987", "0.45980495", "0.4593211", "0.45902884", "0.45873946", "0.45810825", "0.45798683", "0.45785472", "0.4573986", "0.45709738", "0.45670807", "0.45661208", "0.45633727", "0.45503914", "0.45468402", "0.45450395", "0.45406938", "0.4534677", "0.45256308", "0.4524408", "0.45220774", "0.45189556", "0.45136094", "0.45120087", "0.45057854" ]
0.7399933
0
Getter for property document.
public boolean isDocument() { return this.document; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Property getProperty();", "Property getProperty();", "public String getProperty();", "java.lang.String getProperty();", "public Document getDocument() {\n return doc;\n }", "String getProperty();", "String getProperty();", "String getProperty();", "public Document getDocument() {\n return _document;\n }", "public Document getDocument() {\n return document;\n }", "public Document getDocument() {\n return this.document;\n }", "public Document getDocument() {\n return document;\n }", "public Document getDocument() {\n return document;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic Document getDocument() {\n\t\tDocument doc = this.documentBuilder.newDocument();\n\t\t\n\t\tElement rootElement = doc.createElement(\"properties\");\n\t\tdoc.appendChild(rootElement);\n\t\t\n\t\tEnumeration<String> keys = (Enumeration<String>) this.properties.propertyNames();\n\t\t\n\t\twhile (keys.hasMoreElements()) {\n\t\t\tString key = keys.nextElement();\n\t\t\tElement entry = doc.createElement(\"entry\");\n\t\t\tentry.setAttribute(\"key\", key);\n\t\t\tentry.setTextContent(this.getProperty(key));\n\t\t\trootElement.appendChild(entry);\n\t\t}\n\t\t\n\t\treturn doc;\n\t}", "public static Properties getDocletList() {\n\t\treturn docPropList;\n\t}", "public Document getDocument()\n {\n return field.getDocument();\n }", "public Document getDocument() {\r\n\t\treturn document;\r\n\t}", "public Document getDocument()\n\t{\n\t\treturn document;\n\t}", "@Property Element getDocumentElement();", "@Test\n public void getSlidesDocumentPropertyTest() throws ApiException, Exception {\n initialize(\"getSlidesDocumentProperty\", null, null);\n Boolean needAssertResponse = false;\n DocumentPropertyResponse response = null;;\n try {\n GetSlidesDocumentPropertyRequest request = createGetSlidesDocumentPropertyRequest();\n response = api.getSlidesDocumentProperty(request);\n needAssertResponse = true;\n } catch (Exception ex) {\n assertSuccessfulException(ex, \"getSlidesDocumentProperty\");\n }\n if (needAssertResponse) {\n assertThat(response.getCode(), anyOf(equalTo(HttpStatusCode.OK), equalTo(HttpStatusCode.Created)));\n }\n }", "public Document getDocument() {\n\t\treturn doc;\n\t}", "public Document getDocument() {\n\t\treturn document;\n\t}", "public Document getDocument() {\n\t\treturn document;\n\t}", "public static String getDoc() {\n return doc;\n }", "public Document getDocument()\n {\n return m_Document;\n }", "public Document getDocument()\n\t{\n\t\treturn this.document;\n\t}", "public Document getDocument() {\r\n return mDocument;\r\n }", "public Document getDocument() {\n\t\treturn this.doc;\n\t}", "public DatatypeProp getProperty() {\n return property;\n }", "public String getDocument() {\n\t\treturn document;\n\t}", "private PropertyPagePropertyDescriptor getPropertyDescriptor() {\n \t\treturn propertyDescriptor;\n \t}", "public String getProperty() {\n return \"\";\n }", "public Properties getProperty() {\r\n return properties;\r\n }", "public Property getProperty() {\n\t\treturn _property;\n\t}", "public Document getDocument() {\r\n\t\treturn mDocument;\r\n\t}", "public VEXDocument getDocument() {\n\t\treturn this.doc;\n\t}", "public PropertyDefinitionBase getPropertyDefinition() {\n return propertyDefinition;\n }", "public Map<String, Object> getDocument() {\n return document;\n }", "Object getPropertytrue();", "public OpenDefinitionsDocument getDocument() { return _document; }", "private String getPropertyCatalog() {\n return this.property;\n }", "public URL getDocument() {\r\n return this.document;\r\n }", "public final Map<String, ScriptDocValues<?>> getDoc() {\n return leafLookup.doc();\n }", "public Gedcomx getDocument() {\n return doc;\n }", "public String getPropertyPart() {\n return this.PROPERTY_PART;\n }", "int getProperty0();", "public message.Figure.FigureData.FigureProperty getProperty() {\n return property_;\n }", "public String getDocument() {\n\t\treturn null;\r\n\t}", "public File getPropertyFile() { return propertyFile; }", "String getProperty(String property);", "public Integer getProperty() {\n\t\t\treturn null;\n\t\t}", "@ApiModelProperty(example = \"String content\", required = true, value = \"Base64 Encoded String of document\")\n @JsonProperty(JSON_PROPERTY_DOC_FIELD)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public String getDocField() {\n return docField;\n }", "@Property String getDocumentURI();", "public abstract String GetProperty(Slice property);", "public String getProperty(String name);", "public message.Figure.FigureData.FigureProperty getProperty() {\n return property_;\n }", "@Override\n public Property getProperty() throws ItemNotFoundException,\n ValueFormatException, RepositoryException {\n return null;\n }", "public cto.framework.service.schema.Property[] getProperty() {\r\n cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0];\r\n return this._propertyList.toArray(array);\r\n }", "public Element readPropertysetElement(Document document) {\n Element documentElement = document.getDocumentElement();\n if (documentElement != null && getUnprefixedNodeName(documentElement).equals(\"propertyset\")) {\n return documentElement;\n }\n throw new RuntimeException(\"Root element was not 'propertyset'\");\n }", "com.google.protobuf.ByteString\n getPropertyBytes();", "public PropertiesDocument() {\n\t\tthis.documentBuilderFactory = DocumentBuilderFactory.newInstance();\n try {\n\t\t\tthis.documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// Exception with default configuration\n\t\t\te.printStackTrace();\n\t\t}\n this.properties = new Properties();\n\t}", "public Property getProperty() {\n\treturn commonproperty;\r\n}", "String getProperty(String name);", "public String getProperty() {\n Object ref = property_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n property_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "@Override\n\t\tpublic void processPropertyDocument(PropertyDocument propertyDocument) {\n\t\t}", "public Object getProperty(QName name) {\n\t\tString n = getFullName(name);\n\t\tObject o = content.getProperty(n);\n\t\tLOGGER.debug(\"-------------- GETTING {} as {} --------------\", n, o);\n\t\treturn o;\n\t}", "public String getProperty() {\n Object ref = property_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n property_ = s;\n return s;\n }\n }", "public XDoc getDoc() {\r\n\t\treturn doc;\r\n\t}", "public int getProperty0() {\n return property0_;\n }", "public String getConstProperty() {\n return this.constProperty;\n }", "private String getPropertyValue() {\n return EmfPropertyHelper.getValue(itemPropertyDescriptor, eObject);\n }", "com.google.protobuf.ByteString\n getPropertyBytes();", "private ReadProperty()\r\n {\r\n\r\n }", "private static String getPropertyDoc(final JPPFProperty<?> property) {\n final StringBuilder sb = new StringBuilder();\n if (property.isDeprecated()) {\n sb.append(\"<i><b>Deprecated:</b> \").append(convertForHTML(property.getDeprecatedDoc())).append(\"</i><br>\");\n }\n sb.append(property.getDocumentation());\n final String[] params = property.getParameters();\n if ((params != null) && (params.length > 0)) {\n for (final String param: params) {\n sb.append(\"<br>- <i>\").append(param).append(\"</i>: \");\n final String doc = property.getParameterDoc(param);\n if (doc != null) sb.append(doc);\n }\n }\n return sb.toString();\n }", "public DocumentNode getDocumentNode() {\n return documentNode;\n}", "@java.lang.Override\n public trinsic.services.common.v1.CommonOuterClass.JsonPayload getDocument() {\n return document_ == null ? trinsic.services.common.v1.CommonOuterClass.JsonPayload.getDefaultInstance() : document_;\n }", "@java.lang.Override\n public trinsic.services.common.v1.CommonOuterClass.JsonPayload getDocument() {\n return document_ == null ? trinsic.services.common.v1.CommonOuterClass.JsonPayload.getDefaultInstance() : document_;\n }", "@java.lang.Override\n public trinsic.services.common.v1.CommonOuterClass.JsonPayload getDocument() {\n return document_ == null ? trinsic.services.common.v1.CommonOuterClass.JsonPayload.getDefaultInstance() : document_;\n }", "@Before(order=0)\n\tpublic void getProperty() {\n\t\tconfigReader = new ConfigReaders();\n\t\tprop = configReader.init_prop();\n\t\t\n\t}", "@Test\n public void getSlidesDocumentPropertyInvalidPropertyNameTest() throws ApiException {\n Boolean needAssertResponse = false;\n try {\n GetSlidesDocumentPropertyRequest request = createGetSlidesDocumentPropertyRequest();\n request.setPropertyName((String)invalidizeTestValue(request.getPropertyName(), \"propertyName\", \"String\"));\n initialize(\"getSlidesDocumentProperty\", \"propertyName\", request.getPropertyName());\n DocumentPropertyResponse response = api.getSlidesDocumentProperty(request);\n needAssertResponse = true;\n } catch (ApiException ex) {\n assertException(ex, \"propertyName\", \"getSlidesDocumentProperty\");\n }\n if (needAssertResponse) {\n assertResponse(\"propertyName\", \"getSlidesDocumentProperty\");\n }\n }", "public Document getDoc1() {\r\n return doc1;\r\n }", "public String getPropertyFile() {\n return propertyFile;\n }", "Object getProperty(String name);", "int getProperty2();", "@ApiModelProperty(example = \"String content\", required = true, value = \"Name of document to display in SigniFlow\")\n @JsonProperty(JSON_PROPERTY_DOC_NAME_FIELD)\n @JsonInclude(value = JsonInclude.Include.ALWAYS)\n\n public String getDocNameField() {\n return docNameField;\n }", "public com.google.protobuf.ByteString\n getPropertyBytes() {\n Object ref = property_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n property_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public DocumentoVO getDocumento() {\n return documento;\n }", "static DocumentRemote get() {\n\t\tif (GWT.isScript()) {\n\t\t\treturn nativeGet();\n\t\t}\n\t\t// No need to be MT-safe. Single-threaded JS code.\n\t\tif (doc == null) {\n\t\t\tdoc = nativeGet();\n\t\t}\n\t\treturn doc;\n\t}", "public Document readDocument();", "public com.google.protobuf.ByteString\n getPropertyBytes() {\n Object ref = property_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n property_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getDocinfo() {\n return docinfo;\n }", "Property createProperty();", "public java.lang.String getReference_Doc() {\r\n return reference_Doc;\r\n }", "public String getPropertyFile()\n\t{\n\t\treturn propertyFile;\n\t}", "PropertyReference createPropertyReference();", "public Document getDocument() {\n return editor.getDocument();\n }", "@Test\n public void getSlidesDocumentPropertyInvalidNameTest() throws ApiException {\n Boolean needAssertResponse = false;\n try {\n GetSlidesDocumentPropertyRequest request = createGetSlidesDocumentPropertyRequest();\n request.setName((String)invalidizeTestValue(request.getName(), \"name\", \"String\"));\n initialize(\"getSlidesDocumentProperty\", \"name\", request.getName());\n DocumentPropertyResponse response = api.getSlidesDocumentProperty(request);\n needAssertResponse = true;\n } catch (ApiException ex) {\n assertException(ex, \"name\", \"getSlidesDocumentProperty\");\n }\n if (needAssertResponse) {\n assertResponse(\"name\", \"getSlidesDocumentProperty\");\n }\n }", "public final Properties getPropertiesObject()\n {\n return fProp;\n }", "public String getStringProperty(String propertyName) ;", "public int getProperty0() {\n return property0_;\n }", "public interface IDocument {\n /**\n * Returns the content of the document, in a byte array.\n */\n byte[] getByteContent() throws IOException;\n /**\n * Returns the content of the document, in a char array.\n */\n char[] getCharContent() throws IOException;\n /**\n * returns the name of the document (e.g. its path for a <code>File</code>, or its relative path\n * in the workbench for an <code>IFile</code>).\n */\n String getName();\n /**\n * returns the value of the given property, or null if this document does not have\n * such a property.\n */\n String getProperty(String property);\n /**\n * Returns an enumeration of the names of the properties the document has.\n */\n java.util.Enumeration getPropertyNames();\n /**\n * Returns the content of the document, as a String.\n */\n public String getStringContent() throws IOException;\n /**\n * Returns the type of the document.\n */\n String getType();\n /**\n * Sets the given property of the document to the given value.\n */\n void setProperty(String attribute, String value); }" ]
[ "0.7087519", "0.7087519", "0.6968964", "0.68718415", "0.67814827", "0.6775251", "0.6775251", "0.6775251", "0.6761134", "0.6743374", "0.6727674", "0.67221546", "0.67221546", "0.6717721", "0.66685003", "0.6664514", "0.66368014", "0.6626245", "0.66217333", "0.66090244", "0.659543", "0.65916973", "0.65916973", "0.65850186", "0.6582952", "0.6582357", "0.6569287", "0.653115", "0.6505153", "0.6479437", "0.6462574", "0.6448134", "0.6403837", "0.64034104", "0.6391298", "0.6325361", "0.6314726", "0.6304054", "0.62847835", "0.6281659", "0.6271948", "0.6269471", "0.62332195", "0.6229655", "0.62258905", "0.6202408", "0.6198677", "0.61733043", "0.615696", "0.6125819", "0.6123455", "0.6115139", "0.6105854", "0.6096678", "0.60930413", "0.6079153", "0.60642713", "0.6063753", "0.6056904", "0.6050496", "0.60371035", "0.6019485", "0.60093033", "0.60092604", "0.6002525", "0.59901273", "0.59813184", "0.5968976", "0.5958874", "0.5955818", "0.5951821", "0.5948766", "0.59475034", "0.59336025", "0.5932029", "0.5914209", "0.5914209", "0.5914209", "0.5914037", "0.59095156", "0.589693", "0.5890816", "0.58831173", "0.58758616", "0.5875375", "0.58693093", "0.58621705", "0.5859599", "0.58572596", "0.58553153", "0.58450246", "0.58290285", "0.5828737", "0.5827608", "0.58244014", "0.5815113", "0.5806223", "0.5797088", "0.5796758", "0.5789965", "0.57893795" ]
0.0
-1
Setter for property document.
public void setDocument(boolean document) { this.document = document; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDocument(Document value) {\n document = value;\n }", "@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}", "@Override\n\t\tpublic void processPropertyDocument(PropertyDocument propertyDocument) {\n\t\t}", "public void setProperty(String name,Object value);", "public void setProperty(String property) {\n }", "@Override\n\tpublic void setProperty(String propertyName, Object value) {\n\t\t\n\t}", "public void setDocument(Document doc)\n\t{\n\t\tthis.document = doc;\n\t}", "public Element writePropertysetElement(Document document) {\n Element createElementNS = document.createElementNS(Constants.NS_UPNP_EVENT_10, \"e:propertyset\");\n document.appendChild(createElementNS);\n return createElementNS;\n }", "public void setDocument(Document document) {\n\t\tthis.document = document;\n\t}", "@Override\n\t\tpublic void setProperty(String key, Object value) {\n\n\t\t}", "public void setDocument(final Document doc) {\n Document old = document;\n if (doc != document && highlighter != null) {\n highlighter.removeAllHighlights();\n }\n document = doc;\n firePropertyChange(StringConstants.TEXT_COMPONENT_DOCUMENT_PROPERTY,\n old, doc);\n setDocumentDirection();\n }", "@Override\n\tpublic void setProperty(String name, Object value)\n\t{\n\t\tsuper.setProperty(name, value);\n\n\t\tprocessProperty(name, value);\n\t}", "@Override\n\tpublic void setProperty(String name, Object value)\n\t{\n\t\tsuper.setProperty(name, value);\n\n\t\tprocessProperty(name, value);\n\t}", "void setProperty(String attribute, String value);", "public void setDocument(URL document) {\r\n this.document = document;\r\n }", "public void setProperty(String name,Object value)\n {\n ClassAnalyzer.setProperty(m_Source,name,value);\n }", "@Override\n\t\t\tpublic void setPropertyValue(Object value) {\n\t\t\t\t\n\t\t\t}", "public abstract void setProperty(String property, Object value)\n throws SOAPException;", "public abstract void setValue(Context c, Object v) throws PropertyException;", "public void setSetPropertyTarget(String setPropertyTarget) {\n \n this.setPropertyTarget = setPropertyTarget;\n }", "@Override\r\n\tpublic void setPropFile(Properties prop) {\n\t\t\r\n\t}", "public void setProperty(String arg0, Object arg1)\n throws UniquePropertyValueConflictException,\n\n EntityPersistenceException {\n\n }", "private SetProperty(Builder builder) {\n super(builder);\n }", "@Override\n\tpublic void setProperties(Properties p) {\n\t\t\n\t}", "public void setProperty(String property) {\n \t\t_property = property;\n \t}", "public void setPropertyToRoot(String propertyName, boolean value);", "public void setProperty(String key, Object value);", "public void setProperty(String aProperty, Object aObject)\n\t\t\t\t\t throws SAXNotSupportedException, SAXNotRecognizedException {\n\t\tparserImpl.setProperty(aProperty, aObject);\n\t}", "public void setProperty(String propertyName, boolean value);", "public void setProperty(String propertyId, Object value)\n throws SAXNotRecognizedException, SAXNotSupportedException\n {\n // see if the property is recognized\n getProperty(propertyId);\n \n // Properties with a defined value, we just change it if we can.\n \n if ((PROPERTY + \"declaration-handler\").equals(propertyId))\n {\n if (value == null)\n {\n declHandler = base;\n }\n else if (!(value instanceof DeclHandler))\n {\n throw new SAXNotSupportedException(propertyId);\n }\n else\n {\n declHandler = (DeclHandler) value;\n }\n return ;\n }\n \n if ((PROPERTY + \"lexical-handler\").equals(propertyId))\n {\n if (value == null)\n {\n lexicalHandler = base;\n }\n else if (!(value instanceof LexicalHandler))\n {\n throw new SAXNotSupportedException(propertyId);\n }\n else\n {\n lexicalHandler = (LexicalHandler) value;\n }\n return;\n }\n \n throw new SAXNotSupportedException(propertyId);\n }", "public void setProperty( String key, Object value );", "public boolean setProperty(String attName, Object value);", "public void setDocumentNo (String DocumentNo);", "public void setDocumentNo (String DocumentNo);", "public void setDocumentNo (String DocumentNo);", "public void setDocumentLocation(L documentLocation);", "void setProperty(String key, Object value);", "protected void setPropertyTree(PropertyTree tree) {\n propertyTree = tree;\n }", "public void setProperty(java.lang.String name, java.lang.Object value)\n throws javax.xml.bind.PropertyException\n {\n super.setProperty(name, value);\n }", "public void setDoc(XDoc doc) {\r\n\t\tthis.doc = doc;\r\n\t}", "@Override\r\n\tpublic void setProperties(Properties arg0) {\n\r\n\t}", "public void testSetProperty() {\n rootBlog.setProperty(Blog.NAME_KEY, \"New name\");\n assertEquals(\"New name\", rootBlog.getProperty(Blog.NAME_KEY));\n assertEquals(\"New name\", rootBlog.getName());\n\n // and a new property\n rootBlog.setProperty(\"aNewPropertyKey\", \"A new property value\");\n assertEquals(\"A new property value\", rootBlog.getProperty(\"aNewPropertyKey\"));\n }", "public void setDocumentNote (String DocumentNote);", "public void setProperty(String property) {\n\t\tthis.property = property;\n\t}", "public void setNewSpecAnimationDocument(Document doc) {\n\n\t\tthis.specDocument = doc;\n\t}", "public void setProperty(final String property, final String value) {\n\n\t\tthis.engine.setProperty(property, value);\n\t}", "public void setContent(Document doc) {\n\t\tString text = doc.getContent().toString();\n\t\txmldoc = new NlptoolsshareType();\n\t\tDocumentType docxml = new DocumentType();\n\t\tdocxml.setText(text);\n\t\txmldoc.setDocument(docxml);\n\t}", "abstract void putXMLProperty(XMLName name, Object value);", "public void setProperty(Integer t) {\n\n\t\t}", "void editProperty(String requestedProperty, Object newValue) {\n properties.editProperty(requestedProperty, newValue); // <-- The replace() method automatically checks for null\n }", "public void setProperty(String name, String value) {\n PropertyHelper.getPropertyHelper(this).\n setProperty(null, name, value, true);\n }", "void setMyProperty1(Integer a) {}", "public PropertiesDocument() {\n\t\tthis.documentBuilderFactory = DocumentBuilderFactory.newInstance();\n try {\n\t\t\tthis.documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// Exception with default configuration\n\t\t\te.printStackTrace();\n\t\t}\n this.properties = new Properties();\n\t}", "public abstract void setPropertyValue(String propertyName, Object value)\n throws ModelException;", "public void setUserProperty(String name, String value) {\n PropertyHelper.getPropertyHelper(this).setUserProperty(null, name,\n value);\n }", "private void setPropertyInternal(String name, String value) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n ph.setProperty(null, name, value, false);\n }", "@Generated(hash = 1070169441)\npublic void setDocumento(Documento documento) {\n synchronized (this) {\n this.documento = documento;\n documentoId = documento == null ? null : documento.getId();\n documento__resolvedKey = documentoId;\n }\n}", "public void setContents(IMutableDocument doc) {\n this.doc = doc;\n this.widget.setContents(doc);\n this.mapper.resetSource(doc.getText());\n }", "public Builder setProperty(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n property_ = value;\n onChanged();\n return this;\n }", "@Override\r\n\tpublic void setProperties(Properties properties) \r\n\t{\n\t}", "@Override\n public void setDocWriter(DocWriter docWriter) {\n super.setDocWriter(docWriter);\n if (docWriter != null) {\n // Get our parameters from the indexer\n Map<String, String> indexerParameters = docWriter.indexerParameters();\n if (indexerParameters != null)\n setParameters(indexerParameters);\n }\n }", "@Override\n\tpublic void setProperty(int arg0, Object arg1) {\n\t\tif (arg1 == null)\n\t\t\treturn;\n\t\tswitch (arg0) {\n\t\tcase 0:\n\t\t\tthis.EntityKey=arg1.toString();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tthis.Id=Integer.valueOf(arg1.toString());\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.Description=arg1.toString();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.StartDate=arg1.toString();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.EndDate=arg1.toString();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "DefinedProperty nodeChangeProperty( long nodeId, int propertyKey, Object value );", "public void setPropertyFileName(String propertyfileName)\r\n\t{\r\n\t\t// propertyfileName = propertyFileName;\r\n\t\tpropertyFileName = propertyfileName;\r\n\t}", "@Override\n public void setDocumentMapper(DocumentMapper documentMapper) {\n\n }", "public Builder setDocument(trinsic.services.common.v1.CommonOuterClass.JsonPayload value) {\n if (documentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n document_ = value;\n onChanged();\n } else {\n documentBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setDocument(trinsic.services.common.v1.CommonOuterClass.JsonPayload value) {\n if (documentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n document_ = value;\n onChanged();\n } else {\n documentBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Builder setDocument(trinsic.services.common.v1.CommonOuterClass.JsonPayload value) {\n if (documentBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n document_ = value;\n onChanged();\n } else {\n documentBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void setDocumentLocator( Locator locator )\n {\n super.setDocumentLocator(locator);\n this.locator = locator;\n }", "public void setStringProperty(String propertyName, String value);", "void updatedProperty(TestResult tr, String name, String value);", "@Override\n\tpublic void propertyChange() {\n\t\tthis.apply();\n\t}", "public static void setProperty(String tag, String val) {\n\n prop.setProperty(tag, val);\n }", "public void setRelDocument(int v) \n {\n \n if (this.relDocument != v)\n {\n this.relDocument = v;\n setModified(true);\n }\n \n \n }", "@Override\n protected void updateProperties() {\n }", "public void setDateDoc (Timestamp DateDoc);", "public void setDateDoc (Timestamp DateDoc);", "public void setDateDoc (Timestamp DateDoc);", "public void setProperty(String prop, Object value)\r\n {\r\n\tswitch(prop)\r\n\t{\r\n\t case \"name\":\r\n\t\tname = value.toString();\r\n\t\tbreak;\r\n\t case \"description\":\r\n\t\tdesc = value.toString();\r\n\t\tbreak;\r\n\t case \"type\":\r\n\t\tsetType(value.toString());\r\n\t\tbreak;\r\n\t case \"level\":\r\n\t\tlevel = (Integer) value;\r\n\t\tbreak;\r\n\t case \"rarity\":\r\n\t\trare = Rarity.valueOf(value.toString().toUpperCase());\r\n\t\tbreak;\r\n\t case \"vendor_value\":\r\n\t\tvendorValue = (Integer) value;\r\n\t\tbreak;\r\n\t case \"game_types\":\r\n\t\taddGameType(value.toString());\r\n\t\tbreak;\r\n\t case \"flags\":\r\n\t\taddFlag(value.toString());\r\n\t\tbreak;\r\n\t case \"restrictions\":\r\n\t\taddRestriction(value.toString());\r\n\t\tbreak;\r\n\t case \"id\":\r\n\t\tid = (Integer) value;\r\n\t\tbreak;\r\n\t case \"icon\":\r\n\t\ttry {\r\n\t\t icon = new URL(value.toString());\r\n\t\t}\r\n\t\tcatch(MalformedURLException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\tbreak;\r\n\t}\r\n }", "public static void documentToValue( Document document, Value value )\n\t{\n\t\tsetAttributes( value, document.getDocumentElement() );\n\t\telementsToSubValues(\n\t\t\tvalue,\n\t\t\tdocument.getDocumentElement().getChildNodes()\n\t\t);\n\t}", "@Override\n public void set(Object bean, Object value) throws IOException {\n _propertyMutator.longSetter(bean, ((Number) value).longValue());\n }", "public void setTagProperty(String tagProperty);", "public void setProp(String key, String value){\t\t\n \t\t//Check which of property to set & set it accordingly\n \t\tif(key.equals(\"UMPD.latestReport\")){\n \t\t\tthis.setLatestReport(value);\n<<<<<<< HEAD\n\t\t} \n=======\n \t\t\treturn;\n \t\t} \n \t\tif (key.equals(\"UMPD.latestVideo\")) {\n \t\t\tthis.setLastestVideo(value);\n \t\t\treturn;\n \t\t}\n>>>>>>> 45a14c6cf04ac0844f8d8b43422597ae953e0c42\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return - a list of <code>FieldAndval</code> objects representing the set \n \t * properties\n \t */\n \tpublic ArrayList<FieldAndVal> getSetPropsList(){\n \t\tcreateSetPropsList();\n \t\treturn setPropsList;\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * \n \t */\n \tprivate void createSetPropsList(){\n \t\tif((this.latestReport).length()>0){\n \t\t\tsetPropsList.add(new FieldAndVal(\"UMPD.latestReport\", this.latestReport));\n \t\t}\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return lastestVideo - \n \t */\n \tpublic String getLastestVideo() {\n \t\treturn lastestVideo;\n \t}", "public PropertiesDocument(Document testRunArgs) throws ParserConfigurationException {\n\t\tthis.documentBuilderFactory = DocumentBuilderFactory.newInstance();\n this.documentBuilder = documentBuilderFactory.newDocumentBuilder();\n\t\tthis.document = this.documentBuilder.newDocument();\n\t\tthis.properties = documentToProperties(testRunArgs);\n\t}", "DefinedProperty graphChangeProperty( int propertyKey, Object value );", "@Override\n public void setDocumentLocator(Locator locator) {\n mLocator = locator;\n }", "private static void setProperty(String key, String value)\r\n/* 84: */ throws IOException\r\n/* 85: */ {\r\n/* 86: 83 */ log.finest(\"OSHandler.setProperty. Key=\" + key + \" Value=\" + value);\r\n/* 87: 84 */ File propsFile = getPropertiesFile();\r\n/* 88: 85 */ FileInputStream fis = new FileInputStream(propsFile);\r\n/* 89: 86 */ Properties props = new Properties();\r\n/* 90: 87 */ props.load(fis);\r\n/* 91: 88 */ props.setProperty(key, value);\r\n/* 92: 89 */ FileOutputStream fos = new FileOutputStream(propsFile);\r\n/* 93: 90 */ props.store(fos, \"\");\r\n/* 94: 91 */ fos.close();\r\n/* 95: */ }", "public void setOldProperty_description(java.lang.String param){\n localOldProperty_descriptionTracker = true;\n \n this.localOldProperty_description=param;\n \n\n }", "Form setProperty(String key, String value);", "public void write() throws IOException { \n FileOutputStream fos = new FileOutputStream(new File(_propertyFileDir, \n DAS_PROPERTY_FILE_NAME));\n _properties.store(fos, _strMgr.getString(\"dasPropertyFileComment\"));\n fos.close(); \n }", "public void setDocument(CorrelatorDocument doc) {\n\t\tm_document = doc;\n\t}", "@Override\n public void setDocumentLocator(Locator locator) {\n this.locator = locator;\n }", "public void setStringProperty(String propertyName,String propertyValue) throws UtilsException;", "public void setProperty(Properties properties) {\r\n this.properties = properties;\r\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "@Override\r\n\tpublic Object setProperty(String key, String value) {\r\n\t\t\r\n\t\treturn Settings.setProperty(key, value);\r\n\t\t\r\n\t}", "void\t\tsetCommandPropertyValue(String command, String propertyName, String propertyValue);", "private void setExtProperty(String propertyName, String dataConfigPropertyName, Object value) {\n ReflectionTestUtils.invokeMethod(this, \"setProperty\", new Object[]{propertyName, dataConfigPropertyName, value});\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }", "void writeProperties(java.util.Properties p) {\n p.setProperty(\"version\", \"1.0\");\n // TODO store your settings\n }" ]
[ "0.6944908", "0.68117625", "0.6754174", "0.6565918", "0.64824486", "0.6480244", "0.63896024", "0.63851255", "0.63794166", "0.6326527", "0.63212764", "0.62264854", "0.62264854", "0.6156548", "0.6154337", "0.6133917", "0.6100296", "0.6073402", "0.6072405", "0.6048715", "0.60232306", "0.6020591", "0.5956845", "0.59409124", "0.5930377", "0.5912323", "0.58900744", "0.5884662", "0.587183", "0.5866202", "0.5854521", "0.58503556", "0.58361", "0.58361", "0.58361", "0.5834564", "0.5819752", "0.5771426", "0.5770532", "0.5765857", "0.5747889", "0.5717542", "0.56912357", "0.56671923", "0.56638974", "0.566026", "0.5637687", "0.56343496", "0.5623456", "0.55915064", "0.55786616", "0.55774516", "0.5574831", "0.5569846", "0.5562077", "0.55227757", "0.55178845", "0.551728", "0.55167943", "0.55047244", "0.5502152", "0.54935634", "0.54889566", "0.54874504", "0.54823226", "0.5481724", "0.5481724", "0.5481724", "0.54545784", "0.54528224", "0.5451367", "0.5451333", "0.54437923", "0.5439823", "0.543422", "0.54325765", "0.54325765", "0.54325765", "0.5432484", "0.54221296", "0.5420208", "0.5417196", "0.5406343", "0.53956056", "0.53938925", "0.5379841", "0.5379496", "0.53790987", "0.53753304", "0.53684974", "0.5366996", "0.5355875", "0.5352997", "0.5351084", "0.5344091", "0.5342402", "0.5340295", "0.53385323", "0.53343314", "0.53343314" ]
0.5418326
81
Getter for property summary.
public boolean isSummary() { return this.summary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getSummary(){\r\n return this.summary;\r\n }", "java.lang.String getSummary();", "public String getSummary() {\r\n return summary;\r\n }", "public String getSummary() {\n return summary;\n }", "public String getSummary();", "@JsonProperty(\"summary\")\n public String getSummary() {\n return summary;\n }", "public String getSummary() {\n\t\treturn summary;\n\t}", "public String getSummary() {\n\t\treturn summary;\n\t}", "public native final String summary() /*-{\n\t\treturn this[\"summary\"];\n\t}-*/;", "public java.lang.String getSummary()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SUMMARY$18);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@NonNull\n public Optional<String> getSummary() {\n return Optional.ofNullable(this.summary);\n }", "@Override\r\n\tpublic String getSummary() {\n\t\treturn null;\r\n\t}", "public java.lang.Boolean getSummary() {\n return summary;\n }", "@Override\n\tpublic String getSummary() {\n\t\treturn null;\n\t}", "java.lang.String getProperty();", "public String getProperty();", "public org.apache.xmlbeans.XmlString xgetSummary()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SUMMARY$18);\n return target;\n }\n }", "public String toString() {\n StringBuilder sb = new StringBuilder();\n return sb.append(summary).append(\" is \").append(getValueDescription()).toString();\n }", "public StringProperty perfProperty() {\n return perf.getHint().textProperty();\n }", "public String getProperty() {\n return \"\";\n }", "public String summaryInfo() {\r\n \r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String result = \"\";\r\n result = \"----- Summary for \" + getName() + \" -----\";\r\n result += \"\\nNumber of Ellipsoid Objects: \" + list.size();\r\n result += \"\\nTotal Volume: \" + df.format(totalVolume()) + \" cubic units\";\r\n result += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea()) \r\n + \" square units\";\r\n result += \"\\nAverage Volume: \" + df.format(averageVolume()) \r\n + \" cubic units\";\r\n result += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea()) \r\n + \" square units\";\r\n \r\n return result;\r\n }", "String getProperty();", "String getProperty();", "String getProperty();", "org.apache.xmlbeans.XmlString xgetSummary();", "public String getDescription() {\n return getProperty(Property.DESCRIPTION);\n }", "public PrimitiveMethodSummary getSummary() {\n PrimitiveMethodSummary s = new PrimitiveMethodSummary(this,\n method,\n param_nodes,\n my_global,\n methodCalls,\n callToRVN,\n callToTEN,\n castMap,\n castPredecessors,\n returned,\n thrown,\n passedAsParameter,\n sync_ops,\n string_nodes);\n return s;\n }", "public abstract CharSequence getSummary();", "private String getSummary(Map task, String[] propertyName) {\n Map<String, Object> h;\n StringBuffer strBuf;\n String[] pn = null, pv = null;\n String value;\n int i;\n\n if (task == null)\n return \"\";\n\n pn = (String[]) task.get(\"PropertyName\");\n pv = (String[]) task.get(\"PropertyValue\");\n if (pn == null || pv == null || pn.length <= 0)\n return \"\";\n\n h = new HashMap<String, Object>();\n for (i=0; i<pn.length; i++) {\n if (pn[i] != null && pn[i].length() > 0)\n h.put(pn[i], pv[i]);\n }\n\n strBuf = new StringBuffer();\n if (propertyName != null) {\n for (i=0; i<propertyName.length; i++) {\n if (h.containsKey(propertyName[i])) {\n value = (String) h.get(propertyName[i]);\n if (value != null) {\n if (strBuf.length() > 0)\n strBuf.append(\" ~ \");\n strBuf.append(propertyName[i] + \": \" + value);\n }\n }\n }\n }\n h.clear();\n\n return strBuf.toString();\n }", "@Override\n public String getSummary() {\n return super.getSummary() + SYMBOL_SEPARATOR + getTimingString();\n }", "public String summaryInfo() {\n DecimalFormat form2 = new DecimalFormat(\"#,##0.0##\");\n String result = \"\";\n result += \"----- Summary for \" + getName() + \" -----\"; \n result += \"\\nNumber of Icosahedrons: \" + (numberOfIcosahedrons());\n result += \"\\nTotal Surface Area: \" \n + form2.format(totalSurfaceArea());\n result += \"\\nTotal Volume: \" + form2.format(totalVolume()); \n result += \"\\nAverage Surface Area: \" \n + form2.format(averageSurfaceArea());\n result += \"\\nAverage Volume: \" + form2.format(averageVolume());\n result += \"\\nAverage Surface/Volume Ratio: \" \n + form2.format(averageSurfaceToVolumeRatio());\n \n return result;\n }", "public String getTotalProperty() {\n\t\tif (null != this.totalProperty) {\n\t\t\treturn this.totalProperty;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"totalProperty\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public String summaryInfo() {\r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String output = \"\";\r\n output += \"----- Summary for \" + getName() + \" -----\";\r\n output += \"\\nNumber of PentagonalPyramid: \" + list.size();\r\n output += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea());\r\n output += \"\\nTotal Volume: \" + df.format(totalVolume());\r\n output += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea());\r\n output += \"\\nAverage Volume: \" + df.format(averageVolume());\r\n return output;\r\n }", "Property getProperty();", "Property getProperty();", "public String getSummaryStatistics() {\n String format = \"%-50s \\t %12d \\t %12f \\t %12f %n\";\n int n = (int) getCount();\n double avg = getAverage();\n double std = getStandardDeviation();\n String name = getName();\n return String.format(format, name, n, avg, std);\n }", "String getOfferSummary();", "public String getSummary() {\n\t\treturn country; \n\t}", "private String getPropertyValue() {\n return EmfPropertyHelper.getValue(itemPropertyDescriptor, eObject);\n }", "public String getPropertyTitle() {\n\t\treturn propertyTitle;\n\t}", "public String summary()\n {\n String summary = mName;\n \n if(isARuleBreaker())\n {\n summary += \" – \" + numberOfBrokenRules() + \" st regelbrott, \" + fineAmountOfBrokenRules() + \" kronor\";\n }\n else\n {\n summary += \" – INGA regelbrott!\";\n }\n \n return summary;\n }", "public abstract String metadata(String property);", "protected String getPropertyStrings() {\n\t\treturn \"Active:\" + activeProperty().getValue() + \", FromDataset:\" + isFromDataset() + \", Modified:\" + isModified();\n\t}", "public String description() {\n return this.innerProperties() == null ? null : this.innerProperties().description();\n }", "public String description() {\n return this.innerProperties() == null ? null : this.innerProperties().description();\n }", "public String description() {\n return this.innerProperties() == null ? null : this.innerProperties().description();\n }", "public String description() {\n return this.innerProperties() == null ? null : this.innerProperties().description();\n }", "Boolean getIsSummary();", "public String getDescription() {\n \treturn metricMetadata.getDescription();\n }", "public Description description() {\n return this.innerProperties() == null ? null : this.innerProperties().description();\n }", "public Boolean getIsSummary() { \n\t\treturn getIsSummaryElement().getValue();\n\t}", "public String getModifiedSummary() {\r\n\t\treturn modifiedSummary;\r\n\t}", "private String getPropertyLabel() {\n return itemPropertyDescriptor.getDisplayName(eObject);\n }", "public Item2Vector<Summary> getSummaries() { return summaries; }", "@Override\n\tpublic String toString() {\n\t\tString strg= \"Property Name: \"+propertyName\n\t +\"\\nLocated in \"+city\n\t +\"\\nBelonging to: \"+ owner\n\t +\"\\nRent Amount: \"+rentAmount+\"\\n\";\n\t\treturn strg;\n\t}", "@JsonProperty(\"summary\")\n public void setSummary(String summary) {\n this.summary = summary;\n }", "public String getProperty() {\n Object ref = property_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n property_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String toString(){\r\n\t\tString output = \"\";\r\n\t\tfor (int i=0; i<MAX_PROPERTY;i++) {\r\n\t\t\tif(properties[i]==null){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\toutput += properties[i].toString()+\"\\n\";\r\n\t\t}\r\n\t\treturn \"List of the properties for \"+name+\", taxID: \"+taxID+\r\n\t\t\t\t\"\\n___________________________________\\n\"+output+\"\\n\"\r\n\t\t\t\t\t\t+ \"___________________________________\\ntotal \"\r\n\t\t\t\t\t\t+ \"management Fee: \"+(totalRent()*mgmFeePer/100);\r\n\t}", "public String getTableSummary() {\n return \"A summary description of table data\";\n }", "public message.Figure.FigureData.FigureProperty getProperty() {\n return property_;\n }", "@Override\n public String toString() {\n // using String.format to display out put value and infomation of Property\n return String.format(\n \"\\nCoordinates: %d, %d\\n\" + \"Length: %d m Width: %d m\\n\" + \"Registrant: #%d\\nArea: %d m2\\n\"\n + \"Property Taxes : $%.1f\",\n this.getXLeft(), this.getYTop(), this.getXLength(), this.getYWidth(), this.getRegNum(), this.getArea(),\n this.getTaxes());\n }", "public String getProperty() {\n Object ref = property_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n property_ = s;\n return s;\n }\n }", "public String getmLocationDetailsSummary() {\n return mLocationDetailsSummary;\n }", "public String getPropertyLabel() {\n \t\treturn propertyLabel;\n \t}", "public Property getProperty() {\n\t\treturn _property;\n\t}", "public message.Figure.FigureData.FigureProperty getProperty() {\n return property_;\n }", "public DatatypeProp getProperty() {\n return property;\n }", "public String summaryStats() {\n\t\treturn new StringBuilder()\n\t\t\t\t.append(\"Documents: \"+countCorpusDocuments()+\", \")\n\t\t\t\t.append(\"Terms: \"+countCorpusTerms()+\", \")\n\t\t\t\t.append(\"Unique terms: \"+countUniqueTerms()).toString();\n\t}", "public String getSummary() {\n/* 121 */ StringBuilder sb = new StringBuilder();\n/* 122 */ sb.append(\"FindIds exeMicros[\").append(this.executionTimeMicros).append(\"] rows[\").append(this.rowCount).append(\"] type[\").append(this.desc.getName()).append(\"] predicates[\").append(this.predicates.getLogWhereSql()).append(\"] bind[\").append(this.bindLog).append(\"]\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 128 */ return sb.toString();\n/* */ }", "public void setSummary(String summary) {\n this.summary = summary;\n }", "public String displayName() {\n return this.innerProperties() == null ? null : this.innerProperties().displayName();\n }", "public String displayName() {\n return this.innerProperties() == null ? null : this.innerProperties().displayName();\n }", "public String displayName() {\n return this.innerProperties() == null ? null : this.innerProperties().displayName();\n }", "public String getProductSummary() {\r\n\t\tif (getProducts() != null) {\r\n\t\t\tif (getProducts().size() == 1) {\r\n\t\t\t\treturn getProducts().get(0);\r\n\t\t\t}\r\n\t\t\tif (getProducts().size() > 1) {\r\n\t\t\t\t\r\n\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\tsb.append(getProducts().get(0))\r\n\t\t\t\t .append( \" (plus \")\r\n\t\t\t\t .append(getProducts().size()-1)\r\n\t\t\t\t .append( \" more)\");\r\n\t\t\t\treturn sb.toString();\r\n\t\t\t}\t\r\n\t\t}\r\n\r\n\t\treturn \"No products\";\r\n\t}", "public void summary() {\r\n System.out.println(this.nama + \" usia \" + this.usia + \" tahun bekerja di Perusahaan \" + Employee.perusahaan);\r\n System.out.println(\"Memiliki total gaji \" + (Employee.pendapatan + Employee.lembur));\r\n }", "public Integer getProperty() {\n\t\t\treturn null;\n\t\t}", "public String detailedStatusMessage() {\n return this.innerProperties() == null ? null : this.innerProperties().detailedStatusMessage();\n }", "@Override\r\n\tpublic String getFormat() {\r\n\t\treturn \"properties\";\r\n\t}", "public String getPropertyPart() {\n return this.PROPERTY_PART;\n }", "@Override\n\tpublic String getSummary(Locale locale) {\n\t\treturn \"Title: \" + _dataset.getTitle();\n\t}", "void setSummary(java.lang.String summary);", "public boolean is_set_summary() {\n return this.summary != null;\n }", "public String getProperty(String propertyName) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return (String) ph.getProperty(null, propertyName);\n }", "public void setSummary(String summary) {\n this.summary = summary;\n }", "public PropertyDescription [] getPropertiesDescriptions () {\n\t PropertyDescription [] pds = new PropertyDescription [1];\n\t pds[0] = new PropertyDescription (\"errorFunctionName\", \"Error Function\", \"The name of the error function, can be Absolute, Classification, Likelihood or Variance.\");\n\t return pds;\n }", "public javax.accessibility.Accessible getAccessibleSummary() {\n // Not yet supported.\n return null;\n }", "public String getSummary() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append( \"<html> Carrying <b>\");\r\n\t\tsb.append( getEquipmentCount() );\r\n\t\tsb.append( \"</b> weighing <b>\" );\r\n\t\tsb.append( getEquipmentWeight() );\r\n\t\tsb.append( \"</b>lbs</html>\");\r\n\t\treturn sb.toString();\r\n\t}", "public String getStringProperty(String propertyName) ;", "public String shortDescription() {\n return this.shortDescription;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(DESCRIPTION_PROP.get());\n }", "@Override\n\tpublic PartnerUsageSummary get()\n\t{\n\t\treturn this.getPartner().getServiceClient().get(\n\t\t\tthis.getPartner(),\n\t\t\tnew TypeReference<PartnerUsageSummary>(){}, \n\t\t\tPartnerService.getInstance().getConfiguration().getApis().get(\"GetPartnerUsageSummary\").getPath());\n\t}", "private String getPropertyCatalog() {\n return this.property;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getDescription() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(DESCRIPTION_PROP.get());\n }", "public WebElement getTripSummaryHeader() {\n\t\treturn tripSummaryHeader;\n\t}", "public String toString() {\n // returns information about property\n if (owner != null) {\n return owner.getName()+\",\"+numberHouses;\n }else{\n return \"NULL\";\n }\n }", "public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}", "java.lang.String getDescribe();", "final public String getShortDesc()\n {\n return ComponentUtils.resolveString(getProperty(SHORT_DESC_KEY));\n }", "public String toString() {\n StringBuilder stringBuilder = new StringBuilder(40);\n stringBuilder.append(\"property '\").append(this.getName()).append(\"' (\");\n if (this._accessorMethod != null) {\n stringBuilder.append(\"via method \").append(this._accessorMethod.getDeclaringClass().getName()).append(\"#\").append(this._accessorMethod.getName());\n } else {\n stringBuilder.append(\"field \\\"\").append(this._field.getDeclaringClass().getName()).append(\"#\").append(this._field.getName());\n }\n if (this._serializer == null) {\n stringBuilder.append(\", no static serializer\");\n } else {\n stringBuilder.append(\", static serializer of type \" + this._serializer.getClass().getName());\n }\n stringBuilder.append(')');\n return stringBuilder.toString();\n }", "public AXValue getDescription() {\n return description;\n }" ]
[ "0.77382576", "0.76643693", "0.7585386", "0.75531805", "0.75466394", "0.74948823", "0.74897677", "0.74897677", "0.74504685", "0.72656655", "0.7071243", "0.6946949", "0.69151133", "0.68460596", "0.67845434", "0.6657506", "0.6653005", "0.6652903", "0.6624739", "0.6568897", "0.6521342", "0.65127796", "0.65127796", "0.65127796", "0.64890707", "0.6485343", "0.64710724", "0.642325", "0.64152014", "0.6410962", "0.63627386", "0.6355688", "0.6335318", "0.6333798", "0.6333798", "0.6315997", "0.6312746", "0.62743884", "0.626667", "0.6248792", "0.6242568", "0.624182", "0.622337", "0.6207072", "0.6207072", "0.6207072", "0.6207072", "0.6193815", "0.6192974", "0.6188221", "0.6176743", "0.61578417", "0.6124348", "0.61169857", "0.6114523", "0.6107721", "0.60838294", "0.6078393", "0.6073651", "0.6068951", "0.6044751", "0.6044373", "0.60319424", "0.60294825", "0.6017508", "0.60175055", "0.6015659", "0.60056007", "0.59718573", "0.5970863", "0.596735", "0.596735", "0.596735", "0.5966749", "0.59557843", "0.59485203", "0.59263456", "0.59244794", "0.5921332", "0.5913884", "0.5912614", "0.5895774", "0.5892674", "0.5889901", "0.5877518", "0.58751994", "0.5869703", "0.58692765", "0.5867743", "0.5865431", "0.5859371", "0.5856986", "0.5856499", "0.585551", "0.584895", "0.5846382", "0.58373743", "0.5834002", "0.5826106", "0.5817893" ]
0.6165241
51
Setter for property summary.
public void setSummary(boolean summary) { this.summary = summary; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setSummary(java.lang.String summary);", "public void setSummary(String summary) {\n this.summary = summary;\n }", "public void setSummary(java.lang.String summary)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SUMMARY$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SUMMARY$18);\n }\n target.setStringValue(summary);\n }\n }", "public void setSummary(String summary) {\n this.summary = summary;\n }", "@JsonProperty(\"summary\")\n public void setSummary(String summary) {\n this.summary = summary;\n }", "public void setSummary(String summary) {\n\t\tthis.summary = summary;\n\t}", "@JsonProperty(\"summary\")\n public String getSummary() {\n return summary;\n }", "public java.lang.String getSummary(){\r\n return this.summary;\r\n }", "public void setSummary(String summary) {\r\n this.summary = summary == null ? null : summary.trim();\r\n }", "public void setSummary(String summary) {\n this.summary = summary == null ? null : summary.trim();\n }", "public String getSummary() {\r\n return summary;\r\n }", "public String getSummary() {\n return summary;\n }", "public void xsetSummary(org.apache.xmlbeans.XmlString summary)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SUMMARY$18);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(SUMMARY$18);\n }\n target.set(summary);\n }\n }", "public String getSummary() {\n\t\treturn summary;\n\t}", "public String getSummary() {\n\t\treturn summary;\n\t}", "public void setSummary(java.lang.Boolean summary) {\n this.summary = summary;\n }", "public void setSummary(Preference pref) {\n }", "public native final String summary() /*-{\n\t\treturn this[\"summary\"];\n\t}-*/;", "@Override\n @IcalProperty(pindex = PropertyInfoIndex.SUMMARY,\n jname = \"summary\",\n adderName = \"summary\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setSummaries(final Set<BwString> val) {\n summaries = val;\n }", "java.lang.String getSummary();", "void xsetSummary(org.apache.xmlbeans.XmlString summary);", "public String getSummary();", "@Override\r\n\tpublic String getSummary() {\n\t\treturn null;\r\n\t}", "public boolean is_set_summary() {\n return this.summary != null;\n }", "@Override\n\tpublic String getSummary() {\n\t\treturn null;\n\t}", "public java.lang.Boolean getSummary() {\n return summary;\n }", "public native final Calendar summary(String val) /*-{\n\t\tthis[\"summary\"] = val;\n\t\treturn this;\n\t}-*/;", "IParser setSummaryMode(boolean theSummaryMode);", "public java.lang.String getSummary()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SUMMARY$18);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@NonNull\n public Optional<String> getSummary() {\n return Optional.ofNullable(this.summary);\n }", "private void setValueSummary(String preference, String property) {\n try {\n findPreference(preference).setSummary(SystemProperties.get(property, getString(R.string.device_info_default)));\n } catch (RuntimeException e) {\n // No recovery\n }\n }", "@Override\n\t\t\tpublic boolean onPreferenceChange(Preference preference, Object newValue) {\n\t\t\t\t\n\t\t\t\tprefName.setSummary((CharSequence) newValue);\n\t\t\t\treturn true;\n\t\t\t}", "public boolean isSummary() {\n\n return this.summary;\n }", "public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}", "public void unsetSummary()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(SUMMARY$18);\n }\n }", "public abstract CharSequence getSummary();", "Boolean getIsSummary();", "public void setSummary() {\n\t\tString dataset = datasetInfo.getSelectedFile().getAbsolutePath();\n\t\tdatasetLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + dataset + \"</font></center></html>\");\n\t\t\n\t\tfloat putNumber = privacyInfo.getPUTNumber();\n\t\tString privacyExceptions = privacyInfo.getPrivacyExceptions().toString();\n\t\tif(privacyExceptions == null || privacyExceptions.trim().length() == 0 || privacyExceptions.equals(\"[]\"))\n\t\t\tprivacyExceptions = \"<b><i>None</i></b>\";\n\t\telse\n\t\t\tprivacyExceptions = \"{\" + privacyExceptions.substring(1, privacyExceptions.length()-1) + \"}\";\n\t\tString utilityExceptions = privacyInfo.getUtilityExceptions().toString();\n\t\tif(utilityExceptions == null || utilityExceptions.trim().length() == 0 || utilityExceptions.equals(\"[]\"))\n\t\t\tutilityExceptions = \"<b><i>None</i></b>\";\n\t\telse\n\t\t\tutilityExceptions = \"{\" + utilityExceptions.substring(1, utilityExceptions.length()-1) + \"}\";\n\t\t\n\t\tputLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + putNumber + \"</font></center></html>\");\n\t\tprivacyExceptionsLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + privacyExceptions + \"</font></center></html>\");\n\t\tutilityExceptionsLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + utilityExceptions + \"</font></center></html>\");\n\t\t\n\t\tfloat vExpense = expenseInfo.getVerticalExpense();\n\t\tfloat hExpense = expenseInfo.getHorizontalExpense();\n\t\t\n\t\tverticalExpenseLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + vExpense + \"</font></center></html>\");\n\t\thorizontalExpenseLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + hExpense + \"</font></center></html>\");\n\t\t\n\t\tString classifier = classifierInfo.getClassifier();\n\t\tString classifierOptions = classifierInfo.getCustomOptions();\n\t\tif(classifierOptions == null || classifierOptions.trim().length() == 0 || classifierOptions.equals(\"{}\"))\n\t\t\tclassifierOptions = \"<b><i>None</i></b>\";\n\t\t\n\t\tclassifierLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + classifier + \"</font></center></html>\");\n\t\tclassifierOptionsLabel.setText(\"<html><center><font size='4' color='#9e1503'>\" + classifierOptions + \"</font></center></html>\");\n\t}", "public void summary() {\r\n System.out.println(this.nama + \" usia \" + this.usia + \" tahun bekerja di Perusahaan \" + Employee.perusahaan);\r\n System.out.println(\"Memiliki total gaji \" + (Employee.pendapatan + Employee.lembur));\r\n }", "@Override\n public String getSummary() {\n return super.getSummary() + SYMBOL_SEPARATOR + getTimingString();\n }", "public void testUpdateSummary() throws Exception {\r\n System.out.println(\"updateSummary\");\r\n LocalDate date = null;\r\n Summarizer instance = null;\r\n instance.updateSummary(date);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "public String toString() {\n StringBuilder sb = new StringBuilder();\n return sb.append(summary).append(\" is \").append(getValueDescription()).toString();\n }", "org.apache.xmlbeans.XmlString xgetSummary();", "public org.apache.xmlbeans.XmlString xgetSummary()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(SUMMARY$18);\n return target;\n }\n }", "public String getModifiedSummary() {\r\n\t\treturn modifiedSummary;\r\n\t}", "public void setSummary(String summary){\n\t String text = this.text;\n\t String s = \"\";\n // The ontology file format is described here:\n // https://trac.nbic.nl/data-mining/wiki/ErasmusMC%20ontology%20file%20format\n //final String ontologyPath = \"C:/Users/Nasko/Desktop/School/Project/semweb-peregrine.txt\"; // EDIT HERE\n\t final String ontologyPath = System.getProperty(\"user.home\") + \"/peregrine/\" + vocab + \"-peregrine.txt\";\n final Ontology ontology = new SingleFileOntologyImpl(ontologyPath);\n\n //final String propertiesDirectory = \"C:/Users/Nasko/Desktop/School/Project/lvg2006lite/data/config/\"; // EDIT HERE\n final String propertiesDirectory = System.getProperty(\"user.home\") + \"/peregrine/lvg2006lite/data/config/\";\n final Peregrine peregrine = createPeregrine(ontology, propertiesDirectory + \"lvg.properties\");\n //final String text = \"This is a simple sentence with labels like earley, bielefeld, task model ontology, etc. \" +\n // \"and immunoglobulin production, elsevier, Christian Morbidoni, Austria, Swingly, many terms like r2rml.\";\n final List<IndexingResult> indexingResults = peregrine.indexAndDisambiguate(text, Language.EN);\n\n //System.out.println(\"Number of indexing results found: \" + indexingResults.size() + \".\");\n this.summary = \"\";\n for (final IndexingResult indexingResult : indexingResults) {\n final Serializable conceptId = indexingResult.getTermId().getConceptId();\n //System.out.println();\n //System.out.println(\"- Found concept with id: \" + conceptId + \", matched text: \\\"\"\n // + text.substring(indexingResult.getStartPos(), indexingResult.getEndPos() + 1) + \"\\\".\");\n String matchedText = text.substring(indexingResult.getStartPos(), indexingResult.getEndPos() + 1);\n \n /* \n * Get the Term context - but lock it within a sentance.\n */\n String termContext = \"\";\n int cStart;\n int cEnd;\n //Get Start position of \"context\" text\n if(indexingResult.getStartPos()-15 <= indexingResult.getSentenceStartPos()) cStart = indexingResult.getSentenceStartPos();\n else {\n \t int cS = indexingResult.getStartPos()-15;\n \t cStart = indexingResult.getStartPos() - (15-text.substring(cS, indexingResult.getStartPos() + 1).indexOf(\" \")) + 1;\n }\n \n //Get End position of \"context\" text\n if(indexingResult.getEndPos()+15 >= indexingResult.getSentenceEndPos()) cEnd = indexingResult.getSentenceEndPos();\n else {\n \t int cE = indexingResult.getEndPos()+15;\n \t cEnd = indexingResult.getEndPos() + text.substring(indexingResult.getEndPos(), cE).lastIndexOf(\" \") + 1; \n }\n \n termContext = text.substring(cStart, cEnd).trim();\n /*String[] toTrim = text.substring(cStart, cEnd + 1).split(\" \");\n String[] trimmed = Arrays.copyOfRange(toTrim, 1, toTrim.length-1);\n termContext = StringUtils.join(trimmed, \" \");*/\n \n s = \"- Found concept with id: \" + conceptId + \", matched text: \\\"\"\n + matchedText + \"\\\".\";\n final Concept concept = ontology.getConcept(conceptId);\n final String preferredLabelText = LabelTypeComparator.getPreferredLabel(concept.getLabels()).getText();\n //System.out.println(\" Preferred concept label is: \\\"\" + preferredLabelText + \"\\\".\");\n s += \" Preferred concept label is: \\\"\" + preferredLabelText + \"\\\".\";\n this.summary += s + Math.random()*10;\n TaggedTerm t = new TaggedTerm();\n t.setMatchedText(matchedText);\n t.setPrefLabel(preferredLabelText);\n \n \n //Set the label\n String definition = \"\";\n String hierarchy = \"\";\n \n for(Label d : concept.getLabels()){\n \t if(d.getText().contains(\"|DEFINITION|\")){\n \t\t definition = d.getText().replace(\"|DEFINITION|\", \"\");\n \t\t break;\n \t }\n }\n \n for(Label d : concept.getLabels()){\n \t if(d.getText().contains(\"|HIERARCHY|\")){\n \t\t if(!hierarchy.equals(\"\")) hierarchy += \";;\" + d.getText().replace(\"TM |HIERARCHY|\", \"\");\n \t\t else hierarchy += d.getText().replace(\"TM |HIERARCHY|\", \"\");\n \t\t break;\n \t }\n }\n \n \n \n \n \n t.setDefinition(definition);\n t.setHierarchy(hierarchy);\n t.setTermContext(termContext);\n this.taggedTerms.add(t);\n definition = \"\";\n hierarchy = \"\";\n }\n }", "@Test public void summaryInfoTest()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n Assert.assertEquals(\"summary Test\", true, \n pList.summaryInfo().contains(\"Total\"));\n \n }", "public ElementDefinitionDt setIsSummary(BooleanDt theValue) {\n\t\tmyIsSummary = theValue;\n\t\treturn this;\n\t}", "public String summaryInfo() {\n DecimalFormat form2 = new DecimalFormat(\"#,##0.0##\");\n String result = \"\";\n result += \"----- Summary for \" + getName() + \" -----\"; \n result += \"\\nNumber of Icosahedrons: \" + (numberOfIcosahedrons());\n result += \"\\nTotal Surface Area: \" \n + form2.format(totalSurfaceArea());\n result += \"\\nTotal Volume: \" + form2.format(totalVolume()); \n result += \"\\nAverage Surface Area: \" \n + form2.format(averageSurfaceArea());\n result += \"\\nAverage Volume: \" + form2.format(averageVolume());\n result += \"\\nAverage Surface/Volume Ratio: \" \n + form2.format(averageSurfaceToVolumeRatio());\n \n return result;\n }", "public final void mSUMMARY() throws RecognitionException {\r\n try {\r\n int _type = SUMMARY;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:21:9: ( 'SUMMARY' )\r\n // Satmc.g:21:11: 'SUMMARY'\r\n {\r\n match(\"SUMMARY\"); \r\n\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }", "public String summaryInfo() {\r\n \r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String result = \"\";\r\n result = \"----- Summary for \" + getName() + \" -----\";\r\n result += \"\\nNumber of Ellipsoid Objects: \" + list.size();\r\n result += \"\\nTotal Volume: \" + df.format(totalVolume()) + \" cubic units\";\r\n result += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea()) \r\n + \" square units\";\r\n result += \"\\nAverage Volume: \" + df.format(averageVolume()) \r\n + \" cubic units\";\r\n result += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea()) \r\n + \" square units\";\r\n \r\n return result;\r\n }", "private void updateSummary() {\n Bitmap cardBack;\n\n int selectedBackground = prefs.getSavedCardBackground();\n int selectedBackgroundColor = prefs.getSavedCardBackgroundColor();\n\n cardBack = bitmaps.getCardBack(selectedBackground, selectedBackgroundColor);\n\n image.setImageBitmap(cardBack);\n setSummary(String.format(Locale.getDefault(), \"%s %s\",\n context.getString(R.string.settings_background), selectedBackground + 1));\n }", "public final void mT__131() throws RecognitionException {\n try {\n int _type = T__131;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:129:8: ( 'summary' )\n // InternalMyDsl.g:129:10: 'summary'\n {\n match(\"summary\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@Override\n\tpublic String getSummary(Locale locale) {\n\t\treturn \"Title: \" + _dataset.getTitle();\n\t}", "public Boolean getIsSummary() { \n\t\treturn getIsSummaryElement().getValue();\n\t}", "public ElementDefinitionDt setIsSummary( boolean theBoolean) {\n\t\tmyIsSummary = new BooleanDt(theBoolean); \n\t\treturn this; \n\t}", "public boolean isSetSummary()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SUMMARY$18) != null;\n }\n }", "public String summaryInfo() {\r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String output = \"\";\r\n output += \"----- Summary for \" + getName() + \" -----\";\r\n output += \"\\nNumber of PentagonalPyramid: \" + list.size();\r\n output += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea());\r\n output += \"\\nTotal Volume: \" + df.format(totalVolume());\r\n output += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea());\r\n output += \"\\nAverage Volume: \" + df.format(averageVolume());\r\n return output;\r\n }", "public String getSummaryStatistics() {\n String format = \"%-50s \\t %12d \\t %12f \\t %12f %n\";\n int n = (int) getCount();\n double avg = getAverage();\n double std = getStandardDeviation();\n String name = getName();\n return String.format(format, name, n, avg, std);\n }", "protected void addPodcastSummaryParameterPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_MPublishNewMp3Step_podcastSummaryParameter_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_MPublishNewMp3Step_podcastSummaryParameter_feature\", \"_UI_MPublishNewMp3Step_type\"),\r\n\t\t\t\t LogicPackage.Literals.MPUBLISH_NEW_MP3_STEP__PODCAST_SUMMARY_PARAMETER,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "@SuppressWarnings(\"unused\")\n public void setClassificationSummaryImpl(ClassificationSummaryImpl classificationSummary) {\n this.classificationSummary = classificationSummary;\n }", "public void setOldProperty_description(java.lang.String param){\n localOldProperty_descriptionTracker = true;\n \n this.localOldProperty_description=param;\n \n\n }", "public void setNewProperty_description(java.lang.String param){\n localNewProperty_descriptionTracker = true;\n \n this.localNewProperty_description=param;\n \n\n }", "public String getmLocationDetailsSummary() {\n return mLocationDetailsSummary;\n }", "public String getSummary() {\n\t\treturn country; \n\t}", "@JSProperty(\"description\")\n void setDescription(String value);", "private String getSummary(Map task, String[] propertyName) {\n Map<String, Object> h;\n StringBuffer strBuf;\n String[] pn = null, pv = null;\n String value;\n int i;\n\n if (task == null)\n return \"\";\n\n pn = (String[]) task.get(\"PropertyName\");\n pv = (String[]) task.get(\"PropertyValue\");\n if (pn == null || pv == null || pn.length <= 0)\n return \"\";\n\n h = new HashMap<String, Object>();\n for (i=0; i<pn.length; i++) {\n if (pn[i] != null && pn[i].length() > 0)\n h.put(pn[i], pv[i]);\n }\n\n strBuf = new StringBuffer();\n if (propertyName != null) {\n for (i=0; i<propertyName.length; i++) {\n if (h.containsKey(propertyName[i])) {\n value = (String) h.get(propertyName[i]);\n if (value != null) {\n if (strBuf.length() > 0)\n strBuf.append(\" ~ \");\n strBuf.append(propertyName[i] + \": \" + value);\n }\n }\n }\n }\n h.clear();\n\n return strBuf.toString();\n }", "@Override\n public boolean onPreferenceChange(Preference preference, Object value) {\n // The code in this method takes care of updating the displayed preference summary after it has been changed\n String stringValue = value.toString();\n //preference.setSummary(stringValue);\n if (preference instanceof ListPreference) {\n ListPreference listPreference = (ListPreference) preference;\n int prefIndex = listPreference.findIndexOfValue(stringValue);\n if (prefIndex >= 0) {\n CharSequence[] labels = listPreference.getEntries();\n preference.setSummary(labels[prefIndex]);\n }\n }\n else {\n preference.setSummary(stringValue);\n }\n return true;\n }", "SummaryStatusEnum getSummaryStatus();", "public Item2Vector<Summary> getSummaries() { return summaries; }", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/lib/Analysis/ProfileSummaryInfo.cpp\", line = 57,\n FQN=\"llvm::ProfileSummaryInfo::computeSummary\", NM=\"_ZN4llvm18ProfileSummaryInfo14computeSummaryEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.analysis/llvmToClangType ${LLVM_SRC}/llvm/lib/Analysis/ProfileSummaryInfo.cpp -nm=_ZN4llvm18ProfileSummaryInfo14computeSummaryEv\")\n //</editor-fold>\n private void computeSummary() {\n if (Summary.$bool()) {\n return;\n }\n Metadata /*P*/ SummaryMD = M.getProfileSummary();\n if (!(SummaryMD != null)) {\n return;\n }\n Summary.reset(ProfileSummary.getFromMD(SummaryMD));\n }", "public void setAccessibleSummary(javax.accessibility.Accessible accessible) {\n // Not supported by the UNO Accessibility API\n }", "String getOfferSummary();", "@Override\n\t\tpublic String getValueDescription() {\n\t\t\treturn \"propertytoCheck=\" + expectpedValueOfPropertyToCheck + \"; propertytoChange=\"\n\t\t\t\t\t+ newValueOfPropertyToChange;\n\t\t}", "public void writeProperties(Properties prop) {\n writeProperties(prop, \"[ No description provided! ]\");\n }", "public static Card summaryCard(String summary) {\n Card card = baseCard();\n card.setSummary(summary);\n return card;\n }", "final public void setShortDesc(String shortDesc)\n {\n setProperty(SHORT_DESC_KEY, (shortDesc));\n }", "public void setBrief(String brief) {\r\n\t\tthis.brief = brief;\r\n\t}", "public PrimitiveMethodSummary getSummary() {\n PrimitiveMethodSummary s = new PrimitiveMethodSummary(this,\n method,\n param_nodes,\n my_global,\n methodCalls,\n callToRVN,\n callToTEN,\n castMap,\n castPredecessors,\n returned,\n thrown,\n passedAsParameter,\n sync_ops,\n string_nodes);\n return s;\n }", "public StringProperty perfProperty() {\n return perf.getHint().textProperty();\n }", "public String getTableSummary() {\n return \"A summary description of table data\";\n }", "public String summary()\n {\n String summary = mName;\n \n if(isARuleBreaker())\n {\n summary += \" – \" + numberOfBrokenRules() + \" st regelbrott, \" + fineAmountOfBrokenRules() + \" kronor\";\n }\n else\n {\n summary += \" – INGA regelbrott!\";\n }\n \n return summary;\n }", "public void setBrief(String brief) {\n this.brief = brief;\n }", "public String getSummaryIcon() {\n\treturn this.icon;\n }", "public String getSummaryStatisticsHeader() {\n return String.format(\"%-50s \\t %12s \\t %12s \\t %12s %n\", \"Name\", \"Count\", \"Average\", \"Std. Dev.\");\n }", "ExpressionExperimentDetailsValueObject generateSummary( Long id );", "public void setTotalProperty(String totalProperty) {\n\t\tthis.totalProperty = totalProperty;\n\t\tthis.handleConfig(\"totalProperty\", totalProperty);\n\t}", "void bindPreferenceSummaryToValue(Preference preference);", "public String summaryStats() {\n\t\treturn new StringBuilder()\n\t\t\t\t.append(\"Documents: \"+countCorpusDocuments()+\", \")\n\t\t\t\t.append(\"Terms: \"+countCorpusTerms()+\", \")\n\t\t\t\t.append(\"Unique terms: \"+countUniqueTerms()).toString();\n\t}", "@ApiModelProperty(value = \"A human-readable explanation specific to this occurrence of the problem\")\n \n public String getDetail() {\n return detail;\n }", "public void setValueDescription(String description) {\n this.valueDescription = description;\n }", "public PropertySpecBuilder<T> description(String desc)\n {\n Preconditions.checkArgument(description == null, \"property description already set\");\n this.description = desc;\n\n return this;\n }", "@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}", "public void setProperty(String propName, Object newValue) {\n _infoTableModel.setProperty(propName, newValue);\n }", "public void setDescription(String s) {\n if (s == null && shortDescription == null) {\n return;\n }\n\n if (s == null || !s.equals(shortDescription)) {\n String oldDescrption = shortDescription;\n shortDescription = s;\n listeners.firePropertyChange(PROPERTY_DESCRIPTION, oldDescrption,\n shortDescription);\n }\n }", "@Override\n public boolean onPreferenceChange(Preference preference, Object value) {\n // The code in this method takes care of updating the displayed preference summary after it has been changed\n String stringValue = value.toString();\n if (preference instanceof ListPreference) {\n ListPreference listPreference = (ListPreference) preference;\n int prefIndex = listPreference.findIndexOfValue(stringValue);\n if (prefIndex >= 0) {\n CharSequence[] labels = listPreference.getEntries();\n preference.setSummary(labels[prefIndex]);\n }\n } else {\n preference.setSummary(stringValue);\n }\n return true;\n }", "public String getDescription() {\n \treturn metricMetadata.getDescription();\n }", "public void summary (java.io.PrintStream out) { throw new RuntimeException(); }", "public void setDescription(String description) {\n this.description = description;\r\n // changeSupport.firePropertyChange(\"description\", oldDescription, description);\r\n }", "private void bindPreferenceSummaryToValue(Preference preference) {\n preference.setOnPreferenceChangeListener(this);\n // We also read the current value of the preference stored in the SharedPreferences on the device,\n // and display that in the preference summary (so that the user can see the current value of the preference):\n SharedPreferences preferences =\n PreferenceManager.getDefaultSharedPreferences(preference.getContext());\n String preferenceString = preferences.getString(preference.getKey(), \"\");\n onPreferenceChange(preference, preferenceString);\n }" ]
[ "0.7993323", "0.7661637", "0.7628542", "0.7586893", "0.756125", "0.7499414", "0.7375483", "0.7336111", "0.727671", "0.72623646", "0.71921957", "0.7150211", "0.7120257", "0.7088684", "0.7088684", "0.6949635", "0.6913894", "0.68962467", "0.68189657", "0.68139565", "0.6714697", "0.6667857", "0.65806663", "0.6579789", "0.65462", "0.6517071", "0.6470136", "0.6431154", "0.6338902", "0.633112", "0.6218853", "0.61326593", "0.6066728", "0.59422576", "0.59116244", "0.58737636", "0.58483297", "0.58466125", "0.5840033", "0.5807684", "0.57870126", "0.57480806", "0.57392645", "0.5698306", "0.5691889", "0.5671564", "0.5641996", "0.5639997", "0.56301117", "0.5608014", "0.5602269", "0.55796283", "0.55747324", "0.55711085", "0.5568995", "0.5558746", "0.55383193", "0.5517719", "0.5516289", "0.5497899", "0.5495419", "0.5485862", "0.5441585", "0.5427975", "0.54199165", "0.5394598", "0.5376134", "0.5354719", "0.53529423", "0.5339704", "0.53097194", "0.5308399", "0.53033", "0.53002363", "0.5288875", "0.5272532", "0.5262303", "0.5254871", "0.5237887", "0.5225101", "0.52218175", "0.5208505", "0.5197328", "0.5189186", "0.51662725", "0.51601857", "0.5140817", "0.51134974", "0.51001203", "0.508045", "0.50722903", "0.50582355", "0.50489855", "0.50489753", "0.50466806", "0.504299", "0.5041624", "0.5039289", "0.50293165", "0.5028686" ]
0.7096383
13
Getter for property defaultAccount.
public String getDefaultAccount() { return this.defaultAccount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Account getDefaultAccount() {\n return getNemesisAccount1();\n }", "public static Account defaultAccount() {\n return Account.fromHexString(\n \"0xe05d9e08a18cf5573a92d030342c3b45395cd952e02346ba78e16421ee9dad88\");\n }", "public java.lang.String getDefaultAccountAndContactAccess() {\n return defaultAccountAndContactAccess;\n }", "public void setDefaultAccount(String defaultAccount) {\n\n this.defaultAccount = defaultAccount;\n }", "java.lang.String getLoginAccount();", "java.lang.String getLoginAccount();", "public String getAccount() {\r\n\t\treturn account;\r\n\t}", "public String getLoginAccount() {\n return loginAccount;\n }", "public static Account getCurrentAccount() {\r\n\t\treturn currentAccount;\r\n\t}", "java.lang.String getAccount();", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\n return account;\n }", "public String getAccount() {\r\n return account;\r\n }", "public String getCurrentUserAccount();", "public String getAccount(){\n\t\treturn account;\n\t}", "public BigDecimal getBasicAccount() {\r\n return basicAccount;\r\n }", "public String getDefault(){\n return _default;\n }", "public final DefaultAccount mo17151a() {\n return this.f12933a;\n }", "public Account getAccount() {\r\n\t\treturn account;\r\n\t}", "public Object getDefault() {\n\t\treturn defaultField;\n\t}", "public String getOperatorAccount() {\n\n // is there an in-memory current account?\n String currentAccount = currentAccountId();\n if (!StringUtil.isNullOrEmpty(currentAccount)) {\n return currentAccount;\n }\n // is there an on-disk default account?\n String defaultAccountNameAndId = getDefaultAccount();\n if (!defaultAccountNameAndId.isEmpty()) {\n String[] defaultArray = defaultAccountNameAndId.split(\":\");\n return defaultArray[1];\n }\n // no account, so empty string\n return \"\";\n }", "public java.lang.String getBankaccount() {\r\n return localBankaccount;\r\n }", "public String getAccount() {\n\t\treturn getUsername() + \":\" + getPassword() + \"@\" + getUsername();\n\t}", "Account getAccount();", "public Account getAccount() {\n return account;\n }", "public Account getAccount() {\n return account;\n }", "public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n loginAccount_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n loginAccount_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n loginAccount_ = s;\n return s;\n }\n }", "public java.lang.String getLoginAccount() {\n java.lang.Object ref = loginAccount_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n loginAccount_ = s;\n return s;\n }\n }", "public String getDefaultValue () {\n return defaultValue;\n }", "public String getDefaultValue() {\n return defaultValue;\n }", "public String getAccountName() {\n return accountName;\n }", "public String getAccountName() {\n return accountName;\n }", "public String getAccountName() {\n return accountName;\n }", "public String getAccountName() {\r\n return accountName;\r\n }", "public void setDefaultHackystatAccount(String defaultHackystatAccount) {\r\n this.defaultHackystatAccount = defaultHackystatAccount;\r\n }", "public UserAccount.Immutable getUserAccount() {\n return this.userAccount;\n }", "public final Account mo1683b() {\n return this.f1349a != null ? this.f1349a : new Account(\"<<default account>>\", \"com.google\");\n }", "public String getDefaultValue() {\n return defaultValue;\n }", "public String getAccountName() {\n return this.accountName;\n }", "public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public LocalAccount\t\tgetAccount();", "public java.lang.String getDefaultLeadAccess() {\n return defaultLeadAccess;\n }", "public String getUserAccount() {\n return sessionData.getUserAccount();\n }", "public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n account_ = s;\n return s;\n }\n }", "protected String getDefaultUserName()\n {\n return \"admin\";\n }", "public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n account_ = s;\n }\n return s;\n }\n }", "public java.lang.String getAccount() {\n java.lang.Object ref = account_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n account_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getDefault();", "public int getBankAccount() {\n return bankAccount;\n }", "static public String getDefaultString () {\n return defaultString;\n }", "@Override\n\tpublic Account getSingleAccount() {\n\t\treturn null;\n\t}", "public String getAlipayAccount() {\n return alipayAccount;\n }", "public String getDefaultValue() {\n return this.defaultValue;\n }", "public String getDefaultFromAddress() {\n\t\treturn myDefaultFromAddress;\n\t}", "public net.nyhm.protonet.example.proto.AccountProto.Account getAccount() {\n if (accountBuilder_ == null) {\n return account_ == null ? net.nyhm.protonet.example.proto.AccountProto.Account.getDefaultInstance() : account_;\n } else {\n return accountBuilder_.getMessage();\n }\n }", "public net.nyhm.protonet.example.proto.AccountProto.Account getAccount() {\n if (accountBuilder_ == null) {\n return account_ == null ? net.nyhm.protonet.example.proto.AccountProto.Account.getDefaultInstance() : account_;\n } else {\n return accountBuilder_.getMessage();\n }\n }", "protected final Account getAccount() {\n\t\treturn getRegisterView().getAccount();\n\t}", "public jkt.hms.masters.business.MasAccountType getAccount() {\n\t\treturn account;\n\t}", "public String getDefaultValue() {\n\t\t\treturn this.defaultValue;\n\t\t}", "public net.nyhm.protonet.example.proto.AccountProto.Account getAccount() {\n return account_ == null ? net.nyhm.protonet.example.proto.AccountProto.Account.getDefaultInstance() : account_;\n }", "public net.nyhm.protonet.example.proto.AccountProto.Account getAccount() {\n return account_ == null ? net.nyhm.protonet.example.proto.AccountProto.Account.getDefaultInstance() : account_;\n }", "@Override\n\tpublic String getTelFeeAccount() {\n\t\tTelFee_Account = Util.getMaiYuanConfig(\"TelFee_Account\");\n\t\treturn TelFee_Account;\n\t}", "public String getAccountNumber() {\n\t\tthis.setAccountNumber(this.account);\n\t\treturn this.account;\n\t}", "public java.lang.Object getAccountID() {\n return accountID;\n }", "public String getDefaultName()\r\n {\r\n System.out.println(\"returning default name: \" + m_default );\r\n return m_default;\r\n }", "public\n Account\n getAccount()\n {\n return itsAccount;\n }", "public T getDefaultValue() {\n return defaultValue.orNull();\n }", "static public Object getDefaultObject () {\n return defaultObject;\n }", "public static final Account createDefaultAdminAccount() {\n Name name = new Name(\"Alice\");\n Credential credential = new Credential(\"admin\", \"admin\");\n MatricNumber matricNumber = new MatricNumber(\"A0123456X\");\n PrivilegeLevel privilegeLevel = new PrivilegeLevel(2);\n Account admin = new Account(name, credential, matricNumber, privilegeLevel);\n return admin;\n }", "public String getDefaultValue() {\n return m_defaultValue;\n }", "public String getAccountID() {\n return (tozAdAccountID);\n }", "public int getAccountType() {\r\n return accountType;\r\n }", "public @NotNull T getDefaultValue() {\n return defaultValue;\n }", "AdPartner getAdDefaultPartner();", "public String getAccountOwner() {\n return accountOwner;\n }", "java.lang.String getAccountNumber();", "public static String getAccountNumber() {\n\t\treturn accountNumber;\n\t}", "public Object getDefaultBean() {\n Object obj = this._defaultBean;\n if (obj == null) {\n obj = this._beanDesc.instantiateBean(this._config.canOverrideAccessModifiers());\n if (obj == null) {\n obj = NO_DEFAULT_MARKER;\n }\n this._defaultBean = obj;\n }\n if (obj == NO_DEFAULT_MARKER) {\n return null;\n }\n return this._defaultBean;\n }", "public java.lang.String getAccountNumber() {\r\n return accountNumber;\r\n }", "public java.lang.String getAccountNumber() {\n return accountNumber;\n }", "public String getAccountNameCustom() {\n\t\tSystem.out.println(keypad.SelectAccountNameCustom.getText());\n\t\treturn keypad.SelectAccountNameCustom.getText();\n\t}", "public String getEmailAccount() {\n return emailAccount;\n }", "public Integer getDefaultNumber() {\n return defaultNumber;\n }", "public int getAccountNumber() {\n return accountNumber;\n }", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "java.lang.String getAccountId();", "public Integer getAccountNumber() {\n return accountNumber;\n }", "public Integer getAccountNumber() {\n return accountNumber;\n }", "public FileStorageAccount getAccount() {\n return account;\n }" ]
[ "0.82509863", "0.75938064", "0.7123111", "0.68171656", "0.6570032", "0.6570032", "0.65248656", "0.65203786", "0.6505914", "0.6500486", "0.6483934", "0.6483934", "0.6483934", "0.6483934", "0.6483934", "0.6483934", "0.6483934", "0.6483934", "0.6483934", "0.6483934", "0.64731866", "0.6382812", "0.63768554", "0.6310514", "0.6253436", "0.61919004", "0.6149777", "0.6123573", "0.6112995", "0.60301167", "0.60199726", "0.60009474", "0.5966993", "0.5966993", "0.59540373", "0.59540373", "0.59474045", "0.59474045", "0.593166", "0.5924833", "0.59171945", "0.59171945", "0.59171945", "0.5911916", "0.59074134", "0.5897151", "0.5893266", "0.58919", "0.5875874", "0.5867902", "0.5862692", "0.58575296", "0.5854217", "0.58524776", "0.5851591", "0.5833138", "0.58202267", "0.574227", "0.5734642", "0.5724307", "0.5721293", "0.57171154", "0.57113284", "0.5706367", "0.57029396", "0.57029396", "0.5702698", "0.5685086", "0.56657404", "0.56656593", "0.56656593", "0.5658035", "0.5657009", "0.56548744", "0.5646461", "0.56299835", "0.56084573", "0.5600256", "0.5598886", "0.55963516", "0.559364", "0.55715156", "0.5567991", "0.55627924", "0.55576473", "0.5549661", "0.55434275", "0.5536489", "0.55351716", "0.5532634", "0.5531875", "0.5529847", "0.55295813", "0.5528139", "0.55202013", "0.55202013", "0.55202013", "0.5518297", "0.5518297", "0.55125374" ]
0.8830221
0